2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 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 CDRECORD 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 TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_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 PYTHON_LIBS PYTHON_INCDIR CDSTL working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup 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'
312 ac_subst_files='MCOMMON'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures this package to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --x-includes=DIR X include files are in DIR
843 --x-libraries=DIR X library files are in DIR
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 if test -n "$ac_init_help"; then
856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
858 --enable-gnome enable build of gnome-console GUI disabled
859 --enable-wx-console enable build of wxWidgets console disabled
860 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) 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
882 --with-python=DIR Include Python support. DIR is the Python base
883 install directory, default is to search through
884 a number of common places for the Python files.
885 --with-tcp-wrappers=DIR enable tcpwrappers support
886 --with-working-dir=PATH specify path of Bacula working directory
887 --with-scriptdir=PATH specify path of Bacula scripts directory
888 --with-dump-email=EMAIL dump email address
889 --with-job-email=EMAIL job output email address
890 --with-smtp-host=HOST SMTP mail host address
891 --with-pid-dir=PATH specify location of Bacula pid files
892 --with-subsys-dir=PATH specify location of Bacula subsys file
893 --with-baseport=PORT specify base port address for daemons
894 --with-dir-password=PASSWORD specify Director's password
895 --with-fd-password=PASSWORD specify Client's password
896 --with-sd-password=PASSWORD specify Storage daemon's password
897 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
898 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
899 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
900 --with-bimagemgr-cgidir=DIR specify bimagemgr cgi-bin dir
901 --with-bimagemgr-docdir=DIR specify bimagemgr doc root dir
902 --with-bimagemgr-binowner=USER specify bimagemgr binary file owner
903 --with-bimagemgr-bingroup=USER specify bimagemgr binary file group
904 --with-bimagemgr-dataowner=USER specify bimagemgr data file owner
905 --with-bimagemgr-datagroup=USER specify bimagemgr data file group
906 --with-dir-user=USER specify user for Director daemon
907 --with-dir-group=GROUP specify group for Director daemon
908 --with-sd-user=USER specify user for Storage daemon
909 --with-sd-group=GROUP specify group for Storage daemon
910 --with-fd-user=USER specify user for File daemon
911 --with-fd-group=GROUP specify group for File daemon
912 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
913 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
914 base install directory, defaults to /usr/local/pgsql
916 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
917 install directory, default is to search through
918 a number of common places for the MySQL files.
920 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
921 install directory, default is to search through
922 a number of common places for the MySQL files.
924 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
925 install directory, default is to search through
926 a number of common places for the SQLite files.
927 --with-x use the X Window System
929 Some influential environment variables:
930 CC C compiler command
931 CFLAGS C compiler flags
932 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
933 nonstandard directory <lib dir>
934 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
935 headers in a nonstandard directory <include dir>
936 CXX C++ compiler command
937 CXXFLAGS C++ compiler flags
940 Use these variables to override the choices made by `configure' or to help
941 it to find libraries and programs with nonstandard names/locations.
946 if test "$ac_init_help" = "recursive"; then
947 # If there are subdirs, report their specific --help.
949 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
950 test -d $ac_dir || continue
953 if test "$ac_dir" != .; then
954 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
955 # A "../" for each directory in $ac_dir_suffix.
956 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
958 ac_dir_suffix= ac_top_builddir=
962 .) # No --srcdir option. We are building in place.
964 if test -z "$ac_top_builddir"; then
967 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
969 [\\/]* | ?:[\\/]* ) # Absolute path.
970 ac_srcdir=$srcdir$ac_dir_suffix;
971 ac_top_srcdir=$srcdir ;;
973 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
974 ac_top_srcdir=$ac_top_builddir$srcdir ;;
976 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
978 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
979 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
980 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
981 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
984 # Check for guested configure; otherwise get Cygnus style configure.
985 if test -f $ac_srcdir/configure.gnu; then
987 $SHELL $ac_srcdir/configure.gnu --help=recursive
988 elif test -f $ac_srcdir/configure; then
990 $SHELL $ac_srcdir/configure --help=recursive
991 elif test -f $ac_srcdir/configure.ac ||
992 test -f $ac_srcdir/configure.in; then
996 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1002 test -n "$ac_init_help" && exit 0
1003 if $ac_init_version; then
1006 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1007 Free Software Foundation, Inc.
1008 This configure script is free software; the Free Software Foundation
1009 gives unlimited permission to copy, distribute and modify it.
1015 This file contains any messages produced by compilers while
1016 running configure, to aid debugging if configure makes a mistake.
1018 It was created by $as_me, which was
1019 generated by GNU Autoconf 2.57. Invocation command line was
1030 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1031 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1032 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1033 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1034 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1036 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1037 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1039 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1040 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1041 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1042 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1043 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1044 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1045 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1053 test -z "$as_dir" && as_dir=.
1054 echo "PATH: $as_dir"
1069 # Keep a trace of the command line.
1070 # Strip out --no-create and --no-recursion so they do not pile up.
1071 # Strip out --silent because we don't want to record it for future runs.
1072 # Also quote any args containing shell meta-characters.
1073 # Make two passes to allow for proper duplicate-argument suppression.
1078 ac_must_keep_next=false
1084 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1088 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1089 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1092 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1094 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1095 if test $ac_must_keep_next = true; then
1096 ac_must_keep_next=false # Got value, back to normal.
1099 *=* | --config-cache | -C | -disable-* | --disable-* \
1100 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1101 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1102 | -with-* | --with-* | -without-* | --without-* | --x)
1103 case "$ac_configure_args0 " in
1104 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1107 -* ) ac_must_keep_next=true ;;
1110 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1111 # Get rid of the leading space.
1117 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1118 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1120 # When interrupted or exit'd, cleanup temporary files, and complete
1121 # config.log. We remove comments because anyway the quotes in there
1122 # would cause problems or look ugly.
1123 # WARNING: Be sure not to use single quotes in there, as some shells,
1124 # such as our DU 5.0 friend, will then `close' the trap.
1125 trap 'exit_status=$?
1126 # Save into config.log some information that might help in debugging.
1131 ## ---------------- ##
1132 ## Cache variables. ##
1133 ## ---------------- ##
1136 # The following way of writing the cache mishandles newlines in values,
1139 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1142 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1143 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1147 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1154 ## ----------------- ##
1155 ## Output variables. ##
1156 ## ----------------- ##
1159 for ac_var in $ac_subst_vars
1161 eval ac_val=$`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1166 if test -n "$ac_subst_files"; then
1173 for ac_var in $ac_subst_files
1175 eval ac_val=$`echo $ac_var`
1176 echo "$ac_var='"'"'$ac_val'"'"'"
1181 if test -s confdefs.h; then
1188 sed "/^$/d" confdefs.h | sort
1191 test "$ac_signal" != 0 &&
1192 echo "$as_me: caught signal $ac_signal"
1193 echo "$as_me: exit $exit_status"
1195 rm -f core core.* *.core &&
1196 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1199 for ac_signal in 1 2 13 15; do
1200 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1204 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1205 rm -rf conftest* confdefs.h
1206 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1209 # Predefined preprocessor variables.
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_NAME "$PACKAGE_NAME"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_STRING "$PACKAGE_STRING"
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1236 # Let the site file select an alternate cache file if it wants to.
1237 # Prefer explicitly selected file to automatically selected ones.
1238 if test -z "$CONFIG_SITE"; then
1239 if test "x$prefix" != xNONE; then
1240 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1242 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1245 for ac_site_file in $CONFIG_SITE; do
1246 if test -r "$ac_site_file"; then
1247 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1248 echo "$as_me: loading site script $ac_site_file" >&6;}
1249 sed 's/^/| /' "$ac_site_file" >&5
1254 if test -r "$cache_file"; then
1255 # Some versions of bash will fail to source /dev/null (special
1256 # files actually), so we avoid doing that.
1257 if test -f "$cache_file"; then
1258 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1259 echo "$as_me: loading cache $cache_file" >&6;}
1261 [\\/]* | ?:[\\/]* ) . $cache_file;;
1262 *) . ./$cache_file;;
1266 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1267 echo "$as_me: creating cache $cache_file" >&6;}
1271 # Check that the precious variables saved in the cache have kept the same
1273 ac_cache_corrupted=false
1274 for ac_var in `(set) 2>&1 |
1275 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1276 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1277 eval ac_new_set=\$ac_env_${ac_var}_set
1278 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1279 eval ac_new_val="\$ac_env_${ac_var}_value"
1280 case $ac_old_set,$ac_new_set in
1282 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1283 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1286 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1287 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1288 ac_cache_corrupted=: ;;
1291 if test "x$ac_old_val" != "x$ac_new_val"; then
1292 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1293 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1294 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1295 echo "$as_me: former value: $ac_old_val" >&2;}
1296 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1297 echo "$as_me: current value: $ac_new_val" >&2;}
1298 ac_cache_corrupted=:
1301 # Pass precious variables to config.status.
1302 if test "$ac_new_set" = set; then
1304 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1306 *) ac_arg=$ac_var=$ac_new_val ;;
1308 case " $ac_configure_args " in
1309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1310 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1314 if $ac_cache_corrupted; then
1315 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1316 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1317 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1318 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1319 { (exit 1); exit 1; }; }
1323 ac_cpp='$CPP $CPPFLAGS'
1324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1352 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1353 if test -f $ac_dir/install-sh; then
1355 ac_install_sh="$ac_aux_dir/install-sh -c"
1357 elif test -f $ac_dir/install.sh; then
1359 ac_install_sh="$ac_aux_dir/install.sh -c"
1361 elif test -f $ac_dir/shtool; then
1363 ac_install_sh="$ac_aux_dir/shtool install -c"
1367 if test -z "$ac_aux_dir"; then
1368 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1369 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1370 { (exit 1); exit 1; }; }
1372 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1373 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1374 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1376 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1384 # Extract the first word of "$ac_prog", so it can be a program name with args.
1385 set dummy $ac_prog; ac_word=$2
1386 echo "$as_me:$LINENO: checking for $ac_word" >&5
1387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1393 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400 test -z "$as_dir" && as_dir=.
1401 for ac_exec_ext in '' $ac_executable_extensions; do
1402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1403 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1413 TRUEPRG=$ac_cv_path_TRUEPRG
1415 if test -n "$TRUEPRG"; then
1416 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1417 echo "${ECHO_T}$TRUEPRG" >&6
1419 echo "$as_me:$LINENO: result: no" >&5
1420 echo "${ECHO_T}no" >&6
1423 test -n "$TRUEPRG" && break
1425 test -n "$TRUEPRG" || TRUEPRG=":"
1427 for ac_prog in false
1429 # Extract the first word of "$ac_prog", so it can be a program name with args.
1430 set dummy $ac_prog; ac_word=$2
1431 echo "$as_me:$LINENO: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445 test -z "$as_dir" && as_dir=.
1446 for ac_exec_ext in '' $ac_executable_extensions; do
1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 FALSEPRG=$ac_cv_path_FALSEPRG
1460 if test -n "$FALSEPRG"; then
1461 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1462 echo "${ECHO_T}$FALSEPRG" >&6
1464 echo "$as_me:$LINENO: result: no" >&5
1465 echo "${ECHO_T}no" >&6
1468 test -n "$FALSEPRG" && break
1470 test -n "$FALSEPRG" || FALSEPRG=":"
1475 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1476 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1477 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1478 echo "configuring for bacula $VERSION ($DATE)"
1483 ac_cpp='$CPP $CPPFLAGS'
1484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487 if test -n "$ac_tool_prefix"; then
1488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1489 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1490 echo "$as_me:$LINENO: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_prog_CC+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 if test -n "$CC"; then
1496 ac_cv_prog_CC="$CC" # Let the user override the test.
1498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502 test -z "$as_dir" && as_dir=.
1503 for ac_exec_ext in '' $ac_executable_extensions; do
1504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1505 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1515 if test -n "$CC"; then
1516 echo "$as_me:$LINENO: result: $CC" >&5
1517 echo "${ECHO_T}$CC" >&6
1519 echo "$as_me:$LINENO: result: no" >&5
1520 echo "${ECHO_T}no" >&6
1524 if test -z "$ac_cv_prog_CC"; then
1526 # Extract the first word of "gcc", so it can be a program name with args.
1527 set dummy gcc; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 if test -n "$ac_ct_CC"; then
1534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 test -z "$as_dir" && as_dir=.
1541 for ac_exec_ext in '' $ac_executable_extensions; do
1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543 ac_cv_prog_ac_ct_CC="gcc"
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1553 if test -n "$ac_ct_CC"; then
1554 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1555 echo "${ECHO_T}$ac_ct_CC" >&6
1557 echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1566 if test -z "$CC"; then
1567 if test -n "$ac_tool_prefix"; then
1568 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1569 set dummy ${ac_tool_prefix}cc; ac_word=$2
1570 echo "$as_me:$LINENO: checking for $ac_word" >&5
1571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572 if test "${ac_cv_prog_CC+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 if test -n "$CC"; then
1576 ac_cv_prog_CC="$CC" # Let the user override the test.
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 test -z "$as_dir" && as_dir=.
1583 for ac_exec_ext in '' $ac_executable_extensions; do
1584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1585 ac_cv_prog_CC="${ac_tool_prefix}cc"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1595 if test -n "$CC"; then
1596 echo "$as_me:$LINENO: result: $CC" >&5
1597 echo "${ECHO_T}$CC" >&6
1599 echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1604 if test -z "$ac_cv_prog_CC"; then
1606 # Extract the first word of "cc", so it can be a program name with args.
1607 set dummy cc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1613 if test -n "$ac_ct_CC"; then
1614 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 test -z "$as_dir" && as_dir=.
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623 ac_cv_prog_ac_ct_CC="cc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1633 if test -n "$ac_ct_CC"; then
1634 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1635 echo "${ECHO_T}$ac_ct_CC" >&6
1637 echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1647 if test -z "$CC"; then
1648 # Extract the first word of "cc", so it can be a program name with args.
1649 set dummy cc; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 test -z "$as_dir" && as_dir=.
1664 for ac_exec_ext in '' $ac_executable_extensions; do
1665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1667 ac_prog_rejected=yes
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 if test $ac_prog_rejected = yes; then
1678 # We found a bogon in the path, so make sure we never use it.
1679 set dummy $ac_cv_prog_CC
1681 if test $# != 0; then
1682 # We chose a different compiler from the bogus one.
1683 # However, it has the same basename, so the bogon will be chosen
1684 # first if we set CC to just the basename; use the full file name.
1686 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1692 if test -n "$CC"; then
1693 echo "$as_me:$LINENO: result: $CC" >&5
1694 echo "${ECHO_T}$CC" >&6
1696 echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1701 if test -z "$CC"; then
1702 if test -n "$ac_tool_prefix"; then
1705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_CC+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 if test -n "$CC"; then
1713 ac_cv_prog_CC="$CC" # Let the user override the test.
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 test -z "$as_dir" && as_dir=.
1720 for ac_exec_ext in '' $ac_executable_extensions; do
1721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732 if test -n "$CC"; then
1733 echo "$as_me:$LINENO: result: $CC" >&5
1734 echo "${ECHO_T}$CC" >&6
1736 echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1740 test -n "$CC" && break
1743 if test -z "$CC"; then
1747 # Extract the first word of "$ac_prog", so it can be a program name with args.
1748 set dummy $ac_prog; ac_word=$2
1749 echo "$as_me:$LINENO: checking for $ac_word" >&5
1750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 if test -n "$ac_ct_CC"; then
1755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 test -z "$as_dir" && as_dir=.
1762 for ac_exec_ext in '' $ac_executable_extensions; do
1763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764 ac_cv_prog_ac_ct_CC="$ac_prog"
1765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1774 if test -n "$ac_ct_CC"; then
1775 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1776 echo "${ECHO_T}$ac_ct_CC" >&6
1778 echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6
1782 test -n "$ac_ct_CC" && break
1791 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1792 See \`config.log' for more details." >&5
1793 echo "$as_me: error: no acceptable C compiler found in \$PATH
1794 See \`config.log' for more details." >&2;}
1795 { (exit 1); exit 1; }; }
1797 # Provide some information about the compiler.
1798 echo "$as_me:$LINENO:" \
1799 "checking for C compiler version" >&5
1800 ac_compiler=`set X $ac_compile; echo $2`
1801 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1802 (eval $ac_compiler --version </dev/null >&5) 2>&5
1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805 (exit $ac_status); }
1806 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1807 (eval $ac_compiler -v </dev/null >&5) 2>&5
1809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1810 (exit $ac_status); }
1811 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1812 (eval $ac_compiler -V </dev/null >&5) 2>&5
1814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1815 (exit $ac_status); }
1817 cat >conftest.$ac_ext <<_ACEOF
1818 #line $LINENO "configure"
1821 cat confdefs.h >>conftest.$ac_ext
1822 cat >>conftest.$ac_ext <<_ACEOF
1823 /* end confdefs.h. */
1833 ac_clean_files_save=$ac_clean_files
1834 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1835 # Try to create an executable without -o first, disregard a.out.
1836 # It will help us diagnose broken compilers, and finding out an intuition
1838 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1839 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1840 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1841 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1842 (eval $ac_link_default) 2>&5
1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845 (exit $ac_status); }; then
1846 # Find the output, starting from the most likely. This scheme is
1847 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1850 # Be careful to initialize this variable, since it used to be cached.
1851 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1853 # b.out is created by i960 compilers.
1854 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1856 test -f "$ac_file" || continue
1858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1861 # This is the source file.
1864 # We found the default executable, but exeext='' is most
1868 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1869 # FIXME: I believe we export ac_cv_exeext for Libtool,
1870 # but it would be cool to find out if it's true. Does anybody
1871 # maintain Libtool? --akim.
1879 echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1882 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1883 See \`config.log' for more details." >&5
1884 echo "$as_me: error: C compiler cannot create executables
1885 See \`config.log' for more details." >&2;}
1886 { (exit 77); exit 77; }; }
1889 ac_exeext=$ac_cv_exeext
1890 echo "$as_me:$LINENO: result: $ac_file" >&5
1891 echo "${ECHO_T}$ac_file" >&6
1893 # Check the compiler produces executables we can run. If not, either
1894 # the compiler is broken, or we cross compile.
1895 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1896 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1897 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1898 # If not cross compiling, check that we can run a simple program.
1899 if test "$cross_compiling" != yes; then
1900 if { ac_try='./$ac_file'
1901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905 (exit $ac_status); }; }; then
1908 if test "$cross_compiling" = maybe; then
1911 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1912 If you meant to cross compile, use \`--host'.
1913 See \`config.log' for more details." >&5
1914 echo "$as_me: error: cannot run C compiled programs.
1915 If you meant to cross compile, use \`--host'.
1916 See \`config.log' for more details." >&2;}
1917 { (exit 1); exit 1; }; }
1921 echo "$as_me:$LINENO: result: yes" >&5
1922 echo "${ECHO_T}yes" >&6
1924 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1925 ac_clean_files=$ac_clean_files_save
1926 # Check the compiler produces executables we can run. If not, either
1927 # the compiler is broken, or we cross compile.
1928 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1929 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1930 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1931 echo "${ECHO_T}$cross_compiling" >&6
1933 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1934 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1936 (eval $ac_link) 2>&5
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; then
1940 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1941 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1942 # work properly (i.e., refer to `conftest.exe'), while it won't with
1944 for ac_file in conftest.exe conftest conftest.*; do
1945 test -f "$ac_file" || continue
1947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1948 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1955 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1956 See \`config.log' for more details." >&5
1957 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1958 See \`config.log' for more details." >&2;}
1959 { (exit 1); exit 1; }; }
1962 rm -f conftest$ac_cv_exeext
1963 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1964 echo "${ECHO_T}$ac_cv_exeext" >&6
1966 rm -f conftest.$ac_ext
1967 EXEEXT=$ac_cv_exeext
1969 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1970 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1971 if test "${ac_cv_objext+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 cat >conftest.$ac_ext <<_ACEOF
1975 #line $LINENO "configure"
1978 cat confdefs.h >>conftest.$ac_ext
1979 cat >>conftest.$ac_ext <<_ACEOF
1980 /* end confdefs.h. */
1990 rm -f conftest.o conftest.obj
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992 (eval $ac_compile) 2>&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); }; then
1996 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1999 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2004 echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2007 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2008 See \`config.log' for more details." >&5
2009 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2010 See \`config.log' for more details." >&2;}
2011 { (exit 1); exit 1; }; }
2014 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2016 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2017 echo "${ECHO_T}$ac_cv_objext" >&6
2018 OBJEXT=$ac_cv_objext
2020 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2021 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2022 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 cat >conftest.$ac_ext <<_ACEOF
2026 #line $LINENO "configure"
2029 cat confdefs.h >>conftest.$ac_ext
2030 cat >>conftest.$ac_ext <<_ACEOF
2031 /* end confdefs.h. */
2044 rm -f conftest.$ac_objext
2045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2046 (eval $ac_compile) 2>&5
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); } &&
2050 { ac_try='test -s conftest.$ac_objext'
2051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }; }; then
2058 echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2063 rm -f conftest.$ac_objext conftest.$ac_ext
2064 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2067 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2068 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2069 GCC=`test $ac_compiler_gnu = yes && echo yes`
2070 ac_test_CFLAGS=${CFLAGS+set}
2071 ac_save_CFLAGS=$CFLAGS
2073 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2074 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2075 if test "${ac_cv_prog_cc_g+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 cat >conftest.$ac_ext <<_ACEOF
2079 #line $LINENO "configure"
2082 cat confdefs.h >>conftest.$ac_ext
2083 cat >>conftest.$ac_ext <<_ACEOF
2084 /* end confdefs.h. */
2094 rm -f conftest.$ac_objext
2095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2096 (eval $ac_compile) 2>&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); } &&
2100 { ac_try='test -s conftest.$ac_objext'
2101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; }; then
2108 echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2113 rm -f conftest.$ac_objext conftest.$ac_ext
2115 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2116 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2117 if test "$ac_test_CFLAGS" = set; then
2118 CFLAGS=$ac_save_CFLAGS
2119 elif test $ac_cv_prog_cc_g = yes; then
2120 if test "$GCC" = yes; then
2126 if test "$GCC" = yes; then
2132 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2133 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2134 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 ac_cv_prog_cc_stdc=no
2139 cat >conftest.$ac_ext <<_ACEOF
2140 #line $LINENO "configure"
2143 cat confdefs.h >>conftest.$ac_ext
2144 cat >>conftest.$ac_ext <<_ACEOF
2145 /* end confdefs.h. */
2148 #include <sys/types.h>
2149 #include <sys/stat.h>
2150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2151 struct buf { int x; };
2152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2153 static char *e (p, i)
2159 static char *f (char * (*g) (char **, int), char **p, ...)
2164 s = g (p, va_arg (v,int));
2168 int test (int i, double x);
2169 struct s1 {int (*f) (int a);};
2170 struct s2 {int (*f) (double a);};
2171 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2177 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2182 # Don't try gcc -ansi; that turns off useful extensions and
2183 # breaks some systems' header files.
2184 # AIX -qlanglvl=ansi
2185 # Ultrix and OSF/1 -std1
2186 # HP-UX 10.20 and later -Ae
2187 # HP-UX older versions -Aa -D_HPUX_SOURCE
2188 # SVR4 -Xc -D__EXTENSIONS__
2189 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2191 CC="$ac_save_CC $ac_arg"
2192 rm -f conftest.$ac_objext
2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); } &&
2198 { ac_try='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2204 ac_cv_prog_cc_stdc=$ac_arg
2207 echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2211 rm -f conftest.$ac_objext
2213 rm -f conftest.$ac_ext conftest.$ac_objext
2218 case "x$ac_cv_prog_cc_stdc" in
2220 echo "$as_me:$LINENO: result: none needed" >&5
2221 echo "${ECHO_T}none needed" >&6 ;;
2223 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2224 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2225 CC="$CC $ac_cv_prog_cc_stdc" ;;
2228 # Some people use a C++ compiler to compile C. Since we use `exit',
2229 # in C++ we need to declare it. In case someone uses the same compiler
2230 # for both compiling C and C++ we need to have the C++ compiler decide
2231 # the declaration of exit, since it's the most demanding environment.
2232 cat >conftest.$ac_ext <<_ACEOF
2237 rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); } &&
2243 { ac_try='test -s conftest.$ac_objext'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2249 for ac_declaration in \
2251 '#include <stdlib.h>' \
2252 'extern "C" void std::exit (int) throw (); using std::exit;' \
2253 'extern "C" void std::exit (int); using std::exit;' \
2254 'extern "C" void exit (int) throw ();' \
2255 'extern "C" void exit (int);' \
2258 cat >conftest.$ac_ext <<_ACEOF
2259 #line $LINENO "configure"
2262 cat confdefs.h >>conftest.$ac_ext
2263 cat >>conftest.$ac_ext <<_ACEOF
2264 /* end confdefs.h. */
2275 rm -f conftest.$ac_objext
2276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277 (eval $ac_compile) 2>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
2281 { ac_try='test -s conftest.$ac_objext'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2289 echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2294 rm -f conftest.$ac_objext conftest.$ac_ext
2295 cat >conftest.$ac_ext <<_ACEOF
2296 #line $LINENO "configure"
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); } &&
2317 { ac_try='test -s conftest.$ac_objext'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2329 rm -f conftest.$ac_objext conftest.$ac_ext
2332 if test -n "$ac_declaration"; then
2333 echo '#ifdef __cplusplus' >>confdefs.h
2334 echo $ac_declaration >>confdefs.h
2335 echo '#endif' >>confdefs.h
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2343 rm -f conftest.$ac_objext conftest.$ac_ext
2345 ac_cpp='$CPP $CPPFLAGS'
2346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351 ac_cpp='$CXXCPP $CPPFLAGS'
2352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2355 if test -n "$ac_tool_prefix"; then
2356 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2360 echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362 if test "${ac_cv_prog_CXX+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 if test -n "$CXX"; then
2366 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2375 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 if test -n "$CXX"; then
2386 echo "$as_me:$LINENO: result: $CXX" >&5
2387 echo "${ECHO_T}$CXX" >&6
2389 echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6
2393 test -n "$CXX" && break
2396 if test -z "$CXX"; then
2398 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2400 # Extract the first word of "$ac_prog", so it can be a program name with args.
2401 set dummy $ac_prog; ac_word=$2
2402 echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 if test -n "$ac_ct_CXX"; then
2408 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 test -z "$as_dir" && as_dir=.
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417 ac_cv_prog_ac_ct_CXX="$ac_prog"
2418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2427 if test -n "$ac_ct_CXX"; then
2428 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2429 echo "${ECHO_T}$ac_ct_CXX" >&6
2431 echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6
2435 test -n "$ac_ct_CXX" && break
2437 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2443 # Provide some information about the compiler.
2444 echo "$as_me:$LINENO:" \
2445 "checking for C++ compiler version" >&5
2446 ac_compiler=`set X $ac_compile; echo $2`
2447 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2448 (eval $ac_compiler --version </dev/null >&5) 2>&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }
2452 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2453 (eval $ac_compiler -v </dev/null >&5) 2>&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }
2457 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2458 (eval $ac_compiler -V </dev/null >&5) 2>&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }
2463 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2464 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2465 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 cat >conftest.$ac_ext <<_ACEOF
2469 #line $LINENO "configure"
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2487 rm -f conftest.$ac_objext
2488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489 (eval $ac_compile) 2>&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } &&
2493 { ac_try='test -s conftest.$ac_objext'
2494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; }; then
2501 echo "$as_me: failed program was:" >&5
2502 sed 's/^/| /' conftest.$ac_ext >&5
2506 rm -f conftest.$ac_objext conftest.$ac_ext
2507 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2510 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2511 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2512 GXX=`test $ac_compiler_gnu = yes && echo yes`
2513 ac_test_CXXFLAGS=${CXXFLAGS+set}
2514 ac_save_CXXFLAGS=$CXXFLAGS
2516 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2517 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2518 if test "${ac_cv_prog_cxx_g+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 cat >conftest.$ac_ext <<_ACEOF
2522 #line $LINENO "configure"
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2537 rm -f conftest.$ac_objext
2538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539 (eval $ac_compile) 2>&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); } &&
2543 { ac_try='test -s conftest.$ac_objext'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2549 ac_cv_prog_cxx_g=yes
2551 echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2556 rm -f conftest.$ac_objext conftest.$ac_ext
2558 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2559 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2560 if test "$ac_test_CXXFLAGS" = set; then
2561 CXXFLAGS=$ac_save_CXXFLAGS
2562 elif test $ac_cv_prog_cxx_g = yes; then
2563 if test "$GXX" = yes; then
2569 if test "$GXX" = yes; then
2575 for ac_declaration in \
2577 '#include <stdlib.h>' \
2578 'extern "C" void std::exit (int) throw (); using std::exit;' \
2579 'extern "C" void std::exit (int); using std::exit;' \
2580 'extern "C" void exit (int) throw ();' \
2581 'extern "C" void exit (int);' \
2584 cat >conftest.$ac_ext <<_ACEOF
2585 #line $LINENO "configure"
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2601 rm -f conftest.$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -s conftest.$ac_objext'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2615 echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2620 rm -f conftest.$ac_objext conftest.$ac_ext
2621 cat >conftest.$ac_ext <<_ACEOF
2622 #line $LINENO "configure"
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2637 rm -f conftest.$ac_objext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639 (eval $ac_compile) 2>&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2655 rm -f conftest.$ac_objext conftest.$ac_ext
2658 if test -n "$ac_declaration"; then
2659 echo '#ifdef __cplusplus' >>confdefs.h
2660 echo $ac_declaration >>confdefs.h
2661 echo '#endif' >>confdefs.h
2665 ac_cpp='$CPP $CPPFLAGS'
2666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670 if test "x$CC" != xcc; then
2671 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2672 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2674 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2675 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2677 set dummy $CC; ac_cc=`echo $2 |
2678 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2679 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 cat >conftest.$ac_ext <<_ACEOF
2683 #line $LINENO "configure"
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2698 # Make sure it works both with $CC and with simple cc.
2699 # We do the test twice because some compilers refuse to overwrite an
2700 # existing .o file with -o, though they will create one.
2701 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2702 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); };
2713 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2714 if test "x$CC" != xcc; then
2715 # Test first that cc exists at all.
2716 if { ac_try='cc -c conftest.$ac_ext >&5'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2722 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2723 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); };
2737 # cc exists but doesn't like -o.
2738 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2743 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2748 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2749 echo "$as_me:$LINENO: result: yes" >&5
2750 echo "${ECHO_T}yes" >&6
2752 echo "$as_me:$LINENO: result: no" >&5
2753 echo "${ECHO_T}no" >&6
2755 cat >>confdefs.h <<\_ACEOF
2756 #define NO_MINUS_C_MINUS_O 1
2762 ac_cpp='$CPP $CPPFLAGS'
2763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2767 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2768 # On Suns, sometimes $CPP names a directory.
2769 if test -n "$CPP" && test -d "$CPP"; then
2772 if test -z "$CPP"; then
2773 if test "${ac_cv_prog_CPP+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 # Double quotes because CPP needs to be expanded
2777 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2780 for ac_c_preproc_warn_flag in '' yes
2782 # Use a header file that comes with gcc, so configuring glibc
2783 # with a fresh cross-compiler works.
2784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2785 # <limits.h> exists even on freestanding compilers.
2786 # On the NeXT, cc -E runs the code through the compiler's parser,
2787 # not just through cpp. "Syntax error" is here to catch this case.
2788 cat >conftest.$ac_ext <<_ACEOF
2789 #line $LINENO "configure"
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2796 # include <limits.h>
2798 # include <assert.h>
2802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2805 grep -v '^ *+' conftest.er1 >conftest.err
2807 cat conftest.err >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); } >/dev/null; then
2810 if test -s conftest.err; then
2811 ac_cpp_err=$ac_c_preproc_warn_flag
2818 if test -z "$ac_cpp_err"; then
2821 echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2824 # Broken: fails on valid input.
2827 rm -f conftest.err conftest.$ac_ext
2829 # OK, works on sane cases. Now check whether non-existent headers
2830 # can be detected and how.
2831 cat >conftest.$ac_ext <<_ACEOF
2832 #line $LINENO "configure"
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2838 #include <ac_nonexistent.h>
2840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2843 grep -v '^ *+' conftest.er1 >conftest.err
2845 cat conftest.err >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } >/dev/null; then
2848 if test -s conftest.err; then
2849 ac_cpp_err=$ac_c_preproc_warn_flag
2856 if test -z "$ac_cpp_err"; then
2857 # Broken: success on invalid input.
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 # Passes both tests.
2867 rm -f conftest.err conftest.$ac_ext
2870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2871 rm -f conftest.err conftest.$ac_ext
2872 if $ac_preproc_ok; then
2884 echo "$as_me:$LINENO: result: $CPP" >&5
2885 echo "${ECHO_T}$CPP" >&6
2887 for ac_c_preproc_warn_flag in '' yes
2889 # Use a header file that comes with gcc, so configuring glibc
2890 # with a fresh cross-compiler works.
2891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2892 # <limits.h> exists even on freestanding compilers.
2893 # On the NeXT, cc -E runs the code through the compiler's parser,
2894 # not just through cpp. "Syntax error" is here to catch this case.
2895 cat >conftest.$ac_ext <<_ACEOF
2896 #line $LINENO "configure"
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2903 # include <limits.h>
2905 # include <assert.h>
2909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2912 grep -v '^ *+' conftest.er1 >conftest.err
2914 cat conftest.err >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } >/dev/null; then
2917 if test -s conftest.err; then
2918 ac_cpp_err=$ac_c_preproc_warn_flag
2925 if test -z "$ac_cpp_err"; then
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2931 # Broken: fails on valid input.
2934 rm -f conftest.err conftest.$ac_ext
2936 # OK, works on sane cases. Now check whether non-existent headers
2937 # can be detected and how.
2938 cat >conftest.$ac_ext <<_ACEOF
2939 #line $LINENO "configure"
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2945 #include <ac_nonexistent.h>
2947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950 grep -v '^ *+' conftest.er1 >conftest.err
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } >/dev/null; then
2955 if test -s conftest.err; then
2956 ac_cpp_err=$ac_c_preproc_warn_flag
2963 if test -z "$ac_cpp_err"; then
2964 # Broken: success on invalid input.
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 # Passes both tests.
2974 rm -f conftest.err conftest.$ac_ext
2977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2978 rm -f conftest.err conftest.$ac_ext
2979 if $ac_preproc_ok; then
2982 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2983 See \`config.log' for more details." >&5
2984 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2985 See \`config.log' for more details." >&2;}
2986 { (exit 1); exit 1; }; }
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2996 echo "$as_me:$LINENO: checking for egrep" >&5
2997 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2998 if test "${ac_cv_prog_egrep+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3002 then ac_cv_prog_egrep='grep -E'
3003 else ac_cv_prog_egrep='egrep'
3006 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3007 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3008 EGREP=$ac_cv_prog_egrep
3011 if test $ac_cv_c_compiler_gnu = yes; then
3012 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3013 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3014 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 ac_pattern="Autoconf.*'x'"
3018 cat >conftest.$ac_ext <<_ACEOF
3019 #line $LINENO "configure"
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3029 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3030 ac_cv_prog_gcc_traditional=yes
3032 ac_cv_prog_gcc_traditional=no
3037 if test $ac_cv_prog_gcc_traditional = no; then
3038 cat >conftest.$ac_ext <<_ACEOF
3039 #line $LINENO "configure"
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3049 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3050 ac_cv_prog_gcc_traditional=yes
3056 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3057 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3058 if test $ac_cv_prog_gcc_traditional = yes; then
3059 CC="$CC -traditional"
3063 if test "x$CC" = xgcc
3065 cat >>confdefs.h <<\_ACEOF
3071 # Find a good install program. We prefer a C program (faster),
3072 # so one script is as good as another. But avoid the broken or
3073 # incompatible versions:
3074 # SysV /etc/install, /usr/sbin/install
3075 # SunOS /usr/etc/install
3076 # IRIX /sbin/install
3078 # AmigaOS /C/install, which installs bootblocks on floppy discs
3079 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3080 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3081 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3082 # ./install, which can be erroneously created by make from ./install.sh.
3083 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3084 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3085 if test -z "$INSTALL"; then
3086 if test "${ac_cv_path_install+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 test -z "$as_dir" && as_dir=.
3094 # Account for people who put trailing slashes in PATH elements.
3096 ./ | .// | /cC/* | \
3097 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3100 # OSF1 and SCO ODT 3.0 have their own names for install.
3101 # Don't use installbsd from OSF since it installs stuff as root
3103 for ac_prog in ginstall scoinst install; do
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3106 if test $ac_prog = install &&
3107 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3108 # AIX install. It has an incompatible calling convention.
3110 elif test $ac_prog = install &&
3111 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3112 # program-specific install script used by HP pwplus--don't use.
3115 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3127 if test "${ac_cv_path_install+set}" = set; then
3128 INSTALL=$ac_cv_path_install
3130 # As a last resort, use the slow shell script. We don't cache a
3131 # path for INSTALL within a source directory, because that will
3132 # break other packages using the cache if that directory is
3133 # removed, or if the path is relative.
3134 INSTALL=$ac_install_sh
3137 echo "$as_me:$LINENO: result: $INSTALL" >&5
3138 echo "${ECHO_T}$INSTALL" >&6
3140 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3141 # It thinks the first close brace ends the variable substitution.
3142 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3144 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3146 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3148 if test -n "$ac_tool_prefix"; then
3149 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3151 echo "$as_me:$LINENO: checking for $ac_word" >&5
3152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3153 if test "${ac_cv_prog_RANLIB+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3156 if test -n "$RANLIB"; then
3157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 RANLIB=$ac_cv_prog_RANLIB
3176 if test -n "$RANLIB"; then
3177 echo "$as_me:$LINENO: result: $RANLIB" >&5
3178 echo "${ECHO_T}$RANLIB" >&6
3180 echo "$as_me:$LINENO: result: no" >&5
3181 echo "${ECHO_T}no" >&6
3185 if test -z "$ac_cv_prog_RANLIB"; then
3186 ac_ct_RANLIB=$RANLIB
3187 # Extract the first word of "ranlib", so it can be a program name with args.
3188 set dummy ranlib; ac_word=$2
3189 echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 if test -n "$ac_ct_RANLIB"; then
3195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_ac_ct_RANLIB="ranlib"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3215 if test -n "$ac_ct_RANLIB"; then
3216 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3217 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3219 echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3223 RANLIB=$ac_ct_RANLIB
3225 RANLIB="$ac_cv_prog_RANLIB"
3228 # Extract the first word of "mv", so it can be a program name with args.
3229 set dummy mv; ac_word=$2
3230 echo "$as_me:$LINENO: checking for $ac_word" >&5
3231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3232 if test "${ac_cv_path_MV+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 test -z "$as_dir" && as_dir=.
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3247 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3260 if test -n "$MV"; then
3261 echo "$as_me:$LINENO: result: $MV" >&5
3262 echo "${ECHO_T}$MV" >&6
3264 echo "$as_me:$LINENO: result: no" >&5
3265 echo "${ECHO_T}no" >&6
3268 # Extract the first word of "rm", so it can be a program name with args.
3269 set dummy rm; ac_word=$2
3270 echo "$as_me:$LINENO: checking for $ac_word" >&5
3271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3272 if test "${ac_cv_path_RM+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3300 if test -n "$RM"; then
3301 echo "$as_me:$LINENO: result: $RM" >&5
3302 echo "${ECHO_T}$RM" >&6
3304 echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3308 # Extract the first word of "cp", so it can be a program name with args.
3309 set dummy cp; ac_word=$2
3310 echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3312 if test "${ac_cv_path_CP+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3340 if test -n "$CP"; then
3341 echo "$as_me:$LINENO: result: $CP" >&5
3342 echo "${ECHO_T}$CP" >&6
3344 echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3348 # Extract the first word of "sed", so it can be a program name with args.
3349 set dummy sed; ac_word=$2
3350 echo "$as_me:$LINENO: checking for $ac_word" >&5
3351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3352 if test "${ac_cv_path_SED+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3380 if test -n "$SED"; then
3381 echo "$as_me:$LINENO: result: $SED" >&5
3382 echo "${ECHO_T}$SED" >&6
3384 echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3388 # Extract the first word of "awk", so it can be a program name with args.
3389 set dummy awk; ac_word=$2
3390 echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_path_AWK+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3420 if test -n "$AWK"; then
3421 echo "$as_me:$LINENO: result: $AWK" >&5
3422 echo "${ECHO_T}$AWK" >&6
3424 echo "$as_me:$LINENO: result: no" >&5
3425 echo "${ECHO_T}no" >&6
3428 # Extract the first word of "echo", so it can be a program name with args.
3429 set dummy echo; ac_word=$2
3430 echo "$as_me:$LINENO: checking for $ac_word" >&5
3431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3432 if test "${ac_cv_path_ECHO+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3458 ECHO=$ac_cv_path_ECHO
3460 if test -n "$ECHO"; then
3461 echo "$as_me:$LINENO: result: $ECHO" >&5
3462 echo "${ECHO_T}$ECHO" >&6
3464 echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3468 # Extract the first word of "cmp", so it can be a program name with args.
3469 set dummy cmp; ac_word=$2
3470 echo "$as_me:$LINENO: checking for $ac_word" >&5
3471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3472 if test "${ac_cv_path_CMP+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3500 if test -n "$CMP"; then
3501 echo "$as_me:$LINENO: result: $CMP" >&5
3502 echo "${ECHO_T}$CMP" >&6
3504 echo "$as_me:$LINENO: result: no" >&5
3505 echo "${ECHO_T}no" >&6
3508 # Extract the first word of "tbl", so it can be a program name with args.
3509 set dummy tbl; ac_word=$2
3510 echo "$as_me:$LINENO: checking for $ac_word" >&5
3511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512 if test "${ac_cv_path_TBL+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3540 if test -n "$TBL"; then
3541 echo "$as_me:$LINENO: result: $TBL" >&5
3542 echo "${ECHO_T}$TBL" >&6
3544 echo "$as_me:$LINENO: result: no" >&5
3545 echo "${ECHO_T}no" >&6
3548 # Extract the first word of "ar", so it can be a program name with args.
3549 set dummy ar; ac_word=$2
3550 echo "$as_me:$LINENO: checking for $ac_word" >&5
3551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3552 if test "${ac_cv_path_AR+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3580 if test -n "$AR"; then
3581 echo "$as_me:$LINENO: result: $AR" >&5
3582 echo "${ECHO_T}$AR" >&6
3584 echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3588 # Extract the first word of "openssl", so it can be a program name with args.
3589 set dummy openssl; ac_word=$2
3590 echo "$as_me:$LINENO: checking for $ac_word" >&5
3591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3592 if test "${ac_cv_path_OPENSSL+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3618 OPENSSL=$ac_cv_path_OPENSSL
3620 if test -n "$OPENSSL"; then
3621 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3622 echo "${ECHO_T}$OPENSSL" >&6
3624 echo "$as_me:$LINENO: result: no" >&5
3625 echo "${ECHO_T}no" >&6
3628 # Extract the first word of "mtx", so it can be a program name with args.
3629 set dummy mtx; ac_word=$2
3630 echo "$as_me:$LINENO: checking for $ac_word" >&5
3631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3632 if test "${ac_cv_path_MTX+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 test -z "$as_dir" && as_dir=.
3645 for ac_exec_ext in '' $ac_executable_extensions; do
3646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3647 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3660 if test -n "$MTX"; then
3661 echo "$as_me:$LINENO: result: $MTX" >&5
3662 echo "${ECHO_T}$MTX" >&6
3664 echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3668 # Extract the first word of "pkg-config", so it can be a program name with args.
3669 set dummy pkg-config; ac_word=$2
3670 echo "$as_me:$LINENO: checking for $ac_word" >&5
3671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3672 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3698 PKGCONFIG=$ac_cv_path_PKGCONFIG
3700 if test -n "$PKGCONFIG"; then
3701 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3702 echo "${ECHO_T}$PKGCONFIG" >&6
3704 echo "$as_me:$LINENO: result: no" >&5
3705 echo "${ECHO_T}no" >&6
3708 # Extract the first word of "wx-config", so it can be a program name with args.
3709 set dummy wx-config; ac_word=$2
3710 echo "$as_me:$LINENO: checking for $ac_word" >&5
3711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3712 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 test -z "$as_dir" && as_dir=.
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3738 WXCONFIG=$ac_cv_path_WXCONFIG
3740 if test -n "$WXCONFIG"; then
3741 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3742 echo "${ECHO_T}$WXCONFIG" >&6
3744 echo "$as_me:$LINENO: result: no" >&5
3745 echo "${ECHO_T}no" >&6
3748 # Extract the first word of "cdrecord", so it can be a program name with args.
3749 set dummy cdrecord; ac_word=$2
3750 echo "$as_me:$LINENO: checking for $ac_word" >&5
3751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3752 if test "${ac_cv_path_CDRECORD+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
3768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 CDRECORD=$ac_cv_path_CDRECORD
3779 if test -n "$CDRECORD"; then
3780 echo "$as_me:$LINENO: result: $CDRECORD" >&5
3781 echo "${ECHO_T}$CDRECORD" >&6
3783 echo "$as_me:$LINENO: result: no" >&5
3784 echo "${ECHO_T}no" >&6
3788 test -n "$ARFLAG" || ARFLAGS="cr"
3801 # Make sure we can run config.sub.
3802 $ac_config_sub sun4 >/dev/null 2>&1 ||
3803 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3804 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3805 { (exit 1); exit 1; }; }
3807 echo "$as_me:$LINENO: checking build system type" >&5
3808 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3809 if test "${ac_cv_build+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 ac_cv_build_alias=$build_alias
3813 test -z "$ac_cv_build_alias" &&
3814 ac_cv_build_alias=`$ac_config_guess`
3815 test -z "$ac_cv_build_alias" &&
3816 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3817 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3818 { (exit 1); exit 1; }; }
3819 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3820 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3821 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3822 { (exit 1); exit 1; }; }
3825 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3826 echo "${ECHO_T}$ac_cv_build" >&6
3828 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3829 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3830 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3834 echo "$as_me:$LINENO: checking host system type" >&5
3835 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3836 if test "${ac_cv_host+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 ac_cv_host_alias=$host_alias
3840 test -z "$ac_cv_host_alias" &&
3841 ac_cv_host_alias=$ac_cv_build_alias
3842 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3843 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3844 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3845 { (exit 1); exit 1; }; }
3848 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3849 echo "${ECHO_T}$ac_cv_host" >&6
3851 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3852 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3853 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3857 *cygwin* ) CYGWIN=yes;;
3861 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3867 HAVE_SUN_OS_FALSE='#'
3869 HAVE_SUN_OS_TRUE='#'
3872 cat >>confdefs.h <<\_ACEOF
3873 #define HAVE_SUN_OS 1
3881 HAVE_SUN_OS_FALSE='#'
3883 HAVE_SUN_OS_TRUE='#'
3888 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3894 HAVE_OSF1_OS_FALSE='#'
3896 HAVE_OSF1_OS_TRUE='#'
3899 cat >>confdefs.h <<\_ACEOF
3900 #define HAVE_OSF1_OS 1
3908 HAVE_OSF1_OS_FALSE='#'
3910 HAVE_OSF1_OS_TRUE='#'
3915 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3921 HAVE_AIX_OS_FALSE='#'
3923 HAVE_AIX_OS_TRUE='#'
3926 cat >>confdefs.h <<\_ACEOF
3927 #define HAVE_AIX_OS 1
3935 HAVE_AIX_OS_FALSE='#'
3937 HAVE_AIX_OS_TRUE='#'
3942 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3948 HAVE_HPUX_OS_FALSE='#'
3950 HAVE_HPUX_OS_TRUE='#'
3953 cat >>confdefs.h <<\_ACEOF
3954 #define HAVE_HPUX_OS 1
3962 HAVE_HPUX_OS_FALSE='#'
3964 HAVE_HPUX_OS_TRUE='#'
3969 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3975 HAVE_LINUX_OS_FALSE='#'
3977 HAVE_LINUX_OS_TRUE='#'
3978 HAVE_LINUX_OS_FALSE=
3980 cat >>confdefs.h <<\_ACEOF
3981 #define HAVE_LINUX_OS 1
3989 HAVE_LINUX_OS_FALSE='#'
3991 HAVE_LINUX_OS_TRUE='#'
3992 HAVE_LINUX_OS_FALSE=
3996 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4001 HAVE_FREEBSD_OS_TRUE=
4002 HAVE_FREEBSD_OS_FALSE='#'
4004 HAVE_FREEBSD_OS_TRUE='#'
4005 HAVE_FREEBSD_OS_FALSE=
4007 cat >>confdefs.h <<\_ACEOF
4008 #define HAVE_FREEBSD_OS 1
4015 HAVE_FREEBSD_OS_TRUE=
4016 HAVE_FREEBSD_OS_FALSE='#'
4018 HAVE_FREEBSD_OS_TRUE='#'
4019 HAVE_FREEBSD_OS_FALSE=
4023 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4028 HAVE_NETBSD_OS_TRUE=
4029 HAVE_NETBSD_OS_FALSE='#'
4031 HAVE_NETBSD_OS_TRUE='#'
4032 HAVE_NETBSD_OS_FALSE=
4034 cat >>confdefs.h <<\_ACEOF
4035 #define HAVE_NETBSD_OS 1
4042 HAVE_NETBSD_OS_TRUE=
4043 HAVE_NETBSD_OS_FALSE='#'
4045 HAVE_NETBSD_OS_TRUE='#'
4046 HAVE_NETBSD_OS_FALSE=
4050 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4055 HAVE_OPENBSD_OS_TRUE=
4056 HAVE_OPENBSD_OS_FALSE='#'
4058 HAVE_OPENBSD_OS_TRUE='#'
4059 HAVE_OPENBSD_OS_FALSE=
4061 cat >>confdefs.h <<\_ACEOF
4062 #define HAVE_OPENBSD_OS 1
4069 HAVE_OPENBSD_OS_TRUE=
4070 HAVE_OPENBSD_OS_FALSE='#'
4072 HAVE_OPENBSD_OS_TRUE='#'
4073 HAVE_OPENBSD_OS_FALSE=
4077 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4083 HAVE_BSDI_OS_FALSE='#'
4085 HAVE_BSDI_OS_TRUE='#'
4088 cat >>confdefs.h <<\_ACEOF
4089 #define HAVE_BSDI_OS 1
4097 HAVE_BSDI_OS_FALSE='#'
4099 HAVE_BSDI_OS_TRUE='#'
4104 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4110 HAVE_SGI_OS_FALSE='#'
4112 HAVE_SGI_OS_TRUE='#'
4115 cat >>confdefs.h <<\_ACEOF
4116 #define HAVE_SGI_OS 1
4124 HAVE_SGI_OS_FALSE='#'
4126 HAVE_SGI_OS_TRUE='#'
4131 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4137 HAVE_IRIX_OS_FALSE='#'
4139 HAVE_IRIX_OS_TRUE='#'
4142 cat >>confdefs.h <<\_ACEOF
4143 #define HAVE_IRIX_OS 1
4151 HAVE_IRIX_OS_FALSE='#'
4153 HAVE_IRIX_OS_TRUE='#'
4158 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4163 HAVE_DARWIN_OS_TRUE=
4164 HAVE_DARWIN_OS_FALSE='#'
4166 HAVE_DARWIN_OS_TRUE='#'
4167 HAVE_DARWIN_OS_FALSE=
4169 cat >>confdefs.h <<\_ACEOF
4170 #define HAVE_DARWIN_OS 1
4177 HAVE_DARWIN_OS_TRUE=
4178 HAVE_DARWIN_OS_FALSE='#'
4180 HAVE_DARWIN_OS_TRUE='#'
4181 HAVE_DARWIN_OS_FALSE=
4186 # -----------------------------------------------------------
4187 # ----------------------------------------------------------
4188 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4189 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4190 if test "x$DISTNAME" != "x"
4192 echo "distname set to $DISTNAME"
4193 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4196 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4199 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4202 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4205 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4208 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4211 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4214 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4217 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4220 elif test -f /etc/SuSE-release
4223 elif test -d /etc/SuSEconfig
4226 elif test -f /etc/mandrake-release
4229 elif test -f /etc/whitebox-release
4232 elif test -f /etc/redhat-release
4235 elif test -f /etc/gentoo-release
4238 elif test -f /etc/debian_version
4241 elif test -f /etc/slackware-version
4244 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4247 elif test -f /etc/engarde-version
4250 elif test "$CYGWIN" = yes
4253 cat >>confdefs.h <<\_ACEOF
4254 #define HAVE_CYGWIN 1
4260 echo "$as_me:$LINENO: result: done" >&5
4261 echo "${ECHO_T}done" >&6
4264 # -----------------------------------------------------------
4265 # ----------------------------------------------------------
4270 INSIDE_GNOME_COMMON_TRUE=
4271 INSIDE_GNOME_COMMON_FALSE='#'
4273 INSIDE_GNOME_COMMON_TRUE='#'
4274 INSIDE_GNOME_COMMON_FALSE=
4277 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4279 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4282 # ------------------------------------------------------------------
4283 # If the user has not set --prefix, we set our default to nothing.
4284 # In this case, if the user has not set --sysconfdir, we set it
4285 # to the package default of /etc/bacula. If either --prefix or
4286 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4287 # ------------------------------------------------------------------
4288 if test x${prefix} = xNONE ; then
4289 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4290 sysconfdir=/etc/bacula
4294 sysconfdir=`eval echo ${sysconfdir}`
4296 # -------------------------------------------------------------------------
4297 # If the user has not set --exec-prefix, we default to ${prefix}
4298 # -------------------------------------------------------------------------
4299 if test x${exec_prefix} = xNONE ; then
4300 exec_prefix=${prefix}
4303 # ------------------------------------------------------------------
4304 # If the user has not set --sbindir, we set our default as /sbin
4305 # ------------------------------------------------------------------
4306 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4307 sbindir=${exec_prefix}/sbin
4309 sbindir=`eval echo ${sbindir}`
4311 # ------------------------------------------------------------------
4312 # All list of languages for which a translation exist. Each
4313 # language is separated by a space.
4314 # ------------------------------------------------------------------
4317 for ac_prog in msgfmt
4319 # Extract the first word of "$ac_prog", so it can be a program name with args.
4320 set dummy $ac_prog; ac_word=$2
4321 echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4323 if test "${ac_cv_path_MSGFMT+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 MSGFMT=$ac_cv_path_MSGFMT
4350 if test -n "$MSGFMT"; then
4351 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4352 echo "${ECHO_T}$MSGFMT" >&6
4354 echo "$as_me:$LINENO: result: no" >&5
4355 echo "${ECHO_T}no" >&6
4358 test -n "$MSGFMT" && break
4360 test -n "$MSGFMT" || MSGFMT="no"
4362 if test "$MSGFMT" = "no"
4364 echo 'msgfmt program not found, disabling NLS !'
4366 USE_INCLUDED_LIBINTL=no
4374 support_postgresql=no
4375 support_smartalloc=yes
4376 support_readline=yes
4379 support_wx_console=no
4381 support_static_tools=no
4382 support_static_fd=no
4383 support_static_sd=no
4384 support_static_dir=no
4385 support_static_cons=no
4387 build_client_only=no
4393 # -------------------------------------------
4394 # gnome (default off)
4395 # -------------------------------------------
4396 # Check whether --enable-gnome or --disable-gnome was given.
4397 if test "${enable_gnome+set}" = set; then
4398 enableval="$enable_gnome"
4399 if test x$enableval = xyes; then
4405 if test x$support_gnome = xyes; then
4406 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4408 if test $pkg = 0; then
4409 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4410 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4411 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4412 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4417 GNOME_DIR=src/gnome2-console
4418 gnome_version="Version 2.x"
4431 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4432 if test "${with_gnome_includes+set}" = set; then
4433 withval="$with_gnome_includes"
4435 CFLAGS="$CFLAGS -I$withval"
4440 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4441 if test "${with_gnome_libs+set}" = set; then
4442 withval="$with_gnome_libs"
4444 LDFLAGS="$LDFLAGS -L$withval"
4445 gnome_prefix=$withval
4450 # Check whether --with-gnome or --without-gnome was given.
4451 if test "${with_gnome+set}" = set; then
4452 withval="$with_gnome"
4453 if test x$withval = xyes; then
4457 if test "x$withval" = xno; then
4461 LDFLAGS="$LDFLAGS -L$withval/lib"
4462 CFLAGS="$CFLAGS -I$withval/include"
4463 gnome_prefix=$withval/lib
4470 if test "x$want_gnome" = xyes; then
4472 # Extract the first word of "gnome-config", so it can be a program name with args.
4473 set dummy gnome-config; ac_word=$2
4474 echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 case $GNOME_CONFIG in
4481 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4502 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4504 if test -n "$GNOME_CONFIG"; then
4505 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4506 echo "${ECHO_T}$GNOME_CONFIG" >&6
4508 echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4512 if test "$GNOME_CONFIG" = "no"; then
4513 no_gnome_config="yes"
4515 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4516 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4517 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4518 echo "$as_me:$LINENO: result: yes" >&5
4519 echo "${ECHO_T}yes" >&6
4522 # Extract the first word of "orbit-config", so it can be a program name with args.
4523 set dummy orbit-config; ac_word=$2
4524 echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4526 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 case $ORBIT_CONFIG in
4531 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4541 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4552 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4554 if test -n "$ORBIT_CONFIG"; then
4555 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4556 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4558 echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6
4562 # Extract the first word of "orbit-idl", so it can be a program name with args.
4563 set dummy orbit-idl; ac_word=$2
4564 echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4566 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4592 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4594 if test -n "$ORBIT_IDL"; then
4595 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4596 echo "${ECHO_T}$ORBIT_IDL" >&6
4598 echo "$as_me:$LINENO: result: no" >&5
4599 echo "${ECHO_T}no" >&6
4602 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4603 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4604 if test "${gnome_cv_orbit_found+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4609 gnome_cv_orbit_found=no
4611 gnome_cv_orbit_found=yes
4615 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4616 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4619 if test x$gnome_cv_orbit_found = xyes; then
4621 HAVE_ORBIT_FALSE='#'
4626 if test x$gnome_cv_orbit_found = xyes; then
4628 ORBIT_CFLAGS=`orbit-config --cflags client server`
4629 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4633 if test xfail = xfailure; then
4634 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4635 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4636 { (exit 1); exit 1; }; }
4640 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4641 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4642 if test "${gnome_cv_gnorba_found+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 gnome_cv_gnorba_found=no
4647 if test x$gnome_cv_orbit_found = xyes; then
4648 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4649 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4650 if test -n "$GNORBA_LIBS"; then
4651 gnome_cv_gnorba_found=yes
4656 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4657 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4660 if test x$gnome_cv_gnorba_found = xyes; then
4662 HAVE_GNORBA_FALSE='#'
4664 HAVE_GNORBA_TRUE='#'
4667 if test x$gnome_cv_orbit_found = xyes; then
4669 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4670 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4674 if test xfail = xfailure; then
4675 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4676 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4677 { (exit 1); exit 1; }; }
4681 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4682 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4683 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4684 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4685 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4686 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4687 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4690 echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6
4692 no_gnome_config="yes"
4696 if test x$exec_prefix = xNONE; then
4697 if test x$prefix = xNONE; then
4698 gnome_prefix=$ac_default_prefix/lib
4700 gnome_prefix=$prefix/lib
4703 gnome_prefix=`eval echo \`echo $libdir\``
4706 if test "$no_gnome_config" = "yes"; then
4707 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4708 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4709 if test -f $gnome_prefix/gnomeConf.sh; then
4710 echo "$as_me:$LINENO: result: found" >&5
4711 echo "${ECHO_T}found" >&6
4712 echo "loading gnome configuration from" \
4713 "$gnome_prefix/gnomeConf.sh"
4714 . $gnome_prefix/gnomeConf.sh
4717 echo "$as_me:$LINENO: result: not found" >&5
4718 echo "${ECHO_T}not found" >&6
4719 if test xfail = xfail; then
4720 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4721 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4722 { (exit 1); exit 1; }; }
4731 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4732 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4736 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4737 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4738 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4741 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4742 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4743 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4746 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4747 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4748 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4750 echo "$as_me:$LINENO: result: unknown library" >&5
4751 echo "${ECHO_T}unknown library" >&6
4753 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4754 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4759 GNOME_DIR=src/gnome-console
4760 gnome_version="Version 1.4"
4766 # -------------------------------------------
4767 # wx-console (default off)
4768 # -------------------------------------------
4769 # Check whether --enable-wx-console or --disable-wx-console was given.
4770 if test "${enable_wx_console+set}" = set; then
4771 enableval="$enable_wx_console"
4772 if test x$enableval = xyes; then
4773 support_wx_console=yes
4778 if test x$support_wx_console = xyes; then
4779 abc=`$WXCONFIG --cppflags`
4781 if test $pkg = 0; then
4782 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4783 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4786 WX_DIR=src/wx-console
4789 echo "wx-config program not found. wx-console disabled."
4791 support_wx_console=no
4797 # -------------------------------------------
4798 # tray-monitor (default off)
4799 # -------------------------------------------
4800 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4801 if test "${enable_tray_monitor+set}" = set; then
4802 enableval="$enable_tray_monitor"
4803 if test x$enableval = xyes; then
4804 support_tray_monitor=yes
4809 if test x$support_tray_monitor = xyes; then
4810 abc=`$PKGCONFIG --exists gtk+-2.0`
4812 if test $pkg = 0; then
4813 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4814 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4817 TRAY_MONITOR_DIR=src/tray-monitor
4818 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4820 if test $pkg = 0; then
4821 cat >>confdefs.h <<\_ACEOF
4822 #define HAVE_GTK_2_4 1
4830 # -------------------------------------------
4831 # smartalloc (default off)
4832 # -------------------------------------------
4833 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4834 if test "${enable_smartalloc+set}" = set; then
4835 enableval="$enable_smartalloc"
4836 if test x$enableval = xno; then
4837 support_smartalloc=no
4841 if test x$support_smartalloc = xyes; then
4842 cat >>confdefs.h <<\_ACEOF
4843 #define SMARTALLOC 1
4848 # -------------------------------------------
4849 # static-tools (default off)
4850 # -------------------------------------------
4851 # Check whether --enable-static-tools or --disable-static-tools was given.
4852 if test "${enable_static_tools+set}" = set; then
4853 enableval="$enable_static_tools"
4854 if test x$enableval = xyes; then
4855 support_static_tools=yes
4860 if test x$support_static_tools = xyes; then
4861 TTOOL_LDFLAGS="-static"
4865 # -------------------------------------------
4866 # static-fd (default off)
4867 # -------------------------------------------
4868 # Check whether --enable-static-fd or --disable-static-fd was given.
4869 if test "${enable_static_fd+set}" = set; then
4870 enableval="$enable_static_fd"
4871 if test x$enableval = xyes; then
4872 support_static_fd=yes
4877 if test x$support_static_fd = xyes; then
4878 STATIC_FD="static-bacula-fd"
4882 # -------------------------------------------
4883 # static-sd (default off)
4884 # -------------------------------------------
4885 # Check whether --enable-static-sd or --disable-static-sd was given.
4886 if test "${enable_static_sd+set}" = set; then
4887 enableval="$enable_static_sd"
4888 if test x$enableval = xyes; then
4889 support_static_sd=yes
4894 if test x$support_static_sd = xyes; then
4895 STATIC_SD="static-bacula-sd"
4899 # -------------------------------------------
4900 # static-dir (default off)
4901 # -------------------------------------------
4902 # Check whether --enable-static-dir or --disable-static-dir was given.
4903 if test "${enable_static_dir+set}" = set; then
4904 enableval="$enable_static_dir"
4905 if test x$enableval = xyes; then
4906 support_static_dir=yes
4911 if test x$support_static_dir = xyes; then
4912 STATIC_DIR="static-bacula-dir"
4916 # -------------------------------------------
4917 # static-cons (default off)
4918 # -------------------------------------------
4919 # Check whether --enable-static-cons or --disable-static-cons was given.
4920 if test "${enable_static_cons+set}" = set; then
4921 enableval="$enable_static_cons"
4922 if test x$enableval = xyes; then
4923 support_static_cons=yes
4930 if test x$support_static_cons = xyes; then
4931 STATIC_CONS="static-bconsole"
4932 STATIC_GNOME_CONS="static-gnome-console"
4933 STATIC_WX_CONS="static-wx-console"
4939 # -------------------------------------------
4940 # client_only (default off)
4941 # -------------------------------------------
4942 # Check whether --enable-client-only or --disable-client-only was given.
4943 if test "${enable_client_only+set}" = set; then
4944 enableval="$enable_client_only"
4945 if test x$enableval = xyes; then
4946 build_client_only=yes
4951 if test x$build_client_only = xno; then
4958 # ---------------------------------------------------
4959 # Check for conio (Bacula readline substitute)(
4960 # ---------------------------------------------------
4961 # this allows you to turn it completely off
4962 # Check whether --enable-conio or --disable-conio was given.
4963 if test "${enable_conio+set}" = set; then
4964 enableval="$enable_conio"
4965 if test x$enableval = xno; then
4971 if test x$support_conio = xyes; then
4972 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4973 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4974 if test "${ac_cv_header_stdc+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 cat >conftest.$ac_ext <<_ACEOF
4978 #line $LINENO "configure"
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4997 rm -f conftest.$ac_objext
4998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4999 (eval $ac_compile) 2>&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } &&
5003 { ac_try='test -s conftest.$ac_objext'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; }; then
5009 ac_cv_header_stdc=yes
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5014 ac_cv_header_stdc=no
5016 rm -f conftest.$ac_objext conftest.$ac_ext
5018 if test $ac_cv_header_stdc = yes; then
5019 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5020 cat >conftest.$ac_ext <<_ACEOF
5021 #line $LINENO "configure"
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031 $EGREP "memchr" >/dev/null 2>&1; then
5034 ac_cv_header_stdc=no
5040 if test $ac_cv_header_stdc = yes; then
5041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5042 cat >conftest.$ac_ext <<_ACEOF
5043 #line $LINENO "configure"
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5053 $EGREP "free" >/dev/null 2>&1; then
5056 ac_cv_header_stdc=no
5062 if test $ac_cv_header_stdc = yes; then
5063 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5064 if test "$cross_compiling" = yes; then
5067 cat >conftest.$ac_ext <<_ACEOF
5068 #line $LINENO "configure"
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5075 #if ((' ' & 0x0FF) == 0x020)
5076 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5077 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5079 # define ISLOWER(c) \
5080 (('a' <= (c) && (c) <= 'i') \
5081 || ('j' <= (c) && (c) <= 'r') \
5082 || ('s' <= (c) && (c) <= 'z'))
5083 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5086 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5091 for (i = 0; i < 256; i++)
5092 if (XOR (islower (i), ISLOWER (i))
5093 || toupper (i) != TOUPPER (i))
5098 rm -f conftest$ac_exeext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5100 (eval $ac_link) 2>&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5111 echo "$as_me: program exited with status $ac_status" >&5
5112 echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5116 ac_cv_header_stdc=no
5118 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5122 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5123 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5124 if test $ac_cv_header_stdc = yes; then
5126 cat >>confdefs.h <<\_ACEOF
5127 #define STDC_HEADERS 1
5132 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5142 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5143 inttypes.h stdint.h unistd.h
5145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5146 echo "$as_me:$LINENO: checking for $ac_header" >&5
5147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 cat >conftest.$ac_ext <<_ACEOF
5152 #line $LINENO "configure"
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h. */
5158 $ac_includes_default
5160 #include <$ac_header>
5162 rm -f conftest.$ac_objext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5164 (eval $ac_compile) 2>&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } &&
5168 { ac_try='test -s conftest.$ac_objext'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; }; then
5174 eval "$as_ac_Header=yes"
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5179 eval "$as_ac_Header=no"
5181 rm -f conftest.$ac_objext conftest.$ac_ext
5183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5186 cat >>confdefs.h <<_ACEOF
5187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5195 if test "${ac_cv_header_termcap_h+set}" = set; then
5196 echo "$as_me:$LINENO: checking for termcap.h" >&5
5197 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5198 if test "${ac_cv_header_termcap_h+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5202 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5204 # Is the header compilable?
5205 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5206 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5207 cat >conftest.$ac_ext <<_ACEOF
5208 #line $LINENO "configure"
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 $ac_includes_default
5215 #include <termcap.h>
5217 rm -f conftest.$ac_objext
5218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219 (eval $ac_compile) 2>&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } &&
5223 { ac_try='test -s conftest.$ac_objext'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; }; then
5229 ac_header_compiler=yes
5231 echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5234 ac_header_compiler=no
5236 rm -f conftest.$ac_objext conftest.$ac_ext
5237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5238 echo "${ECHO_T}$ac_header_compiler" >&6
5240 # Is the header present?
5241 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5242 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5243 cat >conftest.$ac_ext <<_ACEOF
5244 #line $LINENO "configure"
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5250 #include <termcap.h>
5252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5255 grep -v '^ *+' conftest.er1 >conftest.err
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } >/dev/null; then
5260 if test -s conftest.err; then
5261 ac_cpp_err=$ac_c_preproc_warn_flag
5268 if test -z "$ac_cpp_err"; then
5269 ac_header_preproc=yes
5271 echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5274 ac_header_preproc=no
5276 rm -f conftest.err conftest.$ac_ext
5277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5278 echo "${ECHO_T}$ac_header_preproc" >&6
5280 # So? What about this header?
5281 case $ac_header_compiler:$ac_header_preproc in
5283 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5284 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5285 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5286 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5289 ## ------------------------------------ ##
5290 ## Report this to bug-autoconf@gnu.org. ##
5291 ## ------------------------------------ ##
5294 sed "s/^/$as_me: WARNING: /" >&2
5297 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5298 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5299 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5300 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5301 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5302 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5305 ## ------------------------------------ ##
5306 ## Report this to bug-autoconf@gnu.org. ##
5307 ## ------------------------------------ ##
5310 sed "s/^/$as_me: WARNING: /" >&2
5313 echo "$as_me:$LINENO: checking for termcap.h" >&5
5314 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5315 if test "${ac_cv_header_termcap_h+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 ac_cv_header_termcap_h=$ac_header_preproc
5320 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5321 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5324 if test $ac_cv_header_termcap_h = yes; then
5325 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5326 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5327 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 ac_check_lib_save_LIBS=$LIBS
5331 LIBS="-ltermcap $LIBS"
5332 cat >conftest.$ac_ext <<_ACEOF
5333 #line $LINENO "configure"
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h. */
5340 /* Override any gcc2 internal prototype to avoid an error. */
5344 /* We use char because int might match the return type of a gcc2
5345 builtin and then its argument prototype would still apply. */
5355 rm -f conftest.$ac_objext conftest$ac_exeext
5356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5357 (eval $ac_link) 2>&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } &&
5361 { ac_try='test -s conftest$ac_exeext'
5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; }; then
5367 ac_cv_lib_termcap_tgetent=yes
5369 echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5372 ac_cv_lib_termcap_tgetent=no
5374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5375 LIBS=$ac_check_lib_save_LIBS
5377 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5378 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5379 if test $ac_cv_lib_termcap_tgetent = yes; then
5380 CONS_LIBS="-ltermcap"
5386 cat >>confdefs.h <<\_ACEOF
5387 #define HAVE_CONIO 1
5392 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5393 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5394 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 ac_check_lib_save_LIBS=$LIBS
5398 LIBS="-lncurses $LIBS"
5399 cat >conftest.$ac_ext <<_ACEOF
5400 #line $LINENO "configure"
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h. */
5407 /* Override any gcc2 internal prototype to avoid an error. */
5411 /* We use char because int might match the return type of a gcc2
5412 builtin and then its argument prototype would still apply. */
5422 rm -f conftest.$ac_objext conftest$ac_exeext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5424 (eval $ac_link) 2>&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } &&
5428 { ac_try='test -s conftest$ac_exeext'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; }; then
5434 ac_cv_lib_ncurses_tgetent=yes
5436 echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5439 ac_cv_lib_ncurses_tgetent=no
5441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5442 LIBS=$ac_check_lib_save_LIBS
5444 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5445 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5446 if test $ac_cv_lib_ncurses_tgetent = yes; then
5447 CONS_LIBS="-lncurses"
5453 cat >>confdefs.h <<\_ACEOF
5454 #define HAVE_CONIO 1
5467 for ac_header in curses.h
5469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5471 echo "$as_me:$LINENO: checking for $ac_header" >&5
5472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5479 # Is the header compilable?
5480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5482 cat >conftest.$ac_ext <<_ACEOF
5483 #line $LINENO "configure"
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 $ac_includes_default
5490 #include <$ac_header>
5492 rm -f conftest.$ac_objext
5493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5494 (eval $ac_compile) 2>&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } &&
5498 { ac_try='test -s conftest.$ac_objext'
5499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; }; then
5504 ac_header_compiler=yes
5506 echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5509 ac_header_compiler=no
5511 rm -f conftest.$ac_objext conftest.$ac_ext
5512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5513 echo "${ECHO_T}$ac_header_compiler" >&6
5515 # Is the header present?
5516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5518 cat >conftest.$ac_ext <<_ACEOF
5519 #line $LINENO "configure"
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5525 #include <$ac_header>
5527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5530 grep -v '^ *+' conftest.er1 >conftest.err
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } >/dev/null; then
5535 if test -s conftest.err; then
5536 ac_cpp_err=$ac_c_preproc_warn_flag
5543 if test -z "$ac_cpp_err"; then
5544 ac_header_preproc=yes
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5549 ac_header_preproc=no
5551 rm -f conftest.err conftest.$ac_ext
5552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5553 echo "${ECHO_T}$ac_header_preproc" >&6
5555 # So? What about this header?
5556 case $ac_header_compiler:$ac_header_preproc in
5558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5564 ## ------------------------------------ ##
5565 ## Report this to bug-autoconf@gnu.org. ##
5566 ## ------------------------------------ ##
5569 sed "s/^/$as_me: WARNING: /" >&2
5572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5580 ## ------------------------------------ ##
5581 ## Report this to bug-autoconf@gnu.org. ##
5582 ## ------------------------------------ ##
5585 sed "s/^/$as_me: WARNING: /" >&2
5588 echo "$as_me:$LINENO: checking for $ac_header" >&5
5589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 eval "$as_ac_Header=$ac_header_preproc"
5595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5600 cat >>confdefs.h <<_ACEOF
5601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5608 echo "$as_me:$LINENO: checking for term.h" >&5
5609 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5610 if test "${ac_cv_header_term_h+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 cat >conftest.$ac_ext <<_ACEOF
5614 #line $LINENO "configure"
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5627 rm -f conftest.$ac_objext
5628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5629 (eval $ac_compile) 2>&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } &&
5633 { ac_try='test -s conftest.$ac_objext'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; }; then
5639 ac_cv_header_term_h=yes
5641 echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5644 ac_cv_header_term_h=no
5646 rm -f conftest.$ac_objext conftest.$ac_ext
5648 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5649 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5650 if test $ac_cv_header_term_h = yes; then
5651 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5652 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5653 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 ac_check_lib_save_LIBS=$LIBS
5657 LIBS="-lcurses $LIBS"
5658 cat >conftest.$ac_ext <<_ACEOF
5659 #line $LINENO "configure"
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5666 /* Override any gcc2 internal prototype to avoid an error. */
5670 /* We use char because int might match the return type of a gcc2
5671 builtin and then its argument prototype would still apply. */
5681 rm -f conftest.$ac_objext conftest$ac_exeext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683 (eval $ac_link) 2>&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); } &&
5687 { ac_try='test -s conftest$ac_exeext'
5688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); }; }; then
5693 ac_cv_lib_curses_tgetent=yes
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5698 ac_cv_lib_curses_tgetent=no
5700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5701 LIBS=$ac_check_lib_save_LIBS
5703 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5704 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5705 if test $ac_cv_lib_curses_tgetent = yes; then
5706 CONS_LIBS="-lcurses"
5712 cat >>confdefs.h <<\_ACEOF
5713 #define HAVE_CONIO 1
5721 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5732 # ---------------------------------------------------
5733 # Check for readline support/directory (default off)
5734 # ---------------------------------------------------
5735 # this allows you to turn it completely off
5736 # Check whether --enable-readline or --disable-readline was given.
5737 if test "${enable_readline+set}" = set; then
5738 enableval="$enable_readline"
5739 if test x$enableval = xno; then
5746 if test x$support_readline = xyes; then
5748 # Check whether --with-readline or --without-readline was given.
5749 if test "${with_readline+set}" = set; then
5750 withval="$with_readline"
5752 case "$with_readline" in
5755 if test "$with_readline" != "yes"; then
5756 CONS_INC="-I${with_readline}"
5757 CONS_LDFLAGS="-L$with_readline"
5759 with_readline="/usr/include/readline"
5761 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5763 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5764 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5771 # Is the header compilable?
5772 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5773 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5774 cat >conftest.$ac_ext <<_ACEOF
5775 #line $LINENO "configure"
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781 $ac_includes_default
5782 #include <${with_readline}/readline.h>
5784 rm -f conftest.$ac_objext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786 (eval $ac_compile) 2>&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } &&
5790 { ac_try='test -s conftest.$ac_objext'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; }; then
5796 ac_header_compiler=yes
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5801 ac_header_compiler=no
5803 rm -f conftest.$ac_objext conftest.$ac_ext
5804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5805 echo "${ECHO_T}$ac_header_compiler" >&6
5807 # Is the header present?
5808 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5809 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5810 cat >conftest.$ac_ext <<_ACEOF
5811 #line $LINENO "configure"
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 #include <${with_readline}/readline.h>
5819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5822 grep -v '^ *+' conftest.er1 >conftest.err
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } >/dev/null; then
5827 if test -s conftest.err; then
5828 ac_cpp_err=$ac_c_preproc_warn_flag
5835 if test -z "$ac_cpp_err"; then
5836 ac_header_preproc=yes
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5841 ac_header_preproc=no
5843 rm -f conftest.err conftest.$ac_ext
5844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5845 echo "${ECHO_T}$ac_header_preproc" >&6
5847 # So? What about this header?
5848 case $ac_header_compiler:$ac_header_preproc in
5850 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5851 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5852 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5853 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5856 ## ------------------------------------ ##
5857 ## Report this to bug-autoconf@gnu.org. ##
5858 ## ------------------------------------ ##
5861 sed "s/^/$as_me: WARNING: /" >&2
5864 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5865 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5866 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5867 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5868 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5869 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5872 ## ------------------------------------ ##
5873 ## Report this to bug-autoconf@gnu.org. ##
5874 ## ------------------------------------ ##
5877 sed "s/^/$as_me: WARNING: /" >&2
5880 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5881 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 eval "$as_ac_Header=$ac_header_preproc"
5887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5892 cat >>confdefs.h <<\_ACEOF
5893 #define HAVE_READLINE 1
5896 CONS_LIBS="-lreadline -ltermcap"
5901 echo "readline.h not found. readline turned off ..."
5913 # check for standard readline library
5914 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5915 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5916 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5917 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5921 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5923 # Is the header compilable?
5924 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5925 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5926 cat >conftest.$ac_ext <<_ACEOF
5927 #line $LINENO "configure"
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5933 $ac_includes_default
5934 #include </usr/include/readline/readline.h>
5936 rm -f conftest.$ac_objext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938 (eval $ac_compile) 2>&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } &&
5942 { ac_try='test -s conftest.$ac_objext'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; }; then
5948 ac_header_compiler=yes
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 ac_header_compiler=no
5955 rm -f conftest.$ac_objext conftest.$ac_ext
5956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5957 echo "${ECHO_T}$ac_header_compiler" >&6
5959 # Is the header present?
5960 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5961 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5962 cat >conftest.$ac_ext <<_ACEOF
5963 #line $LINENO "configure"
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 #include </usr/include/readline/readline.h>
5971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5974 grep -v '^ *+' conftest.er1 >conftest.err
5976 cat conftest.err >&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); } >/dev/null; then
5979 if test -s conftest.err; then
5980 ac_cpp_err=$ac_c_preproc_warn_flag
5987 if test -z "$ac_cpp_err"; then
5988 ac_header_preproc=yes
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5993 ac_header_preproc=no
5995 rm -f conftest.err conftest.$ac_ext
5996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5997 echo "${ECHO_T}$ac_header_preproc" >&6
5999 # So? What about this header?
6000 case $ac_header_compiler:$ac_header_preproc in
6002 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6003 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6004 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6005 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6008 ## ------------------------------------ ##
6009 ## Report this to bug-autoconf@gnu.org. ##
6010 ## ------------------------------------ ##
6013 sed "s/^/$as_me: WARNING: /" >&2
6016 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6017 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6019 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6020 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6021 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6024 ## ------------------------------------ ##
6025 ## Report this to bug-autoconf@gnu.org. ##
6026 ## ------------------------------------ ##
6029 sed "s/^/$as_me: WARNING: /" >&2
6032 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6033 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6034 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6039 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6040 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6043 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6044 cat >>confdefs.h <<\_ACEOF
6045 #define HAVE_READLINE 1
6049 CONS_INC="-I/usr/include/readline"
6050 CONS_LIBS="-lreadline -ltermcap"
6054 # Did not find standard library, so try Bacula's default
6055 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6057 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6058 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6065 # Is the header compilable?
6066 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6067 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6068 cat >conftest.$ac_ext <<_ACEOF
6069 #line $LINENO "configure"
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6075 $ac_includes_default
6076 #include <${TOP_DIR}/depkgs/readline/readline.h>
6078 rm -f conftest.$ac_objext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6080 (eval $ac_compile) 2>&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try='test -s conftest.$ac_objext'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6090 ac_header_compiler=yes
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6095 ac_header_compiler=no
6097 rm -f conftest.$ac_objext conftest.$ac_ext
6098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6099 echo "${ECHO_T}$ac_header_compiler" >&6
6101 # Is the header present?
6102 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6103 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6104 cat >conftest.$ac_ext <<_ACEOF
6105 #line $LINENO "configure"
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6111 #include <${TOP_DIR}/depkgs/readline/readline.h>
6113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6116 grep -v '^ *+' conftest.er1 >conftest.err
6118 cat conftest.err >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } >/dev/null; then
6121 if test -s conftest.err; then
6122 ac_cpp_err=$ac_c_preproc_warn_flag
6129 if test -z "$ac_cpp_err"; then
6130 ac_header_preproc=yes
6132 echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6135 ac_header_preproc=no
6137 rm -f conftest.err conftest.$ac_ext
6138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6139 echo "${ECHO_T}$ac_header_preproc" >&6
6141 # So? What about this header?
6142 case $ac_header_compiler:$ac_header_preproc in
6144 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6145 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6146 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6147 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6150 ## ------------------------------------ ##
6151 ## Report this to bug-autoconf@gnu.org. ##
6152 ## ------------------------------------ ##
6155 sed "s/^/$as_me: WARNING: /" >&2
6158 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6159 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6160 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6161 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6162 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6163 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6166 ## ------------------------------------ ##
6167 ## Report this to bug-autoconf@gnu.org. ##
6168 ## ------------------------------------ ##
6171 sed "s/^/$as_me: WARNING: /" >&2
6174 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6175 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 eval "$as_ac_Header=$ac_header_preproc"
6181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6186 cat >>confdefs.h <<\_ACEOF
6187 #define HAVE_READLINE 1
6191 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6192 CONS_LIBS="-lreadline -lhistory -ltermcap"
6193 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6194 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6198 echo "readline.h not found. readline turned off ..."
6224 # Minimal stuff for readline Makefile configuration
6227 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6228 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6229 if test "${ac_cv_header_stat_broken+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 cat >conftest.$ac_ext <<_ACEOF
6233 #line $LINENO "configure"
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6239 #include <sys/types.h>
6240 #include <sys/stat.h>
6242 #if defined(S_ISBLK) && defined(S_IFDIR)
6243 # if S_ISBLK (S_IFDIR)
6248 #if defined(S_ISBLK) && defined(S_IFCHR)
6249 # if S_ISBLK (S_IFCHR)
6254 #if defined(S_ISLNK) && defined(S_IFREG)
6255 # if S_ISLNK (S_IFREG)
6260 #if defined(S_ISSOCK) && defined(S_IFREG)
6261 # if S_ISSOCK (S_IFREG)
6267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6268 $EGREP "You lose" >/dev/null 2>&1; then
6269 ac_cv_header_stat_broken=yes
6271 ac_cv_header_stat_broken=no
6276 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6277 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6278 if test $ac_cv_header_stat_broken = yes; then
6280 cat >>confdefs.h <<\_ACEOF
6281 #define STAT_MACROS_BROKEN 1
6292 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6293 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6294 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6295 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 cat >conftest.$ac_ext <<_ACEOF
6300 #line $LINENO "configure"
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6306 #include <sys/types.h>
6318 rm -f conftest.$ac_objext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320 (eval $ac_compile) 2>&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try='test -s conftest.$ac_objext'
6325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; }; then
6330 eval "$as_ac_Header=yes"
6332 echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6335 eval "$as_ac_Header=no"
6337 rm -f conftest.$ac_objext conftest.$ac_ext
6339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6342 cat >>confdefs.h <<_ACEOF
6343 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6346 ac_header_dirent=$ac_hdr; break
6350 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6351 if test $ac_header_dirent = dirent.h; then
6352 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6353 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6354 if test "${ac_cv_search_opendir+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 ac_func_search_save_LIBS=$LIBS
6358 ac_cv_search_opendir=no
6359 cat >conftest.$ac_ext <<_ACEOF
6360 #line $LINENO "configure"
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6367 /* Override any gcc2 internal prototype to avoid an error. */
6371 /* We use char because int might match the return type of a gcc2
6372 builtin and then its argument prototype would still apply. */
6382 rm -f conftest.$ac_objext conftest$ac_exeext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6384 (eval $ac_link) 2>&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } &&
6388 { ac_try='test -s conftest$ac_exeext'
6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; }; then
6394 ac_cv_search_opendir="none required"
6396 echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6401 if test "$ac_cv_search_opendir" = no; then
6402 for ac_lib in dir; do
6403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6404 cat >conftest.$ac_ext <<_ACEOF
6405 #line $LINENO "configure"
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6412 /* Override any gcc2 internal prototype to avoid an error. */
6416 /* We use char because int might match the return type of a gcc2
6417 builtin and then its argument prototype would still apply. */
6427 rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429 (eval $ac_link) 2>&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try='test -s conftest$ac_exeext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_cv_search_opendir="-l$ac_lib"
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6449 LIBS=$ac_func_search_save_LIBS
6451 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6452 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6453 if test "$ac_cv_search_opendir" != no; then
6454 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6459 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6460 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6461 if test "${ac_cv_search_opendir+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 ac_func_search_save_LIBS=$LIBS
6465 ac_cv_search_opendir=no
6466 cat >conftest.$ac_ext <<_ACEOF
6467 #line $LINENO "configure"
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6474 /* Override any gcc2 internal prototype to avoid an error. */
6478 /* We use char because int might match the return type of a gcc2
6479 builtin and then its argument prototype would still apply. */
6489 rm -f conftest.$ac_objext conftest$ac_exeext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6491 (eval $ac_link) 2>&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } &&
6495 { ac_try='test -s conftest$ac_exeext'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; }; then
6501 ac_cv_search_opendir="none required"
6503 echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6508 if test "$ac_cv_search_opendir" = no; then
6510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6511 cat >conftest.$ac_ext <<_ACEOF
6512 #line $LINENO "configure"
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h. */
6519 /* Override any gcc2 internal prototype to avoid an error. */
6523 /* We use char because int might match the return type of a gcc2
6524 builtin and then its argument prototype would still apply. */
6534 rm -f conftest.$ac_objext conftest$ac_exeext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6536 (eval $ac_link) 2>&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } &&
6540 { ac_try='test -s conftest$ac_exeext'
6541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
6546 ac_cv_search_opendir="-l$ac_lib"
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6556 LIBS=$ac_func_search_save_LIBS
6558 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6559 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6560 if test "$ac_cv_search_opendir" != no; then
6561 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6575 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6578 echo "$as_me:$LINENO: checking for $ac_func" >&5
6579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6580 if eval "test \"\${$as_ac_var+set}\" = set"; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6583 cat >conftest.$ac_ext <<_ACEOF
6584 #line $LINENO "configure"
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 /* System header to define __stub macros and hopefully few prototypes,
6591 which can conflict with char $ac_func (); below.
6592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6593 <limits.h> exists even on freestanding compilers. */
6595 # include <limits.h>
6597 # include <assert.h>
6599 /* Override any gcc2 internal prototype to avoid an error. */
6604 /* We use char because int might match the return type of a gcc2
6605 builtin and then its argument prototype would still apply. */
6607 /* The GNU C library defines this for functions which it implements
6608 to always fail with ENOSYS. Some functions are actually named
6609 something starting with __ and the normal name is an alias. */
6610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6613 char (*f) () = $ac_func;
6622 return f != $ac_func;
6627 rm -f conftest.$ac_objext conftest$ac_exeext
6628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6629 (eval $ac_link) 2>&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } &&
6633 { ac_try='test -s conftest$ac_exeext'
6634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); }; }; then
6639 eval "$as_ac_var=yes"
6641 echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6644 eval "$as_ac_var=no"
6646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6650 if test `eval echo '${'$as_ac_var'}'` = yes; then
6651 cat >>confdefs.h <<_ACEOF
6652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6660 for ac_func in nanosleep nl_langinfo
6662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6663 echo "$as_me:$LINENO: checking for $ac_func" >&5
6664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6665 if eval "test \"\${$as_ac_var+set}\" = set"; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 cat >conftest.$ac_ext <<_ACEOF
6669 #line $LINENO "configure"
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6675 /* System header to define __stub macros and hopefully few prototypes,
6676 which can conflict with char $ac_func (); below.
6677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6678 <limits.h> exists even on freestanding compilers. */
6680 # include <limits.h>
6682 # include <assert.h>
6684 /* Override any gcc2 internal prototype to avoid an error. */
6689 /* We use char because int might match the return type of a gcc2
6690 builtin and then its argument prototype would still apply. */
6692 /* The GNU C library defines this for functions which it implements
6693 to always fail with ENOSYS. Some functions are actually named
6694 something starting with __ and the normal name is an alias. */
6695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6698 char (*f) () = $ac_func;
6707 return f != $ac_func;
6712 rm -f conftest.$ac_objext conftest$ac_exeext
6713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6714 (eval $ac_link) 2>&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } &&
6718 { ac_try='test -s conftest$ac_exeext'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; }; then
6724 eval "$as_ac_var=yes"
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6729 eval "$as_ac_var=no"
6731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6735 if test `eval echo '${'$as_ac_var'}'` = yes; then
6736 cat >>confdefs.h <<_ACEOF
6737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6744 for ac_header in varargs.h
6746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6748 echo "$as_me:$LINENO: checking for $ac_header" >&5
6749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6756 # Is the header compilable?
6757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6759 cat >conftest.$ac_ext <<_ACEOF
6760 #line $LINENO "configure"
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h. */
6766 $ac_includes_default
6767 #include <$ac_header>
6769 rm -f conftest.$ac_objext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6771 (eval $ac_compile) 2>&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } &&
6775 { ac_try='test -s conftest.$ac_objext'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; }; then
6781 ac_header_compiler=yes
6783 echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6786 ac_header_compiler=no
6788 rm -f conftest.$ac_objext conftest.$ac_ext
6789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6790 echo "${ECHO_T}$ac_header_compiler" >&6
6792 # Is the header present?
6793 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6795 cat >conftest.$ac_ext <<_ACEOF
6796 #line $LINENO "configure"
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6802 #include <$ac_header>
6804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6807 grep -v '^ *+' conftest.er1 >conftest.err
6809 cat conftest.err >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); } >/dev/null; then
6812 if test -s conftest.err; then
6813 ac_cpp_err=$ac_c_preproc_warn_flag
6820 if test -z "$ac_cpp_err"; then
6821 ac_header_preproc=yes
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6826 ac_header_preproc=no
6828 rm -f conftest.err conftest.$ac_ext
6829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6830 echo "${ECHO_T}$ac_header_preproc" >&6
6832 # So? What about this header?
6833 case $ac_header_compiler:$ac_header_preproc in
6835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6841 ## ------------------------------------ ##
6842 ## Report this to bug-autoconf@gnu.org. ##
6843 ## ------------------------------------ ##
6846 sed "s/^/$as_me: WARNING: /" >&2
6849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6852 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6857 ## ------------------------------------ ##
6858 ## Report this to bug-autoconf@gnu.org. ##
6859 ## ------------------------------------ ##
6862 sed "s/^/$as_me: WARNING: /" >&2
6865 echo "$as_me:$LINENO: checking for $ac_header" >&5
6866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 eval "$as_ac_Header=$ac_header_preproc"
6872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6877 cat >>confdefs.h <<_ACEOF
6878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6886 # End of readline/conio stuff
6887 # -----------------------------------------------------------------------
6889 # -----------------------------------------------------------------------
6890 # Check for Python support
6892 echo "$as_me:$LINENO: checking for Python support" >&5
6893 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
6895 # Check whether --with-python or --without-python was given.
6896 if test "${with_python+set}" = set; then
6897 withval="$with_python"
6901 if test "$withval" != "no"; then
6902 if test "$withval" = "yes"; then
6903 if test -f /usr/include/python2.2/Python.h; then
6904 PYTHON_INCDIR=-I/usr/include/python2.2
6905 PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
6906 elif test -f $prefix/include/Python.h; then
6907 PYTHON_INCDIR=-I$prefix/include
6908 PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
6910 echo "$as_me:$LINENO: result: no" >&5
6911 echo "${ECHO_T}no" >&6
6912 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
6913 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
6914 { (exit 1); exit 1; }; }
6917 if test -f $withval/Python.h; then
6918 PYTHON_INCDIR=-I$withval
6919 PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
6920 elif test -f $withval/include/Python.h; then
6921 PYTHON_INCDIR=-I$withval/include
6922 PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
6924 echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6
6926 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
6927 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
6928 { (exit 1); exit 1; }; }
6931 cat >>confdefs.h <<\_ACEOF
6932 #define HAVE_PYTHON 1
6935 echo "$as_me:$LINENO: result: yes" >&5
6936 echo "${ECHO_T}yes" >&6
6940 echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6
6946 echo "$as_me:$LINENO: result: no" >&5
6947 echo "${ECHO_T}no" >&6
6954 # -------------------------------------------
6955 # check for cdrecord writer location
6956 # get scsibus,target,lun
6957 # -------------------------------------------
6959 if test ! x$CDRECORD = x ; then
6960 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
6961 if test x${CDSTL} = x ; then
6962 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
6964 if test x${CDSTL} = x ; then
6971 # ---------------------------------------------------
6972 # Check for GMP support/directory
6973 # ---------------------------------------------------
6977 # [ --with-gmp[=DIR] Specify gmp library directory],
6979 # case "$with_gmp" in
6982 # if test "$with_gmp" != "yes"; then
6983 # GMP_INC="-I$with_gmp"
6985 # GMP_LDFLAGS="-L$with_gmp"
6987 # with_gmp="/usr/include"
6989 # AC_CHECK_HEADER($with_gmp/gmp.h,
6990 # [ AC_MSG_RESULT(yes)
6991 # AC_DEFINE(HAVE_GMP)
6995 # [ AC_MSG_ERROR([*** gmp library missing])
7001 # # check for standard gmp library
7002 # AC_CHECK_HEADER(/usr/include/gmp.h,
7003 # [ AC_MSG_RESULT(yes)
7004 # AC_DEFINE(HAVE_GMP)
7009 # # Did not find standard library, so use our own
7010 # AC_MSG_RESULT(yes)
7011 # AC_DEFINE(HAVE_GMP)
7014 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
7016 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
7017 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
7023 #AC_SUBST(GMP_LDFLAGS)
7027 # -----------------------------------------------------------------------
7030 # ---------------------------------------------------
7031 # Check for CWEB support/directory
7032 # ---------------------------------------------------
7037 # [ --with-cweb[=DIR] Specify cweb library directory],
7039 # case "$with_cweb" in
7042 # if test "$with_cweb" != "yes"; then
7043 # CWEB_INC="-I$with_cweb"
7044 # CWEB_LIBS="-lcweb"
7045 # CWEB_LDFLAGS="-L$with_cweb"
7047 # with_cweb="/usr/include"
7049 # AC_CHECK_HEADER($with_cweb/cweb.h,
7050 # [ AC_MSG_RESULT(yes)
7051 # AC_DEFINE(HAVE_CWEB)
7052 # CWEB_LIBS="-lcweb"
7055 # [ AC_MSG_ERROR([*** cweb library missing])
7061 # # check for standard cweb library
7062 # AC_CHECK_HEADER(/usr/include/cweb.h,
7063 # [ AC_MSG_RESULT(yes)
7064 # AC_DEFINE(HAVE_CWEB)
7067 # CWEB_LIBS="-lcweb"
7069 # # Did not find starndard library, so use our own
7070 # AC_MSG_RESULT(yes)
7071 # AC_DEFINE(HAVE_CWEB)
7074 # CWEB=${TOP_DIR}/depkgs/cweb
7075 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
7076 # CWEB_LIBS="-lcweb"
7077 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
7078 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
7084 #AC_SUBST(CWEB_LIBS)
7085 #AC_SUBST(CWEB_LDFLAGS)
7089 # -----------------------------------------------------------------------
7092 # Find where sockets are (especially for Solaris)
7093 # Do this before the TCP Wrappers test since tcp wrappers
7094 # uses the socket library and some linkers are stupid.
7096 echo "$as_me:$LINENO: checking for socket" >&5
7097 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7098 if test "${ac_cv_func_socket+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 cat >conftest.$ac_ext <<_ACEOF
7102 #line $LINENO "configure"
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 /* System header to define __stub macros and hopefully few prototypes,
7109 which can conflict with char socket (); below.
7110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7111 <limits.h> exists even on freestanding compilers. */
7113 # include <limits.h>
7115 # include <assert.h>
7117 /* Override any gcc2 internal prototype to avoid an error. */
7122 /* We use char because int might match the return type of a gcc2
7123 builtin and then its argument prototype would still apply. */
7125 /* The GNU C library defines this for functions which it implements
7126 to always fail with ENOSYS. Some functions are actually named
7127 something starting with __ and the normal name is an alias. */
7128 #if defined (__stub_socket) || defined (__stub___socket)
7131 char (*f) () = socket;
7145 rm -f conftest.$ac_objext conftest$ac_exeext
7146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7147 (eval $ac_link) 2>&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } &&
7151 { ac_try='test -s conftest$ac_exeext'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; }; then
7157 ac_cv_func_socket=yes
7159 echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7162 ac_cv_func_socket=no
7164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7166 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7167 echo "${ECHO_T}$ac_cv_func_socket" >&6
7168 if test $ac_cv_func_socket = yes; then
7169 echo "$as_me:$LINENO: result: using libc's socket" >&5
7170 echo "${ECHO_T}using libc's socket" >&6
7173 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7174 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7175 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 ac_check_lib_save_LIBS=$LIBS
7180 cat >conftest.$ac_ext <<_ACEOF
7181 #line $LINENO "configure"
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h. */
7188 /* Override any gcc2 internal prototype to avoid an error. */
7192 /* We use char because int might match the return type of a gcc2
7193 builtin and then its argument prototype would still apply. */
7203 rm -f conftest.$ac_objext conftest$ac_exeext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7205 (eval $ac_link) 2>&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } &&
7209 { ac_try='test -s conftest$ac_exeext'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; }; then
7215 ac_cv_lib_xnet_socket=yes
7217 echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7220 ac_cv_lib_xnet_socket=no
7222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7223 LIBS=$ac_check_lib_save_LIBS
7225 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7226 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7227 if test $ac_cv_lib_xnet_socket = yes; then
7228 cat >>confdefs.h <<_ACEOF
7229 #define HAVE_LIBXNET 1
7237 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7238 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7239 if test "${ac_cv_lib_socket_socket+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 ac_check_lib_save_LIBS=$LIBS
7243 LIBS="-lsocket $LIBS"
7244 cat >conftest.$ac_ext <<_ACEOF
7245 #line $LINENO "configure"
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7252 /* Override any gcc2 internal prototype to avoid an error. */
7256 /* We use char because int might match the return type of a gcc2
7257 builtin and then its argument prototype would still apply. */
7267 rm -f conftest.$ac_objext conftest$ac_exeext
7268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7269 (eval $ac_link) 2>&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } &&
7273 { ac_try='test -s conftest$ac_exeext'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; }; then
7279 ac_cv_lib_socket_socket=yes
7281 echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7284 ac_cv_lib_socket_socket=no
7286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7287 LIBS=$ac_check_lib_save_LIBS
7289 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7290 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7291 if test $ac_cv_lib_socket_socket = yes; then
7292 cat >>confdefs.h <<_ACEOF
7293 #define HAVE_LIBSOCKET 1
7296 LIBS="-lsocket $LIBS"
7301 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7302 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7303 if test "${ac_cv_lib_inet_socket+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7306 ac_check_lib_save_LIBS=$LIBS
7308 cat >conftest.$ac_ext <<_ACEOF
7309 #line $LINENO "configure"
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7316 /* Override any gcc2 internal prototype to avoid an error. */
7320 /* We use char because int might match the return type of a gcc2
7321 builtin and then its argument prototype would still apply. */
7331 rm -f conftest.$ac_objext conftest$ac_exeext
7332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7333 (eval $ac_link) 2>&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } &&
7337 { ac_try='test -s conftest$ac_exeext'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; }; then
7343 ac_cv_lib_inet_socket=yes
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7348 ac_cv_lib_inet_socket=no
7350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7351 LIBS=$ac_check_lib_save_LIBS
7353 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7354 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7355 if test $ac_cv_lib_inet_socket = yes; then
7356 cat >>confdefs.h <<_ACEOF
7357 #define HAVE_LIBINET 1
7368 # -----------------------------------------------------------
7369 # Check whether user wants TCP wrappers support (default off)
7370 # -----------------------------------------------------------
7373 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7374 if test "${with_tcp_wrappers+set}" = set; then
7375 withval="$with_tcp_wrappers"
7377 if test "x$withval" != "xno" ; then
7379 LIBS="$saved_LIBS -lwrap"
7380 echo "$as_me:$LINENO: checking for libwrap" >&5
7381 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7382 cat >conftest.$ac_ext <<_ACEOF
7383 #line $LINENO "configure"
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h. */
7390 int deny_severity = 0;
7391 int allow_severity = 0;
7392 struct request_info *req;
7401 rm -f conftest.$ac_objext conftest$ac_exeext
7402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7403 (eval $ac_link) 2>&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try='test -s conftest$ac_exeext'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7414 echo "$as_me:$LINENO: result: yes" >&5
7415 echo "${ECHO_T}yes" >&6
7416 cat >>confdefs.h <<\_ACEOF
7417 #define HAVE_LIBWRAP 1
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7427 LIBS="$saved_LIBS -lwrap -lnsl"
7428 cat >conftest.$ac_ext <<_ACEOF
7429 #line $LINENO "configure"
7432 cat confdefs.h >>conftest.$ac_ext
7433 cat >>conftest.$ac_ext <<_ACEOF
7434 /* end confdefs.h. */
7436 int deny_severity = 0;
7437 int allow_severity = 0;
7438 struct request_info *req;
7447 rm -f conftest.$ac_objext conftest$ac_exeext
7448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7449 (eval $ac_link) 2>&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } &&
7453 { ac_try='test -s conftest$ac_exeext'
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; }; then
7460 echo "$as_me:$LINENO: result: yes" >&5
7461 echo "${ECHO_T}yes" >&6
7462 cat >>confdefs.h <<\_ACEOF
7463 #define HAVE_LIBWRAP 1
7469 echo "$as_me: failed program was:" >&5
7470 sed 's/^/| /' conftest.$ac_ext >&5
7472 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7473 echo "$as_me: error: *** libwrap missing" >&2;}
7474 { (exit 1); exit 1; }; }
7477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7486 # ------------------------------------------
7487 # Where to place working dir
7488 # ------------------------------------------
7489 working_dir=`eval echo ${prefix}/var/bacula/working`
7491 # Check whether --with-working-dir or --without-working-dir was given.
7492 if test "${with_working_dir+set}" = set; then
7493 withval="$with_working_dir"
7495 if test "x$withval" != "xno" ; then
7496 working_dir=$withval
7505 # ------------------------------------------
7506 # Where to place scriptdir (script files)
7507 # ------------------------------------------
7508 scriptdir=`eval echo ${sysconfdir}`
7510 # Check whether --with-scriptdir or --without-scriptdir was given.
7511 if test "${with_scriptdir+set}" = set; then
7512 withval="$with_scriptdir"
7514 if test "x$withval" != "xno" ; then
7524 # ------------------------------------------
7525 # Where to send dump email
7526 # ------------------------------------------
7527 dump_email=root@localhost
7529 # Check whether --with-dump-email or --without-dump-email was given.
7530 if test "${with_dump_email+set}" = set; then
7531 withval="$with_dump_email"
7533 if test "x$withval" != "xno" ; then
7542 # ------------------------------------------
7543 # Where to send job email
7544 # ------------------------------------------
7545 job_email=root@localhost
7547 # Check whether --with-job-email or --without-job-email was given.
7548 if test "${with_job_email+set}" = set; then
7549 withval="$with_job_email"
7551 if test "x$withval" != "xno" ; then
7560 # ------------------------------------------
7561 # Where to find smtp host
7562 # ------------------------------------------
7565 # Check whether --with-smtp_host or --without-smtp_host was given.
7566 if test "${with_smtp_host+set}" = set; then
7567 withval="$with_smtp_host"
7569 if test "x$withval" != "xno" ; then
7579 # ------------------------------------
7580 # Where to place pid files
7581 # ------------------------------------
7584 # Check whether --with-pid-dir or --without-pid-dir was given.
7585 if test "${with_pid_dir+set}" = set; then
7586 withval="$with_pid_dir"
7588 if test "x$withval" != "xno" ; then
7595 cat >>confdefs.h <<_ACEOF
7596 #define _PATH_BACULA_PIDDIR "$piddir"
7602 # ------------------------------------
7603 # Where to place subsys "lock file"
7604 # ------------------------------------
7605 subsysdir=/var/run/subsys
7607 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7608 if test "${with_subsys_dir+set}" = set; then
7609 withval="$with_subsys_dir"
7611 if test "x$withval" != "xno" ; then
7622 # ------------------------------------
7623 # Where to start assigning ports
7624 # ------------------------------------
7627 # Check whether --with-baseport or --without-baseport was given.
7628 if test "${with_baseport+set}" = set; then
7629 withval="$with_baseport"
7631 if test "x$withval" != "xno" ; then
7639 dir_port=`expr $baseport`
7640 fd_port=`expr $baseport + 1`
7641 sd_port=`expr $fd_port + 1`
7648 # ------------------------------------------
7649 # Generate passwords
7650 # ------------------------------------------
7653 # Check whether --with-dir-password or --without-dir-password was given.
7654 if test "${with_dir_password+set}" = set; then
7655 withval="$with_dir_password"
7657 if test "x$withval" != "xno" ; then
7658 dir_password=$withval
7664 if test "x$dir_password" = "x" ; then
7665 if test "x$OPENSSL" = "xnone" ; then
7666 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7667 key=`autoconf/randpass 33`
7669 key=`openssl rand -base64 33`
7676 # Check whether --with-fd-password or --without-fd-password was given.
7677 if test "${with_fd_password+set}" = set; then
7678 withval="$with_fd_password"
7680 if test "x$withval" != "xno" ; then
7681 fd_password=$withval
7687 if test "x$fd_password" = "x" ; then
7688 if test "x$OPENSSL" = "xnone" ; then
7689 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7690 key=`autoconf/randpass 37`
7692 key=`openssl rand -base64 33`
7699 # Check whether --with-sd-password or --without-sd-password was given.
7700 if test "${with_sd_password+set}" = set; then
7701 withval="$with_sd_password"
7703 if test "x$withval" != "xno" ; then
7704 sd_password=$withval
7710 if test "x$sd_password" = "x" ; then
7711 if test "x$OPENSSL" = "xnone" ; then
7712 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7713 key=`autoconf/randpass 41`
7715 key=`openssl rand -base64 33`
7722 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
7723 if test "${with_mon_dir_password+set}" = set; then
7724 withval="$with_mon_dir_password"
7726 if test "x$withval" != "xno" ; then
7727 mon_dir_password=$withval
7733 if test "x$mon_dir_password" = "x" ; then
7734 if test "x$OPENSSL" = "xnone" ; then
7735 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7736 key=`autoconf/randpass 33`
7738 key=`openssl rand -base64 33`
7740 mon_dir_password=$key
7745 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
7746 if test "${with_mon_fd_password+set}" = set; then
7747 withval="$with_mon_fd_password"
7749 if test "x$withval" != "xno" ; then
7750 mon_fd_password=$withval
7756 if test "x$mon_fd_password" = "x" ; then
7757 if test "x$OPENSSL" = "xnone" ; then
7758 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7759 key=`autoconf/randpass 37`
7761 key=`openssl rand -base64 33`
7763 mon_fd_password=$key
7768 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
7769 if test "${with_mon_sd_password+set}" = set; then
7770 withval="$with_mon_sd_password"
7772 if test "x$withval" != "xno" ; then
7773 mon_sd_password=$withval
7779 if test "x$mon_sd_password" = "x" ; then
7780 if test "x$OPENSSL" = "xnone" ; then
7781 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7782 key=`autoconf/randpass 41`
7784 key=`openssl rand -base64 33`
7786 mon_sd_password=$key
7796 # -------------------------------------------------------------------------
7797 # Set variables for bimagemgr installation
7798 # -------------------------------------------------------------------------
7799 bimagemgr_cgidir=/var/www/cgi-bin
7801 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
7802 if test "${with_bimagemgr_cgidir+set}" = set; then
7803 withval="$with_bimagemgr_cgidir"
7805 if test "x$withval" != "xno" ; then
7806 bimagemgr_cgidir=$withval
7812 bimagemgr_docdir=/var/www/html
7814 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
7815 if test "${with_bimagemgr_docdir+set}" = set; then
7816 withval="$with_bimagemgr_docdir"
7818 if test "x$withval" != "xno" ; then
7819 bimagemgr_docdir=$withval
7825 bimagemgr_binowner=root
7827 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
7828 if test "${with_bimagemgr_binowner+set}" = set; then
7829 withval="$with_bimagemgr_binowner"
7831 if test "x$withval" != "xno" ; then
7832 bimagemgr_binowner=$withval
7838 bimagemgr_bingroup=root
7840 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
7841 if test "${with_bimagemgr_bingroup+set}" = set; then
7842 withval="$with_bimagemgr_bingroup"
7844 if test "x$withval" != "xno" ; then
7845 bimagemgr_bingroup=$withval
7851 bimagemgr_dataowner=apache
7853 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
7854 if test "${with_bimagemgr_dataowner+set}" = set; then
7855 withval="$with_bimagemgr_dataowner"
7857 if test "x$withval" != "xno" ; then
7858 bimagemgr_dataowner=$withval
7864 bimagemgr_datagroup=apache
7866 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
7867 if test "${with_bimagemgr_datagroup+set}" = set; then
7868 withval="$with_bimagemgr_datagroup"
7870 if test "x$withval" != "xno" ; then
7871 bimagemgr_datagroup=$withval
7885 # Handle users and groups for each daemon
7889 # Check whether --with-dir_user or --without-dir_user was given.
7890 if test "${with_dir_user+set}" = set; then
7891 withval="$with_dir_user"
7893 if test "x$withval" != "x" ; then
7902 # Check whether --with-dir_group or --without-dir_group was given.
7903 if test "${with_dir_group+set}" = set; then
7904 withval="$with_dir_group"
7906 if test "x$withval" != "x" ; then
7915 # Check whether --with-sd_user or --without-sd_user was given.
7916 if test "${with_sd_user+set}" = set; then
7917 withval="$with_sd_user"
7919 if test "x$withval" != "x" ; then
7928 # Check whether --with-sd_group or --without-sd_group was given.
7929 if test "${with_sd_group+set}" = set; then
7930 withval="$with_sd_group"
7932 if test "x$withval" != "x" ; then
7941 # Check whether --with-fd_user or --without-fd_user was given.
7942 if test "${with_fd_user+set}" = set; then
7943 withval="$with_fd_user"
7945 if test "x$withval" != "x" ; then
7954 # Check whether --with-fd_group or --without-fd_group was given.
7955 if test "${with_fd_group+set}" = set; then
7956 withval="$with_fd_group"
7958 if test "x$withval" != "x" ; then
7976 # allow setting default executable permissions
7980 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7981 if test "${with_sbin_perm+set}" = set; then
7982 withval="$with_sbin_perm"
7984 if test "x$withval" != "x" ; then
7993 # ------------------------------------------------
7994 # Bacula check for various SQL database engines
7995 # ------------------------------------------------
7998 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7999 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8001 # Check whether --with-postgresql or --without-postgresql was given.
8002 if test "${with_postgresql+set}" = set; then
8003 withval="$with_postgresql"
8005 if test "$withval" != "no"; then
8006 if test "$db_found" = "yes"; then
8007 echo "$as_me:$LINENO: result: error" >&5
8008 echo "${ECHO_T}error" >&6
8009 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8010 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8011 { (exit 1); exit 1; }; };
8013 if test "$withval" = "yes"; then
8014 if test -f /usr/local/include/libpq-fe.h; then
8015 POSTGRESQL_INCDIR=/usr/local/include
8016 POSTGRESQL_LIBDIR=/usr/local/lib
8017 POSTGRESQL_BINDIR=/usr/local/bin
8018 elif test -f /usr/include/libpq-fe.h; then
8019 POSTGRESQL_INCDIR=/usr/include
8020 POSTGRESQL_LIBDIR=/usr/lib
8021 POSTGRESQL_BINDIR=/usr/bin
8022 elif test -f /usr/include/pgsql/libpq-fe.h; then
8023 POSTGRESQL_INCDIR=/usr/include/pgsql
8024 POSTGRESQL_LIBDIR=/usr/lib/pgsql
8025 POSTGRESQL_BINDIR=/usr/bin
8026 elif test -f /usr/include/postgresql/libpq-fe.h; then
8027 POSTGRESQL_INCDIR=/usr/include/postgresql
8028 POSTGRESQL_LIBDIR=/usr/lib/postgresql
8029 POSTGRESQL_BINDIR=/usr/bin
8031 echo "$as_me:$LINENO: result: no" >&5
8032 echo "${ECHO_T}no" >&6
8033 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8034 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8035 { (exit 1); exit 1; }; }
8037 elif test -f $withval/include/libpq-fe.h; then
8038 POSTGRESQL_INCDIR=$withval/include
8039 POSTGRESQL_LIBDIR=$withval/lib
8040 POSTGRESQL_BINDIR=$withval/bin
8041 elif test -f $withval/include/postgresql/libpq-fe.h; then
8042 POSTGRESQL_INCDIR=$withval/include/postgresql
8043 POSTGRESQL_LIBDIR=$withval/lib
8044 POSTGRESQL_BINDIR=$withval/bin
8046 echo "$as_me:$LINENO: result: no" >&5
8047 echo "${ECHO_T}no" >&6
8048 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8049 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8050 { (exit 1); exit 1; }; }
8052 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8053 echo "$as_me:$LINENO: checking for crypt" >&5
8054 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8055 if test "${ac_cv_func_crypt+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 cat >conftest.$ac_ext <<_ACEOF
8059 #line $LINENO "configure"
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h. */
8065 /* System header to define __stub macros and hopefully few prototypes,
8066 which can conflict with char crypt (); below.
8067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8068 <limits.h> exists even on freestanding compilers. */
8070 # include <limits.h>
8072 # include <assert.h>
8074 /* Override any gcc2 internal prototype to avoid an error. */
8079 /* We use char because int might match the return type of a gcc2
8080 builtin and then its argument prototype would still apply. */
8082 /* The GNU C library defines this for functions which it implements
8083 to always fail with ENOSYS. Some functions are actually named
8084 something starting with __ and the normal name is an alias. */
8085 #if defined (__stub_crypt) || defined (__stub___crypt)
8088 char (*f) () = crypt;
8102 rm -f conftest.$ac_objext conftest$ac_exeext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8104 (eval $ac_link) 2>&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } &&
8108 { ac_try='test -s conftest$ac_exeext'
8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; }; then
8114 ac_cv_func_crypt=yes
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8123 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8124 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8125 if test $ac_cv_func_crypt = yes; then
8128 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8129 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8130 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 ac_check_lib_save_LIBS=$LIBS
8134 LIBS="-lcrypt $LIBS"
8135 cat >conftest.$ac_ext <<_ACEOF
8136 #line $LINENO "configure"
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8143 /* Override any gcc2 internal prototype to avoid an error. */
8147 /* We use char because int might match the return type of a gcc2
8148 builtin and then its argument prototype would still apply. */
8158 rm -f conftest.$ac_objext conftest$ac_exeext
8159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8160 (eval $ac_link) 2>&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } &&
8164 { ac_try='test -s conftest$ac_exeext'
8165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); }; }; then
8170 ac_cv_lib_crypt_crypt=yes
8172 echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8175 ac_cv_lib_crypt_crypt=no
8177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8178 LIBS=$ac_check_lib_save_LIBS
8180 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8181 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8182 if test $ac_cv_lib_crypt_crypt = yes; then
8183 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8188 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8189 SQL_LFLAGS=$POSTGRESQL_LFLAGS
8190 SQL_BINDIR=$POSTGRESQL_BINDIR
8191 cat >>confdefs.h <<\_ACEOF
8192 #define HAVE_POSTGRESQL 1
8195 echo "$as_me:$LINENO: result: yes" >&5
8196 echo "${ECHO_T}yes" >&6
8198 support_postgresql=yes
8202 echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6
8208 echo "$as_me:$LINENO: result: no" >&5
8209 echo "${ECHO_T}no" >&6
8220 echo "$as_me:$LINENO: checking for MySQL support" >&5
8221 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8223 # Check whether --with-mysql or --without-mysql was given.
8224 if test "${with_mysql+set}" = set; then
8225 withval="$with_mysql"
8227 if test "$withval" != "no"; then
8228 if test "$withval" = "yes"; then
8229 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8230 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8231 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8232 MYSQL_BINDIR=/usr/local/mysql/bin
8233 elif test -f /usr/include/mysql/mysql.h; then
8234 MYSQL_INCDIR=/usr/include/mysql
8235 MYSQL_LIBDIR=/usr/lib/mysql
8236 MYSQL_BINDIR=/usr/bin
8237 elif test -f /usr/include/mysql.h; then
8238 MYSQL_INCDIR=/usr/include
8239 MYSQL_LIBDIR=/usr/lib
8240 MYSQL_BINDIR=/usr/bin
8241 elif test -f /usr/local/include/mysql/mysql.h; then
8242 MYSQL_INCDIR=/usr/local/include/mysql
8243 MYSQL_LIBDIR=/usr/local/lib/mysql
8244 MYSQL_BINDIR=/usr/local/bin
8245 elif test -f /usr/local/include/mysql.h; then
8246 MYSQL_INCDIR=/usr/local/include
8247 MYSQL_LIBDIR=/usr/local/lib
8248 MYSQL_BINDIR=/usr/local/bin
8250 echo "$as_me:$LINENO: result: no" >&5
8251 echo "${ECHO_T}no" >&6
8252 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8253 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8254 { (exit 1); exit 1; }; }
8257 if test -f $withval/include/mysql/mysql.h; then
8258 MYSQL_INCDIR=$withval/include/mysql
8259 MYSQL_LIBDIR=$withval/lib/mysql
8260 MYSQL_BINDIR=$withval/bin
8261 elif test -f $withval/include/mysql.h; then
8262 MYSQL_INCDIR=$withval/include
8263 MYSQL_LIBDIR=$withval/lib
8264 MYSQL_BINDIR=$withval/bin
8266 echo "$as_me:$LINENO: result: no" >&5
8267 echo "${ECHO_T}no" >&6
8268 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8269 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8270 { (exit 1); exit 1; }; }
8273 SQL_INCLUDE=-I$MYSQL_INCDIR
8274 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8275 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8276 cat >>confdefs.h <<\_ACEOF
8277 #define HAVE_THREAD_SAFE_MYSQL 1
8281 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8283 SQL_BINDIR=$MYSQL_BINDIR
8285 cat >>confdefs.h <<\_ACEOF
8286 #define HAVE_MYSQL 1
8289 echo "$as_me:$LINENO: result: yes" >&5
8290 echo "${ECHO_T}yes" >&6
8297 echo "$as_me:$LINENO: result: no" >&5
8298 echo "${ECHO_T}no" >&6
8305 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8306 if test "${with_embedded_mysql+set}" = set; then
8307 withval="$with_embedded_mysql"
8309 if test "$withval" != "no"; then
8310 if test "$withval" = "yes"; then
8311 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8312 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8313 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8314 MYSQL_BINDIR=/usr/local/mysql/bin
8315 elif test -f /usr/include/mysql/mysql.h; then
8316 MYSQL_INCDIR=/usr/include/mysql
8317 MYSQL_LIBDIR=/usr/lib/mysql
8318 MYSQL_BINDIR=/usr/bin
8319 elif test -f /usr/include/mysql.h; then
8320 MYSQL_INCDIR=/usr/include
8321 MYSQL_LIBDIR=/usr/lib
8322 MYSQL_BINDIR=/usr/bin
8323 elif test -f /usr/local/include/mysql/mysql.h; then
8324 MYSQL_INCDIR=/usr/local/include/mysql
8325 MYSQL_LIBDIR=/usr/local/lib/mysql
8326 MYSQL_BINDIR=/usr/local/bin
8327 elif test -f /usr/local/include/mysql.h; then
8328 MYSQL_INCDIR=/usr/local/include
8329 MYSQL_LIBDIR=/usr/local/lib
8330 MYSQL_BINDIR=/usr/local/bin
8332 echo "$as_me:$LINENO: result: no" >&5
8333 echo "${ECHO_T}no" >&6
8334 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8335 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8336 { (exit 1); exit 1; }; }
8339 if test -f $withval/include/mysql/mysql.h; then
8340 MYSQL_INCDIR=$withval/include/mysql
8341 MYSQL_LIBDIR=$withval/lib/mysql
8342 MYSQL_BINDIR=$withval/bin
8343 elif test -f $withval/include/mysql.h; then
8344 MYSQL_INCDIR=$withval/include
8345 MYSQL_LIBDIR=$withval/lib
8346 MYSQL_BINDIR=$withval/bin
8348 echo "$as_me:$LINENO: result: no" >&5
8349 echo "${ECHO_T}no" >&6
8350 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8351 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8352 { (exit 1); exit 1; }; }
8355 SQL_INCLUDE=-I$MYSQL_INCDIR
8356 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8357 SQL_BINDIR=$MYSQL_BINDIR
8359 cat >>confdefs.h <<\_ACEOF
8360 #define HAVE_MYSQL 1
8363 cat >>confdefs.h <<\_ACEOF
8364 #define HAVE_EMBEDDED_MYSQL 1
8367 echo "$as_me:$LINENO: result: yes" >&5
8368 echo "${ECHO_T}yes" >&6
8375 echo "$as_me:$LINENO: result: no" >&5
8376 echo "${ECHO_T}no" >&6
8391 echo "$as_me:$LINENO: checking for SQLite support" >&5
8392 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
8394 # Check whether --with-sqlite or --without-sqlite was given.
8395 if test "${with_sqlite+set}" = set; then
8396 withval="$with_sqlite"
8398 if test "$withval" != "no"; then
8399 if test "$withval" = "yes"; then
8400 if test -f /usr/local/include/sqlite.h; then
8401 SQLITE_INCDIR=/usr/local/include
8402 SQLITE_LIBDIR=/usr/local/lib
8403 SQLITE_BINDIR=/usr/local/bin
8404 elif test -f /usr/include/sqlite.h; then
8405 SQLITE_INCDIR=/usr/include
8406 SQLITE_LIBDIR=/usr/lib
8407 SQLITE_BINDIR=/usr/bin
8408 elif test -f $prefix/include/sqlite.h; then
8409 SQLITE_INCDIR=$prefix/include
8410 SQLITE_LIBDIR=$prefix/lib
8411 SQLITE_BINDIR=$prefix/bin
8413 echo "$as_me:$LINENO: result: no" >&5
8414 echo "${ECHO_T}no" >&6
8415 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
8416 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
8417 { (exit 1); exit 1; }; }
8420 if test -f $withval/sqlite.h; then
8421 SQLITE_INCDIR=$withval
8422 SQLITE_LIBDIR=$withval
8423 SQLITE_BINDIR=$withval
8424 elif test -f $withval/include/sqlite.h; then
8425 SQLITE_INCDIR=$withval/include
8426 SQLITE_LIBDIR=$withval/lib
8427 SQLITE_BINDIR=$withval/bin
8429 echo "$as_me:$LINENO: result: no" >&5
8430 echo "${ECHO_T}no" >&6
8431 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8432 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8433 { (exit 1); exit 1; }; }
8436 SQL_INCLUDE=-I$SQLITE_INCDIR
8437 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8438 SQL_BINDIR=$SQLITE_BINDIR
8440 cat >>confdefs.h <<\_ACEOF
8441 #define HAVE_SQLITE 1
8444 echo "$as_me:$LINENO: result: yes" >&5
8445 echo "${ECHO_T}yes" >&6
8452 echo "$as_me:$LINENO: result: no" >&5
8453 echo "${ECHO_T}no" >&6
8458 echo "$as_me:$LINENO: result: no" >&5
8459 echo "${ECHO_T}no" >&6
8471 cat >>confdefs.h <<\_ACEOF
8472 #define PROTOTYPES 1
8476 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8477 if test -z "$CCOPTS"; then
8478 CCOPTS='-g -O2 -Wall'
8486 largefile_support="no"
8488 # Check whether --enable-largefile or --disable-largefile was given.
8489 if test "${enable_largefile+set}" = set; then
8490 enableval="$enable_largefile"
8493 if test "$enable_largefile" != no; then
8494 if test -n "$ac_tool_prefix"; then
8495 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8496 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8497 echo "$as_me:$LINENO: checking for $ac_word" >&5
8498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8499 if test "${ac_cv_prog_GETCONF+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 if test -n "$GETCONF"; then
8503 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 test -z "$as_dir" && as_dir=.
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8512 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8521 GETCONF=$ac_cv_prog_GETCONF
8522 if test -n "$GETCONF"; then
8523 echo "$as_me:$LINENO: result: $GETCONF" >&5
8524 echo "${ECHO_T}$GETCONF" >&6
8526 echo "$as_me:$LINENO: result: no" >&5
8527 echo "${ECHO_T}no" >&6
8531 if test -z "$ac_cv_prog_GETCONF"; then
8532 ac_ct_GETCONF=$GETCONF
8533 # Extract the first word of "getconf", so it can be a program name with args.
8534 set dummy getconf; ac_word=$2
8535 echo "$as_me:$LINENO: checking for $ac_word" >&5
8536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8537 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 if test -n "$ac_ct_GETCONF"; then
8541 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547 test -z "$as_dir" && as_dir=.
8548 for ac_exec_ext in '' $ac_executable_extensions; do
8549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8550 ac_cv_prog_ac_ct_GETCONF="getconf"
8551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8559 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8560 if test -n "$ac_ct_GETCONF"; then
8561 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8562 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8564 echo "$as_me:$LINENO: result: no" >&5
8565 echo "${ECHO_T}no" >&6
8568 GETCONF=$ac_ct_GETCONF
8570 GETCONF="$ac_cv_prog_GETCONF"
8573 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8574 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8575 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8579 ac_cv_sys_largefile_CFLAGS=no
8581 # IRIX 6.2 and later require cc -n32.
8582 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8583 if test "$GCC" != yes; then
8584 ac_cv_sys_largefile_CFLAGS=-n32
8587 CC="$CC $ac_cv_sys_largefile_CFLAGS"
8588 cat >conftest.$ac_ext <<_ACEOF
8589 #line $LINENO "configure"
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8604 rm -f conftest.$ac_objext conftest$ac_exeext
8605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8606 (eval $ac_link) 2>&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } &&
8610 { ac_try='test -s conftest$ac_exeext'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; }; then
8618 echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.$ac_ext >&5
8621 ac_cv_sys_largefile_CFLAGS=no
8623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8628 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
8629 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
8630 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
8631 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
8632 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8635 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
8636 ac_cv_sys_largefile_LDFLAGS=no
8640 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
8641 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
8642 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
8643 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
8644 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
8645 echo $ECHO_N "(cached) $ECHO_C" >&6
8647 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
8648 ac_cv_sys_largefile_LIBS=no
8652 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
8653 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
8655 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8658 -D_FILE_OFFSET_BITS=*) ;;
8659 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
8660 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
8666 '') CPPFLAGS="$ac_flag" ;;
8667 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
8675 '') CFLAGS="$ac_flag" ;;
8676 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
8681 case "$ac_cv_sys_largefile_LDFLAGS" in
8685 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
8686 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
8689 case "$ac_cv_sys_largefile_LIBS" in
8693 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
8694 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
8697 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
8698 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
8699 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8702 ac_cv_sys_file_offset_bits=no
8703 ac_cv_sys_file_offset_bits=64
8704 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8706 -D_FILE_OFFSET_BITS)
8707 ac_cv_sys_file_offset_bits=1 ;;
8708 -D_FILE_OFFSET_BITS=*)
8709 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8714 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8715 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8716 if test "$ac_cv_sys_file_offset_bits" != no; then
8718 cat >>confdefs.h <<_ACEOF
8719 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8723 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
8724 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
8725 if test "${ac_cv_sys_largefile_source+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 ac_cv_sys_largefile_source=no
8729 ac_cv_sys_largefile_source=1
8730 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8732 -D_LARGEFILE_SOURCE)
8733 ac_cv_sys_largefile_source=1 ;;
8734 -D_LARGEFILE_SOURCE=*)
8735 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8740 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8741 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8742 if test "$ac_cv_sys_largefile_source" != no; then
8744 cat >>confdefs.h <<_ACEOF
8745 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8749 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8750 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8751 if test "${ac_cv_sys_large_files+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 ac_cv_sys_large_files=no
8755 ac_cv_sys_large_files=1
8756 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8759 ac_cv_sys_large_files=1 ;;
8761 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8766 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8767 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8768 if test "$ac_cv_sys_large_files" != no; then
8770 cat >>confdefs.h <<_ACEOF
8771 #define _LARGE_FILES $ac_cv_sys_large_files
8779 echo "$as_me:$LINENO: checking for X" >&5
8780 echo $ECHO_N "checking for X... $ECHO_C" >&6
8783 # Check whether --with-x or --without-x was given.
8784 if test "${with_x+set}" = set; then
8788 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8789 if test "x$with_x" = xno; then
8790 # The user explicitly disabled X.
8793 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8794 # Both variables are already set.
8797 if test "${ac_cv_have_x+set}" = set; then
8798 echo $ECHO_N "(cached) $ECHO_C" >&6
8800 # One or both of the vars are not set, and there is no cached value.
8801 ac_x_includes=no ac_x_libraries=no
8803 if mkdir conftest.dir; then
8805 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8806 cat >Imakefile <<'_ACEOF'
8808 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8810 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8811 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8812 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8813 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8814 for ac_extension in a so sl; do
8815 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8816 test -f $ac_im_libdir/libX11.$ac_extension; then
8817 ac_im_usrlibdir=$ac_im_libdir; break
8820 # Screen out bogus values from the imake configuration. They are
8821 # bogus both because they are the default anyway, and because
8822 # using them would break gcc on systems where it needs fixed includes.
8823 case $ac_im_incroot in
8825 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8827 case $ac_im_usrlibdir in
8829 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8836 # Standard set of common directories for X headers.
8837 # Check X11 before X11Rn because it is often a symlink to the current release.
8849 /usr/local/X11/include
8850 /usr/local/X11R6/include
8851 /usr/local/X11R5/include
8852 /usr/local/X11R4/include
8854 /usr/local/include/X11
8855 /usr/local/include/X11R6
8856 /usr/local/include/X11R5
8857 /usr/local/include/X11R4
8861 /usr/XFree86/include/X11
8865 /usr/unsupported/include
8867 /usr/local/x11r5/include
8868 /usr/lpp/Xamples/include
8870 /usr/openwin/include
8871 /usr/openwin/share/include'
8873 if test "$ac_x_includes" = no; then
8874 # Guess where to find include files, by looking for Intrinsic.h.
8875 # First, try using that file with no special directory specified.
8876 cat >conftest.$ac_ext <<_ACEOF
8877 #line $LINENO "configure"
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8883 #include <X11/Intrinsic.h>
8885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8888 grep -v '^ *+' conftest.er1 >conftest.err
8890 cat conftest.err >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } >/dev/null; then
8893 if test -s conftest.err; then
8894 ac_cpp_err=$ac_c_preproc_warn_flag
8901 if test -z "$ac_cpp_err"; then
8902 # We can compile using X headers with no special include directory.
8905 echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8908 for ac_dir in $ac_x_header_dirs; do
8909 if test -r "$ac_dir/X11/Intrinsic.h"; then
8910 ac_x_includes=$ac_dir
8915 rm -f conftest.err conftest.$ac_ext
8916 fi # $ac_x_includes = no
8918 if test "$ac_x_libraries" = no; then
8919 # Check for the libraries.
8920 # See if we find them without any special options.
8921 # Don't add to $LIBS permanently.
8924 cat >conftest.$ac_ext <<_ACEOF
8925 #line $LINENO "configure"
8928 cat confdefs.h >>conftest.$ac_ext
8929 cat >>conftest.$ac_ext <<_ACEOF
8930 /* end confdefs.h. */
8931 #include <X11/Intrinsic.h>
8940 rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942 (eval $ac_link) 2>&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } &&
8946 { ac_try='test -s conftest$ac_exeext'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
8953 # We can link X programs with no special library path.
8956 echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8960 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8962 # Don't even attempt the hair of trying to link an X program!
8963 for ac_extension in a so sl; do
8964 if test -r $ac_dir/libXt.$ac_extension; then
8965 ac_x_libraries=$ac_dir
8971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8972 fi # $ac_x_libraries = no
8974 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8975 # Didn't find X anywhere. Cache the known absence of X.
8976 ac_cv_have_x="have_x=no"
8978 # Record where we found X for the cache.
8979 ac_cv_have_x="have_x=yes \
8980 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8985 eval "$ac_cv_have_x"
8988 if test "$have_x" != yes; then
8989 echo "$as_me:$LINENO: result: $have_x" >&5
8990 echo "${ECHO_T}$have_x" >&6
8993 # If each of the values was on the command line, it overrides each guess.
8994 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8995 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8996 # Update the cache value to reflect the command line values.
8997 ac_cv_have_x="have_x=yes \
8998 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8999 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9000 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9003 if test "$no_x" = yes; then
9004 # Not all programs may use this symbol, but it does not hurt to define it.
9006 cat >>confdefs.h <<\_ACEOF
9007 #define X_DISPLAY_MISSING 1
9010 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9012 if test -n "$x_includes"; then
9013 X_CFLAGS="$X_CFLAGS -I$x_includes"
9016 # It would also be nice to do this for all -L options, not just this one.
9017 if test -n "$x_libraries"; then
9018 X_LIBS="$X_LIBS -L$x_libraries"
9019 # For Solaris; some versions of Sun CC require a space after -R and
9020 # others require no space. Words are not sufficient . . . .
9021 case `(uname -sr) 2>/dev/null` in
9023 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9024 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9025 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9026 cat >conftest.$ac_ext <<_ACEOF
9027 #line $LINENO "configure"
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9042 rm -f conftest.$ac_objext conftest$ac_exeext
9043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9044 (eval $ac_link) 2>&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } &&
9048 { ac_try='test -s conftest$ac_exeext'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; }; then
9056 echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9062 if test $ac_R_nospace = yes; then
9063 echo "$as_me:$LINENO: result: no" >&5
9064 echo "${ECHO_T}no" >&6
9065 X_LIBS="$X_LIBS -R$x_libraries"
9067 LIBS="$ac_xsave_LIBS -R $x_libraries"
9068 cat >conftest.$ac_ext <<_ACEOF
9069 #line $LINENO "configure"
9072 cat confdefs.h >>conftest.$ac_ext
9073 cat >>conftest.$ac_ext <<_ACEOF
9074 /* end confdefs.h. */
9084 rm -f conftest.$ac_objext conftest$ac_exeext
9085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9086 (eval $ac_link) 2>&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); } &&
9090 { ac_try='test -s conftest$ac_exeext'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; }; then
9098 echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9104 if test $ac_R_space = yes; then
9105 echo "$as_me:$LINENO: result: yes" >&5
9106 echo "${ECHO_T}yes" >&6
9107 X_LIBS="$X_LIBS -R $x_libraries"
9109 echo "$as_me:$LINENO: result: neither works" >&5
9110 echo "${ECHO_T}neither works" >&6
9117 # Check for system-dependent libraries X programs must link with.
9118 # Do this before checking for the system-independent R6 libraries
9119 # (-lICE), since we may need -lsocket or whatever for X linking.
9121 if test "$ISC" = yes; then
9122 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9124 # Martyn Johnson says this is needed for Ultrix, if the X
9125 # libraries were built with DECnet support. And Karl Berry says
9126 # the Alpha needs dnet_stub (dnet does not exist).
9127 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9128 cat >conftest.$ac_ext <<_ACEOF
9129 #line $LINENO "configure"
9132 cat confdefs.h >>conftest.$ac_ext
9133 cat >>conftest.$ac_ext <<_ACEOF
9134 /* end confdefs.h. */
9136 /* Override any gcc2 internal prototype to avoid an error. */
9140 /* We use char because int might match the return type of a gcc2
9141 builtin and then its argument prototype would still apply. */
9142 char XOpenDisplay ();
9151 rm -f conftest.$ac_objext conftest$ac_exeext
9152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9153 (eval $ac_link) 2>&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
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9168 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9169 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9170 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9173 ac_check_lib_save_LIBS=$LIBS
9175 cat >conftest.$ac_ext <<_ACEOF
9176 #line $LINENO "configure"
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9183 /* Override any gcc2 internal prototype to avoid an error. */
9187 /* We use char because int might match the return type of a gcc2
9188 builtin and then its argument prototype would still apply. */
9198 rm -f conftest.$ac_objext conftest$ac_exeext
9199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9200 (eval $ac_link) 2>&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } &&
9204 { ac_try='test -s conftest$ac_exeext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 ac_cv_lib_dnet_dnet_ntoa=yes
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9215 ac_cv_lib_dnet_dnet_ntoa=no
9217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9218 LIBS=$ac_check_lib_save_LIBS
9220 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9221 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9222 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9223 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9226 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9227 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9228 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9229 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9230 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 ac_check_lib_save_LIBS=$LIBS
9233 LIBS="-ldnet_stub $LIBS"
9234 cat >conftest.$ac_ext <<_ACEOF
9235 #line $LINENO "configure"
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9242 /* Override any gcc2 internal prototype to avoid an error. */
9246 /* We use char because int might match the return type of a gcc2
9247 builtin and then its argument prototype would still apply. */
9257 rm -f conftest.$ac_objext conftest$ac_exeext
9258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9259 (eval $ac_link) 2>&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } &&
9263 { ac_try='test -s conftest$ac_exeext'
9264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); }; }; then
9269 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9271 echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9274 ac_cv_lib_dnet_stub_dnet_ntoa=no
9276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9277 LIBS=$ac_check_lib_save_LIBS
9279 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9280 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9281 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9282 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9288 LIBS="$ac_xsave_LIBS"
9290 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9291 # to get the SysV transport functions.
9292 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9294 # The nsl library prevents programs from opening the X display
9295 # on Irix 5.2, according to T.E. Dickey.
9296 # The functions gethostbyname, getservbyname, and inet_addr are
9297 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9298 echo "$as_me:$LINENO: checking for gethostbyname" >&5
9299 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9300 if test "${ac_cv_func_gethostbyname+set}" = set; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
9303 cat >conftest.$ac_ext <<_ACEOF
9304 #line $LINENO "configure"
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9310 /* System header to define __stub macros and hopefully few prototypes,
9311 which can conflict with char gethostbyname (); below.
9312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9313 <limits.h> exists even on freestanding compilers. */
9315 # include <limits.h>
9317 # include <assert.h>
9319 /* Override any gcc2 internal prototype to avoid an error. */
9324 /* We use char because int might match the return type of a gcc2
9325 builtin and then its argument prototype would still apply. */
9326 char gethostbyname ();
9327 /* The GNU C library defines this for functions which it implements
9328 to always fail with ENOSYS. Some functions are actually named
9329 something starting with __ and the normal name is an alias. */
9330 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9333 char (*f) () = gethostbyname;
9342 return f != gethostbyname;
9347 rm -f conftest.$ac_objext conftest$ac_exeext
9348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9349 (eval $ac_link) 2>&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } &&
9353 { ac_try='test -s conftest$ac_exeext'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; }; then
9359 ac_cv_func_gethostbyname=yes
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9364 ac_cv_func_gethostbyname=no
9366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9368 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9369 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9371 if test $ac_cv_func_gethostbyname = no; then
9372 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9373 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9374 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 ac_check_lib_save_LIBS=$LIBS
9379 cat >conftest.$ac_ext <<_ACEOF
9380 #line $LINENO "configure"
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h. */
9387 /* Override any gcc2 internal prototype to avoid an error. */
9391 /* We use char because int might match the return type of a gcc2
9392 builtin and then its argument prototype would still apply. */
9393 char gethostbyname ();
9402 rm -f conftest.$ac_objext conftest$ac_exeext
9403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9404 (eval $ac_link) 2>&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } &&
9408 { ac_try='test -s conftest$ac_exeext'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
9414 ac_cv_lib_nsl_gethostbyname=yes
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9419 ac_cv_lib_nsl_gethostbyname=no
9421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9422 LIBS=$ac_check_lib_save_LIBS
9424 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9425 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9426 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9427 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9430 if test $ac_cv_lib_nsl_gethostbyname = no; then
9431 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9432 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9433 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 ac_check_lib_save_LIBS=$LIBS
9438 cat >conftest.$ac_ext <<_ACEOF
9439 #line $LINENO "configure"
9442 cat confdefs.h >>conftest.$ac_ext
9443 cat >>conftest.$ac_ext <<_ACEOF
9444 /* end confdefs.h. */
9446 /* Override any gcc2 internal prototype to avoid an error. */
9450 /* We use char because int might match the return type of a gcc2
9451 builtin and then its argument prototype would still apply. */
9452 char gethostbyname ();
9461 rm -f conftest.$ac_objext conftest$ac_exeext
9462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9463 (eval $ac_link) 2>&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } &&
9467 { ac_try='test -s conftest$ac_exeext'
9468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; }; then
9473 ac_cv_lib_bsd_gethostbyname=yes
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9478 ac_cv_lib_bsd_gethostbyname=no
9480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9481 LIBS=$ac_check_lib_save_LIBS
9483 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9484 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9485 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9486 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9492 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9493 # socket/setsockopt and other routines are undefined under SCO ODT
9494 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9495 # on later versions), says Simon Leinen: it contains gethostby*
9496 # variants that don't use the name server (or something). -lsocket
9497 # must be given before -lnsl if both are needed. We assume that
9498 # if connect needs -lnsl, so does gethostbyname.
9499 echo "$as_me:$LINENO: checking for connect" >&5
9500 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9501 if test "${ac_cv_func_connect+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 cat >conftest.$ac_ext <<_ACEOF
9505 #line $LINENO "configure"
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h. */
9511 /* System header to define __stub macros and hopefully few prototypes,
9512 which can conflict with char connect (); below.
9513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9514 <limits.h> exists even on freestanding compilers. */
9516 # include <limits.h>
9518 # include <assert.h>
9520 /* Override any gcc2 internal prototype to avoid an error. */
9525 /* We use char because int might match the return type of a gcc2
9526 builtin and then its argument prototype would still apply. */
9528 /* The GNU C library defines this for functions which it implements
9529 to always fail with ENOSYS. Some functions are actually named
9530 something starting with __ and the normal name is an alias. */
9531 #if defined (__stub_connect) || defined (__stub___connect)
9534 char (*f) () = connect;
9543 return f != connect;
9548 rm -f conftest.$ac_objext conftest$ac_exeext
9549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9550 (eval $ac_link) 2>&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } &&
9554 { ac_try='test -s conftest$ac_exeext'
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; }; then
9560 ac_cv_func_connect=yes
9562 echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9565 ac_cv_func_connect=no
9567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9569 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9570 echo "${ECHO_T}$ac_cv_func_connect" >&6
9572 if test $ac_cv_func_connect = no; then
9573 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9574 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9575 if test "${ac_cv_lib_socket_connect+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9578 ac_check_lib_save_LIBS=$LIBS
9579 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9580 cat >conftest.$ac_ext <<_ACEOF
9581 #line $LINENO "configure"
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h. */
9588 /* Override any gcc2 internal prototype to avoid an error. */
9592 /* We use char because int might match the return type of a gcc2
9593 builtin and then its argument prototype would still apply. */
9603 rm -f conftest.$ac_objext conftest$ac_exeext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9605 (eval $ac_link) 2>&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try='test -s conftest$ac_exeext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9615 ac_cv_lib_socket_connect=yes
9617 echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9620 ac_cv_lib_socket_connect=no
9622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9623 LIBS=$ac_check_lib_save_LIBS
9625 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9626 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9627 if test $ac_cv_lib_socket_connect = yes; then
9628 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9633 # Guillermo Gomez says -lposix is necessary on A/UX.
9634 echo "$as_me:$LINENO: checking for remove" >&5
9635 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9636 if test "${ac_cv_func_remove+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 cat >conftest.$ac_ext <<_ACEOF
9640 #line $LINENO "configure"
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9646 /* System header to define __stub macros and hopefully few prototypes,
9647 which can conflict with char remove (); below.
9648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9649 <limits.h> exists even on freestanding compilers. */
9651 # include <limits.h>
9653 # include <assert.h>
9655 /* Override any gcc2 internal prototype to avoid an error. */
9660 /* We use char because int might match the return type of a gcc2
9661 builtin and then its argument prototype would still apply. */
9663 /* The GNU C library defines this for functions which it implements
9664 to always fail with ENOSYS. Some functions are actually named
9665 something starting with __ and the normal name is an alias. */
9666 #if defined (__stub_remove) || defined (__stub___remove)
9669 char (*f) () = remove;
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9685 (eval $ac_link) 2>&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
9689 { ac_try='test -s conftest$ac_exeext'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_func_remove=yes
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9700 ac_cv_func_remove=no
9702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9704 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9705 echo "${ECHO_T}$ac_cv_func_remove" >&6
9707 if test $ac_cv_func_remove = no; then
9708 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9709 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9710 if test "${ac_cv_lib_posix_remove+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 ac_check_lib_save_LIBS=$LIBS
9714 LIBS="-lposix $LIBS"
9715 cat >conftest.$ac_ext <<_ACEOF
9716 #line $LINENO "configure"
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9723 /* Override any gcc2 internal prototype to avoid an error. */
9727 /* We use char because int might match the return type of a gcc2
9728 builtin and then its argument prototype would still apply. */
9738 rm -f conftest.$ac_objext conftest$ac_exeext
9739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9740 (eval $ac_link) 2>&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } &&
9744 { ac_try='test -s conftest$ac_exeext'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; }; then
9750 ac_cv_lib_posix_remove=yes
9752 echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9755 ac_cv_lib_posix_remove=no
9757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9758 LIBS=$ac_check_lib_save_LIBS
9760 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9761 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9762 if test $ac_cv_lib_posix_remove = yes; then
9763 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9768 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9769 echo "$as_me:$LINENO: checking for shmat" >&5
9770 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9771 if test "${ac_cv_func_shmat+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 cat >conftest.$ac_ext <<_ACEOF
9775 #line $LINENO "configure"
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9781 /* System header to define __stub macros and hopefully few prototypes,
9782 which can conflict with char shmat (); below.
9783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9784 <limits.h> exists even on freestanding compilers. */
9786 # include <limits.h>
9788 # include <assert.h>
9790 /* Override any gcc2 internal prototype to avoid an error. */
9795 /* We use char because int might match the return type of a gcc2
9796 builtin and then its argument prototype would still apply. */
9798 /* The GNU C library defines this for functions which it implements
9799 to always fail with ENOSYS. Some functions are actually named
9800 something starting with __ and the normal name is an alias. */
9801 #if defined (__stub_shmat) || defined (__stub___shmat)
9804 char (*f) () = shmat;
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9820 (eval $ac_link) 2>&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } &&
9824 { ac_try='test -s conftest$ac_exeext'
9825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; }; then
9830 ac_cv_func_shmat=yes
9832 echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9839 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9840 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9842 if test $ac_cv_func_shmat = no; then
9843 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9844 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9845 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9848 ac_check_lib_save_LIBS=$LIBS
9850 cat >conftest.$ac_ext <<_ACEOF
9851 #line $LINENO "configure"
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9858 /* Override any gcc2 internal prototype to avoid an error. */
9862 /* We use char because int might match the return type of a gcc2
9863 builtin and then its argument prototype would still apply. */
9873 rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9875 (eval $ac_link) 2>&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } &&
9879 { ac_try='test -s conftest$ac_exeext'
9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; }; then
9885 ac_cv_lib_ipc_shmat=yes
9887 echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9890 ac_cv_lib_ipc_shmat=no
9892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9893 LIBS=$ac_check_lib_save_LIBS
9895 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9896 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9897 if test $ac_cv_lib_ipc_shmat = yes; then
9898 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9904 # Check for libraries that X11R6 Xt/Xaw programs need.
9905 ac_save_LDFLAGS=$LDFLAGS
9906 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9907 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9908 # check for ICE first), but we must link in the order -lSM -lICE or
9909 # we get undefined symbols. So assume we have SM if we have ICE.
9910 # These have to be linked with before -lX11, unlike the other
9911 # libraries we check for below, so use a different variable.
9912 # John Interrante, Karl Berry
9913 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9914 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9915 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9918 ac_check_lib_save_LIBS=$LIBS
9919 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9920 cat >conftest.$ac_ext <<_ACEOF
9921 #line $LINENO "configure"
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h. */
9928 /* Override any gcc2 internal prototype to avoid an error. */
9932 /* We use char because int might match the return type of a gcc2
9933 builtin and then its argument prototype would still apply. */
9934 char IceConnectionNumber ();
9938 IceConnectionNumber ();
9943 rm -f conftest.$ac_objext conftest$ac_exeext
9944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9945 (eval $ac_link) 2>&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -s conftest$ac_exeext'
9950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; }; then
9955 ac_cv_lib_ICE_IceConnectionNumber=yes
9957 echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9960 ac_cv_lib_ICE_IceConnectionNumber=no
9962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9963 LIBS=$ac_check_lib_save_LIBS
9965 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9966 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9967 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9968 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9971 LDFLAGS=$ac_save_LDFLAGS
10033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10035 echo "$as_me:$LINENO: checking for $ac_header" >&5
10036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10043 # Is the header compilable?
10044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10046 cat >conftest.$ac_ext <<_ACEOF
10047 #line $LINENO "configure"
10050 cat confdefs.h >>conftest.$ac_ext
10051 cat >>conftest.$ac_ext <<_ACEOF
10052 /* end confdefs.h. */
10053 $ac_includes_default
10054 #include <$ac_header>
10056 rm -f conftest.$ac_objext
10057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10058 (eval $ac_compile) 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } &&
10062 { ac_try='test -s conftest.$ac_objext'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; }; then
10068 ac_header_compiler=yes
10070 echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10073 ac_header_compiler=no
10075 rm -f conftest.$ac_objext conftest.$ac_ext
10076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10077 echo "${ECHO_T}$ac_header_compiler" >&6
10079 # Is the header present?
10080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10082 cat >conftest.$ac_ext <<_ACEOF
10083 #line $LINENO "configure"
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10089 #include <$ac_header>
10091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10094 grep -v '^ *+' conftest.er1 >conftest.err
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } >/dev/null; then
10099 if test -s conftest.err; then
10100 ac_cpp_err=$ac_c_preproc_warn_flag
10107 if test -z "$ac_cpp_err"; then
10108 ac_header_preproc=yes
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10113 ac_header_preproc=no
10115 rm -f conftest.err conftest.$ac_ext
10116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10117 echo "${ECHO_T}$ac_header_preproc" >&6
10119 # So? What about this header?
10120 case $ac_header_compiler:$ac_header_preproc in
10122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10128 ## ------------------------------------ ##
10129 ## Report this to bug-autoconf@gnu.org. ##
10130 ## ------------------------------------ ##
10133 sed "s/^/$as_me: WARNING: /" >&2
10136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10144 ## ------------------------------------ ##
10145 ## Report this to bug-autoconf@gnu.org. ##
10146 ## ------------------------------------ ##
10149 sed "s/^/$as_me: WARNING: /" >&2
10152 echo "$as_me:$LINENO: checking for $ac_header" >&5
10153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 eval "$as_ac_Header=$ac_header_preproc"
10159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10164 cat >>confdefs.h <<_ACEOF
10165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10172 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10173 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10174 if test "${ac_cv_header_stdc+set}" = set; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
10177 cat >conftest.$ac_ext <<_ACEOF
10178 #line $LINENO "configure"
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184 #include <stdlib.h>
10185 #include <stdarg.h>
10186 #include <string.h>
10197 rm -f conftest.$ac_objext
10198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10199 (eval $ac_compile) 2>&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); } &&
10203 { ac_try='test -s conftest.$ac_objext'
10204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10205 (eval $ac_try) 2>&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); }; }; then
10209 ac_cv_header_stdc=yes
10211 echo "$as_me: failed program was:" >&5
10212 sed 's/^/| /' conftest.$ac_ext >&5
10214 ac_cv_header_stdc=no
10216 rm -f conftest.$ac_objext conftest.$ac_ext
10218 if test $ac_cv_header_stdc = yes; then
10219 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10220 cat >conftest.$ac_ext <<_ACEOF
10221 #line $LINENO "configure"
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10227 #include <string.h>
10230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10231 $EGREP "memchr" >/dev/null 2>&1; then
10234 ac_cv_header_stdc=no
10240 if test $ac_cv_header_stdc = yes; then
10241 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10242 cat >conftest.$ac_ext <<_ACEOF
10243 #line $LINENO "configure"
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10249 #include <stdlib.h>
10252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10253 $EGREP "free" >/dev/null 2>&1; then
10256 ac_cv_header_stdc=no
10262 if test $ac_cv_header_stdc = yes; then
10263 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10264 if test "$cross_compiling" = yes; then
10267 cat >conftest.$ac_ext <<_ACEOF
10268 #line $LINENO "configure"
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10275 #if ((' ' & 0x0FF) == 0x020)
10276 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10277 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10279 # define ISLOWER(c) \
10280 (('a' <= (c) && (c) <= 'i') \
10281 || ('j' <= (c) && (c) <= 'r') \
10282 || ('s' <= (c) && (c) <= 'z'))
10283 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10291 for (i = 0; i < 256; i++)
10292 if (XOR (islower (i), ISLOWER (i))
10293 || toupper (i) != TOUPPER (i))
10298 rm -f conftest$ac_exeext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10300 (eval $ac_link) 2>&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305 (eval $ac_try) 2>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
10311 echo "$as_me: program exited with status $ac_status" >&5
10312 echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10315 ( exit $ac_status )
10316 ac_cv_header_stdc=no
10318 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10322 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10323 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10324 if test $ac_cv_header_stdc = yes; then
10326 cat >>confdefs.h <<\_ACEOF
10327 #define STDC_HEADERS 1
10332 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10333 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10334 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 cat >conftest.$ac_ext <<_ACEOF
10338 #line $LINENO "configure"
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h. */
10344 #include <sys/types.h>
10348 return makedev(0, 0);
10353 rm -f conftest.$ac_objext conftest$ac_exeext
10354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10355 (eval $ac_link) 2>&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } &&
10359 { ac_try='test -s conftest$ac_exeext'
10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361 (eval $ac_try) 2>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; }; then
10365 ac_cv_header_sys_types_h_makedev=yes
10367 echo "$as_me: failed program was:" >&5
10368 sed 's/^/| /' conftest.$ac_ext >&5
10370 ac_cv_header_sys_types_h_makedev=no
10372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10375 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
10376 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
10378 if test $ac_cv_header_sys_types_h_makedev = no; then
10379 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10380 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10381 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10382 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10386 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10388 # Is the header compilable?
10389 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
10390 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
10391 cat >conftest.$ac_ext <<_ACEOF
10392 #line $LINENO "configure"
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10398 $ac_includes_default
10399 #include <sys/mkdev.h>
10401 rm -f conftest.$ac_objext
10402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10403 (eval $ac_compile) 2>&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } &&
10407 { ac_try='test -s conftest.$ac_objext'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
10413 ac_header_compiler=yes
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10418 ac_header_compiler=no
10420 rm -f conftest.$ac_objext conftest.$ac_ext
10421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10422 echo "${ECHO_T}$ac_header_compiler" >&6
10424 # Is the header present?
10425 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
10426 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
10427 cat >conftest.$ac_ext <<_ACEOF
10428 #line $LINENO "configure"
10431 cat confdefs.h >>conftest.$ac_ext
10432 cat >>conftest.$ac_ext <<_ACEOF
10433 /* end confdefs.h. */
10434 #include <sys/mkdev.h>
10436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10439 grep -v '^ *+' conftest.er1 >conftest.err
10441 cat conftest.err >&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } >/dev/null; then
10444 if test -s conftest.err; then
10445 ac_cpp_err=$ac_c_preproc_warn_flag
10452 if test -z "$ac_cpp_err"; then
10453 ac_header_preproc=yes
10455 echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10458 ac_header_preproc=no
10460 rm -f conftest.err conftest.$ac_ext
10461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10462 echo "${ECHO_T}$ac_header_preproc" >&6
10464 # So? What about this header?
10465 case $ac_header_compiler:$ac_header_preproc in
10467 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
10468 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10469 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10470 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10473 ## ------------------------------------ ##
10474 ## Report this to bug-autoconf@gnu.org. ##
10475 ## ------------------------------------ ##
10478 sed "s/^/$as_me: WARNING: /" >&2
10481 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
10482 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
10483 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
10484 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
10485 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10486 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10489 ## ------------------------------------ ##
10490 ## Report this to bug-autoconf@gnu.org. ##
10491 ## ------------------------------------ ##
10494 sed "s/^/$as_me: WARNING: /" >&2
10497 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10498 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10499 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 ac_cv_header_sys_mkdev_h=$ac_header_preproc
10504 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10505 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10508 if test $ac_cv_header_sys_mkdev_h = yes; then
10510 cat >>confdefs.h <<\_ACEOF
10511 #define MAJOR_IN_MKDEV 1
10518 if test $ac_cv_header_sys_mkdev_h = no; then
10519 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10520 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10521 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10522 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10526 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10528 # Is the header compilable?
10529 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
10530 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
10531 cat >conftest.$ac_ext <<_ACEOF
10532 #line $LINENO "configure"
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h. */
10538 $ac_includes_default
10539 #include <sys/sysmacros.h>
10541 rm -f conftest.$ac_objext
10542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10543 (eval $ac_compile) 2>&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } &&
10547 { ac_try='test -s conftest.$ac_objext'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; }; then
10553 ac_header_compiler=yes
10555 echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10558 ac_header_compiler=no
10560 rm -f conftest.$ac_objext conftest.$ac_ext
10561 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10562 echo "${ECHO_T}$ac_header_compiler" >&6
10564 # Is the header present?
10565 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
10566 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
10567 cat >conftest.$ac_ext <<_ACEOF
10568 #line $LINENO "configure"
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h. */
10574 #include <sys/sysmacros.h>
10576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10579 grep -v '^ *+' conftest.er1 >conftest.err
10581 cat conftest.err >&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } >/dev/null; then
10584 if test -s conftest.err; then
10585 ac_cpp_err=$ac_c_preproc_warn_flag
10592 if test -z "$ac_cpp_err"; then
10593 ac_header_preproc=yes
10595 echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10598 ac_header_preproc=no
10600 rm -f conftest.err conftest.$ac_ext
10601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10602 echo "${ECHO_T}$ac_header_preproc" >&6
10604 # So? What about this header?
10605 case $ac_header_compiler:$ac_header_preproc in
10607 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10608 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10609 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10610 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10613 ## ------------------------------------ ##
10614 ## Report this to bug-autoconf@gnu.org. ##
10615 ## ------------------------------------ ##
10618 sed "s/^/$as_me: WARNING: /" >&2
10621 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10622 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10623 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
10624 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
10625 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10626 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10629 ## ------------------------------------ ##
10630 ## Report this to bug-autoconf@gnu.org. ##
10631 ## ------------------------------------ ##
10634 sed "s/^/$as_me: WARNING: /" >&2
10637 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10638 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10639 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10644 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10645 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10648 if test $ac_cv_header_sys_sysmacros_h = yes; then
10650 cat >>confdefs.h <<\_ACEOF
10651 #define MAJOR_IN_SYSMACROS 1
10665 ac_header_dirent=no
10666 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10667 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10668 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10669 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
10673 cat >conftest.$ac_ext <<_ACEOF
10674 #line $LINENO "configure"
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680 #include <sys/types.h>
10692 rm -f conftest.$ac_objext
10693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10694 (eval $ac_compile) 2>&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } &&
10698 { ac_try='test -s conftest.$ac_objext'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; }; then
10704 eval "$as_ac_Header=yes"
10706 echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10709 eval "$as_ac_Header=no"
10711 rm -f conftest.$ac_objext conftest.$ac_ext
10713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10716 cat >>confdefs.h <<_ACEOF
10717 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10720 ac_header_dirent=$ac_hdr; break
10724 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10725 if test $ac_header_dirent = dirent.h; then
10726 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10727 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10728 if test "${ac_cv_search_opendir+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10731 ac_func_search_save_LIBS=$LIBS
10732 ac_cv_search_opendir=no
10733 cat >conftest.$ac_ext <<_ACEOF
10734 #line $LINENO "configure"
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10741 /* Override any gcc2 internal prototype to avoid an error. */
10745 /* We use char because int might match the return type of a gcc2
10746 builtin and then its argument prototype would still apply. */
10756 rm -f conftest.$ac_objext conftest$ac_exeext
10757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10758 (eval $ac_link) 2>&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
10762 { ac_try='test -s conftest$ac_exeext'
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; }; then
10768 ac_cv_search_opendir="none required"
10770 echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10775 if test "$ac_cv_search_opendir" = no; then
10776 for ac_lib in dir; do
10777 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10778 cat >conftest.$ac_ext <<_ACEOF
10779 #line $LINENO "configure"
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10786 /* Override any gcc2 internal prototype to avoid an error. */
10790 /* We use char because int might match the return type of a gcc2
10791 builtin and then its argument prototype would still apply. */
10801 rm -f conftest.$ac_objext conftest$ac_exeext
10802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10803 (eval $ac_link) 2>&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } &&
10807 { ac_try='test -s conftest$ac_exeext'
10808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10809 (eval $ac_try) 2>&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; }; then
10813 ac_cv_search_opendir="-l$ac_lib"
10816 echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10823 LIBS=$ac_func_search_save_LIBS
10825 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10826 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10827 if test "$ac_cv_search_opendir" != no; then
10828 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10833 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10834 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10835 if test "${ac_cv_search_opendir+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10838 ac_func_search_save_LIBS=$LIBS
10839 ac_cv_search_opendir=no
10840 cat >conftest.$ac_ext <<_ACEOF
10841 #line $LINENO "configure"
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10848 /* Override any gcc2 internal prototype to avoid an error. */
10852 /* We use char because int might match the return type of a gcc2
10853 builtin and then its argument prototype would still apply. */
10863 rm -f conftest.$ac_objext conftest$ac_exeext
10864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10865 (eval $ac_link) 2>&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } &&
10869 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10875 ac_cv_search_opendir="none required"
10877 echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.$ac_ext >&5
10881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10882 if test "$ac_cv_search_opendir" = no; then
10883 for ac_lib in x; do
10884 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10885 cat >conftest.$ac_ext <<_ACEOF
10886 #line $LINENO "configure"
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10893 /* Override any gcc2 internal prototype to avoid an error. */
10897 /* We use char because int might match the return type of a gcc2
10898 builtin and then its argument prototype would still apply. */
10908 rm -f conftest.$ac_objext conftest$ac_exeext
10909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10910 (eval $ac_link) 2>&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } &&
10914 { ac_try='test -s conftest$ac_exeext'
10915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10916 (eval $ac_try) 2>&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); }; }; then
10920 ac_cv_search_opendir="-l$ac_lib"
10923 echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_func_search_save_LIBS
10932 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10933 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10934 if test "$ac_cv_search_opendir" != no; then
10935 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10941 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10942 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10943 if test "${ac_cv_header_stat_broken+set}" = set; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 cat >conftest.$ac_ext <<_ACEOF
10947 #line $LINENO "configure"
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h. */
10953 #include <sys/types.h>
10954 #include <sys/stat.h>
10956 #if defined(S_ISBLK) && defined(S_IFDIR)
10957 # if S_ISBLK (S_IFDIR)
10962 #if defined(S_ISBLK) && defined(S_IFCHR)
10963 # if S_ISBLK (S_IFCHR)
10968 #if defined(S_ISLNK) && defined(S_IFREG)
10969 # if S_ISLNK (S_IFREG)
10974 #if defined(S_ISSOCK) && defined(S_IFREG)
10975 # if S_ISSOCK (S_IFREG)
10981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10982 $EGREP "You lose" >/dev/null 2>&1; then
10983 ac_cv_header_stat_broken=yes
10985 ac_cv_header_stat_broken=no
10990 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10991 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10992 if test $ac_cv_header_stat_broken = yes; then
10994 cat >>confdefs.h <<\_ACEOF
10995 #define STAT_MACROS_BROKEN 1
11000 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11001 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11002 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11005 cat >conftest.$ac_ext <<_ACEOF
11006 #line $LINENO "configure"
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 #include <sys/types.h>
11013 #include <sys/wait.h>
11014 #ifndef WEXITSTATUS
11015 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11018 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11026 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11031 rm -f conftest.$ac_objext
11032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11033 (eval $ac_compile) 2>&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
11037 { ac_try='test -s conftest.$ac_objext'
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; }; then
11043 ac_cv_header_sys_wait_h=yes
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11048 ac_cv_header_sys_wait_h=no
11050 rm -f conftest.$ac_objext conftest.$ac_ext
11052 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11053 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11054 if test $ac_cv_header_sys_wait_h = yes; then
11056 cat >>confdefs.h <<\_ACEOF
11057 #define HAVE_SYS_WAIT_H 1
11062 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11063 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11064 if test "${ac_cv_header_time+set}" = set; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11067 cat >conftest.$ac_ext <<_ACEOF
11068 #line $LINENO "configure"
11071 cat confdefs.h >>conftest.$ac_ext
11072 cat >>conftest.$ac_ext <<_ACEOF
11073 /* end confdefs.h. */
11074 #include <sys/types.h>
11075 #include <sys/time.h>
11081 if ((struct tm *) 0)
11087 rm -f conftest.$ac_objext
11088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11089 (eval $ac_compile) 2>&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); } &&
11093 { ac_try='test -s conftest.$ac_objext'
11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095 (eval $ac_try) 2>&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }; }; then
11099 ac_cv_header_time=yes
11101 echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.$ac_ext >&5
11104 ac_cv_header_time=no
11106 rm -f conftest.$ac_objext conftest.$ac_ext
11108 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11109 echo "${ECHO_T}$ac_cv_header_time" >&6
11110 if test $ac_cv_header_time = yes; then
11112 cat >>confdefs.h <<\_ACEOF
11113 #define TIME_WITH_SYS_TIME 1
11119 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11120 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11121 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11124 cat >conftest.$ac_ext <<_ACEOF
11125 #line $LINENO "configure"
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h. */
11131 $ac_includes_default
11135 static struct stat ac_aggr;
11136 if (ac_aggr.st_blksize)
11142 rm -f conftest.$ac_objext
11143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11144 (eval $ac_compile) 2>&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } &&
11148 { ac_try='test -s conftest.$ac_objext'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; }; then
11154 ac_cv_member_struct_stat_st_blksize=yes
11156 echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11159 cat >conftest.$ac_ext <<_ACEOF
11160 #line $LINENO "configure"
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11166 $ac_includes_default
11170 static struct stat ac_aggr;
11171 if (sizeof ac_aggr.st_blksize)
11177 rm -f conftest.$ac_objext
11178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11179 (eval $ac_compile) 2>&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try='test -s conftest.$ac_objext'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 ac_cv_member_struct_stat_st_blksize=yes
11191 echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11194 ac_cv_member_struct_stat_st_blksize=no
11196 rm -f conftest.$ac_objext conftest.$ac_ext
11198 rm -f conftest.$ac_objext conftest.$ac_ext
11200 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11201 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11202 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11204 cat >>confdefs.h <<_ACEOF
11205 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11209 cat >>confdefs.h <<\_ACEOF
11210 #define HAVE_ST_BLKSIZE 1
11216 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11217 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11218 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11221 cat >conftest.$ac_ext <<_ACEOF
11222 #line $LINENO "configure"
11225 cat confdefs.h >>conftest.$ac_ext
11226 cat >>conftest.$ac_ext <<_ACEOF
11227 /* end confdefs.h. */
11228 $ac_includes_default
11232 static struct stat ac_aggr;
11233 if (ac_aggr.st_blocks)
11239 rm -f conftest.$ac_objext
11240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11241 (eval $ac_compile) 2>&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } &&
11245 { ac_try='test -s conftest.$ac_objext'
11246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; }; then
11251 ac_cv_member_struct_stat_st_blocks=yes
11253 echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11256 cat >conftest.$ac_ext <<_ACEOF
11257 #line $LINENO "configure"
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 $ac_includes_default
11267 static struct stat ac_aggr;
11268 if (sizeof ac_aggr.st_blocks)
11274 rm -f conftest.$ac_objext
11275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11276 (eval $ac_compile) 2>&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } &&
11280 { ac_try='test -s conftest.$ac_objext'
11281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282 (eval $ac_try) 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 ac_cv_member_struct_stat_st_blocks=yes
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11291 ac_cv_member_struct_stat_st_blocks=no
11293 rm -f conftest.$ac_objext conftest.$ac_ext
11295 rm -f conftest.$ac_objext conftest.$ac_ext
11297 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11298 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11299 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11301 cat >>confdefs.h <<_ACEOF
11302 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11306 cat >>confdefs.h <<\_ACEOF
11307 #define HAVE_ST_BLOCKS 1
11311 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11315 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11316 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11317 if test "${ac_cv_struct_tm+set}" = set; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 cat >conftest.$ac_ext <<_ACEOF
11321 #line $LINENO "configure"
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11327 #include <sys/types.h>
11333 struct tm *tp; tp->tm_sec;
11338 rm -f conftest.$ac_objext
11339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11340 (eval $ac_compile) 2>&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } &&
11344 { ac_try='test -s conftest.$ac_objext'
11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; }; then
11350 ac_cv_struct_tm=time.h
11352 echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.$ac_ext >&5
11355 ac_cv_struct_tm=sys/time.h
11357 rm -f conftest.$ac_objext conftest.$ac_ext
11359 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11360 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11361 if test $ac_cv_struct_tm = sys/time.h; then
11363 cat >>confdefs.h <<\_ACEOF
11364 #define TM_IN_SYS_TIME 1
11369 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11370 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11371 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 cat >conftest.$ac_ext <<_ACEOF
11375 #line $LINENO "configure"
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h. */
11381 #include <sys/types.h>
11382 #include <$ac_cv_struct_tm>
11388 static struct tm ac_aggr;
11389 if (ac_aggr.tm_zone)
11395 rm -f conftest.$ac_objext
11396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11397 (eval $ac_compile) 2>&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } &&
11401 { ac_try='test -s conftest.$ac_objext'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; }; then
11407 ac_cv_member_struct_tm_tm_zone=yes
11409 echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11412 cat >conftest.$ac_ext <<_ACEOF
11413 #line $LINENO "configure"
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h. */
11419 #include <sys/types.h>
11420 #include <$ac_cv_struct_tm>
11426 static struct tm ac_aggr;
11427 if (sizeof ac_aggr.tm_zone)
11433 rm -f conftest.$ac_objext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11435 (eval $ac_compile) 2>&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
11439 { ac_try='test -s conftest.$ac_objext'
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; }; then
11445 ac_cv_member_struct_tm_tm_zone=yes
11447 echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11450 ac_cv_member_struct_tm_tm_zone=no
11452 rm -f conftest.$ac_objext conftest.$ac_ext
11454 rm -f conftest.$ac_objext conftest.$ac_ext
11456 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11457 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11458 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11460 cat >>confdefs.h <<_ACEOF
11461 #define HAVE_STRUCT_TM_TM_ZONE 1
11467 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11469 cat >>confdefs.h <<\_ACEOF
11470 #define HAVE_TM_ZONE 1
11474 echo "$as_me:$LINENO: checking for tzname" >&5
11475 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11476 if test "${ac_cv_var_tzname+set}" = set; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11479 cat >conftest.$ac_ext <<_ACEOF
11480 #line $LINENO "configure"
11483 cat confdefs.h >>conftest.$ac_ext
11484 cat >>conftest.$ac_ext <<_ACEOF
11485 /* end confdefs.h. */
11487 #ifndef tzname /* For SGI. */
11488 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11499 rm -f conftest.$ac_objext conftest$ac_exeext
11500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11501 (eval $ac_link) 2>&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); } &&
11505 { ac_try='test -s conftest$ac_exeext'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 ac_cv_var_tzname=yes
11513 echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11516 ac_cv_var_tzname=no
11518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11520 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11521 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11522 if test $ac_cv_var_tzname = yes; then
11524 cat >>confdefs.h <<\_ACEOF
11525 #define HAVE_TZNAME 1
11532 echo "$as_me:$LINENO: checking for utime.h" >&5
11533 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
11534 if test "${ba_cv_header_utime_h+set}" = set; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11537 cat >conftest.$ac_ext <<_ACEOF
11538 #line $LINENO "configure"
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11545 #include <sys/types.h>
11555 rm -f conftest.$ac_objext
11556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11557 (eval $ac_compile) 2>&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } &&
11561 { ac_try='test -s conftest.$ac_objext'
11562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563 (eval $ac_try) 2>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; }; then
11567 ba_cv_header_utime_h=yes
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 ba_cv_header_utime_h=no
11574 rm -f conftest.$ac_objext conftest.$ac_ext
11576 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
11577 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
11578 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
11579 #define HAVE_UTIME_H 1
11583 echo "$as_me:$LINENO: checking for socklen_t" >&5
11584 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11585 if test "${ba_cv_header_socklen_t+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11588 cat >conftest.$ac_ext <<_ACEOF
11589 #line $LINENO "configure"
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h. */
11596 #include <sys/types.h>
11597 #include <sys/socket.h>
11606 rm -f conftest.$ac_objext
11607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11608 (eval $ac_compile) 2>&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
11612 { ac_try='test -s conftest.$ac_objext'
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; }; then
11618 ba_cv_header_socklen_t=yes
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11623 ba_cv_header_socklen_t=no
11625 rm -f conftest.$ac_objext conftest.$ac_ext
11627 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
11628 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
11629 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
11630 #define HAVE_SOCKLEN_T 1
11634 echo "$as_me:$LINENO: checking for bigendian" >&5
11635 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
11636 if test "${ba_cv_bigendian+set}" = set; then
11637 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 if test "$cross_compiling" = yes; then
11642 cat >conftest.$ac_ext <<_ACEOF
11643 #line $LINENO "configure"
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11649 main(){long a=1L; char *p=(char *)&a; exit(*p);}
11651 rm -f conftest$ac_exeext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11653 (eval $ac_link) 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; }; then
11662 ba_cv_bigendian=yes
11664 echo "$as_me: program exited with status $ac_status" >&5
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11668 ( exit $ac_status )
11671 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11674 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
11675 echo "${ECHO_T}$ba_cv_bigendian" >&6
11676 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
11677 #define HAVE_BIGENDIAN 1
11682 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11683 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11684 if test "${ac_cv_c_const+set}" = set; then
11685 echo $ECHO_N "(cached) $ECHO_C" >&6
11687 cat >conftest.$ac_ext <<_ACEOF
11688 #line $LINENO "configure"
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11698 /* FIXME: Include the comments suggested by Paul. */
11699 #ifndef __cplusplus
11700 /* Ultrix mips cc rejects this. */
11701 typedef int charset[2];
11703 /* SunOS 4.1.1 cc rejects this. */
11704 char const *const *ccp;
11706 /* NEC SVR4.0.2 mips cc rejects this. */
11707 struct point {int x, y;};
11708 static struct point const zero = {0,0};
11709 /* AIX XL C 1.02.0.0 rejects this.
11710 It does not let you subtract one const X* pointer from another in
11711 an arm of an if-expression whose if-part is not a constant
11713 const char *g = "string";
11714 ccp = &g + (g ? g-g : 0);
11715 /* HPUX 7.0 cc rejects these. */
11718 ccp = (char const *const *) p;
11719 { /* SCO 3.2v4 cc rejects this. */
11721 char const *s = 0 ? (char *) 0 : (char const *) 0;
11725 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11726 int x[] = {25, 17};
11727 const int *foo = &x[0];
11730 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11731 typedef const int *iptr;
11735 { /* AIX XL C 1.02.0.0 rejects this saying
11736 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11737 struct s { int j; const int *ap[3]; };
11738 struct s *b; b->j = 5;
11740 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11741 const int foo = 10;
11749 rm -f conftest.$ac_objext
11750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11751 (eval $ac_compile) 2>&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } &&
11755 { ac_try='test -s conftest.$ac_objext'
11756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757 (eval $ac_try) 2>&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; }; then
11763 echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11768 rm -f conftest.$ac_objext conftest.$ac_ext
11770 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11771 echo "${ECHO_T}$ac_cv_c_const" >&6
11772 if test $ac_cv_c_const = no; then
11774 cat >>confdefs.h <<\_ACEOF
11782 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11783 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11785 # The order of these tests is important.
11786 cat >conftest.$ac_ext <<_ACEOF
11787 #line $LINENO "configure"
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h. */
11793 #include <sys/statvfs.h>
11794 #include <sys/fstyp.h>
11796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11799 grep -v '^ *+' conftest.er1 >conftest.err
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } >/dev/null; then
11804 if test -s conftest.err; then
11805 ac_cpp_err=$ac_c_preproc_warn_flag
11812 if test -z "$ac_cpp_err"; then
11813 cat >>confdefs.h <<\_ACEOF
11814 #define FSTYPE_STATVFS 1
11818 echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11823 rm -f conftest.err conftest.$ac_ext
11824 if test $fstype = no; then
11825 cat >conftest.$ac_ext <<_ACEOF
11826 #line $LINENO "configure"
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11832 #include <sys/statfs.h>
11833 #include <sys/fstyp.h>
11835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11838 grep -v '^ *+' conftest.er1 >conftest.err
11840 cat conftest.err >&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); } >/dev/null; then
11843 if test -s conftest.err; then
11844 ac_cpp_err=$ac_c_preproc_warn_flag
11851 if test -z "$ac_cpp_err"; then
11852 cat >>confdefs.h <<\_ACEOF
11853 #define FSTYPE_USG_STATFS 1
11857 echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11862 rm -f conftest.err conftest.$ac_ext
11864 if test $fstype = no; then
11865 cat >conftest.$ac_ext <<_ACEOF
11866 #line $LINENO "configure"
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11872 #include <sys/statfs.h>
11873 #include <sys/vmount.h>
11875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11878 grep -v '^ *+' conftest.er1 >conftest.err
11880 cat conftest.err >&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } >/dev/null; then
11883 if test -s conftest.err; then
11884 ac_cpp_err=$ac_c_preproc_warn_flag
11891 if test -z "$ac_cpp_err"; then
11892 cat >>confdefs.h <<\_ACEOF
11893 #define FSTYPE_AIX_STATFS 1
11897 echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11902 rm -f conftest.err conftest.$ac_ext
11904 if test $fstype = no; then
11905 cat >conftest.$ac_ext <<_ACEOF
11906 #line $LINENO "configure"
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h. */
11912 #include <mntent.h>
11914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11917 grep -v '^ *+' conftest.er1 >conftest.err
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } >/dev/null; then
11922 if test -s conftest.err; then
11923 ac_cpp_err=$ac_c_preproc_warn_flag
11930 if test -z "$ac_cpp_err"; then
11931 cat >>confdefs.h <<\_ACEOF
11932 #define FSTYPE_MNTENT 1
11936 echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11941 rm -f conftest.err conftest.$ac_ext
11943 if test $fstype = no; then
11944 cat >conftest.$ac_ext <<_ACEOF
11945 #line $LINENO "configure"
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 #include <sys/mount.h>
11954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11955 $EGREP "f_type;" >/dev/null 2>&1; then
11956 cat >>confdefs.h <<\_ACEOF
11957 #define FSTYPE_STATFS 1
11964 if test $fstype = no; then
11965 cat >conftest.$ac_ext <<_ACEOF
11966 #line $LINENO "configure"
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h. */
11972 #include <sys/mount.h>
11973 #include <sys/fs_types.h>
11975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11978 grep -v '^ *+' conftest.er1 >conftest.err
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } >/dev/null; then
11983 if test -s conftest.err; then
11984 ac_cpp_err=$ac_c_preproc_warn_flag
11991 if test -z "$ac_cpp_err"; then
11992 cat >>confdefs.h <<\_ACEOF
11993 #define FSTYPE_GETMNT 1
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
12002 rm -f conftest.err conftest.$ac_ext
12004 echo "$as_me:$LINENO: result: $fstype" >&5
12005 echo "${ECHO_T}$fstype" >&6
12007 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12008 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12009 if test "${ac_cv_type_signal+set}" = set; then
12010 echo $ECHO_N "(cached) $ECHO_C" >&6
12012 cat >conftest.$ac_ext <<_ACEOF
12013 #line $LINENO "configure"
12016 cat confdefs.h >>conftest.$ac_ext
12017 cat >>conftest.$ac_ext <<_ACEOF
12018 /* end confdefs.h. */
12019 #include <sys/types.h>
12020 #include <signal.h>
12025 extern "C" void (*signal (int, void (*)(int)))(int);
12027 void (*signal ()) ();
12038 rm -f conftest.$ac_objext
12039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12040 (eval $ac_compile) 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try='test -s conftest.$ac_objext'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
12050 ac_cv_type_signal=void
12052 echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12055 ac_cv_type_signal=int
12057 rm -f conftest.$ac_objext conftest.$ac_ext
12059 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12060 echo "${ECHO_T}$ac_cv_type_signal" >&6
12062 cat >>confdefs.h <<_ACEOF
12063 #define RETSIGTYPE $ac_cv_type_signal
12068 echo "$as_me:$LINENO: checking for type of signal functions" >&5
12069 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12070 if test "${bash_cv_signal_vintage+set}" = set; then
12071 echo $ECHO_N "(cached) $ECHO_C" >&6
12074 cat >conftest.$ac_ext <<_ACEOF
12075 #line $LINENO "configure"
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h. */
12081 #include <signal.h>
12087 struct sigaction sa;
12088 sigemptyset(&ss); sigsuspend(&ss);
12089 sigaction(SIGINT, &sa, (struct sigaction *) 0);
12090 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12096 rm -f conftest.$ac_objext conftest$ac_exeext
12097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12098 (eval $ac_link) 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=posix
12110 echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12114 cat >conftest.$ac_ext <<_ACEOF
12115 #line $LINENO "configure"
12118 cat confdefs.h >>conftest.$ac_ext
12119 cat >>conftest.$ac_ext <<_ACEOF
12120 /* end confdefs.h. */
12121 #include <signal.h>
12126 int mask = sigmask(SIGINT);
12127 sigsetmask(mask); sigblock(mask); sigpause(mask);
12133 rm -f conftest.$ac_objext conftest$ac_exeext
12134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12135 (eval $ac_link) 2>&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } &&
12139 { ac_try='test -s conftest$ac_exeext'
12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12145 bash_cv_signal_vintage=4.2bsd
12147 echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12151 cat >conftest.$ac_ext <<_ACEOF
12152 #line $LINENO "configure"
12155 cat confdefs.h >>conftest.$ac_ext
12156 cat >>conftest.$ac_ext <<_ACEOF
12157 /* end confdefs.h. */
12159 #include <signal.h>
12160 RETSIGTYPE foo() { }
12165 int mask = sigmask(SIGINT);
12166 sigset(SIGINT, foo); sigrelse(SIGINT);
12167 sighold(SIGINT); sigpause(SIGINT);
12173 rm -f conftest.$ac_objext conftest$ac_exeext
12174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12175 (eval $ac_link) 2>&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } &&
12179 { ac_try='test -s conftest$ac_exeext'
12180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181 (eval $ac_try) 2>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; }; then
12185 bash_cv_signal_vintage=svr3
12187 echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12190 bash_cv_signal_vintage=v7
12193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12203 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
12204 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
12205 if test "$bash_cv_signal_vintage" = posix; then
12206 cat >>confdefs.h <<\_ACEOF
12207 #define HAVE_POSIX_SIGNALS 1
12210 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
12211 cat >>confdefs.h <<\_ACEOF
12212 #define HAVE_BSD_SIGNALS 1
12215 elif test "$bash_cv_signal_vintage" = svr3; then
12216 cat >>confdefs.h <<\_ACEOF
12217 #define HAVE_USG_SIGHOLD 1
12222 echo "$as_me:$LINENO: checking for mode_t" >&5
12223 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12224 if test "${ac_cv_type_mode_t+set}" = set; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
12227 cat >conftest.$ac_ext <<_ACEOF
12228 #line $LINENO "configure"
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h. */
12234 $ac_includes_default
12240 if (sizeof (mode_t))
12246 rm -f conftest.$ac_objext
12247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12248 (eval $ac_compile) 2>&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } &&
12252 { ac_try='test -s conftest.$ac_objext'
12253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254 (eval $ac_try) 2>&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; }; then
12258 ac_cv_type_mode_t=yes
12260 echo "$as_me: failed program was:" >&5
12261 sed 's/^/| /' conftest.$ac_ext >&5
12263 ac_cv_type_mode_t=no
12265 rm -f conftest.$ac_objext conftest.$ac_ext
12267 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12268 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12269 if test $ac_cv_type_mode_t = yes; then
12273 cat >>confdefs.h <<_ACEOF
12279 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12280 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12281 if test "${ac_cv_type_uid_t+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12284 cat >conftest.$ac_ext <<_ACEOF
12285 #line $LINENO "configure"
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h. */
12291 #include <sys/types.h>
12294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12295 $EGREP "uid_t" >/dev/null 2>&1; then
12296 ac_cv_type_uid_t=yes
12298 ac_cv_type_uid_t=no
12303 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12304 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12305 if test $ac_cv_type_uid_t = no; then
12307 cat >>confdefs.h <<\_ACEOF
12312 cat >>confdefs.h <<\_ACEOF
12318 echo "$as_me:$LINENO: checking for size_t" >&5
12319 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12320 if test "${ac_cv_type_size_t+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12323 cat >conftest.$ac_ext <<_ACEOF
12324 #line $LINENO "configure"
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12330 $ac_includes_default
12336 if (sizeof (size_t))
12342 rm -f conftest.$ac_objext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12344 (eval $ac_compile) 2>&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } &&
12348 { ac_try='test -s conftest.$ac_objext'
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; }; then
12354 ac_cv_type_size_t=yes
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12359 ac_cv_type_size_t=no
12361 rm -f conftest.$ac_objext conftest.$ac_ext
12363 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12364 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12365 if test $ac_cv_type_size_t = yes; then
12369 cat >>confdefs.h <<_ACEOF
12370 #define size_t unsigned
12375 echo "$as_me:$LINENO: checking for pid_t" >&5
12376 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12377 if test "${ac_cv_type_pid_t+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12380 cat >conftest.$ac_ext <<_ACEOF
12381 #line $LINENO "configure"
12384 cat confdefs.h >>conftest.$ac_ext
12385 cat >>conftest.$ac_ext <<_ACEOF
12386 /* end confdefs.h. */
12387 $ac_includes_default
12393 if (sizeof (pid_t))
12399 rm -f conftest.$ac_objext
12400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12401 (eval $ac_compile) 2>&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } &&
12405 { ac_try='test -s conftest.$ac_objext'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
12411 ac_cv_type_pid_t=yes
12413 echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12416 ac_cv_type_pid_t=no
12418 rm -f conftest.$ac_objext conftest.$ac_ext
12420 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12421 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12422 if test $ac_cv_type_pid_t = yes; then
12426 cat >>confdefs.h <<_ACEOF
12432 echo "$as_me:$LINENO: checking for off_t" >&5
12433 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12434 if test "${ac_cv_type_off_t+set}" = set; then
12435 echo $ECHO_N "(cached) $ECHO_C" >&6
12437 cat >conftest.$ac_ext <<_ACEOF
12438 #line $LINENO "configure"
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h. */
12444 $ac_includes_default
12450 if (sizeof (off_t))
12456 rm -f conftest.$ac_objext
12457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12458 (eval $ac_compile) 2>&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } &&
12462 { ac_try='test -s conftest.$ac_objext'
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 ac_cv_type_off_t=yes
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12473 ac_cv_type_off_t=no
12475 rm -f conftest.$ac_objext conftest.$ac_ext
12477 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12478 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12479 if test $ac_cv_type_off_t = yes; then
12483 cat >>confdefs.h <<_ACEOF
12489 echo "$as_me:$LINENO: checking for ino_t" >&5
12490 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
12491 if test "${ac_cv_type_ino_t+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 cat >conftest.$ac_ext <<_ACEOF
12495 #line $LINENO "configure"
12498 cat confdefs.h >>conftest.$ac_ext
12499 cat >>conftest.$ac_ext <<_ACEOF
12500 /* end confdefs.h. */
12501 $ac_includes_default
12507 if (sizeof (ino_t))
12513 rm -f conftest.$ac_objext
12514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12515 (eval $ac_compile) 2>&5
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); } &&
12519 { ac_try='test -s conftest.$ac_objext'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; }; then
12525 ac_cv_type_ino_t=yes
12527 echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12530 ac_cv_type_ino_t=no
12532 rm -f conftest.$ac_objext conftest.$ac_ext
12534 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12535 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12536 if test $ac_cv_type_ino_t = yes; then
12540 cat >>confdefs.h <<_ACEOF
12541 #define ino_t unsigned long
12546 echo "$as_me:$LINENO: checking for dev_t" >&5
12547 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12548 if test "${ac_cv_type_dev_t+set}" = set; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
12551 cat >conftest.$ac_ext <<_ACEOF
12552 #line $LINENO "configure"
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12558 $ac_includes_default
12564 if (sizeof (dev_t))
12570 rm -f conftest.$ac_objext
12571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12572 (eval $ac_compile) 2>&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); } &&
12576 { ac_try='test -s conftest.$ac_objext'
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; }; then
12582 ac_cv_type_dev_t=yes
12584 echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12587 ac_cv_type_dev_t=no
12589 rm -f conftest.$ac_objext conftest.$ac_ext
12591 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12592 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12593 if test $ac_cv_type_dev_t = yes; then
12597 cat >>confdefs.h <<_ACEOF
12598 #define dev_t unsigned long
12603 echo "$as_me:$LINENO: checking for daddr_t" >&5
12604 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
12605 if test "${ac_cv_type_daddr_t+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12608 cat >conftest.$ac_ext <<_ACEOF
12609 #line $LINENO "configure"
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12615 $ac_includes_default
12621 if (sizeof (daddr_t))
12627 rm -f conftest.$ac_objext
12628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12629 (eval $ac_compile) 2>&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } &&
12633 { ac_try='test -s conftest.$ac_objext'
12634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635 (eval $ac_try) 2>&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; }; then
12639 ac_cv_type_daddr_t=yes
12641 echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.$ac_ext >&5
12644 ac_cv_type_daddr_t=no
12646 rm -f conftest.$ac_objext conftest.$ac_ext
12648 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
12649 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
12650 if test $ac_cv_type_daddr_t = yes; then
12654 cat >>confdefs.h <<_ACEOF
12655 #define daddr_t long
12660 echo "$as_me:$LINENO: checking for major_t" >&5
12661 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
12662 if test "${ac_cv_type_major_t+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12665 cat >conftest.$ac_ext <<_ACEOF
12666 #line $LINENO "configure"
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h. */
12672 $ac_includes_default
12678 if (sizeof (major_t))
12684 rm -f conftest.$ac_objext
12685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12686 (eval $ac_compile) 2>&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } &&
12690 { ac_try='test -s conftest.$ac_objext'
12691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692 (eval $ac_try) 2>&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; }; then
12696 ac_cv_type_major_t=yes
12698 echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12701 ac_cv_type_major_t=no
12703 rm -f conftest.$ac_objext conftest.$ac_ext
12705 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12706 echo "${ECHO_T}$ac_cv_type_major_t" >&6
12707 if test $ac_cv_type_major_t = yes; then
12711 cat >>confdefs.h <<_ACEOF
12712 #define major_t int
12717 echo "$as_me:$LINENO: checking for minor_t" >&5
12718 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
12719 if test "${ac_cv_type_minor_t+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12722 cat >conftest.$ac_ext <<_ACEOF
12723 #line $LINENO "configure"
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12729 $ac_includes_default
12735 if (sizeof (minor_t))
12741 rm -f conftest.$ac_objext
12742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12743 (eval $ac_compile) 2>&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } &&
12747 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12753 ac_cv_type_minor_t=yes
12755 echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12758 ac_cv_type_minor_t=no
12760 rm -f conftest.$ac_objext conftest.$ac_ext
12762 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12763 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12764 if test $ac_cv_type_minor_t = yes; then
12768 cat >>confdefs.h <<_ACEOF
12769 #define minor_t int
12774 echo "$as_me:$LINENO: checking for ssize_t" >&5
12775 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12776 if test "${ac_cv_type_ssize_t+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 cat >conftest.$ac_ext <<_ACEOF
12780 #line $LINENO "configure"
12783 cat confdefs.h >>conftest.$ac_ext
12784 cat >>conftest.$ac_ext <<_ACEOF
12785 /* end confdefs.h. */
12786 $ac_includes_default
12792 if (sizeof (ssize_t))
12798 rm -f conftest.$ac_objext
12799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12800 (eval $ac_compile) 2>&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); } &&
12804 { ac_try='test -s conftest.$ac_objext'
12805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12806 (eval $ac_try) 2>&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; }; then
12810 ac_cv_type_ssize_t=yes
12812 echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12815 ac_cv_type_ssize_t=no
12817 rm -f conftest.$ac_objext conftest.$ac_ext
12819 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12820 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12821 if test $ac_cv_type_ssize_t = yes; then
12825 cat >>confdefs.h <<_ACEOF
12826 #define ssize_t int
12831 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12832 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12833 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 cat >conftest.$ac_ext <<_ACEOF
12837 #line $LINENO "configure"
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12843 $ac_includes_default
12847 static struct stat ac_aggr;
12848 if (ac_aggr.st_blocks)
12854 rm -f conftest.$ac_objext
12855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12856 (eval $ac_compile) 2>&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } &&
12860 { ac_try='test -s conftest.$ac_objext'
12861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862 (eval $ac_try) 2>&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 ac_cv_member_struct_stat_st_blocks=yes
12868 echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12871 cat >conftest.$ac_ext <<_ACEOF
12872 #line $LINENO "configure"
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12878 $ac_includes_default
12882 static struct stat ac_aggr;
12883 if (sizeof ac_aggr.st_blocks)
12889 rm -f conftest.$ac_objext
12890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12891 (eval $ac_compile) 2>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } &&
12895 { ac_try='test -s conftest.$ac_objext'
12896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897 (eval $ac_try) 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
12901 ac_cv_member_struct_stat_st_blocks=yes
12903 echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12906 ac_cv_member_struct_stat_st_blocks=no
12908 rm -f conftest.$ac_objext conftest.$ac_ext
12910 rm -f conftest.$ac_objext conftest.$ac_ext
12912 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12913 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12914 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12916 cat >>confdefs.h <<_ACEOF
12917 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12921 cat >>confdefs.h <<\_ACEOF
12922 #define HAVE_ST_BLOCKS 1
12926 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12931 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12932 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12933 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12934 echo $ECHO_N "(cached) $ECHO_C" >&6
12936 cat >conftest.$ac_ext <<_ACEOF
12937 #line $LINENO "configure"
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h. */
12943 $ac_includes_default
12947 static struct stat ac_aggr;
12948 if (ac_aggr.st_rdev)
12954 rm -f conftest.$ac_objext
12955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12956 (eval $ac_compile) 2>&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } &&
12960 { ac_try='test -s conftest.$ac_objext'
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; }; then
12966 ac_cv_member_struct_stat_st_rdev=yes
12968 echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12971 cat >conftest.$ac_ext <<_ACEOF
12972 #line $LINENO "configure"
12975 cat confdefs.h >>conftest.$ac_ext
12976 cat >>conftest.$ac_ext <<_ACEOF
12977 /* end confdefs.h. */
12978 $ac_includes_default
12982 static struct stat ac_aggr;
12983 if (sizeof ac_aggr.st_rdev)
12989 rm -f conftest.$ac_objext
12990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12991 (eval $ac_compile) 2>&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); } &&
12995 { ac_try='test -s conftest.$ac_objext'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 ac_cv_member_struct_stat_st_rdev=yes
13003 echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13006 ac_cv_member_struct_stat_st_rdev=no
13008 rm -f conftest.$ac_objext conftest.$ac_ext
13010 rm -f conftest.$ac_objext conftest.$ac_ext
13012 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
13013 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
13014 if test $ac_cv_member_struct_stat_st_rdev = yes; then
13016 cat >>confdefs.h <<_ACEOF
13017 #define HAVE_STRUCT_STAT_ST_RDEV 1
13021 cat >>confdefs.h <<\_ACEOF
13022 #define HAVE_ST_RDEV 1
13028 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13029 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13030 if test "${ac_cv_struct_tm+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13033 cat >conftest.$ac_ext <<_ACEOF
13034 #line $LINENO "configure"
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h. */
13040 #include <sys/types.h>
13046 struct tm *tp; tp->tm_sec;
13051 rm -f conftest.$ac_objext
13052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13053 (eval $ac_compile) 2>&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } &&
13057 { ac_try='test -s conftest.$ac_objext'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; }; then
13063 ac_cv_struct_tm=time.h
13065 echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.$ac_ext >&5
13068 ac_cv_struct_tm=sys/time.h
13070 rm -f conftest.$ac_objext conftest.$ac_ext
13072 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13073 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13074 if test $ac_cv_struct_tm = sys/time.h; then
13076 cat >>confdefs.h <<\_ACEOF
13077 #define TM_IN_SYS_TIME 1
13082 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13083 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13084 if test "${ac_cv_c_const+set}" = set; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 cat >conftest.$ac_ext <<_ACEOF
13088 #line $LINENO "configure"
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13098 /* FIXME: Include the comments suggested by Paul. */
13099 #ifndef __cplusplus
13100 /* Ultrix mips cc rejects this. */
13101 typedef int charset[2];
13103 /* SunOS 4.1.1 cc rejects this. */
13104 char const *const *ccp;
13106 /* NEC SVR4.0.2 mips cc rejects this. */
13107 struct point {int x, y;};
13108 static struct point const zero = {0,0};
13109 /* AIX XL C 1.02.0.0 rejects this.
13110 It does not let you subtract one const X* pointer from another in
13111 an arm of an if-expression whose if-part is not a constant
13113 const char *g = "string";
13114 ccp = &g + (g ? g-g : 0);
13115 /* HPUX 7.0 cc rejects these. */
13118 ccp = (char const *const *) p;
13119 { /* SCO 3.2v4 cc rejects this. */
13121 char const *s = 0 ? (char *) 0 : (char const *) 0;
13125 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13126 int x[] = {25, 17};
13127 const int *foo = &x[0];
13130 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13131 typedef const int *iptr;
13135 { /* AIX XL C 1.02.0.0 rejects this saying
13136 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13137 struct s { int j; const int *ap[3]; };
13138 struct s *b; b->j = 5;
13140 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13141 const int foo = 10;
13149 rm -f conftest.$ac_objext
13150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13151 (eval $ac_compile) 2>&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } &&
13155 { ac_try='test -s conftest.$ac_objext'
13156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13157 (eval $ac_try) 2>&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; }; then
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13168 rm -f conftest.$ac_objext conftest.$ac_ext
13170 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13171 echo "${ECHO_T}$ac_cv_c_const" >&6
13172 if test $ac_cv_c_const = no; then
13174 cat >>confdefs.h <<\_ACEOF
13182 echo "$as_me:$LINENO: checking for char" >&5
13183 echo $ECHO_N "checking for char... $ECHO_C" >&6
13184 if test "${ac_cv_type_char+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13187 cat >conftest.$ac_ext <<_ACEOF
13188 #line $LINENO "configure"
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h. */
13194 $ac_includes_default
13206 rm -f conftest.$ac_objext
13207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13208 (eval $ac_compile) 2>&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } &&
13212 { ac_try='test -s conftest.$ac_objext'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13218 ac_cv_type_char=yes
13220 echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.$ac_ext >&5
13225 rm -f conftest.$ac_objext conftest.$ac_ext
13227 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13228 echo "${ECHO_T}$ac_cv_type_char" >&6
13230 echo "$as_me:$LINENO: checking size of char" >&5
13231 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13232 if test "${ac_cv_sizeof_char+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 if test "$ac_cv_type_char" = yes; then
13236 # The cast to unsigned long works around a bug in the HP C Compiler
13237 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13238 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13239 # This bug is HP SR number 8606223364.
13240 if test "$cross_compiling" = yes; then
13241 # Depending upon the size, compute the lo and hi bounds.
13242 cat >conftest.$ac_ext <<_ACEOF
13243 #line $LINENO "configure"
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13249 $ac_includes_default
13253 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13260 rm -f conftest.$ac_objext
13261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13262 (eval $ac_compile) 2>&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); } &&
13266 { ac_try='test -s conftest.$ac_objext'
13267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268 (eval $ac_try) 2>&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; }; then
13274 cat >conftest.$ac_ext <<_ACEOF
13275 #line $LINENO "configure"
13278 cat confdefs.h >>conftest.$ac_ext
13279 cat >>conftest.$ac_ext <<_ACEOF
13280 /* end confdefs.h. */
13281 $ac_includes_default
13285 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13292 rm -f conftest.$ac_objext
13293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13294 (eval $ac_compile) 2>&5
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); } &&
13298 { ac_try='test -s conftest.$ac_objext'
13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300 (eval $ac_try) 2>&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; }; then
13304 ac_hi=$ac_mid; break
13306 echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13309 ac_lo=`expr $ac_mid + 1`
13310 if test $ac_lo -le $ac_mid; then
13314 ac_mid=`expr 2 '*' $ac_mid + 1`
13316 rm -f conftest.$ac_objext conftest.$ac_ext
13319 echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13322 cat >conftest.$ac_ext <<_ACEOF
13323 #line $LINENO "configure"
13326 cat confdefs.h >>conftest.$ac_ext
13327 cat >>conftest.$ac_ext <<_ACEOF
13328 /* end confdefs.h. */
13329 $ac_includes_default
13333 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13340 rm -f conftest.$ac_objext
13341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13342 (eval $ac_compile) 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } &&
13346 { ac_try='test -s conftest.$ac_objext'
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; }; then
13354 cat >conftest.$ac_ext <<_ACEOF
13355 #line $LINENO "configure"
13358 cat confdefs.h >>conftest.$ac_ext
13359 cat >>conftest.$ac_ext <<_ACEOF
13360 /* end confdefs.h. */
13361 $ac_includes_default
13365 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13372 rm -f conftest.$ac_objext
13373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13374 (eval $ac_compile) 2>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } &&
13378 { ac_try='test -s conftest.$ac_objext'
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; }; then
13384 ac_lo=$ac_mid; break
13386 echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.$ac_ext >&5
13389 ac_hi=`expr '(' $ac_mid ')' - 1`
13390 if test $ac_mid -le $ac_hi; then
13394 ac_mid=`expr 2 '*' $ac_mid`
13396 rm -f conftest.$ac_objext conftest.$ac_ext
13399 echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13404 rm -f conftest.$ac_objext conftest.$ac_ext
13406 rm -f conftest.$ac_objext conftest.$ac_ext
13407 # Binary search between lo and hi bounds.
13408 while test "x$ac_lo" != "x$ac_hi"; do
13409 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13410 cat >conftest.$ac_ext <<_ACEOF
13411 #line $LINENO "configure"
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13417 $ac_includes_default
13421 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13428 rm -f conftest.$ac_objext
13429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13430 (eval $ac_compile) 2>&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } &&
13434 { ac_try='test -s conftest.$ac_objext'
13435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436 (eval $ac_try) 2>&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; }; then
13442 echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13445 ac_lo=`expr '(' $ac_mid ')' + 1`
13447 rm -f conftest.$ac_objext conftest.$ac_ext
13450 ?*) ac_cv_sizeof_char=$ac_lo;;
13451 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13452 See \`config.log' for more details." >&5
13453 echo "$as_me: error: cannot compute sizeof (char), 77
13454 See \`config.log' for more details." >&2;}
13455 { (exit 1); exit 1; }; } ;;
13458 if test "$cross_compiling" = yes; then
13459 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13460 See \`config.log' for more details." >&5
13461 echo "$as_me: error: cannot run test program while cross compiling
13462 See \`config.log' for more details." >&2;}
13463 { (exit 1); exit 1; }; }
13465 cat >conftest.$ac_ext <<_ACEOF
13466 #line $LINENO "configure"
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h. */
13472 $ac_includes_default
13473 long longval () { return (long) (sizeof (char)); }
13474 unsigned long ulongval () { return (long) (sizeof (char)); }
13476 #include <stdlib.h>
13481 FILE *f = fopen ("conftest.val", "w");
13484 if (((long) (sizeof (char))) < 0)
13486 long i = longval ();
13487 if (i != ((long) (sizeof (char))))
13489 fprintf (f, "%ld\n", i);
13493 unsigned long i = ulongval ();
13494 if (i != ((long) (sizeof (char))))
13496 fprintf (f, "%lu\n", i);
13498 exit (ferror (f) || fclose (f) != 0);
13504 rm -f conftest$ac_exeext
13505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13506 (eval $ac_link) 2>&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13511 (eval $ac_try) 2>&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); }; }; then
13515 ac_cv_sizeof_char=`cat conftest.val`
13517 echo "$as_me: program exited with status $ac_status" >&5
13518 echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13521 ( exit $ac_status )
13522 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13523 See \`config.log' for more details." >&5
13524 echo "$as_me: error: cannot compute sizeof (char), 77
13525 See \`config.log' for more details." >&2;}
13526 { (exit 1); exit 1; }; }
13528 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13533 ac_cv_sizeof_char=0
13536 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13537 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13538 cat >>confdefs.h <<_ACEOF
13539 #define SIZEOF_CHAR $ac_cv_sizeof_char
13543 echo "$as_me:$LINENO: checking for short int" >&5
13544 echo $ECHO_N "checking for short int... $ECHO_C" >&6
13545 if test "${ac_cv_type_short_int+set}" = set; then
13546 echo $ECHO_N "(cached) $ECHO_C" >&6
13548 cat >conftest.$ac_ext <<_ACEOF
13549 #line $LINENO "configure"
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h. */
13555 $ac_includes_default
13559 if ((short int *) 0)
13561 if (sizeof (short int))
13567 rm -f conftest.$ac_objext
13568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13569 (eval $ac_compile) 2>&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } &&
13573 { ac_try='test -s conftest.$ac_objext'
13574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575 (eval $ac_try) 2>&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; }; then
13579 ac_cv_type_short_int=yes
13581 echo "$as_me: failed program was:" >&5
13582 sed 's/^/| /' conftest.$ac_ext >&5
13584 ac_cv_type_short_int=no
13586 rm -f conftest.$ac_objext conftest.$ac_ext
13588 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
13589 echo "${ECHO_T}$ac_cv_type_short_int" >&6
13591 echo "$as_me:$LINENO: checking size of short int" >&5
13592 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
13593 if test "${ac_cv_sizeof_short_int+set}" = set; then
13594 echo $ECHO_N "(cached) $ECHO_C" >&6
13596 if test "$ac_cv_type_short_int" = yes; then
13597 # The cast to unsigned long works around a bug in the HP C Compiler
13598 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13599 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13600 # This bug is HP SR number 8606223364.
13601 if test "$cross_compiling" = yes; then
13602 # Depending upon the size, compute the lo and hi bounds.
13603 cat >conftest.$ac_ext <<_ACEOF
13604 #line $LINENO "configure"
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h. */
13610 $ac_includes_default
13614 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
13621 rm -f conftest.$ac_objext
13622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13623 (eval $ac_compile) 2>&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } &&
13627 { ac_try='test -s conftest.$ac_objext'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
13635 cat >conftest.$ac_ext <<_ACEOF
13636 #line $LINENO "configure"
13639 cat confdefs.h >>conftest.$ac_ext
13640 cat >>conftest.$ac_ext <<_ACEOF
13641 /* end confdefs.h. */
13642 $ac_includes_default
13646 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13653 rm -f conftest.$ac_objext
13654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13655 (eval $ac_compile) 2>&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } &&
13659 { ac_try='test -s conftest.$ac_objext'
13660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661 (eval $ac_try) 2>&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; }; then
13665 ac_hi=$ac_mid; break
13667 echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13670 ac_lo=`expr $ac_mid + 1`
13671 if test $ac_lo -le $ac_mid; then
13675 ac_mid=`expr 2 '*' $ac_mid + 1`
13677 rm -f conftest.$ac_objext conftest.$ac_ext
13680 echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13683 cat >conftest.$ac_ext <<_ACEOF
13684 #line $LINENO "configure"
13687 cat confdefs.h >>conftest.$ac_ext
13688 cat >>conftest.$ac_ext <<_ACEOF
13689 /* end confdefs.h. */
13690 $ac_includes_default
13694 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
13701 rm -f conftest.$ac_objext
13702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13703 (eval $ac_compile) 2>&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } &&
13707 { ac_try='test -s conftest.$ac_objext'
13708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709 (eval $ac_try) 2>&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
13715 cat >conftest.$ac_ext <<_ACEOF
13716 #line $LINENO "configure"
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13722 $ac_includes_default
13726 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
13733 rm -f conftest.$ac_objext
13734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13735 (eval $ac_compile) 2>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
13739 { ac_try='test -s conftest.$ac_objext'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }; then
13745 ac_lo=$ac_mid; break
13747 echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13750 ac_hi=`expr '(' $ac_mid ')' - 1`
13751 if test $ac_mid -le $ac_hi; then
13755 ac_mid=`expr 2 '*' $ac_mid`
13757 rm -f conftest.$ac_objext conftest.$ac_ext
13760 echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13765 rm -f conftest.$ac_objext conftest.$ac_ext
13767 rm -f conftest.$ac_objext conftest.$ac_ext
13768 # Binary search between lo and hi bounds.
13769 while test "x$ac_lo" != "x$ac_hi"; do
13770 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13771 cat >conftest.$ac_ext <<_ACEOF
13772 #line $LINENO "configure"
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13778 $ac_includes_default
13782 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13789 rm -f conftest.$ac_objext
13790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13791 (eval $ac_compile) 2>&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); } &&
13795 { ac_try='test -s conftest.$ac_objext'
13796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797 (eval $ac_try) 2>&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; }; then
13803 echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13806 ac_lo=`expr '(' $ac_mid ')' + 1`
13808 rm -f conftest.$ac_objext conftest.$ac_ext
13811 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13812 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13813 See \`config.log' for more details." >&5
13814 echo "$as_me: error: cannot compute sizeof (short int), 77
13815 See \`config.log' for more details." >&2;}
13816 { (exit 1); exit 1; }; } ;;
13819 if test "$cross_compiling" = yes; then
13820 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13821 See \`config.log' for more details." >&5
13822 echo "$as_me: error: cannot run test program while cross compiling
13823 See \`config.log' for more details." >&2;}
13824 { (exit 1); exit 1; }; }
13826 cat >conftest.$ac_ext <<_ACEOF
13827 #line $LINENO "configure"
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h. */
13833 $ac_includes_default
13834 long longval () { return (long) (sizeof (short int)); }
13835 unsigned long ulongval () { return (long) (sizeof (short int)); }
13837 #include <stdlib.h>
13842 FILE *f = fopen ("conftest.val", "w");
13845 if (((long) (sizeof (short int))) < 0)
13847 long i = longval ();
13848 if (i != ((long) (sizeof (short int))))
13850 fprintf (f, "%ld\n", i);
13854 unsigned long i = ulongval ();
13855 if (i != ((long) (sizeof (short int))))
13857 fprintf (f, "%lu\n", i);
13859 exit (ferror (f) || fclose (f) != 0);
13865 rm -f conftest$ac_exeext
13866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13867 (eval $ac_link) 2>&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872 (eval $ac_try) 2>&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); }; }; then
13876 ac_cv_sizeof_short_int=`cat conftest.val`
13878 echo "$as_me: program exited with status $ac_status" >&5
13879 echo "$as_me: failed program was:" >&5
13880 sed 's/^/| /' conftest.$ac_ext >&5
13882 ( exit $ac_status )
13883 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13884 See \`config.log' for more details." >&5
13885 echo "$as_me: error: cannot compute sizeof (short int), 77
13886 See \`config.log' for more details." >&2;}
13887 { (exit 1); exit 1; }; }
13889 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13894 ac_cv_sizeof_short_int=0
13897 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13898 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13899 cat >>confdefs.h <<_ACEOF
13900 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13904 echo "$as_me:$LINENO: checking for int" >&5
13905 echo $ECHO_N "checking for int... $ECHO_C" >&6
13906 if test "${ac_cv_type_int+set}" = set; then
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
13909 cat >conftest.$ac_ext <<_ACEOF
13910 #line $LINENO "configure"
13913 cat confdefs.h >>conftest.$ac_ext
13914 cat >>conftest.$ac_ext <<_ACEOF
13915 /* end confdefs.h. */
13916 $ac_includes_default
13928 rm -f conftest.$ac_objext
13929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13930 (eval $ac_compile) 2>&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } &&
13934 { ac_try='test -s conftest.$ac_objext'
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; }; then
13942 echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13947 rm -f conftest.$ac_objext conftest.$ac_ext
13949 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13950 echo "${ECHO_T}$ac_cv_type_int" >&6
13952 echo "$as_me:$LINENO: checking size of int" >&5
13953 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13954 if test "${ac_cv_sizeof_int+set}" = set; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13957 if test "$ac_cv_type_int" = yes; then
13958 # The cast to unsigned long works around a bug in the HP C Compiler
13959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13961 # This bug is HP SR number 8606223364.
13962 if test "$cross_compiling" = yes; then
13963 # Depending upon the size, compute the lo and hi bounds.
13964 cat >conftest.$ac_ext <<_ACEOF
13965 #line $LINENO "configure"
13968 cat confdefs.h >>conftest.$ac_ext
13969 cat >>conftest.$ac_ext <<_ACEOF
13970 /* end confdefs.h. */
13971 $ac_includes_default
13975 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13982 rm -f conftest.$ac_objext
13983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13984 (eval $ac_compile) 2>&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } &&
13988 { ac_try='test -s conftest.$ac_objext'
13989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990 (eval $ac_try) 2>&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; }; then
13996 cat >conftest.$ac_ext <<_ACEOF
13997 #line $LINENO "configure"
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h. */
14003 $ac_includes_default
14007 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14014 rm -f conftest.$ac_objext
14015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14016 (eval $ac_compile) 2>&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
14020 { ac_try='test -s conftest.$ac_objext'
14021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022 (eval $ac_try) 2>&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); }; }; then
14026 ac_hi=$ac_mid; break
14028 echo "$as_me: failed program was:" >&5
14029 sed 's/^/| /' conftest.$ac_ext >&5
14031 ac_lo=`expr $ac_mid + 1`
14032 if test $ac_lo -le $ac_mid; then
14036 ac_mid=`expr 2 '*' $ac_mid + 1`
14038 rm -f conftest.$ac_objext conftest.$ac_ext
14041 echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14044 cat >conftest.$ac_ext <<_ACEOF
14045 #line $LINENO "configure"
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14051 $ac_includes_default
14055 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14062 rm -f conftest.$ac_objext
14063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14064 (eval $ac_compile) 2>&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } &&
14068 { ac_try='test -s conftest.$ac_objext'
14069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070 (eval $ac_try) 2>&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; }; then
14076 cat >conftest.$ac_ext <<_ACEOF
14077 #line $LINENO "configure"
14080 cat confdefs.h >>conftest.$ac_ext
14081 cat >>conftest.$ac_ext <<_ACEOF
14082 /* end confdefs.h. */
14083 $ac_includes_default
14087 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14094 rm -f conftest.$ac_objext
14095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14096 (eval $ac_compile) 2>&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } &&
14100 { ac_try='test -s conftest.$ac_objext'
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; }; then
14106 ac_lo=$ac_mid; break
14108 echo "$as_me: failed program was:" >&5
14109 sed 's/^/| /' conftest.$ac_ext >&5
14111 ac_hi=`expr '(' $ac_mid ')' - 1`
14112 if test $ac_mid -le $ac_hi; then
14116 ac_mid=`expr 2 '*' $ac_mid`
14118 rm -f conftest.$ac_objext conftest.$ac_ext
14121 echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14126 rm -f conftest.$ac_objext conftest.$ac_ext
14128 rm -f conftest.$ac_objext conftest.$ac_ext
14129 # Binary search between lo and hi bounds.
14130 while test "x$ac_lo" != "x$ac_hi"; do
14131 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14132 cat >conftest.$ac_ext <<_ACEOF
14133 #line $LINENO "configure"
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14139 $ac_includes_default
14143 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14150 rm -f conftest.$ac_objext
14151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14152 (eval $ac_compile) 2>&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); } &&
14156 { ac_try='test -s conftest.$ac_objext'
14157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158 (eval $ac_try) 2>&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; }; then
14164 echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14167 ac_lo=`expr '(' $ac_mid ')' + 1`
14169 rm -f conftest.$ac_objext conftest.$ac_ext
14172 ?*) ac_cv_sizeof_int=$ac_lo;;
14173 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14174 See \`config.log' for more details." >&5
14175 echo "$as_me: error: cannot compute sizeof (int), 77
14176 See \`config.log' for more details." >&2;}
14177 { (exit 1); exit 1; }; } ;;
14180 if test "$cross_compiling" = yes; then
14181 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14182 See \`config.log' for more details." >&5
14183 echo "$as_me: error: cannot run test program while cross compiling
14184 See \`config.log' for more details." >&2;}
14185 { (exit 1); exit 1; }; }
14187 cat >conftest.$ac_ext <<_ACEOF
14188 #line $LINENO "configure"
14191 cat confdefs.h >>conftest.$ac_ext
14192 cat >>conftest.$ac_ext <<_ACEOF
14193 /* end confdefs.h. */
14194 $ac_includes_default
14195 long longval () { return (long) (sizeof (int)); }
14196 unsigned long ulongval () { return (long) (sizeof (int)); }
14198 #include <stdlib.h>
14203 FILE *f = fopen ("conftest.val", "w");
14206 if (((long) (sizeof (int))) < 0)
14208 long i = longval ();
14209 if (i != ((long) (sizeof (int))))
14211 fprintf (f, "%ld\n", i);
14215 unsigned long i = ulongval ();
14216 if (i != ((long) (sizeof (int))))
14218 fprintf (f, "%lu\n", i);
14220 exit (ferror (f) || fclose (f) != 0);
14226 rm -f conftest$ac_exeext
14227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14228 (eval $ac_link) 2>&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
14237 ac_cv_sizeof_int=`cat conftest.val`
14239 echo "$as_me: program exited with status $ac_status" >&5
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14243 ( exit $ac_status )
14244 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14245 See \`config.log' for more details." >&5
14246 echo "$as_me: error: cannot compute sizeof (int), 77
14247 See \`config.log' for more details." >&2;}
14248 { (exit 1); exit 1; }; }
14250 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14258 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14259 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14260 cat >>confdefs.h <<_ACEOF
14261 #define SIZEOF_INT $ac_cv_sizeof_int
14265 echo "$as_me:$LINENO: checking for long int" >&5
14266 echo $ECHO_N "checking for long int... $ECHO_C" >&6
14267 if test "${ac_cv_type_long_int+set}" = set; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14270 cat >conftest.$ac_ext <<_ACEOF
14271 #line $LINENO "configure"
14274 cat confdefs.h >>conftest.$ac_ext
14275 cat >>conftest.$ac_ext <<_ACEOF
14276 /* end confdefs.h. */
14277 $ac_includes_default
14281 if ((long int *) 0)
14283 if (sizeof (long int))
14289 rm -f conftest.$ac_objext
14290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14291 (eval $ac_compile) 2>&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } &&
14295 { ac_try='test -s conftest.$ac_objext'
14296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297 (eval $ac_try) 2>&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; }; then
14301 ac_cv_type_long_int=yes
14303 echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14306 ac_cv_type_long_int=no
14308 rm -f conftest.$ac_objext conftest.$ac_ext
14310 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
14311 echo "${ECHO_T}$ac_cv_type_long_int" >&6
14313 echo "$as_me:$LINENO: checking size of long int" >&5
14314 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
14315 if test "${ac_cv_sizeof_long_int+set}" = set; then
14316 echo $ECHO_N "(cached) $ECHO_C" >&6
14318 if test "$ac_cv_type_long_int" = yes; then
14319 # The cast to unsigned long works around a bug in the HP C Compiler
14320 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14321 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14322 # This bug is HP SR number 8606223364.
14323 if test "$cross_compiling" = yes; then
14324 # Depending upon the size, compute the lo and hi bounds.
14325 cat >conftest.$ac_ext <<_ACEOF
14326 #line $LINENO "configure"
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h. */
14332 $ac_includes_default
14336 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
14343 rm -f conftest.$ac_objext
14344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14345 (eval $ac_compile) 2>&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } &&
14349 { ac_try='test -s conftest.$ac_objext'
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; }; then
14357 cat >conftest.$ac_ext <<_ACEOF
14358 #line $LINENO "configure"
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h. */
14364 $ac_includes_default
14368 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14375 rm -f conftest.$ac_objext
14376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377 (eval $ac_compile) 2>&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } &&
14381 { ac_try='test -s conftest.$ac_objext'
14382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383 (eval $ac_try) 2>&5
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; }; then
14387 ac_hi=$ac_mid; break
14389 echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14392 ac_lo=`expr $ac_mid + 1`
14393 if test $ac_lo -le $ac_mid; then
14397 ac_mid=`expr 2 '*' $ac_mid + 1`
14399 rm -f conftest.$ac_objext conftest.$ac_ext
14402 echo "$as_me: failed program was:" >&5
14403 sed 's/^/| /' conftest.$ac_ext >&5
14405 cat >conftest.$ac_ext <<_ACEOF
14406 #line $LINENO "configure"
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h. */
14412 $ac_includes_default
14416 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
14423 rm -f conftest.$ac_objext
14424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14425 (eval $ac_compile) 2>&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); } &&
14429 { ac_try='test -s conftest.$ac_objext'
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; }; then
14437 cat >conftest.$ac_ext <<_ACEOF
14438 #line $LINENO "configure"
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h. */
14444 $ac_includes_default
14448 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
14455 rm -f conftest.$ac_objext
14456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14457 (eval $ac_compile) 2>&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } &&
14461 { ac_try='test -s conftest.$ac_objext'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; }; then
14467 ac_lo=$ac_mid; break
14469 echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14472 ac_hi=`expr '(' $ac_mid ')' - 1`
14473 if test $ac_mid -le $ac_hi; then
14477 ac_mid=`expr 2 '*' $ac_mid`
14479 rm -f conftest.$ac_objext conftest.$ac_ext
14482 echo "$as_me: failed program was:" >&5
14483 sed 's/^/| /' conftest.$ac_ext >&5
14487 rm -f conftest.$ac_objext conftest.$ac_ext
14489 rm -f conftest.$ac_objext conftest.$ac_ext
14490 # Binary search between lo and hi bounds.
14491 while test "x$ac_lo" != "x$ac_hi"; do
14492 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14493 cat >conftest.$ac_ext <<_ACEOF
14494 #line $LINENO "configure"
14497 cat confdefs.h >>conftest.$ac_ext
14498 cat >>conftest.$ac_ext <<_ACEOF
14499 /* end confdefs.h. */
14500 $ac_includes_default
14504 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14511 rm -f conftest.$ac_objext
14512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14513 (eval $ac_compile) 2>&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); } &&
14517 { ac_try='test -s conftest.$ac_objext'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; }; then
14525 echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14528 ac_lo=`expr '(' $ac_mid ')' + 1`
14530 rm -f conftest.$ac_objext conftest.$ac_ext
14533 ?*) ac_cv_sizeof_long_int=$ac_lo;;
14534 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14535 See \`config.log' for more details." >&5
14536 echo "$as_me: error: cannot compute sizeof (long int), 77
14537 See \`config.log' for more details." >&2;}
14538 { (exit 1); exit 1; }; } ;;
14541 if test "$cross_compiling" = yes; then
14542 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14543 See \`config.log' for more details." >&5
14544 echo "$as_me: error: cannot run test program while cross compiling
14545 See \`config.log' for more details." >&2;}
14546 { (exit 1); exit 1; }; }
14548 cat >conftest.$ac_ext <<_ACEOF
14549 #line $LINENO "configure"
14552 cat confdefs.h >>conftest.$ac_ext
14553 cat >>conftest.$ac_ext <<_ACEOF
14554 /* end confdefs.h. */
14555 $ac_includes_default
14556 long longval () { return (long) (sizeof (long int)); }
14557 unsigned long ulongval () { return (long) (sizeof (long int)); }
14559 #include <stdlib.h>
14564 FILE *f = fopen ("conftest.val", "w");
14567 if (((long) (sizeof (long int))) < 0)
14569 long i = longval ();
14570 if (i != ((long) (sizeof (long int))))
14572 fprintf (f, "%ld\n", i);
14576 unsigned long i = ulongval ();
14577 if (i != ((long) (sizeof (long int))))
14579 fprintf (f, "%lu\n", i);
14581 exit (ferror (f) || fclose (f) != 0);
14587 rm -f conftest$ac_exeext
14588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14589 (eval $ac_link) 2>&5
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
14598 ac_cv_sizeof_long_int=`cat conftest.val`
14600 echo "$as_me: program exited with status $ac_status" >&5
14601 echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14604 ( exit $ac_status )
14605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14606 See \`config.log' for more details." >&5
14607 echo "$as_me: error: cannot compute sizeof (long int), 77
14608 See \`config.log' for more details." >&2;}
14609 { (exit 1); exit 1; }; }
14611 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14616 ac_cv_sizeof_long_int=0
14619 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
14620 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
14621 cat >>confdefs.h <<_ACEOF
14622 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14626 echo "$as_me:$LINENO: checking for long long int" >&5
14627 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14628 if test "${ac_cv_type_long_long_int+set}" = set; then
14629 echo $ECHO_N "(cached) $ECHO_C" >&6
14631 cat >conftest.$ac_ext <<_ACEOF
14632 #line $LINENO "configure"
14635 cat confdefs.h >>conftest.$ac_ext
14636 cat >>conftest.$ac_ext <<_ACEOF
14637 /* end confdefs.h. */
14638 $ac_includes_default
14642 if ((long long int *) 0)
14644 if (sizeof (long long int))
14650 rm -f conftest.$ac_objext
14651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14652 (eval $ac_compile) 2>&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } &&
14656 { ac_try='test -s conftest.$ac_objext'
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; }; then
14662 ac_cv_type_long_long_int=yes
14664 echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14667 ac_cv_type_long_long_int=no
14669 rm -f conftest.$ac_objext conftest.$ac_ext
14671 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14672 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14674 echo "$as_me:$LINENO: checking size of long long int" >&5
14675 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
14676 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14679 if test "$ac_cv_type_long_long_int" = yes; then
14680 # The cast to unsigned long works around a bug in the HP C Compiler
14681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14683 # This bug is HP SR number 8606223364.
14684 if test "$cross_compiling" = yes; then
14685 # Depending upon the size, compute the lo and hi bounds.
14686 cat >conftest.$ac_ext <<_ACEOF
14687 #line $LINENO "configure"
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h. */
14693 $ac_includes_default
14697 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
14704 rm -f conftest.$ac_objext
14705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14706 (eval $ac_compile) 2>&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } &&
14710 { ac_try='test -s conftest.$ac_objext'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; }; then
14718 cat >conftest.$ac_ext <<_ACEOF
14719 #line $LINENO "configure"
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14725 $ac_includes_default
14729 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14736 rm -f conftest.$ac_objext
14737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14738 (eval $ac_compile) 2>&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } &&
14742 { ac_try='test -s conftest.$ac_objext'
14743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744 (eval $ac_try) 2>&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); }; }; then
14748 ac_hi=$ac_mid; break
14750 echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14753 ac_lo=`expr $ac_mid + 1`
14754 if test $ac_lo -le $ac_mid; then
14758 ac_mid=`expr 2 '*' $ac_mid + 1`
14760 rm -f conftest.$ac_objext conftest.$ac_ext
14763 echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14766 cat >conftest.$ac_ext <<_ACEOF
14767 #line $LINENO "configure"
14770 cat confdefs.h >>conftest.$ac_ext
14771 cat >>conftest.$ac_ext <<_ACEOF
14772 /* end confdefs.h. */
14773 $ac_includes_default
14777 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
14784 rm -f conftest.$ac_objext
14785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14786 (eval $ac_compile) 2>&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); } &&
14790 { ac_try='test -s conftest.$ac_objext'
14791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792 (eval $ac_try) 2>&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); }; }; then
14798 cat >conftest.$ac_ext <<_ACEOF
14799 #line $LINENO "configure"
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h. */
14805 $ac_includes_default
14809 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
14816 rm -f conftest.$ac_objext
14817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14818 (eval $ac_compile) 2>&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } &&
14822 { ac_try='test -s conftest.$ac_objext'
14823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824 (eval $ac_try) 2>&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; }; then
14828 ac_lo=$ac_mid; break
14830 echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.$ac_ext >&5
14833 ac_hi=`expr '(' $ac_mid ')' - 1`
14834 if test $ac_mid -le $ac_hi; then
14838 ac_mid=`expr 2 '*' $ac_mid`
14840 rm -f conftest.$ac_objext conftest.$ac_ext
14843 echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14848 rm -f conftest.$ac_objext conftest.$ac_ext
14850 rm -f conftest.$ac_objext conftest.$ac_ext
14851 # Binary search between lo and hi bounds.
14852 while test "x$ac_lo" != "x$ac_hi"; do
14853 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14854 cat >conftest.$ac_ext <<_ACEOF
14855 #line $LINENO "configure"
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h. */
14861 $ac_includes_default
14865 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14872 rm -f conftest.$ac_objext
14873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14874 (eval $ac_compile) 2>&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); } &&
14878 { ac_try='test -s conftest.$ac_objext'
14879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880 (eval $ac_try) 2>&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; }; then
14886 echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14889 ac_lo=`expr '(' $ac_mid ')' + 1`
14891 rm -f conftest.$ac_objext conftest.$ac_ext
14894 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14895 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14896 See \`config.log' for more details." >&5
14897 echo "$as_me: error: cannot compute sizeof (long long int), 77
14898 See \`config.log' for more details." >&2;}
14899 { (exit 1); exit 1; }; } ;;
14902 if test "$cross_compiling" = yes; then
14903 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14904 See \`config.log' for more details." >&5
14905 echo "$as_me: error: cannot run test program while cross compiling
14906 See \`config.log' for more details." >&2;}
14907 { (exit 1); exit 1; }; }
14909 cat >conftest.$ac_ext <<_ACEOF
14910 #line $LINENO "configure"
14913 cat confdefs.h >>conftest.$ac_ext
14914 cat >>conftest.$ac_ext <<_ACEOF
14915 /* end confdefs.h. */
14916 $ac_includes_default
14917 long longval () { return (long) (sizeof (long long int)); }
14918 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14920 #include <stdlib.h>
14925 FILE *f = fopen ("conftest.val", "w");
14928 if (((long) (sizeof (long long int))) < 0)
14930 long i = longval ();
14931 if (i != ((long) (sizeof (long long int))))
14933 fprintf (f, "%ld\n", i);
14937 unsigned long i = ulongval ();
14938 if (i != ((long) (sizeof (long long int))))
14940 fprintf (f, "%lu\n", i);
14942 exit (ferror (f) || fclose (f) != 0);
14948 rm -f conftest$ac_exeext
14949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14950 (eval $ac_link) 2>&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_long_long_int=`cat conftest.val`
14961 echo "$as_me: program exited with status $ac_status" >&5
14962 echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14965 ( exit $ac_status )
14966 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14967 See \`config.log' for more details." >&5
14968 echo "$as_me: error: cannot compute sizeof (long long int), 77
14969 See \`config.log' for more details." >&2;}
14970 { (exit 1); exit 1; }; }
14972 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14977 ac_cv_sizeof_long_long_int=0
14980 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14981 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14982 cat >>confdefs.h <<_ACEOF
14983 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14987 echo "$as_me:$LINENO: checking for int *" >&5
14988 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14989 if test "${ac_cv_type_int_p+set}" = set; then
14990 echo $ECHO_N "(cached) $ECHO_C" >&6
14992 cat >conftest.$ac_ext <<_ACEOF
14993 #line $LINENO "configure"
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
14999 $ac_includes_default
15005 if (sizeof (int *))
15011 rm -f conftest.$ac_objext
15012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15013 (eval $ac_compile) 2>&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
15017 { ac_try='test -s conftest.$ac_objext'
15018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019 (eval $ac_try) 2>&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); }; }; then
15023 ac_cv_type_int_p=yes
15025 echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15028 ac_cv_type_int_p=no
15030 rm -f conftest.$ac_objext conftest.$ac_ext
15032 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
15033 echo "${ECHO_T}$ac_cv_type_int_p" >&6
15035 echo "$as_me:$LINENO: checking size of int *" >&5
15036 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
15037 if test "${ac_cv_sizeof_int_p+set}" = set; then
15038 echo $ECHO_N "(cached) $ECHO_C" >&6
15040 if test "$ac_cv_type_int_p" = yes; then
15041 # The cast to unsigned long works around a bug in the HP C Compiler
15042 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15043 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15044 # This bug is HP SR number 8606223364.
15045 if test "$cross_compiling" = yes; then
15046 # Depending upon the size, compute the lo and hi bounds.
15047 cat >conftest.$ac_ext <<_ACEOF
15048 #line $LINENO "configure"
15051 cat confdefs.h >>conftest.$ac_ext
15052 cat >>conftest.$ac_ext <<_ACEOF
15053 /* end confdefs.h. */
15054 $ac_includes_default
15058 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
15065 rm -f conftest.$ac_objext
15066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15067 (eval $ac_compile) 2>&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); } &&
15071 { ac_try='test -s conftest.$ac_objext'
15072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15073 (eval $ac_try) 2>&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; }; then
15079 cat >conftest.$ac_ext <<_ACEOF
15080 #line $LINENO "configure"
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h. */
15086 $ac_includes_default
15090 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15097 rm -f conftest.$ac_objext
15098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15099 (eval $ac_compile) 2>&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } &&
15103 { ac_try='test -s conftest.$ac_objext'
15104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105 (eval $ac_try) 2>&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }; }; then
15109 ac_hi=$ac_mid; break
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15114 ac_lo=`expr $ac_mid + 1`
15115 if test $ac_lo -le $ac_mid; then
15119 ac_mid=`expr 2 '*' $ac_mid + 1`
15121 rm -f conftest.$ac_objext conftest.$ac_ext
15124 echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15127 cat >conftest.$ac_ext <<_ACEOF
15128 #line $LINENO "configure"
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15134 $ac_includes_default
15138 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
15145 rm -f conftest.$ac_objext
15146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15147 (eval $ac_compile) 2>&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try='test -s conftest.$ac_objext'
15152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15153 (eval $ac_try) 2>&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; }; then
15159 cat >conftest.$ac_ext <<_ACEOF
15160 #line $LINENO "configure"
15163 cat confdefs.h >>conftest.$ac_ext
15164 cat >>conftest.$ac_ext <<_ACEOF
15165 /* end confdefs.h. */
15166 $ac_includes_default
15170 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
15177 rm -f conftest.$ac_objext
15178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15179 (eval $ac_compile) 2>&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); } &&
15183 { ac_try='test -s conftest.$ac_objext'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
15189 ac_lo=$ac_mid; break
15191 echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15194 ac_hi=`expr '(' $ac_mid ')' - 1`
15195 if test $ac_mid -le $ac_hi; then
15199 ac_mid=`expr 2 '*' $ac_mid`
15201 rm -f conftest.$ac_objext conftest.$ac_ext
15204 echo "$as_me: failed program was:" >&5
15205 sed 's/^/| /' conftest.$ac_ext >&5
15209 rm -f conftest.$ac_objext conftest.$ac_ext
15211 rm -f conftest.$ac_objext conftest.$ac_ext
15212 # Binary search between lo and hi bounds.
15213 while test "x$ac_lo" != "x$ac_hi"; do
15214 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15215 cat >conftest.$ac_ext <<_ACEOF
15216 #line $LINENO "configure"
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h. */
15222 $ac_includes_default
15226 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15233 rm -f conftest.$ac_objext
15234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15235 (eval $ac_compile) 2>&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } &&
15239 { ac_try='test -s conftest.$ac_objext'
15240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15241 (eval $ac_try) 2>&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; }; then
15247 echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.$ac_ext >&5
15250 ac_lo=`expr '(' $ac_mid ')' + 1`
15252 rm -f conftest.$ac_objext conftest.$ac_ext
15255 ?*) ac_cv_sizeof_int_p=$ac_lo;;
15256 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15257 See \`config.log' for more details." >&5
15258 echo "$as_me: error: cannot compute sizeof (int *), 77
15259 See \`config.log' for more details." >&2;}
15260 { (exit 1); exit 1; }; } ;;
15263 if test "$cross_compiling" = yes; then
15264 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15265 See \`config.log' for more details." >&5
15266 echo "$as_me: error: cannot run test program while cross compiling
15267 See \`config.log' for more details." >&2;}
15268 { (exit 1); exit 1; }; }
15270 cat >conftest.$ac_ext <<_ACEOF
15271 #line $LINENO "configure"
15274 cat confdefs.h >>conftest.$ac_ext
15275 cat >>conftest.$ac_ext <<_ACEOF
15276 /* end confdefs.h. */
15277 $ac_includes_default
15278 long longval () { return (long) (sizeof (int *)); }
15279 unsigned long ulongval () { return (long) (sizeof (int *)); }
15281 #include <stdlib.h>
15286 FILE *f = fopen ("conftest.val", "w");
15289 if (((long) (sizeof (int *))) < 0)
15291 long i = longval ();
15292 if (i != ((long) (sizeof (int *))))
15294 fprintf (f, "%ld\n", i);
15298 unsigned long i = ulongval ();
15299 if (i != ((long) (sizeof (int *))))
15301 fprintf (f, "%lu\n", i);
15303 exit (ferror (f) || fclose (f) != 0);
15309 rm -f conftest$ac_exeext
15310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15311 (eval $ac_link) 2>&5
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316 (eval $ac_try) 2>&5
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; }; then
15320 ac_cv_sizeof_int_p=`cat conftest.val`
15322 echo "$as_me: program exited with status $ac_status" >&5
15323 echo "$as_me: failed program was:" >&5
15324 sed 's/^/| /' conftest.$ac_ext >&5
15326 ( exit $ac_status )
15327 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15328 See \`config.log' for more details." >&5
15329 echo "$as_me: error: cannot compute sizeof (int *), 77
15330 See \`config.log' for more details." >&2;}
15331 { (exit 1); exit 1; }; }
15333 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15338 ac_cv_sizeof_int_p=0
15341 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
15342 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
15343 cat >>confdefs.h <<_ACEOF
15344 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
15349 # Check for sys/types.h types
15350 echo "$as_me:$LINENO: checking for u_int type" >&5
15351 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
15352 if test "${ac_cv_have_u_int+set}" = set; then
15353 echo $ECHO_N "(cached) $ECHO_C" >&6
15356 cat >conftest.$ac_ext <<_ACEOF
15357 #line $LINENO "configure"
15360 cat confdefs.h >>conftest.$ac_ext
15361 cat >>conftest.$ac_ext <<_ACEOF
15362 /* end confdefs.h. */
15363 #include <sys/types.h>
15372 rm -f conftest.$ac_objext
15373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15374 (eval $ac_compile) 2>&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -s conftest.$ac_objext'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 ac_cv_have_u_int="yes"
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15389 ac_cv_have_u_int="no"
15392 rm -f conftest.$ac_objext conftest.$ac_ext
15395 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
15396 echo "${ECHO_T}$ac_cv_have_u_int" >&6
15397 if test "x$ac_cv_have_u_int" = "xyes" ; then
15398 cat >>confdefs.h <<\_ACEOF
15399 #define HAVE_U_INT 1
15405 echo "$as_me:$LINENO: checking for intmax_t type" >&5
15406 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
15407 if test "${ac_cv_have_intmax_t+set}" = set; then
15408 echo $ECHO_N "(cached) $ECHO_C" >&6
15411 cat >conftest.$ac_ext <<_ACEOF
15412 #line $LINENO "configure"
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15418 #include <sys/types.h>
15427 rm -f conftest.$ac_objext
15428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15429 (eval $ac_compile) 2>&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } &&
15433 { ac_try='test -s conftest.$ac_objext'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }; then
15439 ac_cv_have_intmax_t="yes"
15441 echo "$as_me: failed program was:" >&5
15442 sed 's/^/| /' conftest.$ac_ext >&5
15445 cat >conftest.$ac_ext <<_ACEOF
15446 #line $LINENO "configure"
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h. */
15452 #include <stdint.h>
15461 rm -f conftest.$ac_objext
15462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15463 (eval $ac_compile) 2>&5
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); } &&
15467 { ac_try='test -s conftest.$ac_objext'
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; }; then
15473 ac_cv_have_intmax_t="yes"
15475 echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.$ac_ext >&5
15478 ac_cv_have_intmax_t="no"
15481 rm -f conftest.$ac_objext conftest.$ac_ext
15485 rm -f conftest.$ac_objext conftest.$ac_ext
15489 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
15490 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
15491 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
15492 cat >>confdefs.h <<\_ACEOF
15493 #define HAVE_INTMAX_T 1
15500 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
15501 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
15502 if test "${ac_cv_have_u_intmax_t+set}" = set; then
15503 echo $ECHO_N "(cached) $ECHO_C" >&6
15506 cat >conftest.$ac_ext <<_ACEOF
15507 #line $LINENO "configure"
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h. */
15513 #include <sys/types.h>
15517 u_intmax_t a; a = 1;
15522 rm -f conftest.$ac_objext
15523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15524 (eval $ac_compile) 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
15534 ac_cv_have_u_intmax_t="yes"
15536 echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15540 cat >conftest.$ac_ext <<_ACEOF
15541 #line $LINENO "configure"
15544 cat confdefs.h >>conftest.$ac_ext
15545 cat >>conftest.$ac_ext <<_ACEOF
15546 /* end confdefs.h. */
15547 #include <stdint.h>
15551 u_intmax_t a; a = 1;
15556 rm -f conftest.$ac_objext
15557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15558 (eval $ac_compile) 2>&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } &&
15562 { ac_try='test -s conftest.$ac_objext'
15563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564 (eval $ac_try) 2>&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; }; then
15568 ac_cv_have_u_intmax_t="yes"
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15573 ac_cv_have_u_intmax_t="no"
15576 rm -f conftest.$ac_objext conftest.$ac_ext
15580 rm -f conftest.$ac_objext conftest.$ac_ext
15583 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
15584 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
15585 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
15586 cat >>confdefs.h <<\_ACEOF
15587 #define HAVE_U_INTMAX_T 1
15594 echo "$as_me:$LINENO: checking for intXX_t types" >&5
15595 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
15596 if test "${ac_cv_have_intxx_t+set}" = set; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15600 cat >conftest.$ac_ext <<_ACEOF
15601 #line $LINENO "configure"
15604 cat confdefs.h >>conftest.$ac_ext
15605 cat >>conftest.$ac_ext <<_ACEOF
15606 /* end confdefs.h. */
15607 #include <sys/types.h>
15611 int8_t a; int16_t b; int32_t c; a = b = c = 1;
15616 rm -f conftest.$ac_objext
15617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15618 (eval $ac_compile) 2>&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } &&
15622 { ac_try='test -s conftest.$ac_objext'
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; }; then
15628 ac_cv_have_intxx_t="yes"
15630 echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15633 ac_cv_have_intxx_t="no"
15636 rm -f conftest.$ac_objext conftest.$ac_ext
15639 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
15640 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
15641 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
15642 cat >>confdefs.h <<\_ACEOF
15643 #define HAVE_INTXX_T 1
15649 echo "$as_me:$LINENO: checking for int64_t type" >&5
15650 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
15651 if test "${ac_cv_have_int64_t+set}" = set; then
15652 echo $ECHO_N "(cached) $ECHO_C" >&6
15655 cat >conftest.$ac_ext <<_ACEOF
15656 #line $LINENO "configure"
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h. */
15662 #include <sys/types.h>
15671 rm -f conftest.$ac_objext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15673 (eval $ac_compile) 2>&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } &&
15677 { ac_try='test -s conftest.$ac_objext'
15678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679 (eval $ac_try) 2>&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }; }; then
15683 ac_cv_have_int64_t="yes"
15685 echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15688 ac_cv_have_int64_t="no"
15691 rm -f conftest.$ac_objext conftest.$ac_ext
15694 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
15695 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
15696 if test "x$ac_cv_have_int64_t" = "xyes" ; then
15697 cat >>confdefs.h <<\_ACEOF
15698 #define HAVE_INT64_T 1
15704 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
15705 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
15706 if test "${ac_cv_have_u_intxx_t+set}" = set; then
15707 echo $ECHO_N "(cached) $ECHO_C" >&6
15710 cat >conftest.$ac_ext <<_ACEOF
15711 #line $LINENO "configure"
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15717 #include <sys/types.h>
15721 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
15726 rm -f conftest.$ac_objext
15727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15728 (eval $ac_compile) 2>&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
15732 { ac_try='test -s conftest.$ac_objext'
15733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734 (eval $ac_try) 2>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; }; then
15738 ac_cv_have_u_intxx_t="yes"
15740 echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15743 ac_cv_have_u_intxx_t="no"
15746 rm -f conftest.$ac_objext conftest.$ac_ext
15749 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
15750 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
15751 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
15752 cat >>confdefs.h <<\_ACEOF
15753 #define HAVE_U_INTXX_T 1
15759 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
15760 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
15761 if test "${ac_cv_have_u_int64_t+set}" = set; then
15762 echo $ECHO_N "(cached) $ECHO_C" >&6
15765 cat >conftest.$ac_ext <<_ACEOF
15766 #line $LINENO "configure"
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15772 #include <sys/types.h>
15776 u_int64_t a; a = 1;
15781 rm -f conftest.$ac_objext
15782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15783 (eval $ac_compile) 2>&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); } &&
15787 { ac_try='test -s conftest.$ac_objext'
15788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789 (eval $ac_try) 2>&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; }; then
15793 ac_cv_have_u_int64_t="yes"
15795 echo "$as_me: failed program was:" >&5
15796 sed 's/^/| /' conftest.$ac_ext >&5
15798 ac_cv_have_u_int64_t="no"
15801 rm -f conftest.$ac_objext conftest.$ac_ext
15804 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
15805 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
15806 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15807 cat >>confdefs.h <<\_ACEOF
15808 #define HAVE_U_INT64_T 1
15814 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15815 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15817 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15818 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15819 cat >conftest.$ac_ext <<_ACEOF
15820 #line $LINENO "configure"
15823 cat confdefs.h >>conftest.$ac_ext
15824 cat >>conftest.$ac_ext <<_ACEOF
15825 /* end confdefs.h. */
15826 #include <sys/bitypes.h>
15830 int8_t a; int16_t b; int32_t c;
15831 u_int8_t e; u_int16_t f; u_int32_t g;
15832 a = b = c = e = f = g = 1;
15837 rm -f conftest.$ac_objext
15838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15839 (eval $ac_compile) 2>&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); } &&
15843 { ac_try='test -s conftest.$ac_objext'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849 cat >>confdefs.h <<\_ACEOF
15850 #define HAVE_U_INTXX_T 1
15853 cat >>confdefs.h <<\_ACEOF
15854 #define HAVE_INTXX_T 1
15857 cat >>confdefs.h <<\_ACEOF
15858 #define HAVE_SYS_BITYPES_H 1
15861 echo "$as_me:$LINENO: result: yes" >&5
15862 echo "${ECHO_T}yes" >&6
15864 echo "$as_me: failed program was:" >&5
15865 sed 's/^/| /' conftest.$ac_ext >&5
15867 echo "$as_me:$LINENO: result: no" >&5
15868 echo "${ECHO_T}no" >&6
15871 rm -f conftest.$ac_objext conftest.$ac_ext
15874 if test -z "$have_u_intxx_t" ; then
15875 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15876 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15877 if test "${ac_cv_have_uintxx_t+set}" = set; then
15878 echo $ECHO_N "(cached) $ECHO_C" >&6
15881 cat >conftest.$ac_ext <<_ACEOF
15882 #line $LINENO "configure"
15885 cat confdefs.h >>conftest.$ac_ext
15886 cat >>conftest.$ac_ext <<_ACEOF
15887 /* end confdefs.h. */
15888 #include <sys/types.h>
15892 uint8_t a; uint16_t b;
15893 uint32_t c; a = b = c = 1;
15898 rm -f conftest.$ac_objext
15899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15900 (eval $ac_compile) 2>&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); } &&
15904 { ac_try='test -s conftest.$ac_objext'
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; }; then
15910 ac_cv_have_uintxx_t="yes"
15912 echo "$as_me: failed program was:" >&5
15913 sed 's/^/| /' conftest.$ac_ext >&5
15915 ac_cv_have_uintxx_t="no"
15918 rm -f conftest.$ac_objext conftest.$ac_ext
15921 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15922 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15923 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15924 cat >>confdefs.h <<\_ACEOF
15925 #define HAVE_UINTXX_T 1
15931 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15932 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15934 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15935 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15936 cat >conftest.$ac_ext <<_ACEOF
15937 #line $LINENO "configure"
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h. */
15943 #include <sys/bitypes.h>
15947 int64_t a; u_int64_t b;
15953 rm -f conftest.$ac_objext
15954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15955 (eval $ac_compile) 2>&5
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); } &&
15959 { ac_try='test -s conftest.$ac_objext'
15960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961 (eval $ac_try) 2>&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; }; then
15965 cat >>confdefs.h <<\_ACEOF
15966 #define HAVE_U_INT64_T 1
15969 cat >>confdefs.h <<\_ACEOF
15970 #define HAVE_INT64_T 1
15973 echo "$as_me:$LINENO: result: yes" >&5
15974 echo "${ECHO_T}yes" >&6
15976 echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.$ac_ext >&5
15979 echo "$as_me:$LINENO: result: no" >&5
15980 echo "${ECHO_T}no" >&6
15983 rm -f conftest.$ac_objext conftest.$ac_ext
15986 if (test -z "$have_uintxx_t" && \
15987 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15989 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15990 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15991 cat >conftest.$ac_ext <<_ACEOF
15992 #line $LINENO "configure"
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 #include <sys/bitypes.h>
16002 uint8_t a; uint16_t b;
16003 uint32_t c; a = b = c = 1;
16008 rm -f conftest.$ac_objext
16009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16010 (eval $ac_compile) 2>&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); } &&
16014 { ac_try='test -s conftest.$ac_objext'
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; }; then
16020 cat >>confdefs.h <<\_ACEOF
16021 #define HAVE_UINTXX_T 1
16024 echo "$as_me:$LINENO: result: yes" >&5
16025 echo "${ECHO_T}yes" >&6
16027 echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.$ac_ext >&5
16030 echo "$as_me:$LINENO: result: no" >&5
16031 echo "${ECHO_T}no" >&6
16034 rm -f conftest.$ac_objext conftest.$ac_ext
16070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16071 echo "$as_me:$LINENO: checking for $ac_func" >&5
16072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16073 if eval "test \"\${$as_ac_var+set}\" = set"; then
16074 echo $ECHO_N "(cached) $ECHO_C" >&6
16076 cat >conftest.$ac_ext <<_ACEOF
16077 #line $LINENO "configure"
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16083 /* System header to define __stub macros and hopefully few prototypes,
16084 which can conflict with char $ac_func (); below.
16085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16086 <limits.h> exists even on freestanding compilers. */
16088 # include <limits.h>
16090 # include <assert.h>
16092 /* Override any gcc2 internal prototype to avoid an error. */
16097 /* We use char because int might match the return type of a gcc2
16098 builtin and then its argument prototype would still apply. */
16100 /* The GNU C library defines this for functions which it implements
16101 to always fail with ENOSYS. Some functions are actually named
16102 something starting with __ and the normal name is an alias. */
16103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16106 char (*f) () = $ac_func;
16115 return f != $ac_func;
16120 rm -f conftest.$ac_objext conftest$ac_exeext
16121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16122 (eval $ac_link) 2>&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); } &&
16126 { ac_try='test -s conftest$ac_exeext'
16127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16128 (eval $ac_try) 2>&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); }; }; then
16132 eval "$as_ac_var=yes"
16134 echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16137 eval "$as_ac_var=no"
16139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16143 if test `eval echo '${'$as_ac_var'}'` = yes; then
16144 cat >>confdefs.h <<_ACEOF
16145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16149 echo 'configure: cannot find needed function.'; exit 1
16156 for ac_func in fchdir
16158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16159 echo "$as_me:$LINENO: checking for $ac_func" >&5
16160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16161 if eval "test \"\${$as_ac_var+set}\" = set"; then
16162 echo $ECHO_N "(cached) $ECHO_C" >&6
16164 cat >conftest.$ac_ext <<_ACEOF
16165 #line $LINENO "configure"
16168 cat confdefs.h >>conftest.$ac_ext
16169 cat >>conftest.$ac_ext <<_ACEOF
16170 /* end confdefs.h. */
16171 /* System header to define __stub macros and hopefully few prototypes,
16172 which can conflict with char $ac_func (); below.
16173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16174 <limits.h> exists even on freestanding compilers. */
16176 # include <limits.h>
16178 # include <assert.h>
16180 /* Override any gcc2 internal prototype to avoid an error. */
16185 /* We use char because int might match the return type of a gcc2
16186 builtin and then its argument prototype would still apply. */
16188 /* The GNU C library defines this for functions which it implements
16189 to always fail with ENOSYS. Some functions are actually named
16190 something starting with __ and the normal name is an alias. */
16191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16194 char (*f) () = $ac_func;
16203 return f != $ac_func;
16208 rm -f conftest.$ac_objext conftest$ac_exeext
16209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16210 (eval $ac_link) 2>&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } &&
16214 { ac_try='test -s conftest$ac_exeext'
16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; }; then
16220 eval "$as_ac_var=yes"
16222 echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16225 eval "$as_ac_var=no"
16227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16231 if test `eval echo '${'$as_ac_var'}'` = yes; then
16232 cat >>confdefs.h <<_ACEOF
16233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16235 cat >>confdefs.h <<\_ACEOF
16236 #define HAVE_FCHDIR 1
16243 for ac_func in strtoll
16245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16246 echo "$as_me:$LINENO: checking for $ac_func" >&5
16247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16248 if eval "test \"\${$as_ac_var+set}\" = set"; then
16249 echo $ECHO_N "(cached) $ECHO_C" >&6
16251 cat >conftest.$ac_ext <<_ACEOF
16252 #line $LINENO "configure"
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h. */
16258 /* System header to define __stub macros and hopefully few prototypes,
16259 which can conflict with char $ac_func (); below.
16260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16261 <limits.h> exists even on freestanding compilers. */
16263 # include <limits.h>
16265 # include <assert.h>
16267 /* Override any gcc2 internal prototype to avoid an error. */
16272 /* We use char because int might match the return type of a gcc2
16273 builtin and then its argument prototype would still apply. */
16275 /* The GNU C library defines this for functions which it implements
16276 to always fail with ENOSYS. Some functions are actually named
16277 something starting with __ and the normal name is an alias. */
16278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16281 char (*f) () = $ac_func;
16290 return f != $ac_func;
16295 rm -f conftest.$ac_objext conftest$ac_exeext
16296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16297 (eval $ac_link) 2>&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } &&
16301 { ac_try='test -s conftest$ac_exeext'
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; }; then
16307 eval "$as_ac_var=yes"
16309 echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16312 eval "$as_ac_var=no"
16314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16318 if test `eval echo '${'$as_ac_var'}'` = yes; then
16319 cat >>confdefs.h <<_ACEOF
16320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16322 cat >>confdefs.h <<\_ACEOF
16323 #define HAVE_STRTOLL 1
16331 for ac_func in chflags
16333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16334 echo "$as_me:$LINENO: checking for $ac_func" >&5
16335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16336 if eval "test \"\${$as_ac_var+set}\" = set"; then
16337 echo $ECHO_N "(cached) $ECHO_C" >&6
16339 cat >conftest.$ac_ext <<_ACEOF
16340 #line $LINENO "configure"
16343 cat confdefs.h >>conftest.$ac_ext
16344 cat >>conftest.$ac_ext <<_ACEOF
16345 /* end confdefs.h. */
16346 /* System header to define __stub macros and hopefully few prototypes,
16347 which can conflict with char $ac_func (); below.
16348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16349 <limits.h> exists even on freestanding compilers. */
16351 # include <limits.h>
16353 # include <assert.h>
16355 /* Override any gcc2 internal prototype to avoid an error. */
16360 /* We use char because int might match the return type of a gcc2
16361 builtin and then its argument prototype would still apply. */
16363 /* The GNU C library defines this for functions which it implements
16364 to always fail with ENOSYS. Some functions are actually named
16365 something starting with __ and the normal name is an alias. */
16366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16369 char (*f) () = $ac_func;
16378 return f != $ac_func;
16383 rm -f conftest.$ac_objext conftest$ac_exeext
16384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16385 (eval $ac_link) 2>&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
16389 { ac_try='test -s conftest$ac_exeext'
16390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391 (eval $ac_try) 2>&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; }; then
16395 eval "$as_ac_var=yes"
16397 echo "$as_me: failed program was:" >&5
16398 sed 's/^/| /' conftest.$ac_ext >&5
16400 eval "$as_ac_var=no"
16402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16406 if test `eval echo '${'$as_ac_var'}'` = yes; then
16407 cat >>confdefs.h <<_ACEOF
16408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16419 for ac_func in snprintf vsnprintf gethostid getdomainname
16421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16422 echo "$as_me:$LINENO: checking for $ac_func" >&5
16423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16424 if eval "test \"\${$as_ac_var+set}\" = set"; then
16425 echo $ECHO_N "(cached) $ECHO_C" >&6
16427 cat >conftest.$ac_ext <<_ACEOF
16428 #line $LINENO "configure"
16431 cat confdefs.h >>conftest.$ac_ext
16432 cat >>conftest.$ac_ext <<_ACEOF
16433 /* end confdefs.h. */
16434 /* System header to define __stub macros and hopefully few prototypes,
16435 which can conflict with char $ac_func (); below.
16436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16437 <limits.h> exists even on freestanding compilers. */
16439 # include <limits.h>
16441 # include <assert.h>
16443 /* Override any gcc2 internal prototype to avoid an error. */
16448 /* We use char because int might match the return type of a gcc2
16449 builtin and then its argument prototype would still apply. */
16451 /* The GNU C library defines this for functions which it implements
16452 to always fail with ENOSYS. Some functions are actually named
16453 something starting with __ and the normal name is an alias. */
16454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16457 char (*f) () = $ac_func;
16466 return f != $ac_func;
16471 rm -f conftest.$ac_objext conftest$ac_exeext
16472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16473 (eval $ac_link) 2>&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); } &&
16477 { ac_try='test -s conftest$ac_exeext'
16478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16479 (eval $ac_try) 2>&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); }; }; then
16483 eval "$as_ac_var=yes"
16485 echo "$as_me: failed program was:" >&5
16486 sed 's/^/| /' conftest.$ac_ext >&5
16488 eval "$as_ac_var=no"
16490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16494 if test `eval echo '${'$as_ac_var'}'` = yes; then
16495 cat >>confdefs.h <<_ACEOF
16496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16507 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
16509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16510 echo "$as_me:$LINENO: checking for $ac_func" >&5
16511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16512 if eval "test \"\${$as_ac_var+set}\" = set"; then
16513 echo $ECHO_N "(cached) $ECHO_C" >&6
16515 cat >conftest.$ac_ext <<_ACEOF
16516 #line $LINENO "configure"
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h. */
16522 /* System header to define __stub macros and hopefully few prototypes,
16523 which can conflict with char $ac_func (); below.
16524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16525 <limits.h> exists even on freestanding compilers. */
16527 # include <limits.h>
16529 # include <assert.h>
16531 /* Override any gcc2 internal prototype to avoid an error. */
16536 /* We use char because int might match the return type of a gcc2
16537 builtin and then its argument prototype would still apply. */
16539 /* The GNU C library defines this for functions which it implements
16540 to always fail with ENOSYS. Some functions are actually named
16541 something starting with __ and the normal name is an alias. */
16542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16545 char (*f) () = $ac_func;
16554 return f != $ac_func;
16559 rm -f conftest.$ac_objext conftest$ac_exeext
16560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16561 (eval $ac_link) 2>&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } &&
16565 { ac_try='test -s conftest$ac_exeext'
16566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567 (eval $ac_try) 2>&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; }; then
16571 eval "$as_ac_var=yes"
16573 echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16576 eval "$as_ac_var=no"
16578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16582 if test `eval echo '${'$as_ac_var'}'` = yes; then
16583 cat >>confdefs.h <<_ACEOF
16584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16591 # If resolver functions are not in libc check for -lnsl or -lresolv.
16592 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
16593 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
16594 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
16595 echo $ECHO_N "(cached) $ECHO_C" >&6
16597 cat >conftest.$ac_ext <<_ACEOF
16598 #line $LINENO "configure"
16601 cat confdefs.h >>conftest.$ac_ext
16602 cat >>conftest.$ac_ext <<_ACEOF
16603 /* end confdefs.h. */
16604 /* System header to define __stub macros and hopefully few prototypes,
16605 which can conflict with char gethostbyname_r (); below.
16606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16607 <limits.h> exists even on freestanding compilers. */
16609 # include <limits.h>
16611 # include <assert.h>
16613 /* Override any gcc2 internal prototype to avoid an error. */
16618 /* We use char because int might match the return type of a gcc2
16619 builtin and then its argument prototype would still apply. */
16620 char gethostbyname_r ();
16621 /* The GNU C library defines this for functions which it implements
16622 to always fail with ENOSYS. Some functions are actually named
16623 something starting with __ and the normal name is an alias. */
16624 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
16627 char (*f) () = gethostbyname_r;
16636 return f != gethostbyname_r;
16641 rm -f conftest.$ac_objext conftest$ac_exeext
16642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16643 (eval $ac_link) 2>&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
16647 { ac_try='test -s conftest$ac_exeext'
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; }; then
16653 ac_cv_func_gethostbyname_r=yes
16655 echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16658 ac_cv_func_gethostbyname_r=no
16660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16662 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
16663 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
16664 if test $ac_cv_func_gethostbyname_r = yes; then
16665 echo "$as_me:$LINENO: result: using libc's resolver" >&5
16666 echo "${ECHO_T}using libc's resolver" >&6
16669 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
16670 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
16671 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
16672 echo $ECHO_N "(cached) $ECHO_C" >&6
16674 ac_check_lib_save_LIBS=$LIBS
16676 cat >conftest.$ac_ext <<_ACEOF
16677 #line $LINENO "configure"
16680 cat confdefs.h >>conftest.$ac_ext
16681 cat >>conftest.$ac_ext <<_ACEOF
16682 /* end confdefs.h. */
16684 /* Override any gcc2 internal prototype to avoid an error. */
16688 /* We use char because int might match the return type of a gcc2
16689 builtin and then its argument prototype would still apply. */
16690 char gethostbyname_r ();
16694 gethostbyname_r ();
16699 rm -f conftest.$ac_objext conftest$ac_exeext
16700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16701 (eval $ac_link) 2>&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } &&
16705 { ac_try='test -s conftest$ac_exeext'
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707 (eval $ac_try) 2>&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; }; then
16711 ac_cv_lib_nsl_gethostbyname_r=yes
16713 echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16716 ac_cv_lib_nsl_gethostbyname_r=no
16718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16719 LIBS=$ac_check_lib_save_LIBS
16721 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
16722 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
16723 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
16724 cat >>confdefs.h <<_ACEOF
16725 #define HAVE_LIBNSL 1
16733 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
16734 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
16735 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
16736 echo $ECHO_N "(cached) $ECHO_C" >&6
16738 ac_check_lib_save_LIBS=$LIBS
16739 LIBS="-lresolv $LIBS"
16740 cat >conftest.$ac_ext <<_ACEOF
16741 #line $LINENO "configure"
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h. */
16748 /* Override any gcc2 internal prototype to avoid an error. */
16752 /* We use char because int might match the return type of a gcc2
16753 builtin and then its argument prototype would still apply. */
16754 char gethostbyname_r ();
16758 gethostbyname_r ();
16763 rm -f conftest.$ac_objext conftest$ac_exeext
16764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16765 (eval $ac_link) 2>&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); } &&
16769 { ac_try='test -s conftest$ac_exeext'
16770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771 (eval $ac_try) 2>&5
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; }; then
16775 ac_cv_lib_resolv_gethostbyname_r=yes
16777 echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16780 ac_cv_lib_resolv_gethostbyname_r=no
16782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16783 LIBS=$ac_check_lib_save_LIBS
16785 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
16786 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
16787 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
16788 cat >>confdefs.h <<_ACEOF
16789 #define HAVE_LIBRESOLV 1
16792 LIBS="-lresolv $LIBS"
16802 for ac_func in inet_pton
16804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16805 echo "$as_me:$LINENO: checking for $ac_func" >&5
16806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16807 if eval "test \"\${$as_ac_var+set}\" = set"; then
16808 echo $ECHO_N "(cached) $ECHO_C" >&6
16810 cat >conftest.$ac_ext <<_ACEOF
16811 #line $LINENO "configure"
16814 cat confdefs.h >>conftest.$ac_ext
16815 cat >>conftest.$ac_ext <<_ACEOF
16816 /* end confdefs.h. */
16817 /* System header to define __stub macros and hopefully few prototypes,
16818 which can conflict with char $ac_func (); below.
16819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16820 <limits.h> exists even on freestanding compilers. */
16822 # include <limits.h>
16824 # include <assert.h>
16826 /* Override any gcc2 internal prototype to avoid an error. */
16831 /* We use char because int might match the return type of a gcc2
16832 builtin and then its argument prototype would still apply. */
16834 /* The GNU C library defines this for functions which it implements
16835 to always fail with ENOSYS. Some functions are actually named
16836 something starting with __ and the normal name is an alias. */
16837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16840 char (*f) () = $ac_func;
16849 return f != $ac_func;
16854 rm -f conftest.$ac_objext conftest$ac_exeext
16855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16856 (eval $ac_link) 2>&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); } &&
16860 { ac_try='test -s conftest$ac_exeext'
16861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; }; then
16866 eval "$as_ac_var=yes"
16868 echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16871 eval "$as_ac_var=no"
16873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16877 if test `eval echo '${'$as_ac_var'}'` = yes; then
16878 cat >>confdefs.h <<_ACEOF
16879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16881 cat >>confdefs.h <<\_ACEOF
16882 #define HAVE_INET_PTON 1
16889 for ac_func in inet_ntop
16891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16892 echo "$as_me:$LINENO: checking for $ac_func" >&5
16893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16894 if eval "test \"\${$as_ac_var+set}\" = set"; then
16895 echo $ECHO_N "(cached) $ECHO_C" >&6
16897 cat >conftest.$ac_ext <<_ACEOF
16898 #line $LINENO "configure"
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 /* System header to define __stub macros and hopefully few prototypes,
16905 which can conflict with char $ac_func (); below.
16906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16907 <limits.h> exists even on freestanding compilers. */
16909 # include <limits.h>
16911 # include <assert.h>
16913 /* Override any gcc2 internal prototype to avoid an error. */
16918 /* We use char because int might match the return type of a gcc2
16919 builtin and then its argument prototype would still apply. */
16921 /* The GNU C library defines this for functions which it implements
16922 to always fail with ENOSYS. Some functions are actually named
16923 something starting with __ and the normal name is an alias. */
16924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16927 char (*f) () = $ac_func;
16936 return f != $ac_func;
16941 rm -f conftest.$ac_objext conftest$ac_exeext
16942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16943 (eval $ac_link) 2>&5
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); } &&
16947 { ac_try='test -s conftest$ac_exeext'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; }; then
16953 eval "$as_ac_var=yes"
16955 echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16958 eval "$as_ac_var=no"
16960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16964 if test `eval echo '${'$as_ac_var'}'` = yes; then
16965 cat >>confdefs.h <<_ACEOF
16966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16968 cat >>confdefs.h <<\_ACEOF
16969 #define HAVE_INET_NTOP 1
16976 for ac_func in gethostbyname2
16978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16979 echo "$as_me:$LINENO: checking for $ac_func" >&5
16980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16981 if eval "test \"\${$as_ac_var+set}\" = set"; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16984 cat >conftest.$ac_ext <<_ACEOF
16985 #line $LINENO "configure"
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h. */
16991 /* System header to define __stub macros and hopefully few prototypes,
16992 which can conflict with char $ac_func (); below.
16993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16994 <limits.h> exists even on freestanding compilers. */
16996 # include <limits.h>
16998 # include <assert.h>
17000 /* Override any gcc2 internal prototype to avoid an error. */
17005 /* We use char because int might match the return type of a gcc2
17006 builtin and then its argument prototype would still apply. */
17008 /* The GNU C library defines this for functions which it implements
17009 to always fail with ENOSYS. Some functions are actually named
17010 something starting with __ and the normal name is an alias. */
17011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17014 char (*f) () = $ac_func;
17023 return f != $ac_func;
17028 rm -f conftest.$ac_objext conftest$ac_exeext
17029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17030 (eval $ac_link) 2>&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); } &&
17034 { ac_try='test -s conftest$ac_exeext'
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 eval "$as_ac_var=yes"
17042 echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 eval "$as_ac_var=no"
17047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17051 if test `eval echo '${'$as_ac_var'}'` = yes; then
17052 cat >>confdefs.h <<_ACEOF
17053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17055 cat >>confdefs.h <<\_ACEOF
17056 #define HAVE_GETHOSTBYNAME2 1
17063 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
17064 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
17065 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
17066 echo $ECHO_N "(cached) $ECHO_C" >&6
17068 cat >conftest.$ac_ext <<_ACEOF
17069 #line $LINENO "configure"
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17075 #include <sys/socket.h>
17079 struct sockaddr s; s.sa_len;
17084 rm -f conftest.$ac_objext
17085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17086 (eval $ac_compile) 2>&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } &&
17090 { ac_try='test -s conftest.$ac_objext'
17091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092 (eval $ac_try) 2>&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; }; then
17096 ac_cv_struct_sockaddr_sa_len=yes
17098 echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17101 ac_cv_struct_sockaddr_sa_len=no
17103 rm -f conftest.$ac_objext conftest.$ac_ext
17105 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
17106 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
17108 if test $ac_cv_struct_sockaddr_sa_len = yes; then
17110 cat >>confdefs.h <<\_ACEOF
17111 #define HAVE_SA_LEN 1
17117 echo "$as_me:$LINENO: checking for IPv6 support" >&5
17118 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
17119 if test "${ac_cv_ipv6_support+set}" = set; then
17120 echo $ECHO_N "(cached) $ECHO_C" >&6
17122 cat >conftest.$ac_ext <<_ACEOF
17123 #line $LINENO "configure"
17126 cat confdefs.h >>conftest.$ac_ext
17127 cat >>conftest.$ac_ext <<_ACEOF
17128 /* end confdefs.h. */
17129 #include <sys/types.h>
17130 #include <sys/socket.h>
17131 #include <netinet/in.h>
17135 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
17141 rm -f conftest.$ac_objext conftest$ac_exeext
17142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17143 (eval $ac_link) 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); } &&
17147 { ac_try='test -s conftest$ac_exeext'
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; }; then
17153 ac_cv_ipv6_support=yes
17155 echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17158 ac_cv_ipv6_support=no
17160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17162 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
17163 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
17165 if test "$ac_cv_ipv6_support" = yes; then
17167 cat >>confdefs.h <<\_ACEOF
17168 #define HAVE_IPV6 1
17176 for ac_func in strftime
17178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17179 echo "$as_me:$LINENO: checking for $ac_func" >&5
17180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17181 if eval "test \"\${$as_ac_var+set}\" = set"; then
17182 echo $ECHO_N "(cached) $ECHO_C" >&6
17184 cat >conftest.$ac_ext <<_ACEOF
17185 #line $LINENO "configure"
17188 cat confdefs.h >>conftest.$ac_ext
17189 cat >>conftest.$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17191 /* System header to define __stub macros and hopefully few prototypes,
17192 which can conflict with char $ac_func (); below.
17193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17194 <limits.h> exists even on freestanding compilers. */
17196 # include <limits.h>
17198 # include <assert.h>
17200 /* Override any gcc2 internal prototype to avoid an error. */
17205 /* We use char because int might match the return type of a gcc2
17206 builtin and then its argument prototype would still apply. */
17208 /* The GNU C library defines this for functions which it implements
17209 to always fail with ENOSYS. Some functions are actually named
17210 something starting with __ and the normal name is an alias. */
17211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17214 char (*f) () = $ac_func;
17223 return f != $ac_func;
17228 rm -f conftest.$ac_objext conftest$ac_exeext
17229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17230 (eval $ac_link) 2>&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); } &&
17234 { ac_try='test -s conftest$ac_exeext'
17235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17236 (eval $ac_try) 2>&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); }; }; then
17240 eval "$as_ac_var=yes"
17242 echo "$as_me: failed program was:" >&5
17243 sed 's/^/| /' conftest.$ac_ext >&5
17245 eval "$as_ac_var=no"
17247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17251 if test `eval echo '${'$as_ac_var'}'` = yes; then
17252 cat >>confdefs.h <<_ACEOF
17253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17257 # strftime is in -lintl on SCO UNIX.
17258 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17259 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17260 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17261 echo $ECHO_N "(cached) $ECHO_C" >&6
17263 ac_check_lib_save_LIBS=$LIBS
17264 LIBS="-lintl $LIBS"
17265 cat >conftest.$ac_ext <<_ACEOF
17266 #line $LINENO "configure"
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h. */
17273 /* Override any gcc2 internal prototype to avoid an error. */
17277 /* We use char because int might match the return type of a gcc2
17278 builtin and then its argument prototype would still apply. */
17288 rm -f conftest.$ac_objext conftest$ac_exeext
17289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17290 (eval $ac_link) 2>&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); } &&
17294 { ac_try='test -s conftest$ac_exeext'
17295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296 (eval $ac_try) 2>&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); }; }; then
17300 ac_cv_lib_intl_strftime=yes
17302 echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17305 ac_cv_lib_intl_strftime=no
17307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17308 LIBS=$ac_check_lib_save_LIBS
17310 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17311 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17312 if test $ac_cv_lib_intl_strftime = yes; then
17313 cat >>confdefs.h <<\_ACEOF
17314 #define HAVE_STRFTIME 1
17317 LIBS="-lintl $LIBS"
17324 for ac_func in vprintf
17326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17327 echo "$as_me:$LINENO: checking for $ac_func" >&5
17328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17329 if eval "test \"\${$as_ac_var+set}\" = set"; then
17330 echo $ECHO_N "(cached) $ECHO_C" >&6
17332 cat >conftest.$ac_ext <<_ACEOF
17333 #line $LINENO "configure"
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h. */
17339 /* System header to define __stub macros and hopefully few prototypes,
17340 which can conflict with char $ac_func (); below.
17341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17342 <limits.h> exists even on freestanding compilers. */
17344 # include <limits.h>
17346 # include <assert.h>
17348 /* Override any gcc2 internal prototype to avoid an error. */
17353 /* We use char because int might match the return type of a gcc2
17354 builtin and then its argument prototype would still apply. */
17356 /* The GNU C library defines this for functions which it implements
17357 to always fail with ENOSYS. Some functions are actually named
17358 something starting with __ and the normal name is an alias. */
17359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17362 char (*f) () = $ac_func;
17371 return f != $ac_func;
17376 rm -f conftest.$ac_objext conftest$ac_exeext
17377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17378 (eval $ac_link) 2>&5
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); } &&
17382 { ac_try='test -s conftest$ac_exeext'
17383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17384 (eval $ac_try) 2>&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); }; }; then
17388 eval "$as_ac_var=yes"
17390 echo "$as_me: failed program was:" >&5
17391 sed 's/^/| /' conftest.$ac_ext >&5
17393 eval "$as_ac_var=no"
17395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17399 if test `eval echo '${'$as_ac_var'}'` = yes; then
17400 cat >>confdefs.h <<_ACEOF
17401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17404 echo "$as_me:$LINENO: checking for _doprnt" >&5
17405 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
17406 if test "${ac_cv_func__doprnt+set}" = set; then
17407 echo $ECHO_N "(cached) $ECHO_C" >&6
17409 cat >conftest.$ac_ext <<_ACEOF
17410 #line $LINENO "configure"
17413 cat confdefs.h >>conftest.$ac_ext
17414 cat >>conftest.$ac_ext <<_ACEOF
17415 /* end confdefs.h. */
17416 /* System header to define __stub macros and hopefully few prototypes,
17417 which can conflict with char _doprnt (); below.
17418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17419 <limits.h> exists even on freestanding compilers. */
17421 # include <limits.h>
17423 # include <assert.h>
17425 /* Override any gcc2 internal prototype to avoid an error. */
17430 /* We use char because int might match the return type of a gcc2
17431 builtin and then its argument prototype would still apply. */
17433 /* The GNU C library defines this for functions which it implements
17434 to always fail with ENOSYS. Some functions are actually named
17435 something starting with __ and the normal name is an alias. */
17436 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17439 char (*f) () = _doprnt;
17448 return f != _doprnt;
17453 rm -f conftest.$ac_objext conftest$ac_exeext
17454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17455 (eval $ac_link) 2>&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); } &&
17459 { ac_try='test -s conftest$ac_exeext'
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461 (eval $ac_try) 2>&5
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; }; then
17465 ac_cv_func__doprnt=yes
17467 echo "$as_me: failed program was:" >&5
17468 sed 's/^/| /' conftest.$ac_ext >&5
17470 ac_cv_func__doprnt=no
17472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17474 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17475 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
17476 if test $ac_cv_func__doprnt = yes; then
17478 cat >>confdefs.h <<\_ACEOF
17479 #define HAVE_DOPRNT 1
17488 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17489 # for constant arguments. Useless!
17490 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17491 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17492 if test "${ac_cv_working_alloca_h+set}" = set; then
17493 echo $ECHO_N "(cached) $ECHO_C" >&6
17495 cat >conftest.$ac_ext <<_ACEOF
17496 #line $LINENO "configure"
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17502 #include <alloca.h>
17506 char *p = (char *) alloca (2 * sizeof (int));
17511 rm -f conftest.$ac_objext conftest$ac_exeext
17512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17513 (eval $ac_link) 2>&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
17517 { ac_try='test -s conftest$ac_exeext'
17518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17519 (eval $ac_try) 2>&5
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; }; then
17523 ac_cv_working_alloca_h=yes
17525 echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17528 ac_cv_working_alloca_h=no
17530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17532 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17533 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17534 if test $ac_cv_working_alloca_h = yes; then
17536 cat >>confdefs.h <<\_ACEOF
17537 #define HAVE_ALLOCA_H 1
17542 echo "$as_me:$LINENO: checking for alloca" >&5
17543 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17544 if test "${ac_cv_func_alloca_works+set}" = set; then
17545 echo $ECHO_N "(cached) $ECHO_C" >&6
17547 cat >conftest.$ac_ext <<_ACEOF
17548 #line $LINENO "configure"
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h. */
17555 # define alloca __builtin_alloca
17558 # include <malloc.h>
17559 # define alloca _alloca
17562 # include <alloca.h>
17567 # ifndef alloca /* predefined by HP cc +Olibcalls */
17578 char *p = (char *) alloca (1);
17583 rm -f conftest.$ac_objext conftest$ac_exeext
17584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17585 (eval $ac_link) 2>&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } &&
17589 { ac_try='test -s conftest$ac_exeext'
17590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 ac_cv_func_alloca_works=yes
17597 echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17600 ac_cv_func_alloca_works=no
17602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17604 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17605 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17607 if test $ac_cv_func_alloca_works = yes; then
17609 cat >>confdefs.h <<\_ACEOF
17610 #define HAVE_ALLOCA 1
17614 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17615 # that cause trouble. Some versions do not even contain alloca or
17616 # contain a buggy version. If you still want to use their alloca,
17617 # use ar to extract alloca.o from them instead of compiling alloca.c.
17619 ALLOCA=alloca.$ac_objext
17621 cat >>confdefs.h <<\_ACEOF
17626 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17627 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17628 if test "${ac_cv_os_cray+set}" = set; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
17631 cat >conftest.$ac_ext <<_ACEOF
17632 #line $LINENO "configure"
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h. */
17638 #if defined(CRAY) && ! defined(CRAY2)
17645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17646 $EGREP "webecray" >/dev/null 2>&1; then
17654 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17655 echo "${ECHO_T}$ac_cv_os_cray" >&6
17656 if test $ac_cv_os_cray = yes; then
17657 for ac_func in _getb67 GETB67 getb67; do
17658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17659 echo "$as_me:$LINENO: checking for $ac_func" >&5
17660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17661 if eval "test \"\${$as_ac_var+set}\" = set"; then
17662 echo $ECHO_N "(cached) $ECHO_C" >&6
17664 cat >conftest.$ac_ext <<_ACEOF
17665 #line $LINENO "configure"
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h. */
17671 /* System header to define __stub macros and hopefully few prototypes,
17672 which can conflict with char $ac_func (); below.
17673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17674 <limits.h> exists even on freestanding compilers. */
17676 # include <limits.h>
17678 # include <assert.h>
17680 /* Override any gcc2 internal prototype to avoid an error. */
17685 /* We use char because int might match the return type of a gcc2
17686 builtin and then its argument prototype would still apply. */
17688 /* The GNU C library defines this for functions which it implements
17689 to always fail with ENOSYS. Some functions are actually named
17690 something starting with __ and the normal name is an alias. */
17691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17694 char (*f) () = $ac_func;
17703 return f != $ac_func;
17708 rm -f conftest.$ac_objext conftest$ac_exeext
17709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17710 (eval $ac_link) 2>&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } &&
17714 { ac_try='test -s conftest$ac_exeext'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; }; then
17720 eval "$as_ac_var=yes"
17722 echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.$ac_ext >&5
17725 eval "$as_ac_var=no"
17727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17731 if test `eval echo '${'$as_ac_var'}'` = yes; then
17733 cat >>confdefs.h <<_ACEOF
17734 #define CRAY_STACKSEG_END $ac_func
17743 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17744 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17745 if test "${ac_cv_c_stack_direction+set}" = set; then
17746 echo $ECHO_N "(cached) $ECHO_C" >&6
17748 if test "$cross_compiling" = yes; then
17749 ac_cv_c_stack_direction=0
17751 cat >conftest.$ac_ext <<_ACEOF
17752 #line $LINENO "configure"
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h. */
17759 find_stack_direction ()
17761 static char *addr = 0;
17766 return find_stack_direction ();
17769 return (&dummy > addr) ? 1 : -1;
17775 exit (find_stack_direction () < 0);
17778 rm -f conftest$ac_exeext
17779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17780 (eval $ac_link) 2>&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17789 ac_cv_c_stack_direction=1
17791 echo "$as_me: program exited with status $ac_status" >&5
17792 echo "$as_me: failed program was:" >&5
17793 sed 's/^/| /' conftest.$ac_ext >&5
17795 ( exit $ac_status )
17796 ac_cv_c_stack_direction=-1
17798 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17801 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17802 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17804 cat >>confdefs.h <<_ACEOF
17805 #define STACK_DIRECTION $ac_cv_c_stack_direction
17811 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17812 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17813 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17814 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17817 ac_check_lib_save_LIBS=$LIBS
17819 cat >conftest.$ac_ext <<_ACEOF
17820 #line $LINENO "configure"
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h. */
17827 /* Override any gcc2 internal prototype to avoid an error. */
17831 /* We use char because int might match the return type of a gcc2
17832 builtin and then its argument prototype would still apply. */
17842 rm -f conftest.$ac_objext conftest$ac_exeext
17843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17844 (eval $ac_link) 2>&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } &&
17848 { ac_try='test -s conftest$ac_exeext'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; }; then
17854 ac_cv_lib_sun_getmntent=yes
17856 echo "$as_me: failed program was:" >&5
17857 sed 's/^/| /' conftest.$ac_ext >&5
17859 ac_cv_lib_sun_getmntent=no
17861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17862 LIBS=$ac_check_lib_save_LIBS
17864 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17865 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17866 if test $ac_cv_lib_sun_getmntent = yes; then
17869 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17870 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17871 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17872 echo $ECHO_N "(cached) $ECHO_C" >&6
17874 ac_check_lib_save_LIBS=$LIBS
17876 cat >conftest.$ac_ext <<_ACEOF
17877 #line $LINENO "configure"
17880 cat confdefs.h >>conftest.$ac_ext
17881 cat >>conftest.$ac_ext <<_ACEOF
17882 /* end confdefs.h. */
17884 /* Override any gcc2 internal prototype to avoid an error. */
17888 /* We use char because int might match the return type of a gcc2
17889 builtin and then its argument prototype would still apply. */
17899 rm -f conftest.$ac_objext conftest$ac_exeext
17900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17901 (eval $ac_link) 2>&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } &&
17905 { ac_try='test -s conftest$ac_exeext'
17906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907 (eval $ac_try) 2>&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); }; }; then
17911 ac_cv_lib_seq_getmntent=yes
17913 echo "$as_me: failed program was:" >&5
17914 sed 's/^/| /' conftest.$ac_ext >&5
17916 ac_cv_lib_seq_getmntent=no
17918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17919 LIBS=$ac_check_lib_save_LIBS
17921 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17922 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17923 if test $ac_cv_lib_seq_getmntent = yes; then
17926 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17927 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17928 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17929 echo $ECHO_N "(cached) $ECHO_C" >&6
17931 ac_check_lib_save_LIBS=$LIBS
17933 cat >conftest.$ac_ext <<_ACEOF
17934 #line $LINENO "configure"
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h. */
17941 /* Override any gcc2 internal prototype to avoid an error. */
17945 /* We use char because int might match the return type of a gcc2
17946 builtin and then its argument prototype would still apply. */
17956 rm -f conftest.$ac_objext conftest$ac_exeext
17957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17958 (eval $ac_link) 2>&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } &&
17962 { ac_try='test -s conftest$ac_exeext'
17963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; }; then
17968 ac_cv_lib_gen_getmntent=yes
17970 echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17973 ac_cv_lib_gen_getmntent=no
17975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17976 LIBS=$ac_check_lib_save_LIBS
17978 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17979 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17980 if test $ac_cv_lib_gen_getmntent = yes; then
17989 for ac_func in getmntent
17991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17992 echo "$as_me:$LINENO: checking for $ac_func" >&5
17993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17994 if eval "test \"\${$as_ac_var+set}\" = set"; then
17995 echo $ECHO_N "(cached) $ECHO_C" >&6
17997 cat >conftest.$ac_ext <<_ACEOF
17998 #line $LINENO "configure"
18001 cat confdefs.h >>conftest.$ac_ext
18002 cat >>conftest.$ac_ext <<_ACEOF
18003 /* end confdefs.h. */
18004 /* System header to define __stub macros and hopefully few prototypes,
18005 which can conflict with char $ac_func (); below.
18006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18007 <limits.h> exists even on freestanding compilers. */
18009 # include <limits.h>
18011 # include <assert.h>
18013 /* Override any gcc2 internal prototype to avoid an error. */
18018 /* We use char because int might match the return type of a gcc2
18019 builtin and then its argument prototype would still apply. */
18021 /* The GNU C library defines this for functions which it implements
18022 to always fail with ENOSYS. Some functions are actually named
18023 something starting with __ and the normal name is an alias. */
18024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18027 char (*f) () = $ac_func;
18036 return f != $ac_func;
18041 rm -f conftest.$ac_objext conftest$ac_exeext
18042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18043 (eval $ac_link) 2>&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } &&
18047 { ac_try='test -s conftest$ac_exeext'
18048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049 (eval $ac_try) 2>&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 eval "$as_ac_var=yes"
18055 echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18058 eval "$as_ac_var=no"
18060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18064 if test `eval echo '${'$as_ac_var'}'` = yes; then
18065 cat >>confdefs.h <<_ACEOF
18066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18073 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
18074 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
18075 if test "${ac_cv_func_closedir_void+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18078 if test "$cross_compiling" = yes; then
18079 ac_cv_func_closedir_void=yes
18081 cat >conftest.$ac_ext <<_ACEOF
18082 #line $LINENO "configure"
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18088 $ac_includes_default
18089 #include <$ac_header_dirent>
18090 #ifndef __cplusplus
18097 exit (closedir (opendir (".")) != 0);
18102 rm -f conftest$ac_exeext
18103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18104 (eval $ac_link) 2>&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
18113 ac_cv_func_closedir_void=no
18115 echo "$as_me: program exited with status $ac_status" >&5
18116 echo "$as_me: failed program was:" >&5
18117 sed 's/^/| /' conftest.$ac_ext >&5
18119 ( exit $ac_status )
18120 ac_cv_func_closedir_void=yes
18122 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18125 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
18126 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
18127 if test $ac_cv_func_closedir_void = yes; then
18129 cat >>confdefs.h <<\_ACEOF
18130 #define CLOSEDIR_VOID 1
18135 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18136 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18137 if test "${ac_cv_func_setpgrp_void+set}" = set; then
18138 echo $ECHO_N "(cached) $ECHO_C" >&6
18140 if test "$cross_compiling" = yes; then
18141 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18142 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18143 { (exit 1); exit 1; }; }
18145 cat >conftest.$ac_ext <<_ACEOF
18146 #line $LINENO "configure"
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h. */
18153 # include <unistd.h>
18159 /* If this system has a BSD-style setpgrp which takes arguments,
18160 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18161 exit successfully. */
18162 exit (setpgrp (1,1) == -1 ? 0 : 1);
18167 rm -f conftest$ac_exeext
18168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18169 (eval $ac_link) 2>&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174 (eval $ac_try) 2>&5
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; }; then
18178 ac_cv_func_setpgrp_void=no
18180 echo "$as_me: program exited with status $ac_status" >&5
18181 echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18184 ( exit $ac_status )
18185 ac_cv_func_setpgrp_void=yes
18187 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18190 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18191 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18192 if test $ac_cv_func_setpgrp_void = yes; then
18194 cat >>confdefs.h <<\_ACEOF
18195 #define SETPGRP_VOID 1
18199 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
18200 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
18201 if test "${ac_cv_func_fnmatch_works+set}" = set; then
18202 echo $ECHO_N "(cached) $ECHO_C" >&6
18204 # Some versions of Solaris, SCO, and the GNU C Library
18205 # have a broken or incompatible fnmatch.
18206 # So we run a test program. If we are cross-compiling, take no chance.
18207 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
18208 if test "$cross_compiling" = yes; then
18209 ac_cv_func_fnmatch_works=cross
18211 cat >conftest.$ac_ext <<_ACEOF
18212 #line $LINENO "configure"
18215 cat confdefs.h >>conftest.$ac_ext
18216 cat >>conftest.$ac_ext <<_ACEOF
18217 /* end confdefs.h. */
18218 #include <fnmatch.h>
18219 # define y(a, b, c) (fnmatch (a, b, c) == 0)
18220 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
18226 (!(y ("a*", "abc", 0)
18227 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
18228 && y ("a\\\\bc", "abc", 0)
18229 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
18230 && y ("*x", ".x", 0)
18231 && n ("*x", ".x", FNM_PERIOD)
18237 rm -f conftest$ac_exeext
18238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18239 (eval $ac_link) 2>&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244 (eval $ac_try) 2>&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; }; then
18248 ac_cv_func_fnmatch_works=yes
18250 echo "$as_me: program exited with status $ac_status" >&5
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 ( exit $ac_status )
18255 ac_cv_func_fnmatch_works=no
18257 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18260 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
18261 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
18262 if test $ac_cv_func_fnmatch_works = yes; then
18264 cat >>confdefs.h <<\_ACEOF
18265 #define HAVE_FNMATCH 1
18274 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
18275 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
18276 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
18277 echo $ECHO_N "(cached) $ECHO_C" >&6
18279 ac_check_lib_save_LIBS=$LIBS
18280 LIBS="-lxpg4 $LIBS"
18281 cat >conftest.$ac_ext <<_ACEOF
18282 #line $LINENO "configure"
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h. */
18289 /* Override any gcc2 internal prototype to avoid an error. */
18293 /* We use char because int might match the return type of a gcc2
18294 builtin and then its argument prototype would still apply. */
18304 rm -f conftest.$ac_objext conftest$ac_exeext
18305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18306 (eval $ac_link) 2>&5
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); } &&
18310 { ac_try='test -s conftest$ac_exeext'
18311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18312 (eval $ac_try) 2>&5
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); }; }; then
18316 ac_cv_lib_xpg4_setlocale=yes
18318 echo "$as_me: failed program was:" >&5
18319 sed 's/^/| /' conftest.$ac_ext >&5
18321 ac_cv_lib_xpg4_setlocale=no
18323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18324 LIBS=$ac_check_lib_save_LIBS
18326 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
18327 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
18328 if test $ac_cv_lib_xpg4_setlocale = yes; then
18329 LIBS="$LIBS -lxpg4"
18335 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
18336 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
18337 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18340 ac_check_lib_save_LIBS=$LIBS
18342 cat >conftest.$ac_ext <<_ACEOF
18343 #line $LINENO "configure"
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h. */
18350 /* Override any gcc2 internal prototype to avoid an error. */
18354 /* We use char because int might match the return type of a gcc2
18355 builtin and then its argument prototype would still apply. */
18365 rm -f conftest.$ac_objext conftest$ac_exeext
18366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18367 (eval $ac_link) 2>&5
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } &&
18371 { ac_try='test -s conftest$ac_exeext'
18372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373 (eval $ac_try) 2>&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; }; then
18377 ac_cv_lib_sun_getpwnam=yes
18379 echo "$as_me: failed program was:" >&5
18380 sed 's/^/| /' conftest.$ac_ext >&5
18382 ac_cv_lib_sun_getpwnam=no
18384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18385 LIBS=$ac_check_lib_save_LIBS
18387 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
18388 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
18389 if test $ac_cv_lib_sun_getpwnam = yes; then
18390 cat >>confdefs.h <<_ACEOF
18391 #define HAVE_LIBSUN 1
18400 for ac_header in zlib.h
18402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18404 echo "$as_me:$LINENO: checking for $ac_header" >&5
18405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18412 # Is the header compilable?
18413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18415 cat >conftest.$ac_ext <<_ACEOF
18416 #line $LINENO "configure"
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h. */
18422 $ac_includes_default
18423 #include <$ac_header>
18425 rm -f conftest.$ac_objext
18426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18427 (eval $ac_compile) 2>&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } &&
18431 { ac_try='test -s conftest.$ac_objext'
18432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433 (eval $ac_try) 2>&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; }; then
18437 ac_header_compiler=yes
18439 echo "$as_me: failed program was:" >&5
18440 sed 's/^/| /' conftest.$ac_ext >&5
18442 ac_header_compiler=no
18444 rm -f conftest.$ac_objext conftest.$ac_ext
18445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18446 echo "${ECHO_T}$ac_header_compiler" >&6
18448 # Is the header present?
18449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18451 cat >conftest.$ac_ext <<_ACEOF
18452 #line $LINENO "configure"
18455 cat confdefs.h >>conftest.$ac_ext
18456 cat >>conftest.$ac_ext <<_ACEOF
18457 /* end confdefs.h. */
18458 #include <$ac_header>
18460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18463 grep -v '^ *+' conftest.er1 >conftest.err
18465 cat conftest.err >&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); } >/dev/null; then
18468 if test -s conftest.err; then
18469 ac_cpp_err=$ac_c_preproc_warn_flag
18476 if test -z "$ac_cpp_err"; then
18477 ac_header_preproc=yes
18479 echo "$as_me: failed program was:" >&5
18480 sed 's/^/| /' conftest.$ac_ext >&5
18482 ac_header_preproc=no
18484 rm -f conftest.err conftest.$ac_ext
18485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18486 echo "${ECHO_T}$ac_header_preproc" >&6
18488 # So? What about this header?
18489 case $ac_header_compiler:$ac_header_preproc in
18491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18497 ## ------------------------------------ ##
18498 ## Report this to bug-autoconf@gnu.org. ##
18499 ## ------------------------------------ ##
18502 sed "s/^/$as_me: WARNING: /" >&2
18505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18513 ## ------------------------------------ ##
18514 ## Report this to bug-autoconf@gnu.org. ##
18515 ## ------------------------------------ ##
18518 sed "s/^/$as_me: WARNING: /" >&2
18521 echo "$as_me:$LINENO: checking for $ac_header" >&5
18522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18524 echo $ECHO_N "(cached) $ECHO_C" >&6
18526 eval "$as_ac_Header=$ac_header_preproc"
18528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18533 cat >>confdefs.h <<_ACEOF
18534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18541 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18542 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18543 if test "${ac_cv_lib_z_deflate+set}" = set; then
18544 echo $ECHO_N "(cached) $ECHO_C" >&6
18546 ac_check_lib_save_LIBS=$LIBS
18548 cat >conftest.$ac_ext <<_ACEOF
18549 #line $LINENO "configure"
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h. */
18556 /* Override any gcc2 internal prototype to avoid an error. */
18560 /* We use char because int might match the return type of a gcc2
18561 builtin and then its argument prototype would still apply. */
18571 rm -f conftest.$ac_objext conftest$ac_exeext
18572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18573 (eval $ac_link) 2>&5
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); } &&
18577 { ac_try='test -s conftest$ac_exeext'
18578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; }; then
18583 ac_cv_lib_z_deflate=yes
18585 echo "$as_me: failed program was:" >&5
18586 sed 's/^/| /' conftest.$ac_ext >&5
18588 ac_cv_lib_z_deflate=no
18590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18591 LIBS=$ac_check_lib_save_LIBS
18593 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18594 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18595 if test $ac_cv_lib_z_deflate = yes; then
18600 if test x$FDLIBS = x-lz; then
18601 cat >>confdefs.h <<\_ACEOF
18602 #define HAVE_LIBZ 1
18608 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18609 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18610 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18611 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18612 echo $ECHO_N "(cached) $ECHO_C" >&6
18614 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18615 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18617 # Is the header compilable?
18618 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18619 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18620 cat >conftest.$ac_ext <<_ACEOF
18621 #line $LINENO "configure"
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h. */
18627 $ac_includes_default
18628 #include <sys/acl.h>
18630 rm -f conftest.$ac_objext
18631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18632 (eval $ac_compile) 2>&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } &&
18636 { ac_try='test -s conftest.$ac_objext'
18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638 (eval $ac_try) 2>&5
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; }; then
18642 ac_header_compiler=yes
18644 echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18647 ac_header_compiler=no
18649 rm -f conftest.$ac_objext conftest.$ac_ext
18650 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18651 echo "${ECHO_T}$ac_header_compiler" >&6
18653 # Is the header present?
18654 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18655 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18656 cat >conftest.$ac_ext <<_ACEOF
18657 #line $LINENO "configure"
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18663 #include <sys/acl.h>
18665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18668 grep -v '^ *+' conftest.er1 >conftest.err
18670 cat conftest.err >&5
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); } >/dev/null; then
18673 if test -s conftest.err; then
18674 ac_cpp_err=$ac_c_preproc_warn_flag
18681 if test -z "$ac_cpp_err"; then
18682 ac_header_preproc=yes
18684 echo "$as_me: failed program was:" >&5
18685 sed 's/^/| /' conftest.$ac_ext >&5
18687 ac_header_preproc=no
18689 rm -f conftest.err conftest.$ac_ext
18690 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18691 echo "${ECHO_T}$ac_header_preproc" >&6
18693 # So? What about this header?
18694 case $ac_header_compiler:$ac_header_preproc in
18696 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18697 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18698 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18699 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18702 ## ------------------------------------ ##
18703 ## Report this to bug-autoconf@gnu.org. ##
18704 ## ------------------------------------ ##
18707 sed "s/^/$as_me: WARNING: /" >&2
18710 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18711 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18712 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18713 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18714 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18715 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18718 ## ------------------------------------ ##
18719 ## Report this to bug-autoconf@gnu.org. ##
18720 ## ------------------------------------ ##
18723 sed "s/^/$as_me: WARNING: /" >&2
18726 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18727 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18728 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18729 echo $ECHO_N "(cached) $ECHO_C" >&6
18731 ac_cv_header_sys_acl_h=$ac_header_preproc
18733 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18734 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18739 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18740 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18741 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18742 echo $ECHO_N "(cached) $ECHO_C" >&6
18744 ac_check_lib_save_LIBS=$LIBS
18746 cat >conftest.$ac_ext <<_ACEOF
18747 #line $LINENO "configure"
18750 cat confdefs.h >>conftest.$ac_ext
18751 cat >>conftest.$ac_ext <<_ACEOF
18752 /* end confdefs.h. */
18754 /* Override any gcc2 internal prototype to avoid an error. */
18758 /* We use char because int might match the return type of a gcc2
18759 builtin and then its argument prototype would still apply. */
18760 char acl_get_file ();
18769 rm -f conftest.$ac_objext conftest$ac_exeext
18770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18771 (eval $ac_link) 2>&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); } &&
18775 { ac_try='test -s conftest$ac_exeext'
18776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18777 (eval $ac_try) 2>&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); }; }; then
18781 ac_cv_lib_acl_acl_get_file=yes
18783 echo "$as_me: failed program was:" >&5
18784 sed 's/^/| /' conftest.$ac_ext >&5
18786 ac_cv_lib_acl_acl_get_file=no
18788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18789 LIBS=$ac_check_lib_save_LIBS
18791 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18792 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18793 if test $ac_cv_lib_acl_acl_get_file = yes; then
18794 FDLIBS="-lacl $FDLIBS"
18798 if test $ac_cv_lib_acl_acl_get_file = yes; then
18799 cat >>confdefs.h <<\_ACEOF
18807 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18808 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18809 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18810 echo $ECHO_N "(cached) $ECHO_C" >&6
18812 ac_check_lib_save_LIBS=$LIBS
18813 LIBS="-lpthread $LIBS"
18814 cat >conftest.$ac_ext <<_ACEOF
18815 #line $LINENO "configure"
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18822 /* Override any gcc2 internal prototype to avoid an error. */
18826 /* We use char because int might match the return type of a gcc2
18827 builtin and then its argument prototype would still apply. */
18828 char pthread_create ();
18837 rm -f conftest.$ac_objext conftest$ac_exeext
18838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18839 (eval $ac_link) 2>&5
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); } &&
18843 { ac_try='test -s conftest$ac_exeext'
18844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18845 (eval $ac_try) 2>&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); }; }; then
18849 ac_cv_lib_pthread_pthread_create=yes
18851 echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18854 ac_cv_lib_pthread_pthread_create=no
18856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18857 LIBS=$ac_check_lib_save_LIBS
18859 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18860 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18861 if test $ac_cv_lib_pthread_pthread_create = yes; then
18862 PTHREAD_LIB="-lpthread"
18864 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18865 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18866 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
18869 ac_check_lib_save_LIBS=$LIBS
18870 LIBS="-lpthreads $LIBS"
18871 cat >conftest.$ac_ext <<_ACEOF
18872 #line $LINENO "configure"
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h. */
18879 /* Override any gcc2 internal prototype to avoid an error. */
18883 /* We use char because int might match the return type of a gcc2
18884 builtin and then its argument prototype would still apply. */
18885 char pthread_create ();
18894 rm -f conftest.$ac_objext conftest$ac_exeext
18895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18896 (eval $ac_link) 2>&5
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); } &&
18900 { ac_try='test -s conftest$ac_exeext'
18901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902 (eval $ac_try) 2>&5
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; }; then
18906 ac_cv_lib_pthreads_pthread_create=yes
18908 echo "$as_me: failed program was:" >&5
18909 sed 's/^/| /' conftest.$ac_ext >&5
18911 ac_cv_lib_pthreads_pthread_create=no
18913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18914 LIBS=$ac_check_lib_save_LIBS
18916 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18917 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18918 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18919 PTHREAD_LIB="-lpthreads"
18921 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18922 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18923 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18926 ac_check_lib_save_LIBS=$LIBS
18928 cat >conftest.$ac_ext <<_ACEOF
18929 #line $LINENO "configure"
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18936 /* Override any gcc2 internal prototype to avoid an error. */
18940 /* We use char because int might match the return type of a gcc2
18941 builtin and then its argument prototype would still apply. */
18942 char pthread_create ();
18951 rm -f conftest.$ac_objext conftest$ac_exeext
18952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18953 (eval $ac_link) 2>&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } &&
18957 { ac_try='test -s conftest$ac_exeext'
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; }; then
18963 ac_cv_lib_c_r_pthread_create=yes
18965 echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18968 ac_cv_lib_c_r_pthread_create=no
18970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18971 LIBS=$ac_check_lib_save_LIBS
18973 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18974 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18975 if test $ac_cv_lib_c_r_pthread_create = yes; then
18976 PTHREAD_LIB="-lc_r"
18978 echo "$as_me:$LINENO: checking for pthread_create" >&5
18979 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18980 if test "${ac_cv_func_pthread_create+set}" = set; then
18981 echo $ECHO_N "(cached) $ECHO_C" >&6
18983 cat >conftest.$ac_ext <<_ACEOF
18984 #line $LINENO "configure"
18987 cat confdefs.h >>conftest.$ac_ext
18988 cat >>conftest.$ac_ext <<_ACEOF
18989 /* end confdefs.h. */
18990 /* System header to define __stub macros and hopefully few prototypes,
18991 which can conflict with char pthread_create (); below.
18992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18993 <limits.h> exists even on freestanding compilers. */
18995 # include <limits.h>
18997 # include <assert.h>
18999 /* Override any gcc2 internal prototype to avoid an error. */
19004 /* We use char because int might match the return type of a gcc2
19005 builtin and then its argument prototype would still apply. */
19006 char pthread_create ();
19007 /* The GNU C library defines this for functions which it implements
19008 to always fail with ENOSYS. Some functions are actually named
19009 something starting with __ and the normal name is an alias. */
19010 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
19013 char (*f) () = pthread_create;
19022 return f != pthread_create;
19027 rm -f conftest.$ac_objext conftest$ac_exeext
19028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19029 (eval $ac_link) 2>&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); } &&
19033 { ac_try='test -s conftest$ac_exeext'
19034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035 (eval $ac_try) 2>&5
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; }; then
19039 ac_cv_func_pthread_create=yes
19041 echo "$as_me: failed program was:" >&5
19042 sed 's/^/| /' conftest.$ac_ext >&5
19044 ac_cv_func_pthread_create=no
19046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19048 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
19049 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
19062 cat >>confdefs.h <<\_ACEOF
19068 CFLAGS=${CFLAGS--O}
19069 LDFLAGS=${LDFLAGS--O}
19070 DB_LIBS="${SQL_LFLAGS}"
19072 CPPFLAGS="$CPPFLAGS"
19097 # Finally we set appropriate distribution specific
19098 # variables and defaults
19100 # PFILES are platform specific files
19101 PFILES="platforms/Makefile"
19105 hostname=`uname -n | cut -d '.' -f 1`
19106 case "$DISTNAME" in
19109 PSCMD="ps -e -o pid,comm"
19110 PFILES="${PFILES} \
19111 platforms/aix/Makefile"
19112 TAPEDRIVE="/dev/rmt0.1"
19116 PTHREAD_LIB="-lpthread -lexc"
19117 if test "${CC}" = "gcc" ; then
19124 TAPEDRIVE="/dev/nrmt0"
19127 DISTVER=`uname -a |awk '{print $3}'`
19128 TAPEDRIVE="/dev/nrmt0"
19129 PTHREAD_LIB="-pthread"
19130 CFLAGS="${CFLAGS} -pthread"
19131 PSCMD="ps -x -o pid,command"
19134 PFILES="${PFILES} \
19135 platforms/bsdi/Makefile \
19136 platforms/bsdi/bacula-fd \
19137 platforms/bsdi/bacula-sd \
19138 platforms/bsdi/bacula-dir"
19139 largefile_support="yes"
19142 DISTVER=`uname -a |awk '{print $3}'`
19143 TAPEDRIVE="/dev/nrst0"
19145 WCFLAGS="-mwindows"
19146 WLDFLAGS="-mwindows"
19150 TAPEDRIVE="/dev/nst0"
19151 PSCMD="ps -e -o pid,command"
19153 PFILES="${PFILES} \
19154 platforms/darwin/Makefile"
19157 DISTVER=`cat /etc/debian_version`
19158 TAPEDRIVE="/dev/nrst0"
19159 PSCMD="ps -e -o pid,command"
19162 DISTVER=`uname -a |awk '{print $3}'`
19163 VER=`echo $DISTVER | cut -c 1`
19164 if test x$VER = x4 ; then
19165 PTHREAD_LIB="-pthread"
19166 CFLAGS="${CFLAGS} -pthread"
19170 TAPEDRIVE="/dev/nrsa0"
19171 PSCMD="ps -x -o pid,command"
19172 PFILES="${PFILES} \
19173 platforms/freebsd/Makefile \
19174 platforms/freebsd/bacula-fd \
19175 platforms/freebsd/bacula-sd \
19176 platforms/freebsd/bacula-dir"
19177 largefile_support="yes"
19180 PSCMD="UNIX95=1 ps -e -o pid,comm"
19181 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
19183 TAPEDRIVE="/dev/rmt/0hnb"
19187 TAPEDRIVE="/dev/rmt/0cbn"
19188 PSCMD="ps -e -o pid,comm"
19189 PFILES="${PFILES} \
19190 platforms/irix/Makefile \
19191 platforms/irix/bacula-fd \
19192 platforms/irix/bacula-sd \
19193 platforms/irix/bacula-dir"
19196 DISTVER=`uname -a |awk '{print $3}'`
19199 TAPEDRIVE="/dev/nrst0"
19200 PSCMD="ps -a -o pid,command"
19201 PTHREAD_LIB="-pthread"
19202 CFLAGS="${CFLAGS} -pthread"
19205 DISTVER=`uname -a |awk '{print $3}'`
19208 TAPEDRIVE="/dev/nrst0"
19209 PSCMD="ps -ax -o pid,command"
19210 PTHREAD_LIB="-pthread"
19211 CFLAGS="${CFLAGS} -pthread"
19212 PFILES="${PFILES} \
19213 platforms/openbsd/Makefile \
19214 platforms/openbsd/bacula-fd \
19215 platforms/openbsd/bacula-sd \
19216 platforms/openbsd/bacula-dir"
19219 if test -f /etc/whitebox-release ; then
19220 f=/etc/whitebox-release
19222 f=/etc/redhat-release
19224 if test `cat $f | grep release |\
19225 cut -f 3 -d ' '`x = "Enterprise"x ; then
19226 DISTVER="Enterprise "`cat $f | grep release |\
19229 DISTVER=`cat /etc/redhat-release | grep release |\
19232 TAPEDRIVE="/dev/nst0"
19233 PSCMD="ps -e -o pid,command"
19234 PFILES="${PFILES} \
19235 platforms/redhat/Makefile \
19236 platforms/redhat/bacula-fd \
19237 platforms/redhat/bacula-sd \
19238 platforms/redhat/bacula-dir \
19239 platforms/redhat/bacula.spec \
19241 hostname=`hostname -s`
19244 DISTVER=`cat /etc/mandrake-release | grep release |\
19246 TAPEDRIVE="/dev/nst0"
19247 PSCMD="ps -e -o pid,command"
19248 PFILES="${PFILES} \
19249 platforms/mandrake/Makefile \
19250 platforms/mandrake/bacula-fd \
19251 platforms/mandrake/bacula-sd \
19252 platforms/mandrake/bacula-dir \
19253 platforms/mandrake/bacula.spec \
19257 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
19258 TAPEDRIVE="/dev/nst0"
19259 PSCMD="ps -e -o pid,command"
19260 PFILES="${PFILES} \
19261 platforms/gentoo/Makefile \
19262 platforms/gentoo/bacula-init \
19263 platforms/gentoo/bacula-fd \
19264 platforms/gentoo/bacula-sd \
19265 platforms/gentoo/bacula-dir"
19268 DISTVER=`cat /etc/slackware-version`
19269 TAPEDRIVE="/dev/nst0"
19270 PSCMD="ps -e -o pid,command"
19271 PFILES="${PFILES} \
19272 platforms/slackware/Makefile \
19273 platforms/slackware/rc.bacula-fd \
19274 platforms/slackware/rc.bacula-sd \
19275 platforms/slackware/rc.bacula-dir\
19276 platforms/slackware/functions.bacula"
19280 TAPEDRIVE="/dev/rmt/0cbn"
19281 PSCMD="ps -e -o pid,comm"
19282 PFILES="${PFILES} \
19283 platforms/solaris/Makefile \
19284 platforms/solaris/bacula-fd \
19285 platforms/solaris/bacula-sd \
19286 platforms/solaris/bacula-dir"
19287 if test x$DISTVER = x5.6 ; then
19288 cat >>confdefs.h <<\_ACEOF
19289 #define HAVE_OLD_SOCKOPT 1
19295 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
19297 TAPEDRIVE="/dev/nst0"
19298 PSCMD="ps -e -o pid,command"
19299 PFILES="${PFILES} \
19300 platforms/suse/Makefile \
19301 platforms/suse/bacula-fd \
19302 platforms/suse/bacula-sd \
19303 platforms/suse/bacula-dir \
19304 platforms/suse/bacula \
19305 platforms/suse/bacula.spec"
19310 TAPEDRIVE="/dev/nst0"
19311 PSCMD="ps -e -o pid,command"
19312 PFILES="${PFILES} \
19313 platforms/suse/Makefile \
19314 platforms/suse/bacula-fd \
19315 platforms/suse/bacula-sd \
19316 platforms/suse/bacula-dir"
19320 TAPEDRIVE="/dev/nst0"
19323 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
19329 LIBS="$PTHREAD_LIB $LIBS"
19331 cat >>confdefs.h <<_ACEOF
19335 cat >>confdefs.h <<_ACEOF
19346 MCOMMON=./autoconf/Make.common
19349 if test "x${subsysdir}" = "x${sbindir}" ; then
19352 echo "You have set both --sbindir and --with-subsys-dir"
19353 echo " equal to: ${subsysdir} "
19354 echo "This is not permitted. Please reconfigure."
19356 echo "Aborting configuration ..."
19362 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/linux/cdrom/bacula/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 scripts/bacula-tray-monitor.desktop 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/tray-monitor/Makefile src/tray-monitor/tray-monitor.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 src/win32/pebuilder/Makefile src/bimagemgr/Makefile src/bimagemgr/bacula-bimagemgr.spec $PFILES"
19363 ac_config_commands="$ac_config_commands default"
19364 cat >confcache <<\_ACEOF
19365 # This file is a shell script that caches the results of configure
19366 # tests run on this system so they can be shared between configure
19367 # scripts and configure runs, see configure's option --config-cache.
19368 # It is not useful on other systems. If it contains results you don't
19369 # want to keep, you may remove or edit it.
19371 # config.status only pays attention to the cache file if you give it
19372 # the --recheck option to rerun configure.
19374 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19375 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19376 # following values.
19380 # The following way of writing the cache mishandles newlines in values,
19381 # but we know of no workaround that is simple, portable, and efficient.
19382 # So, don't put newlines in cache variables' values.
19383 # Ultrix sh set writes to stderr and can't be redirected directly,
19384 # and sets the high bit in the cache file unless we assign to the vars.
19387 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19389 # `set' does not quote correctly, so add quotes (double-quote
19390 # substitution turns \\\\ into \\, and sed turns \\ into \).
19393 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19396 # `set' quotes correctly as required by POSIX, so do not add quotes.
19398 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19405 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19407 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19409 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19410 if test -w $cache_file; then
19411 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19412 cat confcache >$cache_file
19414 echo "not updating unwritable cache $cache_file"
19419 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19420 # Let make expand exec_prefix.
19421 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19423 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19424 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19425 # trailing colons and then remove the whole line if VPATH becomes empty
19426 # (actually we leave an empty line to preserve line numbers).
19427 if test "x$srcdir" = x.; then
19428 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19429 s/:*\$(srcdir):*/:/;
19430 s/:*\${srcdir}:*/:/;
19432 s/^\([^=]*=[ ]*\):*/\1/;
19438 DEFS=-DHAVE_CONFIG_H
19442 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19443 # 1. Remove the extension, and $U if already installed.
19444 ac_i=`echo "$ac_i" |
19445 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19447 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19448 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19450 LIBOBJS=$ac_libobjs
19452 LTLIBOBJS=$ac_ltlibobjs
19456 : ${CONFIG_STATUS=./config.status}
19457 ac_clean_files_save=$ac_clean_files
19458 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19459 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19460 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19461 cat >$CONFIG_STATUS <<_ACEOF
19463 # Generated by $as_me.
19464 # Run this file to recreate the current configuration.
19465 # Compiler output produced by configure, useful for debugging
19466 # configure, is in config.log if it exists.
19469 ac_cs_recheck=false
19471 SHELL=\${CONFIG_SHELL-$SHELL}
19474 cat >>$CONFIG_STATUS <<\_ACEOF
19475 ## --------------------- ##
19476 ## M4sh Initialization. ##
19477 ## --------------------- ##
19479 # Be Bourne compatible
19480 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19483 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19484 # is contrary to our usage. Disable this feature.
19485 alias -g '${1+"$@"}'='"$@"'
19486 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19490 # Support unset when possible.
19491 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19498 # Work around bugs in pre-3.0 UWIN ksh.
19499 $as_unset ENV MAIL MAILPATH
19506 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19507 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19508 LC_TELEPHONE LC_TIME
19510 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19511 eval $as_var=C; export $as_var
19517 # Required to use basename.
19518 if expr a : '\(a\)' >/dev/null 2>&1; then
19524 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19525 as_basename=basename
19531 # Name of the executable.
19532 as_me=`$as_basename "$0" ||
19533 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19534 X"$0" : 'X\(//\)$' \| \
19535 X"$0" : 'X\(/\)$' \| \
19536 . : '\(.\)' 2>/dev/null ||
19538 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19539 /^X\/\(\/\/\)$/{ s//\1/; q; }
19540 /^X\/\(\/\).*/{ s//\1/; q; }
19544 # PATH needs CR, and LINENO needs CR and PATH.
19545 # Avoid depending upon Character Ranges.
19546 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19547 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19548 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19549 as_cr_digits='0123456789'
19550 as_cr_alnum=$as_cr_Letters$as_cr_digits
19552 # The user is always right.
19553 if test "${PATH_SEPARATOR+set}" != set; then
19554 echo "#! /bin/sh" >conf$$.sh
19555 echo "exit 0" >>conf$$.sh
19557 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19566 as_lineno_1=$LINENO
19567 as_lineno_2=$LINENO
19568 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19569 test "x$as_lineno_1" != "x$as_lineno_2" &&
19570 test "x$as_lineno_3" = "x$as_lineno_2" || {
19571 # Find who we are. Look in the path if we contain no path at all
19574 *[\\/]* ) as_myself=$0 ;;
19575 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19576 for as_dir in $PATH
19579 test -z "$as_dir" && as_dir=.
19580 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19585 # We did not find ourselves, most probably we were run as `sh COMMAND'
19586 # in which case we are not to be found in the path.
19587 if test "x$as_myself" = x; then
19590 if test ! -f "$as_myself"; then
19591 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19592 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19593 { (exit 1); exit 1; }; }
19595 case $CONFIG_SHELL in
19597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19598 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19601 test -z "$as_dir" && as_dir=.
19602 for as_base in sh bash ksh sh5; do
19605 if ("$as_dir/$as_base" -c '
19606 as_lineno_1=$LINENO
19607 as_lineno_2=$LINENO
19608 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19609 test "x$as_lineno_1" != "x$as_lineno_2" &&
19610 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19611 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19612 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19613 CONFIG_SHELL=$as_dir/$as_base
19614 export CONFIG_SHELL
19615 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19623 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19624 # uniformly replaced by the line number. The first 'sed' inserts a
19625 # line-number line before each line; the second 'sed' does the real
19626 # work. The second script uses 'N' to pair each line-number line
19627 # with the numbered line, and appends trailing '-' during
19628 # substitution so that $LINENO is not a special case at line end.
19629 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19630 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19631 sed '=' <$as_myself |
19636 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19639 s,^['$as_cr_digits']*\n,,
19640 ' >$as_me.lineno &&
19641 chmod +x $as_me.lineno ||
19642 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19643 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19644 { (exit 1); exit 1; }; }
19646 # Don't try to exec as it changes $[0], causing all sort of problems
19647 # (the dirname of $[0] is not the place where we might find the
19648 # original and so on. Autoconf is especially sensible to this).
19650 # Exit status is that of the last command.
19655 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19656 *c*,-n*) ECHO_N= ECHO_C='
19658 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19659 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19662 if expr a : '\(a\)' >/dev/null 2>&1; then
19668 rm -f conf$$ conf$$.exe conf$$.file
19670 if ln -s conf$$.file conf$$ 2>/dev/null; then
19671 # We could just check for DJGPP; but this test a) works b) is more generic
19672 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19673 if test -f conf$$.exe; then
19674 # Don't use ln at all; we don't have any links
19679 elif ln conf$$.file conf$$ 2>/dev/null; then
19684 rm -f conf$$ conf$$.exe conf$$.file
19686 if mkdir -p . 2>/dev/null; then
19692 as_executable_p="test -f"
19694 # Sed expression to map a string onto a valid CPP name.
19695 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19697 # Sed expression to map a string onto a valid variable name.
19698 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19702 # We need space, tab and new line, in precisely that order.
19712 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19713 # report actual input values of CONFIG_FILES etc. instead of their
19714 # values after options handling. Logging --version etc. is OK.
19718 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19719 ## Running $as_me. ##
19724 This file was extended by $as_me, which was
19725 generated by GNU Autoconf 2.57. Invocation command line was
19727 CONFIG_FILES = $CONFIG_FILES
19728 CONFIG_HEADERS = $CONFIG_HEADERS
19729 CONFIG_LINKS = $CONFIG_LINKS
19730 CONFIG_COMMANDS = $CONFIG_COMMANDS
19734 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19738 # Files that config.status was made for.
19739 if test -n "$ac_config_files"; then
19740 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19743 if test -n "$ac_config_headers"; then
19744 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19747 if test -n "$ac_config_links"; then
19748 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19751 if test -n "$ac_config_commands"; then
19752 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19755 cat >>$CONFIG_STATUS <<\_ACEOF
19758 \`$as_me' instantiates files from templates according to the
19759 current configuration.
19761 Usage: $0 [OPTIONS] [FILE]...
19763 -h, --help print this help, then exit
19764 -V, --version print version number, then exit
19765 -q, --quiet do not print progress messages
19766 -d, --debug don't remove temporary files
19767 --recheck update $as_me by reconfiguring in the same conditions
19768 --file=FILE[:TEMPLATE]
19769 instantiate the configuration file FILE
19770 --header=FILE[:TEMPLATE]
19771 instantiate the configuration header FILE
19773 Configuration files:
19776 Configuration headers:
19779 Configuration commands:
19782 Report bugs to <bug-autoconf@gnu.org>."
19785 cat >>$CONFIG_STATUS <<_ACEOF
19788 configured by $0, generated by GNU Autoconf 2.57,
19789 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19791 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19792 Free Software Foundation, Inc.
19793 This config.status script is free software; the Free Software Foundation
19794 gives unlimited permission to copy, distribute and modify it."
19799 cat >>$CONFIG_STATUS <<\_ACEOF
19800 # If no file are specified by the user, then we need to provide default
19801 # value. By we need to know if files were specified by the user.
19807 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19808 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19816 *) # This is not an option, so the user has probably given explicit
19819 ac_need_defaults=false;;
19823 # Handling of the options.
19825 cat >>$CONFIG_STATUS <<\_ACEOF
19826 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19828 --version | --vers* | -V )
19829 echo "$ac_cs_version"; exit 0 ;;
19831 # Conflict between --help and --header
19832 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19833 Try \`$0 --help' for more information." >&5
19834 echo "$as_me: error: ambiguous option: $1
19835 Try \`$0 --help' for more information." >&2;}
19836 { (exit 1); exit 1; }; };;
19837 --help | --hel | -h )
19838 echo "$ac_cs_usage"; exit 0 ;;
19839 --debug | --d* | -d )
19841 --file | --fil | --fi | --f )
19843 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19844 ac_need_defaults=false;;
19845 --header | --heade | --head | --hea )
19847 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19848 ac_need_defaults=false;;
19849 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19850 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19853 # This is an error.
19854 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19855 Try \`$0 --help' for more information." >&5
19856 echo "$as_me: error: unrecognized option: $1
19857 Try \`$0 --help' for more information." >&2;}
19858 { (exit 1); exit 1; }; } ;;
19860 *) ac_config_targets="$ac_config_targets $1" ;;
19866 ac_configure_extra_args=
19868 if $ac_cs_silent; then
19870 ac_configure_extra_args="$ac_configure_extra_args --silent"
19874 cat >>$CONFIG_STATUS <<_ACEOF
19875 if \$ac_cs_recheck; then
19876 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19877 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19886 cat >>$CONFIG_STATUS <<\_ACEOF
19887 for ac_config_target in $ac_config_targets
19889 case "$ac_config_target" in
19890 # Handling of arguments.
19891 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19892 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19893 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19894 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19895 "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
19896 "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
19897 "rescue/linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/bacula/Makefile" ;;
19898 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19899 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19900 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19901 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19902 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19903 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19904 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19905 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19906 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19907 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19908 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19909 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19910 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19911 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19912 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19913 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19914 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19915 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19916 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19917 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19918 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19919 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
19920 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19921 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19922 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19923 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19924 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19925 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19926 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19927 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19928 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19929 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19930 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19931 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19932 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19933 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19934 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19935 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19936 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19937 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19938 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19939 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19940 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19941 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19942 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19943 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19944 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19945 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19946 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19947 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19948 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19949 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19950 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19951 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19952 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19953 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19954 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19955 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19956 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19957 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19958 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19959 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19960 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19961 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19962 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19963 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19964 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19965 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19966 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19967 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19968 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19969 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19970 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19971 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19972 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19973 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19974 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19975 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19976 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19977 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19978 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19979 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19980 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19981 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19982 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19983 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
19984 "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
19985 "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
19986 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19987 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19988 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19989 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19990 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19991 { (exit 1); exit 1; }; };;
19995 # If the user did not use the arguments to specify the items to instantiate,
19996 # then the envvar interface is used. Set only those that are not.
19997 # We use the long form for the default assignment because of an extremely
19998 # bizarre bug on SunOS 4.1.3.
19999 if $ac_need_defaults; then
20000 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20001 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20002 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20005 # Have a temporary directory for convenience. Make it in the build tree
20006 # simply because there is no reason to put it here, and in addition,
20007 # creating and moving files from /tmp can sometimes cause problems.
20008 # Create a temporary directory, and hook for its removal unless debugging.
20011 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20012 trap '{ (exit 1); exit 1; }' 1 2 13 15
20015 # Create a (secure) tmp directory for tmp files.
20018 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20019 test -n "$tmp" && test -d "$tmp"
20022 tmp=./confstat$$-$RANDOM
20023 (umask 077 && mkdir $tmp)
20026 echo "$me: cannot create a temporary directory in ." >&2
20027 { (exit 1); exit 1; }
20032 cat >>$CONFIG_STATUS <<_ACEOF
20035 # CONFIG_FILES section.
20038 # No need to generate the scripts if there are no CONFIG_FILES.
20039 # This happens for instance when ./config.status config.h
20040 if test -n "\$CONFIG_FILES"; then
20041 # Protect against being on the right side of a sed subst in config.status.
20042 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20043 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20044 s,@SHELL@,$SHELL,;t t
20045 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20046 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20047 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20048 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20049 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20050 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20051 s,@exec_prefix@,$exec_prefix,;t t
20052 s,@prefix@,$prefix,;t t
20053 s,@program_transform_name@,$program_transform_name,;t t
20054 s,@bindir@,$bindir,;t t
20055 s,@sbindir@,$sbindir,;t t
20056 s,@libexecdir@,$libexecdir,;t t
20057 s,@datadir@,$datadir,;t t
20058 s,@sysconfdir@,$sysconfdir,;t t
20059 s,@sharedstatedir@,$sharedstatedir,;t t
20060 s,@localstatedir@,$localstatedir,;t t
20061 s,@libdir@,$libdir,;t t
20062 s,@includedir@,$includedir,;t t
20063 s,@oldincludedir@,$oldincludedir,;t t
20064 s,@infodir@,$infodir,;t t
20065 s,@mandir@,$mandir,;t t
20066 s,@build_alias@,$build_alias,;t t
20067 s,@host_alias@,$host_alias,;t t
20068 s,@target_alias@,$target_alias,;t t
20069 s,@DEFS@,$DEFS,;t t
20070 s,@ECHO_C@,$ECHO_C,;t t
20071 s,@ECHO_N@,$ECHO_N,;t t
20072 s,@ECHO_T@,$ECHO_T,;t t
20073 s,@LIBS@,$LIBS,;t t
20074 s,@BUILD_DIR@,$BUILD_DIR,;t t
20075 s,@TRUEPRG@,$TRUEPRG,;t t
20076 s,@FALSEPRG@,$FALSEPRG,;t t
20077 s,@VERSION@,$VERSION,;t t
20078 s,@DATE@,$DATE,;t t
20079 s,@LSMDATE@,$LSMDATE,;t t
20081 s,@CFLAGS@,$CFLAGS,;t t
20082 s,@LDFLAGS@,$LDFLAGS,;t t
20083 s,@CPPFLAGS@,$CPPFLAGS,;t t
20084 s,@ac_ct_CC@,$ac_ct_CC,;t t
20085 s,@EXEEXT@,$EXEEXT,;t t
20086 s,@OBJEXT@,$OBJEXT,;t t
20088 s,@CXXFLAGS@,$CXXFLAGS,;t t
20089 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20091 s,@EGREP@,$EGREP,;t t
20092 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20093 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20094 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20095 s,@RANLIB@,$RANLIB,;t t
20096 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20102 s,@ECHO@,$ECHO,;t t
20106 s,@OPENSSL@,$OPENSSL,;t t
20108 s,@PKGCONFIG@,$PKGCONFIG,;t t
20109 s,@WXCONFIG@,$WXCONFIG,;t t
20110 s,@CDRECORD@,$CDRECORD,;t t
20111 s,@ARFLAGS@,$ARFLAGS,;t t
20112 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
20113 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
20114 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
20115 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
20116 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
20117 s,@build@,$build,;t t
20118 s,@build_cpu@,$build_cpu,;t t
20119 s,@build_vendor@,$build_vendor,;t t
20120 s,@build_os@,$build_os,;t t
20121 s,@host@,$host,;t t
20122 s,@host_cpu@,$host_cpu,;t t
20123 s,@host_vendor@,$host_vendor,;t t
20124 s,@host_os@,$host_os,;t t
20125 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
20126 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
20127 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
20128 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
20129 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
20130 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
20131 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
20132 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
20133 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
20134 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
20135 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
20136 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
20137 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
20138 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
20139 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
20140 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
20141 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
20142 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
20143 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
20144 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
20145 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
20146 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
20147 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
20148 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
20149 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
20150 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
20151 s,@MSGFMT@,$MSGFMT,;t t
20152 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
20153 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
20154 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
20155 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
20156 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
20157 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
20158 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
20159 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
20160 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
20161 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
20162 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
20163 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
20164 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
20165 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
20166 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
20167 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
20168 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
20169 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
20170 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
20171 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
20172 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
20173 s,@GNOME_DIR@,$GNOME_DIR,;t t
20174 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
20175 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
20176 s,@WX_DIR@,$WX_DIR,;t t
20177 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
20178 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
20179 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
20180 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
20181 s,@STATIC_FD@,$STATIC_FD,;t t
20182 s,@STATIC_SD@,$STATIC_SD,;t t
20183 s,@STATIC_DIR@,$STATIC_DIR,;t t
20184 s,@STATIC_CONS@,$STATIC_CONS,;t t
20185 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
20186 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
20187 s,@ALL_DIRS@,$ALL_DIRS,;t t
20188 s,@CONS_INC@,$CONS_INC,;t t
20189 s,@CONS_OBJ@,$CONS_OBJ,;t t
20190 s,@CONS_SRC@,$CONS_SRC,;t t
20191 s,@CONS_LIBS@,$CONS_LIBS,;t t
20192 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
20193 s,@READLINE_SRC@,$READLINE_SRC,;t t
20194 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
20195 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
20196 s,@CDSTL@,$CDSTL,;t t
20197 s,@working_dir@,$working_dir,;t t
20198 s,@scriptdir@,$scriptdir,;t t
20199 s,@dump_email@,$dump_email,;t t
20200 s,@job_email@,$job_email,;t t
20201 s,@smtp_host@,$smtp_host,;t t
20202 s,@piddir@,$piddir,;t t
20203 s,@subsysdir@,$subsysdir,;t t
20204 s,@baseport@,$baseport,;t t
20205 s,@dir_port@,$dir_port,;t t
20206 s,@fd_port@,$fd_port,;t t
20207 s,@sd_port@,$sd_port,;t t
20208 s,@dir_password@,$dir_password,;t t
20209 s,@fd_password@,$fd_password,;t t
20210 s,@sd_password@,$sd_password,;t t
20211 s,@mon_dir_password@,$mon_dir_password,;t t
20212 s,@mon_fd_password@,$mon_fd_password,;t t
20213 s,@mon_sd_password@,$mon_sd_password,;t t
20214 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
20215 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
20216 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
20217 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
20218 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
20219 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
20220 s,@dir_user@,$dir_user,;t t
20221 s,@dir_group@,$dir_group,;t t
20222 s,@sd_user@,$sd_user,;t t
20223 s,@sd_group@,$sd_group,;t t
20224 s,@fd_user@,$fd_user,;t t
20225 s,@fd_group@,$fd_group,;t t
20226 s,@SBINPERM@,$SBINPERM,;t t
20227 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
20228 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
20229 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
20230 s,@cats@,$cats,;t t
20231 s,@DB_NAME@,$DB_NAME,;t t
20232 s,@GETCONF@,$GETCONF,;t t
20233 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
20234 s,@X_CFLAGS@,$X_CFLAGS,;t t
20235 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20236 s,@X_LIBS@,$X_LIBS,;t t
20237 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20238 s,@LIBOBJS@,$LIBOBJS,;t t
20239 s,@ALLOCA@,$ALLOCA,;t t
20240 s,@FDLIBS@,$FDLIBS,;t t
20241 s,@DEBUG@,$DEBUG,;t t
20242 s,@DINCLUDE@,$DINCLUDE,;t t
20243 s,@DLIB@,$DLIB,;t t
20244 s,@DB_LIBS@,$DB_LIBS,;t t
20245 s,@WCFLAGS@,$WCFLAGS,;t t
20246 s,@WLDFLAGS@,$WLDFLAGS,;t t
20247 s,@OBJLIST@,$OBJLIST,;t t
20248 s,@hostname@,$hostname,;t t
20249 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
20250 s,@PSCMD@,$PSCMD,;t t
20251 s,@WIN32@,$WIN32,;t t
20252 s,@MACOSX@,$MACOSX,;t t
20253 s,@DISTNAME@,$DISTNAME,;t t
20254 s,@DISTVER@,$DISTVER,;t t
20255 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20256 /@MCOMMON@/r $MCOMMON
20262 cat >>$CONFIG_STATUS <<\_ACEOF
20263 # Split the substitutions into bite-sized pieces for seds with
20264 # small command number limits, like on Digital OSF/1 and HP-UX.
20265 ac_max_sed_lines=48
20266 ac_sed_frag=1 # Number of current file.
20267 ac_beg=1 # First line for current file.
20268 ac_end=$ac_max_sed_lines # Line after last line for current file.
20271 while $ac_more_lines; do
20272 if test $ac_beg -gt 1; then
20273 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20275 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20277 if test ! -s $tmp/subs.frag; then
20278 ac_more_lines=false
20280 # The purpose of the label and of the branching condition is to
20281 # speed up the sed processing (if there are no `@' at all, there
20282 # is no need to browse any of the substitutions).
20283 # These are the two extra sed commands mentioned above.
20285 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20286 if test -z "$ac_sed_cmds"; then
20287 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20289 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20291 ac_sed_frag=`expr $ac_sed_frag + 1`
20293 ac_end=`expr $ac_end + $ac_max_sed_lines`
20296 if test -z "$ac_sed_cmds"; then
20299 fi # test -n "$CONFIG_FILES"
20302 cat >>$CONFIG_STATUS <<\_ACEOF
20303 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20304 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20306 - | *:- | *:-:* ) # input from stdin
20308 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20309 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20310 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20311 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20312 * ) ac_file_in=$ac_file.in ;;
20315 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20316 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20317 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20318 X"$ac_file" : 'X\(//\)[^/]' \| \
20319 X"$ac_file" : 'X\(//\)$' \| \
20320 X"$ac_file" : 'X\(/\)' \| \
20321 . : '\(.\)' 2>/dev/null ||
20323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20324 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20325 /^X\(\/\/\)$/{ s//\1/; q; }
20326 /^X\(\/\).*/{ s//\1/; q; }
20328 { if $as_mkdir_p; then
20333 while test ! -d "$as_dir"; do
20334 as_dirs="$as_dir $as_dirs"
20335 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20337 X"$as_dir" : 'X\(//\)[^/]' \| \
20338 X"$as_dir" : 'X\(//\)$' \| \
20339 X"$as_dir" : 'X\(/\)' \| \
20340 . : '\(.\)' 2>/dev/null ||
20342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20343 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20344 /^X\(\/\/\)$/{ s//\1/; q; }
20345 /^X\(\/\).*/{ s//\1/; q; }
20348 test ! -n "$as_dirs" || mkdir $as_dirs
20349 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20350 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20351 { (exit 1); exit 1; }; }; }
20355 if test "$ac_dir" != .; then
20356 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20357 # A "../" for each directory in $ac_dir_suffix.
20358 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20360 ac_dir_suffix= ac_top_builddir=
20364 .) # No --srcdir option. We are building in place.
20366 if test -z "$ac_top_builddir"; then
20369 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20371 [\\/]* | ?:[\\/]* ) # Absolute path.
20372 ac_srcdir=$srcdir$ac_dir_suffix;
20373 ac_top_srcdir=$srcdir ;;
20374 *) # Relative path.
20375 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20376 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20378 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20380 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20381 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20382 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20383 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20387 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20388 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20391 if test x"$ac_file" != x-; then
20392 { echo "$as_me:$LINENO: creating $ac_file" >&5
20393 echo "$as_me: creating $ac_file" >&6;}
20396 # Let's still pretend it is `configure' which instantiates (i.e., don't
20397 # use $as_me), people would be surprised to read:
20398 # /* config.h. Generated by config.status. */
20399 if test x"$ac_file" = x-; then
20402 configure_input="$ac_file. "
20404 configure_input=$configure_input"Generated from `echo $ac_file_in |
20405 sed 's,.*/,,'` by configure."
20407 # First look for the input files in the build tree, otherwise in the
20409 ac_file_inputs=`IFS=:
20410 for f in $ac_file_in; do
20412 -) echo $tmp/stdin ;;
20414 # Absolute (can't be DOS-style, as IFS=:)
20415 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20416 echo "$as_me: error: cannot find input file: $f" >&2;}
20417 { (exit 1); exit 1; }; }
20420 if test -f "$f"; then
20423 elif test -f "$srcdir/$f"; then
20428 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20429 echo "$as_me: error: cannot find input file: $f" >&2;}
20430 { (exit 1); exit 1; }; }
20433 done` || { (exit 1); exit 1; }
20435 cat >>$CONFIG_STATUS <<_ACEOF
20439 cat >>$CONFIG_STATUS <<\_ACEOF
20441 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20442 s,@configure_input@,$configure_input,;t t
20443 s,@srcdir@,$ac_srcdir,;t t
20444 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20445 s,@top_srcdir@,$ac_top_srcdir,;t t
20446 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20447 s,@builddir@,$ac_builddir,;t t
20448 s,@abs_builddir@,$ac_abs_builddir,;t t
20449 s,@top_builddir@,$ac_top_builddir,;t t
20450 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20451 s,@INSTALL@,$ac_INSTALL,;t t
20452 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20454 if test x"$ac_file" != x-; then
20455 mv $tmp/out $ac_file
20463 cat >>$CONFIG_STATUS <<\_ACEOF
20466 # CONFIG_HEADER section.
20469 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20470 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20472 # ac_d sets the value in "#define NAME VALUE" lines.
20473 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20474 ac_dB='[ ].*$,\1#\2'
20477 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20478 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20479 ac_uB='$,\1#\2define\3'
20483 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20484 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20486 - | *:- | *:-:* ) # input from stdin
20488 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20489 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20490 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20491 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20492 * ) ac_file_in=$ac_file.in ;;
20495 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20496 echo "$as_me: creating $ac_file" >&6;}
20498 # First look for the input files in the build tree, otherwise in the
20500 ac_file_inputs=`IFS=:
20501 for f in $ac_file_in; do
20503 -) echo $tmp/stdin ;;
20505 # Absolute (can't be DOS-style, as IFS=:)
20506 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20507 echo "$as_me: error: cannot find input file: $f" >&2;}
20508 { (exit 1); exit 1; }; }
20511 if test -f "$f"; then
20514 elif test -f "$srcdir/$f"; then
20519 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20520 echo "$as_me: error: cannot find input file: $f" >&2;}
20521 { (exit 1); exit 1; }; }
20524 done` || { (exit 1); exit 1; }
20525 # Remove the trailing spaces.
20526 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20530 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20531 # `conftest.undefs', that substitutes the proper values into
20532 # config.h.in to produce config.h. The first handles `#define'
20533 # templates, and the second `#undef' templates.
20534 # And first: Protect against being on the right side of a sed subst in
20535 # config.status. Protect against being in an unquoted here document
20536 # in config.status.
20537 rm -f conftest.defines conftest.undefs
20538 # Using a here document instead of a string reduces the quoting nightmare.
20539 # Putting comments in sed scripts is not portable.
20541 # `end' is used to avoid that the second main sed command (meant for
20542 # 0-ary CPP macros) applies to n-ary macro definitions.
20543 # See the Autoconf documentation for `clear'.
20544 cat >confdef2sed.sed <<\_ACEOF
20549 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20551 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20554 # If some macros were called several times there might be several times
20555 # the same #defines, which is useless. Nevertheless, we may not want to
20556 # sort them, since we want the *last* AC-DEFINE to be honored.
20557 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20558 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20559 rm -f confdef2sed.sed
20561 # This sed command replaces #undef with comments. This is necessary, for
20562 # example, in the case of _POSIX_SOURCE, which is predefined and required
20563 # on some systems where configure will not decide to define it.
20564 cat >>conftest.undefs <<\_ACEOF
20565 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20568 # Break up conftest.defines because some shells have a limit on the size
20569 # of here documents, and old seds have small limits too (100 cmds).
20570 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20571 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20572 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20573 echo ' :' >>$CONFIG_STATUS
20574 rm -f conftest.tail
20575 while grep . conftest.defines >/dev/null
20577 # Write a limited-size here document to $tmp/defines.sed.
20578 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20579 # Speed up: don't consider the non `#define' lines.
20580 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20581 # Work around the forget-to-reset-the-flag bug.
20582 echo 't clr' >>$CONFIG_STATUS
20583 echo ': clr' >>$CONFIG_STATUS
20584 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20586 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20588 mv $tmp/out $tmp/in
20590 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20591 rm -f conftest.defines
20592 mv conftest.tail conftest.defines
20594 rm -f conftest.defines
20595 echo ' fi # grep' >>$CONFIG_STATUS
20596 echo >>$CONFIG_STATUS
20598 # Break up conftest.undefs because some shells have a limit on the size
20599 # of here documents, and old seds have small limits too (100 cmds).
20600 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20601 rm -f conftest.tail
20602 while grep . conftest.undefs >/dev/null
20604 # Write a limited-size here document to $tmp/undefs.sed.
20605 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20606 # Speed up: don't consider the non `#undef'
20607 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20608 # Work around the forget-to-reset-the-flag bug.
20609 echo 't clr' >>$CONFIG_STATUS
20610 echo ': clr' >>$CONFIG_STATUS
20611 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20613 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20615 mv $tmp/out $tmp/in
20617 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20618 rm -f conftest.undefs
20619 mv conftest.tail conftest.undefs
20621 rm -f conftest.undefs
20623 cat >>$CONFIG_STATUS <<\_ACEOF
20624 # Let's still pretend it is `configure' which instantiates (i.e., don't
20625 # use $as_me), people would be surprised to read:
20626 # /* config.h. Generated by config.status. */
20627 if test x"$ac_file" = x-; then
20628 echo "/* Generated by configure. */" >$tmp/config.h
20630 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20632 cat $tmp/in >>$tmp/config.h
20634 if test x"$ac_file" != x-; then
20635 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20636 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20637 echo "$as_me: $ac_file is unchanged" >&6;}
20639 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20640 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20641 X"$ac_file" : 'X\(//\)[^/]' \| \
20642 X"$ac_file" : 'X\(//\)$' \| \
20643 X"$ac_file" : 'X\(/\)' \| \
20644 . : '\(.\)' 2>/dev/null ||
20646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20648 /^X\(\/\/\)$/{ s//\1/; q; }
20649 /^X\(\/\).*/{ s//\1/; q; }
20651 { if $as_mkdir_p; then
20656 while test ! -d "$as_dir"; do
20657 as_dirs="$as_dir $as_dirs"
20658 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20659 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20660 X"$as_dir" : 'X\(//\)[^/]' \| \
20661 X"$as_dir" : 'X\(//\)$' \| \
20662 X"$as_dir" : 'X\(/\)' \| \
20663 . : '\(.\)' 2>/dev/null ||
20665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20667 /^X\(\/\/\)$/{ s//\1/; q; }
20668 /^X\(\/\).*/{ s//\1/; q; }
20671 test ! -n "$as_dirs" || mkdir $as_dirs
20672 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20673 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20674 { (exit 1); exit 1; }; }; }
20677 mv $tmp/config.h $ac_file
20681 rm -f $tmp/config.h
20685 cat >>$CONFIG_STATUS <<\_ACEOF
20688 # CONFIG_COMMANDS section.
20690 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20691 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20692 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20693 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20694 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20695 X"$ac_dest" : 'X\(//\)[^/]' \| \
20696 X"$ac_dest" : 'X\(//\)$' \| \
20697 X"$ac_dest" : 'X\(/\)' \| \
20698 . : '\(.\)' 2>/dev/null ||
20700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20702 /^X\(\/\/\)$/{ s//\1/; q; }
20703 /^X\(\/\).*/{ s//\1/; q; }
20707 if test "$ac_dir" != .; then
20708 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20709 # A "../" for each directory in $ac_dir_suffix.
20710 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20712 ac_dir_suffix= ac_top_builddir=
20716 .) # No --srcdir option. We are building in place.
20718 if test -z "$ac_top_builddir"; then
20721 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20723 [\\/]* | ?:[\\/]* ) # Absolute path.
20724 ac_srcdir=$srcdir$ac_dir_suffix;
20725 ac_top_srcdir=$srcdir ;;
20726 *) # Relative path.
20727 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20728 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20730 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20732 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20733 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20734 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20735 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20738 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20739 echo "$as_me: executing $ac_dest commands" >&6;}
20741 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20747 cat >>$CONFIG_STATUS <<\_ACEOF
20749 { (exit 0); exit 0; }
20751 chmod +x $CONFIG_STATUS
20752 ac_clean_files=$ac_clean_files_save
20755 # configure is writing to config.log, and then calls config.status.
20756 # config.status does its own redirection, appending to config.log.
20757 # Unfortunately, on DOS this fails, as config.log is still kept open
20758 # by configure, so config.status won't be able to write to it; its
20759 # output is simply discarded. So we exec the FD to /dev/null,
20760 # effectively closing config.log, so it can be properly (re)opened and
20761 # appended to by config.status. When coming back to configure, we
20762 # need to make the FD available again.
20763 if test "$no_create" != yes; then
20765 ac_config_status_args=
20766 test "$silent" = yes &&
20767 ac_config_status_args="$ac_config_status_args --quiet"
20769 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20771 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20772 # would make configure fail if this is the last instruction.
20773 $ac_cs_success || { (exit 1); exit 1; }
20778 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20779 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20784 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
20785 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
20787 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
20788 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
20790 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
20791 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
20793 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
20794 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
20796 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
20797 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
20799 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20800 chmod 755 $c/sqlite
20803 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20804 largefile_support="yes"
20808 # A whole lot of hand springs to get the compiler version.
20809 # This is because gcc changed the output in version 3.0
20811 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20812 if test "x${CCVERSION}" = "x" ; then
20813 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20815 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20816 if test x"${CXXVERSION}" = x ; then
20817 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20820 if test "x${subsysdir}" = "x${sbindir}" ; then
20823 echo "You have set --sbindir and --with-subsys-dir"
20824 echo " both equal to: ${subsysdir} "
20825 echo " This is not permitted. Please reconfigure."
20827 echo "Aborting configuration ..."
20833 if test "x${db_name}" = "xInternal" ; then
20836 echo "You have not specified either --enable-client-only or one of the"
20837 echo " supported databases: MySQL, PostgreSQL, or SQLite".
20838 echo " This is not permitted. Please reconfigure."
20840 echo "Aborting the configuration ..."
20847 Configuration on `date`:
20849 Host: $host -- ${DISTNAME} ${DISTVER}
20850 Bacula version: ${VERSION} (${DATE})
20851 Source code location: ${srcdir}
20852 Install binaries: ${sbindir}
20853 Install config files: ${sysconfdir}
20854 Scripts directory: ${scriptdir}
20855 Working directory: ${working_dir}
20856 PID directory: ${piddir}
20857 Subsys directory: ${subsysdir}
20858 C Compiler: ${CC} ${CCVERSION}
20859 C++ Compiler: ${CXX} ${CXXVERSION}
20860 Compiler flags: ${WCFLAGS} ${CFLAGS}
20861 Linker flags: ${WLDFLAGS} ${LDFLAGS}
20863 Statically Linked Tools: ${support_static_tools}
20864 Statically Linked FD: ${support_static_fd}
20865 Statically Linked SD: ${support_static_sd}
20866 Statically Linked DIR: ${support_static_dir}
20867 Statically Linked CONS: ${support_static_cons}
20868 Database type: ${db_name}
20869 Database lib: ${DB_LIBS}
20871 Job Output Email: ${job_email}
20872 Traceback Email: ${dump_email}
20873 SMTP Host Address: ${smtp_host}
20875 Director Port: ${dir_port}
20876 File daemon Port: ${fd_port}
20877 Storage daemon Port: ${sd_port}
20879 Director User: ${dir_user}
20880 Director Group: ${dir_group}
20881 Storage Daemon User: ${sd_user}
20882 Storage DaemonGroup: ${sd_group}
20883 File Daemon User: ${fd_user}
20884 File Daemon Group: ${fd_group}
20886 SQL binaries Directory ${SQL_BINDIR}
20888 Large file support: $largefile_support
20889 Bacula conio support: ${got_conio} ${CONS_LIBS}
20890 readline support: ${got_readline} ${PRTREADLINE_SRC}
20891 TCP Wrappers support: ${TCPW_MSG}
20892 ZLIB support: ${have_zlib}
20893 enable-smartalloc: ${support_smartalloc}
20894 enable-gnome: ${support_gnome} ${gnome_version}
20895 enable-wx-console: ${support_wx_console}
20896 enable-tray-monitor: ${support_tray_monitor}
20897 client-only: ${build_client_only}
20898 ACL support: ${have_acl}
20899 Python support: ${support_python} ${PYTHON_LIBS}
20906 # cweb support: ${got_cweb} ${CWEB_SRC}
20907 # gmp support: ${got_gmp} ${GMP_SRC}