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 ECHO CMP TBL AR OPENSSL MTX MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG CDRECORD PIDOF AWK 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 OPENSSL_LIBS OPENSSL_INC 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
887 Include OpenSSL support. DIR is the OpenSSL base
888 --with-working-dir=PATH specify path of Bacula working directory
889 --with-scriptdir=PATH specify path of Bacula scripts directory
890 --with-dump-email=EMAIL dump email address
891 --with-job-email=EMAIL job output email address
892 --with-smtp-host=HOST SMTP mail host address
893 --with-pid-dir=PATH specify location of Bacula pid files
894 --with-subsys-dir=PATH specify location of Bacula subsys file
895 --with-baseport=PORT specify base port address for daemons
896 --with-dir-password=PASSWORD specify Director's password
897 --with-fd-password=PASSWORD specify Client's password
898 --with-sd-password=PASSWORD specify Storage daemon's password
899 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
900 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
901 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
902 --with-bimagemgr-cgidir=DIR specify bimagemgr cgi-bin dir
903 --with-bimagemgr-docdir=DIR specify bimagemgr doc root dir
904 --with-bimagemgr-binowner=USER specify bimagemgr binary file owner
905 --with-bimagemgr-bingroup=USER specify bimagemgr binary file group
906 --with-bimagemgr-dataowner=USER specify bimagemgr data file owner
907 --with-bimagemgr-datagroup=USER specify bimagemgr data file group
908 --with-dir-user=USER specify user for Director daemon
909 --with-dir-group=GROUP specify group for Director daemon
910 --with-sd-user=USER specify user for Storage daemon
911 --with-sd-group=GROUP specify group for Storage daemon
912 --with-fd-user=USER specify user for File daemon
913 --with-fd-group=GROUP specify group for File daemon
914 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
915 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
916 base install directory, defaults to /usr/local/pgsql
918 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
919 install directory, default is to search through
920 a number of common places for the MySQL files.
922 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
923 install directory, default is to search through
924 a number of common places for the MySQL files.
926 --with-sqlite3=DIR Include SQLite3 support. DIR is the SQLite3 base
927 install directory, default is to search through
928 a number of common places for the SQLite3 files.
930 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
931 install directory, default is to search through
932 a number of common places for the SQLite files.
933 --with-x use the X Window System
935 Some influential environment variables:
936 CC C compiler command
937 CFLAGS C compiler flags
938 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
939 nonstandard directory <lib dir>
940 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
941 headers in a nonstandard directory <include dir>
942 CXX C++ compiler command
943 CXXFLAGS C++ compiler flags
946 Use these variables to override the choices made by `configure' or to help
947 it to find libraries and programs with nonstandard names/locations.
952 if test "$ac_init_help" = "recursive"; then
953 # If there are subdirs, report their specific --help.
955 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
956 test -d $ac_dir || continue
959 if test "$ac_dir" != .; then
960 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
961 # A "../" for each directory in $ac_dir_suffix.
962 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
964 ac_dir_suffix= ac_top_builddir=
968 .) # No --srcdir option. We are building in place.
970 if test -z "$ac_top_builddir"; then
973 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
975 [\\/]* | ?:[\\/]* ) # Absolute path.
976 ac_srcdir=$srcdir$ac_dir_suffix;
977 ac_top_srcdir=$srcdir ;;
979 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
980 ac_top_srcdir=$ac_top_builddir$srcdir ;;
982 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
984 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
985 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
986 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
987 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
990 # Check for guested configure; otherwise get Cygnus style configure.
991 if test -f $ac_srcdir/configure.gnu; then
993 $SHELL $ac_srcdir/configure.gnu --help=recursive
994 elif test -f $ac_srcdir/configure; then
996 $SHELL $ac_srcdir/configure --help=recursive
997 elif test -f $ac_srcdir/configure.ac ||
998 test -f $ac_srcdir/configure.in; then
1000 $ac_configure --help
1002 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1008 test -n "$ac_init_help" && exit 0
1009 if $ac_init_version; then
1012 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1013 Free Software Foundation, Inc.
1014 This configure script is free software; the Free Software Foundation
1015 gives unlimited permission to copy, distribute and modify it.
1021 This file contains any messages produced by compilers while
1022 running configure, to aid debugging if configure makes a mistake.
1024 It was created by $as_me, which was
1025 generated by GNU Autoconf 2.57. Invocation command line was
1036 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1037 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1038 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1039 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1040 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1042 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1043 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1045 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1046 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1047 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1048 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1049 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1050 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1051 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1059 test -z "$as_dir" && as_dir=.
1060 echo "PATH: $as_dir"
1075 # Keep a trace of the command line.
1076 # Strip out --no-create and --no-recursion so they do not pile up.
1077 # Strip out --silent because we don't want to record it for future runs.
1078 # Also quote any args containing shell meta-characters.
1079 # Make two passes to allow for proper duplicate-argument suppression.
1084 ac_must_keep_next=false
1090 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1094 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1095 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1098 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1100 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1101 if test $ac_must_keep_next = true; then
1102 ac_must_keep_next=false # Got value, back to normal.
1105 *=* | --config-cache | -C | -disable-* | --disable-* \
1106 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1107 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1108 | -with-* | --with-* | -without-* | --without-* | --x)
1109 case "$ac_configure_args0 " in
1110 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1113 -* ) ac_must_keep_next=true ;;
1116 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1117 # Get rid of the leading space.
1123 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1124 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1126 # When interrupted or exit'd, cleanup temporary files, and complete
1127 # config.log. We remove comments because anyway the quotes in there
1128 # would cause problems or look ugly.
1129 # WARNING: Be sure not to use single quotes in there, as some shells,
1130 # such as our DU 5.0 friend, will then `close' the trap.
1131 trap 'exit_status=$?
1132 # Save into config.log some information that might help in debugging.
1137 ## ---------------- ##
1138 ## Cache variables. ##
1139 ## ---------------- ##
1142 # The following way of writing the cache mishandles newlines in values,
1145 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1148 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1153 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1160 ## ----------------- ##
1161 ## Output variables. ##
1162 ## ----------------- ##
1165 for ac_var in $ac_subst_vars
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1172 if test -n "$ac_subst_files"; then
1179 for ac_var in $ac_subst_files
1181 eval ac_val=$`echo $ac_var`
1182 echo "$ac_var='"'"'$ac_val'"'"'"
1187 if test -s confdefs.h; then
1194 sed "/^$/d" confdefs.h | sort
1197 test "$ac_signal" != 0 &&
1198 echo "$as_me: caught signal $ac_signal"
1199 echo "$as_me: exit $exit_status"
1201 rm -f core core.* *.core &&
1202 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1205 for ac_signal in 1 2 13 15; do
1206 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1210 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1211 rm -rf conftest* confdefs.h
1212 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1215 # Predefined preprocessor variables.
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_NAME "$PACKAGE_NAME"
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_STRING "$PACKAGE_STRING"
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1242 # Let the site file select an alternate cache file if it wants to.
1243 # Prefer explicitly selected file to automatically selected ones.
1244 if test -z "$CONFIG_SITE"; then
1245 if test "x$prefix" != xNONE; then
1246 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1248 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1251 for ac_site_file in $CONFIG_SITE; do
1252 if test -r "$ac_site_file"; then
1253 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1254 echo "$as_me: loading site script $ac_site_file" >&6;}
1255 sed 's/^/| /' "$ac_site_file" >&5
1260 if test -r "$cache_file"; then
1261 # Some versions of bash will fail to source /dev/null (special
1262 # files actually), so we avoid doing that.
1263 if test -f "$cache_file"; then
1264 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1265 echo "$as_me: loading cache $cache_file" >&6;}
1267 [\\/]* | ?:[\\/]* ) . $cache_file;;
1268 *) . ./$cache_file;;
1272 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1273 echo "$as_me: creating cache $cache_file" >&6;}
1277 # Check that the precious variables saved in the cache have kept the same
1279 ac_cache_corrupted=false
1280 for ac_var in `(set) 2>&1 |
1281 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1283 eval ac_new_set=\$ac_env_${ac_var}_set
1284 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1285 eval ac_new_val="\$ac_env_${ac_var}_value"
1286 case $ac_old_set,$ac_new_set in
1288 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1289 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1290 ac_cache_corrupted=: ;;
1292 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1293 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1294 ac_cache_corrupted=: ;;
1297 if test "x$ac_old_val" != "x$ac_new_val"; then
1298 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1299 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1300 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1301 echo "$as_me: former value: $ac_old_val" >&2;}
1302 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1303 echo "$as_me: current value: $ac_new_val" >&2;}
1304 ac_cache_corrupted=:
1307 # Pass precious variables to config.status.
1308 if test "$ac_new_set" = set; then
1310 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1311 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1312 *) ac_arg=$ac_var=$ac_new_val ;;
1314 case " $ac_configure_args " in
1315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1316 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1320 if $ac_cache_corrupted; then
1321 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1322 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1323 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1324 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1325 { (exit 1); exit 1; }; }
1329 ac_cpp='$CPP $CPPFLAGS'
1330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1358 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1359 if test -f $ac_dir/install-sh; then
1361 ac_install_sh="$ac_aux_dir/install-sh -c"
1363 elif test -f $ac_dir/install.sh; then
1365 ac_install_sh="$ac_aux_dir/install.sh -c"
1367 elif test -f $ac_dir/shtool; then
1369 ac_install_sh="$ac_aux_dir/shtool install -c"
1373 if test -z "$ac_aux_dir"; then
1374 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1375 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1376 { (exit 1); exit 1; }; }
1378 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1379 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1380 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1382 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1390 # Extract the first word of "$ac_prog", so it can be a program name with args.
1391 set dummy $ac_prog; ac_word=$2
1392 echo "$as_me:$LINENO: checking for $ac_word" >&5
1393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1394 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1395 echo $ECHO_N "(cached) $ECHO_C" >&6
1399 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406 test -z "$as_dir" && as_dir=.
1407 for ac_exec_ext in '' $ac_executable_extensions; do
1408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1409 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1419 TRUEPRG=$ac_cv_path_TRUEPRG
1421 if test -n "$TRUEPRG"; then
1422 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1423 echo "${ECHO_T}$TRUEPRG" >&6
1425 echo "$as_me:$LINENO: result: no" >&5
1426 echo "${ECHO_T}no" >&6
1429 test -n "$TRUEPRG" && break
1431 test -n "$TRUEPRG" || TRUEPRG=":"
1433 for ac_prog in false
1435 # Extract the first word of "$ac_prog", so it can be a program name with args.
1436 set dummy $ac_prog; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 test -z "$as_dir" && as_dir=.
1452 for ac_exec_ext in '' $ac_executable_extensions; do
1453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1464 FALSEPRG=$ac_cv_path_FALSEPRG
1466 if test -n "$FALSEPRG"; then
1467 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1468 echo "${ECHO_T}$FALSEPRG" >&6
1470 echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1474 test -n "$FALSEPRG" && break
1476 test -n "$FALSEPRG" || FALSEPRG=":"
1481 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1482 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1483 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1484 echo "configuring for bacula $VERSION ($DATE)"
1489 ac_cpp='$CPP $CPPFLAGS'
1490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1493 if test -n "$ac_tool_prefix"; then
1494 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1495 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1496 echo "$as_me:$LINENO: checking for $ac_word" >&5
1497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498 if test "${ac_cv_prog_CC+set}" = set; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1501 if test -n "$CC"; then
1502 ac_cv_prog_CC="$CC" # Let the user override the test.
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 test -z "$as_dir" && as_dir=.
1509 for ac_exec_ext in '' $ac_executable_extensions; do
1510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1521 if test -n "$CC"; then
1522 echo "$as_me:$LINENO: result: $CC" >&5
1523 echo "${ECHO_T}$CC" >&6
1525 echo "$as_me:$LINENO: result: no" >&5
1526 echo "${ECHO_T}no" >&6
1530 if test -z "$ac_cv_prog_CC"; then
1532 # Extract the first word of "gcc", so it can be a program name with args.
1533 set dummy gcc; ac_word=$2
1534 echo "$as_me:$LINENO: checking for $ac_word" >&5
1535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1536 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1539 if test -n "$ac_ct_CC"; then
1540 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546 test -z "$as_dir" && as_dir=.
1547 for ac_exec_ext in '' $ac_executable_extensions; do
1548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1549 ac_cv_prog_ac_ct_CC="gcc"
1550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1559 if test -n "$ac_ct_CC"; then
1560 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1561 echo "${ECHO_T}$ac_ct_CC" >&6
1563 echo "$as_me:$LINENO: result: no" >&5
1564 echo "${ECHO_T}no" >&6
1572 if test -z "$CC"; then
1573 if test -n "$ac_tool_prefix"; then
1574 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1575 set dummy ${ac_tool_prefix}cc; ac_word=$2
1576 echo "$as_me:$LINENO: checking for $ac_word" >&5
1577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1578 if test "${ac_cv_prog_CC+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1581 if test -n "$CC"; then
1582 ac_cv_prog_CC="$CC" # Let the user override the test.
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir=.
1589 for ac_exec_ext in '' $ac_executable_extensions; do
1590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591 ac_cv_prog_CC="${ac_tool_prefix}cc"
1592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601 if test -n "$CC"; then
1602 echo "$as_me:$LINENO: result: $CC" >&5
1603 echo "${ECHO_T}$CC" >&6
1605 echo "$as_me:$LINENO: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1610 if test -z "$ac_cv_prog_CC"; then
1612 # Extract the first word of "cc", so it can be a program name with args.
1613 set dummy cc; ac_word=$2
1614 echo "$as_me:$LINENO: checking for $ac_word" >&5
1615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1616 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 if test -n "$ac_ct_CC"; then
1620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 test -z "$as_dir" && as_dir=.
1627 for ac_exec_ext in '' $ac_executable_extensions; do
1628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1629 ac_cv_prog_ac_ct_CC="cc"
1630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1639 if test -n "$ac_ct_CC"; then
1640 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1641 echo "${ECHO_T}$ac_ct_CC" >&6
1643 echo "$as_me:$LINENO: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1653 if test -z "$CC"; then
1654 # Extract the first word of "cc", so it can be a program name with args.
1655 set dummy cc; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_CC+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 if test -n "$CC"; then
1662 ac_cv_prog_CC="$CC" # Let the user override the test.
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 test -z "$as_dir" && as_dir=.
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1673 ac_prog_rejected=yes
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683 if test $ac_prog_rejected = yes; then
1684 # We found a bogon in the path, so make sure we never use it.
1685 set dummy $ac_cv_prog_CC
1687 if test $# != 0; then
1688 # We chose a different compiler from the bogus one.
1689 # However, it has the same basename, so the bogon will be chosen
1690 # first if we set CC to just the basename; use the full file name.
1692 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1698 if test -n "$CC"; then
1699 echo "$as_me:$LINENO: result: $CC" >&5
1700 echo "${ECHO_T}$CC" >&6
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1707 if test -z "$CC"; then
1708 if test -n "$ac_tool_prefix"; then
1711 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1712 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1713 echo "$as_me:$LINENO: checking for $ac_word" >&5
1714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715 if test "${ac_cv_prog_CC+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1718 if test -n "$CC"; then
1719 ac_cv_prog_CC="$CC" # Let the user override the test.
1721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725 test -z "$as_dir" && as_dir=.
1726 for ac_exec_ext in '' $ac_executable_extensions; do
1727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738 if test -n "$CC"; then
1739 echo "$as_me:$LINENO: result: $CC" >&5
1740 echo "${ECHO_T}$CC" >&6
1742 echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1746 test -n "$CC" && break
1749 if test -z "$CC"; then
1753 # Extract the first word of "$ac_prog", so it can be a program name with args.
1754 set dummy $ac_prog; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 if test -n "$ac_ct_CC"; then
1761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 test -z "$as_dir" && as_dir=.
1768 for ac_exec_ext in '' $ac_executable_extensions; do
1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770 ac_cv_prog_ac_ct_CC="$ac_prog"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1780 if test -n "$ac_ct_CC"; then
1781 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1782 echo "${ECHO_T}$ac_ct_CC" >&6
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1788 test -n "$ac_ct_CC" && break
1797 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1798 See \`config.log' for more details." >&5
1799 echo "$as_me: error: no acceptable C compiler found in \$PATH
1800 See \`config.log' for more details." >&2;}
1801 { (exit 1); exit 1; }; }
1803 # Provide some information about the compiler.
1804 echo "$as_me:$LINENO:" \
1805 "checking for C compiler version" >&5
1806 ac_compiler=`set X $ac_compile; echo $2`
1807 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1808 (eval $ac_compiler --version </dev/null >&5) 2>&5
1810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1811 (exit $ac_status); }
1812 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1813 (eval $ac_compiler -v </dev/null >&5) 2>&5
1815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1816 (exit $ac_status); }
1817 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1818 (eval $ac_compiler -V </dev/null >&5) 2>&5
1820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821 (exit $ac_status); }
1823 cat >conftest.$ac_ext <<_ACEOF
1824 #line $LINENO "configure"
1827 cat confdefs.h >>conftest.$ac_ext
1828 cat >>conftest.$ac_ext <<_ACEOF
1829 /* end confdefs.h. */
1839 ac_clean_files_save=$ac_clean_files
1840 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1841 # Try to create an executable without -o first, disregard a.out.
1842 # It will help us diagnose broken compilers, and finding out an intuition
1844 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1845 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1846 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1847 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1848 (eval $ac_link_default) 2>&5
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; then
1852 # Find the output, starting from the most likely. This scheme is
1853 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1856 # Be careful to initialize this variable, since it used to be cached.
1857 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1859 # b.out is created by i960 compilers.
1860 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1862 test -f "$ac_file" || continue
1864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1867 # This is the source file.
1870 # We found the default executable, but exeext='' is most
1874 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1875 # FIXME: I believe we export ac_cv_exeext for Libtool,
1876 # but it would be cool to find out if it's true. Does anybody
1877 # maintain Libtool? --akim.
1885 echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1888 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1889 See \`config.log' for more details." >&5
1890 echo "$as_me: error: C compiler cannot create executables
1891 See \`config.log' for more details." >&2;}
1892 { (exit 77); exit 77; }; }
1895 ac_exeext=$ac_cv_exeext
1896 echo "$as_me:$LINENO: result: $ac_file" >&5
1897 echo "${ECHO_T}$ac_file" >&6
1899 # Check the compiler produces executables we can run. If not, either
1900 # the compiler is broken, or we cross compile.
1901 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1902 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1903 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1904 # If not cross compiling, check that we can run a simple program.
1905 if test "$cross_compiling" != yes; then
1906 if { ac_try='./$ac_file'
1907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1911 (exit $ac_status); }; }; then
1914 if test "$cross_compiling" = maybe; then
1917 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1918 If you meant to cross compile, use \`--host'.
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: cannot run C compiled programs.
1921 If you meant to cross compile, use \`--host'.
1922 See \`config.log' for more details." >&2;}
1923 { (exit 1); exit 1; }; }
1927 echo "$as_me:$LINENO: result: yes" >&5
1928 echo "${ECHO_T}yes" >&6
1930 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1931 ac_clean_files=$ac_clean_files_save
1932 # Check the compiler produces executables we can run. If not, either
1933 # the compiler is broken, or we cross compile.
1934 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1935 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1936 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1937 echo "${ECHO_T}$cross_compiling" >&6
1939 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1940 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1942 (eval $ac_link) 2>&5
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; then
1946 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1947 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1948 # work properly (i.e., refer to `conftest.exe'), while it won't with
1950 for ac_file in conftest.exe conftest conftest.*; do
1951 test -f "$ac_file" || continue
1953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1954 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1961 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1962 See \`config.log' for more details." >&5
1963 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1964 See \`config.log' for more details." >&2;}
1965 { (exit 1); exit 1; }; }
1968 rm -f conftest$ac_cv_exeext
1969 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1970 echo "${ECHO_T}$ac_cv_exeext" >&6
1972 rm -f conftest.$ac_ext
1973 EXEEXT=$ac_cv_exeext
1975 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1976 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1977 if test "${ac_cv_objext+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 cat >conftest.$ac_ext <<_ACEOF
1981 #line $LINENO "configure"
1984 cat confdefs.h >>conftest.$ac_ext
1985 cat >>conftest.$ac_ext <<_ACEOF
1986 /* end confdefs.h. */
1996 rm -f conftest.o conftest.obj
1997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1998 (eval $ac_compile) 2>&5
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }; then
2002 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2005 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2010 echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2013 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2014 See \`config.log' for more details." >&5
2015 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2016 See \`config.log' for more details." >&2;}
2017 { (exit 1); exit 1; }; }
2020 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2022 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2023 echo "${ECHO_T}$ac_cv_objext" >&6
2024 OBJEXT=$ac_cv_objext
2026 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2027 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2028 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 cat >conftest.$ac_ext <<_ACEOF
2032 #line $LINENO "configure"
2035 cat confdefs.h >>conftest.$ac_ext
2036 cat >>conftest.$ac_ext <<_ACEOF
2037 /* end confdefs.h. */
2050 rm -f conftest.$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); } &&
2056 { ac_try='test -s conftest.$ac_objext'
2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; }; then
2064 echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.$ac_ext >&5
2069 rm -f conftest.$ac_objext conftest.$ac_ext
2070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2073 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2074 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2075 GCC=`test $ac_compiler_gnu = yes && echo yes`
2076 ac_test_CFLAGS=${CFLAGS+set}
2077 ac_save_CFLAGS=$CFLAGS
2079 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2080 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2081 if test "${ac_cv_prog_cc_g+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 cat >conftest.$ac_ext <<_ACEOF
2085 #line $LINENO "configure"
2088 cat confdefs.h >>conftest.$ac_ext
2089 cat >>conftest.$ac_ext <<_ACEOF
2090 /* end confdefs.h. */
2100 rm -f conftest.$ac_objext
2101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2102 (eval $ac_compile) 2>&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); } &&
2106 { ac_try='test -s conftest.$ac_objext'
2107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }; }; then
2114 echo "$as_me: failed program was:" >&5
2115 sed 's/^/| /' conftest.$ac_ext >&5
2119 rm -f conftest.$ac_objext conftest.$ac_ext
2121 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2122 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2123 if test "$ac_test_CFLAGS" = set; then
2124 CFLAGS=$ac_save_CFLAGS
2125 elif test $ac_cv_prog_cc_g = yes; then
2126 if test "$GCC" = yes; then
2132 if test "$GCC" = yes; then
2138 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2139 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2140 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 ac_cv_prog_cc_stdc=no
2145 cat >conftest.$ac_ext <<_ACEOF
2146 #line $LINENO "configure"
2149 cat confdefs.h >>conftest.$ac_ext
2150 cat >>conftest.$ac_ext <<_ACEOF
2151 /* end confdefs.h. */
2154 #include <sys/types.h>
2155 #include <sys/stat.h>
2156 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2157 struct buf { int x; };
2158 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2159 static char *e (p, i)
2165 static char *f (char * (*g) (char **, int), char **p, ...)
2170 s = g (p, va_arg (v,int));
2174 int test (int i, double x);
2175 struct s1 {int (*f) (int a);};
2176 struct s2 {int (*f) (double a);};
2177 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2183 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2188 # Don't try gcc -ansi; that turns off useful extensions and
2189 # breaks some systems' header files.
2190 # AIX -qlanglvl=ansi
2191 # Ultrix and OSF/1 -std1
2192 # HP-UX 10.20 and later -Ae
2193 # HP-UX older versions -Aa -D_HPUX_SOURCE
2194 # SVR4 -Xc -D__EXTENSIONS__
2195 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2197 CC="$ac_save_CC $ac_arg"
2198 rm -f conftest.$ac_objext
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); } &&
2204 { ac_try='test -s conftest.$ac_objext'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; }; then
2210 ac_cv_prog_cc_stdc=$ac_arg
2213 echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2217 rm -f conftest.$ac_objext
2219 rm -f conftest.$ac_ext conftest.$ac_objext
2224 case "x$ac_cv_prog_cc_stdc" in
2226 echo "$as_me:$LINENO: result: none needed" >&5
2227 echo "${ECHO_T}none needed" >&6 ;;
2229 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2230 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2231 CC="$CC $ac_cv_prog_cc_stdc" ;;
2234 # Some people use a C++ compiler to compile C. Since we use `exit',
2235 # in C++ we need to declare it. In case someone uses the same compiler
2236 # for both compiling C and C++ we need to have the C++ compiler decide
2237 # the declaration of exit, since it's the most demanding environment.
2238 cat >conftest.$ac_ext <<_ACEOF
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -s conftest.$ac_objext'
2250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; }; then
2255 for ac_declaration in \
2257 '#include <stdlib.h>' \
2258 'extern "C" void std::exit (int) throw (); using std::exit;' \
2259 'extern "C" void std::exit (int); using std::exit;' \
2260 'extern "C" void exit (int) throw ();' \
2261 'extern "C" void exit (int);' \
2264 cat >conftest.$ac_ext <<_ACEOF
2265 #line $LINENO "configure"
2268 cat confdefs.h >>conftest.$ac_ext
2269 cat >>conftest.$ac_ext <<_ACEOF
2270 /* end confdefs.h. */
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283 (eval $ac_compile) 2>&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); } &&
2287 { ac_try='test -s conftest.$ac_objext'
2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; }; then
2295 echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2300 rm -f conftest.$ac_objext conftest.$ac_ext
2301 cat >conftest.$ac_ext <<_ACEOF
2302 #line $LINENO "configure"
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h. */
2317 rm -f conftest.$ac_objext
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); } &&
2323 { ac_try='test -s conftest.$ac_objext'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; }; then
2331 echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2335 rm -f conftest.$ac_objext conftest.$ac_ext
2338 if test -n "$ac_declaration"; then
2339 echo '#ifdef __cplusplus' >>confdefs.h
2340 echo $ac_declaration >>confdefs.h
2341 echo '#endif' >>confdefs.h
2345 echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2349 rm -f conftest.$ac_objext conftest.$ac_ext
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357 ac_cpp='$CXXCPP $CPPFLAGS'
2358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2361 if test -n "$ac_tool_prefix"; then
2362 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2365 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2366 echo "$as_me:$LINENO: checking for $ac_word" >&5
2367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2368 if test "${ac_cv_prog_CXX+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 if test -n "$CXX"; then
2372 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 test -z "$as_dir" && as_dir=.
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2381 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 if test -n "$CXX"; then
2392 echo "$as_me:$LINENO: result: $CXX" >&5
2393 echo "${ECHO_T}$CXX" >&6
2395 echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6
2399 test -n "$CXX" && break
2402 if test -z "$CXX"; then
2404 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2406 # Extract the first word of "$ac_prog", so it can be a program name with args.
2407 set dummy $ac_prog; ac_word=$2
2408 echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2410 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 if test -n "$ac_ct_CXX"; then
2414 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2423 ac_cv_prog_ac_ct_CXX="$ac_prog"
2424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2433 if test -n "$ac_ct_CXX"; then
2434 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2435 echo "${ECHO_T}$ac_ct_CXX" >&6
2437 echo "$as_me:$LINENO: result: no" >&5
2438 echo "${ECHO_T}no" >&6
2441 test -n "$ac_ct_CXX" && break
2443 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2449 # Provide some information about the compiler.
2450 echo "$as_me:$LINENO:" \
2451 "checking for C++ compiler version" >&5
2452 ac_compiler=`set X $ac_compile; echo $2`
2453 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2454 (eval $ac_compiler --version </dev/null >&5) 2>&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }
2458 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2459 (eval $ac_compiler -v </dev/null >&5) 2>&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }
2463 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2464 (eval $ac_compiler -V </dev/null >&5) 2>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }
2469 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2470 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2471 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2474 cat >conftest.$ac_ext <<_ACEOF
2475 #line $LINENO "configure"
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2493 rm -f conftest.$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495 (eval $ac_compile) 2>&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } &&
2499 { ac_try='test -s conftest.$ac_objext'
2500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; }; then
2507 echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2512 rm -f conftest.$ac_objext conftest.$ac_ext
2513 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2516 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2517 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2518 GXX=`test $ac_compiler_gnu = yes && echo yes`
2519 ac_test_CXXFLAGS=${CXXFLAGS+set}
2520 ac_save_CXXFLAGS=$CXXFLAGS
2522 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2523 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2524 if test "${ac_cv_prog_cxx_g+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 cat >conftest.$ac_ext <<_ACEOF
2528 #line $LINENO "configure"
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2543 rm -f conftest.$ac_objext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } &&
2549 { ac_try='test -s conftest.$ac_objext'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2555 ac_cv_prog_cxx_g=yes
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2562 rm -f conftest.$ac_objext conftest.$ac_ext
2564 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2565 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2566 if test "$ac_test_CXXFLAGS" = set; then
2567 CXXFLAGS=$ac_save_CXXFLAGS
2568 elif test $ac_cv_prog_cxx_g = yes; then
2569 if test "$GXX" = yes; then
2575 if test "$GXX" = yes; then
2581 for ac_declaration in \
2583 '#include <stdlib.h>' \
2584 'extern "C" void std::exit (int) throw (); using std::exit;' \
2585 'extern "C" void std::exit (int); using std::exit;' \
2586 'extern "C" void exit (int) throw ();' \
2587 'extern "C" void exit (int);' \
2590 cat >conftest.$ac_ext <<_ACEOF
2591 #line $LINENO "configure"
2594 cat confdefs.h >>conftest.$ac_ext
2595 cat >>conftest.$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2607 rm -f conftest.$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); } &&
2613 { ac_try='test -s conftest.$ac_objext'
2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; }; then
2621 echo "$as_me: failed program was:" >&5
2622 sed 's/^/| /' conftest.$ac_ext >&5
2626 rm -f conftest.$ac_objext conftest.$ac_ext
2627 cat >conftest.$ac_ext <<_ACEOF
2628 #line $LINENO "configure"
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2643 rm -f conftest.$ac_objext
2644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645 (eval $ac_compile) 2>&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); } &&
2649 { ac_try='test -s conftest.$ac_objext'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; }; then
2657 echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2661 rm -f conftest.$ac_objext conftest.$ac_ext
2664 if test -n "$ac_declaration"; then
2665 echo '#ifdef __cplusplus' >>confdefs.h
2666 echo $ac_declaration >>confdefs.h
2667 echo '#endif' >>confdefs.h
2671 ac_cpp='$CPP $CPPFLAGS'
2672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676 if test "x$CC" != xcc; then
2677 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2678 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2680 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2681 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2683 set dummy $CC; ac_cc=`echo $2 |
2684 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2685 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2688 cat >conftest.$ac_ext <<_ACEOF
2689 #line $LINENO "configure"
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h. */
2704 # Make sure it works both with $CC and with simple cc.
2705 # We do the test twice because some compilers refuse to overwrite an
2706 # existing .o file with -o, though they will create one.
2707 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2708 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); } &&
2713 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); };
2719 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2720 if test "x$CC" != xcc; then
2721 # Test first that cc exists at all.
2722 if { ac_try='cc -c conftest.$ac_ext >&5'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2728 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2729 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } &&
2734 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); };
2743 # cc exists but doesn't like -o.
2744 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2749 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2754 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2755 echo "$as_me:$LINENO: result: yes" >&5
2756 echo "${ECHO_T}yes" >&6
2758 echo "$as_me:$LINENO: result: no" >&5
2759 echo "${ECHO_T}no" >&6
2761 cat >>confdefs.h <<\_ACEOF
2762 #define NO_MINUS_C_MINUS_O 1
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2773 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2774 # On Suns, sometimes $CPP names a directory.
2775 if test -n "$CPP" && test -d "$CPP"; then
2778 if test -z "$CPP"; then
2779 if test "${ac_cv_prog_CPP+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 # Double quotes because CPP needs to be expanded
2783 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2786 for ac_c_preproc_warn_flag in '' yes
2788 # Use a header file that comes with gcc, so configuring glibc
2789 # with a fresh cross-compiler works.
2790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2791 # <limits.h> exists even on freestanding compilers.
2792 # On the NeXT, cc -E runs the code through the compiler's parser,
2793 # not just through cpp. "Syntax error" is here to catch this case.
2794 cat >conftest.$ac_ext <<_ACEOF
2795 #line $LINENO "configure"
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2802 # include <limits.h>
2804 # include <assert.h>
2808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2811 grep -v '^ *+' conftest.er1 >conftest.err
2813 cat conftest.err >&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); } >/dev/null; then
2816 if test -s conftest.err; then
2817 ac_cpp_err=$ac_c_preproc_warn_flag
2824 if test -z "$ac_cpp_err"; then
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2830 # Broken: fails on valid input.
2833 rm -f conftest.err conftest.$ac_ext
2835 # OK, works on sane cases. Now check whether non-existent headers
2836 # can be detected and how.
2837 cat >conftest.$ac_ext <<_ACEOF
2838 #line $LINENO "configure"
2841 cat confdefs.h >>conftest.$ac_ext
2842 cat >>conftest.$ac_ext <<_ACEOF
2843 /* end confdefs.h. */
2844 #include <ac_nonexistent.h>
2846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2849 grep -v '^ *+' conftest.er1 >conftest.err
2851 cat conftest.err >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); } >/dev/null; then
2854 if test -s conftest.err; then
2855 ac_cpp_err=$ac_c_preproc_warn_flag
2862 if test -z "$ac_cpp_err"; then
2863 # Broken: success on invalid input.
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2869 # Passes both tests.
2873 rm -f conftest.err conftest.$ac_ext
2876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2877 rm -f conftest.err conftest.$ac_ext
2878 if $ac_preproc_ok; then
2890 echo "$as_me:$LINENO: result: $CPP" >&5
2891 echo "${ECHO_T}$CPP" >&6
2893 for ac_c_preproc_warn_flag in '' yes
2895 # Use a header file that comes with gcc, so configuring glibc
2896 # with a fresh cross-compiler works.
2897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2898 # <limits.h> exists even on freestanding compilers.
2899 # On the NeXT, cc -E runs the code through the compiler's parser,
2900 # not just through cpp. "Syntax error" is here to catch this case.
2901 cat >conftest.$ac_ext <<_ACEOF
2902 #line $LINENO "configure"
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2909 # include <limits.h>
2911 # include <assert.h>
2915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2918 grep -v '^ *+' conftest.er1 >conftest.err
2920 cat conftest.err >&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); } >/dev/null; then
2923 if test -s conftest.err; then
2924 ac_cpp_err=$ac_c_preproc_warn_flag
2931 if test -z "$ac_cpp_err"; then
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2937 # Broken: fails on valid input.
2940 rm -f conftest.err conftest.$ac_ext
2942 # OK, works on sane cases. Now check whether non-existent headers
2943 # can be detected and how.
2944 cat >conftest.$ac_ext <<_ACEOF
2945 #line $LINENO "configure"
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h. */
2951 #include <ac_nonexistent.h>
2953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2956 grep -v '^ *+' conftest.er1 >conftest.err
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } >/dev/null; then
2961 if test -s conftest.err; then
2962 ac_cpp_err=$ac_c_preproc_warn_flag
2969 if test -z "$ac_cpp_err"; then
2970 # Broken: success on invalid input.
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 # Passes both tests.
2980 rm -f conftest.err conftest.$ac_ext
2983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2984 rm -f conftest.err conftest.$ac_ext
2985 if $ac_preproc_ok; then
2988 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2989 See \`config.log' for more details." >&5
2990 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2991 See \`config.log' for more details." >&2;}
2992 { (exit 1); exit 1; }; }
2996 ac_cpp='$CPP $CPPFLAGS'
2997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002 echo "$as_me:$LINENO: checking for egrep" >&5
3003 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3004 if test "${ac_cv_prog_egrep+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3008 then ac_cv_prog_egrep='grep -E'
3009 else ac_cv_prog_egrep='egrep'
3012 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3013 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3014 EGREP=$ac_cv_prog_egrep
3017 if test $ac_cv_c_compiler_gnu = yes; then
3018 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3019 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3020 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 ac_pattern="Autoconf.*'x'"
3024 cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3035 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3036 ac_cv_prog_gcc_traditional=yes
3038 ac_cv_prog_gcc_traditional=no
3043 if test $ac_cv_prog_gcc_traditional = no; then
3044 cat >conftest.$ac_ext <<_ACEOF
3045 #line $LINENO "configure"
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3055 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3056 ac_cv_prog_gcc_traditional=yes
3062 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3063 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3064 if test $ac_cv_prog_gcc_traditional = yes; then
3065 CC="$CC -traditional"
3069 if test "x$CC" = xgcc
3071 cat >>confdefs.h <<\_ACEOF
3077 # Find a good install program. We prefer a C program (faster),
3078 # so one script is as good as another. But avoid the broken or
3079 # incompatible versions:
3080 # SysV /etc/install, /usr/sbin/install
3081 # SunOS /usr/etc/install
3082 # IRIX /sbin/install
3084 # AmigaOS /C/install, which installs bootblocks on floppy discs
3085 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3086 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3087 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3088 # ./install, which can be erroneously created by make from ./install.sh.
3089 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3090 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3091 if test -z "$INSTALL"; then
3092 if test "${ac_cv_path_install+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 test -z "$as_dir" && as_dir=.
3100 # Account for people who put trailing slashes in PATH elements.
3102 ./ | .// | /cC/* | \
3103 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3106 # OSF1 and SCO ODT 3.0 have their own names for install.
3107 # Don't use installbsd from OSF since it installs stuff as root
3109 for ac_prog in ginstall scoinst install; do
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3112 if test $ac_prog = install &&
3113 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3114 # AIX install. It has an incompatible calling convention.
3116 elif test $ac_prog = install &&
3117 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3118 # program-specific install script used by HP pwplus--don't use.
3121 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3133 if test "${ac_cv_path_install+set}" = set; then
3134 INSTALL=$ac_cv_path_install
3136 # As a last resort, use the slow shell script. We don't cache a
3137 # path for INSTALL within a source directory, because that will
3138 # break other packages using the cache if that directory is
3139 # removed, or if the path is relative.
3140 INSTALL=$ac_install_sh
3143 echo "$as_me:$LINENO: result: $INSTALL" >&5
3144 echo "${ECHO_T}$INSTALL" >&6
3146 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3147 # It thinks the first close brace ends the variable substitution.
3148 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3150 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3152 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3154 if test -n "$ac_tool_prefix"; then
3155 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3156 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3157 echo "$as_me:$LINENO: checking for $ac_word" >&5
3158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3159 if test "${ac_cv_prog_RANLIB+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 if test -n "$RANLIB"; then
3163 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 RANLIB=$ac_cv_prog_RANLIB
3182 if test -n "$RANLIB"; then
3183 echo "$as_me:$LINENO: result: $RANLIB" >&5
3184 echo "${ECHO_T}$RANLIB" >&6
3186 echo "$as_me:$LINENO: result: no" >&5
3187 echo "${ECHO_T}no" >&6
3191 if test -z "$ac_cv_prog_RANLIB"; then
3192 ac_ct_RANLIB=$RANLIB
3193 # Extract the first word of "ranlib", so it can be a program name with args.
3194 set dummy ranlib; ac_word=$2
3195 echo "$as_me:$LINENO: checking for $ac_word" >&5
3196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3197 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 if test -n "$ac_ct_RANLIB"; then
3201 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210 ac_cv_prog_ac_ct_RANLIB="ranlib"
3211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3220 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3221 if test -n "$ac_ct_RANLIB"; then
3222 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3223 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3225 echo "$as_me:$LINENO: result: no" >&5
3226 echo "${ECHO_T}no" >&6
3229 RANLIB=$ac_ct_RANLIB
3231 RANLIB="$ac_cv_prog_RANLIB"
3234 # Extract the first word of "mv", so it can be a program name with args.
3235 set dummy mv; ac_word=$2
3236 echo "$as_me:$LINENO: checking for $ac_word" >&5
3237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3238 if test "${ac_cv_path_MV+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3266 if test -n "$MV"; then
3267 echo "$as_me:$LINENO: result: $MV" >&5
3268 echo "${ECHO_T}$MV" >&6
3270 echo "$as_me:$LINENO: result: no" >&5
3271 echo "${ECHO_T}no" >&6
3274 # Extract the first word of "rm", so it can be a program name with args.
3275 set dummy rm; ac_word=$2
3276 echo "$as_me:$LINENO: checking for $ac_word" >&5
3277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3278 if test "${ac_cv_path_RM+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3306 if test -n "$RM"; then
3307 echo "$as_me:$LINENO: result: $RM" >&5
3308 echo "${ECHO_T}$RM" >&6
3310 echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3314 # Extract the first word of "cp", so it can be a program name with args.
3315 set dummy cp; ac_word=$2
3316 echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318 if test "${ac_cv_path_CP+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 test -z "$as_dir" && as_dir=.
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3333 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3346 if test -n "$CP"; then
3347 echo "$as_me:$LINENO: result: $CP" >&5
3348 echo "${ECHO_T}$CP" >&6
3350 echo "$as_me:$LINENO: result: no" >&5
3351 echo "${ECHO_T}no" >&6
3354 # Extract the first word of "sed", so it can be a program name with args.
3355 set dummy sed; ac_word=$2
3356 echo "$as_me:$LINENO: checking for $ac_word" >&5
3357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3358 if test "${ac_cv_path_SED+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3386 if test -n "$SED"; then
3387 echo "$as_me:$LINENO: result: $SED" >&5
3388 echo "${ECHO_T}$SED" >&6
3390 echo "$as_me:$LINENO: result: no" >&5
3391 echo "${ECHO_T}no" >&6
3394 # Extract the first word of "echo", so it can be a program name with args.
3395 set dummy echo; ac_word=$2
3396 echo "$as_me:$LINENO: checking for $ac_word" >&5
3397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398 if test "${ac_cv_path_ECHO+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3424 ECHO=$ac_cv_path_ECHO
3426 if test -n "$ECHO"; then
3427 echo "$as_me:$LINENO: result: $ECHO" >&5
3428 echo "${ECHO_T}$ECHO" >&6
3430 echo "$as_me:$LINENO: result: no" >&5
3431 echo "${ECHO_T}no" >&6
3434 # Extract the first word of "cmp", so it can be a program name with args.
3435 set dummy cmp; ac_word=$2
3436 echo "$as_me:$LINENO: checking for $ac_word" >&5
3437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3438 if test "${ac_cv_path_CMP+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3466 if test -n "$CMP"; then
3467 echo "$as_me:$LINENO: result: $CMP" >&5
3468 echo "${ECHO_T}$CMP" >&6
3470 echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6
3474 # Extract the first word of "tbl", so it can be a program name with args.
3475 set dummy tbl; ac_word=$2
3476 echo "$as_me:$LINENO: checking for $ac_word" >&5
3477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3478 if test "${ac_cv_path_TBL+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3483 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 test -z "$as_dir" && as_dir=.
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3493 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3506 if test -n "$TBL"; then
3507 echo "$as_me:$LINENO: result: $TBL" >&5
3508 echo "${ECHO_T}$TBL" >&6
3510 echo "$as_me:$LINENO: result: no" >&5
3511 echo "${ECHO_T}no" >&6
3514 # Extract the first word of "ar", so it can be a program name with args.
3515 set dummy ar; ac_word=$2
3516 echo "$as_me:$LINENO: checking for $ac_word" >&5
3517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3518 if test "${ac_cv_path_AR+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3523 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 test -z "$as_dir" && as_dir=.
3531 for ac_exec_ext in '' $ac_executable_extensions; do
3532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3533 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3546 if test -n "$AR"; then
3547 echo "$as_me:$LINENO: result: $AR" >&5
3548 echo "${ECHO_T}$AR" >&6
3550 echo "$as_me:$LINENO: result: no" >&5
3551 echo "${ECHO_T}no" >&6
3554 # Extract the first word of "openssl", so it can be a program name with args.
3555 set dummy openssl; ac_word=$2
3556 echo "$as_me:$LINENO: checking for $ac_word" >&5
3557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3558 if test "${ac_cv_path_OPENSSL+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3584 OPENSSL=$ac_cv_path_OPENSSL
3586 if test -n "$OPENSSL"; then
3587 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3588 echo "${ECHO_T}$OPENSSL" >&6
3590 echo "$as_me:$LINENO: result: no" >&5
3591 echo "${ECHO_T}no" >&6
3594 # Extract the first word of "mtx", so it can be a program name with args.
3595 set dummy mtx; ac_word=$2
3596 echo "$as_me:$LINENO: checking for $ac_word" >&5
3597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3598 if test "${ac_cv_path_MTX+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 test -z "$as_dir" && as_dir=.
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3613 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3626 if test -n "$MTX"; then
3627 echo "$as_me:$LINENO: result: $MTX" >&5
3628 echo "${ECHO_T}$MTX" >&6
3630 echo "$as_me:$LINENO: result: no" >&5
3631 echo "${ECHO_T}no" >&6
3634 # Extract the first word of "mkisofs", so it can be a program name with args.
3635 set dummy mkisofs; ac_word=$2
3636 echo "$as_me:$LINENO: checking for $ac_word" >&5
3637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3638 if test "${ac_cv_path_MKISOFS+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 test -z "$as_dir" && as_dir=.
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3653 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3664 MKISOFS=$ac_cv_path_MKISOFS
3666 if test -n "$MKISOFS"; then
3667 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3668 echo "${ECHO_T}$MKISOFS" >&6
3670 echo "$as_me:$LINENO: result: no" >&5
3671 echo "${ECHO_T}no" >&6
3674 # Extract the first word of "python", so it can be a program name with args.
3675 set dummy python; ac_word=$2
3676 echo "$as_me:$LINENO: checking for $ac_word" >&5
3677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3678 if test "${ac_cv_path_PYTHON+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3693 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3700 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3704 PYTHON=$ac_cv_path_PYTHON
3706 if test -n "$PYTHON"; then
3707 echo "$as_me:$LINENO: result: $PYTHON" >&5
3708 echo "${ECHO_T}$PYTHON" >&6
3710 echo "$as_me:$LINENO: result: no" >&5
3711 echo "${ECHO_T}no" >&6
3714 # Extract the first word of "growisofs", so it can be a program name with args.
3715 set dummy growisofs; ac_word=$2
3716 echo "$as_me:$LINENO: checking for $ac_word" >&5
3717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3718 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3744 GROWISOFS=$ac_cv_path_GROWISOFS
3746 if test -n "$GROWISOFS"; then
3747 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3748 echo "${ECHO_T}$GROWISOFS" >&6
3750 echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3754 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3755 set dummy dvd+rw-mediainfo; ac_word=$2
3756 echo "$as_me:$LINENO: checking for $ac_word" >&5
3757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3758 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 case $DVDRWMEDIAINFO in
3763 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3784 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
3786 if test -n "$DVDRWMEDIAINFO"; then
3787 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
3788 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
3790 echo "$as_me:$LINENO: result: no" >&5
3791 echo "${ECHO_T}no" >&6
3794 # Extract the first word of "pkg-config", so it can be a program name with args.
3795 set dummy pkg-config; ac_word=$2
3796 echo "$as_me:$LINENO: checking for $ac_word" >&5
3797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3820 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3824 PKGCONFIG=$ac_cv_path_PKGCONFIG
3826 if test -n "$PKGCONFIG"; then
3827 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3828 echo "${ECHO_T}$PKGCONFIG" >&6
3830 echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6
3834 # Extract the first word of "wx-config", so it can be a program name with args.
3835 set dummy wx-config; ac_word=$2
3836 echo "$as_me:$LINENO: checking for $ac_word" >&5
3837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3838 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3864 WXCONFIG=$ac_cv_path_WXCONFIG
3866 if test -n "$WXCONFIG"; then
3867 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3868 echo "${ECHO_T}$WXCONFIG" >&6
3870 echo "$as_me:$LINENO: result: no" >&5
3871 echo "${ECHO_T}no" >&6
3874 # Extract the first word of "cdrecord", so it can be a program name with args.
3875 set dummy cdrecord; ac_word=$2
3876 echo "$as_me:$LINENO: checking for $ac_word" >&5
3877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3878 if test "${ac_cv_path_CDRECORD+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3893 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
3894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
3904 CDRECORD=$ac_cv_path_CDRECORD
3906 if test -n "$CDRECORD"; then
3907 echo "$as_me:$LINENO: result: $CDRECORD" >&5
3908 echo "${ECHO_T}$CDRECORD" >&6
3910 echo "$as_me:$LINENO: result: no" >&5
3911 echo "${ECHO_T}no" >&6
3914 # Extract the first word of "pidof", so it can be a program name with args.
3915 set dummy pidof; ac_word=$2
3916 echo "$as_me:$LINENO: checking for $ac_word" >&5
3917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3918 if test "${ac_cv_path_PIDOF+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
3934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
3944 PIDOF=$ac_cv_path_PIDOF
3946 if test -n "$PIDOF"; then
3947 echo "$as_me:$LINENO: result: $PIDOF" >&5
3948 echo "${ECHO_T}$PIDOF" >&6
3950 echo "$as_me:$LINENO: result: no" >&5
3951 echo "${ECHO_T}no" >&6
3954 for ac_prog in gawk mawk nawk awk
3956 # Extract the first word of "$ac_prog", so it can be a program name with args.
3957 set dummy $ac_prog; ac_word=$2
3958 echo "$as_me:$LINENO: checking for $ac_word" >&5
3959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3960 if test "${ac_cv_prog_AWK+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 if test -n "$AWK"; then
3964 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 test -z "$as_dir" && as_dir=.
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3973 ac_cv_prog_AWK="$ac_prog"
3974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 if test -n "$AWK"; then
3984 echo "$as_me:$LINENO: result: $AWK" >&5
3985 echo "${ECHO_T}$AWK" >&6
3987 echo "$as_me:$LINENO: result: no" >&5
3988 echo "${ECHO_T}no" >&6
3991 test -n "$AWK" && break
3994 # Some AWK programs fail, so test it and warn the user
3995 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
3996 { if ((prog == $2) || (("(" prog ")") == $2) ||
3997 (("" prog "") == $2) ||
3998 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4000 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4001 The regex engine of $AWK is too broken to be used you
4002 might want to install GNU AWK.
4003 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4004 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4005 The regex engine of $AWK is too broken to be used you
4006 might want to install GNU AWK.
4007 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4008 { (exit 1); exit 1; }; }
4011 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4012 set dummy $THE_AWK; ac_word=$2
4013 echo "$as_me:$LINENO: checking for $ac_word" >&5
4014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4015 if test "${ac_cv_path_AWK+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 test -z "$as_dir" && as_dir=.
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4043 if test -n "$AWK"; then
4044 echo "$as_me:$LINENO: result: $AWK" >&5
4045 echo "${ECHO_T}$AWK" >&6
4047 echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6
4052 test -n "$ARFLAG" || ARFLAGS="cr"
4065 # Make sure we can run config.sub.
4066 $ac_config_sub sun4 >/dev/null 2>&1 ||
4067 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4068 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4069 { (exit 1); exit 1; }; }
4071 echo "$as_me:$LINENO: checking build system type" >&5
4072 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4073 if test "${ac_cv_build+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 ac_cv_build_alias=$build_alias
4077 test -z "$ac_cv_build_alias" &&
4078 ac_cv_build_alias=`$ac_config_guess`
4079 test -z "$ac_cv_build_alias" &&
4080 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4081 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4082 { (exit 1); exit 1; }; }
4083 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4084 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4085 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4086 { (exit 1); exit 1; }; }
4089 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4090 echo "${ECHO_T}$ac_cv_build" >&6
4092 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4093 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4094 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4098 echo "$as_me:$LINENO: checking host system type" >&5
4099 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4100 if test "${ac_cv_host+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 ac_cv_host_alias=$host_alias
4104 test -z "$ac_cv_host_alias" &&
4105 ac_cv_host_alias=$ac_cv_build_alias
4106 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4107 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4108 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4109 { (exit 1); exit 1; }; }
4112 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4113 echo "${ECHO_T}$ac_cv_host" >&6
4115 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4116 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4117 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4121 *cygwin* ) CYGWIN=yes;;
4125 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4131 HAVE_SUN_OS_FALSE='#'
4133 HAVE_SUN_OS_TRUE='#'
4136 cat >>confdefs.h <<\_ACEOF
4137 #define HAVE_SUN_OS 1
4145 HAVE_SUN_OS_FALSE='#'
4147 HAVE_SUN_OS_TRUE='#'
4152 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4158 HAVE_OSF1_OS_FALSE='#'
4160 HAVE_OSF1_OS_TRUE='#'
4163 cat >>confdefs.h <<\_ACEOF
4164 #define HAVE_OSF1_OS 1
4172 HAVE_OSF1_OS_FALSE='#'
4174 HAVE_OSF1_OS_TRUE='#'
4179 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4185 HAVE_AIX_OS_FALSE='#'
4187 HAVE_AIX_OS_TRUE='#'
4190 cat >>confdefs.h <<\_ACEOF
4191 #define HAVE_AIX_OS 1
4199 HAVE_AIX_OS_FALSE='#'
4201 HAVE_AIX_OS_TRUE='#'
4206 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4212 HAVE_HPUX_OS_FALSE='#'
4214 HAVE_HPUX_OS_TRUE='#'
4217 cat >>confdefs.h <<\_ACEOF
4218 #define HAVE_HPUX_OS 1
4226 HAVE_HPUX_OS_FALSE='#'
4228 HAVE_HPUX_OS_TRUE='#'
4233 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4239 HAVE_LINUX_OS_FALSE='#'
4241 HAVE_LINUX_OS_TRUE='#'
4242 HAVE_LINUX_OS_FALSE=
4244 cat >>confdefs.h <<\_ACEOF
4245 #define HAVE_LINUX_OS 1
4253 HAVE_LINUX_OS_FALSE='#'
4255 HAVE_LINUX_OS_TRUE='#'
4256 HAVE_LINUX_OS_FALSE=
4260 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4265 HAVE_FREEBSD_OS_TRUE=
4266 HAVE_FREEBSD_OS_FALSE='#'
4268 HAVE_FREEBSD_OS_TRUE='#'
4269 HAVE_FREEBSD_OS_FALSE=
4271 cat >>confdefs.h <<\_ACEOF
4272 #define HAVE_FREEBSD_OS 1
4279 HAVE_FREEBSD_OS_TRUE=
4280 HAVE_FREEBSD_OS_FALSE='#'
4282 HAVE_FREEBSD_OS_TRUE='#'
4283 HAVE_FREEBSD_OS_FALSE=
4287 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4292 HAVE_NETBSD_OS_TRUE=
4293 HAVE_NETBSD_OS_FALSE='#'
4295 HAVE_NETBSD_OS_TRUE='#'
4296 HAVE_NETBSD_OS_FALSE=
4298 cat >>confdefs.h <<\_ACEOF
4299 #define HAVE_NETBSD_OS 1
4306 HAVE_NETBSD_OS_TRUE=
4307 HAVE_NETBSD_OS_FALSE='#'
4309 HAVE_NETBSD_OS_TRUE='#'
4310 HAVE_NETBSD_OS_FALSE=
4314 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4319 HAVE_OPENBSD_OS_TRUE=
4320 HAVE_OPENBSD_OS_FALSE='#'
4322 HAVE_OPENBSD_OS_TRUE='#'
4323 HAVE_OPENBSD_OS_FALSE=
4325 cat >>confdefs.h <<\_ACEOF
4326 #define HAVE_OPENBSD_OS 1
4333 HAVE_OPENBSD_OS_TRUE=
4334 HAVE_OPENBSD_OS_FALSE='#'
4336 HAVE_OPENBSD_OS_TRUE='#'
4337 HAVE_OPENBSD_OS_FALSE=
4341 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4347 HAVE_BSDI_OS_FALSE='#'
4349 HAVE_BSDI_OS_TRUE='#'
4352 cat >>confdefs.h <<\_ACEOF
4353 #define HAVE_BSDI_OS 1
4361 HAVE_BSDI_OS_FALSE='#'
4363 HAVE_BSDI_OS_TRUE='#'
4368 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4374 HAVE_SGI_OS_FALSE='#'
4376 HAVE_SGI_OS_TRUE='#'
4379 cat >>confdefs.h <<\_ACEOF
4380 #define HAVE_SGI_OS 1
4388 HAVE_SGI_OS_FALSE='#'
4390 HAVE_SGI_OS_TRUE='#'
4395 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4401 HAVE_IRIX_OS_FALSE='#'
4403 HAVE_IRIX_OS_TRUE='#'
4406 cat >>confdefs.h <<\_ACEOF
4407 #define HAVE_IRIX_OS 1
4415 HAVE_IRIX_OS_FALSE='#'
4417 HAVE_IRIX_OS_TRUE='#'
4422 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4427 HAVE_DARWIN_OS_TRUE=
4428 HAVE_DARWIN_OS_FALSE='#'
4430 HAVE_DARWIN_OS_TRUE='#'
4431 HAVE_DARWIN_OS_FALSE=
4433 cat >>confdefs.h <<\_ACEOF
4434 #define HAVE_DARWIN_OS 1
4441 HAVE_DARWIN_OS_TRUE=
4442 HAVE_DARWIN_OS_FALSE='#'
4444 HAVE_DARWIN_OS_TRUE='#'
4445 HAVE_DARWIN_OS_FALSE=
4450 # -----------------------------------------------------------
4451 # ----------------------------------------------------------
4452 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4453 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4454 if test "x$DISTNAME" != "x"
4456 echo "distname set to $DISTNAME"
4457 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4460 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4463 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4466 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4469 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4472 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4475 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4478 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4481 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4484 elif test -f /etc/SuSE-release
4487 elif test -d /etc/SuSEconfig
4490 elif test -f /etc/mandrake-release
4493 elif test -f /etc/whitebox-release
4496 elif test -f /etc/redhat-release
4499 elif test -f /etc/gentoo-release
4502 elif test -f /etc/debian_version
4505 elif test -f /etc/slackware-version
4508 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4511 elif test -f /etc/engarde-version
4514 elif test "$CYGWIN" = yes
4517 cat >>confdefs.h <<\_ACEOF
4518 #define HAVE_CYGWIN 1
4524 echo "$as_me:$LINENO: result: done" >&5
4525 echo "${ECHO_T}done" >&6
4528 # -----------------------------------------------------------
4529 # ----------------------------------------------------------
4534 INSIDE_GNOME_COMMON_TRUE=
4535 INSIDE_GNOME_COMMON_FALSE='#'
4537 INSIDE_GNOME_COMMON_TRUE='#'
4538 INSIDE_GNOME_COMMON_FALSE=
4541 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4543 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4546 # ------------------------------------------------------------------
4547 # If the user has not set --prefix, we set our default to nothing.
4548 # In this case, if the user has not set --sysconfdir, we set it
4549 # to the package default of /etc/bacula. If either --prefix or
4550 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4551 # ------------------------------------------------------------------
4552 if test x${prefix} = xNONE ; then
4553 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4554 sysconfdir=/etc/bacula
4558 sysconfdir=`eval echo ${sysconfdir}`
4560 # -------------------------------------------------------------------------
4561 # If the user has not set --exec-prefix, we default to ${prefix}
4562 # -------------------------------------------------------------------------
4563 if test x${exec_prefix} = xNONE ; then
4564 exec_prefix=${prefix}
4567 # ------------------------------------------------------------------
4568 # If the user has not set --sbindir, we set our default as /sbin
4569 # ------------------------------------------------------------------
4570 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4571 sbindir=${exec_prefix}/sbin
4573 sbindir=`eval echo ${sbindir}`
4575 # ------------------------------------------------------------------
4576 # All list of languages for which a translation exist. Each
4577 # language is separated by a space.
4578 # ------------------------------------------------------------------
4581 for ac_prog in msgfmt
4583 # Extract the first word of "$ac_prog", so it can be a program name with args.
4584 set dummy $ac_prog; ac_word=$2
4585 echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4587 if test "${ac_cv_path_MSGFMT+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 MSGFMT=$ac_cv_path_MSGFMT
4614 if test -n "$MSGFMT"; then
4615 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4616 echo "${ECHO_T}$MSGFMT" >&6
4618 echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6
4622 test -n "$MSGFMT" && break
4624 test -n "$MSGFMT" || MSGFMT="no"
4626 if test "$MSGFMT" = "no"
4628 echo 'msgfmt program not found, disabling NLS !'
4630 USE_INCLUDED_LIBINTL=no
4639 support_postgresql=no
4640 support_smartalloc=yes
4641 support_readline=yes
4644 support_wx_console=no
4647 support_static_tools=no
4648 support_static_fd=no
4649 support_static_sd=no
4650 support_static_dir=no
4651 support_static_cons=no
4653 build_client_only=no
4659 # -------------------------------------------
4660 # gnome (default off)
4661 # -------------------------------------------
4662 # Check whether --enable-gnome or --disable-gnome was given.
4663 if test "${enable_gnome+set}" = set; then
4664 enableval="$enable_gnome"
4665 if test x$enableval = xyes; then
4671 if test x$support_gnome = xyes; then
4672 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4674 if test $pkg = 0; then
4675 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4676 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4677 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4678 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4683 GNOME_DIR=src/gnome2-console
4684 gnome_version="Version 2.x"
4697 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4698 if test "${with_gnome_includes+set}" = set; then
4699 withval="$with_gnome_includes"
4701 CFLAGS="$CFLAGS -I$withval"
4706 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4707 if test "${with_gnome_libs+set}" = set; then
4708 withval="$with_gnome_libs"
4710 LDFLAGS="$LDFLAGS -L$withval"
4711 gnome_prefix=$withval
4716 # Check whether --with-gnome or --without-gnome was given.
4717 if test "${with_gnome+set}" = set; then
4718 withval="$with_gnome"
4719 if test x$withval = xyes; then
4723 if test "x$withval" = xno; then
4727 LDFLAGS="$LDFLAGS -L$withval/lib"
4728 CFLAGS="$CFLAGS -I$withval/include"
4729 gnome_prefix=$withval/lib
4736 if test "x$want_gnome" = xyes; then
4738 # Extract the first word of "gnome-config", so it can be a program name with args.
4739 set dummy gnome-config; ac_word=$2
4740 echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4742 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 case $GNOME_CONFIG in
4747 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4768 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4770 if test -n "$GNOME_CONFIG"; then
4771 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4772 echo "${ECHO_T}$GNOME_CONFIG" >&6
4774 echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6
4778 if test "$GNOME_CONFIG" = "no"; then
4779 no_gnome_config="yes"
4781 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4782 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4783 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4784 echo "$as_me:$LINENO: result: yes" >&5
4785 echo "${ECHO_T}yes" >&6
4788 # Extract the first word of "orbit-config", so it can be a program name with args.
4789 set dummy orbit-config; ac_word=$2
4790 echo "$as_me:$LINENO: checking for $ac_word" >&5
4791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4792 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 case $ORBIT_CONFIG in
4797 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4807 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4818 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4820 if test -n "$ORBIT_CONFIG"; then
4821 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4822 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4824 echo "$as_me:$LINENO: result: no" >&5
4825 echo "${ECHO_T}no" >&6
4828 # Extract the first word of "orbit-idl", so it can be a program name with args.
4829 set dummy orbit-idl; ac_word=$2
4830 echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4832 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4847 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4858 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4860 if test -n "$ORBIT_IDL"; then
4861 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4862 echo "${ECHO_T}$ORBIT_IDL" >&6
4864 echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6
4868 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4869 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4870 if test "${gnome_cv_orbit_found+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4875 gnome_cv_orbit_found=no
4877 gnome_cv_orbit_found=yes
4881 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4882 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4885 if test x$gnome_cv_orbit_found = xyes; then
4887 HAVE_ORBIT_FALSE='#'
4892 if test x$gnome_cv_orbit_found = xyes; then
4894 ORBIT_CFLAGS=`orbit-config --cflags client server`
4895 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4899 if test xfail = xfailure; then
4900 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4901 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4902 { (exit 1); exit 1; }; }
4906 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4907 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4908 if test "${gnome_cv_gnorba_found+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 gnome_cv_gnorba_found=no
4913 if test x$gnome_cv_orbit_found = xyes; then
4914 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4915 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4916 if test -n "$GNORBA_LIBS"; then
4917 gnome_cv_gnorba_found=yes
4922 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4923 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4926 if test x$gnome_cv_gnorba_found = xyes; then
4928 HAVE_GNORBA_FALSE='#'
4930 HAVE_GNORBA_TRUE='#'
4933 if test x$gnome_cv_orbit_found = xyes; then
4935 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4936 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4940 if test xfail = xfailure; then
4941 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4942 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4943 { (exit 1); exit 1; }; }
4947 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4948 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4949 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4950 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4951 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4952 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4953 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4956 echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6
4958 no_gnome_config="yes"
4962 if test x$exec_prefix = xNONE; then
4963 if test x$prefix = xNONE; then
4964 gnome_prefix=$ac_default_prefix/lib
4966 gnome_prefix=$prefix/lib
4969 gnome_prefix=`eval echo \`echo $libdir\``
4972 if test "$no_gnome_config" = "yes"; then
4973 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4974 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4975 if test -f $gnome_prefix/gnomeConf.sh; then
4976 echo "$as_me:$LINENO: result: found" >&5
4977 echo "${ECHO_T}found" >&6
4978 echo "loading gnome configuration from" \
4979 "$gnome_prefix/gnomeConf.sh"
4980 . $gnome_prefix/gnomeConf.sh
4983 echo "$as_me:$LINENO: result: not found" >&5
4984 echo "${ECHO_T}not found" >&6
4985 if test xfail = xfail; then
4986 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4987 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4988 { (exit 1); exit 1; }; }
4997 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4998 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
5002 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
5003 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
5004 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
5007 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
5008 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
5009 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
5012 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
5013 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
5014 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
5016 echo "$as_me:$LINENO: result: unknown library" >&5
5017 echo "${ECHO_T}unknown library" >&6
5019 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
5020 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
5025 GNOME_DIR=src/gnome-console
5026 gnome_version="Version 1.4"
5032 # -------------------------------------------
5033 # wx-console (default off)
5034 # -------------------------------------------
5035 # Check whether --enable-wx-console or --disable-wx-console was given.
5036 if test "${enable_wx_console+set}" = set; then
5037 enableval="$enable_wx_console"
5038 if test x$enableval = xyes; then
5039 support_wx_console=yes
5044 if test x$support_wx_console = xyes; then
5045 abc=`$WXCONFIG --cppflags`
5047 if test $pkg = 0; then
5048 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
5049 WXCONS_LDFLAGS=`$WXCONFIG --libs`
5052 WX_DIR=src/wx-console
5055 echo "wx-config program not found. wx-console disabled."
5057 support_wx_console=no
5063 # -------------------------------------------
5064 # tray-monitor (default off)
5065 # -------------------------------------------
5066 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
5067 if test "${enable_tray_monitor+set}" = set; then
5068 enableval="$enable_tray_monitor"
5069 if test x$enableval = xyes; then
5070 support_tray_monitor=yes
5075 if test x$support_tray_monitor = xyes; then
5076 abc=`$PKGCONFIG --exists gtk+-2.0`
5078 if test $pkg = 0; then
5079 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
5080 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
5083 TRAY_MONITOR_DIR=src/tray-monitor
5084 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
5086 if test $pkg = 0; then
5087 cat >>confdefs.h <<\_ACEOF
5088 #define HAVE_GTK_2_4 1
5096 # -------------------------------------------
5097 # smartalloc (default off)
5098 # -------------------------------------------
5099 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5100 if test "${enable_smartalloc+set}" = set; then
5101 enableval="$enable_smartalloc"
5102 if test x$enableval = xno; then
5103 support_smartalloc=no
5107 if test x$support_smartalloc = xyes; then
5108 cat >>confdefs.h <<\_ACEOF
5109 #define SMARTALLOC 1
5114 # -------------------------------------------
5115 # static-tools (default off)
5116 # -------------------------------------------
5117 # Check whether --enable-static-tools or --disable-static-tools was given.
5118 if test "${enable_static_tools+set}" = set; then
5119 enableval="$enable_static_tools"
5120 if test x$enableval = xyes; then
5121 support_static_tools=yes
5126 if test x$support_static_tools = xyes; then
5127 TTOOL_LDFLAGS="-static"
5131 # -------------------------------------------
5132 # static-fd (default off)
5133 # -------------------------------------------
5134 # Check whether --enable-static-fd or --disable-static-fd was given.
5135 if test "${enable_static_fd+set}" = set; then
5136 enableval="$enable_static_fd"
5137 if test x$enableval = xyes; then
5138 support_static_fd=yes
5143 if test x$support_static_fd = xyes; then
5144 STATIC_FD="static-bacula-fd"
5148 # -------------------------------------------
5149 # static-sd (default off)
5150 # -------------------------------------------
5151 # Check whether --enable-static-sd or --disable-static-sd was given.
5152 if test "${enable_static_sd+set}" = set; then
5153 enableval="$enable_static_sd"
5154 if test x$enableval = xyes; then
5155 support_static_sd=yes
5160 if test x$support_static_sd = xyes; then
5161 STATIC_SD="static-bacula-sd"
5165 # -------------------------------------------
5166 # static-dir (default off)
5167 # -------------------------------------------
5168 # Check whether --enable-static-dir or --disable-static-dir was given.
5169 if test "${enable_static_dir+set}" = set; then
5170 enableval="$enable_static_dir"
5171 if test x$enableval = xyes; then
5172 support_static_dir=yes
5177 if test x$support_static_dir = xyes; then
5178 STATIC_DIR="static-bacula-dir"
5182 # -------------------------------------------
5183 # static-cons (default off)
5184 # -------------------------------------------
5185 # Check whether --enable-static-cons or --disable-static-cons was given.
5186 if test "${enable_static_cons+set}" = set; then
5187 enableval="$enable_static_cons"
5188 if test x$enableval = xyes; then
5189 support_static_cons=yes
5196 if test x$support_static_cons = xyes; then
5197 STATIC_CONS="static-bconsole"
5198 STATIC_GNOME_CONS="static-gnome-console"
5199 STATIC_WX_CONS="static-wx-console"
5205 # -------------------------------------------
5206 # client_only (default off)
5207 # -------------------------------------------
5208 # Check whether --enable-client-only or --disable-client-only was given.
5209 if test "${enable_client_only+set}" = set; then
5210 enableval="$enable_client_only"
5211 if test x$enableval = xyes; then
5212 build_client_only=yes
5217 if test x$build_client_only = xno; then
5224 # ---------------------------------------------------
5225 # Check for conio (Bacula readline substitute)(
5226 # ---------------------------------------------------
5227 # this allows you to turn it completely off
5228 # Check whether --enable-conio or --disable-conio was given.
5229 if test "${enable_conio+set}" = set; then
5230 enableval="$enable_conio"
5231 if test x$enableval = xno; then
5237 if test x$support_conio = xyes; then
5238 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5239 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5240 if test "${ac_cv_header_stdc+set}" = set; then
5241 echo $ECHO_N "(cached) $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. */
5263 rm -f conftest.$ac_objext
5264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5265 (eval $ac_compile) 2>&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } &&
5269 { ac_try='test -s conftest.$ac_objext'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; }; then
5275 ac_cv_header_stdc=yes
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5280 ac_cv_header_stdc=no
5282 rm -f conftest.$ac_objext conftest.$ac_ext
5284 if test $ac_cv_header_stdc = yes; then
5285 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5286 cat >conftest.$ac_ext <<_ACEOF
5287 #line $LINENO "configure"
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5297 $EGREP "memchr" >/dev/null 2>&1; then
5300 ac_cv_header_stdc=no
5306 if test $ac_cv_header_stdc = yes; then
5307 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5308 cat >conftest.$ac_ext <<_ACEOF
5309 #line $LINENO "configure"
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h. */
5318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5319 $EGREP "free" >/dev/null 2>&1; then
5322 ac_cv_header_stdc=no
5328 if test $ac_cv_header_stdc = yes; then
5329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5330 if test "$cross_compiling" = yes; then
5333 cat >conftest.$ac_ext <<_ACEOF
5334 #line $LINENO "configure"
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5341 #if ((' ' & 0x0FF) == 0x020)
5342 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5343 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5345 # define ISLOWER(c) \
5346 (('a' <= (c) && (c) <= 'i') \
5347 || ('j' <= (c) && (c) <= 'r') \
5348 || ('s' <= (c) && (c) <= 'z'))
5349 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5352 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5357 for (i = 0; i < 256; i++)
5358 if (XOR (islower (i), ISLOWER (i))
5359 || toupper (i) != TOUPPER (i))
5364 rm -f conftest$ac_exeext
5365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5366 (eval $ac_link) 2>&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; }; then
5377 echo "$as_me: program exited with status $ac_status" >&5
5378 echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5382 ac_cv_header_stdc=no
5384 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5388 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5389 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5390 if test $ac_cv_header_stdc = yes; then
5392 cat >>confdefs.h <<\_ACEOF
5393 #define STDC_HEADERS 1
5398 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5408 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5409 inttypes.h stdint.h unistd.h
5411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5412 echo "$as_me:$LINENO: checking for $ac_header" >&5
5413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 cat >conftest.$ac_ext <<_ACEOF
5418 #line $LINENO "configure"
5421 cat confdefs.h >>conftest.$ac_ext
5422 cat >>conftest.$ac_ext <<_ACEOF
5423 /* end confdefs.h. */
5424 $ac_includes_default
5426 #include <$ac_header>
5428 rm -f conftest.$ac_objext
5429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5430 (eval $ac_compile) 2>&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } &&
5434 { ac_try='test -s conftest.$ac_objext'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5440 eval "$as_ac_Header=yes"
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5445 eval "$as_ac_Header=no"
5447 rm -f conftest.$ac_objext conftest.$ac_ext
5449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5452 cat >>confdefs.h <<_ACEOF
5453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5461 if test "${ac_cv_header_termcap_h+set}" = set; then
5462 echo "$as_me:$LINENO: checking for termcap.h" >&5
5463 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5464 if test "${ac_cv_header_termcap_h+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5468 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5470 # Is the header compilable?
5471 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5472 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5473 cat >conftest.$ac_ext <<_ACEOF
5474 #line $LINENO "configure"
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5480 $ac_includes_default
5481 #include <termcap.h>
5483 rm -f conftest.$ac_objext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485 (eval $ac_compile) 2>&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try='test -s conftest.$ac_objext'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 ac_header_compiler=yes
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 ac_header_compiler=no
5502 rm -f conftest.$ac_objext conftest.$ac_ext
5503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5504 echo "${ECHO_T}$ac_header_compiler" >&6
5506 # Is the header present?
5507 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5508 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5509 cat >conftest.$ac_ext <<_ACEOF
5510 #line $LINENO "configure"
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 #include <termcap.h>
5518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5521 grep -v '^ *+' conftest.er1 >conftest.err
5523 cat conftest.err >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } >/dev/null; then
5526 if test -s conftest.err; then
5527 ac_cpp_err=$ac_c_preproc_warn_flag
5534 if test -z "$ac_cpp_err"; then
5535 ac_header_preproc=yes
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5540 ac_header_preproc=no
5542 rm -f conftest.err conftest.$ac_ext
5543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5544 echo "${ECHO_T}$ac_header_preproc" >&6
5546 # So? What about this header?
5547 case $ac_header_compiler:$ac_header_preproc in
5549 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5550 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5551 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5552 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5555 ## ------------------------------------ ##
5556 ## Report this to bug-autoconf@gnu.org. ##
5557 ## ------------------------------------ ##
5560 sed "s/^/$as_me: WARNING: /" >&2
5563 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5564 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5565 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5566 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5567 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5568 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5571 ## ------------------------------------ ##
5572 ## Report this to bug-autoconf@gnu.org. ##
5573 ## ------------------------------------ ##
5576 sed "s/^/$as_me: WARNING: /" >&2
5579 echo "$as_me:$LINENO: checking for termcap.h" >&5
5580 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5581 if test "${ac_cv_header_termcap_h+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5584 ac_cv_header_termcap_h=$ac_header_preproc
5586 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5587 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5590 if test $ac_cv_header_termcap_h = yes; then
5591 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5592 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5593 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5596 ac_check_lib_save_LIBS=$LIBS
5597 LIBS="-ltermcap $LIBS"
5598 cat >conftest.$ac_ext <<_ACEOF
5599 #line $LINENO "configure"
5602 cat confdefs.h >>conftest.$ac_ext
5603 cat >>conftest.$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5606 /* Override any gcc2 internal prototype to avoid an error. */
5610 /* We use char because int might match the return type of a gcc2
5611 builtin and then its argument prototype would still apply. */
5621 rm -f conftest.$ac_objext conftest$ac_exeext
5622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5623 (eval $ac_link) 2>&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } &&
5627 { ac_try='test -s conftest$ac_exeext'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }; then
5633 ac_cv_lib_termcap_tgetent=yes
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5638 ac_cv_lib_termcap_tgetent=no
5640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5641 LIBS=$ac_check_lib_save_LIBS
5643 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5644 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5645 if test $ac_cv_lib_termcap_tgetent = yes; then
5646 CONS_LIBS="-ltermcap"
5652 cat >>confdefs.h <<\_ACEOF
5653 #define HAVE_CONIO 1
5658 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5659 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5660 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 ac_check_lib_save_LIBS=$LIBS
5664 LIBS="-lncurses $LIBS"
5665 cat >conftest.$ac_ext <<_ACEOF
5666 #line $LINENO "configure"
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5673 /* Override any gcc2 internal prototype to avoid an error. */
5677 /* We use char because int might match the return type of a gcc2
5678 builtin and then its argument prototype would still apply. */
5688 rm -f conftest.$ac_objext conftest$ac_exeext
5689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5690 (eval $ac_link) 2>&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } &&
5694 { ac_try='test -s conftest$ac_exeext'
5695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; }; then
5700 ac_cv_lib_ncurses_tgetent=yes
5702 echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5705 ac_cv_lib_ncurses_tgetent=no
5707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5708 LIBS=$ac_check_lib_save_LIBS
5710 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5711 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5712 if test $ac_cv_lib_ncurses_tgetent = yes; then
5713 CONS_LIBS="-lncurses"
5719 cat >>confdefs.h <<\_ACEOF
5720 #define HAVE_CONIO 1
5733 for ac_header in curses.h
5735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5737 echo "$as_me:$LINENO: checking for $ac_header" >&5
5738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5745 # Is the header compilable?
5746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5748 cat >conftest.$ac_ext <<_ACEOF
5749 #line $LINENO "configure"
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5755 $ac_includes_default
5756 #include <$ac_header>
5758 rm -f conftest.$ac_objext
5759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760 (eval $ac_compile) 2>&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } &&
5764 { ac_try='test -s conftest.$ac_objext'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; }; then
5770 ac_header_compiler=yes
5772 echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5775 ac_header_compiler=no
5777 rm -f conftest.$ac_objext conftest.$ac_ext
5778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5779 echo "${ECHO_T}$ac_header_compiler" >&6
5781 # Is the header present?
5782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5784 cat >conftest.$ac_ext <<_ACEOF
5785 #line $LINENO "configure"
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 #include <$ac_header>
5793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5796 grep -v '^ *+' conftest.er1 >conftest.err
5798 cat conftest.err >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } >/dev/null; then
5801 if test -s conftest.err; then
5802 ac_cpp_err=$ac_c_preproc_warn_flag
5809 if test -z "$ac_cpp_err"; then
5810 ac_header_preproc=yes
5812 echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5815 ac_header_preproc=no
5817 rm -f conftest.err conftest.$ac_ext
5818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5819 echo "${ECHO_T}$ac_header_preproc" >&6
5821 # So? What about this header?
5822 case $ac_header_compiler:$ac_header_preproc in
5824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5830 ## ------------------------------------ ##
5831 ## Report this to bug-autoconf@gnu.org. ##
5832 ## ------------------------------------ ##
5835 sed "s/^/$as_me: WARNING: /" >&2
5838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5846 ## ------------------------------------ ##
5847 ## Report this to bug-autoconf@gnu.org. ##
5848 ## ------------------------------------ ##
5851 sed "s/^/$as_me: WARNING: /" >&2
5854 echo "$as_me:$LINENO: checking for $ac_header" >&5
5855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 eval "$as_ac_Header=$ac_header_preproc"
5861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5866 cat >>confdefs.h <<_ACEOF
5867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5874 echo "$as_me:$LINENO: checking for term.h" >&5
5875 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5876 if test "${ac_cv_header_term_h+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 cat >conftest.$ac_ext <<_ACEOF
5880 #line $LINENO "configure"
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5893 rm -f conftest.$ac_objext
5894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5895 (eval $ac_compile) 2>&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } &&
5899 { ac_try='test -s conftest.$ac_objext'
5900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
5905 ac_cv_header_term_h=yes
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5910 ac_cv_header_term_h=no
5912 rm -f conftest.$ac_objext conftest.$ac_ext
5914 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5915 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5916 if test $ac_cv_header_term_h = yes; then
5917 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5918 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5919 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 ac_check_lib_save_LIBS=$LIBS
5923 LIBS="-lcurses $LIBS"
5924 cat >conftest.$ac_ext <<_ACEOF
5925 #line $LINENO "configure"
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5932 /* Override any gcc2 internal prototype to avoid an error. */
5936 /* We use char because int might match the return type of a gcc2
5937 builtin and then its argument prototype would still apply. */
5947 rm -f conftest.$ac_objext conftest$ac_exeext
5948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5949 (eval $ac_link) 2>&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } &&
5953 { ac_try='test -s conftest$ac_exeext'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; }; then
5959 ac_cv_lib_curses_tgetent=yes
5961 echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5964 ac_cv_lib_curses_tgetent=no
5966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5967 LIBS=$ac_check_lib_save_LIBS
5969 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5970 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5971 if test $ac_cv_lib_curses_tgetent = yes; then
5972 CONS_LIBS="-lcurses"
5978 cat >>confdefs.h <<\_ACEOF
5979 #define HAVE_CONIO 1
5987 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5998 # ---------------------------------------------------
5999 # Check for readline support/directory (default off)
6000 # ---------------------------------------------------
6001 # this allows you to turn it completely off
6002 # Check whether --enable-readline or --disable-readline was given.
6003 if test "${enable_readline+set}" = set; then
6004 enableval="$enable_readline"
6005 if test x$enableval = xno; then
6012 if test x$support_readline = xyes; then
6014 # Check whether --with-readline or --without-readline was given.
6015 if test "${with_readline+set}" = set; then
6016 withval="$with_readline"
6018 case "$with_readline" in
6021 if test "$with_readline" != "yes"; then
6022 CONS_INC="-I${with_readline}"
6023 CONS_LDFLAGS="-L$with_readline"
6025 with_readline="/usr/include/readline"
6027 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6029 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6030 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6037 # Is the header compilable?
6038 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6039 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6040 cat >conftest.$ac_ext <<_ACEOF
6041 #line $LINENO "configure"
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 $ac_includes_default
6048 #include <${with_readline}/readline.h>
6050 rm -f conftest.$ac_objext
6051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6052 (eval $ac_compile) 2>&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } &&
6056 { ac_try='test -s conftest.$ac_objext'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; }; then
6062 ac_header_compiler=yes
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6067 ac_header_compiler=no
6069 rm -f conftest.$ac_objext conftest.$ac_ext
6070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6071 echo "${ECHO_T}$ac_header_compiler" >&6
6073 # Is the header present?
6074 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6075 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6076 cat >conftest.$ac_ext <<_ACEOF
6077 #line $LINENO "configure"
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083 #include <${with_readline}/readline.h>
6085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6088 grep -v '^ *+' conftest.er1 >conftest.err
6090 cat conftest.err >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } >/dev/null; then
6093 if test -s conftest.err; then
6094 ac_cpp_err=$ac_c_preproc_warn_flag
6101 if test -z "$ac_cpp_err"; then
6102 ac_header_preproc=yes
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6107 ac_header_preproc=no
6109 rm -f conftest.err conftest.$ac_ext
6110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6111 echo "${ECHO_T}$ac_header_preproc" >&6
6113 # So? What about this header?
6114 case $ac_header_compiler:$ac_header_preproc in
6116 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6117 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6118 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6119 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6122 ## ------------------------------------ ##
6123 ## Report this to bug-autoconf@gnu.org. ##
6124 ## ------------------------------------ ##
6127 sed "s/^/$as_me: WARNING: /" >&2
6130 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6131 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6132 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
6133 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
6134 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6135 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6138 ## ------------------------------------ ##
6139 ## Report this to bug-autoconf@gnu.org. ##
6140 ## ------------------------------------ ##
6143 sed "s/^/$as_me: WARNING: /" >&2
6146 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6147 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 eval "$as_ac_Header=$ac_header_preproc"
6153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6158 cat >>confdefs.h <<\_ACEOF
6159 #define HAVE_READLINE 1
6162 CONS_LIBS="-lreadline -ltermcap"
6167 echo "readline.h not found. readline turned off ..."
6179 # check for standard readline library
6180 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6181 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6182 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6183 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6187 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6189 # Is the header compilable?
6190 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6191 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6192 cat >conftest.$ac_ext <<_ACEOF
6193 #line $LINENO "configure"
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6199 $ac_includes_default
6200 #include </usr/include/readline/readline.h>
6202 rm -f conftest.$ac_objext
6203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6204 (eval $ac_compile) 2>&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } &&
6208 { ac_try='test -s conftest.$ac_objext'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; }; then
6214 ac_header_compiler=yes
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6219 ac_header_compiler=no
6221 rm -f conftest.$ac_objext conftest.$ac_ext
6222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6223 echo "${ECHO_T}$ac_header_compiler" >&6
6225 # Is the header present?
6226 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6227 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6228 cat >conftest.$ac_ext <<_ACEOF
6229 #line $LINENO "configure"
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 #include </usr/include/readline/readline.h>
6237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6240 grep -v '^ *+' conftest.er1 >conftest.err
6242 cat conftest.err >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } >/dev/null; then
6245 if test -s conftest.err; then
6246 ac_cpp_err=$ac_c_preproc_warn_flag
6253 if test -z "$ac_cpp_err"; then
6254 ac_header_preproc=yes
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6259 ac_header_preproc=no
6261 rm -f conftest.err conftest.$ac_ext
6262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6263 echo "${ECHO_T}$ac_header_preproc" >&6
6265 # So? What about this header?
6266 case $ac_header_compiler:$ac_header_preproc in
6268 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6269 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6270 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6271 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6274 ## ------------------------------------ ##
6275 ## Report this to bug-autoconf@gnu.org. ##
6276 ## ------------------------------------ ##
6279 sed "s/^/$as_me: WARNING: /" >&2
6282 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6283 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6284 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6285 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6286 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6287 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6290 ## ------------------------------------ ##
6291 ## Report this to bug-autoconf@gnu.org. ##
6292 ## ------------------------------------ ##
6295 sed "s/^/$as_me: WARNING: /" >&2
6298 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6299 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6300 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6305 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6306 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6309 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6310 cat >>confdefs.h <<\_ACEOF
6311 #define HAVE_READLINE 1
6315 CONS_INC="-I/usr/include/readline"
6316 CONS_LIBS="-lreadline -ltermcap"
6320 # Did not find standard library, so try Bacula's default
6321 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6323 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6324 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6331 # Is the header compilable?
6332 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6333 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6334 cat >conftest.$ac_ext <<_ACEOF
6335 #line $LINENO "configure"
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 $ac_includes_default
6342 #include <${TOP_DIR}/depkgs/readline/readline.h>
6344 rm -f conftest.$ac_objext
6345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6346 (eval $ac_compile) 2>&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try='test -s conftest.$ac_objext'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_header_compiler=yes
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6361 ac_header_compiler=no
6363 rm -f conftest.$ac_objext conftest.$ac_ext
6364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6365 echo "${ECHO_T}$ac_header_compiler" >&6
6367 # Is the header present?
6368 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6369 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6370 cat >conftest.$ac_ext <<_ACEOF
6371 #line $LINENO "configure"
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h. */
6377 #include <${TOP_DIR}/depkgs/readline/readline.h>
6379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6382 grep -v '^ *+' conftest.er1 >conftest.err
6384 cat conftest.err >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } >/dev/null; then
6387 if test -s conftest.err; then
6388 ac_cpp_err=$ac_c_preproc_warn_flag
6395 if test -z "$ac_cpp_err"; then
6396 ac_header_preproc=yes
6398 echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6401 ac_header_preproc=no
6403 rm -f conftest.err conftest.$ac_ext
6404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6405 echo "${ECHO_T}$ac_header_preproc" >&6
6407 # So? What about this header?
6408 case $ac_header_compiler:$ac_header_preproc in
6410 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6411 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6412 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6413 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6416 ## ------------------------------------ ##
6417 ## Report this to bug-autoconf@gnu.org. ##
6418 ## ------------------------------------ ##
6421 sed "s/^/$as_me: WARNING: /" >&2
6424 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6425 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6426 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6427 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6428 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6429 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6432 ## ------------------------------------ ##
6433 ## Report this to bug-autoconf@gnu.org. ##
6434 ## ------------------------------------ ##
6437 sed "s/^/$as_me: WARNING: /" >&2
6440 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6441 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 eval "$as_ac_Header=$ac_header_preproc"
6447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6452 cat >>confdefs.h <<\_ACEOF
6453 #define HAVE_READLINE 1
6457 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6458 CONS_LIBS="-lreadline -lhistory -ltermcap"
6459 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6460 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6464 echo "readline.h not found. readline turned off ..."
6490 # Minimal stuff for readline Makefile configuration
6493 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6494 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6495 if test "${ac_cv_header_stat_broken+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 cat >conftest.$ac_ext <<_ACEOF
6499 #line $LINENO "configure"
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h. */
6505 #include <sys/types.h>
6506 #include <sys/stat.h>
6508 #if defined(S_ISBLK) && defined(S_IFDIR)
6509 # if S_ISBLK (S_IFDIR)
6514 #if defined(S_ISBLK) && defined(S_IFCHR)
6515 # if S_ISBLK (S_IFCHR)
6520 #if defined(S_ISLNK) && defined(S_IFREG)
6521 # if S_ISLNK (S_IFREG)
6526 #if defined(S_ISSOCK) && defined(S_IFREG)
6527 # if S_ISSOCK (S_IFREG)
6533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6534 $EGREP "You lose" >/dev/null 2>&1; then
6535 ac_cv_header_stat_broken=yes
6537 ac_cv_header_stat_broken=no
6542 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6543 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6544 if test $ac_cv_header_stat_broken = yes; then
6546 cat >>confdefs.h <<\_ACEOF
6547 #define STAT_MACROS_BROKEN 1
6558 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6559 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6560 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6561 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 cat >conftest.$ac_ext <<_ACEOF
6566 #line $LINENO "configure"
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572 #include <sys/types.h>
6584 rm -f conftest.$ac_objext
6585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6586 (eval $ac_compile) 2>&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } &&
6590 { ac_try='test -s conftest.$ac_objext'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 eval "$as_ac_Header=yes"
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6601 eval "$as_ac_Header=no"
6603 rm -f conftest.$ac_objext conftest.$ac_ext
6605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6608 cat >>confdefs.h <<_ACEOF
6609 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6612 ac_header_dirent=$ac_hdr; break
6616 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6617 if test $ac_header_dirent = dirent.h; then
6618 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6619 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6620 if test "${ac_cv_search_opendir+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 ac_func_search_save_LIBS=$LIBS
6624 ac_cv_search_opendir=no
6625 cat >conftest.$ac_ext <<_ACEOF
6626 #line $LINENO "configure"
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6633 /* Override any gcc2 internal prototype to avoid an error. */
6637 /* We use char because int might match the return type of a gcc2
6638 builtin and then its argument prototype would still apply. */
6648 rm -f conftest.$ac_objext conftest$ac_exeext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6650 (eval $ac_link) 2>&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } &&
6654 { ac_try='test -s conftest$ac_exeext'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
6660 ac_cv_search_opendir="none required"
6662 echo "$as_me: failed program was:" >&5
6663 sed 's/^/| /' conftest.$ac_ext >&5
6666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6667 if test "$ac_cv_search_opendir" = no; then
6668 for ac_lib in dir; do
6669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6670 cat >conftest.$ac_ext <<_ACEOF
6671 #line $LINENO "configure"
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6678 /* Override any gcc2 internal prototype to avoid an error. */
6682 /* We use char because int might match the return type of a gcc2
6683 builtin and then its argument prototype would still apply. */
6693 rm -f conftest.$ac_objext conftest$ac_exeext
6694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6695 (eval $ac_link) 2>&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); } &&
6699 { ac_try='test -s conftest$ac_exeext'
6700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; }; then
6705 ac_cv_search_opendir="-l$ac_lib"
6708 echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6715 LIBS=$ac_func_search_save_LIBS
6717 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6718 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6719 if test "$ac_cv_search_opendir" != no; then
6720 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6725 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6726 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6727 if test "${ac_cv_search_opendir+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 ac_func_search_save_LIBS=$LIBS
6731 ac_cv_search_opendir=no
6732 cat >conftest.$ac_ext <<_ACEOF
6733 #line $LINENO "configure"
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6740 /* Override any gcc2 internal prototype to avoid an error. */
6744 /* We use char because int might match the return type of a gcc2
6745 builtin and then its argument prototype would still apply. */
6755 rm -f conftest.$ac_objext conftest$ac_exeext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6757 (eval $ac_link) 2>&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } &&
6761 { ac_try='test -s conftest$ac_exeext'
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; }; then
6767 ac_cv_search_opendir="none required"
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6774 if test "$ac_cv_search_opendir" = no; then
6776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6777 cat >conftest.$ac_ext <<_ACEOF
6778 #line $LINENO "configure"
6781 cat confdefs.h >>conftest.$ac_ext
6782 cat >>conftest.$ac_ext <<_ACEOF
6783 /* end confdefs.h. */
6785 /* Override any gcc2 internal prototype to avoid an error. */
6789 /* We use char because int might match the return type of a gcc2
6790 builtin and then its argument prototype would still apply. */
6800 rm -f conftest.$ac_objext conftest$ac_exeext
6801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6802 (eval $ac_link) 2>&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } &&
6806 { ac_try='test -s conftest$ac_exeext'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; }; then
6812 ac_cv_search_opendir="-l$ac_lib"
6815 echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6822 LIBS=$ac_func_search_save_LIBS
6824 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6825 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6826 if test "$ac_cv_search_opendir" != no; then
6827 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6841 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6844 echo "$as_me:$LINENO: checking for $ac_func" >&5
6845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6846 if eval "test \"\${$as_ac_var+set}\" = set"; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 cat >conftest.$ac_ext <<_ACEOF
6850 #line $LINENO "configure"
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h. */
6856 /* System header to define __stub macros and hopefully few prototypes,
6857 which can conflict with char $ac_func (); below.
6858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6859 <limits.h> exists even on freestanding compilers. */
6861 # include <limits.h>
6863 # include <assert.h>
6865 /* Override any gcc2 internal prototype to avoid an error. */
6870 /* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6873 /* The GNU C library defines this for functions which it implements
6874 to always fail with ENOSYS. Some functions are actually named
6875 something starting with __ and the normal name is an alias. */
6876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6879 char (*f) () = $ac_func;
6888 return f != $ac_func;
6893 rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895 (eval $ac_link) 2>&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } &&
6899 { ac_try='test -s conftest$ac_exeext'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; }; then
6905 eval "$as_ac_var=yes"
6907 echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.$ac_ext >&5
6910 eval "$as_ac_var=no"
6912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6916 if test `eval echo '${'$as_ac_var'}'` = yes; then
6917 cat >>confdefs.h <<_ACEOF
6918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6926 for ac_func in nanosleep nl_langinfo
6928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6929 echo "$as_me:$LINENO: checking for $ac_func" >&5
6930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6931 if eval "test \"\${$as_ac_var+set}\" = set"; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6934 cat >conftest.$ac_ext <<_ACEOF
6935 #line $LINENO "configure"
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6941 /* System header to define __stub macros and hopefully few prototypes,
6942 which can conflict with char $ac_func (); below.
6943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6944 <limits.h> exists even on freestanding compilers. */
6946 # include <limits.h>
6948 # include <assert.h>
6950 /* Override any gcc2 internal prototype to avoid an error. */
6955 /* We use char because int might match the return type of a gcc2
6956 builtin and then its argument prototype would still apply. */
6958 /* The GNU C library defines this for functions which it implements
6959 to always fail with ENOSYS. Some functions are actually named
6960 something starting with __ and the normal name is an alias. */
6961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6964 char (*f) () = $ac_func;
6973 return f != $ac_func;
6978 rm -f conftest.$ac_objext conftest$ac_exeext
6979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6980 (eval $ac_link) 2>&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } &&
6984 { ac_try='test -s conftest$ac_exeext'
6985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; }; then
6990 eval "$as_ac_var=yes"
6992 echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6995 eval "$as_ac_var=no"
6997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7001 if test `eval echo '${'$as_ac_var'}'` = yes; then
7002 cat >>confdefs.h <<_ACEOF
7003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7010 for ac_header in varargs.h
7012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7014 echo "$as_me:$LINENO: checking for $ac_header" >&5
7015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7022 # Is the header compilable?
7023 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7025 cat >conftest.$ac_ext <<_ACEOF
7026 #line $LINENO "configure"
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h. */
7032 $ac_includes_default
7033 #include <$ac_header>
7035 rm -f conftest.$ac_objext
7036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7037 (eval $ac_compile) 2>&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } &&
7041 { ac_try='test -s conftest.$ac_objext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 ac_header_compiler=yes
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7052 ac_header_compiler=no
7054 rm -f conftest.$ac_objext conftest.$ac_ext
7055 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7056 echo "${ECHO_T}$ac_header_compiler" >&6
7058 # Is the header present?
7059 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7061 cat >conftest.$ac_ext <<_ACEOF
7062 #line $LINENO "configure"
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7068 #include <$ac_header>
7070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7073 grep -v '^ *+' conftest.er1 >conftest.err
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } >/dev/null; then
7078 if test -s conftest.err; then
7079 ac_cpp_err=$ac_c_preproc_warn_flag
7086 if test -z "$ac_cpp_err"; then
7087 ac_header_preproc=yes
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7092 ac_header_preproc=no
7094 rm -f conftest.err conftest.$ac_ext
7095 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7096 echo "${ECHO_T}$ac_header_preproc" >&6
7098 # So? What about this header?
7099 case $ac_header_compiler:$ac_header_preproc in
7101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7107 ## ------------------------------------ ##
7108 ## Report this to bug-autoconf@gnu.org. ##
7109 ## ------------------------------------ ##
7112 sed "s/^/$as_me: WARNING: /" >&2
7115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7123 ## ------------------------------------ ##
7124 ## Report this to bug-autoconf@gnu.org. ##
7125 ## ------------------------------------ ##
7128 sed "s/^/$as_me: WARNING: /" >&2
7131 echo "$as_me:$LINENO: checking for $ac_header" >&5
7132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 eval "$as_ac_Header=$ac_header_preproc"
7138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7143 cat >>confdefs.h <<_ACEOF
7144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7152 # End of readline/conio stuff
7153 # -----------------------------------------------------------------------
7155 # -----------------------------------------------------------------------
7156 # Check for Python support
7158 echo "$as_me:$LINENO: checking for Python support" >&5
7159 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7161 # Check whether --with-python or --without-python was given.
7162 if test "${with_python+set}" = set; then
7163 withval="$with_python"
7167 if test "$withval" != "no"; then
7168 if test "$withval" = "yes"; then
7169 if test -f /usr/include/python2.2/Python.h; then
7170 PYTHON_INCDIR=-I/usr/include/python2.2
7171 PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7172 elif test -f /usr/include/python2.3/Python.h; then
7173 PYTHON_INCDIR=-I/usr/include/python2.3
7174 PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7175 elif test -f /usr/include/python2.4/Python.h; then
7176 PYTHON_INCDIR=-I/usr/include/python2.4
7177 PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7178 elif test -f $prefix/include/Python.h; then
7179 PYTHON_INCDIR=-I$prefix/include
7180 PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7182 echo "$as_me:$LINENO: result: no" >&5
7183 echo "${ECHO_T}no" >&6
7184 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7185 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7186 { (exit 1); exit 1; }; }
7189 if test -f $withval/Python.h; then
7190 PYTHON_INCDIR=-I$withval
7191 PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7192 elif test -f $withval/include/Python.h; then
7193 PYTHON_INCDIR=-I$withval/include
7194 PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7196 echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6
7198 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7199 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7200 { (exit 1); exit 1; }; }
7203 cat >>confdefs.h <<\_ACEOF
7204 #define HAVE_PYTHON 1
7207 echo "$as_me:$LINENO: result: yes" >&5
7208 echo "${ECHO_T}yes" >&6
7212 echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6
7218 echo "$as_me:$LINENO: result: no" >&5
7219 echo "${ECHO_T}no" >&6
7227 # Find where sockets are (especially for Solaris)
7228 # Do this before the TCP Wrappers test since tcp wrappers
7229 # uses the socket library and some linkers are stupid.
7231 echo "$as_me:$LINENO: checking for socket" >&5
7232 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7233 if test "${ac_cv_func_socket+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 cat >conftest.$ac_ext <<_ACEOF
7237 #line $LINENO "configure"
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7243 /* System header to define __stub macros and hopefully few prototypes,
7244 which can conflict with char socket (); below.
7245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7246 <limits.h> exists even on freestanding compilers. */
7248 # include <limits.h>
7250 # include <assert.h>
7252 /* Override any gcc2 internal prototype to avoid an error. */
7257 /* We use char because int might match the return type of a gcc2
7258 builtin and then its argument prototype would still apply. */
7260 /* The GNU C library defines this for functions which it implements
7261 to always fail with ENOSYS. Some functions are actually named
7262 something starting with __ and the normal name is an alias. */
7263 #if defined (__stub_socket) || defined (__stub___socket)
7266 char (*f) () = socket;
7280 rm -f conftest.$ac_objext conftest$ac_exeext
7281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7282 (eval $ac_link) 2>&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } &&
7286 { ac_try='test -s conftest$ac_exeext'
7287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); }; }; then
7292 ac_cv_func_socket=yes
7294 echo "$as_me: failed program was:" >&5
7295 sed 's/^/| /' conftest.$ac_ext >&5
7297 ac_cv_func_socket=no
7299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7301 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7302 echo "${ECHO_T}$ac_cv_func_socket" >&6
7303 if test $ac_cv_func_socket = yes; then
7304 echo "$as_me:$LINENO: result: using libc's socket" >&5
7305 echo "${ECHO_T}using libc's socket" >&6
7308 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7309 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7310 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 ac_check_lib_save_LIBS=$LIBS
7315 cat >conftest.$ac_ext <<_ACEOF
7316 #line $LINENO "configure"
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7323 /* Override any gcc2 internal prototype to avoid an error. */
7327 /* We use char because int might match the return type of a gcc2
7328 builtin and then its argument prototype would still apply. */
7338 rm -f conftest.$ac_objext conftest$ac_exeext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7340 (eval $ac_link) 2>&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } &&
7344 { ac_try='test -s conftest$ac_exeext'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; }; then
7350 ac_cv_lib_xnet_socket=yes
7352 echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7355 ac_cv_lib_xnet_socket=no
7357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7358 LIBS=$ac_check_lib_save_LIBS
7360 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7361 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7362 if test $ac_cv_lib_xnet_socket = yes; then
7363 cat >>confdefs.h <<_ACEOF
7364 #define HAVE_LIBXNET 1
7372 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7373 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7374 if test "${ac_cv_lib_socket_socket+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 ac_check_lib_save_LIBS=$LIBS
7378 LIBS="-lsocket $LIBS"
7379 cat >conftest.$ac_ext <<_ACEOF
7380 #line $LINENO "configure"
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7387 /* Override any gcc2 internal prototype to avoid an error. */
7391 /* We use char because int might match the return type of a gcc2
7392 builtin and then its argument prototype would still apply. */
7402 rm -f conftest.$ac_objext conftest$ac_exeext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7404 (eval $ac_link) 2>&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } &&
7408 { ac_try='test -s conftest$ac_exeext'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; }; then
7414 ac_cv_lib_socket_socket=yes
7416 echo "$as_me: failed program was:" >&5
7417 sed 's/^/| /' conftest.$ac_ext >&5
7419 ac_cv_lib_socket_socket=no
7421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7422 LIBS=$ac_check_lib_save_LIBS
7424 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7425 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7426 if test $ac_cv_lib_socket_socket = yes; then
7427 cat >>confdefs.h <<_ACEOF
7428 #define HAVE_LIBSOCKET 1
7431 LIBS="-lsocket $LIBS"
7436 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7437 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7438 if test "${ac_cv_lib_inet_socket+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 ac_check_lib_save_LIBS=$LIBS
7443 cat >conftest.$ac_ext <<_ACEOF
7444 #line $LINENO "configure"
7447 cat confdefs.h >>conftest.$ac_ext
7448 cat >>conftest.$ac_ext <<_ACEOF
7449 /* end confdefs.h. */
7451 /* Override any gcc2 internal prototype to avoid an error. */
7455 /* We use char because int might match the return type of a gcc2
7456 builtin and then its argument prototype would still apply. */
7466 rm -f conftest.$ac_objext conftest$ac_exeext
7467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7468 (eval $ac_link) 2>&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } &&
7472 { ac_try='test -s conftest$ac_exeext'
7473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); }; }; then
7478 ac_cv_lib_inet_socket=yes
7480 echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7483 ac_cv_lib_inet_socket=no
7485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7486 LIBS=$ac_check_lib_save_LIBS
7488 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7489 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7490 if test $ac_cv_lib_inet_socket = yes; then
7491 cat >>confdefs.h <<_ACEOF
7492 #define HAVE_LIBINET 1
7503 # -----------------------------------------------------------
7504 # Check whether user wants TCP wrappers support (default off)
7505 # -----------------------------------------------------------
7508 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7509 if test "${with_tcp_wrappers+set}" = set; then
7510 withval="$with_tcp_wrappers"
7512 if test "x$withval" != "xno" ; then
7514 LIBS="$saved_LIBS -lwrap"
7515 echo "$as_me:$LINENO: checking for libwrap" >&5
7516 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7517 cat >conftest.$ac_ext <<_ACEOF
7518 #line $LINENO "configure"
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7525 int deny_severity = 0;
7526 int allow_severity = 0;
7527 struct request_info *req;
7536 rm -f conftest.$ac_objext conftest$ac_exeext
7537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7538 (eval $ac_link) 2>&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } &&
7542 { ac_try='test -s conftest$ac_exeext'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; }; then
7549 echo "$as_me:$LINENO: result: yes" >&5
7550 echo "${ECHO_T}yes" >&6
7551 cat >>confdefs.h <<\_ACEOF
7552 #define HAVE_LIBWRAP 1
7558 echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7562 LIBS="$saved_LIBS -lwrap -lnsl"
7563 cat >conftest.$ac_ext <<_ACEOF
7564 #line $LINENO "configure"
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7571 int deny_severity = 0;
7572 int allow_severity = 0;
7573 struct request_info *req;
7582 rm -f conftest.$ac_objext conftest$ac_exeext
7583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7584 (eval $ac_link) 2>&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } &&
7588 { ac_try='test -s conftest$ac_exeext'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; }; then
7595 echo "$as_me:$LINENO: result: yes" >&5
7596 echo "${ECHO_T}yes" >&6
7597 cat >>confdefs.h <<\_ACEOF
7598 #define HAVE_LIBWRAP 1
7604 echo "$as_me: failed program was:" >&5
7605 sed 's/^/| /' conftest.$ac_ext >&5
7607 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7608 echo "$as_me: error: *** libwrap missing" >&2;}
7609 { (exit 1); exit 1; }; }
7612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7621 # -----------------------------------------------------------
7622 # Check whether OpenSSL is available
7623 # -----------------------------------------------------------
7624 echo "$as_me:$LINENO: checking for OpenSSL" >&5
7625 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
7627 # Check whether --with-openssl or --without-openssl was given.
7628 if test "${with_openssl+set}" = set; then
7629 withval="$with_openssl"
7630 with_openssl_directory=${withval}
7633 if test "x$with_openssl_directory" != "xno"; then
7634 OPENSSL_LIBS="-lssl -lcrypto"
7637 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
7638 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
7639 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
7643 saved_CFLAGS="$CFLAGS"
7644 LIBS="$saved_LIBS $OPENSSL_LIBS"
7645 CFLAGS="$saved_CFLAGS $OPENSSL_INC"
7647 cat >conftest.$ac_ext <<_ACEOF
7648 #line $LINENO "configure"
7651 cat confdefs.h >>conftest.$ac_ext
7652 cat >>conftest.$ac_ext <<_ACEOF
7653 /* end confdefs.h. */
7654 #include <openssl/ssl.h>
7658 CRYPTO_set_id_callback(NULL);
7663 rm -f conftest.$ac_objext conftest$ac_exeext
7664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7665 (eval $ac_link) 2>&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } &&
7669 { ac_try='test -s conftest$ac_exeext'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7677 echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7686 CFLAGS="$saved_CFLAGS"
7688 if test "$support_tls" = "yes"; then
7690 cat >>confdefs.h <<\_ACEOF
7691 #define HAVE_OPENSSL 1
7695 cat >>confdefs.h <<\_ACEOF
7706 echo "$as_me:$LINENO: result: $support_tls" >&5
7707 echo "${ECHO_T}$support_tls" >&6
7713 # ------------------------------------------
7714 # Where to place working dir
7715 # ------------------------------------------
7716 working_dir=`eval echo ${prefix}/var/bacula/working`
7718 # Check whether --with-working-dir or --without-working-dir was given.
7719 if test "${with_working_dir+set}" = set; then
7720 withval="$with_working_dir"
7722 if test "x$withval" != "xno" ; then
7723 working_dir=$withval
7732 # ------------------------------------------
7733 # Where to place scriptdir (script files)
7734 # ------------------------------------------
7735 scriptdir=`eval echo ${sysconfdir}`
7737 # Check whether --with-scriptdir or --without-scriptdir was given.
7738 if test "${with_scriptdir+set}" = set; then
7739 withval="$with_scriptdir"
7741 if test "x$withval" != "xno" ; then
7751 # ------------------------------------------
7752 # Where to send dump email
7753 # ------------------------------------------
7754 dump_email=root@localhost
7756 # Check whether --with-dump-email or --without-dump-email was given.
7757 if test "${with_dump_email+set}" = set; then
7758 withval="$with_dump_email"
7760 if test "x$withval" != "xno" ; then
7769 # ------------------------------------------
7770 # Where to send job email
7771 # ------------------------------------------
7772 job_email=root@localhost
7774 # Check whether --with-job-email or --without-job-email was given.
7775 if test "${with_job_email+set}" = set; then
7776 withval="$with_job_email"
7778 if test "x$withval" != "xno" ; then
7787 # ------------------------------------------
7788 # Where to find smtp host
7789 # ------------------------------------------
7792 # Check whether --with-smtp_host or --without-smtp_host was given.
7793 if test "${with_smtp_host+set}" = set; then
7794 withval="$with_smtp_host"
7796 if test "x$withval" != "xno" ; then
7806 # ------------------------------------
7807 # Where to place pid files
7808 # ------------------------------------
7811 # Check whether --with-pid-dir or --without-pid-dir was given.
7812 if test "${with_pid_dir+set}" = set; then
7813 withval="$with_pid_dir"
7815 if test "x$withval" != "xno" ; then
7822 cat >>confdefs.h <<_ACEOF
7823 #define _PATH_BACULA_PIDDIR "$piddir"
7829 # ------------------------------------
7830 # Where to place subsys "lock file"
7831 # ------------------------------------
7832 subsysdir=/var/run/subsys
7834 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7835 if test "${with_subsys_dir+set}" = set; then
7836 withval="$with_subsys_dir"
7838 if test "x$withval" != "xno" ; then
7849 # ------------------------------------
7850 # Where to start assigning ports
7851 # ------------------------------------
7854 # Check whether --with-baseport or --without-baseport was given.
7855 if test "${with_baseport+set}" = set; then
7856 withval="$with_baseport"
7858 if test "x$withval" != "xno" ; then
7866 dir_port=`expr $baseport`
7867 fd_port=`expr $baseport + 1`
7868 sd_port=`expr $fd_port + 1`
7875 # ------------------------------------------
7876 # Generate passwords
7877 # ------------------------------------------
7880 # Check whether --with-dir-password or --without-dir-password was given.
7881 if test "${with_dir_password+set}" = set; then
7882 withval="$with_dir_password"
7884 if test "x$withval" != "xno" ; then
7885 dir_password=$withval
7891 if test "x$dir_password" = "x" ; then
7892 if test "x$OPENSSL" = "xnone" ; then
7893 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7894 key=`autoconf/randpass 33`
7896 key=`openssl rand -base64 33`
7903 # Check whether --with-fd-password or --without-fd-password was given.
7904 if test "${with_fd_password+set}" = set; then
7905 withval="$with_fd_password"
7907 if test "x$withval" != "xno" ; then
7908 fd_password=$withval
7914 if test "x$fd_password" = "x" ; then
7915 if test "x$OPENSSL" = "xnone" ; then
7916 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7917 key=`autoconf/randpass 37`
7919 key=`openssl rand -base64 33`
7926 # Check whether --with-sd-password or --without-sd-password was given.
7927 if test "${with_sd_password+set}" = set; then
7928 withval="$with_sd_password"
7930 if test "x$withval" != "xno" ; then
7931 sd_password=$withval
7937 if test "x$sd_password" = "x" ; then
7938 if test "x$OPENSSL" = "xnone" ; then
7939 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7940 key=`autoconf/randpass 41`
7942 key=`openssl rand -base64 33`
7949 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
7950 if test "${with_mon_dir_password+set}" = set; then
7951 withval="$with_mon_dir_password"
7953 if test "x$withval" != "xno" ; then
7954 mon_dir_password=$withval
7960 if test "x$mon_dir_password" = "x" ; then
7961 if test "x$OPENSSL" = "xnone" ; then
7962 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7963 key=`autoconf/randpass 33`
7965 key=`openssl rand -base64 33`
7967 mon_dir_password=$key
7972 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
7973 if test "${with_mon_fd_password+set}" = set; then
7974 withval="$with_mon_fd_password"
7976 if test "x$withval" != "xno" ; then
7977 mon_fd_password=$withval
7983 if test "x$mon_fd_password" = "x" ; then
7984 if test "x$OPENSSL" = "xnone" ; then
7985 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7986 key=`autoconf/randpass 37`
7988 key=`openssl rand -base64 33`
7990 mon_fd_password=$key
7995 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
7996 if test "${with_mon_sd_password+set}" = set; then
7997 withval="$with_mon_sd_password"
7999 if test "x$withval" != "xno" ; then
8000 mon_sd_password=$withval
8006 if test "x$mon_sd_password" = "x" ; then
8007 if test "x$OPENSSL" = "xnone" ; then
8008 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8009 key=`autoconf/randpass 41`
8011 key=`openssl rand -base64 33`
8013 mon_sd_password=$key
8023 # -------------------------------------------------------------------------
8024 # Set variables for bimagemgr installation
8025 # -------------------------------------------------------------------------
8026 bimagemgr_cgidir=/var/www/cgi-bin
8028 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8029 if test "${with_bimagemgr_cgidir+set}" = set; then
8030 withval="$with_bimagemgr_cgidir"
8032 if test "x$withval" != "xno" ; then
8033 bimagemgr_cgidir=$withval
8039 bimagemgr_docdir=/var/www/html
8041 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8042 if test "${with_bimagemgr_docdir+set}" = set; then
8043 withval="$with_bimagemgr_docdir"
8045 if test "x$withval" != "xno" ; then
8046 bimagemgr_docdir=$withval
8052 bimagemgr_binowner=root
8054 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8055 if test "${with_bimagemgr_binowner+set}" = set; then
8056 withval="$with_bimagemgr_binowner"
8058 if test "x$withval" != "xno" ; then
8059 bimagemgr_binowner=$withval
8065 bimagemgr_bingroup=root
8067 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8068 if test "${with_bimagemgr_bingroup+set}" = set; then
8069 withval="$with_bimagemgr_bingroup"
8071 if test "x$withval" != "xno" ; then
8072 bimagemgr_bingroup=$withval
8078 bimagemgr_dataowner=apache
8080 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8081 if test "${with_bimagemgr_dataowner+set}" = set; then
8082 withval="$with_bimagemgr_dataowner"
8084 if test "x$withval" != "xno" ; then
8085 bimagemgr_dataowner=$withval
8091 bimagemgr_datagroup=apache
8093 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8094 if test "${with_bimagemgr_datagroup+set}" = set; then
8095 withval="$with_bimagemgr_datagroup"
8097 if test "x$withval" != "xno" ; then
8098 bimagemgr_datagroup=$withval
8112 # Handle users and groups for each daemon
8116 # Check whether --with-dir_user or --without-dir_user was given.
8117 if test "${with_dir_user+set}" = set; then
8118 withval="$with_dir_user"
8120 if test "x$withval" != "x" ; then
8129 # Check whether --with-dir_group or --without-dir_group was given.
8130 if test "${with_dir_group+set}" = set; then
8131 withval="$with_dir_group"
8133 if test "x$withval" != "x" ; then
8142 # Check whether --with-sd_user or --without-sd_user was given.
8143 if test "${with_sd_user+set}" = set; then
8144 withval="$with_sd_user"
8146 if test "x$withval" != "x" ; then
8155 # Check whether --with-sd_group or --without-sd_group was given.
8156 if test "${with_sd_group+set}" = set; then
8157 withval="$with_sd_group"
8159 if test "x$withval" != "x" ; then
8168 # Check whether --with-fd_user or --without-fd_user was given.
8169 if test "${with_fd_user+set}" = set; then
8170 withval="$with_fd_user"
8172 if test "x$withval" != "x" ; then
8181 # Check whether --with-fd_group or --without-fd_group was given.
8182 if test "${with_fd_group+set}" = set; then
8183 withval="$with_fd_group"
8185 if test "x$withval" != "x" ; then
8203 # allow setting default executable permissions
8207 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8208 if test "${with_sbin_perm+set}" = set; then
8209 withval="$with_sbin_perm"
8211 if test "x$withval" != "x" ; then
8220 # ------------------------------------------------
8221 # Bacula check for various SQL database engines
8222 # ------------------------------------------------
8225 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8226 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8228 # Check whether --with-postgresql or --without-postgresql was given.
8229 if test "${with_postgresql+set}" = set; then
8230 withval="$with_postgresql"
8232 if test "$withval" != "no"; then
8233 if test "$db_found" = "yes"; then
8234 echo "$as_me:$LINENO: result: error" >&5
8235 echo "${ECHO_T}error" >&6
8236 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8237 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8238 { (exit 1); exit 1; }; };
8240 if test "$withval" = "yes"; then
8241 if test -f /usr/local/include/libpq-fe.h; then
8242 POSTGRESQL_INCDIR=/usr/local/include
8243 POSTGRESQL_LIBDIR=/usr/local/lib
8244 POSTGRESQL_BINDIR=/usr/local/bin
8245 elif test -f /usr/include/libpq-fe.h; then
8246 POSTGRESQL_INCDIR=/usr/include
8247 POSTGRESQL_LIBDIR=/usr/lib
8248 POSTGRESQL_BINDIR=/usr/bin
8249 elif test -f /usr/include/pgsql/libpq-fe.h; then
8250 POSTGRESQL_INCDIR=/usr/include/pgsql
8251 POSTGRESQL_LIBDIR=/usr/lib/pgsql
8252 POSTGRESQL_BINDIR=/usr/bin
8253 elif test -f /usr/include/postgresql/libpq-fe.h; then
8254 POSTGRESQL_INCDIR=/usr/include/postgresql
8255 POSTGRESQL_LIBDIR=/usr/lib/postgresql
8256 POSTGRESQL_BINDIR=/usr/bin
8258 echo "$as_me:$LINENO: result: no" >&5
8259 echo "${ECHO_T}no" >&6
8260 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8261 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8262 { (exit 1); exit 1; }; }
8264 elif test -f $withval/include/libpq-fe.h; then
8265 POSTGRESQL_INCDIR=$withval/include
8266 POSTGRESQL_LIBDIR=$withval/lib
8267 POSTGRESQL_BINDIR=$withval/bin
8268 elif test -f $withval/include/postgresql/libpq-fe.h; then
8269 POSTGRESQL_INCDIR=$withval/include/postgresql
8270 POSTGRESQL_LIBDIR=$withval/lib
8271 POSTGRESQL_BINDIR=$withval/bin
8273 echo "$as_me:$LINENO: result: no" >&5
8274 echo "${ECHO_T}no" >&6
8275 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8276 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8277 { (exit 1); exit 1; }; }
8279 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8280 echo "$as_me:$LINENO: checking for crypt" >&5
8281 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8282 if test "${ac_cv_func_crypt+set}" = set; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8285 cat >conftest.$ac_ext <<_ACEOF
8286 #line $LINENO "configure"
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8292 /* System header to define __stub macros and hopefully few prototypes,
8293 which can conflict with char crypt (); below.
8294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8295 <limits.h> exists even on freestanding compilers. */
8297 # include <limits.h>
8299 # include <assert.h>
8301 /* Override any gcc2 internal prototype to avoid an error. */
8306 /* We use char because int might match the return type of a gcc2
8307 builtin and then its argument prototype would still apply. */
8309 /* The GNU C library defines this for functions which it implements
8310 to always fail with ENOSYS. Some functions are actually named
8311 something starting with __ and the normal name is an alias. */
8312 #if defined (__stub_crypt) || defined (__stub___crypt)
8315 char (*f) () = crypt;
8329 rm -f conftest.$ac_objext conftest$ac_exeext
8330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8331 (eval $ac_link) 2>&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } &&
8335 { ac_try='test -s conftest$ac_exeext'
8336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; }; then
8341 ac_cv_func_crypt=yes
8343 echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8350 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8351 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8352 if test $ac_cv_func_crypt = yes; then
8355 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8356 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8357 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 ac_check_lib_save_LIBS=$LIBS
8361 LIBS="-lcrypt $LIBS"
8362 cat >conftest.$ac_ext <<_ACEOF
8363 #line $LINENO "configure"
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h. */
8370 /* Override any gcc2 internal prototype to avoid an error. */
8374 /* We use char because int might match the return type of a gcc2
8375 builtin and then its argument prototype would still apply. */
8385 rm -f conftest.$ac_objext conftest$ac_exeext
8386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8387 (eval $ac_link) 2>&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try='test -s conftest$ac_exeext'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8397 ac_cv_lib_crypt_crypt=yes
8399 echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8402 ac_cv_lib_crypt_crypt=no
8404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8405 LIBS=$ac_check_lib_save_LIBS
8407 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8408 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8409 if test $ac_cv_lib_crypt_crypt = yes; then
8410 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8415 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8416 SQL_LFLAGS=$POSTGRESQL_LFLAGS
8417 SQL_BINDIR=$POSTGRESQL_BINDIR
8418 cat >>confdefs.h <<\_ACEOF
8419 #define HAVE_POSTGRESQL 1
8422 echo "$as_me:$LINENO: result: yes" >&5
8423 echo "${ECHO_T}yes" >&6
8425 support_postgresql=yes
8429 echo "$as_me:$LINENO: result: no" >&5
8430 echo "${ECHO_T}no" >&6
8435 echo "$as_me:$LINENO: result: no" >&5
8436 echo "${ECHO_T}no" >&6
8447 echo "$as_me:$LINENO: checking for MySQL support" >&5
8448 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8450 # Check whether --with-mysql or --without-mysql was given.
8451 if test "${with_mysql+set}" = set; then
8452 withval="$with_mysql"
8454 if test "$withval" != "no"; then
8455 if test "$withval" = "yes"; then
8456 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8457 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8458 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8459 MYSQL_BINDIR=/usr/local/mysql/bin
8460 elif test -f /usr/include/mysql/mysql.h; then
8461 MYSQL_INCDIR=/usr/include/mysql
8462 MYSQL_LIBDIR=/usr/lib/mysql
8463 MYSQL_BINDIR=/usr/bin
8464 elif test -f /usr/include/mysql.h; then
8465 MYSQL_INCDIR=/usr/include
8466 MYSQL_LIBDIR=/usr/lib
8467 MYSQL_BINDIR=/usr/bin
8468 elif test -f /usr/local/include/mysql/mysql.h; then
8469 MYSQL_INCDIR=/usr/local/include/mysql
8470 MYSQL_LIBDIR=/usr/local/lib/mysql
8471 MYSQL_BINDIR=/usr/local/bin
8472 elif test -f /usr/local/include/mysql.h; then
8473 MYSQL_INCDIR=/usr/local/include
8474 MYSQL_LIBDIR=/usr/local/lib
8475 MYSQL_BINDIR=/usr/local/bin
8477 echo "$as_me:$LINENO: result: no" >&5
8478 echo "${ECHO_T}no" >&6
8479 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8480 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8481 { (exit 1); exit 1; }; }
8484 if test -f $withval/include/mysql/mysql.h; then
8485 MYSQL_INCDIR=$withval/include/mysql
8486 MYSQL_LIBDIR=$withval/lib/mysql
8487 MYSQL_BINDIR=$withval/bin
8488 elif test -f $withval/include/mysql.h; then
8489 MYSQL_INCDIR=$withval/include
8490 MYSQL_LIBDIR=$withval/lib
8491 MYSQL_BINDIR=$withval/bin
8493 echo "$as_me:$LINENO: result: no" >&5
8494 echo "${ECHO_T}no" >&6
8495 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8496 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8497 { (exit 1); exit 1; }; }
8500 SQL_INCLUDE=-I$MYSQL_INCDIR
8501 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8502 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8503 cat >>confdefs.h <<\_ACEOF
8504 #define HAVE_THREAD_SAFE_MYSQL 1
8508 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8510 SQL_BINDIR=$MYSQL_BINDIR
8512 cat >>confdefs.h <<\_ACEOF
8513 #define HAVE_MYSQL 1
8516 echo "$as_me:$LINENO: result: yes" >&5
8517 echo "${ECHO_T}yes" >&6
8524 echo "$as_me:$LINENO: result: no" >&5
8525 echo "${ECHO_T}no" >&6
8532 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8533 if test "${with_embedded_mysql+set}" = set; then
8534 withval="$with_embedded_mysql"
8536 if test "$withval" != "no"; then
8537 if test "$withval" = "yes"; then
8538 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8539 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8540 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8541 MYSQL_BINDIR=/usr/local/mysql/bin
8542 elif test -f /usr/include/mysql/mysql.h; then
8543 MYSQL_INCDIR=/usr/include/mysql
8544 MYSQL_LIBDIR=/usr/lib/mysql
8545 MYSQL_BINDIR=/usr/bin
8546 elif test -f /usr/include/mysql.h; then
8547 MYSQL_INCDIR=/usr/include
8548 MYSQL_LIBDIR=/usr/lib
8549 MYSQL_BINDIR=/usr/bin
8550 elif test -f /usr/local/include/mysql/mysql.h; then
8551 MYSQL_INCDIR=/usr/local/include/mysql
8552 MYSQL_LIBDIR=/usr/local/lib/mysql
8553 MYSQL_BINDIR=/usr/local/bin
8554 elif test -f /usr/local/include/mysql.h; then
8555 MYSQL_INCDIR=/usr/local/include
8556 MYSQL_LIBDIR=/usr/local/lib
8557 MYSQL_BINDIR=/usr/local/bin
8559 echo "$as_me:$LINENO: result: no" >&5
8560 echo "${ECHO_T}no" >&6
8561 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8562 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8563 { (exit 1); exit 1; }; }
8566 if test -f $withval/include/mysql/mysql.h; then
8567 MYSQL_INCDIR=$withval/include/mysql
8568 MYSQL_LIBDIR=$withval/lib/mysql
8569 MYSQL_BINDIR=$withval/bin
8570 elif test -f $withval/include/mysql.h; then
8571 MYSQL_INCDIR=$withval/include
8572 MYSQL_LIBDIR=$withval/lib
8573 MYSQL_BINDIR=$withval/bin
8575 echo "$as_me:$LINENO: result: no" >&5
8576 echo "${ECHO_T}no" >&6
8577 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8578 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8579 { (exit 1); exit 1; }; }
8582 SQL_INCLUDE=-I$MYSQL_INCDIR
8583 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8584 SQL_BINDIR=$MYSQL_BINDIR
8586 cat >>confdefs.h <<\_ACEOF
8587 #define HAVE_MYSQL 1
8590 cat >>confdefs.h <<\_ACEOF
8591 #define HAVE_EMBEDDED_MYSQL 1
8594 echo "$as_me:$LINENO: result: yes" >&5
8595 echo "${ECHO_T}yes" >&6
8602 echo "$as_me:$LINENO: result: no" >&5
8603 echo "${ECHO_T}no" >&6
8618 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
8619 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
8621 # Check whether --with-sqlite3 or --without-sqlite3 was given.
8622 if test "${with_sqlite3+set}" = set; then
8623 withval="$with_sqlite3"
8625 if test "$withval" != "no"; then
8626 if test "$withval" = "yes"; then
8627 if test -f /usr/local/include/sqlite3.h; then
8628 SQLITE_INCDIR=/usr/local/include
8629 SQLITE_LIBDIR=/usr/local/lib
8630 SQLITE_BINDIR=/usr/local/bin
8631 elif test -f /usr/include/sqlite3.h; then
8632 SQLITE_INCDIR=/usr/include
8633 SQLITE_LIBDIR=/usr/lib
8634 SQLITE_BINDIR=/usr/bin
8635 elif test -f $prefix/include/sqlite3.h; then
8636 SQLITE_INCDIR=$prefix/include
8637 SQLITE_LIBDIR=$prefix/lib
8638 SQLITE_BINDIR=$prefix/bin
8640 echo "$as_me:$LINENO: result: no" >&5
8641 echo "${ECHO_T}no" >&6
8642 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
8643 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
8644 { (exit 1); exit 1; }; }
8647 if test -f $withval/sqlite3.h; then
8648 SQLITE_INCDIR=$withval
8649 SQLITE_LIBDIR=$withval
8650 SQLITE_BINDIR=$withval
8651 elif test -f $withval/include/sqlite3.h; then
8652 SQLITE_INCDIR=$withval/include
8653 SQLITE_LIBDIR=$withval/lib
8654 SQLITE_BINDIR=$withval/bin
8656 echo "$as_me:$LINENO: result: no" >&5
8657 echo "${ECHO_T}no" >&6
8658 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
8659 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
8660 { (exit 1); exit 1; }; }
8663 SQL_INCLUDE=-I$SQLITE_INCDIR
8664 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
8665 SQL_BINDIR=$SQLITE_BINDIR
8667 cat >>confdefs.h <<\_ACEOF
8668 #define HAVE_SQLITE3 1
8671 echo "$as_me:$LINENO: result: yes" >&5
8672 echo "${ECHO_T}yes" >&6
8679 echo "$as_me:$LINENO: result: no" >&5
8680 echo "${ECHO_T}no" >&6
8685 echo "$as_me:$LINENO: result: no" >&5
8686 echo "${ECHO_T}no" >&6
8697 echo "$as_me:$LINENO: checking for SQLite support" >&5
8698 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
8700 # Check whether --with-sqlite or --without-sqlite was given.
8701 if test "${with_sqlite+set}" = set; then
8702 withval="$with_sqlite"
8704 if test "$withval" != "no"; then
8705 if test "$withval" = "yes"; then
8706 if test -f /usr/local/include/sqlite.h; then
8707 SQLITE_INCDIR=/usr/local/include
8708 SQLITE_LIBDIR=/usr/local/lib
8709 SQLITE_BINDIR=/usr/local/bin
8710 elif test -f /usr/include/sqlite.h; then
8711 SQLITE_INCDIR=/usr/include
8712 SQLITE_LIBDIR=/usr/lib
8713 SQLITE_BINDIR=/usr/bin
8714 elif test -f $prefix/include/sqlite.h; then
8715 SQLITE_INCDIR=$prefix/include
8716 SQLITE_LIBDIR=$prefix/lib
8717 SQLITE_BINDIR=$prefix/bin
8719 echo "$as_me:$LINENO: result: no" >&5
8720 echo "${ECHO_T}no" >&6
8721 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
8722 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
8723 { (exit 1); exit 1; }; }
8726 if test -f $withval/sqlite.h; then
8727 SQLITE_INCDIR=$withval
8728 SQLITE_LIBDIR=$withval
8729 SQLITE_BINDIR=$withval
8730 elif test -f $withval/include/sqlite.h; then
8731 SQLITE_INCDIR=$withval/include
8732 SQLITE_LIBDIR=$withval/lib
8733 SQLITE_BINDIR=$withval/bin
8735 echo "$as_me:$LINENO: result: no" >&5
8736 echo "${ECHO_T}no" >&6
8737 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8738 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8739 { (exit 1); exit 1; }; }
8742 SQL_INCLUDE=-I$SQLITE_INCDIR
8743 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8744 SQL_BINDIR=$SQLITE_BINDIR
8746 cat >>confdefs.h <<\_ACEOF
8747 #define HAVE_SQLITE 1
8750 echo "$as_me:$LINENO: result: yes" >&5
8751 echo "${ECHO_T}yes" >&6
8758 echo "$as_me:$LINENO: result: no" >&5
8759 echo "${ECHO_T}no" >&6
8764 echo "$as_me:$LINENO: result: no" >&5
8765 echo "${ECHO_T}no" >&6
8777 cat >>confdefs.h <<\_ACEOF
8778 #define PROTOTYPES 1
8782 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8783 if test -z "$CCOPTS"; then
8784 CCOPTS='-g -O2 -Wall'
8792 largefile_support="no"
8794 # Check whether --enable-largefile or --disable-largefile was given.
8795 if test "${enable_largefile+set}" = set; then
8796 enableval="$enable_largefile"
8799 if test "$enable_largefile" != no; then
8800 if test -n "$ac_tool_prefix"; then
8801 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8802 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8803 echo "$as_me:$LINENO: checking for $ac_word" >&5
8804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8805 if test "${ac_cv_prog_GETCONF+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8808 if test -n "$GETCONF"; then
8809 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815 test -z "$as_dir" && as_dir=.
8816 for ac_exec_ext in '' $ac_executable_extensions; do
8817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8818 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8827 GETCONF=$ac_cv_prog_GETCONF
8828 if test -n "$GETCONF"; then
8829 echo "$as_me:$LINENO: result: $GETCONF" >&5
8830 echo "${ECHO_T}$GETCONF" >&6
8832 echo "$as_me:$LINENO: result: no" >&5
8833 echo "${ECHO_T}no" >&6
8837 if test -z "$ac_cv_prog_GETCONF"; then
8838 ac_ct_GETCONF=$GETCONF
8839 # Extract the first word of "getconf", so it can be a program name with args.
8840 set dummy getconf; ac_word=$2
8841 echo "$as_me:$LINENO: checking for $ac_word" >&5
8842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8843 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8846 if test -n "$ac_ct_GETCONF"; then
8847 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853 test -z "$as_dir" && as_dir=.
8854 for ac_exec_ext in '' $ac_executable_extensions; do
8855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8856 ac_cv_prog_ac_ct_GETCONF="getconf"
8857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8865 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8866 if test -n "$ac_ct_GETCONF"; then
8867 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8868 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8870 echo "$as_me:$LINENO: result: no" >&5
8871 echo "${ECHO_T}no" >&6
8874 GETCONF=$ac_ct_GETCONF
8876 GETCONF="$ac_cv_prog_GETCONF"
8879 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8880 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8881 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8882 echo $ECHO_N "(cached) $ECHO_C" >&6
8884 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8885 ac_cv_sys_largefile_CFLAGS=no
8887 # IRIX 6.2 and later require cc -n32.
8888 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8889 if test "$GCC" != yes; then
8890 ac_cv_sys_largefile_CFLAGS=-n32
8893 CC="$CC $ac_cv_sys_largefile_CFLAGS"
8894 cat >conftest.$ac_ext <<_ACEOF
8895 #line $LINENO "configure"
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h. */
8910 rm -f conftest.$ac_objext conftest$ac_exeext
8911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8912 (eval $ac_link) 2>&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } &&
8916 { ac_try='test -s conftest$ac_exeext'
8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; }; then
8924 echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.$ac_ext >&5
8927 ac_cv_sys_largefile_CFLAGS=no
8929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8934 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
8935 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
8936 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
8937 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
8938 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
8942 ac_cv_sys_largefile_LDFLAGS=no
8946 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
8947 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
8948 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
8949 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
8950 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
8954 ac_cv_sys_largefile_LIBS=no
8958 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
8959 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
8961 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8964 -D_FILE_OFFSET_BITS=*) ;;
8965 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
8966 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
8972 '') CPPFLAGS="$ac_flag" ;;
8973 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
8981 '') CFLAGS="$ac_flag" ;;
8982 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
8987 case "$ac_cv_sys_largefile_LDFLAGS" in
8991 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
8992 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
8995 case "$ac_cv_sys_largefile_LIBS" in
8999 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9000 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9003 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9004 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9005 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9006 echo $ECHO_N "(cached) $ECHO_C" >&6
9008 ac_cv_sys_file_offset_bits=no
9009 ac_cv_sys_file_offset_bits=64
9010 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9012 -D_FILE_OFFSET_BITS)
9013 ac_cv_sys_file_offset_bits=1 ;;
9014 -D_FILE_OFFSET_BITS=*)
9015 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9020 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9021 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9022 if test "$ac_cv_sys_file_offset_bits" != no; then
9024 cat >>confdefs.h <<_ACEOF
9025 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9029 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9030 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9031 if test "${ac_cv_sys_largefile_source+set}" = set; then
9032 echo $ECHO_N "(cached) $ECHO_C" >&6
9034 ac_cv_sys_largefile_source=no
9035 ac_cv_sys_largefile_source=1
9036 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9038 -D_LARGEFILE_SOURCE)
9039 ac_cv_sys_largefile_source=1 ;;
9040 -D_LARGEFILE_SOURCE=*)
9041 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9046 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9047 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9048 if test "$ac_cv_sys_largefile_source" != no; then
9050 cat >>confdefs.h <<_ACEOF
9051 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9055 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9056 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9057 if test "${ac_cv_sys_large_files+set}" = set; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 ac_cv_sys_large_files=no
9061 ac_cv_sys_large_files=1
9062 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9065 ac_cv_sys_large_files=1 ;;
9067 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9072 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9073 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9074 if test "$ac_cv_sys_large_files" != no; then
9076 cat >>confdefs.h <<_ACEOF
9077 #define _LARGE_FILES $ac_cv_sys_large_files
9085 echo "$as_me:$LINENO: checking for X" >&5
9086 echo $ECHO_N "checking for X... $ECHO_C" >&6
9089 # Check whether --with-x or --without-x was given.
9090 if test "${with_x+set}" = set; then
9094 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9095 if test "x$with_x" = xno; then
9096 # The user explicitly disabled X.
9099 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9100 # Both variables are already set.
9103 if test "${ac_cv_have_x+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 # One or both of the vars are not set, and there is no cached value.
9107 ac_x_includes=no ac_x_libraries=no
9109 if mkdir conftest.dir; then
9111 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9112 cat >Imakefile <<'_ACEOF'
9114 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9116 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9117 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9118 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9119 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9120 for ac_extension in a so sl; do
9121 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9122 test -f $ac_im_libdir/libX11.$ac_extension; then
9123 ac_im_usrlibdir=$ac_im_libdir; break
9126 # Screen out bogus values from the imake configuration. They are
9127 # bogus both because they are the default anyway, and because
9128 # using them would break gcc on systems where it needs fixed includes.
9129 case $ac_im_incroot in
9131 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9133 case $ac_im_usrlibdir in
9135 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9142 # Standard set of common directories for X headers.
9143 # Check X11 before X11Rn because it is often a symlink to the current release.
9155 /usr/local/X11/include
9156 /usr/local/X11R6/include
9157 /usr/local/X11R5/include
9158 /usr/local/X11R4/include
9160 /usr/local/include/X11
9161 /usr/local/include/X11R6
9162 /usr/local/include/X11R5
9163 /usr/local/include/X11R4
9167 /usr/XFree86/include/X11
9171 /usr/unsupported/include
9173 /usr/local/x11r5/include
9174 /usr/lpp/Xamples/include
9176 /usr/openwin/include
9177 /usr/openwin/share/include'
9179 if test "$ac_x_includes" = no; then
9180 # Guess where to find include files, by looking for Intrinsic.h.
9181 # First, try using that file with no special directory specified.
9182 cat >conftest.$ac_ext <<_ACEOF
9183 #line $LINENO "configure"
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h. */
9189 #include <X11/Intrinsic.h>
9191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9194 grep -v '^ *+' conftest.er1 >conftest.err
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } >/dev/null; then
9199 if test -s conftest.err; then
9200 ac_cpp_err=$ac_c_preproc_warn_flag
9207 if test -z "$ac_cpp_err"; then
9208 # We can compile using X headers with no special include directory.
9211 echo "$as_me: failed program was:" >&5
9212 sed 's/^/| /' conftest.$ac_ext >&5
9214 for ac_dir in $ac_x_header_dirs; do
9215 if test -r "$ac_dir/X11/Intrinsic.h"; then
9216 ac_x_includes=$ac_dir
9221 rm -f conftest.err conftest.$ac_ext
9222 fi # $ac_x_includes = no
9224 if test "$ac_x_libraries" = no; then
9225 # Check for the libraries.
9226 # See if we find them without any special options.
9227 # Don't add to $LIBS permanently.
9230 cat >conftest.$ac_ext <<_ACEOF
9231 #line $LINENO "configure"
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9237 #include <X11/Intrinsic.h>
9246 rm -f conftest.$ac_objext conftest$ac_exeext
9247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248 (eval $ac_link) 2>&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
9252 { ac_try='test -s conftest$ac_exeext'
9253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); }; }; then
9259 # We can link X programs with no special library path.
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9266 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9268 # Don't even attempt the hair of trying to link an X program!
9269 for ac_extension in a so sl; do
9270 if test -r $ac_dir/libXt.$ac_extension; then
9271 ac_x_libraries=$ac_dir
9277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9278 fi # $ac_x_libraries = no
9280 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9281 # Didn't find X anywhere. Cache the known absence of X.
9282 ac_cv_have_x="have_x=no"
9284 # Record where we found X for the cache.
9285 ac_cv_have_x="have_x=yes \
9286 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9291 eval "$ac_cv_have_x"
9294 if test "$have_x" != yes; then
9295 echo "$as_me:$LINENO: result: $have_x" >&5
9296 echo "${ECHO_T}$have_x" >&6
9299 # If each of the values was on the command line, it overrides each guess.
9300 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9301 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9302 # Update the cache value to reflect the command line values.
9303 ac_cv_have_x="have_x=yes \
9304 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9305 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9306 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9309 if test "$no_x" = yes; then
9310 # Not all programs may use this symbol, but it does not hurt to define it.
9312 cat >>confdefs.h <<\_ACEOF
9313 #define X_DISPLAY_MISSING 1
9316 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9318 if test -n "$x_includes"; then
9319 X_CFLAGS="$X_CFLAGS -I$x_includes"
9322 # It would also be nice to do this for all -L options, not just this one.
9323 if test -n "$x_libraries"; then
9324 X_LIBS="$X_LIBS -L$x_libraries"
9325 # For Solaris; some versions of Sun CC require a space after -R and
9326 # others require no space. Words are not sufficient . . . .
9327 case `(uname -sr) 2>/dev/null` in
9329 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9330 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9331 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9332 cat >conftest.$ac_ext <<_ACEOF
9333 #line $LINENO "configure"
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h. */
9348 rm -f conftest.$ac_objext conftest$ac_exeext
9349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9350 (eval $ac_link) 2>&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } &&
9354 { ac_try='test -s conftest$ac_exeext'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9362 echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9368 if test $ac_R_nospace = yes; then
9369 echo "$as_me:$LINENO: result: no" >&5
9370 echo "${ECHO_T}no" >&6
9371 X_LIBS="$X_LIBS -R$x_libraries"
9373 LIBS="$ac_xsave_LIBS -R $x_libraries"
9374 cat >conftest.$ac_ext <<_ACEOF
9375 #line $LINENO "configure"
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9390 rm -f conftest.$ac_objext conftest$ac_exeext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9392 (eval $ac_link) 2>&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); } &&
9396 { ac_try='test -s conftest$ac_exeext'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; }; then
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9410 if test $ac_R_space = yes; then
9411 echo "$as_me:$LINENO: result: yes" >&5
9412 echo "${ECHO_T}yes" >&6
9413 X_LIBS="$X_LIBS -R $x_libraries"
9415 echo "$as_me:$LINENO: result: neither works" >&5
9416 echo "${ECHO_T}neither works" >&6
9423 # Check for system-dependent libraries X programs must link with.
9424 # Do this before checking for the system-independent R6 libraries
9425 # (-lICE), since we may need -lsocket or whatever for X linking.
9427 if test "$ISC" = yes; then
9428 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9430 # Martyn Johnson says this is needed for Ultrix, if the X
9431 # libraries were built with DECnet support. And Karl Berry says
9432 # the Alpha needs dnet_stub (dnet does not exist).
9433 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9434 cat >conftest.$ac_ext <<_ACEOF
9435 #line $LINENO "configure"
9438 cat confdefs.h >>conftest.$ac_ext
9439 cat >>conftest.$ac_ext <<_ACEOF
9440 /* end confdefs.h. */
9442 /* Override any gcc2 internal prototype to avoid an error. */
9446 /* We use char because int might match the return type of a gcc2
9447 builtin and then its argument prototype would still apply. */
9448 char XOpenDisplay ();
9457 rm -f conftest.$ac_objext conftest$ac_exeext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459 (eval $ac_link) 2>&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); } &&
9463 { ac_try='test -s conftest$ac_exeext'
9464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; }; then
9471 echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9474 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9475 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9476 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 ac_check_lib_save_LIBS=$LIBS
9481 cat >conftest.$ac_ext <<_ACEOF
9482 #line $LINENO "configure"
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9489 /* Override any gcc2 internal prototype to avoid an error. */
9493 /* We use char because int might match the return type of a gcc2
9494 builtin and then its argument prototype would still apply. */
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9506 (eval $ac_link) 2>&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } &&
9510 { ac_try='test -s conftest$ac_exeext'
9511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; }; then
9516 ac_cv_lib_dnet_dnet_ntoa=yes
9518 echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9521 ac_cv_lib_dnet_dnet_ntoa=no
9523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9524 LIBS=$ac_check_lib_save_LIBS
9526 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9527 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9528 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9529 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9532 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9533 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9534 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9535 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9538 ac_check_lib_save_LIBS=$LIBS
9539 LIBS="-ldnet_stub $LIBS"
9540 cat >conftest.$ac_ext <<_ACEOF
9541 #line $LINENO "configure"
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9548 /* Override any gcc2 internal prototype to avoid an error. */
9552 /* We use char because int might match the return type of a gcc2
9553 builtin and then its argument prototype would still apply. */
9563 rm -f conftest.$ac_objext conftest$ac_exeext
9564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9565 (eval $ac_link) 2>&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } &&
9569 { ac_try='test -s conftest$ac_exeext'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; }; then
9575 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9577 echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9580 ac_cv_lib_dnet_stub_dnet_ntoa=no
9582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9583 LIBS=$ac_check_lib_save_LIBS
9585 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9586 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9587 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9588 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9594 LIBS="$ac_xsave_LIBS"
9596 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9597 # to get the SysV transport functions.
9598 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9600 # The nsl library prevents programs from opening the X display
9601 # on Irix 5.2, according to T.E. Dickey.
9602 # The functions gethostbyname, getservbyname, and inet_addr are
9603 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9604 echo "$as_me:$LINENO: checking for gethostbyname" >&5
9605 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9606 if test "${ac_cv_func_gethostbyname+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 cat >conftest.$ac_ext <<_ACEOF
9610 #line $LINENO "configure"
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 /* System header to define __stub macros and hopefully few prototypes,
9617 which can conflict with char gethostbyname (); below.
9618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9619 <limits.h> exists even on freestanding compilers. */
9621 # include <limits.h>
9623 # include <assert.h>
9625 /* Override any gcc2 internal prototype to avoid an error. */
9630 /* We use char because int might match the return type of a gcc2
9631 builtin and then its argument prototype would still apply. */
9632 char gethostbyname ();
9633 /* The GNU C library defines this for functions which it implements
9634 to always fail with ENOSYS. Some functions are actually named
9635 something starting with __ and the normal name is an alias. */
9636 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9639 char (*f) () = gethostbyname;
9648 return f != gethostbyname;
9653 rm -f conftest.$ac_objext conftest$ac_exeext
9654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9655 (eval $ac_link) 2>&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } &&
9659 { ac_try='test -s conftest$ac_exeext'
9660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; }; then
9665 ac_cv_func_gethostbyname=yes
9667 echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9670 ac_cv_func_gethostbyname=no
9672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9674 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9675 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9677 if test $ac_cv_func_gethostbyname = no; then
9678 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9679 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9680 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9681 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 ac_check_lib_save_LIBS=$LIBS
9685 cat >conftest.$ac_ext <<_ACEOF
9686 #line $LINENO "configure"
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h. */
9693 /* Override any gcc2 internal prototype to avoid an error. */
9697 /* We use char because int might match the return type of a gcc2
9698 builtin and then its argument prototype would still apply. */
9699 char gethostbyname ();
9708 rm -f conftest.$ac_objext conftest$ac_exeext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9710 (eval $ac_link) 2>&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } &&
9714 { ac_try='test -s conftest$ac_exeext'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; }; then
9720 ac_cv_lib_nsl_gethostbyname=yes
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9725 ac_cv_lib_nsl_gethostbyname=no
9727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9728 LIBS=$ac_check_lib_save_LIBS
9730 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9731 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9732 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9733 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9736 if test $ac_cv_lib_nsl_gethostbyname = no; then
9737 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9738 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9739 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9742 ac_check_lib_save_LIBS=$LIBS
9744 cat >conftest.$ac_ext <<_ACEOF
9745 #line $LINENO "configure"
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9752 /* Override any gcc2 internal prototype to avoid an error. */
9756 /* We use char because int might match the return type of a gcc2
9757 builtin and then its argument prototype would still apply. */
9758 char gethostbyname ();
9767 rm -f conftest.$ac_objext conftest$ac_exeext
9768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9769 (eval $ac_link) 2>&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } &&
9773 { ac_try='test -s conftest$ac_exeext'
9774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); }; }; then
9779 ac_cv_lib_bsd_gethostbyname=yes
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9784 ac_cv_lib_bsd_gethostbyname=no
9786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9787 LIBS=$ac_check_lib_save_LIBS
9789 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9790 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9791 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9792 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9798 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9799 # socket/setsockopt and other routines are undefined under SCO ODT
9800 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9801 # on later versions), says Simon Leinen: it contains gethostby*
9802 # variants that don't use the name server (or something). -lsocket
9803 # must be given before -lnsl if both are needed. We assume that
9804 # if connect needs -lnsl, so does gethostbyname.
9805 echo "$as_me:$LINENO: checking for connect" >&5
9806 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9807 if test "${ac_cv_func_connect+set}" = set; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9810 cat >conftest.$ac_ext <<_ACEOF
9811 #line $LINENO "configure"
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h. */
9817 /* System header to define __stub macros and hopefully few prototypes,
9818 which can conflict with char connect (); below.
9819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9820 <limits.h> exists even on freestanding compilers. */
9822 # include <limits.h>
9824 # include <assert.h>
9826 /* Override any gcc2 internal prototype to avoid an error. */
9831 /* We use char because int might match the return type of a gcc2
9832 builtin and then its argument prototype would still apply. */
9834 /* The GNU C library defines this for functions which it implements
9835 to always fail with ENOSYS. Some functions are actually named
9836 something starting with __ and the normal name is an alias. */
9837 #if defined (__stub_connect) || defined (__stub___connect)
9840 char (*f) () = connect;
9849 return f != connect;
9854 rm -f conftest.$ac_objext conftest$ac_exeext
9855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9856 (eval $ac_link) 2>&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -s conftest$ac_exeext'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; }; then
9866 ac_cv_func_connect=yes
9868 echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9871 ac_cv_func_connect=no
9873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9875 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9876 echo "${ECHO_T}$ac_cv_func_connect" >&6
9878 if test $ac_cv_func_connect = no; then
9879 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9880 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9881 if test "${ac_cv_lib_socket_connect+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 ac_check_lib_save_LIBS=$LIBS
9885 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9886 cat >conftest.$ac_ext <<_ACEOF
9887 #line $LINENO "configure"
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h. */
9894 /* Override any gcc2 internal prototype to avoid an error. */
9898 /* We use char because int might match the return type of a gcc2
9899 builtin and then its argument prototype would still apply. */
9909 rm -f conftest.$ac_objext conftest$ac_exeext
9910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9911 (eval $ac_link) 2>&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } &&
9915 { ac_try='test -s conftest$ac_exeext'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; }; then
9921 ac_cv_lib_socket_connect=yes
9923 echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9926 ac_cv_lib_socket_connect=no
9928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9929 LIBS=$ac_check_lib_save_LIBS
9931 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9932 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9933 if test $ac_cv_lib_socket_connect = yes; then
9934 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9939 # Guillermo Gomez says -lposix is necessary on A/UX.
9940 echo "$as_me:$LINENO: checking for remove" >&5
9941 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9942 if test "${ac_cv_func_remove+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 cat >conftest.$ac_ext <<_ACEOF
9946 #line $LINENO "configure"
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 /* System header to define __stub macros and hopefully few prototypes,
9953 which can conflict with char remove (); below.
9954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9955 <limits.h> exists even on freestanding compilers. */
9957 # include <limits.h>
9959 # include <assert.h>
9961 /* Override any gcc2 internal prototype to avoid an error. */
9966 /* We use char because int might match the return type of a gcc2
9967 builtin and then its argument prototype would still apply. */
9969 /* The GNU C library defines this for functions which it implements
9970 to always fail with ENOSYS. Some functions are actually named
9971 something starting with __ and the normal name is an alias. */
9972 #if defined (__stub_remove) || defined (__stub___remove)
9975 char (*f) () = remove;
9989 rm -f conftest.$ac_objext conftest$ac_exeext
9990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9991 (eval $ac_link) 2>&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } &&
9995 { ac_try='test -s conftest$ac_exeext'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; }; then
10001 ac_cv_func_remove=yes
10003 echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.$ac_ext >&5
10006 ac_cv_func_remove=no
10008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10010 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10011 echo "${ECHO_T}$ac_cv_func_remove" >&6
10013 if test $ac_cv_func_remove = no; then
10014 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10015 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10016 if test "${ac_cv_lib_posix_remove+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 ac_check_lib_save_LIBS=$LIBS
10020 LIBS="-lposix $LIBS"
10021 cat >conftest.$ac_ext <<_ACEOF
10022 #line $LINENO "configure"
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10029 /* Override any gcc2 internal prototype to avoid an error. */
10033 /* We use char because int might match the return type of a gcc2
10034 builtin and then its argument prototype would still apply. */
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10046 (eval $ac_link) 2>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } &&
10050 { ac_try='test -s conftest$ac_exeext'
10051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052 (eval $ac_try) 2>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
10056 ac_cv_lib_posix_remove=yes
10058 echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.$ac_ext >&5
10061 ac_cv_lib_posix_remove=no
10063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10064 LIBS=$ac_check_lib_save_LIBS
10066 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10067 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10068 if test $ac_cv_lib_posix_remove = yes; then
10069 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10074 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10075 echo "$as_me:$LINENO: checking for shmat" >&5
10076 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10077 if test "${ac_cv_func_shmat+set}" = set; then
10078 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 cat >conftest.$ac_ext <<_ACEOF
10081 #line $LINENO "configure"
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10087 /* System header to define __stub macros and hopefully few prototypes,
10088 which can conflict with char shmat (); below.
10089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10090 <limits.h> exists even on freestanding compilers. */
10092 # include <limits.h>
10094 # include <assert.h>
10096 /* Override any gcc2 internal prototype to avoid an error. */
10101 /* We use char because int might match the return type of a gcc2
10102 builtin and then its argument prototype would still apply. */
10104 /* The GNU C library defines this for functions which it implements
10105 to always fail with ENOSYS. Some functions are actually named
10106 something starting with __ and the normal name is an alias. */
10107 #if defined (__stub_shmat) || defined (__stub___shmat)
10110 char (*f) () = shmat;
10124 rm -f conftest.$ac_objext conftest$ac_exeext
10125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10126 (eval $ac_link) 2>&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } &&
10130 { ac_try='test -s conftest$ac_exeext'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; }; then
10136 ac_cv_func_shmat=yes
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10141 ac_cv_func_shmat=no
10143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10145 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10146 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10148 if test $ac_cv_func_shmat = no; then
10149 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10150 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10151 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10154 ac_check_lib_save_LIBS=$LIBS
10156 cat >conftest.$ac_ext <<_ACEOF
10157 #line $LINENO "configure"
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10164 /* Override any gcc2 internal prototype to avoid an error. */
10168 /* We use char because int might match the return type of a gcc2
10169 builtin and then its argument prototype would still apply. */
10179 rm -f conftest.$ac_objext conftest$ac_exeext
10180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10181 (eval $ac_link) 2>&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } &&
10185 { ac_try='test -s conftest$ac_exeext'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; }; then
10191 ac_cv_lib_ipc_shmat=yes
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10196 ac_cv_lib_ipc_shmat=no
10198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10199 LIBS=$ac_check_lib_save_LIBS
10201 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10202 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10203 if test $ac_cv_lib_ipc_shmat = yes; then
10204 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10210 # Check for libraries that X11R6 Xt/Xaw programs need.
10211 ac_save_LDFLAGS=$LDFLAGS
10212 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10213 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10214 # check for ICE first), but we must link in the order -lSM -lICE or
10215 # we get undefined symbols. So assume we have SM if we have ICE.
10216 # These have to be linked with before -lX11, unlike the other
10217 # libraries we check for below, so use a different variable.
10218 # John Interrante, Karl Berry
10219 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10220 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10221 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 ac_check_lib_save_LIBS=$LIBS
10225 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10226 cat >conftest.$ac_ext <<_ACEOF
10227 #line $LINENO "configure"
10230 cat confdefs.h >>conftest.$ac_ext
10231 cat >>conftest.$ac_ext <<_ACEOF
10232 /* end confdefs.h. */
10234 /* Override any gcc2 internal prototype to avoid an error. */
10238 /* We use char because int might match the return type of a gcc2
10239 builtin and then its argument prototype would still apply. */
10240 char IceConnectionNumber ();
10244 IceConnectionNumber ();
10249 rm -f conftest.$ac_objext conftest$ac_exeext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10251 (eval $ac_link) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -s conftest$ac_exeext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 ac_cv_lib_ICE_IceConnectionNumber=yes
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10266 ac_cv_lib_ICE_IceConnectionNumber=no
10268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10269 LIBS=$ac_check_lib_save_LIBS
10271 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10272 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10273 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10274 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10277 LDFLAGS=$ac_save_LDFLAGS
10339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10341 echo "$as_me:$LINENO: checking for $ac_header" >&5
10342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10349 # Is the header compilable?
10350 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10352 cat >conftest.$ac_ext <<_ACEOF
10353 #line $LINENO "configure"
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359 $ac_includes_default
10360 #include <$ac_header>
10362 rm -f conftest.$ac_objext
10363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10364 (eval $ac_compile) 2>&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } &&
10368 { ac_try='test -s conftest.$ac_objext'
10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; }; then
10374 ac_header_compiler=yes
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10379 ac_header_compiler=no
10381 rm -f conftest.$ac_objext conftest.$ac_ext
10382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10383 echo "${ECHO_T}$ac_header_compiler" >&6
10385 # Is the header present?
10386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10388 cat >conftest.$ac_ext <<_ACEOF
10389 #line $LINENO "configure"
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395 #include <$ac_header>
10397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10400 grep -v '^ *+' conftest.er1 >conftest.err
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } >/dev/null; then
10405 if test -s conftest.err; then
10406 ac_cpp_err=$ac_c_preproc_warn_flag
10413 if test -z "$ac_cpp_err"; then
10414 ac_header_preproc=yes
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10419 ac_header_preproc=no
10421 rm -f conftest.err conftest.$ac_ext
10422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10423 echo "${ECHO_T}$ac_header_preproc" >&6
10425 # So? What about this header?
10426 case $ac_header_compiler:$ac_header_preproc in
10428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10434 ## ------------------------------------ ##
10435 ## Report this to bug-autoconf@gnu.org. ##
10436 ## ------------------------------------ ##
10439 sed "s/^/$as_me: WARNING: /" >&2
10442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10450 ## ------------------------------------ ##
10451 ## Report this to bug-autoconf@gnu.org. ##
10452 ## ------------------------------------ ##
10455 sed "s/^/$as_me: WARNING: /" >&2
10458 echo "$as_me:$LINENO: checking for $ac_header" >&5
10459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10463 eval "$as_ac_Header=$ac_header_preproc"
10465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10470 cat >>confdefs.h <<_ACEOF
10471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10478 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10479 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10480 if test "${ac_cv_header_stdc+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 cat >conftest.$ac_ext <<_ACEOF
10484 #line $LINENO "configure"
10487 cat confdefs.h >>conftest.$ac_ext
10488 cat >>conftest.$ac_ext <<_ACEOF
10489 /* end confdefs.h. */
10490 #include <stdlib.h>
10491 #include <stdarg.h>
10492 #include <string.h>
10503 rm -f conftest.$ac_objext
10504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10505 (eval $ac_compile) 2>&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } &&
10509 { ac_try='test -s conftest.$ac_objext'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; }; then
10515 ac_cv_header_stdc=yes
10517 echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10520 ac_cv_header_stdc=no
10522 rm -f conftest.$ac_objext conftest.$ac_ext
10524 if test $ac_cv_header_stdc = yes; then
10525 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10526 cat >conftest.$ac_ext <<_ACEOF
10527 #line $LINENO "configure"
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 #include <string.h>
10536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10537 $EGREP "memchr" >/dev/null 2>&1; then
10540 ac_cv_header_stdc=no
10546 if test $ac_cv_header_stdc = yes; then
10547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10548 cat >conftest.$ac_ext <<_ACEOF
10549 #line $LINENO "configure"
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10555 #include <stdlib.h>
10558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10559 $EGREP "free" >/dev/null 2>&1; then
10562 ac_cv_header_stdc=no
10568 if test $ac_cv_header_stdc = yes; then
10569 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10570 if test "$cross_compiling" = yes; then
10573 cat >conftest.$ac_ext <<_ACEOF
10574 #line $LINENO "configure"
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h. */
10581 #if ((' ' & 0x0FF) == 0x020)
10582 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10583 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10585 # define ISLOWER(c) \
10586 (('a' <= (c) && (c) <= 'i') \
10587 || ('j' <= (c) && (c) <= 'r') \
10588 || ('s' <= (c) && (c) <= 'z'))
10589 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10592 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10597 for (i = 0; i < 256; i++)
10598 if (XOR (islower (i), ISLOWER (i))
10599 || toupper (i) != TOUPPER (i))
10604 rm -f conftest$ac_exeext
10605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10606 (eval $ac_link) 2>&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; }; then
10617 echo "$as_me: program exited with status $ac_status" >&5
10618 echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10621 ( exit $ac_status )
10622 ac_cv_header_stdc=no
10624 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10628 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10629 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10630 if test $ac_cv_header_stdc = yes; then
10632 cat >>confdefs.h <<\_ACEOF
10633 #define STDC_HEADERS 1
10638 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10639 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10640 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 cat >conftest.$ac_ext <<_ACEOF
10644 #line $LINENO "configure"
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10650 #include <sys/types.h>
10654 return makedev(0, 0);
10659 rm -f conftest.$ac_objext conftest$ac_exeext
10660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10661 (eval $ac_link) 2>&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } &&
10665 { ac_try='test -s conftest$ac_exeext'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; }; then
10671 ac_cv_header_sys_types_h_makedev=yes
10673 echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10676 ac_cv_header_sys_types_h_makedev=no
10678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10681 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
10682 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
10684 if test $ac_cv_header_sys_types_h_makedev = no; then
10685 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10686 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10687 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10688 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10692 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10694 # Is the header compilable?
10695 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
10696 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
10697 cat >conftest.$ac_ext <<_ACEOF
10698 #line $LINENO "configure"
10701 cat confdefs.h >>conftest.$ac_ext
10702 cat >>conftest.$ac_ext <<_ACEOF
10703 /* end confdefs.h. */
10704 $ac_includes_default
10705 #include <sys/mkdev.h>
10707 rm -f conftest.$ac_objext
10708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10709 (eval $ac_compile) 2>&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } &&
10713 { ac_try='test -s conftest.$ac_objext'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; }; then
10719 ac_header_compiler=yes
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10724 ac_header_compiler=no
10726 rm -f conftest.$ac_objext conftest.$ac_ext
10727 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10728 echo "${ECHO_T}$ac_header_compiler" >&6
10730 # Is the header present?
10731 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
10732 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
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. */
10740 #include <sys/mkdev.h>
10742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10745 grep -v '^ *+' conftest.er1 >conftest.err
10747 cat conftest.err >&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } >/dev/null; then
10750 if test -s conftest.err; then
10751 ac_cpp_err=$ac_c_preproc_warn_flag
10758 if test -z "$ac_cpp_err"; then
10759 ac_header_preproc=yes
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10764 ac_header_preproc=no
10766 rm -f conftest.err conftest.$ac_ext
10767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10768 echo "${ECHO_T}$ac_header_preproc" >&6
10770 # So? What about this header?
10771 case $ac_header_compiler:$ac_header_preproc in
10773 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
10774 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10775 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10776 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10779 ## ------------------------------------ ##
10780 ## Report this to bug-autoconf@gnu.org. ##
10781 ## ------------------------------------ ##
10784 sed "s/^/$as_me: WARNING: /" >&2
10787 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
10788 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
10789 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
10790 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
10791 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10792 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10795 ## ------------------------------------ ##
10796 ## Report this to bug-autoconf@gnu.org. ##
10797 ## ------------------------------------ ##
10800 sed "s/^/$as_me: WARNING: /" >&2
10803 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10804 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10805 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 ac_cv_header_sys_mkdev_h=$ac_header_preproc
10810 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10811 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10814 if test $ac_cv_header_sys_mkdev_h = yes; then
10816 cat >>confdefs.h <<\_ACEOF
10817 #define MAJOR_IN_MKDEV 1
10824 if test $ac_cv_header_sys_mkdev_h = no; then
10825 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10826 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10827 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10828 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10832 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10834 # Is the header compilable?
10835 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
10836 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
10837 cat >conftest.$ac_ext <<_ACEOF
10838 #line $LINENO "configure"
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10844 $ac_includes_default
10845 #include <sys/sysmacros.h>
10847 rm -f conftest.$ac_objext
10848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10849 (eval $ac_compile) 2>&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } &&
10853 { ac_try='test -s conftest.$ac_objext'
10854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855 (eval $ac_try) 2>&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; }; then
10859 ac_header_compiler=yes
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10864 ac_header_compiler=no
10866 rm -f conftest.$ac_objext conftest.$ac_ext
10867 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10868 echo "${ECHO_T}$ac_header_compiler" >&6
10870 # Is the header present?
10871 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
10872 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
10873 cat >conftest.$ac_ext <<_ACEOF
10874 #line $LINENO "configure"
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h. */
10880 #include <sys/sysmacros.h>
10882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10885 grep -v '^ *+' conftest.er1 >conftest.err
10887 cat conftest.err >&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } >/dev/null; then
10890 if test -s conftest.err; then
10891 ac_cpp_err=$ac_c_preproc_warn_flag
10898 if test -z "$ac_cpp_err"; then
10899 ac_header_preproc=yes
10901 echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10904 ac_header_preproc=no
10906 rm -f conftest.err conftest.$ac_ext
10907 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10908 echo "${ECHO_T}$ac_header_preproc" >&6
10910 # So? What about this header?
10911 case $ac_header_compiler:$ac_header_preproc in
10913 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10914 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10915 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10916 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10919 ## ------------------------------------ ##
10920 ## Report this to bug-autoconf@gnu.org. ##
10921 ## ------------------------------------ ##
10924 sed "s/^/$as_me: WARNING: /" >&2
10927 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10928 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10929 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
10930 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
10931 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10932 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10935 ## ------------------------------------ ##
10936 ## Report this to bug-autoconf@gnu.org. ##
10937 ## ------------------------------------ ##
10940 sed "s/^/$as_me: WARNING: /" >&2
10943 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10944 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10945 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10950 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10951 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10954 if test $ac_cv_header_sys_sysmacros_h = yes; then
10956 cat >>confdefs.h <<\_ACEOF
10957 #define MAJOR_IN_SYSMACROS 1
10971 ac_header_dirent=no
10972 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10973 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10974 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10975 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10979 cat >conftest.$ac_ext <<_ACEOF
10980 #line $LINENO "configure"
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h. */
10986 #include <sys/types.h>
10998 rm -f conftest.$ac_objext
10999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11000 (eval $ac_compile) 2>&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } &&
11004 { ac_try='test -s conftest.$ac_objext'
11005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006 (eval $ac_try) 2>&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; }; then
11010 eval "$as_ac_Header=yes"
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11015 eval "$as_ac_Header=no"
11017 rm -f conftest.$ac_objext conftest.$ac_ext
11019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11022 cat >>confdefs.h <<_ACEOF
11023 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11026 ac_header_dirent=$ac_hdr; break
11030 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11031 if test $ac_header_dirent = dirent.h; then
11032 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11033 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11034 if test "${ac_cv_search_opendir+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 ac_func_search_save_LIBS=$LIBS
11038 ac_cv_search_opendir=no
11039 cat >conftest.$ac_ext <<_ACEOF
11040 #line $LINENO "configure"
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11047 /* Override any gcc2 internal prototype to avoid an error. */
11051 /* We use char because int might match the return type of a gcc2
11052 builtin and then its argument prototype would still apply. */
11062 rm -f conftest.$ac_objext conftest$ac_exeext
11063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11064 (eval $ac_link) 2>&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } &&
11068 { ac_try='test -s conftest$ac_exeext'
11069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070 (eval $ac_try) 2>&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; }; then
11074 ac_cv_search_opendir="none required"
11076 echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.$ac_ext >&5
11080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11081 if test "$ac_cv_search_opendir" = no; then
11082 for ac_lib in dir; do
11083 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11084 cat >conftest.$ac_ext <<_ACEOF
11085 #line $LINENO "configure"
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11092 /* Override any gcc2 internal prototype to avoid an error. */
11096 /* We use char because int might match the return type of a gcc2
11097 builtin and then its argument prototype would still apply. */
11107 rm -f conftest.$ac_objext conftest$ac_exeext
11108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11109 (eval $ac_link) 2>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } &&
11113 { ac_try='test -s conftest$ac_exeext'
11114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115 (eval $ac_try) 2>&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
11119 ac_cv_search_opendir="-l$ac_lib"
11122 echo "$as_me: failed program was:" >&5
11123 sed 's/^/| /' conftest.$ac_ext >&5
11126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11129 LIBS=$ac_func_search_save_LIBS
11131 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11132 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11133 if test "$ac_cv_search_opendir" != no; then
11134 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11139 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11140 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11141 if test "${ac_cv_search_opendir+set}" = set; then
11142 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 ac_func_search_save_LIBS=$LIBS
11145 ac_cv_search_opendir=no
11146 cat >conftest.$ac_ext <<_ACEOF
11147 #line $LINENO "configure"
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11154 /* Override any gcc2 internal prototype to avoid an error. */
11158 /* We use char because int might match the return type of a gcc2
11159 builtin and then its argument prototype would still apply. */
11169 rm -f conftest.$ac_objext conftest$ac_exeext
11170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11171 (eval $ac_link) 2>&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } &&
11175 { ac_try='test -s conftest$ac_exeext'
11176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11177 (eval $ac_try) 2>&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }; }; then
11181 ac_cv_search_opendir="none required"
11183 echo "$as_me: failed program was:" >&5
11184 sed 's/^/| /' conftest.$ac_ext >&5
11187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11188 if test "$ac_cv_search_opendir" = no; then
11189 for ac_lib in x; do
11190 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11191 cat >conftest.$ac_ext <<_ACEOF
11192 #line $LINENO "configure"
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11199 /* Override any gcc2 internal prototype to avoid an error. */
11203 /* We use char because int might match the return type of a gcc2
11204 builtin and then its argument prototype would still apply. */
11214 rm -f conftest.$ac_objext conftest$ac_exeext
11215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11216 (eval $ac_link) 2>&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } &&
11220 { ac_try='test -s conftest$ac_exeext'
11221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222 (eval $ac_try) 2>&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; }; then
11226 ac_cv_search_opendir="-l$ac_lib"
11229 echo "$as_me: failed program was:" >&5
11230 sed 's/^/| /' conftest.$ac_ext >&5
11233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11236 LIBS=$ac_func_search_save_LIBS
11238 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11239 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11240 if test "$ac_cv_search_opendir" != no; then
11241 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11247 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11248 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11249 if test "${ac_cv_header_stat_broken+set}" = set; then
11250 echo $ECHO_N "(cached) $ECHO_C" >&6
11252 cat >conftest.$ac_ext <<_ACEOF
11253 #line $LINENO "configure"
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h. */
11259 #include <sys/types.h>
11260 #include <sys/stat.h>
11262 #if defined(S_ISBLK) && defined(S_IFDIR)
11263 # if S_ISBLK (S_IFDIR)
11268 #if defined(S_ISBLK) && defined(S_IFCHR)
11269 # if S_ISBLK (S_IFCHR)
11274 #if defined(S_ISLNK) && defined(S_IFREG)
11275 # if S_ISLNK (S_IFREG)
11280 #if defined(S_ISSOCK) && defined(S_IFREG)
11281 # if S_ISSOCK (S_IFREG)
11287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11288 $EGREP "You lose" >/dev/null 2>&1; then
11289 ac_cv_header_stat_broken=yes
11291 ac_cv_header_stat_broken=no
11296 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11297 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11298 if test $ac_cv_header_stat_broken = yes; then
11300 cat >>confdefs.h <<\_ACEOF
11301 #define STAT_MACROS_BROKEN 1
11306 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11307 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11308 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 cat >conftest.$ac_ext <<_ACEOF
11312 #line $LINENO "configure"
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h. */
11318 #include <sys/types.h>
11319 #include <sys/wait.h>
11320 #ifndef WEXITSTATUS
11321 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11324 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11332 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11337 rm -f conftest.$ac_objext
11338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11339 (eval $ac_compile) 2>&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } &&
11343 { ac_try='test -s conftest.$ac_objext'
11344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345 (eval $ac_try) 2>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; }; then
11349 ac_cv_header_sys_wait_h=yes
11351 echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11354 ac_cv_header_sys_wait_h=no
11356 rm -f conftest.$ac_objext conftest.$ac_ext
11358 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11359 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11360 if test $ac_cv_header_sys_wait_h = yes; then
11362 cat >>confdefs.h <<\_ACEOF
11363 #define HAVE_SYS_WAIT_H 1
11368 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11369 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11370 if test "${ac_cv_header_time+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 cat >conftest.$ac_ext <<_ACEOF
11374 #line $LINENO "configure"
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11380 #include <sys/types.h>
11381 #include <sys/time.h>
11387 if ((struct tm *) 0)
11393 rm -f conftest.$ac_objext
11394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11395 (eval $ac_compile) 2>&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } &&
11399 { ac_try='test -s conftest.$ac_objext'
11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; }; then
11405 ac_cv_header_time=yes
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11410 ac_cv_header_time=no
11412 rm -f conftest.$ac_objext conftest.$ac_ext
11414 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11415 echo "${ECHO_T}$ac_cv_header_time" >&6
11416 if test $ac_cv_header_time = yes; then
11418 cat >>confdefs.h <<\_ACEOF
11419 #define TIME_WITH_SYS_TIME 1
11425 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11426 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11427 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11428 echo $ECHO_N "(cached) $ECHO_C" >&6
11430 cat >conftest.$ac_ext <<_ACEOF
11431 #line $LINENO "configure"
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h. */
11437 $ac_includes_default
11441 static struct stat ac_aggr;
11442 if (ac_aggr.st_blksize)
11448 rm -f conftest.$ac_objext
11449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11450 (eval $ac_compile) 2>&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } &&
11454 { ac_try='test -s conftest.$ac_objext'
11455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456 (eval $ac_try) 2>&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; }; then
11460 ac_cv_member_struct_stat_st_blksize=yes
11462 echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11465 cat >conftest.$ac_ext <<_ACEOF
11466 #line $LINENO "configure"
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11472 $ac_includes_default
11476 static struct stat ac_aggr;
11477 if (sizeof ac_aggr.st_blksize)
11483 rm -f conftest.$ac_objext
11484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11485 (eval $ac_compile) 2>&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } &&
11489 { ac_try='test -s conftest.$ac_objext'
11490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11491 (eval $ac_try) 2>&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); }; }; then
11495 ac_cv_member_struct_stat_st_blksize=yes
11497 echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11500 ac_cv_member_struct_stat_st_blksize=no
11502 rm -f conftest.$ac_objext conftest.$ac_ext
11504 rm -f conftest.$ac_objext conftest.$ac_ext
11506 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11507 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11508 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11510 cat >>confdefs.h <<_ACEOF
11511 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11515 cat >>confdefs.h <<\_ACEOF
11516 #define HAVE_ST_BLKSIZE 1
11522 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11523 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11524 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11525 echo $ECHO_N "(cached) $ECHO_C" >&6
11527 cat >conftest.$ac_ext <<_ACEOF
11528 #line $LINENO "configure"
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11534 $ac_includes_default
11538 static struct stat ac_aggr;
11539 if (ac_aggr.st_blocks)
11545 rm -f conftest.$ac_objext
11546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11547 (eval $ac_compile) 2>&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); } &&
11551 { ac_try='test -s conftest.$ac_objext'
11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553 (eval $ac_try) 2>&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; }; then
11557 ac_cv_member_struct_stat_st_blocks=yes
11559 echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11562 cat >conftest.$ac_ext <<_ACEOF
11563 #line $LINENO "configure"
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 $ac_includes_default
11573 static struct stat ac_aggr;
11574 if (sizeof ac_aggr.st_blocks)
11580 rm -f conftest.$ac_objext
11581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11582 (eval $ac_compile) 2>&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } &&
11586 { ac_try='test -s conftest.$ac_objext'
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; }; then
11592 ac_cv_member_struct_stat_st_blocks=yes
11594 echo "$as_me: failed program was:" >&5
11595 sed 's/^/| /' conftest.$ac_ext >&5
11597 ac_cv_member_struct_stat_st_blocks=no
11599 rm -f conftest.$ac_objext conftest.$ac_ext
11601 rm -f conftest.$ac_objext conftest.$ac_ext
11603 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11604 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11605 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11607 cat >>confdefs.h <<_ACEOF
11608 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11612 cat >>confdefs.h <<\_ACEOF
11613 #define HAVE_ST_BLOCKS 1
11617 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11621 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11622 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11623 if test "${ac_cv_struct_tm+set}" = set; then
11624 echo $ECHO_N "(cached) $ECHO_C" >&6
11626 cat >conftest.$ac_ext <<_ACEOF
11627 #line $LINENO "configure"
11630 cat confdefs.h >>conftest.$ac_ext
11631 cat >>conftest.$ac_ext <<_ACEOF
11632 /* end confdefs.h. */
11633 #include <sys/types.h>
11639 struct tm *tp; tp->tm_sec;
11644 rm -f conftest.$ac_objext
11645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11646 (eval $ac_compile) 2>&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } &&
11650 { ac_try='test -s conftest.$ac_objext'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; }; then
11656 ac_cv_struct_tm=time.h
11658 echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11661 ac_cv_struct_tm=sys/time.h
11663 rm -f conftest.$ac_objext conftest.$ac_ext
11665 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11666 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11667 if test $ac_cv_struct_tm = sys/time.h; then
11669 cat >>confdefs.h <<\_ACEOF
11670 #define TM_IN_SYS_TIME 1
11675 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11676 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11677 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11678 echo $ECHO_N "(cached) $ECHO_C" >&6
11680 cat >conftest.$ac_ext <<_ACEOF
11681 #line $LINENO "configure"
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11687 #include <sys/types.h>
11688 #include <$ac_cv_struct_tm>
11694 static struct tm ac_aggr;
11695 if (ac_aggr.tm_zone)
11701 rm -f conftest.$ac_objext
11702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11703 (eval $ac_compile) 2>&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try='test -s conftest.$ac_objext'
11708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709 (eval $ac_try) 2>&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; }; then
11713 ac_cv_member_struct_tm_tm_zone=yes
11715 echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11718 cat >conftest.$ac_ext <<_ACEOF
11719 #line $LINENO "configure"
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h. */
11725 #include <sys/types.h>
11726 #include <$ac_cv_struct_tm>
11732 static struct tm ac_aggr;
11733 if (sizeof ac_aggr.tm_zone)
11739 rm -f conftest.$ac_objext
11740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11741 (eval $ac_compile) 2>&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } &&
11745 { ac_try='test -s conftest.$ac_objext'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; }; then
11751 ac_cv_member_struct_tm_tm_zone=yes
11753 echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11756 ac_cv_member_struct_tm_tm_zone=no
11758 rm -f conftest.$ac_objext conftest.$ac_ext
11760 rm -f conftest.$ac_objext conftest.$ac_ext
11762 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11763 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11764 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11766 cat >>confdefs.h <<_ACEOF
11767 #define HAVE_STRUCT_TM_TM_ZONE 1
11773 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11775 cat >>confdefs.h <<\_ACEOF
11776 #define HAVE_TM_ZONE 1
11780 echo "$as_me:$LINENO: checking for tzname" >&5
11781 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11782 if test "${ac_cv_var_tzname+set}" = set; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11785 cat >conftest.$ac_ext <<_ACEOF
11786 #line $LINENO "configure"
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h. */
11793 #ifndef tzname /* For SGI. */
11794 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11805 rm -f conftest.$ac_objext conftest$ac_exeext
11806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11807 (eval $ac_link) 2>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } &&
11811 { ac_try='test -s conftest$ac_exeext'
11812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11813 (eval $ac_try) 2>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; }; then
11817 ac_cv_var_tzname=yes
11819 echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11822 ac_cv_var_tzname=no
11824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11826 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11827 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11828 if test $ac_cv_var_tzname = yes; then
11830 cat >>confdefs.h <<\_ACEOF
11831 #define HAVE_TZNAME 1
11838 echo "$as_me:$LINENO: checking for utime.h" >&5
11839 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
11840 if test "${ba_cv_header_utime_h+set}" = set; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 cat >conftest.$ac_ext <<_ACEOF
11844 #line $LINENO "configure"
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11851 #include <sys/types.h>
11861 rm -f conftest.$ac_objext
11862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11863 (eval $ac_compile) 2>&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); } &&
11867 { ac_try='test -s conftest.$ac_objext'
11868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 (eval $ac_try) 2>&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; }; then
11873 ba_cv_header_utime_h=yes
11875 echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11878 ba_cv_header_utime_h=no
11880 rm -f conftest.$ac_objext conftest.$ac_ext
11882 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
11883 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
11884 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
11885 #define HAVE_UTIME_H 1
11889 echo "$as_me:$LINENO: checking for socklen_t" >&5
11890 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11891 if test "${ba_cv_header_socklen_t+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 cat >conftest.$ac_ext <<_ACEOF
11895 #line $LINENO "configure"
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h. */
11902 #include <sys/types.h>
11903 #include <sys/socket.h>
11912 rm -f conftest.$ac_objext
11913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11914 (eval $ac_compile) 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -s conftest.$ac_objext'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; }; then
11924 ba_cv_header_socklen_t=yes
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11929 ba_cv_header_socklen_t=no
11931 rm -f conftest.$ac_objext conftest.$ac_ext
11933 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
11934 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
11935 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
11936 #define HAVE_SOCKLEN_T 1
11940 echo "$as_me:$LINENO: checking for bigendian" >&5
11941 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
11942 if test "${ba_cv_bigendian+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 if test "$cross_compiling" = yes; then
11948 cat >conftest.$ac_ext <<_ACEOF
11949 #line $LINENO "configure"
11952 cat confdefs.h >>conftest.$ac_ext
11953 cat >>conftest.$ac_ext <<_ACEOF
11954 /* end confdefs.h. */
11955 main(){long a=1L; char *p=(char *)&a; exit(*p);}
11957 rm -f conftest$ac_exeext
11958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11959 (eval $ac_link) 2>&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964 (eval $ac_try) 2>&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; }; then
11968 ba_cv_bigendian=yes
11970 echo "$as_me: program exited with status $ac_status" >&5
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11974 ( exit $ac_status )
11977 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11980 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
11981 echo "${ECHO_T}$ba_cv_bigendian" >&6
11982 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
11983 #define HAVE_BIGENDIAN 1
11988 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11989 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11990 if test "${ac_cv_c_const+set}" = set; then
11991 echo $ECHO_N "(cached) $ECHO_C" >&6
11993 cat >conftest.$ac_ext <<_ACEOF
11994 #line $LINENO "configure"
11997 cat confdefs.h >>conftest.$ac_ext
11998 cat >>conftest.$ac_ext <<_ACEOF
11999 /* end confdefs.h. */
12004 /* FIXME: Include the comments suggested by Paul. */
12005 #ifndef __cplusplus
12006 /* Ultrix mips cc rejects this. */
12007 typedef int charset[2];
12009 /* SunOS 4.1.1 cc rejects this. */
12010 char const *const *ccp;
12012 /* NEC SVR4.0.2 mips cc rejects this. */
12013 struct point {int x, y;};
12014 static struct point const zero = {0,0};
12015 /* AIX XL C 1.02.0.0 rejects this.
12016 It does not let you subtract one const X* pointer from another in
12017 an arm of an if-expression whose if-part is not a constant
12019 const char *g = "string";
12020 ccp = &g + (g ? g-g : 0);
12021 /* HPUX 7.0 cc rejects these. */
12024 ccp = (char const *const *) p;
12025 { /* SCO 3.2v4 cc rejects this. */
12027 char const *s = 0 ? (char *) 0 : (char const *) 0;
12031 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12032 int x[] = {25, 17};
12033 const int *foo = &x[0];
12036 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12037 typedef const int *iptr;
12041 { /* AIX XL C 1.02.0.0 rejects this saying
12042 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12043 struct s { int j; const int *ap[3]; };
12044 struct s *b; b->j = 5;
12046 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12047 const int foo = 10;
12055 rm -f conftest.$ac_objext
12056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12057 (eval $ac_compile) 2>&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } &&
12061 { ac_try='test -s conftest.$ac_objext'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; }; then
12069 echo "$as_me: failed program was:" >&5
12070 sed 's/^/| /' conftest.$ac_ext >&5
12074 rm -f conftest.$ac_objext conftest.$ac_ext
12076 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12077 echo "${ECHO_T}$ac_cv_c_const" >&6
12078 if test $ac_cv_c_const = no; then
12080 cat >>confdefs.h <<\_ACEOF
12088 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12089 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12091 # The order of these tests is important.
12092 cat >conftest.$ac_ext <<_ACEOF
12093 #line $LINENO "configure"
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12099 #include <sys/statvfs.h>
12100 #include <sys/fstyp.h>
12102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12105 grep -v '^ *+' conftest.er1 >conftest.err
12107 cat conftest.err >&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } >/dev/null; then
12110 if test -s conftest.err; then
12111 ac_cpp_err=$ac_c_preproc_warn_flag
12118 if test -z "$ac_cpp_err"; then
12119 cat >>confdefs.h <<\_ACEOF
12120 #define FSTYPE_STATVFS 1
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12129 rm -f conftest.err conftest.$ac_ext
12130 if test $fstype = no; then
12131 cat >conftest.$ac_ext <<_ACEOF
12132 #line $LINENO "configure"
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138 #include <sys/statfs.h>
12139 #include <sys/fstyp.h>
12141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12144 grep -v '^ *+' conftest.er1 >conftest.err
12146 cat conftest.err >&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } >/dev/null; then
12149 if test -s conftest.err; then
12150 ac_cpp_err=$ac_c_preproc_warn_flag
12157 if test -z "$ac_cpp_err"; then
12158 cat >>confdefs.h <<\_ACEOF
12159 #define FSTYPE_USG_STATFS 1
12163 echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.$ac_ext >&5
12168 rm -f conftest.err conftest.$ac_ext
12170 if test $fstype = no; then
12171 cat >conftest.$ac_ext <<_ACEOF
12172 #line $LINENO "configure"
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 #include <sys/statfs.h>
12179 #include <sys/vmount.h>
12181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12184 grep -v '^ *+' conftest.er1 >conftest.err
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } >/dev/null; then
12189 if test -s conftest.err; then
12190 ac_cpp_err=$ac_c_preproc_warn_flag
12197 if test -z "$ac_cpp_err"; then
12198 cat >>confdefs.h <<\_ACEOF
12199 #define FSTYPE_AIX_STATFS 1
12203 echo "$as_me: failed program was:" >&5
12204 sed 's/^/| /' conftest.$ac_ext >&5
12208 rm -f conftest.err conftest.$ac_ext
12210 if test $fstype = no; then
12211 cat >conftest.$ac_ext <<_ACEOF
12212 #line $LINENO "configure"
12215 cat confdefs.h >>conftest.$ac_ext
12216 cat >>conftest.$ac_ext <<_ACEOF
12217 /* end confdefs.h. */
12218 #include <mntent.h>
12220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12223 grep -v '^ *+' conftest.er1 >conftest.err
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } >/dev/null; then
12228 if test -s conftest.err; then
12229 ac_cpp_err=$ac_c_preproc_warn_flag
12236 if test -z "$ac_cpp_err"; then
12237 cat >>confdefs.h <<\_ACEOF
12238 #define FSTYPE_MNTENT 1
12242 echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12247 rm -f conftest.err conftest.$ac_ext
12249 if test $fstype = no; then
12250 cat >conftest.$ac_ext <<_ACEOF
12251 #line $LINENO "configure"
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12257 #include <sys/mount.h>
12260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12261 $EGREP "f_type;" >/dev/null 2>&1; then
12262 cat >>confdefs.h <<\_ACEOF
12263 #define FSTYPE_STATFS 1
12270 if test $fstype = no; then
12271 cat >conftest.$ac_ext <<_ACEOF
12272 #line $LINENO "configure"
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12278 #include <sys/mount.h>
12279 #include <sys/fs_types.h>
12281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12284 grep -v '^ *+' conftest.er1 >conftest.err
12286 cat conftest.err >&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } >/dev/null; then
12289 if test -s conftest.err; then
12290 ac_cpp_err=$ac_c_preproc_warn_flag
12297 if test -z "$ac_cpp_err"; then
12298 cat >>confdefs.h <<\_ACEOF
12299 #define FSTYPE_GETMNT 1
12303 echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12308 rm -f conftest.err conftest.$ac_ext
12310 echo "$as_me:$LINENO: result: $fstype" >&5
12311 echo "${ECHO_T}$fstype" >&6
12313 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12314 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12315 if test "${ac_cv_type_signal+set}" = set; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12318 cat >conftest.$ac_ext <<_ACEOF
12319 #line $LINENO "configure"
12322 cat confdefs.h >>conftest.$ac_ext
12323 cat >>conftest.$ac_ext <<_ACEOF
12324 /* end confdefs.h. */
12325 #include <sys/types.h>
12326 #include <signal.h>
12331 extern "C" void (*signal (int, void (*)(int)))(int);
12333 void (*signal ()) ();
12344 rm -f conftest.$ac_objext
12345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12346 (eval $ac_compile) 2>&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } &&
12350 { ac_try='test -s conftest.$ac_objext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12356 ac_cv_type_signal=void
12358 echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12361 ac_cv_type_signal=int
12363 rm -f conftest.$ac_objext conftest.$ac_ext
12365 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12366 echo "${ECHO_T}$ac_cv_type_signal" >&6
12368 cat >>confdefs.h <<_ACEOF
12369 #define RETSIGTYPE $ac_cv_type_signal
12374 echo "$as_me:$LINENO: checking for type of signal functions" >&5
12375 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12376 if test "${bash_cv_signal_vintage+set}" = set; then
12377 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 #include <signal.h>
12393 struct sigaction sa;
12394 sigemptyset(&ss); sigsuspend(&ss);
12395 sigaction(SIGINT, &sa, (struct sigaction *) 0);
12396 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12402 rm -f conftest.$ac_objext conftest$ac_exeext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12404 (eval $ac_link) 2>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
12408 { ac_try='test -s conftest$ac_exeext'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; }; then
12414 bash_cv_signal_vintage=posix
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12420 cat >conftest.$ac_ext <<_ACEOF
12421 #line $LINENO "configure"
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12427 #include <signal.h>
12432 int mask = sigmask(SIGINT);
12433 sigsetmask(mask); sigblock(mask); sigpause(mask);
12439 rm -f conftest.$ac_objext conftest$ac_exeext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12441 (eval $ac_link) 2>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } &&
12445 { ac_try='test -s conftest$ac_exeext'
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; }; then
12451 bash_cv_signal_vintage=4.2bsd
12453 echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12457 cat >conftest.$ac_ext <<_ACEOF
12458 #line $LINENO "configure"
12461 cat confdefs.h >>conftest.$ac_ext
12462 cat >>conftest.$ac_ext <<_ACEOF
12463 /* end confdefs.h. */
12465 #include <signal.h>
12466 RETSIGTYPE foo() { }
12471 int mask = sigmask(SIGINT);
12472 sigset(SIGINT, foo); sigrelse(SIGINT);
12473 sighold(SIGINT); sigpause(SIGINT);
12479 rm -f conftest.$ac_objext conftest$ac_exeext
12480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12481 (eval $ac_link) 2>&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); } &&
12485 { ac_try='test -s conftest$ac_exeext'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
12491 bash_cv_signal_vintage=svr3
12493 echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12496 bash_cv_signal_vintage=v7
12499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12509 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
12510 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
12511 if test "$bash_cv_signal_vintage" = posix; then
12512 cat >>confdefs.h <<\_ACEOF
12513 #define HAVE_POSIX_SIGNALS 1
12516 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
12517 cat >>confdefs.h <<\_ACEOF
12518 #define HAVE_BSD_SIGNALS 1
12521 elif test "$bash_cv_signal_vintage" = svr3; then
12522 cat >>confdefs.h <<\_ACEOF
12523 #define HAVE_USG_SIGHOLD 1
12528 echo "$as_me:$LINENO: checking for mode_t" >&5
12529 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12530 if test "${ac_cv_type_mode_t+set}" = set; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12533 cat >conftest.$ac_ext <<_ACEOF
12534 #line $LINENO "configure"
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12540 $ac_includes_default
12546 if (sizeof (mode_t))
12552 rm -f conftest.$ac_objext
12553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12554 (eval $ac_compile) 2>&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } &&
12558 { ac_try='test -s conftest.$ac_objext'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; }; then
12564 ac_cv_type_mode_t=yes
12566 echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12569 ac_cv_type_mode_t=no
12571 rm -f conftest.$ac_objext conftest.$ac_ext
12573 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12574 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12575 if test $ac_cv_type_mode_t = yes; then
12579 cat >>confdefs.h <<_ACEOF
12585 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12586 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12587 if test "${ac_cv_type_uid_t+set}" = set; then
12588 echo $ECHO_N "(cached) $ECHO_C" >&6
12590 cat >conftest.$ac_ext <<_ACEOF
12591 #line $LINENO "configure"
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12597 #include <sys/types.h>
12600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12601 $EGREP "uid_t" >/dev/null 2>&1; then
12602 ac_cv_type_uid_t=yes
12604 ac_cv_type_uid_t=no
12609 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12610 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12611 if test $ac_cv_type_uid_t = no; then
12613 cat >>confdefs.h <<\_ACEOF
12618 cat >>confdefs.h <<\_ACEOF
12624 echo "$as_me:$LINENO: checking for size_t" >&5
12625 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12626 if test "${ac_cv_type_size_t+set}" = set; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
12629 cat >conftest.$ac_ext <<_ACEOF
12630 #line $LINENO "configure"
12633 cat confdefs.h >>conftest.$ac_ext
12634 cat >>conftest.$ac_ext <<_ACEOF
12635 /* end confdefs.h. */
12636 $ac_includes_default
12642 if (sizeof (size_t))
12648 rm -f conftest.$ac_objext
12649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12650 (eval $ac_compile) 2>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } &&
12654 { ac_try='test -s conftest.$ac_objext'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12660 ac_cv_type_size_t=yes
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12665 ac_cv_type_size_t=no
12667 rm -f conftest.$ac_objext conftest.$ac_ext
12669 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12670 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12671 if test $ac_cv_type_size_t = yes; then
12675 cat >>confdefs.h <<_ACEOF
12676 #define size_t unsigned
12681 echo "$as_me:$LINENO: checking for pid_t" >&5
12682 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12683 if test "${ac_cv_type_pid_t+set}" = set; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12686 cat >conftest.$ac_ext <<_ACEOF
12687 #line $LINENO "configure"
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h. */
12693 $ac_includes_default
12699 if (sizeof (pid_t))
12705 rm -f conftest.$ac_objext
12706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12707 (eval $ac_compile) 2>&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } &&
12711 { ac_try='test -s conftest.$ac_objext'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; }; then
12717 ac_cv_type_pid_t=yes
12719 echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12722 ac_cv_type_pid_t=no
12724 rm -f conftest.$ac_objext conftest.$ac_ext
12726 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12727 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12728 if test $ac_cv_type_pid_t = yes; then
12732 cat >>confdefs.h <<_ACEOF
12738 echo "$as_me:$LINENO: checking for off_t" >&5
12739 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12740 if test "${ac_cv_type_off_t+set}" = set; then
12741 echo $ECHO_N "(cached) $ECHO_C" >&6
12743 cat >conftest.$ac_ext <<_ACEOF
12744 #line $LINENO "configure"
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h. */
12750 $ac_includes_default
12756 if (sizeof (off_t))
12762 rm -f conftest.$ac_objext
12763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12764 (eval $ac_compile) 2>&5
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); } &&
12768 { ac_try='test -s conftest.$ac_objext'
12769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770 (eval $ac_try) 2>&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; }; then
12774 ac_cv_type_off_t=yes
12776 echo "$as_me: failed program was:" >&5
12777 sed 's/^/| /' conftest.$ac_ext >&5
12779 ac_cv_type_off_t=no
12781 rm -f conftest.$ac_objext conftest.$ac_ext
12783 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12784 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12785 if test $ac_cv_type_off_t = yes; then
12789 cat >>confdefs.h <<_ACEOF
12795 echo "$as_me:$LINENO: checking for ino_t" >&5
12796 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
12797 if test "${ac_cv_type_ino_t+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12800 cat >conftest.$ac_ext <<_ACEOF
12801 #line $LINENO "configure"
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h. */
12807 $ac_includes_default
12813 if (sizeof (ino_t))
12819 rm -f conftest.$ac_objext
12820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12821 (eval $ac_compile) 2>&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); } &&
12825 { ac_try='test -s conftest.$ac_objext'
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827 (eval $ac_try) 2>&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; }; then
12831 ac_cv_type_ino_t=yes
12833 echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12836 ac_cv_type_ino_t=no
12838 rm -f conftest.$ac_objext conftest.$ac_ext
12840 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12841 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12842 if test $ac_cv_type_ino_t = yes; then
12846 cat >>confdefs.h <<_ACEOF
12847 #define ino_t unsigned long
12852 echo "$as_me:$LINENO: checking for dev_t" >&5
12853 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12854 if test "${ac_cv_type_dev_t+set}" = set; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 cat >conftest.$ac_ext <<_ACEOF
12858 #line $LINENO "configure"
12861 cat confdefs.h >>conftest.$ac_ext
12862 cat >>conftest.$ac_ext <<_ACEOF
12863 /* end confdefs.h. */
12864 $ac_includes_default
12870 if (sizeof (dev_t))
12876 rm -f conftest.$ac_objext
12877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12878 (eval $ac_compile) 2>&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try='test -s conftest.$ac_objext'
12883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; }; then
12888 ac_cv_type_dev_t=yes
12890 echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.$ac_ext >&5
12893 ac_cv_type_dev_t=no
12895 rm -f conftest.$ac_objext conftest.$ac_ext
12897 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12898 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12899 if test $ac_cv_type_dev_t = yes; then
12903 cat >>confdefs.h <<_ACEOF
12904 #define dev_t unsigned long
12909 echo "$as_me:$LINENO: checking for daddr_t" >&5
12910 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
12911 if test "${ac_cv_type_daddr_t+set}" = set; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12914 cat >conftest.$ac_ext <<_ACEOF
12915 #line $LINENO "configure"
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h. */
12921 $ac_includes_default
12927 if (sizeof (daddr_t))
12933 rm -f conftest.$ac_objext
12934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12935 (eval $ac_compile) 2>&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } &&
12939 { ac_try='test -s conftest.$ac_objext'
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; }; then
12945 ac_cv_type_daddr_t=yes
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12950 ac_cv_type_daddr_t=no
12952 rm -f conftest.$ac_objext conftest.$ac_ext
12954 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
12955 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
12956 if test $ac_cv_type_daddr_t = yes; then
12960 cat >>confdefs.h <<_ACEOF
12961 #define daddr_t long
12966 echo "$as_me:$LINENO: checking for major_t" >&5
12967 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
12968 if test "${ac_cv_type_major_t+set}" = set; then
12969 echo $ECHO_N "(cached) $ECHO_C" >&6
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
12984 if (sizeof (major_t))
12990 rm -f conftest.$ac_objext
12991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12992 (eval $ac_compile) 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
12996 { ac_try='test -s conftest.$ac_objext'
12997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998 (eval $ac_try) 2>&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; }; then
13002 ac_cv_type_major_t=yes
13004 echo "$as_me: failed program was:" >&5
13005 sed 's/^/| /' conftest.$ac_ext >&5
13007 ac_cv_type_major_t=no
13009 rm -f conftest.$ac_objext conftest.$ac_ext
13011 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13012 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13013 if test $ac_cv_type_major_t = yes; then
13017 cat >>confdefs.h <<_ACEOF
13018 #define major_t int
13023 echo "$as_me:$LINENO: checking for minor_t" >&5
13024 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13025 if test "${ac_cv_type_minor_t+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13028 cat >conftest.$ac_ext <<_ACEOF
13029 #line $LINENO "configure"
13032 cat confdefs.h >>conftest.$ac_ext
13033 cat >>conftest.$ac_ext <<_ACEOF
13034 /* end confdefs.h. */
13035 $ac_includes_default
13041 if (sizeof (minor_t))
13047 rm -f conftest.$ac_objext
13048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13049 (eval $ac_compile) 2>&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); } &&
13053 { ac_try='test -s conftest.$ac_objext'
13054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055 (eval $ac_try) 2>&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; }; then
13059 ac_cv_type_minor_t=yes
13061 echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13064 ac_cv_type_minor_t=no
13066 rm -f conftest.$ac_objext conftest.$ac_ext
13068 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
13069 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
13070 if test $ac_cv_type_minor_t = yes; then
13074 cat >>confdefs.h <<_ACEOF
13075 #define minor_t int
13080 echo "$as_me:$LINENO: checking for ssize_t" >&5
13081 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13082 if test "${ac_cv_type_ssize_t+set}" = set; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
13085 cat >conftest.$ac_ext <<_ACEOF
13086 #line $LINENO "configure"
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h. */
13092 $ac_includes_default
13098 if (sizeof (ssize_t))
13104 rm -f conftest.$ac_objext
13105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13106 (eval $ac_compile) 2>&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); } &&
13110 { ac_try='test -s conftest.$ac_objext'
13111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112 (eval $ac_try) 2>&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; }; then
13116 ac_cv_type_ssize_t=yes
13118 echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13121 ac_cv_type_ssize_t=no
13123 rm -f conftest.$ac_objext conftest.$ac_ext
13125 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13126 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13127 if test $ac_cv_type_ssize_t = yes; then
13131 cat >>confdefs.h <<_ACEOF
13132 #define ssize_t int
13137 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13138 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13139 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13140 echo $ECHO_N "(cached) $ECHO_C" >&6
13142 cat >conftest.$ac_ext <<_ACEOF
13143 #line $LINENO "configure"
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h. */
13149 $ac_includes_default
13153 static struct stat ac_aggr;
13154 if (ac_aggr.st_blocks)
13160 rm -f conftest.$ac_objext
13161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13162 (eval $ac_compile) 2>&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } &&
13166 { ac_try='test -s conftest.$ac_objext'
13167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168 (eval $ac_try) 2>&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; }; then
13172 ac_cv_member_struct_stat_st_blocks=yes
13174 echo "$as_me: failed program was:" >&5
13175 sed 's/^/| /' conftest.$ac_ext >&5
13177 cat >conftest.$ac_ext <<_ACEOF
13178 #line $LINENO "configure"
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h. */
13184 $ac_includes_default
13188 static struct stat ac_aggr;
13189 if (sizeof ac_aggr.st_blocks)
13195 rm -f conftest.$ac_objext
13196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13197 (eval $ac_compile) 2>&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); } &&
13201 { ac_try='test -s conftest.$ac_objext'
13202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13203 (eval $ac_try) 2>&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); }; }; then
13207 ac_cv_member_struct_stat_st_blocks=yes
13209 echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13212 ac_cv_member_struct_stat_st_blocks=no
13214 rm -f conftest.$ac_objext conftest.$ac_ext
13216 rm -f conftest.$ac_objext conftest.$ac_ext
13218 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13219 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13220 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13222 cat >>confdefs.h <<_ACEOF
13223 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13227 cat >>confdefs.h <<\_ACEOF
13228 #define HAVE_ST_BLOCKS 1
13232 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
13237 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
13238 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
13239 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
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 struct stat ac_aggr;
13254 if (ac_aggr.st_rdev)
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
13272 ac_cv_member_struct_stat_st_rdev=yes
13274 echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13277 cat >conftest.$ac_ext <<_ACEOF
13278 #line $LINENO "configure"
13281 cat confdefs.h >>conftest.$ac_ext
13282 cat >>conftest.$ac_ext <<_ACEOF
13283 /* end confdefs.h. */
13284 $ac_includes_default
13288 static struct stat ac_aggr;
13289 if (sizeof ac_aggr.st_rdev)
13295 rm -f conftest.$ac_objext
13296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13297 (eval $ac_compile) 2>&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } &&
13301 { ac_try='test -s conftest.$ac_objext'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 ac_cv_member_struct_stat_st_rdev=yes
13309 echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13312 ac_cv_member_struct_stat_st_rdev=no
13314 rm -f conftest.$ac_objext conftest.$ac_ext
13316 rm -f conftest.$ac_objext conftest.$ac_ext
13318 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
13319 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
13320 if test $ac_cv_member_struct_stat_st_rdev = yes; then
13322 cat >>confdefs.h <<_ACEOF
13323 #define HAVE_STRUCT_STAT_ST_RDEV 1
13327 cat >>confdefs.h <<\_ACEOF
13328 #define HAVE_ST_RDEV 1
13334 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13335 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13336 if test "${ac_cv_struct_tm+set}" = set; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13339 cat >conftest.$ac_ext <<_ACEOF
13340 #line $LINENO "configure"
13343 cat confdefs.h >>conftest.$ac_ext
13344 cat >>conftest.$ac_ext <<_ACEOF
13345 /* end confdefs.h. */
13346 #include <sys/types.h>
13352 struct tm *tp; tp->tm_sec;
13357 rm -f conftest.$ac_objext
13358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13359 (eval $ac_compile) 2>&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
13363 { ac_try='test -s conftest.$ac_objext'
13364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365 (eval $ac_try) 2>&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; }; then
13369 ac_cv_struct_tm=time.h
13371 echo "$as_me: failed program was:" >&5
13372 sed 's/^/| /' conftest.$ac_ext >&5
13374 ac_cv_struct_tm=sys/time.h
13376 rm -f conftest.$ac_objext conftest.$ac_ext
13378 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13379 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13380 if test $ac_cv_struct_tm = sys/time.h; then
13382 cat >>confdefs.h <<\_ACEOF
13383 #define TM_IN_SYS_TIME 1
13388 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13389 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13390 if test "${ac_cv_c_const+set}" = set; then
13391 echo $ECHO_N "(cached) $ECHO_C" >&6
13393 cat >conftest.$ac_ext <<_ACEOF
13394 #line $LINENO "configure"
13397 cat confdefs.h >>conftest.$ac_ext
13398 cat >>conftest.$ac_ext <<_ACEOF
13399 /* end confdefs.h. */
13404 /* FIXME: Include the comments suggested by Paul. */
13405 #ifndef __cplusplus
13406 /* Ultrix mips cc rejects this. */
13407 typedef int charset[2];
13409 /* SunOS 4.1.1 cc rejects this. */
13410 char const *const *ccp;
13412 /* NEC SVR4.0.2 mips cc rejects this. */
13413 struct point {int x, y;};
13414 static struct point const zero = {0,0};
13415 /* AIX XL C 1.02.0.0 rejects this.
13416 It does not let you subtract one const X* pointer from another in
13417 an arm of an if-expression whose if-part is not a constant
13419 const char *g = "string";
13420 ccp = &g + (g ? g-g : 0);
13421 /* HPUX 7.0 cc rejects these. */
13424 ccp = (char const *const *) p;
13425 { /* SCO 3.2v4 cc rejects this. */
13427 char const *s = 0 ? (char *) 0 : (char const *) 0;
13431 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13432 int x[] = {25, 17};
13433 const int *foo = &x[0];
13436 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13437 typedef const int *iptr;
13441 { /* AIX XL C 1.02.0.0 rejects this saying
13442 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13443 struct s { int j; const int *ap[3]; };
13444 struct s *b; b->j = 5;
13446 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13447 const int foo = 10;
13455 rm -f conftest.$ac_objext
13456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13457 (eval $ac_compile) 2>&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); } &&
13461 { ac_try='test -s conftest.$ac_objext'
13462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463 (eval $ac_try) 2>&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); }; }; then
13469 echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13474 rm -f conftest.$ac_objext conftest.$ac_ext
13476 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13477 echo "${ECHO_T}$ac_cv_c_const" >&6
13478 if test $ac_cv_c_const = no; then
13480 cat >>confdefs.h <<\_ACEOF
13488 echo "$as_me:$LINENO: checking for char" >&5
13489 echo $ECHO_N "checking for char... $ECHO_C" >&6
13490 if test "${ac_cv_type_char+set}" = set; then
13491 echo $ECHO_N "(cached) $ECHO_C" >&6
13493 cat >conftest.$ac_ext <<_ACEOF
13494 #line $LINENO "configure"
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h. */
13500 $ac_includes_default
13512 rm -f conftest.$ac_objext
13513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13514 (eval $ac_compile) 2>&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -s conftest.$ac_objext'
13519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; }; then
13524 ac_cv_type_char=yes
13526 echo "$as_me: failed program was:" >&5
13527 sed 's/^/| /' conftest.$ac_ext >&5
13531 rm -f conftest.$ac_objext conftest.$ac_ext
13533 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13534 echo "${ECHO_T}$ac_cv_type_char" >&6
13536 echo "$as_me:$LINENO: checking size of char" >&5
13537 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13538 if test "${ac_cv_sizeof_char+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 if test "$ac_cv_type_char" = yes; then
13542 # The cast to unsigned long works around a bug in the HP C Compiler
13543 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13544 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13545 # This bug is HP SR number 8606223364.
13546 if test "$cross_compiling" = yes; then
13547 # Depending upon the size, compute the lo and hi bounds.
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 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13566 rm -f conftest.$ac_objext
13567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13568 (eval $ac_compile) 2>&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } &&
13572 { ac_try='test -s conftest.$ac_objext'
13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; }; then
13580 cat >conftest.$ac_ext <<_ACEOF
13581 #line $LINENO "configure"
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13587 $ac_includes_default
13591 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13598 rm -f conftest.$ac_objext
13599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13600 (eval $ac_compile) 2>&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } &&
13604 { ac_try='test -s conftest.$ac_objext'
13605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606 (eval $ac_try) 2>&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; }; then
13610 ac_hi=$ac_mid; break
13612 echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.$ac_ext >&5
13615 ac_lo=`expr $ac_mid + 1`
13616 if test $ac_lo -le $ac_mid; then
13620 ac_mid=`expr 2 '*' $ac_mid + 1`
13622 rm -f conftest.$ac_objext conftest.$ac_ext
13625 echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13628 cat >conftest.$ac_ext <<_ACEOF
13629 #line $LINENO "configure"
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13635 $ac_includes_default
13639 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13646 rm -f conftest.$ac_objext
13647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13648 (eval $ac_compile) 2>&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } &&
13652 { ac_try='test -s conftest.$ac_objext'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; }; then
13660 cat >conftest.$ac_ext <<_ACEOF
13661 #line $LINENO "configure"
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13667 $ac_includes_default
13671 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13678 rm -f conftest.$ac_objext
13679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13680 (eval $ac_compile) 2>&5
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); } &&
13684 { ac_try='test -s conftest.$ac_objext'
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; }; then
13690 ac_lo=$ac_mid; break
13692 echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13695 ac_hi=`expr '(' $ac_mid ')' - 1`
13696 if test $ac_mid -le $ac_hi; then
13700 ac_mid=`expr 2 '*' $ac_mid`
13702 rm -f conftest.$ac_objext conftest.$ac_ext
13705 echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.$ac_ext >&5
13710 rm -f conftest.$ac_objext conftest.$ac_ext
13712 rm -f conftest.$ac_objext conftest.$ac_ext
13713 # Binary search between lo and hi bounds.
13714 while test "x$ac_lo" != "x$ac_hi"; do
13715 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13716 cat >conftest.$ac_ext <<_ACEOF
13717 #line $LINENO "configure"
13720 cat confdefs.h >>conftest.$ac_ext
13721 cat >>conftest.$ac_ext <<_ACEOF
13722 /* end confdefs.h. */
13723 $ac_includes_default
13727 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13734 rm -f conftest.$ac_objext
13735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13736 (eval $ac_compile) 2>&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
13740 { ac_try='test -s conftest.$ac_objext'
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; }; then
13748 echo "$as_me: failed program was:" >&5
13749 sed 's/^/| /' conftest.$ac_ext >&5
13751 ac_lo=`expr '(' $ac_mid ')' + 1`
13753 rm -f conftest.$ac_objext conftest.$ac_ext
13756 ?*) ac_cv_sizeof_char=$ac_lo;;
13757 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13758 See \`config.log' for more details." >&5
13759 echo "$as_me: error: cannot compute sizeof (char), 77
13760 See \`config.log' for more details." >&2;}
13761 { (exit 1); exit 1; }; } ;;
13764 if test "$cross_compiling" = yes; then
13765 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13766 See \`config.log' for more details." >&5
13767 echo "$as_me: error: cannot run test program while cross compiling
13768 See \`config.log' for more details." >&2;}
13769 { (exit 1); exit 1; }; }
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
13779 long longval () { return (long) (sizeof (char)); }
13780 unsigned long ulongval () { return (long) (sizeof (char)); }
13782 #include <stdlib.h>
13787 FILE *f = fopen ("conftest.val", "w");
13790 if (((long) (sizeof (char))) < 0)
13792 long i = longval ();
13793 if (i != ((long) (sizeof (char))))
13795 fprintf (f, "%ld\n", i);
13799 unsigned long i = ulongval ();
13800 if (i != ((long) (sizeof (char))))
13802 fprintf (f, "%lu\n", i);
13804 exit (ferror (f) || fclose (f) != 0);
13810 rm -f conftest$ac_exeext
13811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13812 (eval $ac_link) 2>&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13821 ac_cv_sizeof_char=`cat conftest.val`
13823 echo "$as_me: program exited with status $ac_status" >&5
13824 echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13827 ( exit $ac_status )
13828 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13829 See \`config.log' for more details." >&5
13830 echo "$as_me: error: cannot compute sizeof (char), 77
13831 See \`config.log' for more details." >&2;}
13832 { (exit 1); exit 1; }; }
13834 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13839 ac_cv_sizeof_char=0
13842 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13843 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13844 cat >>confdefs.h <<_ACEOF
13845 #define SIZEOF_CHAR $ac_cv_sizeof_char
13849 echo "$as_me:$LINENO: checking for short int" >&5
13850 echo $ECHO_N "checking for short int... $ECHO_C" >&6
13851 if test "${ac_cv_type_short_int+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13854 cat >conftest.$ac_ext <<_ACEOF
13855 #line $LINENO "configure"
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h. */
13861 $ac_includes_default
13865 if ((short int *) 0)
13867 if (sizeof (short int))
13873 rm -f conftest.$ac_objext
13874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13875 (eval $ac_compile) 2>&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } &&
13879 { ac_try='test -s conftest.$ac_objext'
13880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881 (eval $ac_try) 2>&5
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; }; then
13885 ac_cv_type_short_int=yes
13887 echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13890 ac_cv_type_short_int=no
13892 rm -f conftest.$ac_objext conftest.$ac_ext
13894 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
13895 echo "${ECHO_T}$ac_cv_type_short_int" >&6
13897 echo "$as_me:$LINENO: checking size of short int" >&5
13898 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
13899 if test "${ac_cv_sizeof_short_int+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 if test "$ac_cv_type_short_int" = yes; then
13903 # The cast to unsigned long works around a bug in the HP C Compiler
13904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13906 # This bug is HP SR number 8606223364.
13907 if test "$cross_compiling" = yes; then
13908 # Depending upon the size, compute the lo and hi bounds.
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
13920 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
13927 rm -f conftest.$ac_objext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13929 (eval $ac_compile) 2>&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try='test -s conftest.$ac_objext'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; }; then
13941 cat >conftest.$ac_ext <<_ACEOF
13942 #line $LINENO "configure"
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13948 $ac_includes_default
13952 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13959 rm -f conftest.$ac_objext
13960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13961 (eval $ac_compile) 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
13965 { ac_try='test -s conftest.$ac_objext'
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; }; then
13971 ac_hi=$ac_mid; break
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13976 ac_lo=`expr $ac_mid + 1`
13977 if test $ac_lo -le $ac_mid; then
13981 ac_mid=`expr 2 '*' $ac_mid + 1`
13983 rm -f conftest.$ac_objext conftest.$ac_ext
13986 echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13989 cat >conftest.$ac_ext <<_ACEOF
13990 #line $LINENO "configure"
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h. */
13996 $ac_includes_default
14000 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
14007 rm -f conftest.$ac_objext
14008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14009 (eval $ac_compile) 2>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } &&
14013 { ac_try='test -s conftest.$ac_objext'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; }; then
14021 cat >conftest.$ac_ext <<_ACEOF
14022 #line $LINENO "configure"
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h. */
14028 $ac_includes_default
14032 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
14039 rm -f conftest.$ac_objext
14040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14041 (eval $ac_compile) 2>&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } &&
14045 { ac_try='test -s conftest.$ac_objext'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; }; then
14051 ac_lo=$ac_mid; break
14053 echo "$as_me: failed program was:" >&5
14054 sed 's/^/| /' conftest.$ac_ext >&5
14056 ac_hi=`expr '(' $ac_mid ')' - 1`
14057 if test $ac_mid -le $ac_hi; then
14061 ac_mid=`expr 2 '*' $ac_mid`
14063 rm -f conftest.$ac_objext conftest.$ac_ext
14066 echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14071 rm -f conftest.$ac_objext conftest.$ac_ext
14073 rm -f conftest.$ac_objext conftest.$ac_ext
14074 # Binary search between lo and hi bounds.
14075 while test "x$ac_lo" != "x$ac_hi"; do
14076 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14077 cat >conftest.$ac_ext <<_ACEOF
14078 #line $LINENO "configure"
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14084 $ac_includes_default
14088 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14095 rm -f conftest.$ac_objext
14096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14097 (eval $ac_compile) 2>&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
14101 { ac_try='test -s conftest.$ac_objext'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; }; then
14109 echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14112 ac_lo=`expr '(' $ac_mid ')' + 1`
14114 rm -f conftest.$ac_objext conftest.$ac_ext
14117 ?*) ac_cv_sizeof_short_int=$ac_lo;;
14118 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14119 See \`config.log' for more details." >&5
14120 echo "$as_me: error: cannot compute sizeof (short int), 77
14121 See \`config.log' for more details." >&2;}
14122 { (exit 1); exit 1; }; } ;;
14125 if test "$cross_compiling" = yes; then
14126 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14127 See \`config.log' for more details." >&5
14128 echo "$as_me: error: cannot run test program while cross compiling
14129 See \`config.log' for more details." >&2;}
14130 { (exit 1); exit 1; }; }
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
14140 long longval () { return (long) (sizeof (short int)); }
14141 unsigned long ulongval () { return (long) (sizeof (short int)); }
14143 #include <stdlib.h>
14148 FILE *f = fopen ("conftest.val", "w");
14151 if (((long) (sizeof (short int))) < 0)
14153 long i = longval ();
14154 if (i != ((long) (sizeof (short int))))
14156 fprintf (f, "%ld\n", i);
14160 unsigned long i = ulongval ();
14161 if (i != ((long) (sizeof (short int))))
14163 fprintf (f, "%lu\n", i);
14165 exit (ferror (f) || fclose (f) != 0);
14171 rm -f conftest$ac_exeext
14172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14173 (eval $ac_link) 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14182 ac_cv_sizeof_short_int=`cat conftest.val`
14184 echo "$as_me: program exited with status $ac_status" >&5
14185 echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14188 ( exit $ac_status )
14189 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14190 See \`config.log' for more details." >&5
14191 echo "$as_me: error: cannot compute sizeof (short int), 77
14192 See \`config.log' for more details." >&2;}
14193 { (exit 1); exit 1; }; }
14195 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14200 ac_cv_sizeof_short_int=0
14203 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
14204 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
14205 cat >>confdefs.h <<_ACEOF
14206 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
14210 echo "$as_me:$LINENO: checking for int" >&5
14211 echo $ECHO_N "checking for int... $ECHO_C" >&6
14212 if test "${ac_cv_type_int+set}" = set; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14215 cat >conftest.$ac_ext <<_ACEOF
14216 #line $LINENO "configure"
14219 cat confdefs.h >>conftest.$ac_ext
14220 cat >>conftest.$ac_ext <<_ACEOF
14221 /* end confdefs.h. */
14222 $ac_includes_default
14234 rm -f conftest.$ac_objext
14235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14236 (eval $ac_compile) 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); } &&
14240 { ac_try='test -s conftest.$ac_objext'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; }; then
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14253 rm -f conftest.$ac_objext conftest.$ac_ext
14255 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14256 echo "${ECHO_T}$ac_cv_type_int" >&6
14258 echo "$as_me:$LINENO: checking size of int" >&5
14259 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14260 if test "${ac_cv_sizeof_int+set}" = set; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14263 if test "$ac_cv_type_int" = yes; then
14264 # The cast to unsigned long works around a bug in the HP C Compiler
14265 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14266 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14267 # This bug is HP SR number 8606223364.
14268 if test "$cross_compiling" = yes; then
14269 # Depending upon the size, compute the lo and hi bounds.
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 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14288 rm -f conftest.$ac_objext
14289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14290 (eval $ac_compile) 2>&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); } &&
14294 { ac_try='test -s conftest.$ac_objext'
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; }; then
14302 cat >conftest.$ac_ext <<_ACEOF
14303 #line $LINENO "configure"
14306 cat confdefs.h >>conftest.$ac_ext
14307 cat >>conftest.$ac_ext <<_ACEOF
14308 /* end confdefs.h. */
14309 $ac_includes_default
14313 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14320 rm -f conftest.$ac_objext
14321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14322 (eval $ac_compile) 2>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
14326 { ac_try='test -s conftest.$ac_objext'
14327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328 (eval $ac_try) 2>&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }; then
14332 ac_hi=$ac_mid; break
14334 echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14337 ac_lo=`expr $ac_mid + 1`
14338 if test $ac_lo -le $ac_mid; then
14342 ac_mid=`expr 2 '*' $ac_mid + 1`
14344 rm -f conftest.$ac_objext conftest.$ac_ext
14347 echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.$ac_ext >&5
14350 cat >conftest.$ac_ext <<_ACEOF
14351 #line $LINENO "configure"
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h. */
14357 $ac_includes_default
14361 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14368 rm -f conftest.$ac_objext
14369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14370 (eval $ac_compile) 2>&5
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); } &&
14374 { ac_try='test -s conftest.$ac_objext'
14375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376 (eval $ac_try) 2>&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; }; then
14382 cat >conftest.$ac_ext <<_ACEOF
14383 #line $LINENO "configure"
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h. */
14389 $ac_includes_default
14393 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14400 rm -f conftest.$ac_objext
14401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14402 (eval $ac_compile) 2>&5
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); } &&
14406 { ac_try='test -s conftest.$ac_objext'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; }; then
14412 ac_lo=$ac_mid; break
14414 echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.$ac_ext >&5
14417 ac_hi=`expr '(' $ac_mid ')' - 1`
14418 if test $ac_mid -le $ac_hi; then
14422 ac_mid=`expr 2 '*' $ac_mid`
14424 rm -f conftest.$ac_objext conftest.$ac_ext
14427 echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14432 rm -f conftest.$ac_objext conftest.$ac_ext
14434 rm -f conftest.$ac_objext conftest.$ac_ext
14435 # Binary search between lo and hi bounds.
14436 while test "x$ac_lo" != "x$ac_hi"; do
14437 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14438 cat >conftest.$ac_ext <<_ACEOF
14439 #line $LINENO "configure"
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14445 $ac_includes_default
14449 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14456 rm -f conftest.$ac_objext
14457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14458 (eval $ac_compile) 2>&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); } &&
14462 { ac_try='test -s conftest.$ac_objext'
14463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464 (eval $ac_try) 2>&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; }; then
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14473 ac_lo=`expr '(' $ac_mid ')' + 1`
14475 rm -f conftest.$ac_objext conftest.$ac_ext
14478 ?*) ac_cv_sizeof_int=$ac_lo;;
14479 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14480 See \`config.log' for more details." >&5
14481 echo "$as_me: error: cannot compute sizeof (int), 77
14482 See \`config.log' for more details." >&2;}
14483 { (exit 1); exit 1; }; } ;;
14486 if test "$cross_compiling" = yes; then
14487 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14488 See \`config.log' for more details." >&5
14489 echo "$as_me: error: cannot run test program while cross compiling
14490 See \`config.log' for more details." >&2;}
14491 { (exit 1); exit 1; }; }
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
14501 long longval () { return (long) (sizeof (int)); }
14502 unsigned long ulongval () { return (long) (sizeof (int)); }
14504 #include <stdlib.h>
14509 FILE *f = fopen ("conftest.val", "w");
14512 if (((long) (sizeof (int))) < 0)
14514 long i = longval ();
14515 if (i != ((long) (sizeof (int))))
14517 fprintf (f, "%ld\n", i);
14521 unsigned long i = ulongval ();
14522 if (i != ((long) (sizeof (int))))
14524 fprintf (f, "%lu\n", i);
14526 exit (ferror (f) || fclose (f) != 0);
14532 rm -f conftest$ac_exeext
14533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14534 (eval $ac_link) 2>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }; then
14543 ac_cv_sizeof_int=`cat conftest.val`
14545 echo "$as_me: program exited with status $ac_status" >&5
14546 echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14549 ( exit $ac_status )
14550 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14551 See \`config.log' for more details." >&5
14552 echo "$as_me: error: cannot compute sizeof (int), 77
14553 See \`config.log' for more details." >&2;}
14554 { (exit 1); exit 1; }; }
14556 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14564 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14565 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14566 cat >>confdefs.h <<_ACEOF
14567 #define SIZEOF_INT $ac_cv_sizeof_int
14571 echo "$as_me:$LINENO: checking for long int" >&5
14572 echo $ECHO_N "checking for long int... $ECHO_C" >&6
14573 if test "${ac_cv_type_long_int+set}" = set; then
14574 echo $ECHO_N "(cached) $ECHO_C" >&6
14576 cat >conftest.$ac_ext <<_ACEOF
14577 #line $LINENO "configure"
14580 cat confdefs.h >>conftest.$ac_ext
14581 cat >>conftest.$ac_ext <<_ACEOF
14582 /* end confdefs.h. */
14583 $ac_includes_default
14587 if ((long int *) 0)
14589 if (sizeof (long int))
14595 rm -f conftest.$ac_objext
14596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14597 (eval $ac_compile) 2>&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); } &&
14601 { ac_try='test -s conftest.$ac_objext'
14602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603 (eval $ac_try) 2>&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; }; then
14607 ac_cv_type_long_int=yes
14609 echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14612 ac_cv_type_long_int=no
14614 rm -f conftest.$ac_objext conftest.$ac_ext
14616 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
14617 echo "${ECHO_T}$ac_cv_type_long_int" >&6
14619 echo "$as_me:$LINENO: checking size of long int" >&5
14620 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
14621 if test "${ac_cv_sizeof_long_int+set}" = set; then
14622 echo $ECHO_N "(cached) $ECHO_C" >&6
14624 if test "$ac_cv_type_long_int" = yes; then
14625 # The cast to unsigned long works around a bug in the HP C Compiler
14626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14628 # This bug is HP SR number 8606223364.
14629 if test "$cross_compiling" = yes; then
14630 # Depending upon the size, compute the lo and hi bounds.
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 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
14649 rm -f conftest.$ac_objext
14650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14651 (eval $ac_compile) 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } &&
14655 { ac_try='test -s conftest.$ac_objext'
14656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657 (eval $ac_try) 2>&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); }; }; then
14663 cat >conftest.$ac_ext <<_ACEOF
14664 #line $LINENO "configure"
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h. */
14670 $ac_includes_default
14674 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14681 rm -f conftest.$ac_objext
14682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14683 (eval $ac_compile) 2>&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } &&
14687 { ac_try='test -s conftest.$ac_objext'
14688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689 (eval $ac_try) 2>&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; }; then
14693 ac_hi=$ac_mid; break
14695 echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14698 ac_lo=`expr $ac_mid + 1`
14699 if test $ac_lo -le $ac_mid; then
14703 ac_mid=`expr 2 '*' $ac_mid + 1`
14705 rm -f conftest.$ac_objext conftest.$ac_ext
14708 echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14711 cat >conftest.$ac_ext <<_ACEOF
14712 #line $LINENO "configure"
14715 cat confdefs.h >>conftest.$ac_ext
14716 cat >>conftest.$ac_ext <<_ACEOF
14717 /* end confdefs.h. */
14718 $ac_includes_default
14722 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
14729 rm -f conftest.$ac_objext
14730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14731 (eval $ac_compile) 2>&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } &&
14735 { ac_try='test -s conftest.$ac_objext'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; }; then
14743 cat >conftest.$ac_ext <<_ACEOF
14744 #line $LINENO "configure"
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h. */
14750 $ac_includes_default
14754 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
14761 rm -f conftest.$ac_objext
14762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14763 (eval $ac_compile) 2>&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); } &&
14767 { ac_try='test -s conftest.$ac_objext'
14768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; }; then
14773 ac_lo=$ac_mid; break
14775 echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14778 ac_hi=`expr '(' $ac_mid ')' - 1`
14779 if test $ac_mid -le $ac_hi; then
14783 ac_mid=`expr 2 '*' $ac_mid`
14785 rm -f conftest.$ac_objext conftest.$ac_ext
14788 echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14793 rm -f conftest.$ac_objext conftest.$ac_ext
14795 rm -f conftest.$ac_objext conftest.$ac_ext
14796 # Binary search between lo and hi bounds.
14797 while test "x$ac_lo" != "x$ac_hi"; do
14798 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14799 cat >conftest.$ac_ext <<_ACEOF
14800 #line $LINENO "configure"
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h. */
14806 $ac_includes_default
14810 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14817 rm -f conftest.$ac_objext
14818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14819 (eval $ac_compile) 2>&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } &&
14823 { ac_try='test -s conftest.$ac_objext'
14824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825 (eval $ac_try) 2>&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); }; }; then
14831 echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14834 ac_lo=`expr '(' $ac_mid ')' + 1`
14836 rm -f conftest.$ac_objext conftest.$ac_ext
14839 ?*) ac_cv_sizeof_long_int=$ac_lo;;
14840 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14841 See \`config.log' for more details." >&5
14842 echo "$as_me: error: cannot compute sizeof (long int), 77
14843 See \`config.log' for more details." >&2;}
14844 { (exit 1); exit 1; }; } ;;
14847 if test "$cross_compiling" = yes; then
14848 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14849 See \`config.log' for more details." >&5
14850 echo "$as_me: error: cannot run test program while cross compiling
14851 See \`config.log' for more details." >&2;}
14852 { (exit 1); exit 1; }; }
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
14862 long longval () { return (long) (sizeof (long int)); }
14863 unsigned long ulongval () { return (long) (sizeof (long int)); }
14865 #include <stdlib.h>
14870 FILE *f = fopen ("conftest.val", "w");
14873 if (((long) (sizeof (long int))) < 0)
14875 long i = longval ();
14876 if (i != ((long) (sizeof (long int))))
14878 fprintf (f, "%ld\n", i);
14882 unsigned long i = ulongval ();
14883 if (i != ((long) (sizeof (long int))))
14885 fprintf (f, "%lu\n", i);
14887 exit (ferror (f) || fclose (f) != 0);
14893 rm -f conftest$ac_exeext
14894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14895 (eval $ac_link) 2>&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14900 (eval $ac_try) 2>&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; }; then
14904 ac_cv_sizeof_long_int=`cat conftest.val`
14906 echo "$as_me: program exited with status $ac_status" >&5
14907 echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14910 ( exit $ac_status )
14911 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14912 See \`config.log' for more details." >&5
14913 echo "$as_me: error: cannot compute sizeof (long int), 77
14914 See \`config.log' for more details." >&2;}
14915 { (exit 1); exit 1; }; }
14917 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14922 ac_cv_sizeof_long_int=0
14925 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
14926 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
14927 cat >>confdefs.h <<_ACEOF
14928 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14932 echo "$as_me:$LINENO: checking for long long int" >&5
14933 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14934 if test "${ac_cv_type_long_long_int+set}" = set; then
14935 echo $ECHO_N "(cached) $ECHO_C" >&6
14937 cat >conftest.$ac_ext <<_ACEOF
14938 #line $LINENO "configure"
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 $ac_includes_default
14948 if ((long long int *) 0)
14950 if (sizeof (long long int))
14956 rm -f conftest.$ac_objext
14957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14958 (eval $ac_compile) 2>&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } &&
14962 { ac_try='test -s conftest.$ac_objext'
14963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964 (eval $ac_try) 2>&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); }; }; then
14968 ac_cv_type_long_long_int=yes
14970 echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14973 ac_cv_type_long_long_int=no
14975 rm -f conftest.$ac_objext conftest.$ac_ext
14977 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14978 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14980 echo "$as_me:$LINENO: checking size of long long int" >&5
14981 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
14982 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
14983 echo $ECHO_N "(cached) $ECHO_C" >&6
14985 if test "$ac_cv_type_long_long_int" = yes; then
14986 # The cast to unsigned long works around a bug in the HP C Compiler
14987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14989 # This bug is HP SR number 8606223364.
14990 if test "$cross_compiling" = yes; then
14991 # Depending upon the size, compute the lo and hi bounds.
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
15003 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
15010 rm -f conftest.$ac_objext
15011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15012 (eval $ac_compile) 2>&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } &&
15016 { ac_try='test -s conftest.$ac_objext'
15017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018 (eval $ac_try) 2>&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; }; then
15024 cat >conftest.$ac_ext <<_ACEOF
15025 #line $LINENO "configure"
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h. */
15031 $ac_includes_default
15035 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
15042 rm -f conftest.$ac_objext
15043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15044 (eval $ac_compile) 2>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try='test -s conftest.$ac_objext'
15049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050 (eval $ac_try) 2>&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; }; then
15054 ac_hi=$ac_mid; break
15056 echo "$as_me: failed program was:" >&5
15057 sed 's/^/| /' conftest.$ac_ext >&5
15059 ac_lo=`expr $ac_mid + 1`
15060 if test $ac_lo -le $ac_mid; then
15064 ac_mid=`expr 2 '*' $ac_mid + 1`
15066 rm -f conftest.$ac_objext conftest.$ac_ext
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072 cat >conftest.$ac_ext <<_ACEOF
15073 #line $LINENO "configure"
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15079 $ac_includes_default
15083 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
15090 rm -f conftest.$ac_objext
15091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15092 (eval $ac_compile) 2>&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
15096 { ac_try='test -s conftest.$ac_objext'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15104 cat >conftest.$ac_ext <<_ACEOF
15105 #line $LINENO "configure"
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h. */
15111 $ac_includes_default
15115 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
15122 rm -f conftest.$ac_objext
15123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15124 (eval $ac_compile) 2>&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); } &&
15128 { ac_try='test -s conftest.$ac_objext'
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; }; then
15134 ac_lo=$ac_mid; break
15136 echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15139 ac_hi=`expr '(' $ac_mid ')' - 1`
15140 if test $ac_mid -le $ac_hi; then
15144 ac_mid=`expr 2 '*' $ac_mid`
15146 rm -f conftest.$ac_objext conftest.$ac_ext
15149 echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15154 rm -f conftest.$ac_objext conftest.$ac_ext
15156 rm -f conftest.$ac_objext conftest.$ac_ext
15157 # Binary search between lo and hi bounds.
15158 while test "x$ac_lo" != "x$ac_hi"; do
15159 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15160 cat >conftest.$ac_ext <<_ACEOF
15161 #line $LINENO "configure"
15164 cat confdefs.h >>conftest.$ac_ext
15165 cat >>conftest.$ac_ext <<_ACEOF
15166 /* end confdefs.h. */
15167 $ac_includes_default
15171 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
15178 rm -f conftest.$ac_objext
15179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15180 (eval $ac_compile) 2>&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } &&
15184 { ac_try='test -s conftest.$ac_objext'
15185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15186 (eval $ac_try) 2>&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); }; }; then
15192 echo "$as_me: failed program was:" >&5
15193 sed 's/^/| /' conftest.$ac_ext >&5
15195 ac_lo=`expr '(' $ac_mid ')' + 1`
15197 rm -f conftest.$ac_objext conftest.$ac_ext
15200 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
15201 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
15202 See \`config.log' for more details." >&5
15203 echo "$as_me: error: cannot compute sizeof (long long int), 77
15204 See \`config.log' for more details." >&2;}
15205 { (exit 1); exit 1; }; } ;;
15208 if test "$cross_compiling" = yes; then
15209 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15210 See \`config.log' for more details." >&5
15211 echo "$as_me: error: cannot run test program while cross compiling
15212 See \`config.log' for more details." >&2;}
15213 { (exit 1); exit 1; }; }
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
15223 long longval () { return (long) (sizeof (long long int)); }
15224 unsigned long ulongval () { return (long) (sizeof (long long int)); }
15226 #include <stdlib.h>
15231 FILE *f = fopen ("conftest.val", "w");
15234 if (((long) (sizeof (long long int))) < 0)
15236 long i = longval ();
15237 if (i != ((long) (sizeof (long long int))))
15239 fprintf (f, "%ld\n", i);
15243 unsigned long i = ulongval ();
15244 if (i != ((long) (sizeof (long long int))))
15246 fprintf (f, "%lu\n", i);
15248 exit (ferror (f) || fclose (f) != 0);
15254 rm -f conftest$ac_exeext
15255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15256 (eval $ac_link) 2>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15261 (eval $ac_try) 2>&5
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); }; }; then
15265 ac_cv_sizeof_long_long_int=`cat conftest.val`
15267 echo "$as_me: program exited with status $ac_status" >&5
15268 echo "$as_me: failed program was:" >&5
15269 sed 's/^/| /' conftest.$ac_ext >&5
15271 ( exit $ac_status )
15272 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
15273 See \`config.log' for more details." >&5
15274 echo "$as_me: error: cannot compute sizeof (long long int), 77
15275 See \`config.log' for more details." >&2;}
15276 { (exit 1); exit 1; }; }
15278 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15283 ac_cv_sizeof_long_long_int=0
15286 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
15287 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
15288 cat >>confdefs.h <<_ACEOF
15289 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
15293 echo "$as_me:$LINENO: checking for int *" >&5
15294 echo $ECHO_N "checking for int *... $ECHO_C" >&6
15295 if test "${ac_cv_type_int_p+set}" = set; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15298 cat >conftest.$ac_ext <<_ACEOF
15299 #line $LINENO "configure"
15302 cat confdefs.h >>conftest.$ac_ext
15303 cat >>conftest.$ac_ext <<_ACEOF
15304 /* end confdefs.h. */
15305 $ac_includes_default
15311 if (sizeof (int *))
15317 rm -f conftest.$ac_objext
15318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15319 (eval $ac_compile) 2>&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } &&
15323 { ac_try='test -s conftest.$ac_objext'
15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325 (eval $ac_try) 2>&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; }; then
15329 ac_cv_type_int_p=yes
15331 echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15334 ac_cv_type_int_p=no
15336 rm -f conftest.$ac_objext conftest.$ac_ext
15338 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
15339 echo "${ECHO_T}$ac_cv_type_int_p" >&6
15341 echo "$as_me:$LINENO: checking size of int *" >&5
15342 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
15343 if test "${ac_cv_sizeof_int_p+set}" = set; then
15344 echo $ECHO_N "(cached) $ECHO_C" >&6
15346 if test "$ac_cv_type_int_p" = yes; then
15347 # The cast to unsigned long works around a bug in the HP C Compiler
15348 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15349 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15350 # This bug is HP SR number 8606223364.
15351 if test "$cross_compiling" = yes; then
15352 # Depending upon the size, compute the lo and hi bounds.
15353 cat >conftest.$ac_ext <<_ACEOF
15354 #line $LINENO "configure"
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h. */
15360 $ac_includes_default
15364 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
15371 rm -f conftest.$ac_objext
15372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15373 (eval $ac_compile) 2>&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } &&
15377 { ac_try='test -s conftest.$ac_objext'
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; }; then
15385 cat >conftest.$ac_ext <<_ACEOF
15386 #line $LINENO "configure"
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15392 $ac_includes_default
15396 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15403 rm -f conftest.$ac_objext
15404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15405 (eval $ac_compile) 2>&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); } &&
15409 { ac_try='test -s conftest.$ac_objext'
15410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411 (eval $ac_try) 2>&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; }; then
15415 ac_hi=$ac_mid; break
15417 echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15420 ac_lo=`expr $ac_mid + 1`
15421 if test $ac_lo -le $ac_mid; then
15425 ac_mid=`expr 2 '*' $ac_mid + 1`
15427 rm -f conftest.$ac_objext conftest.$ac_ext
15430 echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15433 cat >conftest.$ac_ext <<_ACEOF
15434 #line $LINENO "configure"
15437 cat confdefs.h >>conftest.$ac_ext
15438 cat >>conftest.$ac_ext <<_ACEOF
15439 /* end confdefs.h. */
15440 $ac_includes_default
15444 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
15451 rm -f conftest.$ac_objext
15452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15453 (eval $ac_compile) 2>&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } &&
15457 { ac_try='test -s conftest.$ac_objext'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15465 cat >conftest.$ac_ext <<_ACEOF
15466 #line $LINENO "configure"
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h. */
15472 $ac_includes_default
15476 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
15483 rm -f conftest.$ac_objext
15484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15485 (eval $ac_compile) 2>&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); } &&
15489 { ac_try='test -s conftest.$ac_objext'
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; }; then
15495 ac_lo=$ac_mid; break
15497 echo "$as_me: failed program was:" >&5
15498 sed 's/^/| /' conftest.$ac_ext >&5
15500 ac_hi=`expr '(' $ac_mid ')' - 1`
15501 if test $ac_mid -le $ac_hi; then
15505 ac_mid=`expr 2 '*' $ac_mid`
15507 rm -f conftest.$ac_objext conftest.$ac_ext
15510 echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15515 rm -f conftest.$ac_objext conftest.$ac_ext
15517 rm -f conftest.$ac_objext conftest.$ac_ext
15518 # Binary search between lo and hi bounds.
15519 while test "x$ac_lo" != "x$ac_hi"; do
15520 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15521 cat >conftest.$ac_ext <<_ACEOF
15522 #line $LINENO "configure"
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h. */
15528 $ac_includes_default
15532 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15539 rm -f conftest.$ac_objext
15540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15541 (eval $ac_compile) 2>&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
15545 { ac_try='test -s conftest.$ac_objext'
15546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547 (eval $ac_try) 2>&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; }; then
15553 echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15556 ac_lo=`expr '(' $ac_mid ')' + 1`
15558 rm -f conftest.$ac_objext conftest.$ac_ext
15561 ?*) ac_cv_sizeof_int_p=$ac_lo;;
15562 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15563 See \`config.log' for more details." >&5
15564 echo "$as_me: error: cannot compute sizeof (int *), 77
15565 See \`config.log' for more details." >&2;}
15566 { (exit 1); exit 1; }; } ;;
15569 if test "$cross_compiling" = yes; then
15570 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15571 See \`config.log' for more details." >&5
15572 echo "$as_me: error: cannot run test program while cross compiling
15573 See \`config.log' for more details." >&2;}
15574 { (exit 1); exit 1; }; }
15576 cat >conftest.$ac_ext <<_ACEOF
15577 #line $LINENO "configure"
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 $ac_includes_default
15584 long longval () { return (long) (sizeof (int *)); }
15585 unsigned long ulongval () { return (long) (sizeof (int *)); }
15587 #include <stdlib.h>
15592 FILE *f = fopen ("conftest.val", "w");
15595 if (((long) (sizeof (int *))) < 0)
15597 long i = longval ();
15598 if (i != ((long) (sizeof (int *))))
15600 fprintf (f, "%ld\n", i);
15604 unsigned long i = ulongval ();
15605 if (i != ((long) (sizeof (int *))))
15607 fprintf (f, "%lu\n", i);
15609 exit (ferror (f) || fclose (f) != 0);
15615 rm -f conftest$ac_exeext
15616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15617 (eval $ac_link) 2>&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15622 (eval $ac_try) 2>&5
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; }; then
15626 ac_cv_sizeof_int_p=`cat conftest.val`
15628 echo "$as_me: program exited with status $ac_status" >&5
15629 echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15632 ( exit $ac_status )
15633 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15634 See \`config.log' for more details." >&5
15635 echo "$as_me: error: cannot compute sizeof (int *), 77
15636 See \`config.log' for more details." >&2;}
15637 { (exit 1); exit 1; }; }
15639 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15644 ac_cv_sizeof_int_p=0
15647 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
15648 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
15649 cat >>confdefs.h <<_ACEOF
15650 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
15655 # Check for sys/types.h types
15656 echo "$as_me:$LINENO: checking for u_int type" >&5
15657 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
15658 if test "${ac_cv_have_u_int+set}" = set; then
15659 echo $ECHO_N "(cached) $ECHO_C" >&6
15662 cat >conftest.$ac_ext <<_ACEOF
15663 #line $LINENO "configure"
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15669 #include <sys/types.h>
15678 rm -f conftest.$ac_objext
15679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15680 (eval $ac_compile) 2>&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } &&
15684 { ac_try='test -s conftest.$ac_objext'
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15690 ac_cv_have_u_int="yes"
15692 echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15695 ac_cv_have_u_int="no"
15698 rm -f conftest.$ac_objext conftest.$ac_ext
15701 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
15702 echo "${ECHO_T}$ac_cv_have_u_int" >&6
15703 if test "x$ac_cv_have_u_int" = "xyes" ; then
15704 cat >>confdefs.h <<\_ACEOF
15705 #define HAVE_U_INT 1
15711 echo "$as_me:$LINENO: checking for intmax_t type" >&5
15712 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
15713 if test "${ac_cv_have_intmax_t+set}" = set; then
15714 echo $ECHO_N "(cached) $ECHO_C" >&6
15717 cat >conftest.$ac_ext <<_ACEOF
15718 #line $LINENO "configure"
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15724 #include <sys/types.h>
15733 rm -f conftest.$ac_objext
15734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15735 (eval $ac_compile) 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } &&
15739 { ac_try='test -s conftest.$ac_objext'
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }; then
15745 ac_cv_have_intmax_t="yes"
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15751 cat >conftest.$ac_ext <<_ACEOF
15752 #line $LINENO "configure"
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15758 #include <stdint.h>
15767 rm -f conftest.$ac_objext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15769 (eval $ac_compile) 2>&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } &&
15773 { ac_try='test -s conftest.$ac_objext'
15774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775 (eval $ac_try) 2>&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; }; then
15779 ac_cv_have_intmax_t="yes"
15781 echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15784 ac_cv_have_intmax_t="no"
15787 rm -f conftest.$ac_objext conftest.$ac_ext
15791 rm -f conftest.$ac_objext conftest.$ac_ext
15795 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
15796 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
15797 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
15798 cat >>confdefs.h <<\_ACEOF
15799 #define HAVE_INTMAX_T 1
15806 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
15807 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
15808 if test "${ac_cv_have_u_intmax_t+set}" = set; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15812 cat >conftest.$ac_ext <<_ACEOF
15813 #line $LINENO "configure"
15816 cat confdefs.h >>conftest.$ac_ext
15817 cat >>conftest.$ac_ext <<_ACEOF
15818 /* end confdefs.h. */
15819 #include <sys/types.h>
15823 u_intmax_t a; a = 1;
15828 rm -f conftest.$ac_objext
15829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15830 (eval $ac_compile) 2>&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } &&
15834 { ac_try='test -s conftest.$ac_objext'
15835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836 (eval $ac_try) 2>&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; }; then
15840 ac_cv_have_u_intmax_t="yes"
15842 echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.$ac_ext >&5
15846 cat >conftest.$ac_ext <<_ACEOF
15847 #line $LINENO "configure"
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h. */
15853 #include <stdint.h>
15857 u_intmax_t a; a = 1;
15862 rm -f conftest.$ac_objext
15863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15864 (eval $ac_compile) 2>&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } &&
15868 { ac_try='test -s conftest.$ac_objext'
15869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870 (eval $ac_try) 2>&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; }; then
15874 ac_cv_have_u_intmax_t="yes"
15876 echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15879 ac_cv_have_u_intmax_t="no"
15882 rm -f conftest.$ac_objext conftest.$ac_ext
15886 rm -f conftest.$ac_objext conftest.$ac_ext
15889 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
15890 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
15891 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
15892 cat >>confdefs.h <<\_ACEOF
15893 #define HAVE_U_INTMAX_T 1
15900 echo "$as_me:$LINENO: checking for intXX_t types" >&5
15901 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
15902 if test "${ac_cv_have_intxx_t+set}" = set; then
15903 echo $ECHO_N "(cached) $ECHO_C" >&6
15906 cat >conftest.$ac_ext <<_ACEOF
15907 #line $LINENO "configure"
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h. */
15913 #include <sys/types.h>
15917 int8_t a; int16_t b; int32_t c; a = b = c = 1;
15922 rm -f conftest.$ac_objext
15923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15924 (eval $ac_compile) 2>&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); } &&
15928 { ac_try='test -s conftest.$ac_objext'
15929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930 (eval $ac_try) 2>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; }; then
15934 ac_cv_have_intxx_t="yes"
15936 echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15939 ac_cv_have_intxx_t="no"
15942 rm -f conftest.$ac_objext conftest.$ac_ext
15945 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
15946 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
15947 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
15948 cat >>confdefs.h <<\_ACEOF
15949 #define HAVE_INTXX_T 1
15955 echo "$as_me:$LINENO: checking for int64_t type" >&5
15956 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
15957 if test "${ac_cv_have_int64_t+set}" = set; then
15958 echo $ECHO_N "(cached) $ECHO_C" >&6
15961 cat >conftest.$ac_ext <<_ACEOF
15962 #line $LINENO "configure"
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h. */
15968 #include <sys/types.h>
15977 rm -f conftest.$ac_objext
15978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15979 (eval $ac_compile) 2>&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } &&
15983 { ac_try='test -s conftest.$ac_objext'
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; }; then
15989 ac_cv_have_int64_t="yes"
15991 echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15994 ac_cv_have_int64_t="no"
15997 rm -f conftest.$ac_objext conftest.$ac_ext
16000 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
16001 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
16002 if test "x$ac_cv_have_int64_t" = "xyes" ; then
16003 cat >>confdefs.h <<\_ACEOF
16004 #define HAVE_INT64_T 1
16010 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
16011 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
16012 if test "${ac_cv_have_u_intxx_t+set}" = set; then
16013 echo $ECHO_N "(cached) $ECHO_C" >&6
16016 cat >conftest.$ac_ext <<_ACEOF
16017 #line $LINENO "configure"
16020 cat confdefs.h >>conftest.$ac_ext
16021 cat >>conftest.$ac_ext <<_ACEOF
16022 /* end confdefs.h. */
16023 #include <sys/types.h>
16027 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
16032 rm -f conftest.$ac_objext
16033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16034 (eval $ac_compile) 2>&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } &&
16038 { ac_try='test -s conftest.$ac_objext'
16039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040 (eval $ac_try) 2>&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; }; then
16044 ac_cv_have_u_intxx_t="yes"
16046 echo "$as_me: failed program was:" >&5
16047 sed 's/^/| /' conftest.$ac_ext >&5
16049 ac_cv_have_u_intxx_t="no"
16052 rm -f conftest.$ac_objext conftest.$ac_ext
16055 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
16056 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
16057 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
16058 cat >>confdefs.h <<\_ACEOF
16059 #define HAVE_U_INTXX_T 1
16065 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
16066 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
16067 if test "${ac_cv_have_u_int64_t+set}" = set; then
16068 echo $ECHO_N "(cached) $ECHO_C" >&6
16071 cat >conftest.$ac_ext <<_ACEOF
16072 #line $LINENO "configure"
16075 cat confdefs.h >>conftest.$ac_ext
16076 cat >>conftest.$ac_ext <<_ACEOF
16077 /* end confdefs.h. */
16078 #include <sys/types.h>
16082 u_int64_t a; a = 1;
16087 rm -f conftest.$ac_objext
16088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16089 (eval $ac_compile) 2>&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } &&
16093 { ac_try='test -s conftest.$ac_objext'
16094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095 (eval $ac_try) 2>&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; }; then
16099 ac_cv_have_u_int64_t="yes"
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16104 ac_cv_have_u_int64_t="no"
16107 rm -f conftest.$ac_objext conftest.$ac_ext
16110 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
16111 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
16112 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
16113 cat >>confdefs.h <<\_ACEOF
16114 #define HAVE_U_INT64_T 1
16120 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
16121 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16123 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
16124 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
16125 cat >conftest.$ac_ext <<_ACEOF
16126 #line $LINENO "configure"
16129 cat confdefs.h >>conftest.$ac_ext
16130 cat >>conftest.$ac_ext <<_ACEOF
16131 /* end confdefs.h. */
16132 #include <sys/bitypes.h>
16136 int8_t a; int16_t b; int32_t c;
16137 u_int8_t e; u_int16_t f; u_int32_t g;
16138 a = b = c = e = f = g = 1;
16143 rm -f conftest.$ac_objext
16144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16145 (eval $ac_compile) 2>&5
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } &&
16149 { ac_try='test -s conftest.$ac_objext'
16150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16151 (eval $ac_try) 2>&5
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); }; }; then
16155 cat >>confdefs.h <<\_ACEOF
16156 #define HAVE_U_INTXX_T 1
16159 cat >>confdefs.h <<\_ACEOF
16160 #define HAVE_INTXX_T 1
16163 cat >>confdefs.h <<\_ACEOF
16164 #define HAVE_SYS_BITYPES_H 1
16167 echo "$as_me:$LINENO: result: yes" >&5
16168 echo "${ECHO_T}yes" >&6
16170 echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16173 echo "$as_me:$LINENO: result: no" >&5
16174 echo "${ECHO_T}no" >&6
16177 rm -f conftest.$ac_objext conftest.$ac_ext
16180 if test -z "$have_u_intxx_t" ; then
16181 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
16182 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
16183 if test "${ac_cv_have_uintxx_t+set}" = set; then
16184 echo $ECHO_N "(cached) $ECHO_C" >&6
16187 cat >conftest.$ac_ext <<_ACEOF
16188 #line $LINENO "configure"
16191 cat confdefs.h >>conftest.$ac_ext
16192 cat >>conftest.$ac_ext <<_ACEOF
16193 /* end confdefs.h. */
16194 #include <sys/types.h>
16198 uint8_t a; uint16_t b;
16199 uint32_t c; a = b = c = 1;
16204 rm -f conftest.$ac_objext
16205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16206 (eval $ac_compile) 2>&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); } &&
16210 { ac_try='test -s conftest.$ac_objext'
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; }; then
16216 ac_cv_have_uintxx_t="yes"
16218 echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16221 ac_cv_have_uintxx_t="no"
16224 rm -f conftest.$ac_objext conftest.$ac_ext
16227 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
16228 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
16229 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
16230 cat >>confdefs.h <<\_ACEOF
16231 #define HAVE_UINTXX_T 1
16237 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
16238 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16240 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
16241 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
16242 cat >conftest.$ac_ext <<_ACEOF
16243 #line $LINENO "configure"
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16249 #include <sys/bitypes.h>
16253 int64_t a; u_int64_t b;
16259 rm -f conftest.$ac_objext
16260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16261 (eval $ac_compile) 2>&5
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); } &&
16265 { ac_try='test -s conftest.$ac_objext'
16266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267 (eval $ac_try) 2>&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; }; then
16271 cat >>confdefs.h <<\_ACEOF
16272 #define HAVE_U_INT64_T 1
16275 cat >>confdefs.h <<\_ACEOF
16276 #define HAVE_INT64_T 1
16279 echo "$as_me:$LINENO: result: yes" >&5
16280 echo "${ECHO_T}yes" >&6
16282 echo "$as_me: failed program was:" >&5
16283 sed 's/^/| /' conftest.$ac_ext >&5
16285 echo "$as_me:$LINENO: result: no" >&5
16286 echo "${ECHO_T}no" >&6
16289 rm -f conftest.$ac_objext conftest.$ac_ext
16292 if (test -z "$have_uintxx_t" && \
16293 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16295 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
16296 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
16297 cat >conftest.$ac_ext <<_ACEOF
16298 #line $LINENO "configure"
16301 cat confdefs.h >>conftest.$ac_ext
16302 cat >>conftest.$ac_ext <<_ACEOF
16303 /* end confdefs.h. */
16304 #include <sys/bitypes.h>
16308 uint8_t a; uint16_t b;
16309 uint32_t c; a = b = c = 1;
16314 rm -f conftest.$ac_objext
16315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16316 (eval $ac_compile) 2>&5
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); } &&
16320 { ac_try='test -s conftest.$ac_objext'
16321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322 (eval $ac_try) 2>&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; }; then
16326 cat >>confdefs.h <<\_ACEOF
16327 #define HAVE_UINTXX_T 1
16330 echo "$as_me:$LINENO: result: yes" >&5
16331 echo "${ECHO_T}yes" >&6
16333 echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16336 echo "$as_me:$LINENO: result: no" >&5
16337 echo "${ECHO_T}no" >&6
16340 rm -f conftest.$ac_objext conftest.$ac_ext
16376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16377 echo "$as_me:$LINENO: checking for $ac_func" >&5
16378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16379 if eval "test \"\${$as_ac_var+set}\" = set"; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 cat >conftest.$ac_ext <<_ACEOF
16383 #line $LINENO "configure"
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 /* System header to define __stub macros and hopefully few prototypes,
16390 which can conflict with char $ac_func (); below.
16391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16392 <limits.h> exists even on freestanding compilers. */
16394 # include <limits.h>
16396 # include <assert.h>
16398 /* Override any gcc2 internal prototype to avoid an error. */
16403 /* We use char because int might match the return type of a gcc2
16404 builtin and then its argument prototype would still apply. */
16406 /* The GNU C library defines this for functions which it implements
16407 to always fail with ENOSYS. Some functions are actually named
16408 something starting with __ and the normal name is an alias. */
16409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16412 char (*f) () = $ac_func;
16421 return f != $ac_func;
16426 rm -f conftest.$ac_objext conftest$ac_exeext
16427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16428 (eval $ac_link) 2>&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } &&
16432 { ac_try='test -s conftest$ac_exeext'
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; }; then
16438 eval "$as_ac_var=yes"
16440 echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16443 eval "$as_ac_var=no"
16445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16449 if test `eval echo '${'$as_ac_var'}'` = yes; then
16450 cat >>confdefs.h <<_ACEOF
16451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16455 echo 'configure: cannot find needed function.'; exit 1
16462 for ac_func in fchdir
16464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16465 echo "$as_me:$LINENO: checking for $ac_func" >&5
16466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16467 if eval "test \"\${$as_ac_var+set}\" = set"; then
16468 echo $ECHO_N "(cached) $ECHO_C" >&6
16470 cat >conftest.$ac_ext <<_ACEOF
16471 #line $LINENO "configure"
16474 cat confdefs.h >>conftest.$ac_ext
16475 cat >>conftest.$ac_ext <<_ACEOF
16476 /* end confdefs.h. */
16477 /* System header to define __stub macros and hopefully few prototypes,
16478 which can conflict with char $ac_func (); below.
16479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16480 <limits.h> exists even on freestanding compilers. */
16482 # include <limits.h>
16484 # include <assert.h>
16486 /* Override any gcc2 internal prototype to avoid an error. */
16491 /* We use char because int might match the return type of a gcc2
16492 builtin and then its argument prototype would still apply. */
16494 /* The GNU C library defines this for functions which it implements
16495 to always fail with ENOSYS. Some functions are actually named
16496 something starting with __ and the normal name is an alias. */
16497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16500 char (*f) () = $ac_func;
16509 return f != $ac_func;
16514 rm -f conftest.$ac_objext conftest$ac_exeext
16515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16516 (eval $ac_link) 2>&5
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); } &&
16520 { ac_try='test -s conftest$ac_exeext'
16521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; }; then
16526 eval "$as_ac_var=yes"
16528 echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.$ac_ext >&5
16531 eval "$as_ac_var=no"
16533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16537 if test `eval echo '${'$as_ac_var'}'` = yes; then
16538 cat >>confdefs.h <<_ACEOF
16539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16541 cat >>confdefs.h <<\_ACEOF
16542 #define HAVE_FCHDIR 1
16549 for ac_func in strtoll
16551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16552 echo "$as_me:$LINENO: checking for $ac_func" >&5
16553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16554 if eval "test \"\${$as_ac_var+set}\" = set"; then
16555 echo $ECHO_N "(cached) $ECHO_C" >&6
16557 cat >conftest.$ac_ext <<_ACEOF
16558 #line $LINENO "configure"
16561 cat confdefs.h >>conftest.$ac_ext
16562 cat >>conftest.$ac_ext <<_ACEOF
16563 /* end confdefs.h. */
16564 /* System header to define __stub macros and hopefully few prototypes,
16565 which can conflict with char $ac_func (); below.
16566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16567 <limits.h> exists even on freestanding compilers. */
16569 # include <limits.h>
16571 # include <assert.h>
16573 /* Override any gcc2 internal prototype to avoid an error. */
16578 /* We use char because int might match the return type of a gcc2
16579 builtin and then its argument prototype would still apply. */
16581 /* The GNU C library defines this for functions which it implements
16582 to always fail with ENOSYS. Some functions are actually named
16583 something starting with __ and the normal name is an alias. */
16584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16587 char (*f) () = $ac_func;
16596 return f != $ac_func;
16601 rm -f conftest.$ac_objext conftest$ac_exeext
16602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16603 (eval $ac_link) 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); } &&
16607 { ac_try='test -s conftest$ac_exeext'
16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; }; then
16613 eval "$as_ac_var=yes"
16615 echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16618 eval "$as_ac_var=no"
16620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16624 if test `eval echo '${'$as_ac_var'}'` = yes; then
16625 cat >>confdefs.h <<_ACEOF
16626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16628 cat >>confdefs.h <<\_ACEOF
16629 #define HAVE_STRTOLL 1
16637 for ac_func in chflags
16639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16640 echo "$as_me:$LINENO: checking for $ac_func" >&5
16641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16642 if eval "test \"\${$as_ac_var+set}\" = set"; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16645 cat >conftest.$ac_ext <<_ACEOF
16646 #line $LINENO "configure"
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h. */
16652 /* System header to define __stub macros and hopefully few prototypes,
16653 which can conflict with char $ac_func (); below.
16654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16655 <limits.h> exists even on freestanding compilers. */
16657 # include <limits.h>
16659 # include <assert.h>
16661 /* Override any gcc2 internal prototype to avoid an error. */
16666 /* We use char because int might match the return type of a gcc2
16667 builtin and then its argument prototype would still apply. */
16669 /* The GNU C library defines this for functions which it implements
16670 to always fail with ENOSYS. Some functions are actually named
16671 something starting with __ and the normal name is an alias. */
16672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16675 char (*f) () = $ac_func;
16684 return f != $ac_func;
16689 rm -f conftest.$ac_objext conftest$ac_exeext
16690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16691 (eval $ac_link) 2>&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); } &&
16695 { ac_try='test -s conftest$ac_exeext'
16696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697 (eval $ac_try) 2>&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; }; then
16701 eval "$as_ac_var=yes"
16703 echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16706 eval "$as_ac_var=no"
16708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16712 if test `eval echo '${'$as_ac_var'}'` = yes; then
16713 cat >>confdefs.h <<_ACEOF
16714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16725 for ac_func in snprintf vsnprintf gethostid fseeko
16727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16728 echo "$as_me:$LINENO: checking for $ac_func" >&5
16729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16730 if eval "test \"\${$as_ac_var+set}\" = set"; then
16731 echo $ECHO_N "(cached) $ECHO_C" >&6
16733 cat >conftest.$ac_ext <<_ACEOF
16734 #line $LINENO "configure"
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h. */
16740 /* System header to define __stub macros and hopefully few prototypes,
16741 which can conflict with char $ac_func (); below.
16742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16743 <limits.h> exists even on freestanding compilers. */
16745 # include <limits.h>
16747 # include <assert.h>
16749 /* Override any gcc2 internal prototype to avoid an error. */
16754 /* We use char because int might match the return type of a gcc2
16755 builtin and then its argument prototype would still apply. */
16757 /* The GNU C library defines this for functions which it implements
16758 to always fail with ENOSYS. Some functions are actually named
16759 something starting with __ and the normal name is an alias. */
16760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16763 char (*f) () = $ac_func;
16772 return f != $ac_func;
16777 rm -f conftest.$ac_objext conftest$ac_exeext
16778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16779 (eval $ac_link) 2>&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } &&
16783 { ac_try='test -s conftest$ac_exeext'
16784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785 (eval $ac_try) 2>&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; }; then
16789 eval "$as_ac_var=yes"
16791 echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16794 eval "$as_ac_var=no"
16796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16800 if test `eval echo '${'$as_ac_var'}'` = yes; then
16801 cat >>confdefs.h <<_ACEOF
16802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16813 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
16815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16816 echo "$as_me:$LINENO: checking for $ac_func" >&5
16817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16818 if eval "test \"\${$as_ac_var+set}\" = set"; then
16819 echo $ECHO_N "(cached) $ECHO_C" >&6
16821 cat >conftest.$ac_ext <<_ACEOF
16822 #line $LINENO "configure"
16825 cat confdefs.h >>conftest.$ac_ext
16826 cat >>conftest.$ac_ext <<_ACEOF
16827 /* end confdefs.h. */
16828 /* System header to define __stub macros and hopefully few prototypes,
16829 which can conflict with char $ac_func (); below.
16830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16831 <limits.h> exists even on freestanding compilers. */
16833 # include <limits.h>
16835 # include <assert.h>
16837 /* Override any gcc2 internal prototype to avoid an error. */
16842 /* We use char because int might match the return type of a gcc2
16843 builtin and then its argument prototype would still apply. */
16845 /* The GNU C library defines this for functions which it implements
16846 to always fail with ENOSYS. Some functions are actually named
16847 something starting with __ and the normal name is an alias. */
16848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16851 char (*f) () = $ac_func;
16860 return f != $ac_func;
16865 rm -f conftest.$ac_objext conftest$ac_exeext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16867 (eval $ac_link) 2>&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } &&
16871 { ac_try='test -s conftest$ac_exeext'
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; }; then
16877 eval "$as_ac_var=yes"
16879 echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16882 eval "$as_ac_var=no"
16884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16888 if test `eval echo '${'$as_ac_var'}'` = yes; then
16889 cat >>confdefs.h <<_ACEOF
16890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16897 # If resolver functions are not in libc check for -lnsl or -lresolv.
16898 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
16899 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
16900 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
16903 cat >conftest.$ac_ext <<_ACEOF
16904 #line $LINENO "configure"
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h. */
16910 /* System header to define __stub macros and hopefully few prototypes,
16911 which can conflict with char gethostbyname_r (); below.
16912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16913 <limits.h> exists even on freestanding compilers. */
16915 # include <limits.h>
16917 # include <assert.h>
16919 /* Override any gcc2 internal prototype to avoid an error. */
16924 /* We use char because int might match the return type of a gcc2
16925 builtin and then its argument prototype would still apply. */
16926 char gethostbyname_r ();
16927 /* The GNU C library defines this for functions which it implements
16928 to always fail with ENOSYS. Some functions are actually named
16929 something starting with __ and the normal name is an alias. */
16930 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
16933 char (*f) () = gethostbyname_r;
16942 return f != gethostbyname_r;
16947 rm -f conftest.$ac_objext conftest$ac_exeext
16948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16949 (eval $ac_link) 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); } &&
16953 { ac_try='test -s conftest$ac_exeext'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 ac_cv_func_gethostbyname_r=yes
16961 echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16964 ac_cv_func_gethostbyname_r=no
16966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16968 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
16969 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
16970 if test $ac_cv_func_gethostbyname_r = yes; then
16971 echo "$as_me:$LINENO: result: using libc's resolver" >&5
16972 echo "${ECHO_T}using libc's resolver" >&6
16975 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
16976 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
16977 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
16978 echo $ECHO_N "(cached) $ECHO_C" >&6
16980 ac_check_lib_save_LIBS=$LIBS
16982 cat >conftest.$ac_ext <<_ACEOF
16983 #line $LINENO "configure"
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16990 /* Override any gcc2 internal prototype to avoid an error. */
16994 /* We use char because int might match the return type of a gcc2
16995 builtin and then its argument prototype would still apply. */
16996 char gethostbyname_r ();
17000 gethostbyname_r ();
17005 rm -f conftest.$ac_objext conftest$ac_exeext
17006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17007 (eval $ac_link) 2>&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); } &&
17011 { ac_try='test -s conftest$ac_exeext'
17012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013 (eval $ac_try) 2>&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; }; then
17017 ac_cv_lib_nsl_gethostbyname_r=yes
17019 echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17022 ac_cv_lib_nsl_gethostbyname_r=no
17024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17025 LIBS=$ac_check_lib_save_LIBS
17027 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
17028 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
17029 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
17030 cat >>confdefs.h <<_ACEOF
17031 #define HAVE_LIBNSL 1
17039 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
17040 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
17041 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
17042 echo $ECHO_N "(cached) $ECHO_C" >&6
17044 ac_check_lib_save_LIBS=$LIBS
17045 LIBS="-lresolv $LIBS"
17046 cat >conftest.$ac_ext <<_ACEOF
17047 #line $LINENO "configure"
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h. */
17054 /* Override any gcc2 internal prototype to avoid an error. */
17058 /* We use char because int might match the return type of a gcc2
17059 builtin and then its argument prototype would still apply. */
17060 char gethostbyname_r ();
17064 gethostbyname_r ();
17069 rm -f conftest.$ac_objext conftest$ac_exeext
17070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17071 (eval $ac_link) 2>&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } &&
17075 { ac_try='test -s conftest$ac_exeext'
17076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077 (eval $ac_try) 2>&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; }; then
17081 ac_cv_lib_resolv_gethostbyname_r=yes
17083 echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17086 ac_cv_lib_resolv_gethostbyname_r=no
17088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17089 LIBS=$ac_check_lib_save_LIBS
17091 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
17092 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
17093 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
17094 cat >>confdefs.h <<_ACEOF
17095 #define HAVE_LIBRESOLV 1
17098 LIBS="-lresolv $LIBS"
17108 for ac_func in inet_pton
17110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17111 echo "$as_me:$LINENO: checking for $ac_func" >&5
17112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17113 if eval "test \"\${$as_ac_var+set}\" = set"; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17116 cat >conftest.$ac_ext <<_ACEOF
17117 #line $LINENO "configure"
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h. */
17123 /* System header to define __stub macros and hopefully few prototypes,
17124 which can conflict with char $ac_func (); below.
17125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17126 <limits.h> exists even on freestanding compilers. */
17128 # include <limits.h>
17130 # include <assert.h>
17132 /* Override any gcc2 internal prototype to avoid an error. */
17137 /* We use char because int might match the return type of a gcc2
17138 builtin and then its argument prototype would still apply. */
17140 /* The GNU C library defines this for functions which it implements
17141 to always fail with ENOSYS. Some functions are actually named
17142 something starting with __ and the normal name is an alias. */
17143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17146 char (*f) () = $ac_func;
17155 return f != $ac_func;
17160 rm -f conftest.$ac_objext conftest$ac_exeext
17161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17162 (eval $ac_link) 2>&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } &&
17166 { ac_try='test -s conftest$ac_exeext'
17167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; }; then
17172 eval "$as_ac_var=yes"
17174 echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.$ac_ext >&5
17177 eval "$as_ac_var=no"
17179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17183 if test `eval echo '${'$as_ac_var'}'` = yes; then
17184 cat >>confdefs.h <<_ACEOF
17185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17187 cat >>confdefs.h <<\_ACEOF
17188 #define HAVE_INET_PTON 1
17195 for ac_func in inet_ntop
17197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17198 echo "$as_me:$LINENO: checking for $ac_func" >&5
17199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17200 if eval "test \"\${$as_ac_var+set}\" = set"; then
17201 echo $ECHO_N "(cached) $ECHO_C" >&6
17203 cat >conftest.$ac_ext <<_ACEOF
17204 #line $LINENO "configure"
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17210 /* System header to define __stub macros and hopefully few prototypes,
17211 which can conflict with char $ac_func (); below.
17212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17213 <limits.h> exists even on freestanding compilers. */
17215 # include <limits.h>
17217 # include <assert.h>
17219 /* Override any gcc2 internal prototype to avoid an error. */
17224 /* We use char because int might match the return type of a gcc2
17225 builtin and then its argument prototype would still apply. */
17227 /* The GNU C library defines this for functions which it implements
17228 to always fail with ENOSYS. Some functions are actually named
17229 something starting with __ and the normal name is an alias. */
17230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17233 char (*f) () = $ac_func;
17242 return f != $ac_func;
17247 rm -f conftest.$ac_objext conftest$ac_exeext
17248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17249 (eval $ac_link) 2>&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); } &&
17253 { ac_try='test -s conftest$ac_exeext'
17254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17255 (eval $ac_try) 2>&5
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); }; }; then
17259 eval "$as_ac_var=yes"
17261 echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.$ac_ext >&5
17264 eval "$as_ac_var=no"
17266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17270 if test `eval echo '${'$as_ac_var'}'` = yes; then
17271 cat >>confdefs.h <<_ACEOF
17272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17274 cat >>confdefs.h <<\_ACEOF
17275 #define HAVE_INET_NTOP 1
17282 for ac_func in gethostbyname2
17284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17285 echo "$as_me:$LINENO: checking for $ac_func" >&5
17286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17287 if eval "test \"\${$as_ac_var+set}\" = set"; then
17288 echo $ECHO_N "(cached) $ECHO_C" >&6
17290 cat >conftest.$ac_ext <<_ACEOF
17291 #line $LINENO "configure"
17294 cat confdefs.h >>conftest.$ac_ext
17295 cat >>conftest.$ac_ext <<_ACEOF
17296 /* end confdefs.h. */
17297 /* System header to define __stub macros and hopefully few prototypes,
17298 which can conflict with char $ac_func (); below.
17299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17300 <limits.h> exists even on freestanding compilers. */
17302 # include <limits.h>
17304 # include <assert.h>
17306 /* Override any gcc2 internal prototype to avoid an error. */
17311 /* We use char because int might match the return type of a gcc2
17312 builtin and then its argument prototype would still apply. */
17314 /* The GNU C library defines this for functions which it implements
17315 to always fail with ENOSYS. Some functions are actually named
17316 something starting with __ and the normal name is an alias. */
17317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17320 char (*f) () = $ac_func;
17329 return f != $ac_func;
17334 rm -f conftest.$ac_objext conftest$ac_exeext
17335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17336 (eval $ac_link) 2>&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } &&
17340 { ac_try='test -s conftest$ac_exeext'
17341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17342 (eval $ac_try) 2>&5
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); }; }; then
17346 eval "$as_ac_var=yes"
17348 echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17351 eval "$as_ac_var=no"
17353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17357 if test `eval echo '${'$as_ac_var'}'` = yes; then
17358 cat >>confdefs.h <<_ACEOF
17359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17361 cat >>confdefs.h <<\_ACEOF
17362 #define HAVE_GETHOSTBYNAME2 1
17369 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
17370 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
17371 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
17372 echo $ECHO_N "(cached) $ECHO_C" >&6
17374 cat >conftest.$ac_ext <<_ACEOF
17375 #line $LINENO "configure"
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h. */
17381 #include <sys/socket.h>
17385 struct sockaddr s; s.sa_len;
17390 rm -f conftest.$ac_objext
17391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17392 (eval $ac_compile) 2>&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } &&
17396 { ac_try='test -s conftest.$ac_objext'
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
17402 ac_cv_struct_sockaddr_sa_len=yes
17404 echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17407 ac_cv_struct_sockaddr_sa_len=no
17409 rm -f conftest.$ac_objext conftest.$ac_ext
17411 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
17412 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
17414 if test $ac_cv_struct_sockaddr_sa_len = yes; then
17416 cat >>confdefs.h <<\_ACEOF
17417 #define HAVE_SA_LEN 1
17423 echo "$as_me:$LINENO: checking for IPv6 support" >&5
17424 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
17425 if test "${ac_cv_ipv6_support+set}" = set; then
17426 echo $ECHO_N "(cached) $ECHO_C" >&6
17428 cat >conftest.$ac_ext <<_ACEOF
17429 #line $LINENO "configure"
17432 cat confdefs.h >>conftest.$ac_ext
17433 cat >>conftest.$ac_ext <<_ACEOF
17434 /* end confdefs.h. */
17435 #include <sys/types.h>
17436 #include <sys/socket.h>
17437 #include <netinet/in.h>
17441 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
17447 rm -f conftest.$ac_objext conftest$ac_exeext
17448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17449 (eval $ac_link) 2>&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } &&
17453 { ac_try='test -s conftest$ac_exeext'
17454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455 (eval $ac_try) 2>&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; }; then
17459 ac_cv_ipv6_support=yes
17461 echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17464 ac_cv_ipv6_support=no
17466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17468 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
17469 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
17471 if test "$ac_cv_ipv6_support" = yes; then
17473 cat >>confdefs.h <<\_ACEOF
17474 #define HAVE_IPV6 1
17482 for ac_func in strftime
17484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17485 echo "$as_me:$LINENO: checking for $ac_func" >&5
17486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17487 if eval "test \"\${$as_ac_var+set}\" = set"; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17490 cat >conftest.$ac_ext <<_ACEOF
17491 #line $LINENO "configure"
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17497 /* System header to define __stub macros and hopefully few prototypes,
17498 which can conflict with char $ac_func (); below.
17499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17500 <limits.h> exists even on freestanding compilers. */
17502 # include <limits.h>
17504 # include <assert.h>
17506 /* Override any gcc2 internal prototype to avoid an error. */
17511 /* We use char because int might match the return type of a gcc2
17512 builtin and then its argument prototype would still apply. */
17514 /* The GNU C library defines this for functions which it implements
17515 to always fail with ENOSYS. Some functions are actually named
17516 something starting with __ and the normal name is an alias. */
17517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17520 char (*f) () = $ac_func;
17529 return f != $ac_func;
17534 rm -f conftest.$ac_objext conftest$ac_exeext
17535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17536 (eval $ac_link) 2>&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); } &&
17540 { ac_try='test -s conftest$ac_exeext'
17541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542 (eval $ac_try) 2>&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; }; then
17546 eval "$as_ac_var=yes"
17548 echo "$as_me: failed program was:" >&5
17549 sed 's/^/| /' conftest.$ac_ext >&5
17551 eval "$as_ac_var=no"
17553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17557 if test `eval echo '${'$as_ac_var'}'` = yes; then
17558 cat >>confdefs.h <<_ACEOF
17559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17563 # strftime is in -lintl on SCO UNIX.
17564 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17565 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17566 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17567 echo $ECHO_N "(cached) $ECHO_C" >&6
17569 ac_check_lib_save_LIBS=$LIBS
17570 LIBS="-lintl $LIBS"
17571 cat >conftest.$ac_ext <<_ACEOF
17572 #line $LINENO "configure"
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h. */
17579 /* Override any gcc2 internal prototype to avoid an error. */
17583 /* We use char because int might match the return type of a gcc2
17584 builtin and then its argument prototype would still apply. */
17594 rm -f conftest.$ac_objext conftest$ac_exeext
17595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17596 (eval $ac_link) 2>&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); } &&
17600 { ac_try='test -s conftest$ac_exeext'
17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602 (eval $ac_try) 2>&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; }; then
17606 ac_cv_lib_intl_strftime=yes
17608 echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17611 ac_cv_lib_intl_strftime=no
17613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17614 LIBS=$ac_check_lib_save_LIBS
17616 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17617 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17618 if test $ac_cv_lib_intl_strftime = yes; then
17619 cat >>confdefs.h <<\_ACEOF
17620 #define HAVE_STRFTIME 1
17623 LIBS="-lintl $LIBS"
17630 for ac_func in vprintf
17632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17633 echo "$as_me:$LINENO: checking for $ac_func" >&5
17634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17635 if eval "test \"\${$as_ac_var+set}\" = set"; then
17636 echo $ECHO_N "(cached) $ECHO_C" >&6
17638 cat >conftest.$ac_ext <<_ACEOF
17639 #line $LINENO "configure"
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17645 /* System header to define __stub macros and hopefully few prototypes,
17646 which can conflict with char $ac_func (); below.
17647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17648 <limits.h> exists even on freestanding compilers. */
17650 # include <limits.h>
17652 # include <assert.h>
17654 /* Override any gcc2 internal prototype to avoid an error. */
17659 /* We use char because int might match the return type of a gcc2
17660 builtin and then its argument prototype would still apply. */
17662 /* The GNU C library defines this for functions which it implements
17663 to always fail with ENOSYS. Some functions are actually named
17664 something starting with __ and the normal name is an alias. */
17665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17668 char (*f) () = $ac_func;
17677 return f != $ac_func;
17682 rm -f conftest.$ac_objext conftest$ac_exeext
17683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17684 (eval $ac_link) 2>&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } &&
17688 { ac_try='test -s conftest$ac_exeext'
17689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690 (eval $ac_try) 2>&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); }; }; then
17694 eval "$as_ac_var=yes"
17696 echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17699 eval "$as_ac_var=no"
17701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17705 if test `eval echo '${'$as_ac_var'}'` = yes; then
17706 cat >>confdefs.h <<_ACEOF
17707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17710 echo "$as_me:$LINENO: checking for _doprnt" >&5
17711 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
17712 if test "${ac_cv_func__doprnt+set}" = set; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17715 cat >conftest.$ac_ext <<_ACEOF
17716 #line $LINENO "configure"
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h. */
17722 /* System header to define __stub macros and hopefully few prototypes,
17723 which can conflict with char _doprnt (); below.
17724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17725 <limits.h> exists even on freestanding compilers. */
17727 # include <limits.h>
17729 # include <assert.h>
17731 /* Override any gcc2 internal prototype to avoid an error. */
17736 /* We use char because int might match the return type of a gcc2
17737 builtin and then its argument prototype would still apply. */
17739 /* The GNU C library defines this for functions which it implements
17740 to always fail with ENOSYS. Some functions are actually named
17741 something starting with __ and the normal name is an alias. */
17742 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17745 char (*f) () = _doprnt;
17754 return f != _doprnt;
17759 rm -f conftest.$ac_objext conftest$ac_exeext
17760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17761 (eval $ac_link) 2>&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } &&
17765 { ac_try='test -s conftest$ac_exeext'
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; }; then
17771 ac_cv_func__doprnt=yes
17773 echo "$as_me: failed program was:" >&5
17774 sed 's/^/| /' conftest.$ac_ext >&5
17776 ac_cv_func__doprnt=no
17778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17780 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17781 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
17782 if test $ac_cv_func__doprnt = yes; then
17784 cat >>confdefs.h <<\_ACEOF
17785 #define HAVE_DOPRNT 1
17794 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17795 # for constant arguments. Useless!
17796 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17797 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17798 if test "${ac_cv_working_alloca_h+set}" = set; then
17799 echo $ECHO_N "(cached) $ECHO_C" >&6
17801 cat >conftest.$ac_ext <<_ACEOF
17802 #line $LINENO "configure"
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h. */
17808 #include <alloca.h>
17812 char *p = (char *) alloca (2 * sizeof (int));
17817 rm -f conftest.$ac_objext conftest$ac_exeext
17818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17819 (eval $ac_link) 2>&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } &&
17823 { ac_try='test -s conftest$ac_exeext'
17824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825 (eval $ac_try) 2>&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; }; then
17829 ac_cv_working_alloca_h=yes
17831 echo "$as_me: failed program was:" >&5
17832 sed 's/^/| /' conftest.$ac_ext >&5
17834 ac_cv_working_alloca_h=no
17836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17838 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17839 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17840 if test $ac_cv_working_alloca_h = yes; then
17842 cat >>confdefs.h <<\_ACEOF
17843 #define HAVE_ALLOCA_H 1
17848 echo "$as_me:$LINENO: checking for alloca" >&5
17849 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17850 if test "${ac_cv_func_alloca_works+set}" = set; then
17851 echo $ECHO_N "(cached) $ECHO_C" >&6
17853 cat >conftest.$ac_ext <<_ACEOF
17854 #line $LINENO "configure"
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17861 # define alloca __builtin_alloca
17864 # include <malloc.h>
17865 # define alloca _alloca
17868 # include <alloca.h>
17873 # ifndef alloca /* predefined by HP cc +Olibcalls */
17884 char *p = (char *) alloca (1);
17889 rm -f conftest.$ac_objext conftest$ac_exeext
17890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17891 (eval $ac_link) 2>&5
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); } &&
17895 { ac_try='test -s conftest$ac_exeext'
17896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17897 (eval $ac_try) 2>&5
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); }; }; then
17901 ac_cv_func_alloca_works=yes
17903 echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17906 ac_cv_func_alloca_works=no
17908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17910 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17911 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17913 if test $ac_cv_func_alloca_works = yes; then
17915 cat >>confdefs.h <<\_ACEOF
17916 #define HAVE_ALLOCA 1
17920 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17921 # that cause trouble. Some versions do not even contain alloca or
17922 # contain a buggy version. If you still want to use their alloca,
17923 # use ar to extract alloca.o from them instead of compiling alloca.c.
17925 ALLOCA=alloca.$ac_objext
17927 cat >>confdefs.h <<\_ACEOF
17932 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17933 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17934 if test "${ac_cv_os_cray+set}" = set; then
17935 echo $ECHO_N "(cached) $ECHO_C" >&6
17937 cat >conftest.$ac_ext <<_ACEOF
17938 #line $LINENO "configure"
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h. */
17944 #if defined(CRAY) && ! defined(CRAY2)
17951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17952 $EGREP "webecray" >/dev/null 2>&1; then
17960 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17961 echo "${ECHO_T}$ac_cv_os_cray" >&6
17962 if test $ac_cv_os_cray = yes; then
17963 for ac_func in _getb67 GETB67 getb67; do
17964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17965 echo "$as_me:$LINENO: checking for $ac_func" >&5
17966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17967 if eval "test \"\${$as_ac_var+set}\" = set"; then
17968 echo $ECHO_N "(cached) $ECHO_C" >&6
17970 cat >conftest.$ac_ext <<_ACEOF
17971 #line $LINENO "configure"
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17977 /* System header to define __stub macros and hopefully few prototypes,
17978 which can conflict with char $ac_func (); below.
17979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17980 <limits.h> exists even on freestanding compilers. */
17982 # include <limits.h>
17984 # include <assert.h>
17986 /* Override any gcc2 internal prototype to avoid an error. */
17991 /* We use char because int might match the return type of a gcc2
17992 builtin and then its argument prototype would still apply. */
17994 /* The GNU C library defines this for functions which it implements
17995 to always fail with ENOSYS. Some functions are actually named
17996 something starting with __ and the normal name is an alias. */
17997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18000 char (*f) () = $ac_func;
18009 return f != $ac_func;
18014 rm -f conftest.$ac_objext conftest$ac_exeext
18015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18016 (eval $ac_link) 2>&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); } &&
18020 { ac_try='test -s conftest$ac_exeext'
18021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022 (eval $ac_try) 2>&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; }; then
18026 eval "$as_ac_var=yes"
18028 echo "$as_me: failed program was:" >&5
18029 sed 's/^/| /' conftest.$ac_ext >&5
18031 eval "$as_ac_var=no"
18033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18037 if test `eval echo '${'$as_ac_var'}'` = yes; then
18039 cat >>confdefs.h <<_ACEOF
18040 #define CRAY_STACKSEG_END $ac_func
18049 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18050 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
18051 if test "${ac_cv_c_stack_direction+set}" = set; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18054 if test "$cross_compiling" = yes; then
18055 ac_cv_c_stack_direction=0
18057 cat >conftest.$ac_ext <<_ACEOF
18058 #line $LINENO "configure"
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h. */
18065 find_stack_direction ()
18067 static char *addr = 0;
18072 return find_stack_direction ();
18075 return (&dummy > addr) ? 1 : -1;
18081 exit (find_stack_direction () < 0);
18084 rm -f conftest$ac_exeext
18085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18086 (eval $ac_link) 2>&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091 (eval $ac_try) 2>&5
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); }; }; then
18095 ac_cv_c_stack_direction=1
18097 echo "$as_me: program exited with status $ac_status" >&5
18098 echo "$as_me: failed program was:" >&5
18099 sed 's/^/| /' conftest.$ac_ext >&5
18101 ( exit $ac_status )
18102 ac_cv_c_stack_direction=-1
18104 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18107 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18108 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
18110 cat >>confdefs.h <<_ACEOF
18111 #define STACK_DIRECTION $ac_cv_c_stack_direction
18117 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
18118 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
18119 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
18120 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18123 ac_check_lib_save_LIBS=$LIBS
18125 cat >conftest.$ac_ext <<_ACEOF
18126 #line $LINENO "configure"
18129 cat confdefs.h >>conftest.$ac_ext
18130 cat >>conftest.$ac_ext <<_ACEOF
18131 /* end confdefs.h. */
18133 /* Override any gcc2 internal prototype to avoid an error. */
18137 /* We use char because int might match the return type of a gcc2
18138 builtin and then its argument prototype would still apply. */
18148 rm -f conftest.$ac_objext conftest$ac_exeext
18149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18150 (eval $ac_link) 2>&5
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); } &&
18154 { ac_try='test -s conftest$ac_exeext'
18155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156 (eval $ac_try) 2>&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; }; then
18160 ac_cv_lib_sun_getmntent=yes
18162 echo "$as_me: failed program was:" >&5
18163 sed 's/^/| /' conftest.$ac_ext >&5
18165 ac_cv_lib_sun_getmntent=no
18167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18168 LIBS=$ac_check_lib_save_LIBS
18170 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
18171 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
18172 if test $ac_cv_lib_sun_getmntent = yes; then
18175 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
18176 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
18177 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
18178 echo $ECHO_N "(cached) $ECHO_C" >&6
18180 ac_check_lib_save_LIBS=$LIBS
18182 cat >conftest.$ac_ext <<_ACEOF
18183 #line $LINENO "configure"
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h. */
18190 /* Override any gcc2 internal prototype to avoid an error. */
18194 /* We use char because int might match the return type of a gcc2
18195 builtin and then its argument prototype would still apply. */
18205 rm -f conftest.$ac_objext conftest$ac_exeext
18206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18207 (eval $ac_link) 2>&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); } &&
18211 { ac_try='test -s conftest$ac_exeext'
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; }; then
18217 ac_cv_lib_seq_getmntent=yes
18219 echo "$as_me: failed program was:" >&5
18220 sed 's/^/| /' conftest.$ac_ext >&5
18222 ac_cv_lib_seq_getmntent=no
18224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18225 LIBS=$ac_check_lib_save_LIBS
18227 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
18228 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
18229 if test $ac_cv_lib_seq_getmntent = yes; then
18232 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
18233 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
18234 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
18235 echo $ECHO_N "(cached) $ECHO_C" >&6
18237 ac_check_lib_save_LIBS=$LIBS
18239 cat >conftest.$ac_ext <<_ACEOF
18240 #line $LINENO "configure"
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18247 /* Override any gcc2 internal prototype to avoid an error. */
18251 /* We use char because int might match the return type of a gcc2
18252 builtin and then its argument prototype would still apply. */
18262 rm -f conftest.$ac_objext conftest$ac_exeext
18263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18264 (eval $ac_link) 2>&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } &&
18268 { ac_try='test -s conftest$ac_exeext'
18269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270 (eval $ac_try) 2>&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; }; then
18274 ac_cv_lib_gen_getmntent=yes
18276 echo "$as_me: failed program was:" >&5
18277 sed 's/^/| /' conftest.$ac_ext >&5
18279 ac_cv_lib_gen_getmntent=no
18281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18282 LIBS=$ac_check_lib_save_LIBS
18284 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
18285 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
18286 if test $ac_cv_lib_gen_getmntent = yes; then
18295 for ac_func in getmntent
18297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18298 echo "$as_me:$LINENO: checking for $ac_func" >&5
18299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18300 if eval "test \"\${$as_ac_var+set}\" = set"; then
18301 echo $ECHO_N "(cached) $ECHO_C" >&6
18303 cat >conftest.$ac_ext <<_ACEOF
18304 #line $LINENO "configure"
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h. */
18310 /* System header to define __stub macros and hopefully few prototypes,
18311 which can conflict with char $ac_func (); below.
18312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18313 <limits.h> exists even on freestanding compilers. */
18315 # include <limits.h>
18317 # include <assert.h>
18319 /* Override any gcc2 internal prototype to avoid an error. */
18324 /* We use char because int might match the return type of a gcc2
18325 builtin and then its argument prototype would still apply. */
18327 /* The GNU C library defines this for functions which it implements
18328 to always fail with ENOSYS. Some functions are actually named
18329 something starting with __ and the normal name is an alias. */
18330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18333 char (*f) () = $ac_func;
18342 return f != $ac_func;
18347 rm -f conftest.$ac_objext conftest$ac_exeext
18348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18349 (eval $ac_link) 2>&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); } &&
18353 { ac_try='test -s conftest$ac_exeext'
18354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18355 (eval $ac_try) 2>&5
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; }; then
18359 eval "$as_ac_var=yes"
18361 echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18364 eval "$as_ac_var=no"
18366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18370 if test `eval echo '${'$as_ac_var'}'` = yes; then
18371 cat >>confdefs.h <<_ACEOF
18372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18379 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
18380 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
18381 if test "${ac_cv_func_closedir_void+set}" = set; then
18382 echo $ECHO_N "(cached) $ECHO_C" >&6
18384 if test "$cross_compiling" = yes; then
18385 ac_cv_func_closedir_void=yes
18387 cat >conftest.$ac_ext <<_ACEOF
18388 #line $LINENO "configure"
18391 cat confdefs.h >>conftest.$ac_ext
18392 cat >>conftest.$ac_ext <<_ACEOF
18393 /* end confdefs.h. */
18394 $ac_includes_default
18395 #include <$ac_header_dirent>
18396 #ifndef __cplusplus
18403 exit (closedir (opendir (".")) != 0);
18408 rm -f conftest$ac_exeext
18409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18410 (eval $ac_link) 2>&5
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18415 (eval $ac_try) 2>&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; }; then
18419 ac_cv_func_closedir_void=no
18421 echo "$as_me: program exited with status $ac_status" >&5
18422 echo "$as_me: failed program was:" >&5
18423 sed 's/^/| /' conftest.$ac_ext >&5
18425 ( exit $ac_status )
18426 ac_cv_func_closedir_void=yes
18428 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18431 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
18432 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
18433 if test $ac_cv_func_closedir_void = yes; then
18435 cat >>confdefs.h <<\_ACEOF
18436 #define CLOSEDIR_VOID 1
18441 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18442 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18443 if test "${ac_cv_func_setpgrp_void+set}" = set; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18446 if test "$cross_compiling" = yes; then
18447 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18448 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18449 { (exit 1); exit 1; }; }
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. */
18459 # include <unistd.h>
18465 /* If this system has a BSD-style setpgrp which takes arguments,
18466 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18467 exit successfully. */
18468 exit (setpgrp (1,1) == -1 ? 0 : 1);
18473 rm -f conftest$ac_exeext
18474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18475 (eval $ac_link) 2>&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; }; then
18484 ac_cv_func_setpgrp_void=no
18486 echo "$as_me: program exited with status $ac_status" >&5
18487 echo "$as_me: failed program was:" >&5
18488 sed 's/^/| /' conftest.$ac_ext >&5
18490 ( exit $ac_status )
18491 ac_cv_func_setpgrp_void=yes
18493 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18496 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18497 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18498 if test $ac_cv_func_setpgrp_void = yes; then
18500 cat >>confdefs.h <<\_ACEOF
18501 #define SETPGRP_VOID 1
18505 # AC_FUNC_FNMATCH dnl use local version
18508 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
18509 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
18510 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
18511 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 ac_check_lib_save_LIBS=$LIBS
18514 LIBS="-lxpg4 $LIBS"
18515 cat >conftest.$ac_ext <<_ACEOF
18516 #line $LINENO "configure"
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18523 /* Override any gcc2 internal prototype to avoid an error. */
18527 /* We use char because int might match the return type of a gcc2
18528 builtin and then its argument prototype would still apply. */
18538 rm -f conftest.$ac_objext conftest$ac_exeext
18539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18540 (eval $ac_link) 2>&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); } &&
18544 { ac_try='test -s conftest$ac_exeext'
18545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546 (eval $ac_try) 2>&5
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; }; then
18550 ac_cv_lib_xpg4_setlocale=yes
18552 echo "$as_me: failed program was:" >&5
18553 sed 's/^/| /' conftest.$ac_ext >&5
18555 ac_cv_lib_xpg4_setlocale=no
18557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18558 LIBS=$ac_check_lib_save_LIBS
18560 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
18561 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
18562 if test $ac_cv_lib_xpg4_setlocale = yes; then
18563 LIBS="$LIBS -lxpg4"
18569 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
18570 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
18571 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 ac_check_lib_save_LIBS=$LIBS
18576 cat >conftest.$ac_ext <<_ACEOF
18577 #line $LINENO "configure"
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18584 /* Override any gcc2 internal prototype to avoid an error. */
18588 /* We use char because int might match the return type of a gcc2
18589 builtin and then its argument prototype would still apply. */
18599 rm -f conftest.$ac_objext conftest$ac_exeext
18600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18601 (eval $ac_link) 2>&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
18605 { ac_try='test -s conftest$ac_exeext'
18606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607 (eval $ac_try) 2>&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); }; }; then
18611 ac_cv_lib_sun_getpwnam=yes
18613 echo "$as_me: failed program was:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18616 ac_cv_lib_sun_getpwnam=no
18618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18619 LIBS=$ac_check_lib_save_LIBS
18621 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
18622 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
18623 if test $ac_cv_lib_sun_getpwnam = yes; then
18624 cat >>confdefs.h <<_ACEOF
18625 #define HAVE_LIBSUN 1
18634 for ac_header in zlib.h
18636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18638 echo "$as_me:$LINENO: checking for $ac_header" >&5
18639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18641 echo $ECHO_N "(cached) $ECHO_C" >&6
18643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18646 # Is the header compilable?
18647 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18649 cat >conftest.$ac_ext <<_ACEOF
18650 #line $LINENO "configure"
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h. */
18656 $ac_includes_default
18657 #include <$ac_header>
18659 rm -f conftest.$ac_objext
18660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18661 (eval $ac_compile) 2>&5
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); } &&
18665 { ac_try='test -s conftest.$ac_objext'
18666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18667 (eval $ac_try) 2>&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; }; then
18671 ac_header_compiler=yes
18673 echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18676 ac_header_compiler=no
18678 rm -f conftest.$ac_objext conftest.$ac_ext
18679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18680 echo "${ECHO_T}$ac_header_compiler" >&6
18682 # Is the header present?
18683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18685 cat >conftest.$ac_ext <<_ACEOF
18686 #line $LINENO "configure"
18689 cat confdefs.h >>conftest.$ac_ext
18690 cat >>conftest.$ac_ext <<_ACEOF
18691 /* end confdefs.h. */
18692 #include <$ac_header>
18694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18697 grep -v '^ *+' conftest.er1 >conftest.err
18699 cat conftest.err >&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } >/dev/null; then
18702 if test -s conftest.err; then
18703 ac_cpp_err=$ac_c_preproc_warn_flag
18710 if test -z "$ac_cpp_err"; then
18711 ac_header_preproc=yes
18713 echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18716 ac_header_preproc=no
18718 rm -f conftest.err conftest.$ac_ext
18719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18720 echo "${ECHO_T}$ac_header_preproc" >&6
18722 # So? What about this header?
18723 case $ac_header_compiler:$ac_header_preproc in
18725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18731 ## ------------------------------------ ##
18732 ## Report this to bug-autoconf@gnu.org. ##
18733 ## ------------------------------------ ##
18736 sed "s/^/$as_me: WARNING: /" >&2
18739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18742 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18747 ## ------------------------------------ ##
18748 ## Report this to bug-autoconf@gnu.org. ##
18749 ## ------------------------------------ ##
18752 sed "s/^/$as_me: WARNING: /" >&2
18755 echo "$as_me:$LINENO: checking for $ac_header" >&5
18756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18758 echo $ECHO_N "(cached) $ECHO_C" >&6
18760 eval "$as_ac_Header=$ac_header_preproc"
18762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18767 cat >>confdefs.h <<_ACEOF
18768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18775 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18776 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18777 if test "${ac_cv_lib_z_deflate+set}" = set; then
18778 echo $ECHO_N "(cached) $ECHO_C" >&6
18780 ac_check_lib_save_LIBS=$LIBS
18782 cat >conftest.$ac_ext <<_ACEOF
18783 #line $LINENO "configure"
18786 cat confdefs.h >>conftest.$ac_ext
18787 cat >>conftest.$ac_ext <<_ACEOF
18788 /* end confdefs.h. */
18790 /* Override any gcc2 internal prototype to avoid an error. */
18794 /* We use char because int might match the return type of a gcc2
18795 builtin and then its argument prototype would still apply. */
18805 rm -f conftest.$ac_objext conftest$ac_exeext
18806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18807 (eval $ac_link) 2>&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); } &&
18811 { ac_try='test -s conftest$ac_exeext'
18812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18813 (eval $ac_try) 2>&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; }; then
18817 ac_cv_lib_z_deflate=yes
18819 echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18822 ac_cv_lib_z_deflate=no
18824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18825 LIBS=$ac_check_lib_save_LIBS
18827 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18828 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18829 if test $ac_cv_lib_z_deflate = yes; then
18834 if test x$FDLIBS = x-lz; then
18835 cat >>confdefs.h <<\_ACEOF
18836 #define HAVE_LIBZ 1
18842 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18843 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18844 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18845 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18846 echo $ECHO_N "(cached) $ECHO_C" >&6
18848 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18849 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18851 # Is the header compilable?
18852 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18853 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18854 cat >conftest.$ac_ext <<_ACEOF
18855 #line $LINENO "configure"
18858 cat confdefs.h >>conftest.$ac_ext
18859 cat >>conftest.$ac_ext <<_ACEOF
18860 /* end confdefs.h. */
18861 $ac_includes_default
18862 #include <sys/acl.h>
18864 rm -f conftest.$ac_objext
18865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18866 (eval $ac_compile) 2>&5
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); } &&
18870 { ac_try='test -s conftest.$ac_objext'
18871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18872 (eval $ac_try) 2>&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); }; }; then
18876 ac_header_compiler=yes
18878 echo "$as_me: failed program was:" >&5
18879 sed 's/^/| /' conftest.$ac_ext >&5
18881 ac_header_compiler=no
18883 rm -f conftest.$ac_objext conftest.$ac_ext
18884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18885 echo "${ECHO_T}$ac_header_compiler" >&6
18887 # Is the header present?
18888 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18889 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18890 cat >conftest.$ac_ext <<_ACEOF
18891 #line $LINENO "configure"
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18897 #include <sys/acl.h>
18899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18902 grep -v '^ *+' conftest.er1 >conftest.err
18904 cat conftest.err >&5
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } >/dev/null; then
18907 if test -s conftest.err; then
18908 ac_cpp_err=$ac_c_preproc_warn_flag
18915 if test -z "$ac_cpp_err"; then
18916 ac_header_preproc=yes
18918 echo "$as_me: failed program was:" >&5
18919 sed 's/^/| /' conftest.$ac_ext >&5
18921 ac_header_preproc=no
18923 rm -f conftest.err conftest.$ac_ext
18924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18925 echo "${ECHO_T}$ac_header_preproc" >&6
18927 # So? What about this header?
18928 case $ac_header_compiler:$ac_header_preproc in
18930 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18931 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18932 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18933 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18936 ## ------------------------------------ ##
18937 ## Report this to bug-autoconf@gnu.org. ##
18938 ## ------------------------------------ ##
18941 sed "s/^/$as_me: WARNING: /" >&2
18944 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18945 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18946 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18947 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18948 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18949 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18952 ## ------------------------------------ ##
18953 ## Report this to bug-autoconf@gnu.org. ##
18954 ## ------------------------------------ ##
18957 sed "s/^/$as_me: WARNING: /" >&2
18960 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18961 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18962 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18963 echo $ECHO_N "(cached) $ECHO_C" >&6
18965 ac_cv_header_sys_acl_h=$ac_header_preproc
18967 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18968 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18973 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18974 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18975 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18976 echo $ECHO_N "(cached) $ECHO_C" >&6
18978 ac_check_lib_save_LIBS=$LIBS
18980 cat >conftest.$ac_ext <<_ACEOF
18981 #line $LINENO "configure"
18984 cat confdefs.h >>conftest.$ac_ext
18985 cat >>conftest.$ac_ext <<_ACEOF
18986 /* end confdefs.h. */
18988 /* Override any gcc2 internal prototype to avoid an error. */
18992 /* We use char because int might match the return type of a gcc2
18993 builtin and then its argument prototype would still apply. */
18994 char acl_get_file ();
19003 rm -f conftest.$ac_objext conftest$ac_exeext
19004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19005 (eval $ac_link) 2>&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); } &&
19009 { ac_try='test -s conftest$ac_exeext'
19010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19011 (eval $ac_try) 2>&5
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; }; then
19015 ac_cv_lib_acl_acl_get_file=yes
19017 echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19020 ac_cv_lib_acl_acl_get_file=no
19022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19023 LIBS=$ac_check_lib_save_LIBS
19025 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
19026 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
19027 if test $ac_cv_lib_acl_acl_get_file = yes; then
19028 FDLIBS="-lacl $FDLIBS"
19032 if test $ac_cv_lib_acl_acl_get_file = yes; then
19033 cat >>confdefs.h <<\_ACEOF
19041 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19042 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19043 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19044 echo $ECHO_N "(cached) $ECHO_C" >&6
19046 ac_check_lib_save_LIBS=$LIBS
19047 LIBS="-lpthread $LIBS"
19048 cat >conftest.$ac_ext <<_ACEOF
19049 #line $LINENO "configure"
19052 cat confdefs.h >>conftest.$ac_ext
19053 cat >>conftest.$ac_ext <<_ACEOF
19054 /* end confdefs.h. */
19056 /* Override any gcc2 internal prototype to avoid an error. */
19060 /* We use char because int might match the return type of a gcc2
19061 builtin and then its argument prototype would still apply. */
19062 char pthread_create ();
19071 rm -f conftest.$ac_objext conftest$ac_exeext
19072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19073 (eval $ac_link) 2>&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); } &&
19077 { ac_try='test -s conftest$ac_exeext'
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
19083 ac_cv_lib_pthread_pthread_create=yes
19085 echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19088 ac_cv_lib_pthread_pthread_create=no
19090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19091 LIBS=$ac_check_lib_save_LIBS
19093 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19094 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19095 if test $ac_cv_lib_pthread_pthread_create = yes; then
19096 PTHREAD_LIB="-lpthread"
19098 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
19099 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
19100 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
19101 echo $ECHO_N "(cached) $ECHO_C" >&6
19103 ac_check_lib_save_LIBS=$LIBS
19104 LIBS="-lpthreads $LIBS"
19105 cat >conftest.$ac_ext <<_ACEOF
19106 #line $LINENO "configure"
19109 cat confdefs.h >>conftest.$ac_ext
19110 cat >>conftest.$ac_ext <<_ACEOF
19111 /* end confdefs.h. */
19113 /* Override any gcc2 internal prototype to avoid an error. */
19117 /* We use char because int might match the return type of a gcc2
19118 builtin and then its argument prototype would still apply. */
19119 char pthread_create ();
19128 rm -f conftest.$ac_objext conftest$ac_exeext
19129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19130 (eval $ac_link) 2>&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } &&
19134 { ac_try='test -s conftest$ac_exeext'
19135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136 (eval $ac_try) 2>&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; }; then
19140 ac_cv_lib_pthreads_pthread_create=yes
19142 echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19145 ac_cv_lib_pthreads_pthread_create=no
19147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19148 LIBS=$ac_check_lib_save_LIBS
19150 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
19151 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
19152 if test $ac_cv_lib_pthreads_pthread_create = yes; then
19153 PTHREAD_LIB="-lpthreads"
19155 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
19156 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
19157 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
19158 echo $ECHO_N "(cached) $ECHO_C" >&6
19160 ac_check_lib_save_LIBS=$LIBS
19162 cat >conftest.$ac_ext <<_ACEOF
19163 #line $LINENO "configure"
19166 cat confdefs.h >>conftest.$ac_ext
19167 cat >>conftest.$ac_ext <<_ACEOF
19168 /* end confdefs.h. */
19170 /* Override any gcc2 internal prototype to avoid an error. */
19174 /* We use char because int might match the return type of a gcc2
19175 builtin and then its argument prototype would still apply. */
19176 char pthread_create ();
19185 rm -f conftest.$ac_objext conftest$ac_exeext
19186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19187 (eval $ac_link) 2>&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } &&
19191 { ac_try='test -s conftest$ac_exeext'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
19197 ac_cv_lib_c_r_pthread_create=yes
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 ac_cv_lib_c_r_pthread_create=no
19204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19205 LIBS=$ac_check_lib_save_LIBS
19207 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
19208 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
19209 if test $ac_cv_lib_c_r_pthread_create = yes; then
19210 PTHREAD_LIB="-lc_r"
19212 echo "$as_me:$LINENO: checking for pthread_create" >&5
19213 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
19214 if test "${ac_cv_func_pthread_create+set}" = set; then
19215 echo $ECHO_N "(cached) $ECHO_C" >&6
19217 cat >conftest.$ac_ext <<_ACEOF
19218 #line $LINENO "configure"
19221 cat confdefs.h >>conftest.$ac_ext
19222 cat >>conftest.$ac_ext <<_ACEOF
19223 /* end confdefs.h. */
19224 /* System header to define __stub macros and hopefully few prototypes,
19225 which can conflict with char pthread_create (); below.
19226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19227 <limits.h> exists even on freestanding compilers. */
19229 # include <limits.h>
19231 # include <assert.h>
19233 /* Override any gcc2 internal prototype to avoid an error. */
19238 /* We use char because int might match the return type of a gcc2
19239 builtin and then its argument prototype would still apply. */
19240 char pthread_create ();
19241 /* The GNU C library defines this for functions which it implements
19242 to always fail with ENOSYS. Some functions are actually named
19243 something starting with __ and the normal name is an alias. */
19244 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
19247 char (*f) () = pthread_create;
19256 return f != pthread_create;
19261 rm -f conftest.$ac_objext conftest$ac_exeext
19262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19263 (eval $ac_link) 2>&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } &&
19267 { ac_try='test -s conftest$ac_exeext'
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; }; then
19273 ac_cv_func_pthread_create=yes
19275 echo "$as_me: failed program was:" >&5
19276 sed 's/^/| /' conftest.$ac_ext >&5
19278 ac_cv_func_pthread_create=no
19280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19282 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
19283 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
19296 cat >>confdefs.h <<\_ACEOF
19302 CFLAGS=${CFLAGS--O}
19303 LDFLAGS=${LDFLAGS--O}
19304 DB_LIBS="${SQL_LFLAGS}"
19306 CPPFLAGS="$CPPFLAGS"
19331 # Finally we set appropriate distribution specific
19332 # variables and defaults
19334 # PFILES are platform specific files
19335 PFILES="platforms/Makefile"
19339 hostname=`uname -n | cut -d '.' -f 1`
19340 case "$DISTNAME" in
19343 PSCMD="ps -e -o pid,comm"
19344 PFILES="${PFILES} \
19345 platforms/aix/Makefile"
19346 TAPEDRIVE="/dev/rmt0.1"
19350 PTHREAD_LIB="-lpthread -lexc"
19351 if test "${CC}" = "gcc" ; then
19358 TAPEDRIVE="/dev/nrmt0"
19361 DISTVER=`uname -a |awk '{print $3}'`
19362 TAPEDRIVE="/dev/nrmt0"
19363 PTHREAD_LIB="-pthread"
19364 CFLAGS="${CFLAGS} -pthread"
19365 PSCMD="ps -x -o pid,command"
19368 PFILES="${PFILES} \
19369 platforms/bsdi/Makefile \
19370 platforms/bsdi/bacula-fd \
19371 platforms/bsdi/bacula-sd \
19372 platforms/bsdi/bacula-dir"
19373 largefile_support="yes"
19376 DISTVER=`uname -a |awk '{print $3}'`
19377 TAPEDRIVE="/dev/nrst0"
19379 WCFLAGS="-mwindows"
19380 WLDFLAGS="-mwindows"
19384 TAPEDRIVE="/dev/nst0"
19385 PSCMD="ps -e -o pid,command"
19387 PFILES="${PFILES} \
19388 platforms/darwin/Makefile"
19391 DISTVER=`cat /etc/debian_version`
19392 TAPEDRIVE="/dev/nrst0"
19393 PSCMD="ps -e -o pid,command"
19396 DISTVER=`uname -a |awk '{print $3}'`
19397 VER=`echo $DISTVER | cut -c 1`
19398 if test x$VER = x4 ; then
19399 PTHREAD_LIB="-pthread"
19400 CFLAGS="${CFLAGS} -pthread"
19404 TAPEDRIVE="/dev/nrsa0"
19405 PSCMD="ps -x -o pid,command"
19406 PFILES="${PFILES} \
19407 platforms/freebsd/Makefile \
19408 platforms/freebsd/bacula-fd \
19409 platforms/freebsd/bacula-sd \
19410 platforms/freebsd/bacula-dir"
19411 largefile_support="yes"
19414 PSCMD="UNIX95=1 ps -e -o pid,comm"
19415 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
19417 TAPEDRIVE="/dev/rmt/0hnb"
19418 PTHREAD_LIB="-lpthread"
19419 cat >>confdefs.h <<\_ACEOF
19420 #define _INCLUDE_LONGLONG 1
19426 TAPEDRIVE="/dev/rmt/0cbn"
19427 PSCMD="ps -e -o pid,comm"
19428 PFILES="${PFILES} \
19429 platforms/irix/Makefile \
19430 platforms/irix/bacula-fd \
19431 platforms/irix/bacula-sd \
19432 platforms/irix/bacula-dir"
19435 DISTVER=`uname -a |awk '{print $3}'`
19438 TAPEDRIVE="/dev/nrst0"
19439 PSCMD="ps -a -o pid,command"
19440 PTHREAD_LIB="-pthread"
19441 CFLAGS="${CFLAGS} -pthread"
19444 DISTVER=`uname -a |awk '{print $3}'`
19447 TAPEDRIVE="/dev/nrst0"
19448 PSCMD="ps -ax -o pid,command"
19449 PTHREAD_LIB="-pthread"
19450 CFLAGS="${CFLAGS} -pthread"
19451 PFILES="${PFILES} \
19452 platforms/openbsd/Makefile \
19453 platforms/openbsd/bacula-fd \
19454 platforms/openbsd/bacula-sd \
19455 platforms/openbsd/bacula-dir"
19458 if test -f /etc/whitebox-release ; then
19459 f=/etc/whitebox-release
19461 f=/etc/redhat-release
19463 if test `cat $f | grep release |\
19464 cut -f 3 -d ' '`x = "Enterprise"x ; then
19465 DISTVER="Enterprise "`cat $f | grep release |\
19468 DISTVER=`cat /etc/redhat-release | grep release |\
19471 TAPEDRIVE="/dev/nst0"
19472 PSCMD="ps -e -o pid,command"
19473 PFILES="${PFILES} \
19474 platforms/redhat/Makefile \
19475 platforms/redhat/bacula-fd \
19476 platforms/redhat/bacula-sd \
19477 platforms/redhat/bacula-dir \
19478 platforms/redhat/bacula.spec \
19480 hostname=`hostname -s`
19483 DISTVER=`cat /etc/mandrake-release | grep release |\
19485 TAPEDRIVE="/dev/nst0"
19486 PSCMD="ps -e -o pid,command"
19487 PFILES="${PFILES} \
19488 platforms/mandrake/Makefile \
19489 platforms/mandrake/bacula-fd \
19490 platforms/mandrake/bacula-sd \
19491 platforms/mandrake/bacula-dir \
19492 platforms/mandrake/bacula.spec \
19496 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
19497 TAPEDRIVE="/dev/nst0"
19498 PSCMD="ps -e -o pid,command"
19499 PFILES="${PFILES} \
19500 platforms/gentoo/Makefile \
19501 platforms/gentoo/bacula-init \
19502 platforms/gentoo/bacula-fd \
19503 platforms/gentoo/bacula-sd \
19504 platforms/gentoo/bacula-dir"
19507 DISTVER=`cat /etc/slackware-version`
19508 TAPEDRIVE="/dev/nst0"
19509 PSCMD="ps -e -o pid,command"
19510 PFILES="${PFILES} \
19511 platforms/slackware/Makefile \
19512 platforms/slackware/rc.bacula-fd \
19513 platforms/slackware/rc.bacula-sd \
19514 platforms/slackware/rc.bacula-dir\
19515 platforms/slackware/functions.bacula"
19519 TAPEDRIVE="/dev/rmt/0cbn"
19520 PSCMD="ps -e -o pid,comm"
19521 PFILES="${PFILES} \
19522 platforms/solaris/Makefile \
19523 platforms/solaris/bacula-fd \
19524 platforms/solaris/bacula-sd \
19525 platforms/solaris/bacula-dir"
19526 if test x$DISTVER = x5.6 ; then
19527 cat >>confdefs.h <<\_ACEOF
19528 #define HAVE_OLD_SOCKOPT 1
19532 LIBS="$LIBS -lresolv"
19535 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
19537 TAPEDRIVE="/dev/nst0"
19538 PSCMD="ps -e -o pid,command"
19539 PFILES="${PFILES} \
19540 platforms/suse/Makefile \
19541 platforms/suse/bacula-fd \
19542 platforms/suse/bacula-sd \
19543 platforms/suse/bacula-dir \
19544 platforms/suse/bacula \
19545 platforms/suse/bacula.spec"
19550 TAPEDRIVE="/dev/nst0"
19551 PSCMD="ps -e -o pid,command"
19552 PFILES="${PFILES} \
19553 platforms/suse/Makefile \
19554 platforms/suse/bacula-fd \
19555 platforms/suse/bacula-sd \
19556 platforms/suse/bacula-dir"
19560 TAPEDRIVE="/dev/nst0"
19563 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
19569 LIBS="$PTHREAD_LIB $LIBS"
19571 cat >>confdefs.h <<_ACEOF
19575 cat >>confdefs.h <<_ACEOF
19586 MCOMMON=./autoconf/Make.common
19589 if test "x${subsysdir}" = "x${sbindir}" ; then
19592 echo "You have set both --sbindir and --with-subsys-dir"
19593 echo " equal to: ${subsysdir} "
19594 echo "This is not permitted. Please reconfigure."
19596 echo "Aborting configuration ..."
19602 ac_config_files="$ac_config_files autoconf/Make.common 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/dvd-writepart scripts/dvd-freespace scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf 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/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_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"
19603 ac_config_commands="$ac_config_commands default"
19604 cat >confcache <<\_ACEOF
19605 # This file is a shell script that caches the results of configure
19606 # tests run on this system so they can be shared between configure
19607 # scripts and configure runs, see configure's option --config-cache.
19608 # It is not useful on other systems. If it contains results you don't
19609 # want to keep, you may remove or edit it.
19611 # config.status only pays attention to the cache file if you give it
19612 # the --recheck option to rerun configure.
19614 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19615 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19616 # following values.
19620 # The following way of writing the cache mishandles newlines in values,
19621 # but we know of no workaround that is simple, portable, and efficient.
19622 # So, don't put newlines in cache variables' values.
19623 # Ultrix sh set writes to stderr and can't be redirected directly,
19624 # and sets the high bit in the cache file unless we assign to the vars.
19627 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19629 # `set' does not quote correctly, so add quotes (double-quote
19630 # substitution turns \\\\ into \\, and sed turns \\ into \).
19633 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19636 # `set' quotes correctly as required by POSIX, so do not add quotes.
19638 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19645 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19647 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19649 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19650 if test -w $cache_file; then
19651 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19652 cat confcache >$cache_file
19654 echo "not updating unwritable cache $cache_file"
19659 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19660 # Let make expand exec_prefix.
19661 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19663 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19664 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19665 # trailing colons and then remove the whole line if VPATH becomes empty
19666 # (actually we leave an empty line to preserve line numbers).
19667 if test "x$srcdir" = x.; then
19668 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19669 s/:*\$(srcdir):*/:/;
19670 s/:*\${srcdir}:*/:/;
19672 s/^\([^=]*=[ ]*\):*/\1/;
19678 DEFS=-DHAVE_CONFIG_H
19682 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19683 # 1. Remove the extension, and $U if already installed.
19684 ac_i=`echo "$ac_i" |
19685 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19687 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19688 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19690 LIBOBJS=$ac_libobjs
19692 LTLIBOBJS=$ac_ltlibobjs
19696 : ${CONFIG_STATUS=./config.status}
19697 ac_clean_files_save=$ac_clean_files
19698 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19699 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19700 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19701 cat >$CONFIG_STATUS <<_ACEOF
19703 # Generated by $as_me.
19704 # Run this file to recreate the current configuration.
19705 # Compiler output produced by configure, useful for debugging
19706 # configure, is in config.log if it exists.
19709 ac_cs_recheck=false
19711 SHELL=\${CONFIG_SHELL-$SHELL}
19714 cat >>$CONFIG_STATUS <<\_ACEOF
19715 ## --------------------- ##
19716 ## M4sh Initialization. ##
19717 ## --------------------- ##
19719 # Be Bourne compatible
19720 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19723 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19724 # is contrary to our usage. Disable this feature.
19725 alias -g '${1+"$@"}'='"$@"'
19726 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19730 # Support unset when possible.
19731 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19738 # Work around bugs in pre-3.0 UWIN ksh.
19739 $as_unset ENV MAIL MAILPATH
19746 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19747 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19748 LC_TELEPHONE LC_TIME
19750 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19751 eval $as_var=C; export $as_var
19757 # Required to use basename.
19758 if expr a : '\(a\)' >/dev/null 2>&1; then
19764 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19765 as_basename=basename
19771 # Name of the executable.
19772 as_me=`$as_basename "$0" ||
19773 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19774 X"$0" : 'X\(//\)$' \| \
19775 X"$0" : 'X\(/\)$' \| \
19776 . : '\(.\)' 2>/dev/null ||
19778 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19779 /^X\/\(\/\/\)$/{ s//\1/; q; }
19780 /^X\/\(\/\).*/{ s//\1/; q; }
19784 # PATH needs CR, and LINENO needs CR and PATH.
19785 # Avoid depending upon Character Ranges.
19786 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19787 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19788 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19789 as_cr_digits='0123456789'
19790 as_cr_alnum=$as_cr_Letters$as_cr_digits
19792 # The user is always right.
19793 if test "${PATH_SEPARATOR+set}" != set; then
19794 echo "#! /bin/sh" >conf$$.sh
19795 echo "exit 0" >>conf$$.sh
19797 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19806 as_lineno_1=$LINENO
19807 as_lineno_2=$LINENO
19808 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19809 test "x$as_lineno_1" != "x$as_lineno_2" &&
19810 test "x$as_lineno_3" = "x$as_lineno_2" || {
19811 # Find who we are. Look in the path if we contain no path at all
19814 *[\\/]* ) as_myself=$0 ;;
19815 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19816 for as_dir in $PATH
19819 test -z "$as_dir" && as_dir=.
19820 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19825 # We did not find ourselves, most probably we were run as `sh COMMAND'
19826 # in which case we are not to be found in the path.
19827 if test "x$as_myself" = x; then
19830 if test ! -f "$as_myself"; then
19831 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19832 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19833 { (exit 1); exit 1; }; }
19835 case $CONFIG_SHELL in
19837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19838 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19841 test -z "$as_dir" && as_dir=.
19842 for as_base in sh bash ksh sh5; do
19845 if ("$as_dir/$as_base" -c '
19846 as_lineno_1=$LINENO
19847 as_lineno_2=$LINENO
19848 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19849 test "x$as_lineno_1" != "x$as_lineno_2" &&
19850 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19851 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19852 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19853 CONFIG_SHELL=$as_dir/$as_base
19854 export CONFIG_SHELL
19855 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19863 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19864 # uniformly replaced by the line number. The first 'sed' inserts a
19865 # line-number line before each line; the second 'sed' does the real
19866 # work. The second script uses 'N' to pair each line-number line
19867 # with the numbered line, and appends trailing '-' during
19868 # substitution so that $LINENO is not a special case at line end.
19869 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19870 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19871 sed '=' <$as_myself |
19876 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19879 s,^['$as_cr_digits']*\n,,
19880 ' >$as_me.lineno &&
19881 chmod +x $as_me.lineno ||
19882 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19883 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19884 { (exit 1); exit 1; }; }
19886 # Don't try to exec as it changes $[0], causing all sort of problems
19887 # (the dirname of $[0] is not the place where we might find the
19888 # original and so on. Autoconf is especially sensible to this).
19890 # Exit status is that of the last command.
19895 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19896 *c*,-n*) ECHO_N= ECHO_C='
19898 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19899 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19902 if expr a : '\(a\)' >/dev/null 2>&1; then
19908 rm -f conf$$ conf$$.exe conf$$.file
19910 if ln -s conf$$.file conf$$ 2>/dev/null; then
19911 # We could just check for DJGPP; but this test a) works b) is more generic
19912 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19913 if test -f conf$$.exe; then
19914 # Don't use ln at all; we don't have any links
19919 elif ln conf$$.file conf$$ 2>/dev/null; then
19924 rm -f conf$$ conf$$.exe conf$$.file
19926 if mkdir -p . 2>/dev/null; then
19932 as_executable_p="test -f"
19934 # Sed expression to map a string onto a valid CPP name.
19935 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19937 # Sed expression to map a string onto a valid variable name.
19938 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19942 # We need space, tab and new line, in precisely that order.
19952 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19953 # report actual input values of CONFIG_FILES etc. instead of their
19954 # values after options handling. Logging --version etc. is OK.
19958 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19959 ## Running $as_me. ##
19964 This file was extended by $as_me, which was
19965 generated by GNU Autoconf 2.57. Invocation command line was
19967 CONFIG_FILES = $CONFIG_FILES
19968 CONFIG_HEADERS = $CONFIG_HEADERS
19969 CONFIG_LINKS = $CONFIG_LINKS
19970 CONFIG_COMMANDS = $CONFIG_COMMANDS
19974 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19978 # Files that config.status was made for.
19979 if test -n "$ac_config_files"; then
19980 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19983 if test -n "$ac_config_headers"; then
19984 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19987 if test -n "$ac_config_links"; then
19988 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19991 if test -n "$ac_config_commands"; then
19992 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19995 cat >>$CONFIG_STATUS <<\_ACEOF
19998 \`$as_me' instantiates files from templates according to the
19999 current configuration.
20001 Usage: $0 [OPTIONS] [FILE]...
20003 -h, --help print this help, then exit
20004 -V, --version print version number, then exit
20005 -q, --quiet do not print progress messages
20006 -d, --debug don't remove temporary files
20007 --recheck update $as_me by reconfiguring in the same conditions
20008 --file=FILE[:TEMPLATE]
20009 instantiate the configuration file FILE
20010 --header=FILE[:TEMPLATE]
20011 instantiate the configuration header FILE
20013 Configuration files:
20016 Configuration headers:
20019 Configuration commands:
20022 Report bugs to <bug-autoconf@gnu.org>."
20025 cat >>$CONFIG_STATUS <<_ACEOF
20028 configured by $0, generated by GNU Autoconf 2.57,
20029 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20031 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
20032 Free Software Foundation, Inc.
20033 This config.status script is free software; the Free Software Foundation
20034 gives unlimited permission to copy, distribute and modify it."
20039 cat >>$CONFIG_STATUS <<\_ACEOF
20040 # If no file are specified by the user, then we need to provide default
20041 # value. By we need to know if files were specified by the user.
20047 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20048 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20056 *) # This is not an option, so the user has probably given explicit
20059 ac_need_defaults=false;;
20063 # Handling of the options.
20065 cat >>$CONFIG_STATUS <<\_ACEOF
20066 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20068 --version | --vers* | -V )
20069 echo "$ac_cs_version"; exit 0 ;;
20071 # Conflict between --help and --header
20072 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20073 Try \`$0 --help' for more information." >&5
20074 echo "$as_me: error: ambiguous option: $1
20075 Try \`$0 --help' for more information." >&2;}
20076 { (exit 1); exit 1; }; };;
20077 --help | --hel | -h )
20078 echo "$ac_cs_usage"; exit 0 ;;
20079 --debug | --d* | -d )
20081 --file | --fil | --fi | --f )
20083 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20084 ac_need_defaults=false;;
20085 --header | --heade | --head | --hea )
20087 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20088 ac_need_defaults=false;;
20089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20090 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20093 # This is an error.
20094 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20095 Try \`$0 --help' for more information." >&5
20096 echo "$as_me: error: unrecognized option: $1
20097 Try \`$0 --help' for more information." >&2;}
20098 { (exit 1); exit 1; }; } ;;
20100 *) ac_config_targets="$ac_config_targets $1" ;;
20106 ac_configure_extra_args=
20108 if $ac_cs_silent; then
20110 ac_configure_extra_args="$ac_configure_extra_args --silent"
20114 cat >>$CONFIG_STATUS <<_ACEOF
20115 if \$ac_cs_recheck; then
20116 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20117 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20126 cat >>$CONFIG_STATUS <<\_ACEOF
20127 for ac_config_target in $ac_config_targets
20129 case "$ac_config_target" in
20130 # Handling of arguments.
20131 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
20132 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20133 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
20134 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
20135 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
20136 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
20137 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
20138 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
20139 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
20140 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
20141 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
20142 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
20143 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
20144 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
20145 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
20146 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
20147 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
20148 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
20149 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
20150 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
20151 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
20152 "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
20153 "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
20154 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
20155 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
20156 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
20157 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20158 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20159 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
20160 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
20161 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
20162 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
20163 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
20164 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
20165 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
20166 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
20167 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
20168 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
20169 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
20170 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
20171 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
20172 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
20173 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
20174 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
20175 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
20176 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
20177 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
20178 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
20179 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
20180 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
20181 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
20182 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
20183 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
20184 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
20185 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
20186 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
20187 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
20188 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
20189 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
20190 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
20191 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
20192 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
20193 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
20194 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
20195 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
20196 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
20197 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
20198 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
20199 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
20200 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
20201 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
20202 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
20203 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
20204 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
20205 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
20206 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
20207 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
20208 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
20209 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
20210 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
20211 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
20212 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
20213 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
20214 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
20215 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
20216 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
20217 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
20218 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
20219 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
20220 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
20221 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
20222 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
20223 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
20224 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
20225 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
20226 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
20227 "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
20228 "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
20229 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
20230 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20231 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
20232 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20233 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20234 { (exit 1); exit 1; }; };;
20238 # If the user did not use the arguments to specify the items to instantiate,
20239 # then the envvar interface is used. Set only those that are not.
20240 # We use the long form for the default assignment because of an extremely
20241 # bizarre bug on SunOS 4.1.3.
20242 if $ac_need_defaults; then
20243 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20244 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20245 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20248 # Have a temporary directory for convenience. Make it in the build tree
20249 # simply because there is no reason to put it here, and in addition,
20250 # creating and moving files from /tmp can sometimes cause problems.
20251 # Create a temporary directory, and hook for its removal unless debugging.
20254 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20255 trap '{ (exit 1); exit 1; }' 1 2 13 15
20258 # Create a (secure) tmp directory for tmp files.
20261 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20262 test -n "$tmp" && test -d "$tmp"
20265 tmp=./confstat$$-$RANDOM
20266 (umask 077 && mkdir $tmp)
20269 echo "$me: cannot create a temporary directory in ." >&2
20270 { (exit 1); exit 1; }
20275 cat >>$CONFIG_STATUS <<_ACEOF
20278 # CONFIG_FILES section.
20281 # No need to generate the scripts if there are no CONFIG_FILES.
20282 # This happens for instance when ./config.status config.h
20283 if test -n "\$CONFIG_FILES"; then
20284 # Protect against being on the right side of a sed subst in config.status.
20285 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20286 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20287 s,@SHELL@,$SHELL,;t t
20288 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20289 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20290 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20291 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20292 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20293 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20294 s,@exec_prefix@,$exec_prefix,;t t
20295 s,@prefix@,$prefix,;t t
20296 s,@program_transform_name@,$program_transform_name,;t t
20297 s,@bindir@,$bindir,;t t
20298 s,@sbindir@,$sbindir,;t t
20299 s,@libexecdir@,$libexecdir,;t t
20300 s,@datadir@,$datadir,;t t
20301 s,@sysconfdir@,$sysconfdir,;t t
20302 s,@sharedstatedir@,$sharedstatedir,;t t
20303 s,@localstatedir@,$localstatedir,;t t
20304 s,@libdir@,$libdir,;t t
20305 s,@includedir@,$includedir,;t t
20306 s,@oldincludedir@,$oldincludedir,;t t
20307 s,@infodir@,$infodir,;t t
20308 s,@mandir@,$mandir,;t t
20309 s,@build_alias@,$build_alias,;t t
20310 s,@host_alias@,$host_alias,;t t
20311 s,@target_alias@,$target_alias,;t t
20312 s,@DEFS@,$DEFS,;t t
20313 s,@ECHO_C@,$ECHO_C,;t t
20314 s,@ECHO_N@,$ECHO_N,;t t
20315 s,@ECHO_T@,$ECHO_T,;t t
20316 s,@LIBS@,$LIBS,;t t
20317 s,@BUILD_DIR@,$BUILD_DIR,;t t
20318 s,@TRUEPRG@,$TRUEPRG,;t t
20319 s,@FALSEPRG@,$FALSEPRG,;t t
20320 s,@VERSION@,$VERSION,;t t
20321 s,@DATE@,$DATE,;t t
20322 s,@LSMDATE@,$LSMDATE,;t t
20324 s,@CFLAGS@,$CFLAGS,;t t
20325 s,@LDFLAGS@,$LDFLAGS,;t t
20326 s,@CPPFLAGS@,$CPPFLAGS,;t t
20327 s,@ac_ct_CC@,$ac_ct_CC,;t t
20328 s,@EXEEXT@,$EXEEXT,;t t
20329 s,@OBJEXT@,$OBJEXT,;t t
20331 s,@CXXFLAGS@,$CXXFLAGS,;t t
20332 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20334 s,@EGREP@,$EGREP,;t t
20335 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20336 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20337 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20338 s,@RANLIB@,$RANLIB,;t t
20339 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20344 s,@ECHO@,$ECHO,;t t
20348 s,@OPENSSL@,$OPENSSL,;t t
20350 s,@MKISOFS@,$MKISOFS,;t t
20351 s,@PYTHON@,$PYTHON,;t t
20352 s,@GROWISOFS@,$GROWISOFS,;t t
20353 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
20354 s,@PKGCONFIG@,$PKGCONFIG,;t t
20355 s,@WXCONFIG@,$WXCONFIG,;t t
20356 s,@CDRECORD@,$CDRECORD,;t t
20357 s,@PIDOF@,$PIDOF,;t t
20359 s,@ARFLAGS@,$ARFLAGS,;t t
20360 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
20361 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
20362 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
20363 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
20364 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
20365 s,@build@,$build,;t t
20366 s,@build_cpu@,$build_cpu,;t t
20367 s,@build_vendor@,$build_vendor,;t t
20368 s,@build_os@,$build_os,;t t
20369 s,@host@,$host,;t t
20370 s,@host_cpu@,$host_cpu,;t t
20371 s,@host_vendor@,$host_vendor,;t t
20372 s,@host_os@,$host_os,;t t
20373 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
20374 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
20375 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
20376 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
20377 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
20378 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
20379 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
20380 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
20381 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
20382 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
20383 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
20384 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
20385 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
20386 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
20387 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
20388 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
20389 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
20390 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
20391 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
20392 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
20393 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
20394 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
20395 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
20396 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
20397 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
20398 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
20399 s,@MSGFMT@,$MSGFMT,;t t
20400 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
20401 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
20402 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
20403 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
20404 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
20405 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
20406 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
20407 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
20408 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
20409 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
20410 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
20411 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
20412 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
20413 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
20414 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
20415 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
20416 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
20417 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
20418 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
20419 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
20420 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
20421 s,@GNOME_DIR@,$GNOME_DIR,;t t
20422 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
20423 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
20424 s,@WX_DIR@,$WX_DIR,;t t
20425 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
20426 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
20427 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
20428 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
20429 s,@STATIC_FD@,$STATIC_FD,;t t
20430 s,@STATIC_SD@,$STATIC_SD,;t t
20431 s,@STATIC_DIR@,$STATIC_DIR,;t t
20432 s,@STATIC_CONS@,$STATIC_CONS,;t t
20433 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
20434 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
20435 s,@ALL_DIRS@,$ALL_DIRS,;t t
20436 s,@CONS_INC@,$CONS_INC,;t t
20437 s,@CONS_OBJ@,$CONS_OBJ,;t t
20438 s,@CONS_SRC@,$CONS_SRC,;t t
20439 s,@CONS_LIBS@,$CONS_LIBS,;t t
20440 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
20441 s,@READLINE_SRC@,$READLINE_SRC,;t t
20442 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
20443 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
20444 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
20445 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
20446 s,@working_dir@,$working_dir,;t t
20447 s,@scriptdir@,$scriptdir,;t t
20448 s,@dump_email@,$dump_email,;t t
20449 s,@job_email@,$job_email,;t t
20450 s,@smtp_host@,$smtp_host,;t t
20451 s,@piddir@,$piddir,;t t
20452 s,@subsysdir@,$subsysdir,;t t
20453 s,@baseport@,$baseport,;t t
20454 s,@dir_port@,$dir_port,;t t
20455 s,@fd_port@,$fd_port,;t t
20456 s,@sd_port@,$sd_port,;t t
20457 s,@dir_password@,$dir_password,;t t
20458 s,@fd_password@,$fd_password,;t t
20459 s,@sd_password@,$sd_password,;t t
20460 s,@mon_dir_password@,$mon_dir_password,;t t
20461 s,@mon_fd_password@,$mon_fd_password,;t t
20462 s,@mon_sd_password@,$mon_sd_password,;t t
20463 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
20464 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
20465 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
20466 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
20467 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
20468 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
20469 s,@dir_user@,$dir_user,;t t
20470 s,@dir_group@,$dir_group,;t t
20471 s,@sd_user@,$sd_user,;t t
20472 s,@sd_group@,$sd_group,;t t
20473 s,@fd_user@,$fd_user,;t t
20474 s,@fd_group@,$fd_group,;t t
20475 s,@SBINPERM@,$SBINPERM,;t t
20476 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
20477 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
20478 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
20479 s,@cats@,$cats,;t t
20480 s,@DB_NAME@,$DB_NAME,;t t
20481 s,@GETCONF@,$GETCONF,;t t
20482 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
20483 s,@X_CFLAGS@,$X_CFLAGS,;t t
20484 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20485 s,@X_LIBS@,$X_LIBS,;t t
20486 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20487 s,@LIBOBJS@,$LIBOBJS,;t t
20488 s,@ALLOCA@,$ALLOCA,;t t
20489 s,@FDLIBS@,$FDLIBS,;t t
20490 s,@DEBUG@,$DEBUG,;t t
20491 s,@DINCLUDE@,$DINCLUDE,;t t
20492 s,@DLIB@,$DLIB,;t t
20493 s,@DB_LIBS@,$DB_LIBS,;t t
20494 s,@WCFLAGS@,$WCFLAGS,;t t
20495 s,@WLDFLAGS@,$WLDFLAGS,;t t
20496 s,@OBJLIST@,$OBJLIST,;t t
20497 s,@hostname@,$hostname,;t t
20498 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
20499 s,@PSCMD@,$PSCMD,;t t
20500 s,@WIN32@,$WIN32,;t t
20501 s,@MACOSX@,$MACOSX,;t t
20502 s,@DISTNAME@,$DISTNAME,;t t
20503 s,@DISTVER@,$DISTVER,;t t
20504 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20505 /@MCOMMON@/r $MCOMMON
20511 cat >>$CONFIG_STATUS <<\_ACEOF
20512 # Split the substitutions into bite-sized pieces for seds with
20513 # small command number limits, like on Digital OSF/1 and HP-UX.
20514 ac_max_sed_lines=48
20515 ac_sed_frag=1 # Number of current file.
20516 ac_beg=1 # First line for current file.
20517 ac_end=$ac_max_sed_lines # Line after last line for current file.
20520 while $ac_more_lines; do
20521 if test $ac_beg -gt 1; then
20522 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20524 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20526 if test ! -s $tmp/subs.frag; then
20527 ac_more_lines=false
20529 # The purpose of the label and of the branching condition is to
20530 # speed up the sed processing (if there are no `@' at all, there
20531 # is no need to browse any of the substitutions).
20532 # These are the two extra sed commands mentioned above.
20534 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20535 if test -z "$ac_sed_cmds"; then
20536 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20538 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20540 ac_sed_frag=`expr $ac_sed_frag + 1`
20542 ac_end=`expr $ac_end + $ac_max_sed_lines`
20545 if test -z "$ac_sed_cmds"; then
20548 fi # test -n "$CONFIG_FILES"
20551 cat >>$CONFIG_STATUS <<\_ACEOF
20552 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20553 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20555 - | *:- | *:-:* ) # input from stdin
20557 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20558 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20559 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20560 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20561 * ) ac_file_in=$ac_file.in ;;
20564 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20565 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20566 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20567 X"$ac_file" : 'X\(//\)[^/]' \| \
20568 X"$ac_file" : 'X\(//\)$' \| \
20569 X"$ac_file" : 'X\(/\)' \| \
20570 . : '\(.\)' 2>/dev/null ||
20572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20573 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20574 /^X\(\/\/\)$/{ s//\1/; q; }
20575 /^X\(\/\).*/{ s//\1/; q; }
20577 { if $as_mkdir_p; then
20582 while test ! -d "$as_dir"; do
20583 as_dirs="$as_dir $as_dirs"
20584 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20585 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20586 X"$as_dir" : 'X\(//\)[^/]' \| \
20587 X"$as_dir" : 'X\(//\)$' \| \
20588 X"$as_dir" : 'X\(/\)' \| \
20589 . : '\(.\)' 2>/dev/null ||
20591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20593 /^X\(\/\/\)$/{ s//\1/; q; }
20594 /^X\(\/\).*/{ s//\1/; q; }
20597 test ! -n "$as_dirs" || mkdir $as_dirs
20598 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20599 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20600 { (exit 1); exit 1; }; }; }
20604 if test "$ac_dir" != .; then
20605 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20606 # A "../" for each directory in $ac_dir_suffix.
20607 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20609 ac_dir_suffix= ac_top_builddir=
20613 .) # No --srcdir option. We are building in place.
20615 if test -z "$ac_top_builddir"; then
20618 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20620 [\\/]* | ?:[\\/]* ) # Absolute path.
20621 ac_srcdir=$srcdir$ac_dir_suffix;
20622 ac_top_srcdir=$srcdir ;;
20623 *) # Relative path.
20624 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20625 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20627 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20629 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20630 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20631 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20632 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20636 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20637 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20640 if test x"$ac_file" != x-; then
20641 { echo "$as_me:$LINENO: creating $ac_file" >&5
20642 echo "$as_me: creating $ac_file" >&6;}
20645 # Let's still pretend it is `configure' which instantiates (i.e., don't
20646 # use $as_me), people would be surprised to read:
20647 # /* config.h. Generated by config.status. */
20648 if test x"$ac_file" = x-; then
20651 configure_input="$ac_file. "
20653 configure_input=$configure_input"Generated from `echo $ac_file_in |
20654 sed 's,.*/,,'` by configure."
20656 # First look for the input files in the build tree, otherwise in the
20658 ac_file_inputs=`IFS=:
20659 for f in $ac_file_in; do
20661 -) echo $tmp/stdin ;;
20663 # Absolute (can't be DOS-style, as IFS=:)
20664 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20665 echo "$as_me: error: cannot find input file: $f" >&2;}
20666 { (exit 1); exit 1; }; }
20669 if test -f "$f"; then
20672 elif test -f "$srcdir/$f"; then
20677 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20678 echo "$as_me: error: cannot find input file: $f" >&2;}
20679 { (exit 1); exit 1; }; }
20682 done` || { (exit 1); exit 1; }
20684 cat >>$CONFIG_STATUS <<_ACEOF
20688 cat >>$CONFIG_STATUS <<\_ACEOF
20690 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20691 s,@configure_input@,$configure_input,;t t
20692 s,@srcdir@,$ac_srcdir,;t t
20693 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20694 s,@top_srcdir@,$ac_top_srcdir,;t t
20695 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20696 s,@builddir@,$ac_builddir,;t t
20697 s,@abs_builddir@,$ac_abs_builddir,;t t
20698 s,@top_builddir@,$ac_top_builddir,;t t
20699 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20700 s,@INSTALL@,$ac_INSTALL,;t t
20701 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20703 if test x"$ac_file" != x-; then
20704 mv $tmp/out $ac_file
20712 cat >>$CONFIG_STATUS <<\_ACEOF
20715 # CONFIG_HEADER section.
20718 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20719 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20721 # ac_d sets the value in "#define NAME VALUE" lines.
20722 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20723 ac_dB='[ ].*$,\1#\2'
20726 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20727 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20728 ac_uB='$,\1#\2define\3'
20732 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20733 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20735 - | *:- | *:-:* ) # input from stdin
20737 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20738 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20739 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20740 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20741 * ) ac_file_in=$ac_file.in ;;
20744 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20745 echo "$as_me: creating $ac_file" >&6;}
20747 # First look for the input files in the build tree, otherwise in the
20749 ac_file_inputs=`IFS=:
20750 for f in $ac_file_in; do
20752 -) echo $tmp/stdin ;;
20754 # Absolute (can't be DOS-style, as IFS=:)
20755 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20756 echo "$as_me: error: cannot find input file: $f" >&2;}
20757 { (exit 1); exit 1; }; }
20760 if test -f "$f"; then
20763 elif test -f "$srcdir/$f"; then
20768 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20769 echo "$as_me: error: cannot find input file: $f" >&2;}
20770 { (exit 1); exit 1; }; }
20773 done` || { (exit 1); exit 1; }
20774 # Remove the trailing spaces.
20775 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20779 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20780 # `conftest.undefs', that substitutes the proper values into
20781 # config.h.in to produce config.h. The first handles `#define'
20782 # templates, and the second `#undef' templates.
20783 # And first: Protect against being on the right side of a sed subst in
20784 # config.status. Protect against being in an unquoted here document
20785 # in config.status.
20786 rm -f conftest.defines conftest.undefs
20787 # Using a here document instead of a string reduces the quoting nightmare.
20788 # Putting comments in sed scripts is not portable.
20790 # `end' is used to avoid that the second main sed command (meant for
20791 # 0-ary CPP macros) applies to n-ary macro definitions.
20792 # See the Autoconf documentation for `clear'.
20793 cat >confdef2sed.sed <<\_ACEOF
20798 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20800 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20803 # If some macros were called several times there might be several times
20804 # the same #defines, which is useless. Nevertheless, we may not want to
20805 # sort them, since we want the *last* AC-DEFINE to be honored.
20806 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20807 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20808 rm -f confdef2sed.sed
20810 # This sed command replaces #undef with comments. This is necessary, for
20811 # example, in the case of _POSIX_SOURCE, which is predefined and required
20812 # on some systems where configure will not decide to define it.
20813 cat >>conftest.undefs <<\_ACEOF
20814 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20817 # Break up conftest.defines because some shells have a limit on the size
20818 # of here documents, and old seds have small limits too (100 cmds).
20819 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20820 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20821 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20822 echo ' :' >>$CONFIG_STATUS
20823 rm -f conftest.tail
20824 while grep . conftest.defines >/dev/null
20826 # Write a limited-size here document to $tmp/defines.sed.
20827 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20828 # Speed up: don't consider the non `#define' lines.
20829 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20830 # Work around the forget-to-reset-the-flag bug.
20831 echo 't clr' >>$CONFIG_STATUS
20832 echo ': clr' >>$CONFIG_STATUS
20833 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20835 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20837 mv $tmp/out $tmp/in
20839 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20840 rm -f conftest.defines
20841 mv conftest.tail conftest.defines
20843 rm -f conftest.defines
20844 echo ' fi # grep' >>$CONFIG_STATUS
20845 echo >>$CONFIG_STATUS
20847 # Break up conftest.undefs because some shells have a limit on the size
20848 # of here documents, and old seds have small limits too (100 cmds).
20849 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20850 rm -f conftest.tail
20851 while grep . conftest.undefs >/dev/null
20853 # Write a limited-size here document to $tmp/undefs.sed.
20854 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20855 # Speed up: don't consider the non `#undef'
20856 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20857 # Work around the forget-to-reset-the-flag bug.
20858 echo 't clr' >>$CONFIG_STATUS
20859 echo ': clr' >>$CONFIG_STATUS
20860 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20862 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20864 mv $tmp/out $tmp/in
20866 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20867 rm -f conftest.undefs
20868 mv conftest.tail conftest.undefs
20870 rm -f conftest.undefs
20872 cat >>$CONFIG_STATUS <<\_ACEOF
20873 # Let's still pretend it is `configure' which instantiates (i.e., don't
20874 # use $as_me), people would be surprised to read:
20875 # /* config.h. Generated by config.status. */
20876 if test x"$ac_file" = x-; then
20877 echo "/* Generated by configure. */" >$tmp/config.h
20879 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20881 cat $tmp/in >>$tmp/config.h
20883 if test x"$ac_file" != x-; then
20884 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20885 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20886 echo "$as_me: $ac_file is unchanged" >&6;}
20888 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20889 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20890 X"$ac_file" : 'X\(//\)[^/]' \| \
20891 X"$ac_file" : 'X\(//\)$' \| \
20892 X"$ac_file" : 'X\(/\)' \| \
20893 . : '\(.\)' 2>/dev/null ||
20895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20896 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20897 /^X\(\/\/\)$/{ s//\1/; q; }
20898 /^X\(\/\).*/{ s//\1/; q; }
20900 { if $as_mkdir_p; then
20905 while test ! -d "$as_dir"; do
20906 as_dirs="$as_dir $as_dirs"
20907 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20908 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20909 X"$as_dir" : 'X\(//\)[^/]' \| \
20910 X"$as_dir" : 'X\(//\)$' \| \
20911 X"$as_dir" : 'X\(/\)' \| \
20912 . : '\(.\)' 2>/dev/null ||
20914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20915 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20916 /^X\(\/\/\)$/{ s//\1/; q; }
20917 /^X\(\/\).*/{ s//\1/; q; }
20920 test ! -n "$as_dirs" || mkdir $as_dirs
20921 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20922 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20923 { (exit 1); exit 1; }; }; }
20926 mv $tmp/config.h $ac_file
20930 rm -f $tmp/config.h
20934 cat >>$CONFIG_STATUS <<\_ACEOF
20937 # CONFIG_COMMANDS section.
20939 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20940 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20941 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20942 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20943 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20944 X"$ac_dest" : 'X\(//\)[^/]' \| \
20945 X"$ac_dest" : 'X\(//\)$' \| \
20946 X"$ac_dest" : 'X\(/\)' \| \
20947 . : '\(.\)' 2>/dev/null ||
20949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20951 /^X\(\/\/\)$/{ s//\1/; q; }
20952 /^X\(\/\).*/{ s//\1/; q; }
20956 if test "$ac_dir" != .; then
20957 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20958 # A "../" for each directory in $ac_dir_suffix.
20959 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20961 ac_dir_suffix= ac_top_builddir=
20965 .) # No --srcdir option. We are building in place.
20967 if test -z "$ac_top_builddir"; then
20970 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20972 [\\/]* | ?:[\\/]* ) # Absolute path.
20973 ac_srcdir=$srcdir$ac_dir_suffix;
20974 ac_top_srcdir=$srcdir ;;
20975 *) # Relative path.
20976 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20977 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20979 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20981 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20982 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20983 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20984 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20987 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20988 echo "$as_me: executing $ac_dest commands" >&6;}
20990 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20996 cat >>$CONFIG_STATUS <<\_ACEOF
20998 { (exit 0); exit 0; }
21000 chmod +x $CONFIG_STATUS
21001 ac_clean_files=$ac_clean_files_save
21004 # configure is writing to config.log, and then calls config.status.
21005 # config.status does its own redirection, appending to config.log.
21006 # Unfortunately, on DOS this fails, as config.log is still kept open
21007 # by configure, so config.status won't be able to write to it; its
21008 # output is simply discarded. So we exec the FD to /dev/null,
21009 # effectively closing config.log, so it can be properly (re)opened and
21010 # appended to by config.status. When coming back to configure, we
21011 # need to make the FD available again.
21012 if test "$no_create" != yes; then
21014 ac_config_status_args=
21015 test "$silent" = yes &&
21016 ac_config_status_args="$ac_config_status_args --quiet"
21018 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21020 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21021 # would make configure fail if this is the last instruction.
21022 $ac_cs_success || { (exit 1); exit 1; }
21027 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
21028 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
21033 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
21034 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
21036 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
21037 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
21039 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
21040 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
21042 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
21043 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
21045 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
21046 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
21048 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
21049 chmod 755 $c/sqlite
21052 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
21053 largefile_support="yes"
21057 # A whole lot of hand springs to get the compiler version.
21058 # This is because gcc changed the output in version 3.0
21060 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
21061 if test "x${CCVERSION}" = "x" ; then
21062 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
21064 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
21065 if test x"${CXXVERSION}" = x ; then
21066 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
21069 if test "x${subsysdir}" = "x${sbindir}" ; then
21072 echo "You have set --sbindir and --with-subsys-dir"
21073 echo " both equal to: ${subsysdir} "
21074 echo " This is not permitted. Please reconfigure."
21076 echo "Aborting configuration ..."
21082 if test "x${db_name}" = "xInternal" ; then
21085 echo "You have not specified either --enable-client-only or one of the"
21086 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
21087 echo " This is not permitted. Please reconfigure."
21089 echo "Aborting the configuration ..."
21096 Configuration on `date`:
21098 Host: $host -- ${DISTNAME} ${DISTVER}
21099 Bacula version: ${VERSION} (${DATE})
21100 Source code location: ${srcdir}
21101 Install binaries: ${sbindir}
21102 Install config files: ${sysconfdir}
21103 Scripts directory: ${scriptdir}
21104 Working directory: ${working_dir}
21105 PID directory: ${piddir}
21106 Subsys directory: ${subsysdir}
21107 C Compiler: ${CC} ${CCVERSION}
21108 C++ Compiler: ${CXX} ${CXXVERSION}
21109 Compiler flags: ${WCFLAGS} ${CFLAGS}
21110 Linker flags: ${WLDFLAGS} ${LDFLAGS}
21112 Statically Linked Tools: ${support_static_tools}
21113 Statically Linked FD: ${support_static_fd}
21114 Statically Linked SD: ${support_static_sd}
21115 Statically Linked DIR: ${support_static_dir}
21116 Statically Linked CONS: ${support_static_cons}
21117 Database type: ${db_name}
21118 Database lib: ${DB_LIBS}
21120 Job Output Email: ${job_email}
21121 Traceback Email: ${dump_email}
21122 SMTP Host Address: ${smtp_host}
21124 Director Port: ${dir_port}
21125 File daemon Port: ${fd_port}
21126 Storage daemon Port: ${sd_port}
21128 Director User: ${dir_user}
21129 Director Group: ${dir_group}
21130 Storage Daemon User: ${sd_user}
21131 Storage DaemonGroup: ${sd_group}
21132 File Daemon User: ${fd_user}
21133 File Daemon Group: ${fd_group}
21135 SQL binaries Directory ${SQL_BINDIR}
21137 Large file support: $largefile_support
21138 Bacula conio support: ${got_conio} ${CONS_LIBS}
21139 readline support: ${got_readline} ${PRTREADLINE_SRC}
21140 TCP Wrappers support: ${TCPW_MSG}
21141 TLS support: ${support_tls}
21142 ZLIB support: ${have_zlib}
21143 enable-smartalloc: ${support_smartalloc}
21144 enable-gnome: ${support_gnome} ${gnome_version}
21145 enable-wx-console: ${support_wx_console}
21146 enable-tray-monitor: ${support_tray_monitor}
21147 client-only: ${build_client_only}
21148 ACL support: ${have_acl}
21149 Python support: ${support_python} ${PYTHON_LIBS}