2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG CDRECORD PIDOF ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR CDSTL working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures this package to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --x-includes=DIR X include files are in DIR
843 --x-libraries=DIR X library files are in DIR
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 if test -n "$ac_init_help"; then
856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
858 --enable-gnome enable build of gnome-console GUI disabled
859 --enable-wx-console enable build of wxWidgets console disabled
860 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
861 --enable-smartalloc enable smartalloc debugging support disabled
862 --enable-static-tools enable static tape tools disabled
863 --enable-static-fd enable static File daemon disabled
864 --enable-static-sd enable static Storage daemon disabled
865 --enable-static-dir enable static Director disabled
866 --enable-static-cons enable static Console disabled
867 --enable-client-only build client (File daemon) only disabled
868 --disable-conio disable conio support enabled
870 --disable-readline disable readline support disable
872 --disable-largefile omit support for large files
875 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
876 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
877 --with-gnome-includes Specify location of GNOME headers
878 --with-gnome-libs Specify location of GNOME libs
879 --with-gnome Specify prefix for GNOME files
880 --with-readline=DIR specify readline library directory
882 --with-python=DIR Include Python support. DIR is the Python base
883 install directory, default is to search through
884 a number of common places for the Python files.
885 --with-tcp-wrappers=DIR enable tcpwrappers support
886 --with-working-dir=PATH specify path of Bacula working directory
887 --with-scriptdir=PATH specify path of Bacula scripts directory
888 --with-dump-email=EMAIL dump email address
889 --with-job-email=EMAIL job output email address
890 --with-smtp-host=HOST SMTP mail host address
891 --with-pid-dir=PATH specify location of Bacula pid files
892 --with-subsys-dir=PATH specify location of Bacula subsys file
893 --with-baseport=PORT specify base port address for daemons
894 --with-dir-password=PASSWORD specify Director's password
895 --with-fd-password=PASSWORD specify Client's password
896 --with-sd-password=PASSWORD specify Storage daemon's password
897 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
898 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
899 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
900 --with-bimagemgr-cgidir=DIR specify bimagemgr cgi-bin dir
901 --with-bimagemgr-docdir=DIR specify bimagemgr doc root dir
902 --with-bimagemgr-binowner=USER specify bimagemgr binary file owner
903 --with-bimagemgr-bingroup=USER specify bimagemgr binary file group
904 --with-bimagemgr-dataowner=USER specify bimagemgr data file owner
905 --with-bimagemgr-datagroup=USER specify bimagemgr data file group
906 --with-dir-user=USER specify user for Director daemon
907 --with-dir-group=GROUP specify group for Director daemon
908 --with-sd-user=USER specify user for Storage daemon
909 --with-sd-group=GROUP specify group for Storage daemon
910 --with-fd-user=USER specify user for File daemon
911 --with-fd-group=GROUP specify group for File daemon
912 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
913 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
914 base install directory, defaults to /usr/local/pgsql
916 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
917 install directory, default is to search through
918 a number of common places for the MySQL files.
920 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
921 install directory, default is to search through
922 a number of common places for the MySQL files.
924 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
925 install directory, default is to search through
926 a number of common places for the SQLite files.
927 --with-x use the X Window System
929 Some influential environment variables:
930 CC C compiler command
931 CFLAGS C compiler flags
932 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
933 nonstandard directory <lib dir>
934 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
935 headers in a nonstandard directory <include dir>
936 CXX C++ compiler command
937 CXXFLAGS C++ compiler flags
940 Use these variables to override the choices made by `configure' or to help
941 it to find libraries and programs with nonstandard names/locations.
946 if test "$ac_init_help" = "recursive"; then
947 # If there are subdirs, report their specific --help.
949 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
950 test -d $ac_dir || continue
953 if test "$ac_dir" != .; then
954 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
955 # A "../" for each directory in $ac_dir_suffix.
956 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
958 ac_dir_suffix= ac_top_builddir=
962 .) # No --srcdir option. We are building in place.
964 if test -z "$ac_top_builddir"; then
967 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
969 [\\/]* | ?:[\\/]* ) # Absolute path.
970 ac_srcdir=$srcdir$ac_dir_suffix;
971 ac_top_srcdir=$srcdir ;;
973 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
974 ac_top_srcdir=$ac_top_builddir$srcdir ;;
976 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
978 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
979 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
980 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
981 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
984 # Check for guested configure; otherwise get Cygnus style configure.
985 if test -f $ac_srcdir/configure.gnu; then
987 $SHELL $ac_srcdir/configure.gnu --help=recursive
988 elif test -f $ac_srcdir/configure; then
990 $SHELL $ac_srcdir/configure --help=recursive
991 elif test -f $ac_srcdir/configure.ac ||
992 test -f $ac_srcdir/configure.in; then
996 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1002 test -n "$ac_init_help" && exit 0
1003 if $ac_init_version; then
1006 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1007 Free Software Foundation, Inc.
1008 This configure script is free software; the Free Software Foundation
1009 gives unlimited permission to copy, distribute and modify it.
1015 This file contains any messages produced by compilers while
1016 running configure, to aid debugging if configure makes a mistake.
1018 It was created by $as_me, which was
1019 generated by GNU Autoconf 2.57. Invocation command line was
1030 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1031 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1032 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1033 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1034 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1036 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1037 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1039 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1040 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1041 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1042 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1043 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1044 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1045 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1053 test -z "$as_dir" && as_dir=.
1054 echo "PATH: $as_dir"
1069 # Keep a trace of the command line.
1070 # Strip out --no-create and --no-recursion so they do not pile up.
1071 # Strip out --silent because we don't want to record it for future runs.
1072 # Also quote any args containing shell meta-characters.
1073 # Make two passes to allow for proper duplicate-argument suppression.
1078 ac_must_keep_next=false
1084 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1088 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1089 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1092 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1094 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1095 if test $ac_must_keep_next = true; then
1096 ac_must_keep_next=false # Got value, back to normal.
1099 *=* | --config-cache | -C | -disable-* | --disable-* \
1100 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1101 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1102 | -with-* | --with-* | -without-* | --without-* | --x)
1103 case "$ac_configure_args0 " in
1104 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1107 -* ) ac_must_keep_next=true ;;
1110 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1111 # Get rid of the leading space.
1117 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1118 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1120 # When interrupted or exit'd, cleanup temporary files, and complete
1121 # config.log. We remove comments because anyway the quotes in there
1122 # would cause problems or look ugly.
1123 # WARNING: Be sure not to use single quotes in there, as some shells,
1124 # such as our DU 5.0 friend, will then `close' the trap.
1125 trap 'exit_status=$?
1126 # Save into config.log some information that might help in debugging.
1131 ## ---------------- ##
1132 ## Cache variables. ##
1133 ## ---------------- ##
1136 # The following way of writing the cache mishandles newlines in values,
1139 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1142 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1143 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1147 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1154 ## ----------------- ##
1155 ## Output variables. ##
1156 ## ----------------- ##
1159 for ac_var in $ac_subst_vars
1161 eval ac_val=$`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1166 if test -n "$ac_subst_files"; then
1173 for ac_var in $ac_subst_files
1175 eval ac_val=$`echo $ac_var`
1176 echo "$ac_var='"'"'$ac_val'"'"'"
1181 if test -s confdefs.h; then
1188 sed "/^$/d" confdefs.h | sort
1191 test "$ac_signal" != 0 &&
1192 echo "$as_me: caught signal $ac_signal"
1193 echo "$as_me: exit $exit_status"
1195 rm -f core core.* *.core &&
1196 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1199 for ac_signal in 1 2 13 15; do
1200 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1204 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1205 rm -rf conftest* confdefs.h
1206 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1209 # Predefined preprocessor variables.
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_NAME "$PACKAGE_NAME"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_STRING "$PACKAGE_STRING"
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1236 # Let the site file select an alternate cache file if it wants to.
1237 # Prefer explicitly selected file to automatically selected ones.
1238 if test -z "$CONFIG_SITE"; then
1239 if test "x$prefix" != xNONE; then
1240 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1242 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1245 for ac_site_file in $CONFIG_SITE; do
1246 if test -r "$ac_site_file"; then
1247 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1248 echo "$as_me: loading site script $ac_site_file" >&6;}
1249 sed 's/^/| /' "$ac_site_file" >&5
1254 if test -r "$cache_file"; then
1255 # Some versions of bash will fail to source /dev/null (special
1256 # files actually), so we avoid doing that.
1257 if test -f "$cache_file"; then
1258 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1259 echo "$as_me: loading cache $cache_file" >&6;}
1261 [\\/]* | ?:[\\/]* ) . $cache_file;;
1262 *) . ./$cache_file;;
1266 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1267 echo "$as_me: creating cache $cache_file" >&6;}
1271 # Check that the precious variables saved in the cache have kept the same
1273 ac_cache_corrupted=false
1274 for ac_var in `(set) 2>&1 |
1275 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1276 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1277 eval ac_new_set=\$ac_env_${ac_var}_set
1278 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1279 eval ac_new_val="\$ac_env_${ac_var}_value"
1280 case $ac_old_set,$ac_new_set in
1282 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1283 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1286 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1287 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1288 ac_cache_corrupted=: ;;
1291 if test "x$ac_old_val" != "x$ac_new_val"; then
1292 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1293 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1294 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1295 echo "$as_me: former value: $ac_old_val" >&2;}
1296 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1297 echo "$as_me: current value: $ac_new_val" >&2;}
1298 ac_cache_corrupted=:
1301 # Pass precious variables to config.status.
1302 if test "$ac_new_set" = set; then
1304 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1306 *) ac_arg=$ac_var=$ac_new_val ;;
1308 case " $ac_configure_args " in
1309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1310 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1314 if $ac_cache_corrupted; then
1315 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1316 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1317 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1318 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1319 { (exit 1); exit 1; }; }
1323 ac_cpp='$CPP $CPPFLAGS'
1324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1352 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1353 if test -f $ac_dir/install-sh; then
1355 ac_install_sh="$ac_aux_dir/install-sh -c"
1357 elif test -f $ac_dir/install.sh; then
1359 ac_install_sh="$ac_aux_dir/install.sh -c"
1361 elif test -f $ac_dir/shtool; then
1363 ac_install_sh="$ac_aux_dir/shtool install -c"
1367 if test -z "$ac_aux_dir"; then
1368 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1369 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1370 { (exit 1); exit 1; }; }
1372 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1373 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1374 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1376 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1384 # Extract the first word of "$ac_prog", so it can be a program name with args.
1385 set dummy $ac_prog; ac_word=$2
1386 echo "$as_me:$LINENO: checking for $ac_word" >&5
1387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1393 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400 test -z "$as_dir" && as_dir=.
1401 for ac_exec_ext in '' $ac_executable_extensions; do
1402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1403 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1413 TRUEPRG=$ac_cv_path_TRUEPRG
1415 if test -n "$TRUEPRG"; then
1416 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1417 echo "${ECHO_T}$TRUEPRG" >&6
1419 echo "$as_me:$LINENO: result: no" >&5
1420 echo "${ECHO_T}no" >&6
1423 test -n "$TRUEPRG" && break
1425 test -n "$TRUEPRG" || TRUEPRG=":"
1427 for ac_prog in false
1429 # Extract the first word of "$ac_prog", so it can be a program name with args.
1430 set dummy $ac_prog; ac_word=$2
1431 echo "$as_me:$LINENO: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445 test -z "$as_dir" && as_dir=.
1446 for ac_exec_ext in '' $ac_executable_extensions; do
1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 FALSEPRG=$ac_cv_path_FALSEPRG
1460 if test -n "$FALSEPRG"; then
1461 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1462 echo "${ECHO_T}$FALSEPRG" >&6
1464 echo "$as_me:$LINENO: result: no" >&5
1465 echo "${ECHO_T}no" >&6
1468 test -n "$FALSEPRG" && break
1470 test -n "$FALSEPRG" || FALSEPRG=":"
1475 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1476 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1477 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1478 echo "configuring for bacula $VERSION ($DATE)"
1483 ac_cpp='$CPP $CPPFLAGS'
1484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487 if test -n "$ac_tool_prefix"; then
1488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1489 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1490 echo "$as_me:$LINENO: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_prog_CC+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 if test -n "$CC"; then
1496 ac_cv_prog_CC="$CC" # Let the user override the test.
1498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502 test -z "$as_dir" && as_dir=.
1503 for ac_exec_ext in '' $ac_executable_extensions; do
1504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1505 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1515 if test -n "$CC"; then
1516 echo "$as_me:$LINENO: result: $CC" >&5
1517 echo "${ECHO_T}$CC" >&6
1519 echo "$as_me:$LINENO: result: no" >&5
1520 echo "${ECHO_T}no" >&6
1524 if test -z "$ac_cv_prog_CC"; then
1526 # Extract the first word of "gcc", so it can be a program name with args.
1527 set dummy gcc; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 if test -n "$ac_ct_CC"; then
1534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 test -z "$as_dir" && as_dir=.
1541 for ac_exec_ext in '' $ac_executable_extensions; do
1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543 ac_cv_prog_ac_ct_CC="gcc"
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1553 if test -n "$ac_ct_CC"; then
1554 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1555 echo "${ECHO_T}$ac_ct_CC" >&6
1557 echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1566 if test -z "$CC"; then
1567 if test -n "$ac_tool_prefix"; then
1568 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1569 set dummy ${ac_tool_prefix}cc; ac_word=$2
1570 echo "$as_me:$LINENO: checking for $ac_word" >&5
1571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572 if test "${ac_cv_prog_CC+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 if test -n "$CC"; then
1576 ac_cv_prog_CC="$CC" # Let the user override the test.
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 test -z "$as_dir" && as_dir=.
1583 for ac_exec_ext in '' $ac_executable_extensions; do
1584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1585 ac_cv_prog_CC="${ac_tool_prefix}cc"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1595 if test -n "$CC"; then
1596 echo "$as_me:$LINENO: result: $CC" >&5
1597 echo "${ECHO_T}$CC" >&6
1599 echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1604 if test -z "$ac_cv_prog_CC"; then
1606 # Extract the first word of "cc", so it can be a program name with args.
1607 set dummy cc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1613 if test -n "$ac_ct_CC"; then
1614 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 test -z "$as_dir" && as_dir=.
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623 ac_cv_prog_ac_ct_CC="cc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1633 if test -n "$ac_ct_CC"; then
1634 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1635 echo "${ECHO_T}$ac_ct_CC" >&6
1637 echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1647 if test -z "$CC"; then
1648 # Extract the first word of "cc", so it can be a program name with args.
1649 set dummy cc; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 test -z "$as_dir" && as_dir=.
1664 for ac_exec_ext in '' $ac_executable_extensions; do
1665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1667 ac_prog_rejected=yes
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 if test $ac_prog_rejected = yes; then
1678 # We found a bogon in the path, so make sure we never use it.
1679 set dummy $ac_cv_prog_CC
1681 if test $# != 0; then
1682 # We chose a different compiler from the bogus one.
1683 # However, it has the same basename, so the bogon will be chosen
1684 # first if we set CC to just the basename; use the full file name.
1686 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1692 if test -n "$CC"; then
1693 echo "$as_me:$LINENO: result: $CC" >&5
1694 echo "${ECHO_T}$CC" >&6
1696 echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1701 if test -z "$CC"; then
1702 if test -n "$ac_tool_prefix"; then
1705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_CC+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 if test -n "$CC"; then
1713 ac_cv_prog_CC="$CC" # Let the user override the test.
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 test -z "$as_dir" && as_dir=.
1720 for ac_exec_ext in '' $ac_executable_extensions; do
1721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732 if test -n "$CC"; then
1733 echo "$as_me:$LINENO: result: $CC" >&5
1734 echo "${ECHO_T}$CC" >&6
1736 echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1740 test -n "$CC" && break
1743 if test -z "$CC"; then
1747 # Extract the first word of "$ac_prog", so it can be a program name with args.
1748 set dummy $ac_prog; ac_word=$2
1749 echo "$as_me:$LINENO: checking for $ac_word" >&5
1750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 if test -n "$ac_ct_CC"; then
1755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 test -z "$as_dir" && as_dir=.
1762 for ac_exec_ext in '' $ac_executable_extensions; do
1763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764 ac_cv_prog_ac_ct_CC="$ac_prog"
1765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1774 if test -n "$ac_ct_CC"; then
1775 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1776 echo "${ECHO_T}$ac_ct_CC" >&6
1778 echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6
1782 test -n "$ac_ct_CC" && break
1791 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1792 See \`config.log' for more details." >&5
1793 echo "$as_me: error: no acceptable C compiler found in \$PATH
1794 See \`config.log' for more details." >&2;}
1795 { (exit 1); exit 1; }; }
1797 # Provide some information about the compiler.
1798 echo "$as_me:$LINENO:" \
1799 "checking for C compiler version" >&5
1800 ac_compiler=`set X $ac_compile; echo $2`
1801 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1802 (eval $ac_compiler --version </dev/null >&5) 2>&5
1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805 (exit $ac_status); }
1806 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1807 (eval $ac_compiler -v </dev/null >&5) 2>&5
1809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1810 (exit $ac_status); }
1811 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1812 (eval $ac_compiler -V </dev/null >&5) 2>&5
1814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1815 (exit $ac_status); }
1817 cat >conftest.$ac_ext <<_ACEOF
1818 #line $LINENO "configure"
1821 cat confdefs.h >>conftest.$ac_ext
1822 cat >>conftest.$ac_ext <<_ACEOF
1823 /* end confdefs.h. */
1833 ac_clean_files_save=$ac_clean_files
1834 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1835 # Try to create an executable without -o first, disregard a.out.
1836 # It will help us diagnose broken compilers, and finding out an intuition
1838 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1839 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1840 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1841 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1842 (eval $ac_link_default) 2>&5
1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845 (exit $ac_status); }; then
1846 # Find the output, starting from the most likely. This scheme is
1847 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1850 # Be careful to initialize this variable, since it used to be cached.
1851 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1853 # b.out is created by i960 compilers.
1854 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1856 test -f "$ac_file" || continue
1858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1861 # This is the source file.
1864 # We found the default executable, but exeext='' is most
1868 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1869 # FIXME: I believe we export ac_cv_exeext for Libtool,
1870 # but it would be cool to find out if it's true. Does anybody
1871 # maintain Libtool? --akim.
1879 echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1882 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1883 See \`config.log' for more details." >&5
1884 echo "$as_me: error: C compiler cannot create executables
1885 See \`config.log' for more details." >&2;}
1886 { (exit 77); exit 77; }; }
1889 ac_exeext=$ac_cv_exeext
1890 echo "$as_me:$LINENO: result: $ac_file" >&5
1891 echo "${ECHO_T}$ac_file" >&6
1893 # Check the compiler produces executables we can run. If not, either
1894 # the compiler is broken, or we cross compile.
1895 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1896 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1897 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1898 # If not cross compiling, check that we can run a simple program.
1899 if test "$cross_compiling" != yes; then
1900 if { ac_try='./$ac_file'
1901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905 (exit $ac_status); }; }; then
1908 if test "$cross_compiling" = maybe; then
1911 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1912 If you meant to cross compile, use \`--host'.
1913 See \`config.log' for more details." >&5
1914 echo "$as_me: error: cannot run C compiled programs.
1915 If you meant to cross compile, use \`--host'.
1916 See \`config.log' for more details." >&2;}
1917 { (exit 1); exit 1; }; }
1921 echo "$as_me:$LINENO: result: yes" >&5
1922 echo "${ECHO_T}yes" >&6
1924 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1925 ac_clean_files=$ac_clean_files_save
1926 # Check the compiler produces executables we can run. If not, either
1927 # the compiler is broken, or we cross compile.
1928 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1929 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1930 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1931 echo "${ECHO_T}$cross_compiling" >&6
1933 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1934 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1936 (eval $ac_link) 2>&5
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; then
1940 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1941 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1942 # work properly (i.e., refer to `conftest.exe'), while it won't with
1944 for ac_file in conftest.exe conftest conftest.*; do
1945 test -f "$ac_file" || continue
1947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1948 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1955 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1956 See \`config.log' for more details." >&5
1957 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1958 See \`config.log' for more details." >&2;}
1959 { (exit 1); exit 1; }; }
1962 rm -f conftest$ac_cv_exeext
1963 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1964 echo "${ECHO_T}$ac_cv_exeext" >&6
1966 rm -f conftest.$ac_ext
1967 EXEEXT=$ac_cv_exeext
1969 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1970 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1971 if test "${ac_cv_objext+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 cat >conftest.$ac_ext <<_ACEOF
1975 #line $LINENO "configure"
1978 cat confdefs.h >>conftest.$ac_ext
1979 cat >>conftest.$ac_ext <<_ACEOF
1980 /* end confdefs.h. */
1990 rm -f conftest.o conftest.obj
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992 (eval $ac_compile) 2>&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); }; then
1996 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1999 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2004 echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2007 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2008 See \`config.log' for more details." >&5
2009 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2010 See \`config.log' for more details." >&2;}
2011 { (exit 1); exit 1; }; }
2014 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2016 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2017 echo "${ECHO_T}$ac_cv_objext" >&6
2018 OBJEXT=$ac_cv_objext
2020 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2021 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2022 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 cat >conftest.$ac_ext <<_ACEOF
2026 #line $LINENO "configure"
2029 cat confdefs.h >>conftest.$ac_ext
2030 cat >>conftest.$ac_ext <<_ACEOF
2031 /* end confdefs.h. */
2044 rm -f conftest.$ac_objext
2045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2046 (eval $ac_compile) 2>&5
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); } &&
2050 { ac_try='test -s conftest.$ac_objext'
2051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }; }; then
2058 echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2063 rm -f conftest.$ac_objext conftest.$ac_ext
2064 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2067 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2068 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2069 GCC=`test $ac_compiler_gnu = yes && echo yes`
2070 ac_test_CFLAGS=${CFLAGS+set}
2071 ac_save_CFLAGS=$CFLAGS
2073 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2074 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2075 if test "${ac_cv_prog_cc_g+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 cat >conftest.$ac_ext <<_ACEOF
2079 #line $LINENO "configure"
2082 cat confdefs.h >>conftest.$ac_ext
2083 cat >>conftest.$ac_ext <<_ACEOF
2084 /* end confdefs.h. */
2094 rm -f conftest.$ac_objext
2095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2096 (eval $ac_compile) 2>&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); } &&
2100 { ac_try='test -s conftest.$ac_objext'
2101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; }; then
2108 echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2113 rm -f conftest.$ac_objext conftest.$ac_ext
2115 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2116 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2117 if test "$ac_test_CFLAGS" = set; then
2118 CFLAGS=$ac_save_CFLAGS
2119 elif test $ac_cv_prog_cc_g = yes; then
2120 if test "$GCC" = yes; then
2126 if test "$GCC" = yes; then
2132 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2133 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2134 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 ac_cv_prog_cc_stdc=no
2139 cat >conftest.$ac_ext <<_ACEOF
2140 #line $LINENO "configure"
2143 cat confdefs.h >>conftest.$ac_ext
2144 cat >>conftest.$ac_ext <<_ACEOF
2145 /* end confdefs.h. */
2148 #include <sys/types.h>
2149 #include <sys/stat.h>
2150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2151 struct buf { int x; };
2152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2153 static char *e (p, i)
2159 static char *f (char * (*g) (char **, int), char **p, ...)
2164 s = g (p, va_arg (v,int));
2168 int test (int i, double x);
2169 struct s1 {int (*f) (int a);};
2170 struct s2 {int (*f) (double a);};
2171 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2177 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2182 # Don't try gcc -ansi; that turns off useful extensions and
2183 # breaks some systems' header files.
2184 # AIX -qlanglvl=ansi
2185 # Ultrix and OSF/1 -std1
2186 # HP-UX 10.20 and later -Ae
2187 # HP-UX older versions -Aa -D_HPUX_SOURCE
2188 # SVR4 -Xc -D__EXTENSIONS__
2189 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2191 CC="$ac_save_CC $ac_arg"
2192 rm -f conftest.$ac_objext
2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); } &&
2198 { ac_try='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2204 ac_cv_prog_cc_stdc=$ac_arg
2207 echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2211 rm -f conftest.$ac_objext
2213 rm -f conftest.$ac_ext conftest.$ac_objext
2218 case "x$ac_cv_prog_cc_stdc" in
2220 echo "$as_me:$LINENO: result: none needed" >&5
2221 echo "${ECHO_T}none needed" >&6 ;;
2223 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2224 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2225 CC="$CC $ac_cv_prog_cc_stdc" ;;
2228 # Some people use a C++ compiler to compile C. Since we use `exit',
2229 # in C++ we need to declare it. In case someone uses the same compiler
2230 # for both compiling C and C++ we need to have the C++ compiler decide
2231 # the declaration of exit, since it's the most demanding environment.
2232 cat >conftest.$ac_ext <<_ACEOF
2237 rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); } &&
2243 { ac_try='test -s conftest.$ac_objext'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2249 for ac_declaration in \
2251 '#include <stdlib.h>' \
2252 'extern "C" void std::exit (int) throw (); using std::exit;' \
2253 'extern "C" void std::exit (int); using std::exit;' \
2254 'extern "C" void exit (int) throw ();' \
2255 'extern "C" void exit (int);' \
2258 cat >conftest.$ac_ext <<_ACEOF
2259 #line $LINENO "configure"
2262 cat confdefs.h >>conftest.$ac_ext
2263 cat >>conftest.$ac_ext <<_ACEOF
2264 /* end confdefs.h. */
2275 rm -f conftest.$ac_objext
2276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277 (eval $ac_compile) 2>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
2281 { ac_try='test -s conftest.$ac_objext'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2289 echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2294 rm -f conftest.$ac_objext conftest.$ac_ext
2295 cat >conftest.$ac_ext <<_ACEOF
2296 #line $LINENO "configure"
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); } &&
2317 { ac_try='test -s conftest.$ac_objext'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2329 rm -f conftest.$ac_objext conftest.$ac_ext
2332 if test -n "$ac_declaration"; then
2333 echo '#ifdef __cplusplus' >>confdefs.h
2334 echo $ac_declaration >>confdefs.h
2335 echo '#endif' >>confdefs.h
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2343 rm -f conftest.$ac_objext conftest.$ac_ext
2345 ac_cpp='$CPP $CPPFLAGS'
2346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351 ac_cpp='$CXXCPP $CPPFLAGS'
2352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2355 if test -n "$ac_tool_prefix"; then
2356 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2360 echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362 if test "${ac_cv_prog_CXX+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 if test -n "$CXX"; then
2366 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2375 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 if test -n "$CXX"; then
2386 echo "$as_me:$LINENO: result: $CXX" >&5
2387 echo "${ECHO_T}$CXX" >&6
2389 echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6
2393 test -n "$CXX" && break
2396 if test -z "$CXX"; then
2398 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2400 # Extract the first word of "$ac_prog", so it can be a program name with args.
2401 set dummy $ac_prog; ac_word=$2
2402 echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 if test -n "$ac_ct_CXX"; then
2408 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 test -z "$as_dir" && as_dir=.
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417 ac_cv_prog_ac_ct_CXX="$ac_prog"
2418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2427 if test -n "$ac_ct_CXX"; then
2428 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2429 echo "${ECHO_T}$ac_ct_CXX" >&6
2431 echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6
2435 test -n "$ac_ct_CXX" && break
2437 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2443 # Provide some information about the compiler.
2444 echo "$as_me:$LINENO:" \
2445 "checking for C++ compiler version" >&5
2446 ac_compiler=`set X $ac_compile; echo $2`
2447 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2448 (eval $ac_compiler --version </dev/null >&5) 2>&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }
2452 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2453 (eval $ac_compiler -v </dev/null >&5) 2>&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }
2457 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2458 (eval $ac_compiler -V </dev/null >&5) 2>&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }
2463 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2464 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2465 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 cat >conftest.$ac_ext <<_ACEOF
2469 #line $LINENO "configure"
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2487 rm -f conftest.$ac_objext
2488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489 (eval $ac_compile) 2>&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } &&
2493 { ac_try='test -s conftest.$ac_objext'
2494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; }; then
2501 echo "$as_me: failed program was:" >&5
2502 sed 's/^/| /' conftest.$ac_ext >&5
2506 rm -f conftest.$ac_objext conftest.$ac_ext
2507 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2510 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2511 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2512 GXX=`test $ac_compiler_gnu = yes && echo yes`
2513 ac_test_CXXFLAGS=${CXXFLAGS+set}
2514 ac_save_CXXFLAGS=$CXXFLAGS
2516 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2517 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2518 if test "${ac_cv_prog_cxx_g+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 cat >conftest.$ac_ext <<_ACEOF
2522 #line $LINENO "configure"
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2537 rm -f conftest.$ac_objext
2538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539 (eval $ac_compile) 2>&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); } &&
2543 { ac_try='test -s conftest.$ac_objext'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2549 ac_cv_prog_cxx_g=yes
2551 echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2556 rm -f conftest.$ac_objext conftest.$ac_ext
2558 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2559 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2560 if test "$ac_test_CXXFLAGS" = set; then
2561 CXXFLAGS=$ac_save_CXXFLAGS
2562 elif test $ac_cv_prog_cxx_g = yes; then
2563 if test "$GXX" = yes; then
2569 if test "$GXX" = yes; then
2575 for ac_declaration in \
2577 '#include <stdlib.h>' \
2578 'extern "C" void std::exit (int) throw (); using std::exit;' \
2579 'extern "C" void std::exit (int); using std::exit;' \
2580 'extern "C" void exit (int) throw ();' \
2581 'extern "C" void exit (int);' \
2584 cat >conftest.$ac_ext <<_ACEOF
2585 #line $LINENO "configure"
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2601 rm -f conftest.$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -s conftest.$ac_objext'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2615 echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2620 rm -f conftest.$ac_objext conftest.$ac_ext
2621 cat >conftest.$ac_ext <<_ACEOF
2622 #line $LINENO "configure"
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2637 rm -f conftest.$ac_objext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639 (eval $ac_compile) 2>&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2655 rm -f conftest.$ac_objext conftest.$ac_ext
2658 if test -n "$ac_declaration"; then
2659 echo '#ifdef __cplusplus' >>confdefs.h
2660 echo $ac_declaration >>confdefs.h
2661 echo '#endif' >>confdefs.h
2665 ac_cpp='$CPP $CPPFLAGS'
2666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670 if test "x$CC" != xcc; then
2671 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2672 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2674 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2675 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2677 set dummy $CC; ac_cc=`echo $2 |
2678 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2679 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 cat >conftest.$ac_ext <<_ACEOF
2683 #line $LINENO "configure"
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2698 # Make sure it works both with $CC and with simple cc.
2699 # We do the test twice because some compilers refuse to overwrite an
2700 # existing .o file with -o, though they will create one.
2701 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2702 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); };
2713 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2714 if test "x$CC" != xcc; then
2715 # Test first that cc exists at all.
2716 if { ac_try='cc -c conftest.$ac_ext >&5'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2722 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2723 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); };
2737 # cc exists but doesn't like -o.
2738 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2743 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2748 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2749 echo "$as_me:$LINENO: result: yes" >&5
2750 echo "${ECHO_T}yes" >&6
2752 echo "$as_me:$LINENO: result: no" >&5
2753 echo "${ECHO_T}no" >&6
2755 cat >>confdefs.h <<\_ACEOF
2756 #define NO_MINUS_C_MINUS_O 1
2762 ac_cpp='$CPP $CPPFLAGS'
2763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2767 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2768 # On Suns, sometimes $CPP names a directory.
2769 if test -n "$CPP" && test -d "$CPP"; then
2772 if test -z "$CPP"; then
2773 if test "${ac_cv_prog_CPP+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 # Double quotes because CPP needs to be expanded
2777 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2780 for ac_c_preproc_warn_flag in '' yes
2782 # Use a header file that comes with gcc, so configuring glibc
2783 # with a fresh cross-compiler works.
2784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2785 # <limits.h> exists even on freestanding compilers.
2786 # On the NeXT, cc -E runs the code through the compiler's parser,
2787 # not just through cpp. "Syntax error" is here to catch this case.
2788 cat >conftest.$ac_ext <<_ACEOF
2789 #line $LINENO "configure"
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2796 # include <limits.h>
2798 # include <assert.h>
2802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2805 grep -v '^ *+' conftest.er1 >conftest.err
2807 cat conftest.err >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); } >/dev/null; then
2810 if test -s conftest.err; then
2811 ac_cpp_err=$ac_c_preproc_warn_flag
2818 if test -z "$ac_cpp_err"; then
2821 echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2824 # Broken: fails on valid input.
2827 rm -f conftest.err conftest.$ac_ext
2829 # OK, works on sane cases. Now check whether non-existent headers
2830 # can be detected and how.
2831 cat >conftest.$ac_ext <<_ACEOF
2832 #line $LINENO "configure"
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2838 #include <ac_nonexistent.h>
2840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2843 grep -v '^ *+' conftest.er1 >conftest.err
2845 cat conftest.err >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } >/dev/null; then
2848 if test -s conftest.err; then
2849 ac_cpp_err=$ac_c_preproc_warn_flag
2856 if test -z "$ac_cpp_err"; then
2857 # Broken: success on invalid input.
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 # Passes both tests.
2867 rm -f conftest.err conftest.$ac_ext
2870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2871 rm -f conftest.err conftest.$ac_ext
2872 if $ac_preproc_ok; then
2884 echo "$as_me:$LINENO: result: $CPP" >&5
2885 echo "${ECHO_T}$CPP" >&6
2887 for ac_c_preproc_warn_flag in '' yes
2889 # Use a header file that comes with gcc, so configuring glibc
2890 # with a fresh cross-compiler works.
2891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2892 # <limits.h> exists even on freestanding compilers.
2893 # On the NeXT, cc -E runs the code through the compiler's parser,
2894 # not just through cpp. "Syntax error" is here to catch this case.
2895 cat >conftest.$ac_ext <<_ACEOF
2896 #line $LINENO "configure"
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2903 # include <limits.h>
2905 # include <assert.h>
2909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2912 grep -v '^ *+' conftest.er1 >conftest.err
2914 cat conftest.err >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } >/dev/null; then
2917 if test -s conftest.err; then
2918 ac_cpp_err=$ac_c_preproc_warn_flag
2925 if test -z "$ac_cpp_err"; then
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2931 # Broken: fails on valid input.
2934 rm -f conftest.err conftest.$ac_ext
2936 # OK, works on sane cases. Now check whether non-existent headers
2937 # can be detected and how.
2938 cat >conftest.$ac_ext <<_ACEOF
2939 #line $LINENO "configure"
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2945 #include <ac_nonexistent.h>
2947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950 grep -v '^ *+' conftest.er1 >conftest.err
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } >/dev/null; then
2955 if test -s conftest.err; then
2956 ac_cpp_err=$ac_c_preproc_warn_flag
2963 if test -z "$ac_cpp_err"; then
2964 # Broken: success on invalid input.
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 # Passes both tests.
2974 rm -f conftest.err conftest.$ac_ext
2977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2978 rm -f conftest.err conftest.$ac_ext
2979 if $ac_preproc_ok; then
2982 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2983 See \`config.log' for more details." >&5
2984 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2985 See \`config.log' for more details." >&2;}
2986 { (exit 1); exit 1; }; }
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2996 echo "$as_me:$LINENO: checking for egrep" >&5
2997 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2998 if test "${ac_cv_prog_egrep+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3002 then ac_cv_prog_egrep='grep -E'
3003 else ac_cv_prog_egrep='egrep'
3006 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3007 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3008 EGREP=$ac_cv_prog_egrep
3011 if test $ac_cv_c_compiler_gnu = yes; then
3012 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3013 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3014 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 ac_pattern="Autoconf.*'x'"
3018 cat >conftest.$ac_ext <<_ACEOF
3019 #line $LINENO "configure"
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3029 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3030 ac_cv_prog_gcc_traditional=yes
3032 ac_cv_prog_gcc_traditional=no
3037 if test $ac_cv_prog_gcc_traditional = no; then
3038 cat >conftest.$ac_ext <<_ACEOF
3039 #line $LINENO "configure"
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3049 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3050 ac_cv_prog_gcc_traditional=yes
3056 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3057 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3058 if test $ac_cv_prog_gcc_traditional = yes; then
3059 CC="$CC -traditional"
3063 if test "x$CC" = xgcc
3065 cat >>confdefs.h <<\_ACEOF
3071 # Find a good install program. We prefer a C program (faster),
3072 # so one script is as good as another. But avoid the broken or
3073 # incompatible versions:
3074 # SysV /etc/install, /usr/sbin/install
3075 # SunOS /usr/etc/install
3076 # IRIX /sbin/install
3078 # AmigaOS /C/install, which installs bootblocks on floppy discs
3079 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3080 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3081 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3082 # ./install, which can be erroneously created by make from ./install.sh.
3083 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3084 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3085 if test -z "$INSTALL"; then
3086 if test "${ac_cv_path_install+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 test -z "$as_dir" && as_dir=.
3094 # Account for people who put trailing slashes in PATH elements.
3096 ./ | .// | /cC/* | \
3097 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3100 # OSF1 and SCO ODT 3.0 have their own names for install.
3101 # Don't use installbsd from OSF since it installs stuff as root
3103 for ac_prog in ginstall scoinst install; do
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3106 if test $ac_prog = install &&
3107 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3108 # AIX install. It has an incompatible calling convention.
3110 elif test $ac_prog = install &&
3111 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3112 # program-specific install script used by HP pwplus--don't use.
3115 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3127 if test "${ac_cv_path_install+set}" = set; then
3128 INSTALL=$ac_cv_path_install
3130 # As a last resort, use the slow shell script. We don't cache a
3131 # path for INSTALL within a source directory, because that will
3132 # break other packages using the cache if that directory is
3133 # removed, or if the path is relative.
3134 INSTALL=$ac_install_sh
3137 echo "$as_me:$LINENO: result: $INSTALL" >&5
3138 echo "${ECHO_T}$INSTALL" >&6
3140 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3141 # It thinks the first close brace ends the variable substitution.
3142 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3144 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3146 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3148 if test -n "$ac_tool_prefix"; then
3149 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3151 echo "$as_me:$LINENO: checking for $ac_word" >&5
3152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3153 if test "${ac_cv_prog_RANLIB+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3156 if test -n "$RANLIB"; then
3157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 RANLIB=$ac_cv_prog_RANLIB
3176 if test -n "$RANLIB"; then
3177 echo "$as_me:$LINENO: result: $RANLIB" >&5
3178 echo "${ECHO_T}$RANLIB" >&6
3180 echo "$as_me:$LINENO: result: no" >&5
3181 echo "${ECHO_T}no" >&6
3185 if test -z "$ac_cv_prog_RANLIB"; then
3186 ac_ct_RANLIB=$RANLIB
3187 # Extract the first word of "ranlib", so it can be a program name with args.
3188 set dummy ranlib; ac_word=$2
3189 echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 if test -n "$ac_ct_RANLIB"; then
3195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_ac_ct_RANLIB="ranlib"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3215 if test -n "$ac_ct_RANLIB"; then
3216 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3217 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3219 echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3223 RANLIB=$ac_ct_RANLIB
3225 RANLIB="$ac_cv_prog_RANLIB"
3228 # Extract the first word of "mv", so it can be a program name with args.
3229 set dummy mv; ac_word=$2
3230 echo "$as_me:$LINENO: checking for $ac_word" >&5
3231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3232 if test "${ac_cv_path_MV+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 test -z "$as_dir" && as_dir=.
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3247 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3260 if test -n "$MV"; then
3261 echo "$as_me:$LINENO: result: $MV" >&5
3262 echo "${ECHO_T}$MV" >&6
3264 echo "$as_me:$LINENO: result: no" >&5
3265 echo "${ECHO_T}no" >&6
3268 # Extract the first word of "rm", so it can be a program name with args.
3269 set dummy rm; ac_word=$2
3270 echo "$as_me:$LINENO: checking for $ac_word" >&5
3271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3272 if test "${ac_cv_path_RM+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3300 if test -n "$RM"; then
3301 echo "$as_me:$LINENO: result: $RM" >&5
3302 echo "${ECHO_T}$RM" >&6
3304 echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3308 # Extract the first word of "cp", so it can be a program name with args.
3309 set dummy cp; ac_word=$2
3310 echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3312 if test "${ac_cv_path_CP+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3340 if test -n "$CP"; then
3341 echo "$as_me:$LINENO: result: $CP" >&5
3342 echo "${ECHO_T}$CP" >&6
3344 echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3348 # Extract the first word of "sed", so it can be a program name with args.
3349 set dummy sed; ac_word=$2
3350 echo "$as_me:$LINENO: checking for $ac_word" >&5
3351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3352 if test "${ac_cv_path_SED+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3380 if test -n "$SED"; then
3381 echo "$as_me:$LINENO: result: $SED" >&5
3382 echo "${ECHO_T}$SED" >&6
3384 echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3388 # Extract the first word of "awk", so it can be a program name with args.
3389 set dummy awk; ac_word=$2
3390 echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_path_AWK+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3420 if test -n "$AWK"; then
3421 echo "$as_me:$LINENO: result: $AWK" >&5
3422 echo "${ECHO_T}$AWK" >&6
3424 echo "$as_me:$LINENO: result: no" >&5
3425 echo "${ECHO_T}no" >&6
3428 # Extract the first word of "echo", so it can be a program name with args.
3429 set dummy echo; ac_word=$2
3430 echo "$as_me:$LINENO: checking for $ac_word" >&5
3431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3432 if test "${ac_cv_path_ECHO+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3458 ECHO=$ac_cv_path_ECHO
3460 if test -n "$ECHO"; then
3461 echo "$as_me:$LINENO: result: $ECHO" >&5
3462 echo "${ECHO_T}$ECHO" >&6
3464 echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3468 # Extract the first word of "cmp", so it can be a program name with args.
3469 set dummy cmp; ac_word=$2
3470 echo "$as_me:$LINENO: checking for $ac_word" >&5
3471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3472 if test "${ac_cv_path_CMP+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3500 if test -n "$CMP"; then
3501 echo "$as_me:$LINENO: result: $CMP" >&5
3502 echo "${ECHO_T}$CMP" >&6
3504 echo "$as_me:$LINENO: result: no" >&5
3505 echo "${ECHO_T}no" >&6
3508 # Extract the first word of "tbl", so it can be a program name with args.
3509 set dummy tbl; ac_word=$2
3510 echo "$as_me:$LINENO: checking for $ac_word" >&5
3511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512 if test "${ac_cv_path_TBL+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3540 if test -n "$TBL"; then
3541 echo "$as_me:$LINENO: result: $TBL" >&5
3542 echo "${ECHO_T}$TBL" >&6
3544 echo "$as_me:$LINENO: result: no" >&5
3545 echo "${ECHO_T}no" >&6
3548 # Extract the first word of "ar", so it can be a program name with args.
3549 set dummy ar; ac_word=$2
3550 echo "$as_me:$LINENO: checking for $ac_word" >&5
3551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3552 if test "${ac_cv_path_AR+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3580 if test -n "$AR"; then
3581 echo "$as_me:$LINENO: result: $AR" >&5
3582 echo "${ECHO_T}$AR" >&6
3584 echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3588 # Extract the first word of "openssl", so it can be a program name with args.
3589 set dummy openssl; ac_word=$2
3590 echo "$as_me:$LINENO: checking for $ac_word" >&5
3591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3592 if test "${ac_cv_path_OPENSSL+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3618 OPENSSL=$ac_cv_path_OPENSSL
3620 if test -n "$OPENSSL"; then
3621 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3622 echo "${ECHO_T}$OPENSSL" >&6
3624 echo "$as_me:$LINENO: result: no" >&5
3625 echo "${ECHO_T}no" >&6
3628 # Extract the first word of "mtx", so it can be a program name with args.
3629 set dummy mtx; ac_word=$2
3630 echo "$as_me:$LINENO: checking for $ac_word" >&5
3631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3632 if test "${ac_cv_path_MTX+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 test -z "$as_dir" && as_dir=.
3645 for ac_exec_ext in '' $ac_executable_extensions; do
3646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3647 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3660 if test -n "$MTX"; then
3661 echo "$as_me:$LINENO: result: $MTX" >&5
3662 echo "${ECHO_T}$MTX" >&6
3664 echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3668 # Extract the first word of "pkg-config", so it can be a program name with args.
3669 set dummy pkg-config; ac_word=$2
3670 echo "$as_me:$LINENO: checking for $ac_word" >&5
3671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3672 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3698 PKGCONFIG=$ac_cv_path_PKGCONFIG
3700 if test -n "$PKGCONFIG"; then
3701 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3702 echo "${ECHO_T}$PKGCONFIG" >&6
3704 echo "$as_me:$LINENO: result: no" >&5
3705 echo "${ECHO_T}no" >&6
3708 # Extract the first word of "wx-config", so it can be a program name with args.
3709 set dummy wx-config; ac_word=$2
3710 echo "$as_me:$LINENO: checking for $ac_word" >&5
3711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3712 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 test -z "$as_dir" && as_dir=.
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3738 WXCONFIG=$ac_cv_path_WXCONFIG
3740 if test -n "$WXCONFIG"; then
3741 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3742 echo "${ECHO_T}$WXCONFIG" >&6
3744 echo "$as_me:$LINENO: result: no" >&5
3745 echo "${ECHO_T}no" >&6
3748 # Extract the first word of "cdrecord", so it can be a program name with args.
3749 set dummy cdrecord; ac_word=$2
3750 echo "$as_me:$LINENO: checking for $ac_word" >&5
3751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3752 if test "${ac_cv_path_CDRECORD+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
3768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
3778 CDRECORD=$ac_cv_path_CDRECORD
3780 if test -n "$CDRECORD"; then
3781 echo "$as_me:$LINENO: result: $CDRECORD" >&5
3782 echo "${ECHO_T}$CDRECORD" >&6
3784 echo "$as_me:$LINENO: result: no" >&5
3785 echo "${ECHO_T}no" >&6
3788 # Extract the first word of "pidof", so it can be a program name with args.
3789 set dummy pidof; ac_word=$2
3790 echo "$as_me:$LINENO: checking for $ac_word" >&5
3791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3792 if test "${ac_cv_path_PIDOF+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 test -z "$as_dir" && as_dir=.
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
3808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
3818 PIDOF=$ac_cv_path_PIDOF
3820 if test -n "$PIDOF"; then
3821 echo "$as_me:$LINENO: result: $PIDOF" >&5
3822 echo "${ECHO_T}$PIDOF" >&6
3824 echo "$as_me:$LINENO: result: no" >&5
3825 echo "${ECHO_T}no" >&6
3829 test -n "$ARFLAG" || ARFLAGS="cr"
3842 # Make sure we can run config.sub.
3843 $ac_config_sub sun4 >/dev/null 2>&1 ||
3844 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3845 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3846 { (exit 1); exit 1; }; }
3848 echo "$as_me:$LINENO: checking build system type" >&5
3849 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3850 if test "${ac_cv_build+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 ac_cv_build_alias=$build_alias
3854 test -z "$ac_cv_build_alias" &&
3855 ac_cv_build_alias=`$ac_config_guess`
3856 test -z "$ac_cv_build_alias" &&
3857 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3858 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3859 { (exit 1); exit 1; }; }
3860 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3861 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3862 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3863 { (exit 1); exit 1; }; }
3866 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3867 echo "${ECHO_T}$ac_cv_build" >&6
3869 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3870 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3871 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3875 echo "$as_me:$LINENO: checking host system type" >&5
3876 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3877 if test "${ac_cv_host+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 ac_cv_host_alias=$host_alias
3881 test -z "$ac_cv_host_alias" &&
3882 ac_cv_host_alias=$ac_cv_build_alias
3883 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3884 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3885 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3886 { (exit 1); exit 1; }; }
3889 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3890 echo "${ECHO_T}$ac_cv_host" >&6
3892 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3893 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3894 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3898 *cygwin* ) CYGWIN=yes;;
3902 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3908 HAVE_SUN_OS_FALSE='#'
3910 HAVE_SUN_OS_TRUE='#'
3913 cat >>confdefs.h <<\_ACEOF
3914 #define HAVE_SUN_OS 1
3922 HAVE_SUN_OS_FALSE='#'
3924 HAVE_SUN_OS_TRUE='#'
3929 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3935 HAVE_OSF1_OS_FALSE='#'
3937 HAVE_OSF1_OS_TRUE='#'
3940 cat >>confdefs.h <<\_ACEOF
3941 #define HAVE_OSF1_OS 1
3949 HAVE_OSF1_OS_FALSE='#'
3951 HAVE_OSF1_OS_TRUE='#'
3956 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3962 HAVE_AIX_OS_FALSE='#'
3964 HAVE_AIX_OS_TRUE='#'
3967 cat >>confdefs.h <<\_ACEOF
3968 #define HAVE_AIX_OS 1
3976 HAVE_AIX_OS_FALSE='#'
3978 HAVE_AIX_OS_TRUE='#'
3983 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3989 HAVE_HPUX_OS_FALSE='#'
3991 HAVE_HPUX_OS_TRUE='#'
3994 cat >>confdefs.h <<\_ACEOF
3995 #define HAVE_HPUX_OS 1
4003 HAVE_HPUX_OS_FALSE='#'
4005 HAVE_HPUX_OS_TRUE='#'
4010 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4016 HAVE_LINUX_OS_FALSE='#'
4018 HAVE_LINUX_OS_TRUE='#'
4019 HAVE_LINUX_OS_FALSE=
4021 cat >>confdefs.h <<\_ACEOF
4022 #define HAVE_LINUX_OS 1
4030 HAVE_LINUX_OS_FALSE='#'
4032 HAVE_LINUX_OS_TRUE='#'
4033 HAVE_LINUX_OS_FALSE=
4037 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4042 HAVE_FREEBSD_OS_TRUE=
4043 HAVE_FREEBSD_OS_FALSE='#'
4045 HAVE_FREEBSD_OS_TRUE='#'
4046 HAVE_FREEBSD_OS_FALSE=
4048 cat >>confdefs.h <<\_ACEOF
4049 #define HAVE_FREEBSD_OS 1
4056 HAVE_FREEBSD_OS_TRUE=
4057 HAVE_FREEBSD_OS_FALSE='#'
4059 HAVE_FREEBSD_OS_TRUE='#'
4060 HAVE_FREEBSD_OS_FALSE=
4064 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4069 HAVE_NETBSD_OS_TRUE=
4070 HAVE_NETBSD_OS_FALSE='#'
4072 HAVE_NETBSD_OS_TRUE='#'
4073 HAVE_NETBSD_OS_FALSE=
4075 cat >>confdefs.h <<\_ACEOF
4076 #define HAVE_NETBSD_OS 1
4083 HAVE_NETBSD_OS_TRUE=
4084 HAVE_NETBSD_OS_FALSE='#'
4086 HAVE_NETBSD_OS_TRUE='#'
4087 HAVE_NETBSD_OS_FALSE=
4091 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4096 HAVE_OPENBSD_OS_TRUE=
4097 HAVE_OPENBSD_OS_FALSE='#'
4099 HAVE_OPENBSD_OS_TRUE='#'
4100 HAVE_OPENBSD_OS_FALSE=
4102 cat >>confdefs.h <<\_ACEOF
4103 #define HAVE_OPENBSD_OS 1
4110 HAVE_OPENBSD_OS_TRUE=
4111 HAVE_OPENBSD_OS_FALSE='#'
4113 HAVE_OPENBSD_OS_TRUE='#'
4114 HAVE_OPENBSD_OS_FALSE=
4118 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4124 HAVE_BSDI_OS_FALSE='#'
4126 HAVE_BSDI_OS_TRUE='#'
4129 cat >>confdefs.h <<\_ACEOF
4130 #define HAVE_BSDI_OS 1
4138 HAVE_BSDI_OS_FALSE='#'
4140 HAVE_BSDI_OS_TRUE='#'
4145 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4151 HAVE_SGI_OS_FALSE='#'
4153 HAVE_SGI_OS_TRUE='#'
4156 cat >>confdefs.h <<\_ACEOF
4157 #define HAVE_SGI_OS 1
4165 HAVE_SGI_OS_FALSE='#'
4167 HAVE_SGI_OS_TRUE='#'
4172 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4178 HAVE_IRIX_OS_FALSE='#'
4180 HAVE_IRIX_OS_TRUE='#'
4183 cat >>confdefs.h <<\_ACEOF
4184 #define HAVE_IRIX_OS 1
4192 HAVE_IRIX_OS_FALSE='#'
4194 HAVE_IRIX_OS_TRUE='#'
4199 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4204 HAVE_DARWIN_OS_TRUE=
4205 HAVE_DARWIN_OS_FALSE='#'
4207 HAVE_DARWIN_OS_TRUE='#'
4208 HAVE_DARWIN_OS_FALSE=
4210 cat >>confdefs.h <<\_ACEOF
4211 #define HAVE_DARWIN_OS 1
4218 HAVE_DARWIN_OS_TRUE=
4219 HAVE_DARWIN_OS_FALSE='#'
4221 HAVE_DARWIN_OS_TRUE='#'
4222 HAVE_DARWIN_OS_FALSE=
4227 # -----------------------------------------------------------
4228 # ----------------------------------------------------------
4229 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4230 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4231 if test "x$DISTNAME" != "x"
4233 echo "distname set to $DISTNAME"
4234 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4237 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4240 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4243 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4246 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4249 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4252 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4255 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4258 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4261 elif test -f /etc/SuSE-release
4264 elif test -d /etc/SuSEconfig
4267 elif test -f /etc/mandrake-release
4270 elif test -f /etc/whitebox-release
4273 elif test -f /etc/redhat-release
4276 elif test -f /etc/gentoo-release
4279 elif test -f /etc/debian_version
4282 elif test -f /etc/slackware-version
4285 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4288 elif test -f /etc/engarde-version
4291 elif test "$CYGWIN" = yes
4294 cat >>confdefs.h <<\_ACEOF
4295 #define HAVE_CYGWIN 1
4301 echo "$as_me:$LINENO: result: done" >&5
4302 echo "${ECHO_T}done" >&6
4305 # -----------------------------------------------------------
4306 # ----------------------------------------------------------
4311 INSIDE_GNOME_COMMON_TRUE=
4312 INSIDE_GNOME_COMMON_FALSE='#'
4314 INSIDE_GNOME_COMMON_TRUE='#'
4315 INSIDE_GNOME_COMMON_FALSE=
4318 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4320 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4323 # ------------------------------------------------------------------
4324 # If the user has not set --prefix, we set our default to nothing.
4325 # In this case, if the user has not set --sysconfdir, we set it
4326 # to the package default of /etc/bacula. If either --prefix or
4327 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4328 # ------------------------------------------------------------------
4329 if test x${prefix} = xNONE ; then
4330 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4331 sysconfdir=/etc/bacula
4335 sysconfdir=`eval echo ${sysconfdir}`
4337 # -------------------------------------------------------------------------
4338 # If the user has not set --exec-prefix, we default to ${prefix}
4339 # -------------------------------------------------------------------------
4340 if test x${exec_prefix} = xNONE ; then
4341 exec_prefix=${prefix}
4344 # ------------------------------------------------------------------
4345 # If the user has not set --sbindir, we set our default as /sbin
4346 # ------------------------------------------------------------------
4347 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4348 sbindir=${exec_prefix}/sbin
4350 sbindir=`eval echo ${sbindir}`
4352 # ------------------------------------------------------------------
4353 # All list of languages for which a translation exist. Each
4354 # language is separated by a space.
4355 # ------------------------------------------------------------------
4358 for ac_prog in msgfmt
4360 # Extract the first word of "$ac_prog", so it can be a program name with args.
4361 set dummy $ac_prog; ac_word=$2
4362 echo "$as_me:$LINENO: checking for $ac_word" >&5
4363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4364 if test "${ac_cv_path_MSGFMT+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4379 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 MSGFMT=$ac_cv_path_MSGFMT
4391 if test -n "$MSGFMT"; then
4392 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4393 echo "${ECHO_T}$MSGFMT" >&6
4395 echo "$as_me:$LINENO: result: no" >&5
4396 echo "${ECHO_T}no" >&6
4399 test -n "$MSGFMT" && break
4401 test -n "$MSGFMT" || MSGFMT="no"
4403 if test "$MSGFMT" = "no"
4405 echo 'msgfmt program not found, disabling NLS !'
4407 USE_INCLUDED_LIBINTL=no
4415 support_postgresql=no
4416 support_smartalloc=yes
4417 support_readline=yes
4420 support_wx_console=no
4422 support_static_tools=no
4423 support_static_fd=no
4424 support_static_sd=no
4425 support_static_dir=no
4426 support_static_cons=no
4428 build_client_only=no
4434 # -------------------------------------------
4435 # gnome (default off)
4436 # -------------------------------------------
4437 # Check whether --enable-gnome or --disable-gnome was given.
4438 if test "${enable_gnome+set}" = set; then
4439 enableval="$enable_gnome"
4440 if test x$enableval = xyes; then
4446 if test x$support_gnome = xyes; then
4447 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4449 if test $pkg = 0; then
4450 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4451 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4452 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4453 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4458 GNOME_DIR=src/gnome2-console
4459 gnome_version="Version 2.x"
4472 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4473 if test "${with_gnome_includes+set}" = set; then
4474 withval="$with_gnome_includes"
4476 CFLAGS="$CFLAGS -I$withval"
4481 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4482 if test "${with_gnome_libs+set}" = set; then
4483 withval="$with_gnome_libs"
4485 LDFLAGS="$LDFLAGS -L$withval"
4486 gnome_prefix=$withval
4491 # Check whether --with-gnome or --without-gnome was given.
4492 if test "${with_gnome+set}" = set; then
4493 withval="$with_gnome"
4494 if test x$withval = xyes; then
4498 if test "x$withval" = xno; then
4502 LDFLAGS="$LDFLAGS -L$withval/lib"
4503 CFLAGS="$CFLAGS -I$withval/include"
4504 gnome_prefix=$withval/lib
4511 if test "x$want_gnome" = xyes; then
4513 # Extract the first word of "gnome-config", so it can be a program name with args.
4514 set dummy gnome-config; ac_word=$2
4515 echo "$as_me:$LINENO: checking for $ac_word" >&5
4516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4517 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 case $GNOME_CONFIG in
4522 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4543 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4545 if test -n "$GNOME_CONFIG"; then
4546 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4547 echo "${ECHO_T}$GNOME_CONFIG" >&6
4549 echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6
4553 if test "$GNOME_CONFIG" = "no"; then
4554 no_gnome_config="yes"
4556 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4557 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4558 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4559 echo "$as_me:$LINENO: result: yes" >&5
4560 echo "${ECHO_T}yes" >&6
4563 # Extract the first word of "orbit-config", so it can be a program name with args.
4564 set dummy orbit-config; ac_word=$2
4565 echo "$as_me:$LINENO: checking for $ac_word" >&5
4566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4567 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 case $ORBIT_CONFIG in
4572 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4582 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4593 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4595 if test -n "$ORBIT_CONFIG"; then
4596 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4597 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4599 echo "$as_me:$LINENO: result: no" >&5
4600 echo "${ECHO_T}no" >&6
4603 # Extract the first word of "orbit-idl", so it can be a program name with args.
4604 set dummy orbit-idl; ac_word=$2
4605 echo "$as_me:$LINENO: checking for $ac_word" >&5
4606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4607 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4622 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4633 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4635 if test -n "$ORBIT_IDL"; then
4636 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4637 echo "${ECHO_T}$ORBIT_IDL" >&6
4639 echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6
4643 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4644 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4645 if test "${gnome_cv_orbit_found+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4650 gnome_cv_orbit_found=no
4652 gnome_cv_orbit_found=yes
4656 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4657 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4660 if test x$gnome_cv_orbit_found = xyes; then
4662 HAVE_ORBIT_FALSE='#'
4667 if test x$gnome_cv_orbit_found = xyes; then
4669 ORBIT_CFLAGS=`orbit-config --cflags client server`
4670 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4674 if test xfail = xfailure; then
4675 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4676 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4677 { (exit 1); exit 1; }; }
4681 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4682 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4683 if test "${gnome_cv_gnorba_found+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 gnome_cv_gnorba_found=no
4688 if test x$gnome_cv_orbit_found = xyes; then
4689 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4690 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4691 if test -n "$GNORBA_LIBS"; then
4692 gnome_cv_gnorba_found=yes
4697 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4698 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4701 if test x$gnome_cv_gnorba_found = xyes; then
4703 HAVE_GNORBA_FALSE='#'
4705 HAVE_GNORBA_TRUE='#'
4708 if test x$gnome_cv_orbit_found = xyes; then
4710 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4711 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4715 if test xfail = xfailure; then
4716 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4717 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4718 { (exit 1); exit 1; }; }
4722 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4723 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4724 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4725 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4726 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4727 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4728 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4731 echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6
4733 no_gnome_config="yes"
4737 if test x$exec_prefix = xNONE; then
4738 if test x$prefix = xNONE; then
4739 gnome_prefix=$ac_default_prefix/lib
4741 gnome_prefix=$prefix/lib
4744 gnome_prefix=`eval echo \`echo $libdir\``
4747 if test "$no_gnome_config" = "yes"; then
4748 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4749 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4750 if test -f $gnome_prefix/gnomeConf.sh; then
4751 echo "$as_me:$LINENO: result: found" >&5
4752 echo "${ECHO_T}found" >&6
4753 echo "loading gnome configuration from" \
4754 "$gnome_prefix/gnomeConf.sh"
4755 . $gnome_prefix/gnomeConf.sh
4758 echo "$as_me:$LINENO: result: not found" >&5
4759 echo "${ECHO_T}not found" >&6
4760 if test xfail = xfail; then
4761 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4762 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4763 { (exit 1); exit 1; }; }
4772 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4773 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4777 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4778 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4779 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4782 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4783 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4784 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4787 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4788 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4789 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4791 echo "$as_me:$LINENO: result: unknown library" >&5
4792 echo "${ECHO_T}unknown library" >&6
4794 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4795 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4800 GNOME_DIR=src/gnome-console
4801 gnome_version="Version 1.4"
4807 # -------------------------------------------
4808 # wx-console (default off)
4809 # -------------------------------------------
4810 # Check whether --enable-wx-console or --disable-wx-console was given.
4811 if test "${enable_wx_console+set}" = set; then
4812 enableval="$enable_wx_console"
4813 if test x$enableval = xyes; then
4814 support_wx_console=yes
4819 if test x$support_wx_console = xyes; then
4820 abc=`$WXCONFIG --cppflags`
4822 if test $pkg = 0; then
4823 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4824 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4827 WX_DIR=src/wx-console
4830 echo "wx-config program not found. wx-console disabled."
4832 support_wx_console=no
4838 # -------------------------------------------
4839 # tray-monitor (default off)
4840 # -------------------------------------------
4841 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4842 if test "${enable_tray_monitor+set}" = set; then
4843 enableval="$enable_tray_monitor"
4844 if test x$enableval = xyes; then
4845 support_tray_monitor=yes
4850 if test x$support_tray_monitor = xyes; then
4851 abc=`$PKGCONFIG --exists gtk+-2.0`
4853 if test $pkg = 0; then
4854 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4855 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4858 TRAY_MONITOR_DIR=src/tray-monitor
4859 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4861 if test $pkg = 0; then
4862 cat >>confdefs.h <<\_ACEOF
4863 #define HAVE_GTK_2_4 1
4871 # -------------------------------------------
4872 # smartalloc (default off)
4873 # -------------------------------------------
4874 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4875 if test "${enable_smartalloc+set}" = set; then
4876 enableval="$enable_smartalloc"
4877 if test x$enableval = xno; then
4878 support_smartalloc=no
4882 if test x$support_smartalloc = xyes; then
4883 cat >>confdefs.h <<\_ACEOF
4884 #define SMARTALLOC 1
4889 # -------------------------------------------
4890 # static-tools (default off)
4891 # -------------------------------------------
4892 # Check whether --enable-static-tools or --disable-static-tools was given.
4893 if test "${enable_static_tools+set}" = set; then
4894 enableval="$enable_static_tools"
4895 if test x$enableval = xyes; then
4896 support_static_tools=yes
4901 if test x$support_static_tools = xyes; then
4902 TTOOL_LDFLAGS="-static"
4906 # -------------------------------------------
4907 # static-fd (default off)
4908 # -------------------------------------------
4909 # Check whether --enable-static-fd or --disable-static-fd was given.
4910 if test "${enable_static_fd+set}" = set; then
4911 enableval="$enable_static_fd"
4912 if test x$enableval = xyes; then
4913 support_static_fd=yes
4918 if test x$support_static_fd = xyes; then
4919 STATIC_FD="static-bacula-fd"
4923 # -------------------------------------------
4924 # static-sd (default off)
4925 # -------------------------------------------
4926 # Check whether --enable-static-sd or --disable-static-sd was given.
4927 if test "${enable_static_sd+set}" = set; then
4928 enableval="$enable_static_sd"
4929 if test x$enableval = xyes; then
4930 support_static_sd=yes
4935 if test x$support_static_sd = xyes; then
4936 STATIC_SD="static-bacula-sd"
4940 # -------------------------------------------
4941 # static-dir (default off)
4942 # -------------------------------------------
4943 # Check whether --enable-static-dir or --disable-static-dir was given.
4944 if test "${enable_static_dir+set}" = set; then
4945 enableval="$enable_static_dir"
4946 if test x$enableval = xyes; then
4947 support_static_dir=yes
4952 if test x$support_static_dir = xyes; then
4953 STATIC_DIR="static-bacula-dir"
4957 # -------------------------------------------
4958 # static-cons (default off)
4959 # -------------------------------------------
4960 # Check whether --enable-static-cons or --disable-static-cons was given.
4961 if test "${enable_static_cons+set}" = set; then
4962 enableval="$enable_static_cons"
4963 if test x$enableval = xyes; then
4964 support_static_cons=yes
4971 if test x$support_static_cons = xyes; then
4972 STATIC_CONS="static-bconsole"
4973 STATIC_GNOME_CONS="static-gnome-console"
4974 STATIC_WX_CONS="static-wx-console"
4980 # -------------------------------------------
4981 # client_only (default off)
4982 # -------------------------------------------
4983 # Check whether --enable-client-only or --disable-client-only was given.
4984 if test "${enable_client_only+set}" = set; then
4985 enableval="$enable_client_only"
4986 if test x$enableval = xyes; then
4987 build_client_only=yes
4992 if test x$build_client_only = xno; then
4999 # ---------------------------------------------------
5000 # Check for conio (Bacula readline substitute)(
5001 # ---------------------------------------------------
5002 # this allows you to turn it completely off
5003 # Check whether --enable-conio or --disable-conio was given.
5004 if test "${enable_conio+set}" = set; then
5005 enableval="$enable_conio"
5006 if test x$enableval = xno; then
5012 if test x$support_conio = xyes; then
5013 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5014 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5015 if test "${ac_cv_header_stdc+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 cat >conftest.$ac_ext <<_ACEOF
5019 #line $LINENO "configure"
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5038 rm -f conftest.$ac_objext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040 (eval $ac_compile) 2>&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } &&
5044 { ac_try='test -s conftest.$ac_objext'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5050 ac_cv_header_stdc=yes
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5055 ac_cv_header_stdc=no
5057 rm -f conftest.$ac_objext conftest.$ac_ext
5059 if test $ac_cv_header_stdc = yes; then
5060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5061 cat >conftest.$ac_ext <<_ACEOF
5062 #line $LINENO "configure"
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5072 $EGREP "memchr" >/dev/null 2>&1; then
5075 ac_cv_header_stdc=no
5081 if test $ac_cv_header_stdc = yes; then
5082 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5083 cat >conftest.$ac_ext <<_ACEOF
5084 #line $LINENO "configure"
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5094 $EGREP "free" >/dev/null 2>&1; then
5097 ac_cv_header_stdc=no
5103 if test $ac_cv_header_stdc = yes; then
5104 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5105 if test "$cross_compiling" = yes; then
5108 cat >conftest.$ac_ext <<_ACEOF
5109 #line $LINENO "configure"
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h. */
5116 #if ((' ' & 0x0FF) == 0x020)
5117 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5118 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5120 # define ISLOWER(c) \
5121 (('a' <= (c) && (c) <= 'i') \
5122 || ('j' <= (c) && (c) <= 'r') \
5123 || ('s' <= (c) && (c) <= 'z'))
5124 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5127 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5132 for (i = 0; i < 256; i++)
5133 if (XOR (islower (i), ISLOWER (i))
5134 || toupper (i) != TOUPPER (i))
5139 rm -f conftest$ac_exeext
5140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5141 (eval $ac_link) 2>&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5152 echo "$as_me: program exited with status $ac_status" >&5
5153 echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5157 ac_cv_header_stdc=no
5159 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5163 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5164 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5165 if test $ac_cv_header_stdc = yes; then
5167 cat >>confdefs.h <<\_ACEOF
5168 #define STDC_HEADERS 1
5173 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5183 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5184 inttypes.h stdint.h unistd.h
5186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5187 echo "$as_me:$LINENO: checking for $ac_header" >&5
5188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 cat >conftest.$ac_ext <<_ACEOF
5193 #line $LINENO "configure"
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5199 $ac_includes_default
5201 #include <$ac_header>
5203 rm -f conftest.$ac_objext
5204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5205 (eval $ac_compile) 2>&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } &&
5209 { ac_try='test -s conftest.$ac_objext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5215 eval "$as_ac_Header=yes"
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5220 eval "$as_ac_Header=no"
5222 rm -f conftest.$ac_objext conftest.$ac_ext
5224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5227 cat >>confdefs.h <<_ACEOF
5228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5236 if test "${ac_cv_header_termcap_h+set}" = set; then
5237 echo "$as_me:$LINENO: checking for termcap.h" >&5
5238 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5239 if test "${ac_cv_header_termcap_h+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5243 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5245 # Is the header compilable?
5246 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5247 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5248 cat >conftest.$ac_ext <<_ACEOF
5249 #line $LINENO "configure"
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h. */
5255 $ac_includes_default
5256 #include <termcap.h>
5258 rm -f conftest.$ac_objext
5259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5260 (eval $ac_compile) 2>&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } &&
5264 { ac_try='test -s conftest.$ac_objext'
5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }; }; then
5270 ac_header_compiler=yes
5272 echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5275 ac_header_compiler=no
5277 rm -f conftest.$ac_objext conftest.$ac_ext
5278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5279 echo "${ECHO_T}$ac_header_compiler" >&6
5281 # Is the header present?
5282 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5283 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5284 cat >conftest.$ac_ext <<_ACEOF
5285 #line $LINENO "configure"
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h. */
5291 #include <termcap.h>
5293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5296 grep -v '^ *+' conftest.er1 >conftest.err
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } >/dev/null; then
5301 if test -s conftest.err; then
5302 ac_cpp_err=$ac_c_preproc_warn_flag
5309 if test -z "$ac_cpp_err"; then
5310 ac_header_preproc=yes
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5315 ac_header_preproc=no
5317 rm -f conftest.err conftest.$ac_ext
5318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5319 echo "${ECHO_T}$ac_header_preproc" >&6
5321 # So? What about this header?
5322 case $ac_header_compiler:$ac_header_preproc in
5324 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5325 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5326 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5327 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5330 ## ------------------------------------ ##
5331 ## Report this to bug-autoconf@gnu.org. ##
5332 ## ------------------------------------ ##
5335 sed "s/^/$as_me: WARNING: /" >&2
5338 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5339 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5340 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5341 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5342 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5343 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5346 ## ------------------------------------ ##
5347 ## Report this to bug-autoconf@gnu.org. ##
5348 ## ------------------------------------ ##
5351 sed "s/^/$as_me: WARNING: /" >&2
5354 echo "$as_me:$LINENO: checking for termcap.h" >&5
5355 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5356 if test "${ac_cv_header_termcap_h+set}" = set; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 ac_cv_header_termcap_h=$ac_header_preproc
5361 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5362 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5365 if test $ac_cv_header_termcap_h = yes; then
5366 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5367 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5368 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 ac_check_lib_save_LIBS=$LIBS
5372 LIBS="-ltermcap $LIBS"
5373 cat >conftest.$ac_ext <<_ACEOF
5374 #line $LINENO "configure"
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5381 /* Override any gcc2 internal prototype to avoid an error. */
5385 /* We use char because int might match the return type of a gcc2
5386 builtin and then its argument prototype would still apply. */
5396 rm -f conftest.$ac_objext conftest$ac_exeext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5398 (eval $ac_link) 2>&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } &&
5402 { ac_try='test -s conftest$ac_exeext'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 ac_cv_lib_termcap_tgetent=yes
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5413 ac_cv_lib_termcap_tgetent=no
5415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5416 LIBS=$ac_check_lib_save_LIBS
5418 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5419 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5420 if test $ac_cv_lib_termcap_tgetent = yes; then
5421 CONS_LIBS="-ltermcap"
5427 cat >>confdefs.h <<\_ACEOF
5428 #define HAVE_CONIO 1
5433 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5434 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5435 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 ac_check_lib_save_LIBS=$LIBS
5439 LIBS="-lncurses $LIBS"
5440 cat >conftest.$ac_ext <<_ACEOF
5441 #line $LINENO "configure"
5444 cat confdefs.h >>conftest.$ac_ext
5445 cat >>conftest.$ac_ext <<_ACEOF
5446 /* end confdefs.h. */
5448 /* Override any gcc2 internal prototype to avoid an error. */
5452 /* We use char because int might match the return type of a gcc2
5453 builtin and then its argument prototype would still apply. */
5463 rm -f conftest.$ac_objext conftest$ac_exeext
5464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5465 (eval $ac_link) 2>&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } &&
5469 { ac_try='test -s conftest$ac_exeext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_cv_lib_ncurses_tgetent=yes
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5480 ac_cv_lib_ncurses_tgetent=no
5482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5483 LIBS=$ac_check_lib_save_LIBS
5485 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5486 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5487 if test $ac_cv_lib_ncurses_tgetent = yes; then
5488 CONS_LIBS="-lncurses"
5494 cat >>confdefs.h <<\_ACEOF
5495 #define HAVE_CONIO 1
5508 for ac_header in curses.h
5510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5512 echo "$as_me:$LINENO: checking for $ac_header" >&5
5513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5520 # Is the header compilable?
5521 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5523 cat >conftest.$ac_ext <<_ACEOF
5524 #line $LINENO "configure"
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h. */
5530 $ac_includes_default
5531 #include <$ac_header>
5533 rm -f conftest.$ac_objext
5534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5535 (eval $ac_compile) 2>&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } &&
5539 { ac_try='test -s conftest.$ac_objext'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; }; then
5545 ac_header_compiler=yes
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5550 ac_header_compiler=no
5552 rm -f conftest.$ac_objext conftest.$ac_ext
5553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5554 echo "${ECHO_T}$ac_header_compiler" >&6
5556 # Is the header present?
5557 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5559 cat >conftest.$ac_ext <<_ACEOF
5560 #line $LINENO "configure"
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5566 #include <$ac_header>
5568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5571 grep -v '^ *+' conftest.er1 >conftest.err
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } >/dev/null; then
5576 if test -s conftest.err; then
5577 ac_cpp_err=$ac_c_preproc_warn_flag
5584 if test -z "$ac_cpp_err"; then
5585 ac_header_preproc=yes
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5590 ac_header_preproc=no
5592 rm -f conftest.err conftest.$ac_ext
5593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5594 echo "${ECHO_T}$ac_header_preproc" >&6
5596 # So? What about this header?
5597 case $ac_header_compiler:$ac_header_preproc in
5599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5605 ## ------------------------------------ ##
5606 ## Report this to bug-autoconf@gnu.org. ##
5607 ## ------------------------------------ ##
5610 sed "s/^/$as_me: WARNING: /" >&2
5613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5621 ## ------------------------------------ ##
5622 ## Report this to bug-autoconf@gnu.org. ##
5623 ## ------------------------------------ ##
5626 sed "s/^/$as_me: WARNING: /" >&2
5629 echo "$as_me:$LINENO: checking for $ac_header" >&5
5630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 eval "$as_ac_Header=$ac_header_preproc"
5636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5641 cat >>confdefs.h <<_ACEOF
5642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5649 echo "$as_me:$LINENO: checking for term.h" >&5
5650 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5651 if test "${ac_cv_header_term_h+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 cat >conftest.$ac_ext <<_ACEOF
5655 #line $LINENO "configure"
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5668 rm -f conftest.$ac_objext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670 (eval $ac_compile) 2>&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try='test -s conftest.$ac_objext'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
5680 ac_cv_header_term_h=yes
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5685 ac_cv_header_term_h=no
5687 rm -f conftest.$ac_objext conftest.$ac_ext
5689 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5690 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5691 if test $ac_cv_header_term_h = yes; then
5692 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5693 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5694 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 ac_check_lib_save_LIBS=$LIBS
5698 LIBS="-lcurses $LIBS"
5699 cat >conftest.$ac_ext <<_ACEOF
5700 #line $LINENO "configure"
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5707 /* Override any gcc2 internal prototype to avoid an error. */
5711 /* We use char because int might match the return type of a gcc2
5712 builtin and then its argument prototype would still apply. */
5722 rm -f conftest.$ac_objext conftest$ac_exeext
5723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5724 (eval $ac_link) 2>&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } &&
5728 { ac_try='test -s conftest$ac_exeext'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5734 ac_cv_lib_curses_tgetent=yes
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5739 ac_cv_lib_curses_tgetent=no
5741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5742 LIBS=$ac_check_lib_save_LIBS
5744 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5745 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5746 if test $ac_cv_lib_curses_tgetent = yes; then
5747 CONS_LIBS="-lcurses"
5753 cat >>confdefs.h <<\_ACEOF
5754 #define HAVE_CONIO 1
5762 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5773 # ---------------------------------------------------
5774 # Check for readline support/directory (default off)
5775 # ---------------------------------------------------
5776 # this allows you to turn it completely off
5777 # Check whether --enable-readline or --disable-readline was given.
5778 if test "${enable_readline+set}" = set; then
5779 enableval="$enable_readline"
5780 if test x$enableval = xno; then
5787 if test x$support_readline = xyes; then
5789 # Check whether --with-readline or --without-readline was given.
5790 if test "${with_readline+set}" = set; then
5791 withval="$with_readline"
5793 case "$with_readline" in
5796 if test "$with_readline" != "yes"; then
5797 CONS_INC="-I${with_readline}"
5798 CONS_LDFLAGS="-L$with_readline"
5800 with_readline="/usr/include/readline"
5802 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5804 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5805 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5812 # Is the header compilable?
5813 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5814 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5815 cat >conftest.$ac_ext <<_ACEOF
5816 #line $LINENO "configure"
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 $ac_includes_default
5823 #include <${with_readline}/readline.h>
5825 rm -f conftest.$ac_objext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827 (eval $ac_compile) 2>&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } &&
5831 { ac_try='test -s conftest.$ac_objext'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; }; then
5837 ac_header_compiler=yes
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5842 ac_header_compiler=no
5844 rm -f conftest.$ac_objext conftest.$ac_ext
5845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5846 echo "${ECHO_T}$ac_header_compiler" >&6
5848 # Is the header present?
5849 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5850 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5851 cat >conftest.$ac_ext <<_ACEOF
5852 #line $LINENO "configure"
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5858 #include <${with_readline}/readline.h>
5860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5863 grep -v '^ *+' conftest.er1 >conftest.err
5865 cat conftest.err >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } >/dev/null; then
5868 if test -s conftest.err; then
5869 ac_cpp_err=$ac_c_preproc_warn_flag
5876 if test -z "$ac_cpp_err"; then
5877 ac_header_preproc=yes
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5882 ac_header_preproc=no
5884 rm -f conftest.err conftest.$ac_ext
5885 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5886 echo "${ECHO_T}$ac_header_preproc" >&6
5888 # So? What about this header?
5889 case $ac_header_compiler:$ac_header_preproc in
5891 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5892 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5893 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5894 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5897 ## ------------------------------------ ##
5898 ## Report this to bug-autoconf@gnu.org. ##
5899 ## ------------------------------------ ##
5902 sed "s/^/$as_me: WARNING: /" >&2
5905 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5906 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5907 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5908 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5909 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5910 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5913 ## ------------------------------------ ##
5914 ## Report this to bug-autoconf@gnu.org. ##
5915 ## ------------------------------------ ##
5918 sed "s/^/$as_me: WARNING: /" >&2
5921 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5922 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 eval "$as_ac_Header=$ac_header_preproc"
5928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5933 cat >>confdefs.h <<\_ACEOF
5934 #define HAVE_READLINE 1
5937 CONS_LIBS="-lreadline -ltermcap"
5942 echo "readline.h not found. readline turned off ..."
5954 # check for standard readline library
5955 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5956 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5957 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5958 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5962 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5964 # Is the header compilable?
5965 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5966 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5967 cat >conftest.$ac_ext <<_ACEOF
5968 #line $LINENO "configure"
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 $ac_includes_default
5975 #include </usr/include/readline/readline.h>
5977 rm -f conftest.$ac_objext
5978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5979 (eval $ac_compile) 2>&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -s conftest.$ac_objext'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; }; then
5989 ac_header_compiler=yes
5991 echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5994 ac_header_compiler=no
5996 rm -f conftest.$ac_objext conftest.$ac_ext
5997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5998 echo "${ECHO_T}$ac_header_compiler" >&6
6000 # Is the header present?
6001 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6002 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6003 cat >conftest.$ac_ext <<_ACEOF
6004 #line $LINENO "configure"
6007 cat confdefs.h >>conftest.$ac_ext
6008 cat >>conftest.$ac_ext <<_ACEOF
6009 /* end confdefs.h. */
6010 #include </usr/include/readline/readline.h>
6012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6015 grep -v '^ *+' conftest.er1 >conftest.err
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } >/dev/null; then
6020 if test -s conftest.err; then
6021 ac_cpp_err=$ac_c_preproc_warn_flag
6028 if test -z "$ac_cpp_err"; then
6029 ac_header_preproc=yes
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 ac_header_preproc=no
6036 rm -f conftest.err conftest.$ac_ext
6037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6038 echo "${ECHO_T}$ac_header_preproc" >&6
6040 # So? What about this header?
6041 case $ac_header_compiler:$ac_header_preproc in
6043 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6044 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6045 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6046 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6049 ## ------------------------------------ ##
6050 ## Report this to bug-autoconf@gnu.org. ##
6051 ## ------------------------------------ ##
6054 sed "s/^/$as_me: WARNING: /" >&2
6057 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6058 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6059 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6060 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6061 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6062 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6065 ## ------------------------------------ ##
6066 ## Report this to bug-autoconf@gnu.org. ##
6067 ## ------------------------------------ ##
6070 sed "s/^/$as_me: WARNING: /" >&2
6073 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6074 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6075 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6080 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6081 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6084 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6085 cat >>confdefs.h <<\_ACEOF
6086 #define HAVE_READLINE 1
6090 CONS_INC="-I/usr/include/readline"
6091 CONS_LIBS="-lreadline -ltermcap"
6095 # Did not find standard library, so try Bacula's default
6096 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6098 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6099 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6106 # Is the header compilable?
6107 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6108 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6109 cat >conftest.$ac_ext <<_ACEOF
6110 #line $LINENO "configure"
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6116 $ac_includes_default
6117 #include <${TOP_DIR}/depkgs/readline/readline.h>
6119 rm -f conftest.$ac_objext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121 (eval $ac_compile) 2>&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } &&
6125 { ac_try='test -s conftest.$ac_objext'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; }; then
6131 ac_header_compiler=yes
6133 echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6136 ac_header_compiler=no
6138 rm -f conftest.$ac_objext conftest.$ac_ext
6139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6140 echo "${ECHO_T}$ac_header_compiler" >&6
6142 # Is the header present?
6143 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6144 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6145 cat >conftest.$ac_ext <<_ACEOF
6146 #line $LINENO "configure"
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6152 #include <${TOP_DIR}/depkgs/readline/readline.h>
6154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6157 grep -v '^ *+' conftest.er1 >conftest.err
6159 cat conftest.err >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } >/dev/null; then
6162 if test -s conftest.err; then
6163 ac_cpp_err=$ac_c_preproc_warn_flag
6170 if test -z "$ac_cpp_err"; then
6171 ac_header_preproc=yes
6173 echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6176 ac_header_preproc=no
6178 rm -f conftest.err conftest.$ac_ext
6179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6180 echo "${ECHO_T}$ac_header_preproc" >&6
6182 # So? What about this header?
6183 case $ac_header_compiler:$ac_header_preproc in
6185 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6186 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6187 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6188 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6191 ## ------------------------------------ ##
6192 ## Report this to bug-autoconf@gnu.org. ##
6193 ## ------------------------------------ ##
6196 sed "s/^/$as_me: WARNING: /" >&2
6199 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6200 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6201 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6202 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6203 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6204 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6207 ## ------------------------------------ ##
6208 ## Report this to bug-autoconf@gnu.org. ##
6209 ## ------------------------------------ ##
6212 sed "s/^/$as_me: WARNING: /" >&2
6215 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6216 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 eval "$as_ac_Header=$ac_header_preproc"
6222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6227 cat >>confdefs.h <<\_ACEOF
6228 #define HAVE_READLINE 1
6232 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6233 CONS_LIBS="-lreadline -lhistory -ltermcap"
6234 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6235 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6239 echo "readline.h not found. readline turned off ..."
6265 # Minimal stuff for readline Makefile configuration
6268 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6269 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6270 if test "${ac_cv_header_stat_broken+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 cat >conftest.$ac_ext <<_ACEOF
6274 #line $LINENO "configure"
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6280 #include <sys/types.h>
6281 #include <sys/stat.h>
6283 #if defined(S_ISBLK) && defined(S_IFDIR)
6284 # if S_ISBLK (S_IFDIR)
6289 #if defined(S_ISBLK) && defined(S_IFCHR)
6290 # if S_ISBLK (S_IFCHR)
6295 #if defined(S_ISLNK) && defined(S_IFREG)
6296 # if S_ISLNK (S_IFREG)
6301 #if defined(S_ISSOCK) && defined(S_IFREG)
6302 # if S_ISSOCK (S_IFREG)
6308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6309 $EGREP "You lose" >/dev/null 2>&1; then
6310 ac_cv_header_stat_broken=yes
6312 ac_cv_header_stat_broken=no
6317 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6318 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6319 if test $ac_cv_header_stat_broken = yes; then
6321 cat >>confdefs.h <<\_ACEOF
6322 #define STAT_MACROS_BROKEN 1
6333 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6334 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6335 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6336 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 cat >conftest.$ac_ext <<_ACEOF
6341 #line $LINENO "configure"
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 #include <sys/types.h>
6359 rm -f conftest.$ac_objext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6361 (eval $ac_compile) 2>&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
6365 { ac_try='test -s conftest.$ac_objext'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6371 eval "$as_ac_Header=yes"
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6376 eval "$as_ac_Header=no"
6378 rm -f conftest.$ac_objext conftest.$ac_ext
6380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6383 cat >>confdefs.h <<_ACEOF
6384 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6387 ac_header_dirent=$ac_hdr; break
6391 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6392 if test $ac_header_dirent = dirent.h; then
6393 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6394 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6395 if test "${ac_cv_search_opendir+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 ac_func_search_save_LIBS=$LIBS
6399 ac_cv_search_opendir=no
6400 cat >conftest.$ac_ext <<_ACEOF
6401 #line $LINENO "configure"
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6408 /* Override any gcc2 internal prototype to avoid an error. */
6412 /* We use char because int might match the return type of a gcc2
6413 builtin and then its argument prototype would still apply. */
6423 rm -f conftest.$ac_objext conftest$ac_exeext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6425 (eval $ac_link) 2>&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } &&
6429 { ac_try='test -s conftest$ac_exeext'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; }; then
6435 ac_cv_search_opendir="none required"
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6442 if test "$ac_cv_search_opendir" = no; then
6443 for ac_lib in dir; do
6444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6445 cat >conftest.$ac_ext <<_ACEOF
6446 #line $LINENO "configure"
6449 cat confdefs.h >>conftest.$ac_ext
6450 cat >>conftest.$ac_ext <<_ACEOF
6451 /* end confdefs.h. */
6453 /* Override any gcc2 internal prototype to avoid an error. */
6457 /* We use char because int might match the return type of a gcc2
6458 builtin and then its argument prototype would still apply. */
6468 rm -f conftest.$ac_objext conftest$ac_exeext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6470 (eval $ac_link) 2>&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } &&
6474 { ac_try='test -s conftest$ac_exeext'
6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; }; then
6480 ac_cv_search_opendir="-l$ac_lib"
6483 echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6490 LIBS=$ac_func_search_save_LIBS
6492 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6493 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6494 if test "$ac_cv_search_opendir" != no; then
6495 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6500 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6501 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6502 if test "${ac_cv_search_opendir+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 ac_func_search_save_LIBS=$LIBS
6506 ac_cv_search_opendir=no
6507 cat >conftest.$ac_ext <<_ACEOF
6508 #line $LINENO "configure"
6511 cat confdefs.h >>conftest.$ac_ext
6512 cat >>conftest.$ac_ext <<_ACEOF
6513 /* end confdefs.h. */
6515 /* Override any gcc2 internal prototype to avoid an error. */
6519 /* We use char because int might match the return type of a gcc2
6520 builtin and then its argument prototype would still apply. */
6530 rm -f conftest.$ac_objext conftest$ac_exeext
6531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6532 (eval $ac_link) 2>&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); } &&
6536 { ac_try='test -s conftest$ac_exeext'
6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 ac_cv_search_opendir="none required"
6544 echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6549 if test "$ac_cv_search_opendir" = no; then
6551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6552 cat >conftest.$ac_ext <<_ACEOF
6553 #line $LINENO "configure"
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6560 /* Override any gcc2 internal prototype to avoid an error. */
6564 /* We use char because int might match the return type of a gcc2
6565 builtin and then its argument prototype would still apply. */
6575 rm -f conftest.$ac_objext conftest$ac_exeext
6576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6577 (eval $ac_link) 2>&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } &&
6581 { ac_try='test -s conftest$ac_exeext'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
6587 ac_cv_search_opendir="-l$ac_lib"
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6597 LIBS=$ac_func_search_save_LIBS
6599 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6600 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6601 if test "$ac_cv_search_opendir" != no; then
6602 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6616 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6619 echo "$as_me:$LINENO: checking for $ac_func" >&5
6620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6621 if eval "test \"\${$as_ac_var+set}\" = set"; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 cat >conftest.$ac_ext <<_ACEOF
6625 #line $LINENO "configure"
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6631 /* System header to define __stub macros and hopefully few prototypes,
6632 which can conflict with char $ac_func (); below.
6633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6634 <limits.h> exists even on freestanding compilers. */
6636 # include <limits.h>
6638 # include <assert.h>
6640 /* Override any gcc2 internal prototype to avoid an error. */
6645 /* We use char because int might match the return type of a gcc2
6646 builtin and then its argument prototype would still apply. */
6648 /* The GNU C library defines this for functions which it implements
6649 to always fail with ENOSYS. Some functions are actually named
6650 something starting with __ and the normal name is an alias. */
6651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6654 char (*f) () = $ac_func;
6663 return f != $ac_func;
6668 rm -f conftest.$ac_objext conftest$ac_exeext
6669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6670 (eval $ac_link) 2>&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } &&
6674 { ac_try='test -s conftest$ac_exeext'
6675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); }; }; then
6680 eval "$as_ac_var=yes"
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6685 eval "$as_ac_var=no"
6687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6691 if test `eval echo '${'$as_ac_var'}'` = yes; then
6692 cat >>confdefs.h <<_ACEOF
6693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6701 for ac_func in nanosleep nl_langinfo
6703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6704 echo "$as_me:$LINENO: checking for $ac_func" >&5
6705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6706 if eval "test \"\${$as_ac_var+set}\" = set"; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 cat >conftest.$ac_ext <<_ACEOF
6710 #line $LINENO "configure"
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h. */
6716 /* System header to define __stub macros and hopefully few prototypes,
6717 which can conflict with char $ac_func (); below.
6718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6719 <limits.h> exists even on freestanding compilers. */
6721 # include <limits.h>
6723 # include <assert.h>
6725 /* Override any gcc2 internal prototype to avoid an error. */
6730 /* We use char because int might match the return type of a gcc2
6731 builtin and then its argument prototype would still apply. */
6733 /* The GNU C library defines this for functions which it implements
6734 to always fail with ENOSYS. Some functions are actually named
6735 something starting with __ and the normal name is an alias. */
6736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6739 char (*f) () = $ac_func;
6748 return f != $ac_func;
6753 rm -f conftest.$ac_objext conftest$ac_exeext
6754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6755 (eval $ac_link) 2>&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); } &&
6759 { ac_try='test -s conftest$ac_exeext'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; }; then
6765 eval "$as_ac_var=yes"
6767 echo "$as_me: failed program was:" >&5
6768 sed 's/^/| /' conftest.$ac_ext >&5
6770 eval "$as_ac_var=no"
6772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6776 if test `eval echo '${'$as_ac_var'}'` = yes; then
6777 cat >>confdefs.h <<_ACEOF
6778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6785 for ac_header in varargs.h
6787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6789 echo "$as_me:$LINENO: checking for $ac_header" >&5
6790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6797 # Is the header compilable?
6798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6800 cat >conftest.$ac_ext <<_ACEOF
6801 #line $LINENO "configure"
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 $ac_includes_default
6808 #include <$ac_header>
6810 rm -f conftest.$ac_objext
6811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6812 (eval $ac_compile) 2>&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } &&
6816 { ac_try='test -s conftest.$ac_objext'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; }; then
6822 ac_header_compiler=yes
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6827 ac_header_compiler=no
6829 rm -f conftest.$ac_objext conftest.$ac_ext
6830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6831 echo "${ECHO_T}$ac_header_compiler" >&6
6833 # Is the header present?
6834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6836 cat >conftest.$ac_ext <<_ACEOF
6837 #line $LINENO "configure"
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6843 #include <$ac_header>
6845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6848 grep -v '^ *+' conftest.er1 >conftest.err
6850 cat conftest.err >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } >/dev/null; then
6853 if test -s conftest.err; then
6854 ac_cpp_err=$ac_c_preproc_warn_flag
6861 if test -z "$ac_cpp_err"; then
6862 ac_header_preproc=yes
6864 echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6867 ac_header_preproc=no
6869 rm -f conftest.err conftest.$ac_ext
6870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6871 echo "${ECHO_T}$ac_header_preproc" >&6
6873 # So? What about this header?
6874 case $ac_header_compiler:$ac_header_preproc in
6876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6882 ## ------------------------------------ ##
6883 ## Report this to bug-autoconf@gnu.org. ##
6884 ## ------------------------------------ ##
6887 sed "s/^/$as_me: WARNING: /" >&2
6890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6898 ## ------------------------------------ ##
6899 ## Report this to bug-autoconf@gnu.org. ##
6900 ## ------------------------------------ ##
6903 sed "s/^/$as_me: WARNING: /" >&2
6906 echo "$as_me:$LINENO: checking for $ac_header" >&5
6907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 eval "$as_ac_Header=$ac_header_preproc"
6913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6918 cat >>confdefs.h <<_ACEOF
6919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6927 # End of readline/conio stuff
6928 # -----------------------------------------------------------------------
6930 # -----------------------------------------------------------------------
6931 # Check for Python support
6933 echo "$as_me:$LINENO: checking for Python support" >&5
6934 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
6936 # Check whether --with-python or --without-python was given.
6937 if test "${with_python+set}" = set; then
6938 withval="$with_python"
6942 if test "$withval" != "no"; then
6943 if test "$withval" = "yes"; then
6944 if test -f /usr/include/python2.2/Python.h; then
6945 PYTHON_INCDIR=-I/usr/include/python2.2
6946 PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
6947 elif test -f /usr/include/python2.3/Python.h; then
6948 PYTHON_INCDIR=-I/usr/include/python2.3
6949 PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
6950 elif test -f $prefix/include/Python.h; then
6951 PYTHON_INCDIR=-I$prefix/include
6952 PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
6954 echo "$as_me:$LINENO: result: no" >&5
6955 echo "${ECHO_T}no" >&6
6956 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
6957 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
6958 { (exit 1); exit 1; }; }
6961 if test -f $withval/Python.h; then
6962 PYTHON_INCDIR=-I$withval
6963 PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
6964 elif test -f $withval/include/Python.h; then
6965 PYTHON_INCDIR=-I$withval/include
6966 PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
6968 echo "$as_me:$LINENO: result: no" >&5
6969 echo "${ECHO_T}no" >&6
6970 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
6971 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
6972 { (exit 1); exit 1; }; }
6975 cat >>confdefs.h <<\_ACEOF
6976 #define HAVE_PYTHON 1
6979 echo "$as_me:$LINENO: result: yes" >&5
6980 echo "${ECHO_T}yes" >&6
6984 echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6
6990 echo "$as_me:$LINENO: result: no" >&5
6991 echo "${ECHO_T}no" >&6
6998 # -------------------------------------------
6999 # check for cdrecord writer location
7000 # get scsibus,target,lun
7001 # -------------------------------------------
7003 if test ! x$CDRECORD = x ; then
7004 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
7005 if test x${CDSTL} = x ; then
7006 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
7008 if test x${CDSTL} = x ; then
7015 # ---------------------------------------------------
7016 # Check for GMP support/directory
7017 # ---------------------------------------------------
7021 # [ --with-gmp[=DIR] Specify gmp library directory],
7023 # case "$with_gmp" in
7026 # if test "$with_gmp" != "yes"; then
7027 # GMP_INC="-I$with_gmp"
7029 # GMP_LDFLAGS="-L$with_gmp"
7031 # with_gmp="/usr/include"
7033 # AC_CHECK_HEADER($with_gmp/gmp.h,
7034 # [ AC_MSG_RESULT(yes)
7035 # AC_DEFINE(HAVE_GMP)
7039 # [ AC_MSG_ERROR([*** gmp library missing])
7045 # # check for standard gmp library
7046 # AC_CHECK_HEADER(/usr/include/gmp.h,
7047 # [ AC_MSG_RESULT(yes)
7048 # AC_DEFINE(HAVE_GMP)
7053 # # Did not find standard library, so use our own
7054 # AC_MSG_RESULT(yes)
7055 # AC_DEFINE(HAVE_GMP)
7058 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
7060 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
7061 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
7067 #AC_SUBST(GMP_LDFLAGS)
7071 # -----------------------------------------------------------------------
7074 # ---------------------------------------------------
7075 # Check for CWEB support/directory
7076 # ---------------------------------------------------
7081 # [ --with-cweb[=DIR] Specify cweb library directory],
7083 # case "$with_cweb" in
7086 # if test "$with_cweb" != "yes"; then
7087 # CWEB_INC="-I$with_cweb"
7088 # CWEB_LIBS="-lcweb"
7089 # CWEB_LDFLAGS="-L$with_cweb"
7091 # with_cweb="/usr/include"
7093 # AC_CHECK_HEADER($with_cweb/cweb.h,
7094 # [ AC_MSG_RESULT(yes)
7095 # AC_DEFINE(HAVE_CWEB)
7096 # CWEB_LIBS="-lcweb"
7099 # [ AC_MSG_ERROR([*** cweb library missing])
7105 # # check for standard cweb library
7106 # AC_CHECK_HEADER(/usr/include/cweb.h,
7107 # [ AC_MSG_RESULT(yes)
7108 # AC_DEFINE(HAVE_CWEB)
7111 # CWEB_LIBS="-lcweb"
7113 # # Did not find starndard library, so use our own
7114 # AC_MSG_RESULT(yes)
7115 # AC_DEFINE(HAVE_CWEB)
7118 # CWEB=${TOP_DIR}/depkgs/cweb
7119 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
7120 # CWEB_LIBS="-lcweb"
7121 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
7122 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
7128 #AC_SUBST(CWEB_LIBS)
7129 #AC_SUBST(CWEB_LDFLAGS)
7133 # -----------------------------------------------------------------------
7136 # Find where sockets are (especially for Solaris)
7137 # Do this before the TCP Wrappers test since tcp wrappers
7138 # uses the socket library and some linkers are stupid.
7140 echo "$as_me:$LINENO: checking for socket" >&5
7141 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7142 if test "${ac_cv_func_socket+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 cat >conftest.$ac_ext <<_ACEOF
7146 #line $LINENO "configure"
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h. */
7152 /* System header to define __stub macros and hopefully few prototypes,
7153 which can conflict with char socket (); below.
7154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7155 <limits.h> exists even on freestanding compilers. */
7157 # include <limits.h>
7159 # include <assert.h>
7161 /* Override any gcc2 internal prototype to avoid an error. */
7166 /* We use char because int might match the return type of a gcc2
7167 builtin and then its argument prototype would still apply. */
7169 /* The GNU C library defines this for functions which it implements
7170 to always fail with ENOSYS. Some functions are actually named
7171 something starting with __ and the normal name is an alias. */
7172 #if defined (__stub_socket) || defined (__stub___socket)
7175 char (*f) () = socket;
7189 rm -f conftest.$ac_objext conftest$ac_exeext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7191 (eval $ac_link) 2>&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } &&
7195 { ac_try='test -s conftest$ac_exeext'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; }; then
7201 ac_cv_func_socket=yes
7203 echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7206 ac_cv_func_socket=no
7208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7210 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7211 echo "${ECHO_T}$ac_cv_func_socket" >&6
7212 if test $ac_cv_func_socket = yes; then
7213 echo "$as_me:$LINENO: result: using libc's socket" >&5
7214 echo "${ECHO_T}using libc's socket" >&6
7217 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7218 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7219 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 ac_check_lib_save_LIBS=$LIBS
7224 cat >conftest.$ac_ext <<_ACEOF
7225 #line $LINENO "configure"
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7232 /* Override any gcc2 internal prototype to avoid an error. */
7236 /* We use char because int might match the return type of a gcc2
7237 builtin and then its argument prototype would still apply. */
7247 rm -f conftest.$ac_objext conftest$ac_exeext
7248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7249 (eval $ac_link) 2>&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); } &&
7253 { ac_try='test -s conftest$ac_exeext'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; }; then
7259 ac_cv_lib_xnet_socket=yes
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7264 ac_cv_lib_xnet_socket=no
7266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7267 LIBS=$ac_check_lib_save_LIBS
7269 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7270 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7271 if test $ac_cv_lib_xnet_socket = yes; then
7272 cat >>confdefs.h <<_ACEOF
7273 #define HAVE_LIBXNET 1
7281 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7282 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7283 if test "${ac_cv_lib_socket_socket+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 ac_check_lib_save_LIBS=$LIBS
7287 LIBS="-lsocket $LIBS"
7288 cat >conftest.$ac_ext <<_ACEOF
7289 #line $LINENO "configure"
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h. */
7296 /* Override any gcc2 internal prototype to avoid an error. */
7300 /* We use char because int might match the return type of a gcc2
7301 builtin and then its argument prototype would still apply. */
7311 rm -f conftest.$ac_objext conftest$ac_exeext
7312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7313 (eval $ac_link) 2>&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } &&
7317 { ac_try='test -s conftest$ac_exeext'
7318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); }; }; then
7323 ac_cv_lib_socket_socket=yes
7325 echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7328 ac_cv_lib_socket_socket=no
7330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7331 LIBS=$ac_check_lib_save_LIBS
7333 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7334 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7335 if test $ac_cv_lib_socket_socket = yes; then
7336 cat >>confdefs.h <<_ACEOF
7337 #define HAVE_LIBSOCKET 1
7340 LIBS="-lsocket $LIBS"
7345 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7346 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7347 if test "${ac_cv_lib_inet_socket+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 ac_check_lib_save_LIBS=$LIBS
7352 cat >conftest.$ac_ext <<_ACEOF
7353 #line $LINENO "configure"
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7360 /* Override any gcc2 internal prototype to avoid an error. */
7364 /* We use char because int might match the return type of a gcc2
7365 builtin and then its argument prototype would still apply. */
7375 rm -f conftest.$ac_objext conftest$ac_exeext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7377 (eval $ac_link) 2>&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } &&
7381 { ac_try='test -s conftest$ac_exeext'
7382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; }; then
7387 ac_cv_lib_inet_socket=yes
7389 echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.$ac_ext >&5
7392 ac_cv_lib_inet_socket=no
7394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7395 LIBS=$ac_check_lib_save_LIBS
7397 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7398 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7399 if test $ac_cv_lib_inet_socket = yes; then
7400 cat >>confdefs.h <<_ACEOF
7401 #define HAVE_LIBINET 1
7412 # -----------------------------------------------------------
7413 # Check whether user wants TCP wrappers support (default off)
7414 # -----------------------------------------------------------
7417 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7418 if test "${with_tcp_wrappers+set}" = set; then
7419 withval="$with_tcp_wrappers"
7421 if test "x$withval" != "xno" ; then
7423 LIBS="$saved_LIBS -lwrap"
7424 echo "$as_me:$LINENO: checking for libwrap" >&5
7425 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7426 cat >conftest.$ac_ext <<_ACEOF
7427 #line $LINENO "configure"
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h. */
7434 int deny_severity = 0;
7435 int allow_severity = 0;
7436 struct request_info *req;
7445 rm -f conftest.$ac_objext conftest$ac_exeext
7446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7447 (eval $ac_link) 2>&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } &&
7451 { ac_try='test -s conftest$ac_exeext'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; }; then
7458 echo "$as_me:$LINENO: result: yes" >&5
7459 echo "${ECHO_T}yes" >&6
7460 cat >>confdefs.h <<\_ACEOF
7461 #define HAVE_LIBWRAP 1
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7471 LIBS="$saved_LIBS -lwrap -lnsl"
7472 cat >conftest.$ac_ext <<_ACEOF
7473 #line $LINENO "configure"
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h. */
7480 int deny_severity = 0;
7481 int allow_severity = 0;
7482 struct request_info *req;
7491 rm -f conftest.$ac_objext conftest$ac_exeext
7492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7493 (eval $ac_link) 2>&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); } &&
7497 { ac_try='test -s conftest$ac_exeext'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; }; then
7504 echo "$as_me:$LINENO: result: yes" >&5
7505 echo "${ECHO_T}yes" >&6
7506 cat >>confdefs.h <<\_ACEOF
7507 #define HAVE_LIBWRAP 1
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7516 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7517 echo "$as_me: error: *** libwrap missing" >&2;}
7518 { (exit 1); exit 1; }; }
7521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7530 # ------------------------------------------
7531 # Where to place working dir
7532 # ------------------------------------------
7533 working_dir=`eval echo ${prefix}/var/bacula/working`
7535 # Check whether --with-working-dir or --without-working-dir was given.
7536 if test "${with_working_dir+set}" = set; then
7537 withval="$with_working_dir"
7539 if test "x$withval" != "xno" ; then
7540 working_dir=$withval
7549 # ------------------------------------------
7550 # Where to place scriptdir (script files)
7551 # ------------------------------------------
7552 scriptdir=`eval echo ${sysconfdir}`
7554 # Check whether --with-scriptdir or --without-scriptdir was given.
7555 if test "${with_scriptdir+set}" = set; then
7556 withval="$with_scriptdir"
7558 if test "x$withval" != "xno" ; then
7568 # ------------------------------------------
7569 # Where to send dump email
7570 # ------------------------------------------
7571 dump_email=root@localhost
7573 # Check whether --with-dump-email or --without-dump-email was given.
7574 if test "${with_dump_email+set}" = set; then
7575 withval="$with_dump_email"
7577 if test "x$withval" != "xno" ; then
7586 # ------------------------------------------
7587 # Where to send job email
7588 # ------------------------------------------
7589 job_email=root@localhost
7591 # Check whether --with-job-email or --without-job-email was given.
7592 if test "${with_job_email+set}" = set; then
7593 withval="$with_job_email"
7595 if test "x$withval" != "xno" ; then
7604 # ------------------------------------------
7605 # Where to find smtp host
7606 # ------------------------------------------
7609 # Check whether --with-smtp_host or --without-smtp_host was given.
7610 if test "${with_smtp_host+set}" = set; then
7611 withval="$with_smtp_host"
7613 if test "x$withval" != "xno" ; then
7623 # ------------------------------------
7624 # Where to place pid files
7625 # ------------------------------------
7628 # Check whether --with-pid-dir or --without-pid-dir was given.
7629 if test "${with_pid_dir+set}" = set; then
7630 withval="$with_pid_dir"
7632 if test "x$withval" != "xno" ; then
7639 cat >>confdefs.h <<_ACEOF
7640 #define _PATH_BACULA_PIDDIR "$piddir"
7646 # ------------------------------------
7647 # Where to place subsys "lock file"
7648 # ------------------------------------
7649 subsysdir=/var/run/subsys
7651 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7652 if test "${with_subsys_dir+set}" = set; then
7653 withval="$with_subsys_dir"
7655 if test "x$withval" != "xno" ; then
7666 # ------------------------------------
7667 # Where to start assigning ports
7668 # ------------------------------------
7671 # Check whether --with-baseport or --without-baseport was given.
7672 if test "${with_baseport+set}" = set; then
7673 withval="$with_baseport"
7675 if test "x$withval" != "xno" ; then
7683 dir_port=`expr $baseport`
7684 fd_port=`expr $baseport + 1`
7685 sd_port=`expr $fd_port + 1`
7692 # ------------------------------------------
7693 # Generate passwords
7694 # ------------------------------------------
7697 # Check whether --with-dir-password or --without-dir-password was given.
7698 if test "${with_dir_password+set}" = set; then
7699 withval="$with_dir_password"
7701 if test "x$withval" != "xno" ; then
7702 dir_password=$withval
7708 if test "x$dir_password" = "x" ; then
7709 if test "x$OPENSSL" = "xnone" ; then
7710 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7711 key=`autoconf/randpass 33`
7713 key=`openssl rand -base64 33`
7720 # Check whether --with-fd-password or --without-fd-password was given.
7721 if test "${with_fd_password+set}" = set; then
7722 withval="$with_fd_password"
7724 if test "x$withval" != "xno" ; then
7725 fd_password=$withval
7731 if test "x$fd_password" = "x" ; then
7732 if test "x$OPENSSL" = "xnone" ; then
7733 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7734 key=`autoconf/randpass 37`
7736 key=`openssl rand -base64 33`
7743 # Check whether --with-sd-password or --without-sd-password was given.
7744 if test "${with_sd_password+set}" = set; then
7745 withval="$with_sd_password"
7747 if test "x$withval" != "xno" ; then
7748 sd_password=$withval
7754 if test "x$sd_password" = "x" ; then
7755 if test "x$OPENSSL" = "xnone" ; then
7756 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7757 key=`autoconf/randpass 41`
7759 key=`openssl rand -base64 33`
7766 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
7767 if test "${with_mon_dir_password+set}" = set; then
7768 withval="$with_mon_dir_password"
7770 if test "x$withval" != "xno" ; then
7771 mon_dir_password=$withval
7777 if test "x$mon_dir_password" = "x" ; then
7778 if test "x$OPENSSL" = "xnone" ; then
7779 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7780 key=`autoconf/randpass 33`
7782 key=`openssl rand -base64 33`
7784 mon_dir_password=$key
7789 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
7790 if test "${with_mon_fd_password+set}" = set; then
7791 withval="$with_mon_fd_password"
7793 if test "x$withval" != "xno" ; then
7794 mon_fd_password=$withval
7800 if test "x$mon_fd_password" = "x" ; then
7801 if test "x$OPENSSL" = "xnone" ; then
7802 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7803 key=`autoconf/randpass 37`
7805 key=`openssl rand -base64 33`
7807 mon_fd_password=$key
7812 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
7813 if test "${with_mon_sd_password+set}" = set; then
7814 withval="$with_mon_sd_password"
7816 if test "x$withval" != "xno" ; then
7817 mon_sd_password=$withval
7823 if test "x$mon_sd_password" = "x" ; then
7824 if test "x$OPENSSL" = "xnone" ; then
7825 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7826 key=`autoconf/randpass 41`
7828 key=`openssl rand -base64 33`
7830 mon_sd_password=$key
7840 # -------------------------------------------------------------------------
7841 # Set variables for bimagemgr installation
7842 # -------------------------------------------------------------------------
7843 bimagemgr_cgidir=/var/www/cgi-bin
7845 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
7846 if test "${with_bimagemgr_cgidir+set}" = set; then
7847 withval="$with_bimagemgr_cgidir"
7849 if test "x$withval" != "xno" ; then
7850 bimagemgr_cgidir=$withval
7856 bimagemgr_docdir=/var/www/html
7858 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
7859 if test "${with_bimagemgr_docdir+set}" = set; then
7860 withval="$with_bimagemgr_docdir"
7862 if test "x$withval" != "xno" ; then
7863 bimagemgr_docdir=$withval
7869 bimagemgr_binowner=root
7871 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
7872 if test "${with_bimagemgr_binowner+set}" = set; then
7873 withval="$with_bimagemgr_binowner"
7875 if test "x$withval" != "xno" ; then
7876 bimagemgr_binowner=$withval
7882 bimagemgr_bingroup=root
7884 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
7885 if test "${with_bimagemgr_bingroup+set}" = set; then
7886 withval="$with_bimagemgr_bingroup"
7888 if test "x$withval" != "xno" ; then
7889 bimagemgr_bingroup=$withval
7895 bimagemgr_dataowner=apache
7897 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
7898 if test "${with_bimagemgr_dataowner+set}" = set; then
7899 withval="$with_bimagemgr_dataowner"
7901 if test "x$withval" != "xno" ; then
7902 bimagemgr_dataowner=$withval
7908 bimagemgr_datagroup=apache
7910 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
7911 if test "${with_bimagemgr_datagroup+set}" = set; then
7912 withval="$with_bimagemgr_datagroup"
7914 if test "x$withval" != "xno" ; then
7915 bimagemgr_datagroup=$withval
7929 # Handle users and groups for each daemon
7933 # Check whether --with-dir_user or --without-dir_user was given.
7934 if test "${with_dir_user+set}" = set; then
7935 withval="$with_dir_user"
7937 if test "x$withval" != "x" ; then
7946 # Check whether --with-dir_group or --without-dir_group was given.
7947 if test "${with_dir_group+set}" = set; then
7948 withval="$with_dir_group"
7950 if test "x$withval" != "x" ; then
7959 # Check whether --with-sd_user or --without-sd_user was given.
7960 if test "${with_sd_user+set}" = set; then
7961 withval="$with_sd_user"
7963 if test "x$withval" != "x" ; then
7972 # Check whether --with-sd_group or --without-sd_group was given.
7973 if test "${with_sd_group+set}" = set; then
7974 withval="$with_sd_group"
7976 if test "x$withval" != "x" ; then
7985 # Check whether --with-fd_user or --without-fd_user was given.
7986 if test "${with_fd_user+set}" = set; then
7987 withval="$with_fd_user"
7989 if test "x$withval" != "x" ; then
7998 # Check whether --with-fd_group or --without-fd_group was given.
7999 if test "${with_fd_group+set}" = set; then
8000 withval="$with_fd_group"
8002 if test "x$withval" != "x" ; then
8020 # allow setting default executable permissions
8024 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8025 if test "${with_sbin_perm+set}" = set; then
8026 withval="$with_sbin_perm"
8028 if test "x$withval" != "x" ; then
8037 # ------------------------------------------------
8038 # Bacula check for various SQL database engines
8039 # ------------------------------------------------
8042 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8043 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8045 # Check whether --with-postgresql or --without-postgresql was given.
8046 if test "${with_postgresql+set}" = set; then
8047 withval="$with_postgresql"
8049 if test "$withval" != "no"; then
8050 if test "$db_found" = "yes"; then
8051 echo "$as_me:$LINENO: result: error" >&5
8052 echo "${ECHO_T}error" >&6
8053 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8054 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8055 { (exit 1); exit 1; }; };
8057 if test "$withval" = "yes"; then
8058 if test -f /usr/local/include/libpq-fe.h; then
8059 POSTGRESQL_INCDIR=/usr/local/include
8060 POSTGRESQL_LIBDIR=/usr/local/lib
8061 POSTGRESQL_BINDIR=/usr/local/bin
8062 elif test -f /usr/include/libpq-fe.h; then
8063 POSTGRESQL_INCDIR=/usr/include
8064 POSTGRESQL_LIBDIR=/usr/lib
8065 POSTGRESQL_BINDIR=/usr/bin
8066 elif test -f /usr/include/pgsql/libpq-fe.h; then
8067 POSTGRESQL_INCDIR=/usr/include/pgsql
8068 POSTGRESQL_LIBDIR=/usr/lib/pgsql
8069 POSTGRESQL_BINDIR=/usr/bin
8070 elif test -f /usr/include/postgresql/libpq-fe.h; then
8071 POSTGRESQL_INCDIR=/usr/include/postgresql
8072 POSTGRESQL_LIBDIR=/usr/lib/postgresql
8073 POSTGRESQL_BINDIR=/usr/bin
8075 echo "$as_me:$LINENO: result: no" >&5
8076 echo "${ECHO_T}no" >&6
8077 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8078 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8079 { (exit 1); exit 1; }; }
8081 elif test -f $withval/include/libpq-fe.h; then
8082 POSTGRESQL_INCDIR=$withval/include
8083 POSTGRESQL_LIBDIR=$withval/lib
8084 POSTGRESQL_BINDIR=$withval/bin
8085 elif test -f $withval/include/postgresql/libpq-fe.h; then
8086 POSTGRESQL_INCDIR=$withval/include/postgresql
8087 POSTGRESQL_LIBDIR=$withval/lib
8088 POSTGRESQL_BINDIR=$withval/bin
8090 echo "$as_me:$LINENO: result: no" >&5
8091 echo "${ECHO_T}no" >&6
8092 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8093 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8094 { (exit 1); exit 1; }; }
8096 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8097 echo "$as_me:$LINENO: checking for crypt" >&5
8098 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8099 if test "${ac_cv_func_crypt+set}" = set; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 cat >conftest.$ac_ext <<_ACEOF
8103 #line $LINENO "configure"
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h. */
8109 /* System header to define __stub macros and hopefully few prototypes,
8110 which can conflict with char crypt (); below.
8111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8112 <limits.h> exists even on freestanding compilers. */
8114 # include <limits.h>
8116 # include <assert.h>
8118 /* Override any gcc2 internal prototype to avoid an error. */
8123 /* We use char because int might match the return type of a gcc2
8124 builtin and then its argument prototype would still apply. */
8126 /* The GNU C library defines this for functions which it implements
8127 to always fail with ENOSYS. Some functions are actually named
8128 something starting with __ and the normal name is an alias. */
8129 #if defined (__stub_crypt) || defined (__stub___crypt)
8132 char (*f) () = crypt;
8146 rm -f conftest.$ac_objext conftest$ac_exeext
8147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8148 (eval $ac_link) 2>&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try='test -s conftest$ac_exeext'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 ac_cv_func_crypt=yes
8160 echo "$as_me: failed program was:" >&5
8161 sed 's/^/| /' conftest.$ac_ext >&5
8165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8167 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8168 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8169 if test $ac_cv_func_crypt = yes; then
8172 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8173 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8174 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 ac_check_lib_save_LIBS=$LIBS
8178 LIBS="-lcrypt $LIBS"
8179 cat >conftest.$ac_ext <<_ACEOF
8180 #line $LINENO "configure"
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8187 /* Override any gcc2 internal prototype to avoid an error. */
8191 /* We use char because int might match the return type of a gcc2
8192 builtin and then its argument prototype would still apply. */
8202 rm -f conftest.$ac_objext conftest$ac_exeext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8204 (eval $ac_link) 2>&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try='test -s conftest$ac_exeext'
8209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; }; then
8214 ac_cv_lib_crypt_crypt=yes
8216 echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8219 ac_cv_lib_crypt_crypt=no
8221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8222 LIBS=$ac_check_lib_save_LIBS
8224 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8225 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8226 if test $ac_cv_lib_crypt_crypt = yes; then
8227 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8232 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8233 SQL_LFLAGS=$POSTGRESQL_LFLAGS
8234 SQL_BINDIR=$POSTGRESQL_BINDIR
8235 cat >>confdefs.h <<\_ACEOF
8236 #define HAVE_POSTGRESQL 1
8239 echo "$as_me:$LINENO: result: yes" >&5
8240 echo "${ECHO_T}yes" >&6
8242 support_postgresql=yes
8246 echo "$as_me:$LINENO: result: no" >&5
8247 echo "${ECHO_T}no" >&6
8252 echo "$as_me:$LINENO: result: no" >&5
8253 echo "${ECHO_T}no" >&6
8264 echo "$as_me:$LINENO: checking for MySQL support" >&5
8265 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8267 # Check whether --with-mysql or --without-mysql was given.
8268 if test "${with_mysql+set}" = set; then
8269 withval="$with_mysql"
8271 if test "$withval" != "no"; then
8272 if test "$withval" = "yes"; then
8273 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8274 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8275 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8276 MYSQL_BINDIR=/usr/local/mysql/bin
8277 elif test -f /usr/include/mysql/mysql.h; then
8278 MYSQL_INCDIR=/usr/include/mysql
8279 MYSQL_LIBDIR=/usr/lib/mysql
8280 MYSQL_BINDIR=/usr/bin
8281 elif test -f /usr/include/mysql.h; then
8282 MYSQL_INCDIR=/usr/include
8283 MYSQL_LIBDIR=/usr/lib
8284 MYSQL_BINDIR=/usr/bin
8285 elif test -f /usr/local/include/mysql/mysql.h; then
8286 MYSQL_INCDIR=/usr/local/include/mysql
8287 MYSQL_LIBDIR=/usr/local/lib/mysql
8288 MYSQL_BINDIR=/usr/local/bin
8289 elif test -f /usr/local/include/mysql.h; then
8290 MYSQL_INCDIR=/usr/local/include
8291 MYSQL_LIBDIR=/usr/local/lib
8292 MYSQL_BINDIR=/usr/local/bin
8294 echo "$as_me:$LINENO: result: no" >&5
8295 echo "${ECHO_T}no" >&6
8296 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8297 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8298 { (exit 1); exit 1; }; }
8301 if test -f $withval/include/mysql/mysql.h; then
8302 MYSQL_INCDIR=$withval/include/mysql
8303 MYSQL_LIBDIR=$withval/lib/mysql
8304 MYSQL_BINDIR=$withval/bin
8305 elif test -f $withval/include/mysql.h; then
8306 MYSQL_INCDIR=$withval/include
8307 MYSQL_LIBDIR=$withval/lib
8308 MYSQL_BINDIR=$withval/bin
8310 echo "$as_me:$LINENO: result: no" >&5
8311 echo "${ECHO_T}no" >&6
8312 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8313 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8314 { (exit 1); exit 1; }; }
8317 SQL_INCLUDE=-I$MYSQL_INCDIR
8318 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8319 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8320 cat >>confdefs.h <<\_ACEOF
8321 #define HAVE_THREAD_SAFE_MYSQL 1
8325 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8327 SQL_BINDIR=$MYSQL_BINDIR
8329 cat >>confdefs.h <<\_ACEOF
8330 #define HAVE_MYSQL 1
8333 echo "$as_me:$LINENO: result: yes" >&5
8334 echo "${ECHO_T}yes" >&6
8341 echo "$as_me:$LINENO: result: no" >&5
8342 echo "${ECHO_T}no" >&6
8349 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8350 if test "${with_embedded_mysql+set}" = set; then
8351 withval="$with_embedded_mysql"
8353 if test "$withval" != "no"; then
8354 if test "$withval" = "yes"; then
8355 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8356 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8357 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8358 MYSQL_BINDIR=/usr/local/mysql/bin
8359 elif test -f /usr/include/mysql/mysql.h; then
8360 MYSQL_INCDIR=/usr/include/mysql
8361 MYSQL_LIBDIR=/usr/lib/mysql
8362 MYSQL_BINDIR=/usr/bin
8363 elif test -f /usr/include/mysql.h; then
8364 MYSQL_INCDIR=/usr/include
8365 MYSQL_LIBDIR=/usr/lib
8366 MYSQL_BINDIR=/usr/bin
8367 elif test -f /usr/local/include/mysql/mysql.h; then
8368 MYSQL_INCDIR=/usr/local/include/mysql
8369 MYSQL_LIBDIR=/usr/local/lib/mysql
8370 MYSQL_BINDIR=/usr/local/bin
8371 elif test -f /usr/local/include/mysql.h; then
8372 MYSQL_INCDIR=/usr/local/include
8373 MYSQL_LIBDIR=/usr/local/lib
8374 MYSQL_BINDIR=/usr/local/bin
8376 echo "$as_me:$LINENO: result: no" >&5
8377 echo "${ECHO_T}no" >&6
8378 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8379 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8380 { (exit 1); exit 1; }; }
8383 if test -f $withval/include/mysql/mysql.h; then
8384 MYSQL_INCDIR=$withval/include/mysql
8385 MYSQL_LIBDIR=$withval/lib/mysql
8386 MYSQL_BINDIR=$withval/bin
8387 elif test -f $withval/include/mysql.h; then
8388 MYSQL_INCDIR=$withval/include
8389 MYSQL_LIBDIR=$withval/lib
8390 MYSQL_BINDIR=$withval/bin
8392 echo "$as_me:$LINENO: result: no" >&5
8393 echo "${ECHO_T}no" >&6
8394 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8395 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8396 { (exit 1); exit 1; }; }
8399 SQL_INCLUDE=-I$MYSQL_INCDIR
8400 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8401 SQL_BINDIR=$MYSQL_BINDIR
8403 cat >>confdefs.h <<\_ACEOF
8404 #define HAVE_MYSQL 1
8407 cat >>confdefs.h <<\_ACEOF
8408 #define HAVE_EMBEDDED_MYSQL 1
8411 echo "$as_me:$LINENO: result: yes" >&5
8412 echo "${ECHO_T}yes" >&6
8419 echo "$as_me:$LINENO: result: no" >&5
8420 echo "${ECHO_T}no" >&6
8435 echo "$as_me:$LINENO: checking for SQLite support" >&5
8436 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
8438 # Check whether --with-sqlite or --without-sqlite was given.
8439 if test "${with_sqlite+set}" = set; then
8440 withval="$with_sqlite"
8442 if test "$withval" != "no"; then
8443 if test "$withval" = "yes"; then
8444 if test -f /usr/local/include/sqlite.h; then
8445 SQLITE_INCDIR=/usr/local/include
8446 SQLITE_LIBDIR=/usr/local/lib
8447 SQLITE_BINDIR=/usr/local/bin
8448 elif test -f /usr/include/sqlite.h; then
8449 SQLITE_INCDIR=/usr/include
8450 SQLITE_LIBDIR=/usr/lib
8451 SQLITE_BINDIR=/usr/bin
8452 elif test -f $prefix/include/sqlite.h; then
8453 SQLITE_INCDIR=$prefix/include
8454 SQLITE_LIBDIR=$prefix/lib
8455 SQLITE_BINDIR=$prefix/bin
8457 echo "$as_me:$LINENO: result: no" >&5
8458 echo "${ECHO_T}no" >&6
8459 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
8460 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
8461 { (exit 1); exit 1; }; }
8464 if test -f $withval/sqlite.h; then
8465 SQLITE_INCDIR=$withval
8466 SQLITE_LIBDIR=$withval
8467 SQLITE_BINDIR=$withval
8468 elif test -f $withval/include/sqlite.h; then
8469 SQLITE_INCDIR=$withval/include
8470 SQLITE_LIBDIR=$withval/lib
8471 SQLITE_BINDIR=$withval/bin
8473 echo "$as_me:$LINENO: result: no" >&5
8474 echo "${ECHO_T}no" >&6
8475 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8476 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8477 { (exit 1); exit 1; }; }
8480 SQL_INCLUDE=-I$SQLITE_INCDIR
8481 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8482 SQL_BINDIR=$SQLITE_BINDIR
8484 cat >>confdefs.h <<\_ACEOF
8485 #define HAVE_SQLITE 1
8488 echo "$as_me:$LINENO: result: yes" >&5
8489 echo "${ECHO_T}yes" >&6
8496 echo "$as_me:$LINENO: result: no" >&5
8497 echo "${ECHO_T}no" >&6
8502 echo "$as_me:$LINENO: result: no" >&5
8503 echo "${ECHO_T}no" >&6
8515 cat >>confdefs.h <<\_ACEOF
8516 #define PROTOTYPES 1
8520 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8521 if test -z "$CCOPTS"; then
8522 CCOPTS='-g -O2 -Wall'
8530 largefile_support="no"
8532 # Check whether --enable-largefile or --disable-largefile was given.
8533 if test "${enable_largefile+set}" = set; then
8534 enableval="$enable_largefile"
8537 if test "$enable_largefile" != no; then
8538 if test -n "$ac_tool_prefix"; then
8539 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8540 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8541 echo "$as_me:$LINENO: checking for $ac_word" >&5
8542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8543 if test "${ac_cv_prog_GETCONF+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8546 if test -n "$GETCONF"; then
8547 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553 test -z "$as_dir" && as_dir=.
8554 for ac_exec_ext in '' $ac_executable_extensions; do
8555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8556 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 GETCONF=$ac_cv_prog_GETCONF
8566 if test -n "$GETCONF"; then
8567 echo "$as_me:$LINENO: result: $GETCONF" >&5
8568 echo "${ECHO_T}$GETCONF" >&6
8570 echo "$as_me:$LINENO: result: no" >&5
8571 echo "${ECHO_T}no" >&6
8575 if test -z "$ac_cv_prog_GETCONF"; then
8576 ac_ct_GETCONF=$GETCONF
8577 # Extract the first word of "getconf", so it can be a program name with args.
8578 set dummy getconf; ac_word=$2
8579 echo "$as_me:$LINENO: checking for $ac_word" >&5
8580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8581 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 if test -n "$ac_ct_GETCONF"; then
8585 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 test -z "$as_dir" && as_dir=.
8592 for ac_exec_ext in '' $ac_executable_extensions; do
8593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8594 ac_cv_prog_ac_ct_GETCONF="getconf"
8595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8604 if test -n "$ac_ct_GETCONF"; then
8605 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8606 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8608 echo "$as_me:$LINENO: result: no" >&5
8609 echo "${ECHO_T}no" >&6
8612 GETCONF=$ac_ct_GETCONF
8614 GETCONF="$ac_cv_prog_GETCONF"
8617 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8618 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8619 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8623 ac_cv_sys_largefile_CFLAGS=no
8625 # IRIX 6.2 and later require cc -n32.
8626 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8627 if test "$GCC" != yes; then
8628 ac_cv_sys_largefile_CFLAGS=-n32
8631 CC="$CC $ac_cv_sys_largefile_CFLAGS"
8632 cat >conftest.$ac_ext <<_ACEOF
8633 #line $LINENO "configure"
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8648 rm -f conftest.$ac_objext conftest$ac_exeext
8649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8650 (eval $ac_link) 2>&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } &&
8654 { ac_try='test -s conftest$ac_exeext'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; }; then
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8665 ac_cv_sys_largefile_CFLAGS=no
8667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8672 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
8673 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
8674 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
8675 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
8676 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
8680 ac_cv_sys_largefile_LDFLAGS=no
8684 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
8685 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
8686 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
8687 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
8688 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8691 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
8692 ac_cv_sys_largefile_LIBS=no
8696 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
8697 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
8699 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8702 -D_FILE_OFFSET_BITS=*) ;;
8703 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
8704 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
8710 '') CPPFLAGS="$ac_flag" ;;
8711 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
8719 '') CFLAGS="$ac_flag" ;;
8720 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
8725 case "$ac_cv_sys_largefile_LDFLAGS" in
8729 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
8730 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
8733 case "$ac_cv_sys_largefile_LIBS" in
8737 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
8738 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
8741 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
8742 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
8743 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 ac_cv_sys_file_offset_bits=no
8747 ac_cv_sys_file_offset_bits=64
8748 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8750 -D_FILE_OFFSET_BITS)
8751 ac_cv_sys_file_offset_bits=1 ;;
8752 -D_FILE_OFFSET_BITS=*)
8753 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8758 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8759 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8760 if test "$ac_cv_sys_file_offset_bits" != no; then
8762 cat >>confdefs.h <<_ACEOF
8763 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8767 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
8768 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
8769 if test "${ac_cv_sys_largefile_source+set}" = set; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 ac_cv_sys_largefile_source=no
8773 ac_cv_sys_largefile_source=1
8774 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8776 -D_LARGEFILE_SOURCE)
8777 ac_cv_sys_largefile_source=1 ;;
8778 -D_LARGEFILE_SOURCE=*)
8779 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8784 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8785 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8786 if test "$ac_cv_sys_largefile_source" != no; then
8788 cat >>confdefs.h <<_ACEOF
8789 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8793 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8794 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8795 if test "${ac_cv_sys_large_files+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 ac_cv_sys_large_files=no
8799 ac_cv_sys_large_files=1
8800 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8803 ac_cv_sys_large_files=1 ;;
8805 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8810 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8811 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8812 if test "$ac_cv_sys_large_files" != no; then
8814 cat >>confdefs.h <<_ACEOF
8815 #define _LARGE_FILES $ac_cv_sys_large_files
8823 echo "$as_me:$LINENO: checking for X" >&5
8824 echo $ECHO_N "checking for X... $ECHO_C" >&6
8827 # Check whether --with-x or --without-x was given.
8828 if test "${with_x+set}" = set; then
8832 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8833 if test "x$with_x" = xno; then
8834 # The user explicitly disabled X.
8837 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8838 # Both variables are already set.
8841 if test "${ac_cv_have_x+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8844 # One or both of the vars are not set, and there is no cached value.
8845 ac_x_includes=no ac_x_libraries=no
8847 if mkdir conftest.dir; then
8849 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8850 cat >Imakefile <<'_ACEOF'
8852 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8854 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8855 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8856 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8857 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8858 for ac_extension in a so sl; do
8859 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8860 test -f $ac_im_libdir/libX11.$ac_extension; then
8861 ac_im_usrlibdir=$ac_im_libdir; break
8864 # Screen out bogus values from the imake configuration. They are
8865 # bogus both because they are the default anyway, and because
8866 # using them would break gcc on systems where it needs fixed includes.
8867 case $ac_im_incroot in
8869 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8871 case $ac_im_usrlibdir in
8873 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8880 # Standard set of common directories for X headers.
8881 # Check X11 before X11Rn because it is often a symlink to the current release.
8893 /usr/local/X11/include
8894 /usr/local/X11R6/include
8895 /usr/local/X11R5/include
8896 /usr/local/X11R4/include
8898 /usr/local/include/X11
8899 /usr/local/include/X11R6
8900 /usr/local/include/X11R5
8901 /usr/local/include/X11R4
8905 /usr/XFree86/include/X11
8909 /usr/unsupported/include
8911 /usr/local/x11r5/include
8912 /usr/lpp/Xamples/include
8914 /usr/openwin/include
8915 /usr/openwin/share/include'
8917 if test "$ac_x_includes" = no; then
8918 # Guess where to find include files, by looking for Intrinsic.h.
8919 # First, try using that file with no special directory specified.
8920 cat >conftest.$ac_ext <<_ACEOF
8921 #line $LINENO "configure"
8924 cat confdefs.h >>conftest.$ac_ext
8925 cat >>conftest.$ac_ext <<_ACEOF
8926 /* end confdefs.h. */
8927 #include <X11/Intrinsic.h>
8929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8932 grep -v '^ *+' conftest.er1 >conftest.err
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } >/dev/null; then
8937 if test -s conftest.err; then
8938 ac_cpp_err=$ac_c_preproc_warn_flag
8945 if test -z "$ac_cpp_err"; then
8946 # We can compile using X headers with no special include directory.
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8952 for ac_dir in $ac_x_header_dirs; do
8953 if test -r "$ac_dir/X11/Intrinsic.h"; then
8954 ac_x_includes=$ac_dir
8959 rm -f conftest.err conftest.$ac_ext
8960 fi # $ac_x_includes = no
8962 if test "$ac_x_libraries" = no; then
8963 # Check for the libraries.
8964 # See if we find them without any special options.
8965 # Don't add to $LIBS permanently.
8968 cat >conftest.$ac_ext <<_ACEOF
8969 #line $LINENO "configure"
8972 cat confdefs.h >>conftest.$ac_ext
8973 cat >>conftest.$ac_ext <<_ACEOF
8974 /* end confdefs.h. */
8975 #include <X11/Intrinsic.h>
8984 rm -f conftest.$ac_objext conftest$ac_exeext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8986 (eval $ac_link) 2>&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } &&
8990 { ac_try='test -s conftest$ac_exeext'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8997 # We can link X programs with no special library path.
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9004 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9006 # Don't even attempt the hair of trying to link an X program!
9007 for ac_extension in a so sl; do
9008 if test -r $ac_dir/libXt.$ac_extension; then
9009 ac_x_libraries=$ac_dir
9015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9016 fi # $ac_x_libraries = no
9018 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9019 # Didn't find X anywhere. Cache the known absence of X.
9020 ac_cv_have_x="have_x=no"
9022 # Record where we found X for the cache.
9023 ac_cv_have_x="have_x=yes \
9024 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9029 eval "$ac_cv_have_x"
9032 if test "$have_x" != yes; then
9033 echo "$as_me:$LINENO: result: $have_x" >&5
9034 echo "${ECHO_T}$have_x" >&6
9037 # If each of the values was on the command line, it overrides each guess.
9038 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9039 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9040 # Update the cache value to reflect the command line values.
9041 ac_cv_have_x="have_x=yes \
9042 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9043 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9044 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9047 if test "$no_x" = yes; then
9048 # Not all programs may use this symbol, but it does not hurt to define it.
9050 cat >>confdefs.h <<\_ACEOF
9051 #define X_DISPLAY_MISSING 1
9054 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9056 if test -n "$x_includes"; then
9057 X_CFLAGS="$X_CFLAGS -I$x_includes"
9060 # It would also be nice to do this for all -L options, not just this one.
9061 if test -n "$x_libraries"; then
9062 X_LIBS="$X_LIBS -L$x_libraries"
9063 # For Solaris; some versions of Sun CC require a space after -R and
9064 # others require no space. Words are not sufficient . . . .
9065 case `(uname -sr) 2>/dev/null` in
9067 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9068 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9069 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9070 cat >conftest.$ac_ext <<_ACEOF
9071 #line $LINENO "configure"
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h. */
9086 rm -f conftest.$ac_objext conftest$ac_exeext
9087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9088 (eval $ac_link) 2>&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } &&
9092 { ac_try='test -s conftest$ac_exeext'
9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; }; then
9100 echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9106 if test $ac_R_nospace = yes; then
9107 echo "$as_me:$LINENO: result: no" >&5
9108 echo "${ECHO_T}no" >&6
9109 X_LIBS="$X_LIBS -R$x_libraries"
9111 LIBS="$ac_xsave_LIBS -R $x_libraries"
9112 cat >conftest.$ac_ext <<_ACEOF
9113 #line $LINENO "configure"
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h. */
9128 rm -f conftest.$ac_objext conftest$ac_exeext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9130 (eval $ac_link) 2>&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } &&
9134 { ac_try='test -s conftest$ac_exeext'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; }; then
9142 echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.$ac_ext >&5
9147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9148 if test $ac_R_space = yes; then
9149 echo "$as_me:$LINENO: result: yes" >&5
9150 echo "${ECHO_T}yes" >&6
9151 X_LIBS="$X_LIBS -R $x_libraries"
9153 echo "$as_me:$LINENO: result: neither works" >&5
9154 echo "${ECHO_T}neither works" >&6
9161 # Check for system-dependent libraries X programs must link with.
9162 # Do this before checking for the system-independent R6 libraries
9163 # (-lICE), since we may need -lsocket or whatever for X linking.
9165 if test "$ISC" = yes; then
9166 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9168 # Martyn Johnson says this is needed for Ultrix, if the X
9169 # libraries were built with DECnet support. And Karl Berry says
9170 # the Alpha needs dnet_stub (dnet does not exist).
9171 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9172 cat >conftest.$ac_ext <<_ACEOF
9173 #line $LINENO "configure"
9176 cat confdefs.h >>conftest.$ac_ext
9177 cat >>conftest.$ac_ext <<_ACEOF
9178 /* end confdefs.h. */
9180 /* Override any gcc2 internal prototype to avoid an error. */
9184 /* We use char because int might match the return type of a gcc2
9185 builtin and then its argument prototype would still apply. */
9186 char XOpenDisplay ();
9195 rm -f conftest.$ac_objext conftest$ac_exeext
9196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9197 (eval $ac_link) 2>&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } &&
9201 { ac_try='test -s conftest$ac_exeext'
9202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; }; then
9209 echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9212 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9213 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9214 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 ac_check_lib_save_LIBS=$LIBS
9219 cat >conftest.$ac_ext <<_ACEOF
9220 #line $LINENO "configure"
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h. */
9227 /* Override any gcc2 internal prototype to avoid an error. */
9231 /* We use char because int might match the return type of a gcc2
9232 builtin and then its argument prototype would still apply. */
9242 rm -f conftest.$ac_objext conftest$ac_exeext
9243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9244 (eval $ac_link) 2>&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try='test -s conftest$ac_exeext'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; }; then
9254 ac_cv_lib_dnet_dnet_ntoa=yes
9256 echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9259 ac_cv_lib_dnet_dnet_ntoa=no
9261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9262 LIBS=$ac_check_lib_save_LIBS
9264 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9265 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9266 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9267 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9270 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9271 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9272 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9273 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 ac_check_lib_save_LIBS=$LIBS
9277 LIBS="-ldnet_stub $LIBS"
9278 cat >conftest.$ac_ext <<_ACEOF
9279 #line $LINENO "configure"
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9286 /* Override any gcc2 internal prototype to avoid an error. */
9290 /* We use char because int might match the return type of a gcc2
9291 builtin and then its argument prototype would still apply. */
9301 rm -f conftest.$ac_objext conftest$ac_exeext
9302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9303 (eval $ac_link) 2>&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } &&
9307 { ac_try='test -s conftest$ac_exeext'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; }; then
9313 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9315 echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9318 ac_cv_lib_dnet_stub_dnet_ntoa=no
9320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9321 LIBS=$ac_check_lib_save_LIBS
9323 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9324 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9325 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9326 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9332 LIBS="$ac_xsave_LIBS"
9334 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9335 # to get the SysV transport functions.
9336 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9338 # The nsl library prevents programs from opening the X display
9339 # on Irix 5.2, according to T.E. Dickey.
9340 # The functions gethostbyname, getservbyname, and inet_addr are
9341 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9342 echo "$as_me:$LINENO: checking for gethostbyname" >&5
9343 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9344 if test "${ac_cv_func_gethostbyname+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 cat >conftest.$ac_ext <<_ACEOF
9348 #line $LINENO "configure"
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9354 /* System header to define __stub macros and hopefully few prototypes,
9355 which can conflict with char gethostbyname (); below.
9356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9357 <limits.h> exists even on freestanding compilers. */
9359 # include <limits.h>
9361 # include <assert.h>
9363 /* Override any gcc2 internal prototype to avoid an error. */
9368 /* We use char because int might match the return type of a gcc2
9369 builtin and then its argument prototype would still apply. */
9370 char gethostbyname ();
9371 /* The GNU C library defines this for functions which it implements
9372 to always fail with ENOSYS. Some functions are actually named
9373 something starting with __ and the normal name is an alias. */
9374 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9377 char (*f) () = gethostbyname;
9386 return f != gethostbyname;
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393 (eval $ac_link) 2>&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } &&
9397 { ac_try='test -s conftest$ac_exeext'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 ac_cv_func_gethostbyname=yes
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9408 ac_cv_func_gethostbyname=no
9410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9412 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9413 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9415 if test $ac_cv_func_gethostbyname = no; then
9416 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9417 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9418 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 ac_check_lib_save_LIBS=$LIBS
9423 cat >conftest.$ac_ext <<_ACEOF
9424 #line $LINENO "configure"
9427 cat confdefs.h >>conftest.$ac_ext
9428 cat >>conftest.$ac_ext <<_ACEOF
9429 /* end confdefs.h. */
9431 /* Override any gcc2 internal prototype to avoid an error. */
9435 /* We use char because int might match the return type of a gcc2
9436 builtin and then its argument prototype would still apply. */
9437 char gethostbyname ();
9446 rm -f conftest.$ac_objext conftest$ac_exeext
9447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9448 (eval $ac_link) 2>&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } &&
9452 { ac_try='test -s conftest$ac_exeext'
9453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; }; then
9458 ac_cv_lib_nsl_gethostbyname=yes
9460 echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9463 ac_cv_lib_nsl_gethostbyname=no
9465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9466 LIBS=$ac_check_lib_save_LIBS
9468 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9469 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9470 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9471 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9474 if test $ac_cv_lib_nsl_gethostbyname = no; then
9475 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9476 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9477 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9480 ac_check_lib_save_LIBS=$LIBS
9482 cat >conftest.$ac_ext <<_ACEOF
9483 #line $LINENO "configure"
9486 cat confdefs.h >>conftest.$ac_ext
9487 cat >>conftest.$ac_ext <<_ACEOF
9488 /* end confdefs.h. */
9490 /* Override any gcc2 internal prototype to avoid an error. */
9494 /* We use char because int might match the return type of a gcc2
9495 builtin and then its argument prototype would still apply. */
9496 char gethostbyname ();
9505 rm -f conftest.$ac_objext conftest$ac_exeext
9506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9507 (eval $ac_link) 2>&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } &&
9511 { ac_try='test -s conftest$ac_exeext'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; }; then
9517 ac_cv_lib_bsd_gethostbyname=yes
9519 echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9522 ac_cv_lib_bsd_gethostbyname=no
9524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9525 LIBS=$ac_check_lib_save_LIBS
9527 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9528 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9529 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9530 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9536 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9537 # socket/setsockopt and other routines are undefined under SCO ODT
9538 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9539 # on later versions), says Simon Leinen: it contains gethostby*
9540 # variants that don't use the name server (or something). -lsocket
9541 # must be given before -lnsl if both are needed. We assume that
9542 # if connect needs -lnsl, so does gethostbyname.
9543 echo "$as_me:$LINENO: checking for connect" >&5
9544 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9545 if test "${ac_cv_func_connect+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 cat >conftest.$ac_ext <<_ACEOF
9549 #line $LINENO "configure"
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9555 /* System header to define __stub macros and hopefully few prototypes,
9556 which can conflict with char connect (); below.
9557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9558 <limits.h> exists even on freestanding compilers. */
9560 # include <limits.h>
9562 # include <assert.h>
9564 /* Override any gcc2 internal prototype to avoid an error. */
9569 /* We use char because int might match the return type of a gcc2
9570 builtin and then its argument prototype would still apply. */
9572 /* The GNU C library defines this for functions which it implements
9573 to always fail with ENOSYS. Some functions are actually named
9574 something starting with __ and the normal name is an alias. */
9575 #if defined (__stub_connect) || defined (__stub___connect)
9578 char (*f) () = connect;
9587 return f != connect;
9592 rm -f conftest.$ac_objext conftest$ac_exeext
9593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9594 (eval $ac_link) 2>&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -s conftest$ac_exeext'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; }; then
9604 ac_cv_func_connect=yes
9606 echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9609 ac_cv_func_connect=no
9611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9613 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9614 echo "${ECHO_T}$ac_cv_func_connect" >&6
9616 if test $ac_cv_func_connect = no; then
9617 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9618 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9619 if test "${ac_cv_lib_socket_connect+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 ac_check_lib_save_LIBS=$LIBS
9623 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9624 cat >conftest.$ac_ext <<_ACEOF
9625 #line $LINENO "configure"
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9632 /* Override any gcc2 internal prototype to avoid an error. */
9636 /* We use char because int might match the return type of a gcc2
9637 builtin and then its argument prototype would still apply. */
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9649 (eval $ac_link) 2>&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); } &&
9653 { ac_try='test -s conftest$ac_exeext'
9654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; }; then
9659 ac_cv_lib_socket_connect=yes
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9664 ac_cv_lib_socket_connect=no
9666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9667 LIBS=$ac_check_lib_save_LIBS
9669 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9670 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9671 if test $ac_cv_lib_socket_connect = yes; then
9672 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9677 # Guillermo Gomez says -lposix is necessary on A/UX.
9678 echo "$as_me:$LINENO: checking for remove" >&5
9679 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9680 if test "${ac_cv_func_remove+set}" = set; then
9681 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 cat >conftest.$ac_ext <<_ACEOF
9684 #line $LINENO "configure"
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h. */
9690 /* System header to define __stub macros and hopefully few prototypes,
9691 which can conflict with char remove (); below.
9692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9693 <limits.h> exists even on freestanding compilers. */
9695 # include <limits.h>
9697 # include <assert.h>
9699 /* Override any gcc2 internal prototype to avoid an error. */
9704 /* We use char because int might match the return type of a gcc2
9705 builtin and then its argument prototype would still apply. */
9707 /* The GNU C library defines this for functions which it implements
9708 to always fail with ENOSYS. Some functions are actually named
9709 something starting with __ and the normal name is an alias. */
9710 #if defined (__stub_remove) || defined (__stub___remove)
9713 char (*f) () = remove;
9727 rm -f conftest.$ac_objext conftest$ac_exeext
9728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9729 (eval $ac_link) 2>&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } &&
9733 { ac_try='test -s conftest$ac_exeext'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; }; then
9739 ac_cv_func_remove=yes
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9744 ac_cv_func_remove=no
9746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9748 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9749 echo "${ECHO_T}$ac_cv_func_remove" >&6
9751 if test $ac_cv_func_remove = no; then
9752 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9753 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9754 if test "${ac_cv_lib_posix_remove+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 ac_check_lib_save_LIBS=$LIBS
9758 LIBS="-lposix $LIBS"
9759 cat >conftest.$ac_ext <<_ACEOF
9760 #line $LINENO "configure"
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h. */
9767 /* Override any gcc2 internal prototype to avoid an error. */
9771 /* We use char because int might match the return type of a gcc2
9772 builtin and then its argument prototype would still apply. */
9782 rm -f conftest.$ac_objext conftest$ac_exeext
9783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9784 (eval $ac_link) 2>&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try='test -s conftest$ac_exeext'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9794 ac_cv_lib_posix_remove=yes
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9799 ac_cv_lib_posix_remove=no
9801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9802 LIBS=$ac_check_lib_save_LIBS
9804 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9805 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9806 if test $ac_cv_lib_posix_remove = yes; then
9807 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9812 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9813 echo "$as_me:$LINENO: checking for shmat" >&5
9814 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9815 if test "${ac_cv_func_shmat+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 cat >conftest.$ac_ext <<_ACEOF
9819 #line $LINENO "configure"
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9825 /* System header to define __stub macros and hopefully few prototypes,
9826 which can conflict with char shmat (); below.
9827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9828 <limits.h> exists even on freestanding compilers. */
9830 # include <limits.h>
9832 # include <assert.h>
9834 /* Override any gcc2 internal prototype to avoid an error. */
9839 /* We use char because int might match the return type of a gcc2
9840 builtin and then its argument prototype would still apply. */
9842 /* The GNU C library defines this for functions which it implements
9843 to always fail with ENOSYS. Some functions are actually named
9844 something starting with __ and the normal name is an alias. */
9845 #if defined (__stub_shmat) || defined (__stub___shmat)
9848 char (*f) () = shmat;
9862 rm -f conftest.$ac_objext conftest$ac_exeext
9863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9864 (eval $ac_link) 2>&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try='test -s conftest$ac_exeext'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; }; then
9874 ac_cv_func_shmat=yes
9876 echo "$as_me: failed program was:" >&5
9877 sed 's/^/| /' conftest.$ac_ext >&5
9881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9883 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9884 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9886 if test $ac_cv_func_shmat = no; then
9887 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9888 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9889 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 ac_check_lib_save_LIBS=$LIBS
9894 cat >conftest.$ac_ext <<_ACEOF
9895 #line $LINENO "configure"
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h. */
9902 /* Override any gcc2 internal prototype to avoid an error. */
9906 /* We use char because int might match the return type of a gcc2
9907 builtin and then its argument prototype would still apply. */
9917 rm -f conftest.$ac_objext conftest$ac_exeext
9918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9919 (eval $ac_link) 2>&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); } &&
9923 { ac_try='test -s conftest$ac_exeext'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; }; then
9929 ac_cv_lib_ipc_shmat=yes
9931 echo "$as_me: failed program was:" >&5
9932 sed 's/^/| /' conftest.$ac_ext >&5
9934 ac_cv_lib_ipc_shmat=no
9936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9937 LIBS=$ac_check_lib_save_LIBS
9939 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9940 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9941 if test $ac_cv_lib_ipc_shmat = yes; then
9942 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9948 # Check for libraries that X11R6 Xt/Xaw programs need.
9949 ac_save_LDFLAGS=$LDFLAGS
9950 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9951 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9952 # check for ICE first), but we must link in the order -lSM -lICE or
9953 # we get undefined symbols. So assume we have SM if we have ICE.
9954 # These have to be linked with before -lX11, unlike the other
9955 # libraries we check for below, so use a different variable.
9956 # John Interrante, Karl Berry
9957 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9958 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9959 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 ac_check_lib_save_LIBS=$LIBS
9963 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9964 cat >conftest.$ac_ext <<_ACEOF
9965 #line $LINENO "configure"
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9972 /* Override any gcc2 internal prototype to avoid an error. */
9976 /* We use char because int might match the return type of a gcc2
9977 builtin and then its argument prototype would still apply. */
9978 char IceConnectionNumber ();
9982 IceConnectionNumber ();
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989 (eval $ac_link) 2>&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } &&
9993 { ac_try='test -s conftest$ac_exeext'
9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; }; then
9999 ac_cv_lib_ICE_IceConnectionNumber=yes
10001 echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10004 ac_cv_lib_ICE_IceConnectionNumber=no
10006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10007 LIBS=$ac_check_lib_save_LIBS
10009 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10010 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10011 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10012 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10015 LDFLAGS=$ac_save_LDFLAGS
10077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10079 echo "$as_me:$LINENO: checking for $ac_header" >&5
10080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10087 # Is the header compilable?
10088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10090 cat >conftest.$ac_ext <<_ACEOF
10091 #line $LINENO "configure"
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10097 $ac_includes_default
10098 #include <$ac_header>
10100 rm -f conftest.$ac_objext
10101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10102 (eval $ac_compile) 2>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } &&
10106 { ac_try='test -s conftest.$ac_objext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 ac_header_compiler=yes
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10117 ac_header_compiler=no
10119 rm -f conftest.$ac_objext conftest.$ac_ext
10120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10121 echo "${ECHO_T}$ac_header_compiler" >&6
10123 # Is the header present?
10124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10126 cat >conftest.$ac_ext <<_ACEOF
10127 #line $LINENO "configure"
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10133 #include <$ac_header>
10135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10138 grep -v '^ *+' conftest.er1 >conftest.err
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } >/dev/null; then
10143 if test -s conftest.err; then
10144 ac_cpp_err=$ac_c_preproc_warn_flag
10151 if test -z "$ac_cpp_err"; then
10152 ac_header_preproc=yes
10154 echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10157 ac_header_preproc=no
10159 rm -f conftest.err conftest.$ac_ext
10160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10161 echo "${ECHO_T}$ac_header_preproc" >&6
10163 # So? What about this header?
10164 case $ac_header_compiler:$ac_header_preproc in
10166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10172 ## ------------------------------------ ##
10173 ## Report this to bug-autoconf@gnu.org. ##
10174 ## ------------------------------------ ##
10177 sed "s/^/$as_me: WARNING: /" >&2
10180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10188 ## ------------------------------------ ##
10189 ## Report this to bug-autoconf@gnu.org. ##
10190 ## ------------------------------------ ##
10193 sed "s/^/$as_me: WARNING: /" >&2
10196 echo "$as_me:$LINENO: checking for $ac_header" >&5
10197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10199 echo $ECHO_N "(cached) $ECHO_C" >&6
10201 eval "$as_ac_Header=$ac_header_preproc"
10203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10208 cat >>confdefs.h <<_ACEOF
10209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10216 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10217 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10218 if test "${ac_cv_header_stdc+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10221 cat >conftest.$ac_ext <<_ACEOF
10222 #line $LINENO "configure"
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h. */
10228 #include <stdlib.h>
10229 #include <stdarg.h>
10230 #include <string.h>
10241 rm -f conftest.$ac_objext
10242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10243 (eval $ac_compile) 2>&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } &&
10247 { ac_try='test -s conftest.$ac_objext'
10248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; }; then
10253 ac_cv_header_stdc=yes
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10258 ac_cv_header_stdc=no
10260 rm -f conftest.$ac_objext conftest.$ac_ext
10262 if test $ac_cv_header_stdc = yes; then
10263 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10264 cat >conftest.$ac_ext <<_ACEOF
10265 #line $LINENO "configure"
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10271 #include <string.h>
10274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10275 $EGREP "memchr" >/dev/null 2>&1; then
10278 ac_cv_header_stdc=no
10284 if test $ac_cv_header_stdc = yes; then
10285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10286 cat >conftest.$ac_ext <<_ACEOF
10287 #line $LINENO "configure"
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10293 #include <stdlib.h>
10296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10297 $EGREP "free" >/dev/null 2>&1; then
10300 ac_cv_header_stdc=no
10306 if test $ac_cv_header_stdc = yes; then
10307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10308 if test "$cross_compiling" = yes; then
10311 cat >conftest.$ac_ext <<_ACEOF
10312 #line $LINENO "configure"
10315 cat confdefs.h >>conftest.$ac_ext
10316 cat >>conftest.$ac_ext <<_ACEOF
10317 /* end confdefs.h. */
10319 #if ((' ' & 0x0FF) == 0x020)
10320 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10321 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10323 # define ISLOWER(c) \
10324 (('a' <= (c) && (c) <= 'i') \
10325 || ('j' <= (c) && (c) <= 'r') \
10326 || ('s' <= (c) && (c) <= 'z'))
10327 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10330 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10335 for (i = 0; i < 256; i++)
10336 if (XOR (islower (i), ISLOWER (i))
10337 || toupper (i) != TOUPPER (i))
10342 rm -f conftest$ac_exeext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344 (eval $ac_link) 2>&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10355 echo "$as_me: program exited with status $ac_status" >&5
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10359 ( exit $ac_status )
10360 ac_cv_header_stdc=no
10362 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10366 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10367 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10368 if test $ac_cv_header_stdc = yes; then
10370 cat >>confdefs.h <<\_ACEOF
10371 #define STDC_HEADERS 1
10376 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10377 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10378 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10379 echo $ECHO_N "(cached) $ECHO_C" >&6
10381 cat >conftest.$ac_ext <<_ACEOF
10382 #line $LINENO "configure"
10385 cat confdefs.h >>conftest.$ac_ext
10386 cat >>conftest.$ac_ext <<_ACEOF
10387 /* end confdefs.h. */
10388 #include <sys/types.h>
10392 return makedev(0, 0);
10397 rm -f conftest.$ac_objext conftest$ac_exeext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10399 (eval $ac_link) 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); } &&
10403 { ac_try='test -s conftest$ac_exeext'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10409 ac_cv_header_sys_types_h_makedev=yes
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10414 ac_cv_header_sys_types_h_makedev=no
10416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10419 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
10420 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
10422 if test $ac_cv_header_sys_types_h_makedev = no; then
10423 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10424 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10425 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10426 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10427 echo $ECHO_N "(cached) $ECHO_C" >&6
10429 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10430 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10432 # Is the header compilable?
10433 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
10434 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
10435 cat >conftest.$ac_ext <<_ACEOF
10436 #line $LINENO "configure"
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10442 $ac_includes_default
10443 #include <sys/mkdev.h>
10445 rm -f conftest.$ac_objext
10446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10447 (eval $ac_compile) 2>&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -s conftest.$ac_objext'
10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; }; then
10457 ac_header_compiler=yes
10459 echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.$ac_ext >&5
10462 ac_header_compiler=no
10464 rm -f conftest.$ac_objext conftest.$ac_ext
10465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10466 echo "${ECHO_T}$ac_header_compiler" >&6
10468 # Is the header present?
10469 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
10470 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
10471 cat >conftest.$ac_ext <<_ACEOF
10472 #line $LINENO "configure"
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10478 #include <sys/mkdev.h>
10480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10483 grep -v '^ *+' conftest.er1 >conftest.err
10485 cat conftest.err >&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } >/dev/null; then
10488 if test -s conftest.err; then
10489 ac_cpp_err=$ac_c_preproc_warn_flag
10496 if test -z "$ac_cpp_err"; then
10497 ac_header_preproc=yes
10499 echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10502 ac_header_preproc=no
10504 rm -f conftest.err conftest.$ac_ext
10505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10506 echo "${ECHO_T}$ac_header_preproc" >&6
10508 # So? What about this header?
10509 case $ac_header_compiler:$ac_header_preproc in
10511 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
10512 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10514 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10517 ## ------------------------------------ ##
10518 ## Report this to bug-autoconf@gnu.org. ##
10519 ## ------------------------------------ ##
10522 sed "s/^/$as_me: WARNING: /" >&2
10525 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
10526 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
10527 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
10528 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
10529 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10530 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10533 ## ------------------------------------ ##
10534 ## Report this to bug-autoconf@gnu.org. ##
10535 ## ------------------------------------ ##
10538 sed "s/^/$as_me: WARNING: /" >&2
10541 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10542 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10543 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10546 ac_cv_header_sys_mkdev_h=$ac_header_preproc
10548 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10549 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10552 if test $ac_cv_header_sys_mkdev_h = yes; then
10554 cat >>confdefs.h <<\_ACEOF
10555 #define MAJOR_IN_MKDEV 1
10562 if test $ac_cv_header_sys_mkdev_h = no; then
10563 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10564 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10565 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10566 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10570 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10572 # Is the header compilable?
10573 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
10574 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
10575 cat >conftest.$ac_ext <<_ACEOF
10576 #line $LINENO "configure"
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 $ac_includes_default
10583 #include <sys/sysmacros.h>
10585 rm -f conftest.$ac_objext
10586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10587 (eval $ac_compile) 2>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } &&
10591 { ac_try='test -s conftest.$ac_objext'
10592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593 (eval $ac_try) 2>&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }; }; then
10597 ac_header_compiler=yes
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10602 ac_header_compiler=no
10604 rm -f conftest.$ac_objext conftest.$ac_ext
10605 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10606 echo "${ECHO_T}$ac_header_compiler" >&6
10608 # Is the header present?
10609 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
10610 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
10611 cat >conftest.$ac_ext <<_ACEOF
10612 #line $LINENO "configure"
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618 #include <sys/sysmacros.h>
10620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10623 grep -v '^ *+' conftest.er1 >conftest.err
10625 cat conftest.err >&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } >/dev/null; then
10628 if test -s conftest.err; then
10629 ac_cpp_err=$ac_c_preproc_warn_flag
10636 if test -z "$ac_cpp_err"; then
10637 ac_header_preproc=yes
10639 echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10642 ac_header_preproc=no
10644 rm -f conftest.err conftest.$ac_ext
10645 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10646 echo "${ECHO_T}$ac_header_preproc" >&6
10648 # So? What about this header?
10649 case $ac_header_compiler:$ac_header_preproc in
10651 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10652 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10653 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10654 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10657 ## ------------------------------------ ##
10658 ## Report this to bug-autoconf@gnu.org. ##
10659 ## ------------------------------------ ##
10662 sed "s/^/$as_me: WARNING: /" >&2
10665 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10666 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10667 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
10668 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
10669 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10670 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10673 ## ------------------------------------ ##
10674 ## Report this to bug-autoconf@gnu.org. ##
10675 ## ------------------------------------ ##
10678 sed "s/^/$as_me: WARNING: /" >&2
10681 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10682 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10683 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10684 echo $ECHO_N "(cached) $ECHO_C" >&6
10686 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10688 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10689 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10692 if test $ac_cv_header_sys_sysmacros_h = yes; then
10694 cat >>confdefs.h <<\_ACEOF
10695 #define MAJOR_IN_SYSMACROS 1
10709 ac_header_dirent=no
10710 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10711 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10712 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10713 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10717 cat >conftest.$ac_ext <<_ACEOF
10718 #line $LINENO "configure"
10721 cat confdefs.h >>conftest.$ac_ext
10722 cat >>conftest.$ac_ext <<_ACEOF
10723 /* end confdefs.h. */
10724 #include <sys/types.h>
10736 rm -f conftest.$ac_objext
10737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10738 (eval $ac_compile) 2>&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } &&
10742 { ac_try='test -s conftest.$ac_objext'
10743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; }; then
10748 eval "$as_ac_Header=yes"
10750 echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10753 eval "$as_ac_Header=no"
10755 rm -f conftest.$ac_objext conftest.$ac_ext
10757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10760 cat >>confdefs.h <<_ACEOF
10761 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10764 ac_header_dirent=$ac_hdr; break
10768 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10769 if test $ac_header_dirent = dirent.h; then
10770 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10771 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10772 if test "${ac_cv_search_opendir+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10775 ac_func_search_save_LIBS=$LIBS
10776 ac_cv_search_opendir=no
10777 cat >conftest.$ac_ext <<_ACEOF
10778 #line $LINENO "configure"
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10785 /* Override any gcc2 internal prototype to avoid an error. */
10789 /* We use char because int might match the return type of a gcc2
10790 builtin and then its argument prototype would still apply. */
10800 rm -f conftest.$ac_objext conftest$ac_exeext
10801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10802 (eval $ac_link) 2>&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } &&
10806 { ac_try='test -s conftest$ac_exeext'
10807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808 (eval $ac_try) 2>&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); }; }; then
10812 ac_cv_search_opendir="none required"
10814 echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10819 if test "$ac_cv_search_opendir" = no; then
10820 for ac_lib in dir; do
10821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10822 cat >conftest.$ac_ext <<_ACEOF
10823 #line $LINENO "configure"
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h. */
10830 /* Override any gcc2 internal prototype to avoid an error. */
10834 /* We use char because int might match the return type of a gcc2
10835 builtin and then its argument prototype would still apply. */
10845 rm -f conftest.$ac_objext conftest$ac_exeext
10846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10847 (eval $ac_link) 2>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } &&
10851 { ac_try='test -s conftest$ac_exeext'
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 ac_cv_search_opendir="-l$ac_lib"
10860 echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10867 LIBS=$ac_func_search_save_LIBS
10869 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10870 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10871 if test "$ac_cv_search_opendir" != no; then
10872 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10877 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10878 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10879 if test "${ac_cv_search_opendir+set}" = set; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 ac_func_search_save_LIBS=$LIBS
10883 ac_cv_search_opendir=no
10884 cat >conftest.$ac_ext <<_ACEOF
10885 #line $LINENO "configure"
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10892 /* Override any gcc2 internal prototype to avoid an error. */
10896 /* We use char because int might match the return type of a gcc2
10897 builtin and then its argument prototype would still apply. */
10907 rm -f conftest.$ac_objext conftest$ac_exeext
10908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10909 (eval $ac_link) 2>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } &&
10913 { ac_try='test -s conftest$ac_exeext'
10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; }; then
10919 ac_cv_search_opendir="none required"
10921 echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10926 if test "$ac_cv_search_opendir" = no; then
10927 for ac_lib in x; do
10928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10929 cat >conftest.$ac_ext <<_ACEOF
10930 #line $LINENO "configure"
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10937 /* Override any gcc2 internal prototype to avoid an error. */
10941 /* We use char because int might match the return type of a gcc2
10942 builtin and then its argument prototype would still apply. */
10952 rm -f conftest.$ac_objext conftest$ac_exeext
10953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10954 (eval $ac_link) 2>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } &&
10958 { ac_try='test -s conftest$ac_exeext'
10959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10964 ac_cv_search_opendir="-l$ac_lib"
10967 echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10974 LIBS=$ac_func_search_save_LIBS
10976 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10977 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10978 if test "$ac_cv_search_opendir" != no; then
10979 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10985 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10986 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10987 if test "${ac_cv_header_stat_broken+set}" = set; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 cat >conftest.$ac_ext <<_ACEOF
10991 #line $LINENO "configure"
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 #include <sys/types.h>
10998 #include <sys/stat.h>
11000 #if defined(S_ISBLK) && defined(S_IFDIR)
11001 # if S_ISBLK (S_IFDIR)
11006 #if defined(S_ISBLK) && defined(S_IFCHR)
11007 # if S_ISBLK (S_IFCHR)
11012 #if defined(S_ISLNK) && defined(S_IFREG)
11013 # if S_ISLNK (S_IFREG)
11018 #if defined(S_ISSOCK) && defined(S_IFREG)
11019 # if S_ISSOCK (S_IFREG)
11025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11026 $EGREP "You lose" >/dev/null 2>&1; then
11027 ac_cv_header_stat_broken=yes
11029 ac_cv_header_stat_broken=no
11034 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11035 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11036 if test $ac_cv_header_stat_broken = yes; then
11038 cat >>confdefs.h <<\_ACEOF
11039 #define STAT_MACROS_BROKEN 1
11044 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11045 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11046 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11049 cat >conftest.$ac_ext <<_ACEOF
11050 #line $LINENO "configure"
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h. */
11056 #include <sys/types.h>
11057 #include <sys/wait.h>
11058 #ifndef WEXITSTATUS
11059 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11062 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11070 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11075 rm -f conftest.$ac_objext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11077 (eval $ac_compile) 2>&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } &&
11081 { ac_try='test -s conftest.$ac_objext'
11082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083 (eval $ac_try) 2>&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; }; then
11087 ac_cv_header_sys_wait_h=yes
11089 echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.$ac_ext >&5
11092 ac_cv_header_sys_wait_h=no
11094 rm -f conftest.$ac_objext conftest.$ac_ext
11096 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11097 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11098 if test $ac_cv_header_sys_wait_h = yes; then
11100 cat >>confdefs.h <<\_ACEOF
11101 #define HAVE_SYS_WAIT_H 1
11106 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11107 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11108 if test "${ac_cv_header_time+set}" = set; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 cat >conftest.$ac_ext <<_ACEOF
11112 #line $LINENO "configure"
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11118 #include <sys/types.h>
11119 #include <sys/time.h>
11125 if ((struct tm *) 0)
11131 rm -f conftest.$ac_objext
11132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11133 (eval $ac_compile) 2>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } &&
11137 { ac_try='test -s conftest.$ac_objext'
11138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }; then
11143 ac_cv_header_time=yes
11145 echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11148 ac_cv_header_time=no
11150 rm -f conftest.$ac_objext conftest.$ac_ext
11152 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11153 echo "${ECHO_T}$ac_cv_header_time" >&6
11154 if test $ac_cv_header_time = yes; then
11156 cat >>confdefs.h <<\_ACEOF
11157 #define TIME_WITH_SYS_TIME 1
11163 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11164 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11165 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
11168 cat >conftest.$ac_ext <<_ACEOF
11169 #line $LINENO "configure"
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h. */
11175 $ac_includes_default
11179 static struct stat ac_aggr;
11180 if (ac_aggr.st_blksize)
11186 rm -f conftest.$ac_objext
11187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11188 (eval $ac_compile) 2>&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } &&
11192 { ac_try='test -s conftest.$ac_objext'
11193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194 (eval $ac_try) 2>&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }; }; then
11198 ac_cv_member_struct_stat_st_blksize=yes
11200 echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11203 cat >conftest.$ac_ext <<_ACEOF
11204 #line $LINENO "configure"
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h. */
11210 $ac_includes_default
11214 static struct stat ac_aggr;
11215 if (sizeof ac_aggr.st_blksize)
11221 rm -f conftest.$ac_objext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11223 (eval $ac_compile) 2>&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } &&
11227 { ac_try='test -s conftest.$ac_objext'
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; }; then
11233 ac_cv_member_struct_stat_st_blksize=yes
11235 echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11238 ac_cv_member_struct_stat_st_blksize=no
11240 rm -f conftest.$ac_objext conftest.$ac_ext
11242 rm -f conftest.$ac_objext conftest.$ac_ext
11244 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11245 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11246 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11248 cat >>confdefs.h <<_ACEOF
11249 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11253 cat >>confdefs.h <<\_ACEOF
11254 #define HAVE_ST_BLKSIZE 1
11260 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11261 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11262 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 cat >conftest.$ac_ext <<_ACEOF
11266 #line $LINENO "configure"
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11272 $ac_includes_default
11276 static struct stat ac_aggr;
11277 if (ac_aggr.st_blocks)
11283 rm -f conftest.$ac_objext
11284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11285 (eval $ac_compile) 2>&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); } &&
11289 { ac_try='test -s conftest.$ac_objext'
11290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11291 (eval $ac_try) 2>&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; }; then
11295 ac_cv_member_struct_stat_st_blocks=yes
11297 echo "$as_me: failed program was:" >&5
11298 sed 's/^/| /' conftest.$ac_ext >&5
11300 cat >conftest.$ac_ext <<_ACEOF
11301 #line $LINENO "configure"
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307 $ac_includes_default
11311 static struct stat ac_aggr;
11312 if (sizeof ac_aggr.st_blocks)
11318 rm -f conftest.$ac_objext
11319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11320 (eval $ac_compile) 2>&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } &&
11324 { ac_try='test -s conftest.$ac_objext'
11325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326 (eval $ac_try) 2>&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; }; then
11330 ac_cv_member_struct_stat_st_blocks=yes
11332 echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.$ac_ext >&5
11335 ac_cv_member_struct_stat_st_blocks=no
11337 rm -f conftest.$ac_objext conftest.$ac_ext
11339 rm -f conftest.$ac_objext conftest.$ac_ext
11341 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11342 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11343 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11345 cat >>confdefs.h <<_ACEOF
11346 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11350 cat >>confdefs.h <<\_ACEOF
11351 #define HAVE_ST_BLOCKS 1
11355 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11359 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11360 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11361 if test "${ac_cv_struct_tm+set}" = set; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
11364 cat >conftest.$ac_ext <<_ACEOF
11365 #line $LINENO "configure"
11368 cat confdefs.h >>conftest.$ac_ext
11369 cat >>conftest.$ac_ext <<_ACEOF
11370 /* end confdefs.h. */
11371 #include <sys/types.h>
11377 struct tm *tp; tp->tm_sec;
11382 rm -f conftest.$ac_objext
11383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11384 (eval $ac_compile) 2>&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } &&
11388 { ac_try='test -s conftest.$ac_objext'
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; }; then
11394 ac_cv_struct_tm=time.h
11396 echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11399 ac_cv_struct_tm=sys/time.h
11401 rm -f conftest.$ac_objext conftest.$ac_ext
11403 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11404 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11405 if test $ac_cv_struct_tm = sys/time.h; then
11407 cat >>confdefs.h <<\_ACEOF
11408 #define TM_IN_SYS_TIME 1
11413 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11414 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11415 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 cat >conftest.$ac_ext <<_ACEOF
11419 #line $LINENO "configure"
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 #include <sys/types.h>
11426 #include <$ac_cv_struct_tm>
11432 static struct tm ac_aggr;
11433 if (ac_aggr.tm_zone)
11439 rm -f conftest.$ac_objext
11440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11441 (eval $ac_compile) 2>&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } &&
11445 { ac_try='test -s conftest.$ac_objext'
11446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447 (eval $ac_try) 2>&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; }; then
11451 ac_cv_member_struct_tm_tm_zone=yes
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11456 cat >conftest.$ac_ext <<_ACEOF
11457 #line $LINENO "configure"
11460 cat confdefs.h >>conftest.$ac_ext
11461 cat >>conftest.$ac_ext <<_ACEOF
11462 /* end confdefs.h. */
11463 #include <sys/types.h>
11464 #include <$ac_cv_struct_tm>
11470 static struct tm ac_aggr;
11471 if (sizeof ac_aggr.tm_zone)
11477 rm -f conftest.$ac_objext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11479 (eval $ac_compile) 2>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); } &&
11483 { ac_try='test -s conftest.$ac_objext'
11484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485 (eval $ac_try) 2>&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }; }; then
11489 ac_cv_member_struct_tm_tm_zone=yes
11491 echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11494 ac_cv_member_struct_tm_tm_zone=no
11496 rm -f conftest.$ac_objext conftest.$ac_ext
11498 rm -f conftest.$ac_objext conftest.$ac_ext
11500 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11501 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11502 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11504 cat >>confdefs.h <<_ACEOF
11505 #define HAVE_STRUCT_TM_TM_ZONE 1
11511 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11513 cat >>confdefs.h <<\_ACEOF
11514 #define HAVE_TM_ZONE 1
11518 echo "$as_me:$LINENO: checking for tzname" >&5
11519 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11520 if test "${ac_cv_var_tzname+set}" = set; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11523 cat >conftest.$ac_ext <<_ACEOF
11524 #line $LINENO "configure"
11527 cat confdefs.h >>conftest.$ac_ext
11528 cat >>conftest.$ac_ext <<_ACEOF
11529 /* end confdefs.h. */
11531 #ifndef tzname /* For SGI. */
11532 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11543 rm -f conftest.$ac_objext conftest$ac_exeext
11544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11545 (eval $ac_link) 2>&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); } &&
11549 { ac_try='test -s conftest$ac_exeext'
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11555 ac_cv_var_tzname=yes
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11560 ac_cv_var_tzname=no
11562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11564 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11565 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11566 if test $ac_cv_var_tzname = yes; then
11568 cat >>confdefs.h <<\_ACEOF
11569 #define HAVE_TZNAME 1
11576 echo "$as_me:$LINENO: checking for utime.h" >&5
11577 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
11578 if test "${ba_cv_header_utime_h+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11581 cat >conftest.$ac_ext <<_ACEOF
11582 #line $LINENO "configure"
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h. */
11589 #include <sys/types.h>
11599 rm -f conftest.$ac_objext
11600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11601 (eval $ac_compile) 2>&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); } &&
11605 { ac_try='test -s conftest.$ac_objext'
11606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607 (eval $ac_try) 2>&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }; }; then
11611 ba_cv_header_utime_h=yes
11613 echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11616 ba_cv_header_utime_h=no
11618 rm -f conftest.$ac_objext conftest.$ac_ext
11620 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
11621 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
11622 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
11623 #define HAVE_UTIME_H 1
11627 echo "$as_me:$LINENO: checking for socklen_t" >&5
11628 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11629 if test "${ba_cv_header_socklen_t+set}" = set; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 cat >conftest.$ac_ext <<_ACEOF
11633 #line $LINENO "configure"
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h. */
11640 #include <sys/types.h>
11641 #include <sys/socket.h>
11650 rm -f conftest.$ac_objext
11651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11652 (eval $ac_compile) 2>&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } &&
11656 { ac_try='test -s conftest.$ac_objext'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; }; then
11662 ba_cv_header_socklen_t=yes
11664 echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11667 ba_cv_header_socklen_t=no
11669 rm -f conftest.$ac_objext conftest.$ac_ext
11671 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
11672 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
11673 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
11674 #define HAVE_SOCKLEN_T 1
11678 echo "$as_me:$LINENO: checking for bigendian" >&5
11679 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
11680 if test "${ba_cv_bigendian+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 if test "$cross_compiling" = yes; then
11686 cat >conftest.$ac_ext <<_ACEOF
11687 #line $LINENO "configure"
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h. */
11693 main(){long a=1L; char *p=(char *)&a; exit(*p);}
11695 rm -f conftest$ac_exeext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11697 (eval $ac_link) 2>&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; }; then
11706 ba_cv_bigendian=yes
11708 echo "$as_me: program exited with status $ac_status" >&5
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ( exit $ac_status )
11715 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11718 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
11719 echo "${ECHO_T}$ba_cv_bigendian" >&6
11720 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
11721 #define HAVE_BIGENDIAN 1
11726 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11727 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11728 if test "${ac_cv_c_const+set}" = set; then
11729 echo $ECHO_N "(cached) $ECHO_C" >&6
11731 cat >conftest.$ac_ext <<_ACEOF
11732 #line $LINENO "configure"
11735 cat confdefs.h >>conftest.$ac_ext
11736 cat >>conftest.$ac_ext <<_ACEOF
11737 /* end confdefs.h. */
11742 /* FIXME: Include the comments suggested by Paul. */
11743 #ifndef __cplusplus
11744 /* Ultrix mips cc rejects this. */
11745 typedef int charset[2];
11747 /* SunOS 4.1.1 cc rejects this. */
11748 char const *const *ccp;
11750 /* NEC SVR4.0.2 mips cc rejects this. */
11751 struct point {int x, y;};
11752 static struct point const zero = {0,0};
11753 /* AIX XL C 1.02.0.0 rejects this.
11754 It does not let you subtract one const X* pointer from another in
11755 an arm of an if-expression whose if-part is not a constant
11757 const char *g = "string";
11758 ccp = &g + (g ? g-g : 0);
11759 /* HPUX 7.0 cc rejects these. */
11762 ccp = (char const *const *) p;
11763 { /* SCO 3.2v4 cc rejects this. */
11765 char const *s = 0 ? (char *) 0 : (char const *) 0;
11769 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11770 int x[] = {25, 17};
11771 const int *foo = &x[0];
11774 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11775 typedef const int *iptr;
11779 { /* AIX XL C 1.02.0.0 rejects this saying
11780 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11781 struct s { int j; const int *ap[3]; };
11782 struct s *b; b->j = 5;
11784 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11785 const int foo = 10;
11793 rm -f conftest.$ac_objext
11794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11795 (eval $ac_compile) 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } &&
11799 { ac_try='test -s conftest.$ac_objext'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11812 rm -f conftest.$ac_objext conftest.$ac_ext
11814 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11815 echo "${ECHO_T}$ac_cv_c_const" >&6
11816 if test $ac_cv_c_const = no; then
11818 cat >>confdefs.h <<\_ACEOF
11826 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11827 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11829 # The order of these tests is important.
11830 cat >conftest.$ac_ext <<_ACEOF
11831 #line $LINENO "configure"
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h. */
11837 #include <sys/statvfs.h>
11838 #include <sys/fstyp.h>
11840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11843 grep -v '^ *+' conftest.er1 >conftest.err
11845 cat conftest.err >&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } >/dev/null; then
11848 if test -s conftest.err; then
11849 ac_cpp_err=$ac_c_preproc_warn_flag
11856 if test -z "$ac_cpp_err"; then
11857 cat >>confdefs.h <<\_ACEOF
11858 #define FSTYPE_STATVFS 1
11862 echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11867 rm -f conftest.err conftest.$ac_ext
11868 if test $fstype = no; then
11869 cat >conftest.$ac_ext <<_ACEOF
11870 #line $LINENO "configure"
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h. */
11876 #include <sys/statfs.h>
11877 #include <sys/fstyp.h>
11879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11882 grep -v '^ *+' conftest.er1 >conftest.err
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } >/dev/null; then
11887 if test -s conftest.err; then
11888 ac_cpp_err=$ac_c_preproc_warn_flag
11895 if test -z "$ac_cpp_err"; then
11896 cat >>confdefs.h <<\_ACEOF
11897 #define FSTYPE_USG_STATFS 1
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11906 rm -f conftest.err conftest.$ac_ext
11908 if test $fstype = no; then
11909 cat >conftest.$ac_ext <<_ACEOF
11910 #line $LINENO "configure"
11913 cat confdefs.h >>conftest.$ac_ext
11914 cat >>conftest.$ac_ext <<_ACEOF
11915 /* end confdefs.h. */
11916 #include <sys/statfs.h>
11917 #include <sys/vmount.h>
11919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11922 grep -v '^ *+' conftest.er1 >conftest.err
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } >/dev/null; then
11927 if test -s conftest.err; then
11928 ac_cpp_err=$ac_c_preproc_warn_flag
11935 if test -z "$ac_cpp_err"; then
11936 cat >>confdefs.h <<\_ACEOF
11937 #define FSTYPE_AIX_STATFS 1
11941 echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11946 rm -f conftest.err conftest.$ac_ext
11948 if test $fstype = no; then
11949 cat >conftest.$ac_ext <<_ACEOF
11950 #line $LINENO "configure"
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h. */
11956 #include <mntent.h>
11958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11961 grep -v '^ *+' conftest.er1 >conftest.err
11963 cat conftest.err >&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } >/dev/null; then
11966 if test -s conftest.err; then
11967 ac_cpp_err=$ac_c_preproc_warn_flag
11974 if test -z "$ac_cpp_err"; then
11975 cat >>confdefs.h <<\_ACEOF
11976 #define FSTYPE_MNTENT 1
11980 echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11985 rm -f conftest.err conftest.$ac_ext
11987 if test $fstype = no; then
11988 cat >conftest.$ac_ext <<_ACEOF
11989 #line $LINENO "configure"
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995 #include <sys/mount.h>
11998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11999 $EGREP "f_type;" >/dev/null 2>&1; then
12000 cat >>confdefs.h <<\_ACEOF
12001 #define FSTYPE_STATFS 1
12008 if test $fstype = no; then
12009 cat >conftest.$ac_ext <<_ACEOF
12010 #line $LINENO "configure"
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12016 #include <sys/mount.h>
12017 #include <sys/fs_types.h>
12019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12022 grep -v '^ *+' conftest.er1 >conftest.err
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } >/dev/null; then
12027 if test -s conftest.err; then
12028 ac_cpp_err=$ac_c_preproc_warn_flag
12035 if test -z "$ac_cpp_err"; then
12036 cat >>confdefs.h <<\_ACEOF
12037 #define FSTYPE_GETMNT 1
12041 echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12046 rm -f conftest.err conftest.$ac_ext
12048 echo "$as_me:$LINENO: result: $fstype" >&5
12049 echo "${ECHO_T}$fstype" >&6
12051 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12052 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12053 if test "${ac_cv_type_signal+set}" = set; then
12054 echo $ECHO_N "(cached) $ECHO_C" >&6
12056 cat >conftest.$ac_ext <<_ACEOF
12057 #line $LINENO "configure"
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h. */
12063 #include <sys/types.h>
12064 #include <signal.h>
12069 extern "C" void (*signal (int, void (*)(int)))(int);
12071 void (*signal ()) ();
12082 rm -f conftest.$ac_objext
12083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12084 (eval $ac_compile) 2>&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } &&
12088 { ac_try='test -s conftest.$ac_objext'
12089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090 (eval $ac_try) 2>&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; }; then
12094 ac_cv_type_signal=void
12096 echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.$ac_ext >&5
12099 ac_cv_type_signal=int
12101 rm -f conftest.$ac_objext conftest.$ac_ext
12103 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12104 echo "${ECHO_T}$ac_cv_type_signal" >&6
12106 cat >>confdefs.h <<_ACEOF
12107 #define RETSIGTYPE $ac_cv_type_signal
12112 echo "$as_me:$LINENO: checking for type of signal functions" >&5
12113 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12114 if test "${bash_cv_signal_vintage+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 cat >conftest.$ac_ext <<_ACEOF
12119 #line $LINENO "configure"
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125 #include <signal.h>
12131 struct sigaction sa;
12132 sigemptyset(&ss); sigsuspend(&ss);
12133 sigaction(SIGINT, &sa, (struct sigaction *) 0);
12134 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12140 rm -f conftest.$ac_objext conftest$ac_exeext
12141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12142 (eval $ac_link) 2>&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); } &&
12146 { ac_try='test -s conftest$ac_exeext'
12147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148 (eval $ac_try) 2>&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); }; }; then
12152 bash_cv_signal_vintage=posix
12154 echo "$as_me: failed program was:" >&5
12155 sed 's/^/| /' conftest.$ac_ext >&5
12158 cat >conftest.$ac_ext <<_ACEOF
12159 #line $LINENO "configure"
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h. */
12165 #include <signal.h>
12170 int mask = sigmask(SIGINT);
12171 sigsetmask(mask); sigblock(mask); sigpause(mask);
12177 rm -f conftest.$ac_objext conftest$ac_exeext
12178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12179 (eval $ac_link) 2>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } &&
12183 { ac_try='test -s conftest$ac_exeext'
12184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185 (eval $ac_try) 2>&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; }; then
12189 bash_cv_signal_vintage=4.2bsd
12191 echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12195 cat >conftest.$ac_ext <<_ACEOF
12196 #line $LINENO "configure"
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h. */
12203 #include <signal.h>
12204 RETSIGTYPE foo() { }
12209 int mask = sigmask(SIGINT);
12210 sigset(SIGINT, foo); sigrelse(SIGINT);
12211 sighold(SIGINT); sigpause(SIGINT);
12217 rm -f conftest.$ac_objext conftest$ac_exeext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12219 (eval $ac_link) 2>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } &&
12223 { ac_try='test -s conftest$ac_exeext'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 bash_cv_signal_vintage=svr3
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12234 bash_cv_signal_vintage=v7
12237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12247 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
12248 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
12249 if test "$bash_cv_signal_vintage" = posix; then
12250 cat >>confdefs.h <<\_ACEOF
12251 #define HAVE_POSIX_SIGNALS 1
12254 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
12255 cat >>confdefs.h <<\_ACEOF
12256 #define HAVE_BSD_SIGNALS 1
12259 elif test "$bash_cv_signal_vintage" = svr3; then
12260 cat >>confdefs.h <<\_ACEOF
12261 #define HAVE_USG_SIGHOLD 1
12266 echo "$as_me:$LINENO: checking for mode_t" >&5
12267 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12268 if test "${ac_cv_type_mode_t+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
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 $ac_includes_default
12284 if (sizeof (mode_t))
12290 rm -f conftest.$ac_objext
12291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12292 (eval $ac_compile) 2>&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } &&
12296 { ac_try='test -s conftest.$ac_objext'
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; }; then
12302 ac_cv_type_mode_t=yes
12304 echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.$ac_ext >&5
12307 ac_cv_type_mode_t=no
12309 rm -f conftest.$ac_objext conftest.$ac_ext
12311 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12312 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12313 if test $ac_cv_type_mode_t = yes; then
12317 cat >>confdefs.h <<_ACEOF
12323 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12324 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12325 if test "${ac_cv_type_uid_t+set}" = set; then
12326 echo $ECHO_N "(cached) $ECHO_C" >&6
12328 cat >conftest.$ac_ext <<_ACEOF
12329 #line $LINENO "configure"
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h. */
12335 #include <sys/types.h>
12338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12339 $EGREP "uid_t" >/dev/null 2>&1; then
12340 ac_cv_type_uid_t=yes
12342 ac_cv_type_uid_t=no
12347 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12348 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12349 if test $ac_cv_type_uid_t = no; then
12351 cat >>confdefs.h <<\_ACEOF
12356 cat >>confdefs.h <<\_ACEOF
12362 echo "$as_me:$LINENO: checking for size_t" >&5
12363 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12364 if test "${ac_cv_type_size_t+set}" = set; then
12365 echo $ECHO_N "(cached) $ECHO_C" >&6
12367 cat >conftest.$ac_ext <<_ACEOF
12368 #line $LINENO "configure"
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374 $ac_includes_default
12380 if (sizeof (size_t))
12386 rm -f conftest.$ac_objext
12387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12388 (eval $ac_compile) 2>&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); } &&
12392 { ac_try='test -s conftest.$ac_objext'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 ac_cv_type_size_t=yes
12400 echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12403 ac_cv_type_size_t=no
12405 rm -f conftest.$ac_objext conftest.$ac_ext
12407 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12408 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12409 if test $ac_cv_type_size_t = yes; then
12413 cat >>confdefs.h <<_ACEOF
12414 #define size_t unsigned
12419 echo "$as_me:$LINENO: checking for pid_t" >&5
12420 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12421 if test "${ac_cv_type_pid_t+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12424 cat >conftest.$ac_ext <<_ACEOF
12425 #line $LINENO "configure"
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h. */
12431 $ac_includes_default
12437 if (sizeof (pid_t))
12443 rm -f conftest.$ac_objext
12444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12445 (eval $ac_compile) 2>&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
12449 { ac_try='test -s conftest.$ac_objext'
12450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451 (eval $ac_try) 2>&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; }; then
12455 ac_cv_type_pid_t=yes
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12460 ac_cv_type_pid_t=no
12462 rm -f conftest.$ac_objext conftest.$ac_ext
12464 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12465 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12466 if test $ac_cv_type_pid_t = yes; then
12470 cat >>confdefs.h <<_ACEOF
12476 echo "$as_me:$LINENO: checking for off_t" >&5
12477 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12478 if test "${ac_cv_type_off_t+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12481 cat >conftest.$ac_ext <<_ACEOF
12482 #line $LINENO "configure"
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12488 $ac_includes_default
12494 if (sizeof (off_t))
12500 rm -f conftest.$ac_objext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12502 (eval $ac_compile) 2>&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } &&
12506 { ac_try='test -s conftest.$ac_objext'
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508 (eval $ac_try) 2>&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; }; then
12512 ac_cv_type_off_t=yes
12514 echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.$ac_ext >&5
12517 ac_cv_type_off_t=no
12519 rm -f conftest.$ac_objext conftest.$ac_ext
12521 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12522 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12523 if test $ac_cv_type_off_t = yes; then
12527 cat >>confdefs.h <<_ACEOF
12533 echo "$as_me:$LINENO: checking for ino_t" >&5
12534 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
12535 if test "${ac_cv_type_ino_t+set}" = set; then
12536 echo $ECHO_N "(cached) $ECHO_C" >&6
12538 cat >conftest.$ac_ext <<_ACEOF
12539 #line $LINENO "configure"
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h. */
12545 $ac_includes_default
12551 if (sizeof (ino_t))
12557 rm -f conftest.$ac_objext
12558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12559 (eval $ac_compile) 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -s conftest.$ac_objext'
12564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565 (eval $ac_try) 2>&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; }; then
12569 ac_cv_type_ino_t=yes
12571 echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12574 ac_cv_type_ino_t=no
12576 rm -f conftest.$ac_objext conftest.$ac_ext
12578 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12579 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12580 if test $ac_cv_type_ino_t = yes; then
12584 cat >>confdefs.h <<_ACEOF
12585 #define ino_t unsigned long
12590 echo "$as_me:$LINENO: checking for dev_t" >&5
12591 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12592 if test "${ac_cv_type_dev_t+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 cat >conftest.$ac_ext <<_ACEOF
12596 #line $LINENO "configure"
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 $ac_includes_default
12608 if (sizeof (dev_t))
12614 rm -f conftest.$ac_objext
12615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12616 (eval $ac_compile) 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } &&
12620 { ac_try='test -s conftest.$ac_objext'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; }; then
12626 ac_cv_type_dev_t=yes
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12631 ac_cv_type_dev_t=no
12633 rm -f conftest.$ac_objext conftest.$ac_ext
12635 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12636 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12637 if test $ac_cv_type_dev_t = yes; then
12641 cat >>confdefs.h <<_ACEOF
12642 #define dev_t unsigned long
12647 echo "$as_me:$LINENO: checking for daddr_t" >&5
12648 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
12649 if test "${ac_cv_type_daddr_t+set}" = set; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12652 cat >conftest.$ac_ext <<_ACEOF
12653 #line $LINENO "configure"
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h. */
12659 $ac_includes_default
12665 if (sizeof (daddr_t))
12671 rm -f conftest.$ac_objext
12672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12673 (eval $ac_compile) 2>&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); } &&
12677 { ac_try='test -s conftest.$ac_objext'
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 ac_cv_type_daddr_t=yes
12685 echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12688 ac_cv_type_daddr_t=no
12690 rm -f conftest.$ac_objext conftest.$ac_ext
12692 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
12693 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
12694 if test $ac_cv_type_daddr_t = yes; then
12698 cat >>confdefs.h <<_ACEOF
12699 #define daddr_t long
12704 echo "$as_me:$LINENO: checking for major_t" >&5
12705 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
12706 if test "${ac_cv_type_major_t+set}" = set; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12709 cat >conftest.$ac_ext <<_ACEOF
12710 #line $LINENO "configure"
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h. */
12716 $ac_includes_default
12722 if (sizeof (major_t))
12728 rm -f conftest.$ac_objext
12729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12730 (eval $ac_compile) 2>&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); } &&
12734 { ac_try='test -s conftest.$ac_objext'
12735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; }; then
12740 ac_cv_type_major_t=yes
12742 echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12745 ac_cv_type_major_t=no
12747 rm -f conftest.$ac_objext conftest.$ac_ext
12749 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12750 echo "${ECHO_T}$ac_cv_type_major_t" >&6
12751 if test $ac_cv_type_major_t = yes; then
12755 cat >>confdefs.h <<_ACEOF
12756 #define major_t int
12761 echo "$as_me:$LINENO: checking for minor_t" >&5
12762 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
12763 if test "${ac_cv_type_minor_t+set}" = set; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12766 cat >conftest.$ac_ext <<_ACEOF
12767 #line $LINENO "configure"
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h. */
12773 $ac_includes_default
12779 if (sizeof (minor_t))
12785 rm -f conftest.$ac_objext
12786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12787 (eval $ac_compile) 2>&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } &&
12791 { ac_try='test -s conftest.$ac_objext'
12792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; }; then
12797 ac_cv_type_minor_t=yes
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12802 ac_cv_type_minor_t=no
12804 rm -f conftest.$ac_objext conftest.$ac_ext
12806 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12807 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12808 if test $ac_cv_type_minor_t = yes; then
12812 cat >>confdefs.h <<_ACEOF
12813 #define minor_t int
12818 echo "$as_me:$LINENO: checking for ssize_t" >&5
12819 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12820 if test "${ac_cv_type_ssize_t+set}" = set; then
12821 echo $ECHO_N "(cached) $ECHO_C" >&6
12823 cat >conftest.$ac_ext <<_ACEOF
12824 #line $LINENO "configure"
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h. */
12830 $ac_includes_default
12836 if (sizeof (ssize_t))
12842 rm -f conftest.$ac_objext
12843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12844 (eval $ac_compile) 2>&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); } &&
12848 { ac_try='test -s conftest.$ac_objext'
12849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850 (eval $ac_try) 2>&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; }; then
12854 ac_cv_type_ssize_t=yes
12856 echo "$as_me: failed program was:" >&5
12857 sed 's/^/| /' conftest.$ac_ext >&5
12859 ac_cv_type_ssize_t=no
12861 rm -f conftest.$ac_objext conftest.$ac_ext
12863 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12864 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12865 if test $ac_cv_type_ssize_t = yes; then
12869 cat >>confdefs.h <<_ACEOF
12870 #define ssize_t int
12875 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12876 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12877 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12880 cat >conftest.$ac_ext <<_ACEOF
12881 #line $LINENO "configure"
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h. */
12887 $ac_includes_default
12891 static struct stat ac_aggr;
12892 if (ac_aggr.st_blocks)
12898 rm -f conftest.$ac_objext
12899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12900 (eval $ac_compile) 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } &&
12904 { ac_try='test -s conftest.$ac_objext'
12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906 (eval $ac_try) 2>&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; }; then
12910 ac_cv_member_struct_stat_st_blocks=yes
12912 echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12915 cat >conftest.$ac_ext <<_ACEOF
12916 #line $LINENO "configure"
12919 cat confdefs.h >>conftest.$ac_ext
12920 cat >>conftest.$ac_ext <<_ACEOF
12921 /* end confdefs.h. */
12922 $ac_includes_default
12926 static struct stat ac_aggr;
12927 if (sizeof ac_aggr.st_blocks)
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_member_struct_stat_st_blocks=yes
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12950 ac_cv_member_struct_stat_st_blocks=no
12952 rm -f conftest.$ac_objext conftest.$ac_ext
12954 rm -f conftest.$ac_objext conftest.$ac_ext
12956 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12957 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12958 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12960 cat >>confdefs.h <<_ACEOF
12961 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12965 cat >>confdefs.h <<\_ACEOF
12966 #define HAVE_ST_BLOCKS 1
12970 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12975 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12976 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12977 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12978 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 cat >conftest.$ac_ext <<_ACEOF
12981 #line $LINENO "configure"
12984 cat confdefs.h >>conftest.$ac_ext
12985 cat >>conftest.$ac_ext <<_ACEOF
12986 /* end confdefs.h. */
12987 $ac_includes_default
12991 static struct stat ac_aggr;
12992 if (ac_aggr.st_rdev)
12998 rm -f conftest.$ac_objext
12999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13000 (eval $ac_compile) 2>&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
13004 { ac_try='test -s conftest.$ac_objext'
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; }; then
13010 ac_cv_member_struct_stat_st_rdev=yes
13012 echo "$as_me: failed program was:" >&5
13013 sed 's/^/| /' conftest.$ac_ext >&5
13015 cat >conftest.$ac_ext <<_ACEOF
13016 #line $LINENO "configure"
13019 cat confdefs.h >>conftest.$ac_ext
13020 cat >>conftest.$ac_ext <<_ACEOF
13021 /* end confdefs.h. */
13022 $ac_includes_default
13026 static struct stat ac_aggr;
13027 if (sizeof ac_aggr.st_rdev)
13033 rm -f conftest.$ac_objext
13034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13035 (eval $ac_compile) 2>&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); } &&
13039 { ac_try='test -s conftest.$ac_objext'
13040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13041 (eval $ac_try) 2>&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; }; then
13045 ac_cv_member_struct_stat_st_rdev=yes
13047 echo "$as_me: failed program was:" >&5
13048 sed 's/^/| /' conftest.$ac_ext >&5
13050 ac_cv_member_struct_stat_st_rdev=no
13052 rm -f conftest.$ac_objext conftest.$ac_ext
13054 rm -f conftest.$ac_objext conftest.$ac_ext
13056 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
13057 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
13058 if test $ac_cv_member_struct_stat_st_rdev = yes; then
13060 cat >>confdefs.h <<_ACEOF
13061 #define HAVE_STRUCT_STAT_ST_RDEV 1
13065 cat >>confdefs.h <<\_ACEOF
13066 #define HAVE_ST_RDEV 1
13072 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13073 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13074 if test "${ac_cv_struct_tm+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 cat >conftest.$ac_ext <<_ACEOF
13078 #line $LINENO "configure"
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h. */
13084 #include <sys/types.h>
13090 struct tm *tp; tp->tm_sec;
13095 rm -f conftest.$ac_objext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097 (eval $ac_compile) 2>&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } &&
13101 { ac_try='test -s conftest.$ac_objext'
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; }; then
13107 ac_cv_struct_tm=time.h
13109 echo "$as_me: failed program was:" >&5
13110 sed 's/^/| /' conftest.$ac_ext >&5
13112 ac_cv_struct_tm=sys/time.h
13114 rm -f conftest.$ac_objext conftest.$ac_ext
13116 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13117 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13118 if test $ac_cv_struct_tm = sys/time.h; then
13120 cat >>confdefs.h <<\_ACEOF
13121 #define TM_IN_SYS_TIME 1
13126 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13127 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13128 if test "${ac_cv_c_const+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 cat >conftest.$ac_ext <<_ACEOF
13132 #line $LINENO "configure"
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h. */
13142 /* FIXME: Include the comments suggested by Paul. */
13143 #ifndef __cplusplus
13144 /* Ultrix mips cc rejects this. */
13145 typedef int charset[2];
13147 /* SunOS 4.1.1 cc rejects this. */
13148 char const *const *ccp;
13150 /* NEC SVR4.0.2 mips cc rejects this. */
13151 struct point {int x, y;};
13152 static struct point const zero = {0,0};
13153 /* AIX XL C 1.02.0.0 rejects this.
13154 It does not let you subtract one const X* pointer from another in
13155 an arm of an if-expression whose if-part is not a constant
13157 const char *g = "string";
13158 ccp = &g + (g ? g-g : 0);
13159 /* HPUX 7.0 cc rejects these. */
13162 ccp = (char const *const *) p;
13163 { /* SCO 3.2v4 cc rejects this. */
13165 char const *s = 0 ? (char *) 0 : (char const *) 0;
13169 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13170 int x[] = {25, 17};
13171 const int *foo = &x[0];
13174 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13175 typedef const int *iptr;
13179 { /* AIX XL C 1.02.0.0 rejects this saying
13180 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13181 struct s { int j; const int *ap[3]; };
13182 struct s *b; b->j = 5;
13184 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13185 const int foo = 10;
13193 rm -f conftest.$ac_objext
13194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13195 (eval $ac_compile) 2>&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); } &&
13199 { ac_try='test -s conftest.$ac_objext'
13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; }; then
13207 echo "$as_me: failed program was:" >&5
13208 sed 's/^/| /' conftest.$ac_ext >&5
13212 rm -f conftest.$ac_objext conftest.$ac_ext
13214 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13215 echo "${ECHO_T}$ac_cv_c_const" >&6
13216 if test $ac_cv_c_const = no; then
13218 cat >>confdefs.h <<\_ACEOF
13226 echo "$as_me:$LINENO: checking for char" >&5
13227 echo $ECHO_N "checking for char... $ECHO_C" >&6
13228 if test "${ac_cv_type_char+set}" = set; then
13229 echo $ECHO_N "(cached) $ECHO_C" >&6
13231 cat >conftest.$ac_ext <<_ACEOF
13232 #line $LINENO "configure"
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h. */
13238 $ac_includes_default
13250 rm -f conftest.$ac_objext
13251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13252 (eval $ac_compile) 2>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } &&
13256 { ac_try='test -s conftest.$ac_objext'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 ac_cv_type_char=yes
13264 echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13269 rm -f conftest.$ac_objext conftest.$ac_ext
13271 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13272 echo "${ECHO_T}$ac_cv_type_char" >&6
13274 echo "$as_me:$LINENO: checking size of char" >&5
13275 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13276 if test "${ac_cv_sizeof_char+set}" = set; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13279 if test "$ac_cv_type_char" = yes; then
13280 # The cast to unsigned long works around a bug in the HP C Compiler
13281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13283 # This bug is HP SR number 8606223364.
13284 if test "$cross_compiling" = yes; then
13285 # Depending upon the size, compute the lo and hi bounds.
13286 cat >conftest.$ac_ext <<_ACEOF
13287 #line $LINENO "configure"
13290 cat confdefs.h >>conftest.$ac_ext
13291 cat >>conftest.$ac_ext <<_ACEOF
13292 /* end confdefs.h. */
13293 $ac_includes_default
13297 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13304 rm -f conftest.$ac_objext
13305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13306 (eval $ac_compile) 2>&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); } &&
13310 { ac_try='test -s conftest.$ac_objext'
13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; }; then
13318 cat >conftest.$ac_ext <<_ACEOF
13319 #line $LINENO "configure"
13322 cat confdefs.h >>conftest.$ac_ext
13323 cat >>conftest.$ac_ext <<_ACEOF
13324 /* end confdefs.h. */
13325 $ac_includes_default
13329 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13336 rm -f conftest.$ac_objext
13337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13338 (eval $ac_compile) 2>&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } &&
13342 { ac_try='test -s conftest.$ac_objext'
13343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344 (eval $ac_try) 2>&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
13348 ac_hi=$ac_mid; break
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13353 ac_lo=`expr $ac_mid + 1`
13354 if test $ac_lo -le $ac_mid; then
13358 ac_mid=`expr 2 '*' $ac_mid + 1`
13360 rm -f conftest.$ac_objext conftest.$ac_ext
13363 echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13366 cat >conftest.$ac_ext <<_ACEOF
13367 #line $LINENO "configure"
13370 cat confdefs.h >>conftest.$ac_ext
13371 cat >>conftest.$ac_ext <<_ACEOF
13372 /* end confdefs.h. */
13373 $ac_includes_default
13377 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13384 rm -f conftest.$ac_objext
13385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13386 (eval $ac_compile) 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } &&
13390 { ac_try='test -s conftest.$ac_objext'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; }; then
13398 cat >conftest.$ac_ext <<_ACEOF
13399 #line $LINENO "configure"
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h. */
13405 $ac_includes_default
13409 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13416 rm -f conftest.$ac_objext
13417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13418 (eval $ac_compile) 2>&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } &&
13422 { ac_try='test -s conftest.$ac_objext'
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; }; then
13428 ac_lo=$ac_mid; break
13430 echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13433 ac_hi=`expr '(' $ac_mid ')' - 1`
13434 if test $ac_mid -le $ac_hi; then
13438 ac_mid=`expr 2 '*' $ac_mid`
13440 rm -f conftest.$ac_objext conftest.$ac_ext
13443 echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13448 rm -f conftest.$ac_objext conftest.$ac_ext
13450 rm -f conftest.$ac_objext conftest.$ac_ext
13451 # Binary search between lo and hi bounds.
13452 while test "x$ac_lo" != "x$ac_hi"; do
13453 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13454 cat >conftest.$ac_ext <<_ACEOF
13455 #line $LINENO "configure"
13458 cat confdefs.h >>conftest.$ac_ext
13459 cat >>conftest.$ac_ext <<_ACEOF
13460 /* end confdefs.h. */
13461 $ac_includes_default
13465 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13472 rm -f conftest.$ac_objext
13473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13474 (eval $ac_compile) 2>&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } &&
13478 { ac_try='test -s conftest.$ac_objext'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; }; then
13486 echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.$ac_ext >&5
13489 ac_lo=`expr '(' $ac_mid ')' + 1`
13491 rm -f conftest.$ac_objext conftest.$ac_ext
13494 ?*) ac_cv_sizeof_char=$ac_lo;;
13495 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13496 See \`config.log' for more details." >&5
13497 echo "$as_me: error: cannot compute sizeof (char), 77
13498 See \`config.log' for more details." >&2;}
13499 { (exit 1); exit 1; }; } ;;
13502 if test "$cross_compiling" = yes; then
13503 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13504 See \`config.log' for more details." >&5
13505 echo "$as_me: error: cannot run test program while cross compiling
13506 See \`config.log' for more details." >&2;}
13507 { (exit 1); exit 1; }; }
13509 cat >conftest.$ac_ext <<_ACEOF
13510 #line $LINENO "configure"
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 $ac_includes_default
13517 long longval () { return (long) (sizeof (char)); }
13518 unsigned long ulongval () { return (long) (sizeof (char)); }
13520 #include <stdlib.h>
13525 FILE *f = fopen ("conftest.val", "w");
13528 if (((long) (sizeof (char))) < 0)
13530 long i = longval ();
13531 if (i != ((long) (sizeof (char))))
13533 fprintf (f, "%ld\n", i);
13537 unsigned long i = ulongval ();
13538 if (i != ((long) (sizeof (char))))
13540 fprintf (f, "%lu\n", i);
13542 exit (ferror (f) || fclose (f) != 0);
13548 rm -f conftest$ac_exeext
13549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13550 (eval $ac_link) 2>&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); }; }; then
13559 ac_cv_sizeof_char=`cat conftest.val`
13561 echo "$as_me: program exited with status $ac_status" >&5
13562 echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13565 ( exit $ac_status )
13566 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13567 See \`config.log' for more details." >&5
13568 echo "$as_me: error: cannot compute sizeof (char), 77
13569 See \`config.log' for more details." >&2;}
13570 { (exit 1); exit 1; }; }
13572 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13577 ac_cv_sizeof_char=0
13580 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13581 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13582 cat >>confdefs.h <<_ACEOF
13583 #define SIZEOF_CHAR $ac_cv_sizeof_char
13587 echo "$as_me:$LINENO: checking for short int" >&5
13588 echo $ECHO_N "checking for short int... $ECHO_C" >&6
13589 if test "${ac_cv_type_short_int+set}" = set; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13592 cat >conftest.$ac_ext <<_ACEOF
13593 #line $LINENO "configure"
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599 $ac_includes_default
13603 if ((short int *) 0)
13605 if (sizeof (short int))
13611 rm -f conftest.$ac_objext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13613 (eval $ac_compile) 2>&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } &&
13617 { ac_try='test -s conftest.$ac_objext'
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; }; then
13623 ac_cv_type_short_int=yes
13625 echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13628 ac_cv_type_short_int=no
13630 rm -f conftest.$ac_objext conftest.$ac_ext
13632 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
13633 echo "${ECHO_T}$ac_cv_type_short_int" >&6
13635 echo "$as_me:$LINENO: checking size of short int" >&5
13636 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
13637 if test "${ac_cv_sizeof_short_int+set}" = set; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 if test "$ac_cv_type_short_int" = yes; then
13641 # The cast to unsigned long works around a bug in the HP C Compiler
13642 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13643 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13644 # This bug is HP SR number 8606223364.
13645 if test "$cross_compiling" = yes; then
13646 # Depending upon the size, compute the lo and hi bounds.
13647 cat >conftest.$ac_ext <<_ACEOF
13648 #line $LINENO "configure"
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h. */
13654 $ac_includes_default
13658 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
13665 rm -f conftest.$ac_objext
13666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13667 (eval $ac_compile) 2>&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); } &&
13671 { ac_try='test -s conftest.$ac_objext'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; }; then
13679 cat >conftest.$ac_ext <<_ACEOF
13680 #line $LINENO "configure"
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13686 $ac_includes_default
13690 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13697 rm -f conftest.$ac_objext
13698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13699 (eval $ac_compile) 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } &&
13703 { ac_try='test -s conftest.$ac_objext'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 ac_hi=$ac_mid; break
13711 echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13714 ac_lo=`expr $ac_mid + 1`
13715 if test $ac_lo -le $ac_mid; then
13719 ac_mid=`expr 2 '*' $ac_mid + 1`
13721 rm -f conftest.$ac_objext conftest.$ac_ext
13724 echo "$as_me: failed program was:" >&5
13725 sed 's/^/| /' conftest.$ac_ext >&5
13727 cat >conftest.$ac_ext <<_ACEOF
13728 #line $LINENO "configure"
13731 cat confdefs.h >>conftest.$ac_ext
13732 cat >>conftest.$ac_ext <<_ACEOF
13733 /* end confdefs.h. */
13734 $ac_includes_default
13738 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
13745 rm -f conftest.$ac_objext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13747 (eval $ac_compile) 2>&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -s conftest.$ac_objext'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; }; then
13759 cat >conftest.$ac_ext <<_ACEOF
13760 #line $LINENO "configure"
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13766 $ac_includes_default
13770 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
13777 rm -f conftest.$ac_objext
13778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13779 (eval $ac_compile) 2>&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } &&
13783 { ac_try='test -s conftest.$ac_objext'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; }; then
13789 ac_lo=$ac_mid; break
13791 echo "$as_me: failed program was:" >&5
13792 sed 's/^/| /' conftest.$ac_ext >&5
13794 ac_hi=`expr '(' $ac_mid ')' - 1`
13795 if test $ac_mid -le $ac_hi; then
13799 ac_mid=`expr 2 '*' $ac_mid`
13801 rm -f conftest.$ac_objext conftest.$ac_ext
13804 echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13809 rm -f conftest.$ac_objext conftest.$ac_ext
13811 rm -f conftest.$ac_objext conftest.$ac_ext
13812 # Binary search between lo and hi bounds.
13813 while test "x$ac_lo" != "x$ac_hi"; do
13814 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13815 cat >conftest.$ac_ext <<_ACEOF
13816 #line $LINENO "configure"
13819 cat confdefs.h >>conftest.$ac_ext
13820 cat >>conftest.$ac_ext <<_ACEOF
13821 /* end confdefs.h. */
13822 $ac_includes_default
13826 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13833 rm -f conftest.$ac_objext
13834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13835 (eval $ac_compile) 2>&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } &&
13839 { ac_try='test -s conftest.$ac_objext'
13840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841 (eval $ac_try) 2>&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; }; then
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13850 ac_lo=`expr '(' $ac_mid ')' + 1`
13852 rm -f conftest.$ac_objext conftest.$ac_ext
13855 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13856 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13857 See \`config.log' for more details." >&5
13858 echo "$as_me: error: cannot compute sizeof (short int), 77
13859 See \`config.log' for more details." >&2;}
13860 { (exit 1); exit 1; }; } ;;
13863 if test "$cross_compiling" = yes; then
13864 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13865 See \`config.log' for more details." >&5
13866 echo "$as_me: error: cannot run test program while cross compiling
13867 See \`config.log' for more details." >&2;}
13868 { (exit 1); exit 1; }; }
13870 cat >conftest.$ac_ext <<_ACEOF
13871 #line $LINENO "configure"
13874 cat confdefs.h >>conftest.$ac_ext
13875 cat >>conftest.$ac_ext <<_ACEOF
13876 /* end confdefs.h. */
13877 $ac_includes_default
13878 long longval () { return (long) (sizeof (short int)); }
13879 unsigned long ulongval () { return (long) (sizeof (short int)); }
13881 #include <stdlib.h>
13886 FILE *f = fopen ("conftest.val", "w");
13889 if (((long) (sizeof (short int))) < 0)
13891 long i = longval ();
13892 if (i != ((long) (sizeof (short int))))
13894 fprintf (f, "%ld\n", i);
13898 unsigned long i = ulongval ();
13899 if (i != ((long) (sizeof (short int))))
13901 fprintf (f, "%lu\n", i);
13903 exit (ferror (f) || fclose (f) != 0);
13909 rm -f conftest$ac_exeext
13910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13911 (eval $ac_link) 2>&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; }; then
13920 ac_cv_sizeof_short_int=`cat conftest.val`
13922 echo "$as_me: program exited with status $ac_status" >&5
13923 echo "$as_me: failed program was:" >&5
13924 sed 's/^/| /' conftest.$ac_ext >&5
13926 ( exit $ac_status )
13927 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13928 See \`config.log' for more details." >&5
13929 echo "$as_me: error: cannot compute sizeof (short int), 77
13930 See \`config.log' for more details." >&2;}
13931 { (exit 1); exit 1; }; }
13933 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13938 ac_cv_sizeof_short_int=0
13941 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13942 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13943 cat >>confdefs.h <<_ACEOF
13944 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13948 echo "$as_me:$LINENO: checking for int" >&5
13949 echo $ECHO_N "checking for int... $ECHO_C" >&6
13950 if test "${ac_cv_type_int+set}" = set; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 cat >conftest.$ac_ext <<_ACEOF
13954 #line $LINENO "configure"
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h. */
13960 $ac_includes_default
13972 rm -f conftest.$ac_objext
13973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13974 (eval $ac_compile) 2>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -s conftest.$ac_objext'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; }; then
13986 echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13991 rm -f conftest.$ac_objext conftest.$ac_ext
13993 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13994 echo "${ECHO_T}$ac_cv_type_int" >&6
13996 echo "$as_me:$LINENO: checking size of int" >&5
13997 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13998 if test "${ac_cv_sizeof_int+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14001 if test "$ac_cv_type_int" = yes; then
14002 # The cast to unsigned long works around a bug in the HP C Compiler
14003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14005 # This bug is HP SR number 8606223364.
14006 if test "$cross_compiling" = yes; then
14007 # Depending upon the size, compute the lo and hi bounds.
14008 cat >conftest.$ac_ext <<_ACEOF
14009 #line $LINENO "configure"
14012 cat confdefs.h >>conftest.$ac_ext
14013 cat >>conftest.$ac_ext <<_ACEOF
14014 /* end confdefs.h. */
14015 $ac_includes_default
14019 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14026 rm -f conftest.$ac_objext
14027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14028 (eval $ac_compile) 2>&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } &&
14032 { ac_try='test -s conftest.$ac_objext'
14033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034 (eval $ac_try) 2>&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; }; then
14040 cat >conftest.$ac_ext <<_ACEOF
14041 #line $LINENO "configure"
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h. */
14047 $ac_includes_default
14051 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14058 rm -f conftest.$ac_objext
14059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14060 (eval $ac_compile) 2>&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); } &&
14064 { ac_try='test -s conftest.$ac_objext'
14065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066 (eval $ac_try) 2>&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; }; then
14070 ac_hi=$ac_mid; break
14072 echo "$as_me: failed program was:" >&5
14073 sed 's/^/| /' conftest.$ac_ext >&5
14075 ac_lo=`expr $ac_mid + 1`
14076 if test $ac_lo -le $ac_mid; then
14080 ac_mid=`expr 2 '*' $ac_mid + 1`
14082 rm -f conftest.$ac_objext conftest.$ac_ext
14085 echo "$as_me: failed program was:" >&5
14086 sed 's/^/| /' conftest.$ac_ext >&5
14088 cat >conftest.$ac_ext <<_ACEOF
14089 #line $LINENO "configure"
14092 cat confdefs.h >>conftest.$ac_ext
14093 cat >>conftest.$ac_ext <<_ACEOF
14094 /* end confdefs.h. */
14095 $ac_includes_default
14099 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14106 rm -f conftest.$ac_objext
14107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14108 (eval $ac_compile) 2>&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } &&
14112 { ac_try='test -s conftest.$ac_objext'
14113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14114 (eval $ac_try) 2>&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }; }; then
14120 cat >conftest.$ac_ext <<_ACEOF
14121 #line $LINENO "configure"
14124 cat confdefs.h >>conftest.$ac_ext
14125 cat >>conftest.$ac_ext <<_ACEOF
14126 /* end confdefs.h. */
14127 $ac_includes_default
14131 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14138 rm -f conftest.$ac_objext
14139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14140 (eval $ac_compile) 2>&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); } &&
14144 { ac_try='test -s conftest.$ac_objext'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }; then
14150 ac_lo=$ac_mid; break
14152 echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14155 ac_hi=`expr '(' $ac_mid ')' - 1`
14156 if test $ac_mid -le $ac_hi; then
14160 ac_mid=`expr 2 '*' $ac_mid`
14162 rm -f conftest.$ac_objext conftest.$ac_ext
14165 echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.$ac_ext >&5
14170 rm -f conftest.$ac_objext conftest.$ac_ext
14172 rm -f conftest.$ac_objext conftest.$ac_ext
14173 # Binary search between lo and hi bounds.
14174 while test "x$ac_lo" != "x$ac_hi"; do
14175 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14176 cat >conftest.$ac_ext <<_ACEOF
14177 #line $LINENO "configure"
14180 cat confdefs.h >>conftest.$ac_ext
14181 cat >>conftest.$ac_ext <<_ACEOF
14182 /* end confdefs.h. */
14183 $ac_includes_default
14187 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14194 rm -f conftest.$ac_objext
14195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14196 (eval $ac_compile) 2>&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } &&
14200 { ac_try='test -s conftest.$ac_objext'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; }; then
14208 echo "$as_me: failed program was:" >&5
14209 sed 's/^/| /' conftest.$ac_ext >&5
14211 ac_lo=`expr '(' $ac_mid ')' + 1`
14213 rm -f conftest.$ac_objext conftest.$ac_ext
14216 ?*) ac_cv_sizeof_int=$ac_lo;;
14217 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14218 See \`config.log' for more details." >&5
14219 echo "$as_me: error: cannot compute sizeof (int), 77
14220 See \`config.log' for more details." >&2;}
14221 { (exit 1); exit 1; }; } ;;
14224 if test "$cross_compiling" = yes; then
14225 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14226 See \`config.log' for more details." >&5
14227 echo "$as_me: error: cannot run test program while cross compiling
14228 See \`config.log' for more details." >&2;}
14229 { (exit 1); exit 1; }; }
14231 cat >conftest.$ac_ext <<_ACEOF
14232 #line $LINENO "configure"
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14238 $ac_includes_default
14239 long longval () { return (long) (sizeof (int)); }
14240 unsigned long ulongval () { return (long) (sizeof (int)); }
14242 #include <stdlib.h>
14247 FILE *f = fopen ("conftest.val", "w");
14250 if (((long) (sizeof (int))) < 0)
14252 long i = longval ();
14253 if (i != ((long) (sizeof (int))))
14255 fprintf (f, "%ld\n", i);
14259 unsigned long i = ulongval ();
14260 if (i != ((long) (sizeof (int))))
14262 fprintf (f, "%lu\n", i);
14264 exit (ferror (f) || fclose (f) != 0);
14270 rm -f conftest$ac_exeext
14271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14272 (eval $ac_link) 2>&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }; then
14281 ac_cv_sizeof_int=`cat conftest.val`
14283 echo "$as_me: program exited with status $ac_status" >&5
14284 echo "$as_me: failed program was:" >&5
14285 sed 's/^/| /' conftest.$ac_ext >&5
14287 ( exit $ac_status )
14288 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14289 See \`config.log' for more details." >&5
14290 echo "$as_me: error: cannot compute sizeof (int), 77
14291 See \`config.log' for more details." >&2;}
14292 { (exit 1); exit 1; }; }
14294 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14302 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14303 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14304 cat >>confdefs.h <<_ACEOF
14305 #define SIZEOF_INT $ac_cv_sizeof_int
14309 echo "$as_me:$LINENO: checking for long int" >&5
14310 echo $ECHO_N "checking for long int... $ECHO_C" >&6
14311 if test "${ac_cv_type_long_int+set}" = set; then
14312 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 cat >conftest.$ac_ext <<_ACEOF
14315 #line $LINENO "configure"
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h. */
14321 $ac_includes_default
14325 if ((long int *) 0)
14327 if (sizeof (long int))
14333 rm -f conftest.$ac_objext
14334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14335 (eval $ac_compile) 2>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } &&
14339 { ac_try='test -s conftest.$ac_objext'
14340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341 (eval $ac_try) 2>&5
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); }; }; then
14345 ac_cv_type_long_int=yes
14347 echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.$ac_ext >&5
14350 ac_cv_type_long_int=no
14352 rm -f conftest.$ac_objext conftest.$ac_ext
14354 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
14355 echo "${ECHO_T}$ac_cv_type_long_int" >&6
14357 echo "$as_me:$LINENO: checking size of long int" >&5
14358 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
14359 if test "${ac_cv_sizeof_long_int+set}" = set; then
14360 echo $ECHO_N "(cached) $ECHO_C" >&6
14362 if test "$ac_cv_type_long_int" = yes; then
14363 # The cast to unsigned long works around a bug in the HP C Compiler
14364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14366 # This bug is HP SR number 8606223364.
14367 if test "$cross_compiling" = yes; then
14368 # Depending upon the size, compute the lo and hi bounds.
14369 cat >conftest.$ac_ext <<_ACEOF
14370 #line $LINENO "configure"
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h. */
14376 $ac_includes_default
14380 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
14387 rm -f conftest.$ac_objext
14388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14389 (eval $ac_compile) 2>&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } &&
14393 { ac_try='test -s conftest.$ac_objext'
14394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14395 (eval $ac_try) 2>&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }; }; then
14401 cat >conftest.$ac_ext <<_ACEOF
14402 #line $LINENO "configure"
14405 cat confdefs.h >>conftest.$ac_ext
14406 cat >>conftest.$ac_ext <<_ACEOF
14407 /* end confdefs.h. */
14408 $ac_includes_default
14412 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14419 rm -f conftest.$ac_objext
14420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14421 (eval $ac_compile) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } &&
14425 { ac_try='test -s conftest.$ac_objext'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14431 ac_hi=$ac_mid; break
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14436 ac_lo=`expr $ac_mid + 1`
14437 if test $ac_lo -le $ac_mid; then
14441 ac_mid=`expr 2 '*' $ac_mid + 1`
14443 rm -f conftest.$ac_objext conftest.$ac_ext
14446 echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14449 cat >conftest.$ac_ext <<_ACEOF
14450 #line $LINENO "configure"
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14456 $ac_includes_default
14460 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
14467 rm -f conftest.$ac_objext
14468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14469 (eval $ac_compile) 2>&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); } &&
14473 { ac_try='test -s conftest.$ac_objext'
14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475 (eval $ac_try) 2>&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; }; then
14481 cat >conftest.$ac_ext <<_ACEOF
14482 #line $LINENO "configure"
14485 cat confdefs.h >>conftest.$ac_ext
14486 cat >>conftest.$ac_ext <<_ACEOF
14487 /* end confdefs.h. */
14488 $ac_includes_default
14492 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
14499 rm -f conftest.$ac_objext
14500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14501 (eval $ac_compile) 2>&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); } &&
14505 { ac_try='test -s conftest.$ac_objext'
14506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14507 (eval $ac_try) 2>&5
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); }; }; then
14511 ac_lo=$ac_mid; break
14513 echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14516 ac_hi=`expr '(' $ac_mid ')' - 1`
14517 if test $ac_mid -le $ac_hi; then
14521 ac_mid=`expr 2 '*' $ac_mid`
14523 rm -f conftest.$ac_objext conftest.$ac_ext
14526 echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14531 rm -f conftest.$ac_objext conftest.$ac_ext
14533 rm -f conftest.$ac_objext conftest.$ac_ext
14534 # Binary search between lo and hi bounds.
14535 while test "x$ac_lo" != "x$ac_hi"; do
14536 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14537 cat >conftest.$ac_ext <<_ACEOF
14538 #line $LINENO "configure"
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14544 $ac_includes_default
14548 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14555 rm -f conftest.$ac_objext
14556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14557 (eval $ac_compile) 2>&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } &&
14561 { ac_try='test -s conftest.$ac_objext'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }; then
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14572 ac_lo=`expr '(' $ac_mid ')' + 1`
14574 rm -f conftest.$ac_objext conftest.$ac_ext
14577 ?*) ac_cv_sizeof_long_int=$ac_lo;;
14578 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14579 See \`config.log' for more details." >&5
14580 echo "$as_me: error: cannot compute sizeof (long int), 77
14581 See \`config.log' for more details." >&2;}
14582 { (exit 1); exit 1; }; } ;;
14585 if test "$cross_compiling" = yes; then
14586 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14587 See \`config.log' for more details." >&5
14588 echo "$as_me: error: cannot run test program while cross compiling
14589 See \`config.log' for more details." >&2;}
14590 { (exit 1); exit 1; }; }
14592 cat >conftest.$ac_ext <<_ACEOF
14593 #line $LINENO "configure"
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h. */
14599 $ac_includes_default
14600 long longval () { return (long) (sizeof (long int)); }
14601 unsigned long ulongval () { return (long) (sizeof (long int)); }
14603 #include <stdlib.h>
14608 FILE *f = fopen ("conftest.val", "w");
14611 if (((long) (sizeof (long int))) < 0)
14613 long i = longval ();
14614 if (i != ((long) (sizeof (long int))))
14616 fprintf (f, "%ld\n", i);
14620 unsigned long i = ulongval ();
14621 if (i != ((long) (sizeof (long int))))
14623 fprintf (f, "%lu\n", i);
14625 exit (ferror (f) || fclose (f) != 0);
14631 rm -f conftest$ac_exeext
14632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14633 (eval $ac_link) 2>&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638 (eval $ac_try) 2>&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; }; then
14642 ac_cv_sizeof_long_int=`cat conftest.val`
14644 echo "$as_me: program exited with status $ac_status" >&5
14645 echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14648 ( exit $ac_status )
14649 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14650 See \`config.log' for more details." >&5
14651 echo "$as_me: error: cannot compute sizeof (long int), 77
14652 See \`config.log' for more details." >&2;}
14653 { (exit 1); exit 1; }; }
14655 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14660 ac_cv_sizeof_long_int=0
14663 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
14664 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
14665 cat >>confdefs.h <<_ACEOF
14666 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14670 echo "$as_me:$LINENO: checking for long long int" >&5
14671 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14672 if test "${ac_cv_type_long_long_int+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14675 cat >conftest.$ac_ext <<_ACEOF
14676 #line $LINENO "configure"
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14682 $ac_includes_default
14686 if ((long long int *) 0)
14688 if (sizeof (long long int))
14694 rm -f conftest.$ac_objext
14695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14696 (eval $ac_compile) 2>&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } &&
14700 { ac_try='test -s conftest.$ac_objext'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; }; then
14706 ac_cv_type_long_long_int=yes
14708 echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14711 ac_cv_type_long_long_int=no
14713 rm -f conftest.$ac_objext conftest.$ac_ext
14715 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14716 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14718 echo "$as_me:$LINENO: checking size of long long int" >&5
14719 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
14720 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14723 if test "$ac_cv_type_long_long_int" = yes; then
14724 # The cast to unsigned long works around a bug in the HP C Compiler
14725 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14726 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14727 # This bug is HP SR number 8606223364.
14728 if test "$cross_compiling" = yes; then
14729 # Depending upon the size, compute the lo and hi bounds.
14730 cat >conftest.$ac_ext <<_ACEOF
14731 #line $LINENO "configure"
14734 cat confdefs.h >>conftest.$ac_ext
14735 cat >>conftest.$ac_ext <<_ACEOF
14736 /* end confdefs.h. */
14737 $ac_includes_default
14741 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
14748 rm -f conftest.$ac_objext
14749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14750 (eval $ac_compile) 2>&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); } &&
14754 { ac_try='test -s conftest.$ac_objext'
14755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756 (eval $ac_try) 2>&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; }; then
14762 cat >conftest.$ac_ext <<_ACEOF
14763 #line $LINENO "configure"
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h. */
14769 $ac_includes_default
14773 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14780 rm -f conftest.$ac_objext
14781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14782 (eval $ac_compile) 2>&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } &&
14786 { ac_try='test -s conftest.$ac_objext'
14787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788 (eval $ac_try) 2>&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); }; }; then
14792 ac_hi=$ac_mid; break
14794 echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.$ac_ext >&5
14797 ac_lo=`expr $ac_mid + 1`
14798 if test $ac_lo -le $ac_mid; then
14802 ac_mid=`expr 2 '*' $ac_mid + 1`
14804 rm -f conftest.$ac_objext conftest.$ac_ext
14807 echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14810 cat >conftest.$ac_ext <<_ACEOF
14811 #line $LINENO "configure"
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14817 $ac_includes_default
14821 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
14828 rm -f conftest.$ac_objext
14829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14830 (eval $ac_compile) 2>&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } &&
14834 { ac_try='test -s conftest.$ac_objext'
14835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; }; then
14842 cat >conftest.$ac_ext <<_ACEOF
14843 #line $LINENO "configure"
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14849 $ac_includes_default
14853 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
14860 rm -f conftest.$ac_objext
14861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14862 (eval $ac_compile) 2>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } &&
14866 { ac_try='test -s conftest.$ac_objext'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; }; then
14872 ac_lo=$ac_mid; break
14874 echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14877 ac_hi=`expr '(' $ac_mid ')' - 1`
14878 if test $ac_mid -le $ac_hi; then
14882 ac_mid=`expr 2 '*' $ac_mid`
14884 rm -f conftest.$ac_objext conftest.$ac_ext
14887 echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14892 rm -f conftest.$ac_objext conftest.$ac_ext
14894 rm -f conftest.$ac_objext conftest.$ac_ext
14895 # Binary search between lo and hi bounds.
14896 while test "x$ac_lo" != "x$ac_hi"; do
14897 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14898 cat >conftest.$ac_ext <<_ACEOF
14899 #line $LINENO "configure"
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h. */
14905 $ac_includes_default
14909 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14916 rm -f conftest.$ac_objext
14917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14918 (eval $ac_compile) 2>&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); } &&
14922 { ac_try='test -s conftest.$ac_objext'
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; }; then
14930 echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14933 ac_lo=`expr '(' $ac_mid ')' + 1`
14935 rm -f conftest.$ac_objext conftest.$ac_ext
14938 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14939 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14940 See \`config.log' for more details." >&5
14941 echo "$as_me: error: cannot compute sizeof (long long int), 77
14942 See \`config.log' for more details." >&2;}
14943 { (exit 1); exit 1; }; } ;;
14946 if test "$cross_compiling" = yes; then
14947 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14948 See \`config.log' for more details." >&5
14949 echo "$as_me: error: cannot run test program while cross compiling
14950 See \`config.log' for more details." >&2;}
14951 { (exit 1); exit 1; }; }
14953 cat >conftest.$ac_ext <<_ACEOF
14954 #line $LINENO "configure"
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14960 $ac_includes_default
14961 long longval () { return (long) (sizeof (long long int)); }
14962 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14964 #include <stdlib.h>
14969 FILE *f = fopen ("conftest.val", "w");
14972 if (((long) (sizeof (long long int))) < 0)
14974 long i = longval ();
14975 if (i != ((long) (sizeof (long long int))))
14977 fprintf (f, "%ld\n", i);
14981 unsigned long i = ulongval ();
14982 if (i != ((long) (sizeof (long long int))))
14984 fprintf (f, "%lu\n", i);
14986 exit (ferror (f) || fclose (f) != 0);
14992 rm -f conftest$ac_exeext
14993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14994 (eval $ac_link) 2>&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; }; then
15003 ac_cv_sizeof_long_long_int=`cat conftest.val`
15005 echo "$as_me: program exited with status $ac_status" >&5
15006 echo "$as_me: failed program was:" >&5
15007 sed 's/^/| /' conftest.$ac_ext >&5
15009 ( exit $ac_status )
15010 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
15011 See \`config.log' for more details." >&5
15012 echo "$as_me: error: cannot compute sizeof (long long int), 77
15013 See \`config.log' for more details." >&2;}
15014 { (exit 1); exit 1; }; }
15016 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15021 ac_cv_sizeof_long_long_int=0
15024 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
15025 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
15026 cat >>confdefs.h <<_ACEOF
15027 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
15031 echo "$as_me:$LINENO: checking for int *" >&5
15032 echo $ECHO_N "checking for int *... $ECHO_C" >&6
15033 if test "${ac_cv_type_int_p+set}" = set; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15036 cat >conftest.$ac_ext <<_ACEOF
15037 #line $LINENO "configure"
15040 cat confdefs.h >>conftest.$ac_ext
15041 cat >>conftest.$ac_ext <<_ACEOF
15042 /* end confdefs.h. */
15043 $ac_includes_default
15049 if (sizeof (int *))
15055 rm -f conftest.$ac_objext
15056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15057 (eval $ac_compile) 2>&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); } &&
15061 { ac_try='test -s conftest.$ac_objext'
15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; }; then
15067 ac_cv_type_int_p=yes
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072 ac_cv_type_int_p=no
15074 rm -f conftest.$ac_objext conftest.$ac_ext
15076 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
15077 echo "${ECHO_T}$ac_cv_type_int_p" >&6
15079 echo "$as_me:$LINENO: checking size of int *" >&5
15080 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
15081 if test "${ac_cv_sizeof_int_p+set}" = set; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15084 if test "$ac_cv_type_int_p" = yes; then
15085 # The cast to unsigned long works around a bug in the HP C Compiler
15086 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15087 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15088 # This bug is HP SR number 8606223364.
15089 if test "$cross_compiling" = yes; then
15090 # Depending upon the size, compute the lo and hi bounds.
15091 cat >conftest.$ac_ext <<_ACEOF
15092 #line $LINENO "configure"
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15098 $ac_includes_default
15102 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
15109 rm -f conftest.$ac_objext
15110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15111 (eval $ac_compile) 2>&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } &&
15115 { ac_try='test -s conftest.$ac_objext'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15123 cat >conftest.$ac_ext <<_ACEOF
15124 #line $LINENO "configure"
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h. */
15130 $ac_includes_default
15134 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15141 rm -f conftest.$ac_objext
15142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15143 (eval $ac_compile) 2>&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try='test -s conftest.$ac_objext'
15148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149 (eval $ac_try) 2>&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; }; then
15153 ac_hi=$ac_mid; break
15155 echo "$as_me: failed program was:" >&5
15156 sed 's/^/| /' conftest.$ac_ext >&5
15158 ac_lo=`expr $ac_mid + 1`
15159 if test $ac_lo -le $ac_mid; then
15163 ac_mid=`expr 2 '*' $ac_mid + 1`
15165 rm -f conftest.$ac_objext conftest.$ac_ext
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15171 cat >conftest.$ac_ext <<_ACEOF
15172 #line $LINENO "configure"
15175 cat confdefs.h >>conftest.$ac_ext
15176 cat >>conftest.$ac_ext <<_ACEOF
15177 /* end confdefs.h. */
15178 $ac_includes_default
15182 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
15189 rm -f conftest.$ac_objext
15190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15191 (eval $ac_compile) 2>&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } &&
15195 { ac_try='test -s conftest.$ac_objext'
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; }; then
15203 cat >conftest.$ac_ext <<_ACEOF
15204 #line $LINENO "configure"
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15210 $ac_includes_default
15214 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
15221 rm -f conftest.$ac_objext
15222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15223 (eval $ac_compile) 2>&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } &&
15227 { ac_try='test -s conftest.$ac_objext'
15228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15229 (eval $ac_try) 2>&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); }; }; then
15233 ac_lo=$ac_mid; break
15235 echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15238 ac_hi=`expr '(' $ac_mid ')' - 1`
15239 if test $ac_mid -le $ac_hi; then
15243 ac_mid=`expr 2 '*' $ac_mid`
15245 rm -f conftest.$ac_objext conftest.$ac_ext
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15253 rm -f conftest.$ac_objext conftest.$ac_ext
15255 rm -f conftest.$ac_objext conftest.$ac_ext
15256 # Binary search between lo and hi bounds.
15257 while test "x$ac_lo" != "x$ac_hi"; do
15258 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15259 cat >conftest.$ac_ext <<_ACEOF
15260 #line $LINENO "configure"
15263 cat confdefs.h >>conftest.$ac_ext
15264 cat >>conftest.$ac_ext <<_ACEOF
15265 /* end confdefs.h. */
15266 $ac_includes_default
15270 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15277 rm -f conftest.$ac_objext
15278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15279 (eval $ac_compile) 2>&5
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); } &&
15283 { ac_try='test -s conftest.$ac_objext'
15284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15285 (eval $ac_try) 2>&5
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); }; }; then
15291 echo "$as_me: failed program was:" >&5
15292 sed 's/^/| /' conftest.$ac_ext >&5
15294 ac_lo=`expr '(' $ac_mid ')' + 1`
15296 rm -f conftest.$ac_objext conftest.$ac_ext
15299 ?*) ac_cv_sizeof_int_p=$ac_lo;;
15300 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15301 See \`config.log' for more details." >&5
15302 echo "$as_me: error: cannot compute sizeof (int *), 77
15303 See \`config.log' for more details." >&2;}
15304 { (exit 1); exit 1; }; } ;;
15307 if test "$cross_compiling" = yes; then
15308 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15309 See \`config.log' for more details." >&5
15310 echo "$as_me: error: cannot run test program while cross compiling
15311 See \`config.log' for more details." >&2;}
15312 { (exit 1); exit 1; }; }
15314 cat >conftest.$ac_ext <<_ACEOF
15315 #line $LINENO "configure"
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h. */
15321 $ac_includes_default
15322 long longval () { return (long) (sizeof (int *)); }
15323 unsigned long ulongval () { return (long) (sizeof (int *)); }
15325 #include <stdlib.h>
15330 FILE *f = fopen ("conftest.val", "w");
15333 if (((long) (sizeof (int *))) < 0)
15335 long i = longval ();
15336 if (i != ((long) (sizeof (int *))))
15338 fprintf (f, "%ld\n", i);
15342 unsigned long i = ulongval ();
15343 if (i != ((long) (sizeof (int *))))
15345 fprintf (f, "%lu\n", i);
15347 exit (ferror (f) || fclose (f) != 0);
15353 rm -f conftest$ac_exeext
15354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15355 (eval $ac_link) 2>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; }; then
15364 ac_cv_sizeof_int_p=`cat conftest.val`
15366 echo "$as_me: program exited with status $ac_status" >&5
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15370 ( exit $ac_status )
15371 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15372 See \`config.log' for more details." >&5
15373 echo "$as_me: error: cannot compute sizeof (int *), 77
15374 See \`config.log' for more details." >&2;}
15375 { (exit 1); exit 1; }; }
15377 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15382 ac_cv_sizeof_int_p=0
15385 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
15386 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
15387 cat >>confdefs.h <<_ACEOF
15388 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
15393 # Check for sys/types.h types
15394 echo "$as_me:$LINENO: checking for u_int type" >&5
15395 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
15396 if test "${ac_cv_have_u_int+set}" = set; then
15397 echo $ECHO_N "(cached) $ECHO_C" >&6
15400 cat >conftest.$ac_ext <<_ACEOF
15401 #line $LINENO "configure"
15404 cat confdefs.h >>conftest.$ac_ext
15405 cat >>conftest.$ac_ext <<_ACEOF
15406 /* end confdefs.h. */
15407 #include <sys/types.h>
15416 rm -f conftest.$ac_objext
15417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15418 (eval $ac_compile) 2>&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } &&
15422 { ac_try='test -s conftest.$ac_objext'
15423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15424 (eval $ac_try) 2>&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; }; then
15428 ac_cv_have_u_int="yes"
15430 echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15433 ac_cv_have_u_int="no"
15436 rm -f conftest.$ac_objext conftest.$ac_ext
15439 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
15440 echo "${ECHO_T}$ac_cv_have_u_int" >&6
15441 if test "x$ac_cv_have_u_int" = "xyes" ; then
15442 cat >>confdefs.h <<\_ACEOF
15443 #define HAVE_U_INT 1
15449 echo "$as_me:$LINENO: checking for intmax_t type" >&5
15450 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
15451 if test "${ac_cv_have_intmax_t+set}" = set; then
15452 echo $ECHO_N "(cached) $ECHO_C" >&6
15455 cat >conftest.$ac_ext <<_ACEOF
15456 #line $LINENO "configure"
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h. */
15462 #include <sys/types.h>
15471 rm -f conftest.$ac_objext
15472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15473 (eval $ac_compile) 2>&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); } &&
15477 { ac_try='test -s conftest.$ac_objext'
15478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; }; then
15483 ac_cv_have_intmax_t="yes"
15485 echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15489 cat >conftest.$ac_ext <<_ACEOF
15490 #line $LINENO "configure"
15493 cat confdefs.h >>conftest.$ac_ext
15494 cat >>conftest.$ac_ext <<_ACEOF
15495 /* end confdefs.h. */
15496 #include <stdint.h>
15505 rm -f conftest.$ac_objext
15506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15507 (eval $ac_compile) 2>&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } &&
15511 { ac_try='test -s conftest.$ac_objext'
15512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513 (eval $ac_try) 2>&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; }; then
15517 ac_cv_have_intmax_t="yes"
15519 echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15522 ac_cv_have_intmax_t="no"
15525 rm -f conftest.$ac_objext conftest.$ac_ext
15529 rm -f conftest.$ac_objext conftest.$ac_ext
15533 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
15534 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
15535 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
15536 cat >>confdefs.h <<\_ACEOF
15537 #define HAVE_INTMAX_T 1
15544 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
15545 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
15546 if test "${ac_cv_have_u_intmax_t+set}" = set; then
15547 echo $ECHO_N "(cached) $ECHO_C" >&6
15550 cat >conftest.$ac_ext <<_ACEOF
15551 #line $LINENO "configure"
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15557 #include <sys/types.h>
15561 u_intmax_t a; a = 1;
15566 rm -f conftest.$ac_objext
15567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15568 (eval $ac_compile) 2>&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } &&
15572 { ac_try='test -s conftest.$ac_objext'
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; }; then
15578 ac_cv_have_u_intmax_t="yes"
15580 echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.$ac_ext >&5
15584 cat >conftest.$ac_ext <<_ACEOF
15585 #line $LINENO "configure"
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h. */
15591 #include <stdint.h>
15595 u_intmax_t a; a = 1;
15600 rm -f conftest.$ac_objext
15601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15602 (eval $ac_compile) 2>&5
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } &&
15606 { ac_try='test -s conftest.$ac_objext'
15607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608 (eval $ac_try) 2>&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; }; then
15612 ac_cv_have_u_intmax_t="yes"
15614 echo "$as_me: failed program was:" >&5
15615 sed 's/^/| /' conftest.$ac_ext >&5
15617 ac_cv_have_u_intmax_t="no"
15620 rm -f conftest.$ac_objext conftest.$ac_ext
15624 rm -f conftest.$ac_objext conftest.$ac_ext
15627 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
15628 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
15629 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
15630 cat >>confdefs.h <<\_ACEOF
15631 #define HAVE_U_INTMAX_T 1
15638 echo "$as_me:$LINENO: checking for intXX_t types" >&5
15639 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
15640 if test "${ac_cv_have_intxx_t+set}" = set; then
15641 echo $ECHO_N "(cached) $ECHO_C" >&6
15644 cat >conftest.$ac_ext <<_ACEOF
15645 #line $LINENO "configure"
15648 cat confdefs.h >>conftest.$ac_ext
15649 cat >>conftest.$ac_ext <<_ACEOF
15650 /* end confdefs.h. */
15651 #include <sys/types.h>
15655 int8_t a; int16_t b; int32_t c; a = b = c = 1;
15660 rm -f conftest.$ac_objext
15661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15662 (eval $ac_compile) 2>&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } &&
15666 { ac_try='test -s conftest.$ac_objext'
15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668 (eval $ac_try) 2>&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; }; then
15672 ac_cv_have_intxx_t="yes"
15674 echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15677 ac_cv_have_intxx_t="no"
15680 rm -f conftest.$ac_objext conftest.$ac_ext
15683 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
15684 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
15685 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
15686 cat >>confdefs.h <<\_ACEOF
15687 #define HAVE_INTXX_T 1
15693 echo "$as_me:$LINENO: checking for int64_t type" >&5
15694 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
15695 if test "${ac_cv_have_int64_t+set}" = set; then
15696 echo $ECHO_N "(cached) $ECHO_C" >&6
15699 cat >conftest.$ac_ext <<_ACEOF
15700 #line $LINENO "configure"
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h. */
15706 #include <sys/types.h>
15715 rm -f conftest.$ac_objext
15716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15717 (eval $ac_compile) 2>&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); } &&
15721 { ac_try='test -s conftest.$ac_objext'
15722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723 (eval $ac_try) 2>&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15727 ac_cv_have_int64_t="yes"
15729 echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15732 ac_cv_have_int64_t="no"
15735 rm -f conftest.$ac_objext conftest.$ac_ext
15738 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
15739 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
15740 if test "x$ac_cv_have_int64_t" = "xyes" ; then
15741 cat >>confdefs.h <<\_ACEOF
15742 #define HAVE_INT64_T 1
15748 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
15749 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
15750 if test "${ac_cv_have_u_intxx_t+set}" = set; then
15751 echo $ECHO_N "(cached) $ECHO_C" >&6
15754 cat >conftest.$ac_ext <<_ACEOF
15755 #line $LINENO "configure"
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15761 #include <sys/types.h>
15765 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
15770 rm -f conftest.$ac_objext
15771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15772 (eval $ac_compile) 2>&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } &&
15776 { ac_try='test -s conftest.$ac_objext'
15777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778 (eval $ac_try) 2>&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; }; then
15782 ac_cv_have_u_intxx_t="yes"
15784 echo "$as_me: failed program was:" >&5
15785 sed 's/^/| /' conftest.$ac_ext >&5
15787 ac_cv_have_u_intxx_t="no"
15790 rm -f conftest.$ac_objext conftest.$ac_ext
15793 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
15794 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
15795 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
15796 cat >>confdefs.h <<\_ACEOF
15797 #define HAVE_U_INTXX_T 1
15803 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
15804 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
15805 if test "${ac_cv_have_u_int64_t+set}" = set; then
15806 echo $ECHO_N "(cached) $ECHO_C" >&6
15809 cat >conftest.$ac_ext <<_ACEOF
15810 #line $LINENO "configure"
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15816 #include <sys/types.h>
15820 u_int64_t a; a = 1;
15825 rm -f conftest.$ac_objext
15826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15827 (eval $ac_compile) 2>&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); } &&
15831 { ac_try='test -s conftest.$ac_objext'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }; then
15837 ac_cv_have_u_int64_t="yes"
15839 echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.$ac_ext >&5
15842 ac_cv_have_u_int64_t="no"
15845 rm -f conftest.$ac_objext conftest.$ac_ext
15848 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
15849 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
15850 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15851 cat >>confdefs.h <<\_ACEOF
15852 #define HAVE_U_INT64_T 1
15858 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15859 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15861 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15862 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15863 cat >conftest.$ac_ext <<_ACEOF
15864 #line $LINENO "configure"
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h. */
15870 #include <sys/bitypes.h>
15874 int8_t a; int16_t b; int32_t c;
15875 u_int8_t e; u_int16_t f; u_int32_t g;
15876 a = b = c = e = f = g = 1;
15881 rm -f conftest.$ac_objext
15882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15883 (eval $ac_compile) 2>&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } &&
15887 { ac_try='test -s conftest.$ac_objext'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }; then
15893 cat >>confdefs.h <<\_ACEOF
15894 #define HAVE_U_INTXX_T 1
15897 cat >>confdefs.h <<\_ACEOF
15898 #define HAVE_INTXX_T 1
15901 cat >>confdefs.h <<\_ACEOF
15902 #define HAVE_SYS_BITYPES_H 1
15905 echo "$as_me:$LINENO: result: yes" >&5
15906 echo "${ECHO_T}yes" >&6
15908 echo "$as_me: failed program was:" >&5
15909 sed 's/^/| /' conftest.$ac_ext >&5
15911 echo "$as_me:$LINENO: result: no" >&5
15912 echo "${ECHO_T}no" >&6
15915 rm -f conftest.$ac_objext conftest.$ac_ext
15918 if test -z "$have_u_intxx_t" ; then
15919 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15920 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15921 if test "${ac_cv_have_uintxx_t+set}" = set; then
15922 echo $ECHO_N "(cached) $ECHO_C" >&6
15925 cat >conftest.$ac_ext <<_ACEOF
15926 #line $LINENO "configure"
15929 cat confdefs.h >>conftest.$ac_ext
15930 cat >>conftest.$ac_ext <<_ACEOF
15931 /* end confdefs.h. */
15932 #include <sys/types.h>
15936 uint8_t a; uint16_t b;
15937 uint32_t c; a = b = c = 1;
15942 rm -f conftest.$ac_objext
15943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15944 (eval $ac_compile) 2>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } &&
15948 { ac_try='test -s conftest.$ac_objext'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 ac_cv_have_uintxx_t="yes"
15956 echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.$ac_ext >&5
15959 ac_cv_have_uintxx_t="no"
15962 rm -f conftest.$ac_objext conftest.$ac_ext
15965 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15966 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15967 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15968 cat >>confdefs.h <<\_ACEOF
15969 #define HAVE_UINTXX_T 1
15975 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15976 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15978 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15979 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15980 cat >conftest.$ac_ext <<_ACEOF
15981 #line $LINENO "configure"
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h. */
15987 #include <sys/bitypes.h>
15991 int64_t a; u_int64_t b;
15997 rm -f conftest.$ac_objext
15998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15999 (eval $ac_compile) 2>&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); } &&
16003 { ac_try='test -s conftest.$ac_objext'
16004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005 (eval $ac_try) 2>&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); }; }; then
16009 cat >>confdefs.h <<\_ACEOF
16010 #define HAVE_U_INT64_T 1
16013 cat >>confdefs.h <<\_ACEOF
16014 #define HAVE_INT64_T 1
16017 echo "$as_me:$LINENO: result: yes" >&5
16018 echo "${ECHO_T}yes" >&6
16020 echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16023 echo "$as_me:$LINENO: result: no" >&5
16024 echo "${ECHO_T}no" >&6
16027 rm -f conftest.$ac_objext conftest.$ac_ext
16030 if (test -z "$have_uintxx_t" && \
16031 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16033 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
16034 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
16035 cat >conftest.$ac_ext <<_ACEOF
16036 #line $LINENO "configure"
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16042 #include <sys/bitypes.h>
16046 uint8_t a; uint16_t b;
16047 uint32_t c; a = b = c = 1;
16052 rm -f conftest.$ac_objext
16053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16054 (eval $ac_compile) 2>&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); } &&
16058 { ac_try='test -s conftest.$ac_objext'
16059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16060 (eval $ac_try) 2>&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); }; }; then
16064 cat >>confdefs.h <<\_ACEOF
16065 #define HAVE_UINTXX_T 1
16068 echo "$as_me:$LINENO: result: yes" >&5
16069 echo "${ECHO_T}yes" >&6
16071 echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16074 echo "$as_me:$LINENO: result: no" >&5
16075 echo "${ECHO_T}no" >&6
16078 rm -f conftest.$ac_objext conftest.$ac_ext
16114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16115 echo "$as_me:$LINENO: checking for $ac_func" >&5
16116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16117 if eval "test \"\${$as_ac_var+set}\" = set"; then
16118 echo $ECHO_N "(cached) $ECHO_C" >&6
16120 cat >conftest.$ac_ext <<_ACEOF
16121 #line $LINENO "configure"
16124 cat confdefs.h >>conftest.$ac_ext
16125 cat >>conftest.$ac_ext <<_ACEOF
16126 /* end confdefs.h. */
16127 /* System header to define __stub macros and hopefully few prototypes,
16128 which can conflict with char $ac_func (); below.
16129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16130 <limits.h> exists even on freestanding compilers. */
16132 # include <limits.h>
16134 # include <assert.h>
16136 /* Override any gcc2 internal prototype to avoid an error. */
16141 /* We use char because int might match the return type of a gcc2
16142 builtin and then its argument prototype would still apply. */
16144 /* The GNU C library defines this for functions which it implements
16145 to always fail with ENOSYS. Some functions are actually named
16146 something starting with __ and the normal name is an alias. */
16147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16150 char (*f) () = $ac_func;
16159 return f != $ac_func;
16164 rm -f conftest.$ac_objext conftest$ac_exeext
16165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16166 (eval $ac_link) 2>&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); } &&
16170 { ac_try='test -s conftest$ac_exeext'
16171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16172 (eval $ac_try) 2>&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); }; }; then
16176 eval "$as_ac_var=yes"
16178 echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16181 eval "$as_ac_var=no"
16183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16187 if test `eval echo '${'$as_ac_var'}'` = yes; then
16188 cat >>confdefs.h <<_ACEOF
16189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16193 echo 'configure: cannot find needed function.'; exit 1
16200 for ac_func in fchdir
16202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16203 echo "$as_me:$LINENO: checking for $ac_func" >&5
16204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16205 if eval "test \"\${$as_ac_var+set}\" = set"; then
16206 echo $ECHO_N "(cached) $ECHO_C" >&6
16208 cat >conftest.$ac_ext <<_ACEOF
16209 #line $LINENO "configure"
16212 cat confdefs.h >>conftest.$ac_ext
16213 cat >>conftest.$ac_ext <<_ACEOF
16214 /* end confdefs.h. */
16215 /* System header to define __stub macros and hopefully few prototypes,
16216 which can conflict with char $ac_func (); below.
16217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16218 <limits.h> exists even on freestanding compilers. */
16220 # include <limits.h>
16222 # include <assert.h>
16224 /* Override any gcc2 internal prototype to avoid an error. */
16229 /* We use char because int might match the return type of a gcc2
16230 builtin and then its argument prototype would still apply. */
16232 /* The GNU C library defines this for functions which it implements
16233 to always fail with ENOSYS. Some functions are actually named
16234 something starting with __ and the normal name is an alias. */
16235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16238 char (*f) () = $ac_func;
16247 return f != $ac_func;
16252 rm -f conftest.$ac_objext conftest$ac_exeext
16253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16254 (eval $ac_link) 2>&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } &&
16258 { ac_try='test -s conftest$ac_exeext'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; }; then
16264 eval "$as_ac_var=yes"
16266 echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16269 eval "$as_ac_var=no"
16271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16275 if test `eval echo '${'$as_ac_var'}'` = yes; then
16276 cat >>confdefs.h <<_ACEOF
16277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16279 cat >>confdefs.h <<\_ACEOF
16280 #define HAVE_FCHDIR 1
16287 for ac_func in strtoll
16289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16290 echo "$as_me:$LINENO: checking for $ac_func" >&5
16291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16292 if eval "test \"\${$as_ac_var+set}\" = set"; then
16293 echo $ECHO_N "(cached) $ECHO_C" >&6
16295 cat >conftest.$ac_ext <<_ACEOF
16296 #line $LINENO "configure"
16299 cat confdefs.h >>conftest.$ac_ext
16300 cat >>conftest.$ac_ext <<_ACEOF
16301 /* end confdefs.h. */
16302 /* System header to define __stub macros and hopefully few prototypes,
16303 which can conflict with char $ac_func (); below.
16304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16305 <limits.h> exists even on freestanding compilers. */
16307 # include <limits.h>
16309 # include <assert.h>
16311 /* Override any gcc2 internal prototype to avoid an error. */
16316 /* We use char because int might match the return type of a gcc2
16317 builtin and then its argument prototype would still apply. */
16319 /* The GNU C library defines this for functions which it implements
16320 to always fail with ENOSYS. Some functions are actually named
16321 something starting with __ and the normal name is an alias. */
16322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16325 char (*f) () = $ac_func;
16334 return f != $ac_func;
16339 rm -f conftest.$ac_objext conftest$ac_exeext
16340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16341 (eval $ac_link) 2>&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
16345 { ac_try='test -s conftest$ac_exeext'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; }; then
16351 eval "$as_ac_var=yes"
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16356 eval "$as_ac_var=no"
16358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16362 if test `eval echo '${'$as_ac_var'}'` = yes; then
16363 cat >>confdefs.h <<_ACEOF
16364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16366 cat >>confdefs.h <<\_ACEOF
16367 #define HAVE_STRTOLL 1
16375 for ac_func in chflags
16377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16378 echo "$as_me:$LINENO: checking for $ac_func" >&5
16379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16380 if eval "test \"\${$as_ac_var+set}\" = set"; then
16381 echo $ECHO_N "(cached) $ECHO_C" >&6
16383 cat >conftest.$ac_ext <<_ACEOF
16384 #line $LINENO "configure"
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h. */
16390 /* System header to define __stub macros and hopefully few prototypes,
16391 which can conflict with char $ac_func (); below.
16392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16393 <limits.h> exists even on freestanding compilers. */
16395 # include <limits.h>
16397 # include <assert.h>
16399 /* Override any gcc2 internal prototype to avoid an error. */
16404 /* We use char because int might match the return type of a gcc2
16405 builtin and then its argument prototype would still apply. */
16407 /* The GNU C library defines this for functions which it implements
16408 to always fail with ENOSYS. Some functions are actually named
16409 something starting with __ and the normal name is an alias. */
16410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16413 char (*f) () = $ac_func;
16422 return f != $ac_func;
16427 rm -f conftest.$ac_objext conftest$ac_exeext
16428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16429 (eval $ac_link) 2>&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } &&
16433 { ac_try='test -s conftest$ac_exeext'
16434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16435 (eval $ac_try) 2>&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); }; }; then
16439 eval "$as_ac_var=yes"
16441 echo "$as_me: failed program was:" >&5
16442 sed 's/^/| /' conftest.$ac_ext >&5
16444 eval "$as_ac_var=no"
16446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16450 if test `eval echo '${'$as_ac_var'}'` = yes; then
16451 cat >>confdefs.h <<_ACEOF
16452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16463 for ac_func in snprintf vsnprintf gethostid getdomainname
16465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16466 echo "$as_me:$LINENO: checking for $ac_func" >&5
16467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16468 if eval "test \"\${$as_ac_var+set}\" = set"; then
16469 echo $ECHO_N "(cached) $ECHO_C" >&6
16471 cat >conftest.$ac_ext <<_ACEOF
16472 #line $LINENO "configure"
16475 cat confdefs.h >>conftest.$ac_ext
16476 cat >>conftest.$ac_ext <<_ACEOF
16477 /* end confdefs.h. */
16478 /* System header to define __stub macros and hopefully few prototypes,
16479 which can conflict with char $ac_func (); below.
16480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16481 <limits.h> exists even on freestanding compilers. */
16483 # include <limits.h>
16485 # include <assert.h>
16487 /* Override any gcc2 internal prototype to avoid an error. */
16492 /* We use char because int might match the return type of a gcc2
16493 builtin and then its argument prototype would still apply. */
16495 /* The GNU C library defines this for functions which it implements
16496 to always fail with ENOSYS. Some functions are actually named
16497 something starting with __ and the normal name is an alias. */
16498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16501 char (*f) () = $ac_func;
16510 return f != $ac_func;
16515 rm -f conftest.$ac_objext conftest$ac_exeext
16516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16517 (eval $ac_link) 2>&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); } &&
16521 { ac_try='test -s conftest$ac_exeext'
16522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16523 (eval $ac_try) 2>&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); }; }; then
16527 eval "$as_ac_var=yes"
16529 echo "$as_me: failed program was:" >&5
16530 sed 's/^/| /' conftest.$ac_ext >&5
16532 eval "$as_ac_var=no"
16534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16538 if test `eval echo '${'$as_ac_var'}'` = yes; then
16539 cat >>confdefs.h <<_ACEOF
16540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16551 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
16553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16554 echo "$as_me:$LINENO: checking for $ac_func" >&5
16555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16556 if eval "test \"\${$as_ac_var+set}\" = set"; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16559 cat >conftest.$ac_ext <<_ACEOF
16560 #line $LINENO "configure"
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h. */
16566 /* System header to define __stub macros and hopefully few prototypes,
16567 which can conflict with char $ac_func (); below.
16568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16569 <limits.h> exists even on freestanding compilers. */
16571 # include <limits.h>
16573 # include <assert.h>
16575 /* Override any gcc2 internal prototype to avoid an error. */
16580 /* We use char because int might match the return type of a gcc2
16581 builtin and then its argument prototype would still apply. */
16583 /* The GNU C library defines this for functions which it implements
16584 to always fail with ENOSYS. Some functions are actually named
16585 something starting with __ and the normal name is an alias. */
16586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16589 char (*f) () = $ac_func;
16598 return f != $ac_func;
16603 rm -f conftest.$ac_objext conftest$ac_exeext
16604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16605 (eval $ac_link) 2>&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); } &&
16609 { ac_try='test -s conftest$ac_exeext'
16610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611 (eval $ac_try) 2>&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; }; then
16615 eval "$as_ac_var=yes"
16617 echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16620 eval "$as_ac_var=no"
16622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16626 if test `eval echo '${'$as_ac_var'}'` = yes; then
16627 cat >>confdefs.h <<_ACEOF
16628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16635 # If resolver functions are not in libc check for -lnsl or -lresolv.
16636 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
16637 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
16638 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16641 cat >conftest.$ac_ext <<_ACEOF
16642 #line $LINENO "configure"
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h. */
16648 /* System header to define __stub macros and hopefully few prototypes,
16649 which can conflict with char gethostbyname_r (); below.
16650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16651 <limits.h> exists even on freestanding compilers. */
16653 # include <limits.h>
16655 # include <assert.h>
16657 /* Override any gcc2 internal prototype to avoid an error. */
16662 /* We use char because int might match the return type of a gcc2
16663 builtin and then its argument prototype would still apply. */
16664 char gethostbyname_r ();
16665 /* The GNU C library defines this for functions which it implements
16666 to always fail with ENOSYS. Some functions are actually named
16667 something starting with __ and the normal name is an alias. */
16668 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
16671 char (*f) () = gethostbyname_r;
16680 return f != gethostbyname_r;
16685 rm -f conftest.$ac_objext conftest$ac_exeext
16686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16687 (eval $ac_link) 2>&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } &&
16691 { ac_try='test -s conftest$ac_exeext'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16697 ac_cv_func_gethostbyname_r=yes
16699 echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16702 ac_cv_func_gethostbyname_r=no
16704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16706 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
16707 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
16708 if test $ac_cv_func_gethostbyname_r = yes; then
16709 echo "$as_me:$LINENO: result: using libc's resolver" >&5
16710 echo "${ECHO_T}using libc's resolver" >&6
16713 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
16714 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
16715 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
16716 echo $ECHO_N "(cached) $ECHO_C" >&6
16718 ac_check_lib_save_LIBS=$LIBS
16720 cat >conftest.$ac_ext <<_ACEOF
16721 #line $LINENO "configure"
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h. */
16728 /* Override any gcc2 internal prototype to avoid an error. */
16732 /* We use char because int might match the return type of a gcc2
16733 builtin and then its argument prototype would still apply. */
16734 char gethostbyname_r ();
16738 gethostbyname_r ();
16743 rm -f conftest.$ac_objext conftest$ac_exeext
16744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16745 (eval $ac_link) 2>&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } &&
16749 { ac_try='test -s conftest$ac_exeext'
16750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751 (eval $ac_try) 2>&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; }; then
16755 ac_cv_lib_nsl_gethostbyname_r=yes
16757 echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16760 ac_cv_lib_nsl_gethostbyname_r=no
16762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16763 LIBS=$ac_check_lib_save_LIBS
16765 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
16766 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
16767 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
16768 cat >>confdefs.h <<_ACEOF
16769 #define HAVE_LIBNSL 1
16777 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
16778 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
16779 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16782 ac_check_lib_save_LIBS=$LIBS
16783 LIBS="-lresolv $LIBS"
16784 cat >conftest.$ac_ext <<_ACEOF
16785 #line $LINENO "configure"
16788 cat confdefs.h >>conftest.$ac_ext
16789 cat >>conftest.$ac_ext <<_ACEOF
16790 /* end confdefs.h. */
16792 /* Override any gcc2 internal prototype to avoid an error. */
16796 /* We use char because int might match the return type of a gcc2
16797 builtin and then its argument prototype would still apply. */
16798 char gethostbyname_r ();
16802 gethostbyname_r ();
16807 rm -f conftest.$ac_objext conftest$ac_exeext
16808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16809 (eval $ac_link) 2>&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } &&
16813 { ac_try='test -s conftest$ac_exeext'
16814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815 (eval $ac_try) 2>&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; }; then
16819 ac_cv_lib_resolv_gethostbyname_r=yes
16821 echo "$as_me: failed program was:" >&5
16822 sed 's/^/| /' conftest.$ac_ext >&5
16824 ac_cv_lib_resolv_gethostbyname_r=no
16826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16827 LIBS=$ac_check_lib_save_LIBS
16829 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
16830 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
16831 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
16832 cat >>confdefs.h <<_ACEOF
16833 #define HAVE_LIBRESOLV 1
16836 LIBS="-lresolv $LIBS"
16846 for ac_func in inet_pton
16848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16849 echo "$as_me:$LINENO: checking for $ac_func" >&5
16850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16851 if eval "test \"\${$as_ac_var+set}\" = set"; then
16852 echo $ECHO_N "(cached) $ECHO_C" >&6
16854 cat >conftest.$ac_ext <<_ACEOF
16855 #line $LINENO "configure"
16858 cat confdefs.h >>conftest.$ac_ext
16859 cat >>conftest.$ac_ext <<_ACEOF
16860 /* end confdefs.h. */
16861 /* System header to define __stub macros and hopefully few prototypes,
16862 which can conflict with char $ac_func (); below.
16863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16864 <limits.h> exists even on freestanding compilers. */
16866 # include <limits.h>
16868 # include <assert.h>
16870 /* Override any gcc2 internal prototype to avoid an error. */
16875 /* We use char because int might match the return type of a gcc2
16876 builtin and then its argument prototype would still apply. */
16878 /* The GNU C library defines this for functions which it implements
16879 to always fail with ENOSYS. Some functions are actually named
16880 something starting with __ and the normal name is an alias. */
16881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16884 char (*f) () = $ac_func;
16893 return f != $ac_func;
16898 rm -f conftest.$ac_objext conftest$ac_exeext
16899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16900 (eval $ac_link) 2>&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); } &&
16904 { ac_try='test -s conftest$ac_exeext'
16905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906 (eval $ac_try) 2>&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }; }; then
16910 eval "$as_ac_var=yes"
16912 echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16915 eval "$as_ac_var=no"
16917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16921 if test `eval echo '${'$as_ac_var'}'` = yes; then
16922 cat >>confdefs.h <<_ACEOF
16923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16925 cat >>confdefs.h <<\_ACEOF
16926 #define HAVE_INET_PTON 1
16933 for ac_func in inet_ntop
16935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16936 echo "$as_me:$LINENO: checking for $ac_func" >&5
16937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16938 if eval "test \"\${$as_ac_var+set}\" = set"; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16941 cat >conftest.$ac_ext <<_ACEOF
16942 #line $LINENO "configure"
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h. */
16948 /* System header to define __stub macros and hopefully few prototypes,
16949 which can conflict with char $ac_func (); below.
16950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16951 <limits.h> exists even on freestanding compilers. */
16953 # include <limits.h>
16955 # include <assert.h>
16957 /* Override any gcc2 internal prototype to avoid an error. */
16962 /* We use char because int might match the return type of a gcc2
16963 builtin and then its argument prototype would still apply. */
16965 /* The GNU C library defines this for functions which it implements
16966 to always fail with ENOSYS. Some functions are actually named
16967 something starting with __ and the normal name is an alias. */
16968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16971 char (*f) () = $ac_func;
16980 return f != $ac_func;
16985 rm -f conftest.$ac_objext conftest$ac_exeext
16986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16987 (eval $ac_link) 2>&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } &&
16991 { ac_try='test -s conftest$ac_exeext'
16992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993 (eval $ac_try) 2>&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; }; then
16997 eval "$as_ac_var=yes"
16999 echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17002 eval "$as_ac_var=no"
17004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17007 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17008 if test `eval echo '${'$as_ac_var'}'` = yes; then
17009 cat >>confdefs.h <<_ACEOF
17010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17012 cat >>confdefs.h <<\_ACEOF
17013 #define HAVE_INET_NTOP 1
17020 for ac_func in gethostbyname2
17022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17023 echo "$as_me:$LINENO: checking for $ac_func" >&5
17024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17025 if eval "test \"\${$as_ac_var+set}\" = set"; then
17026 echo $ECHO_N "(cached) $ECHO_C" >&6
17028 cat >conftest.$ac_ext <<_ACEOF
17029 #line $LINENO "configure"
17032 cat confdefs.h >>conftest.$ac_ext
17033 cat >>conftest.$ac_ext <<_ACEOF
17034 /* end confdefs.h. */
17035 /* System header to define __stub macros and hopefully few prototypes,
17036 which can conflict with char $ac_func (); below.
17037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17038 <limits.h> exists even on freestanding compilers. */
17040 # include <limits.h>
17042 # include <assert.h>
17044 /* Override any gcc2 internal prototype to avoid an error. */
17049 /* We use char because int might match the return type of a gcc2
17050 builtin and then its argument prototype would still apply. */
17052 /* The GNU C library defines this for functions which it implements
17053 to always fail with ENOSYS. Some functions are actually named
17054 something starting with __ and the normal name is an alias. */
17055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17058 char (*f) () = $ac_func;
17067 return f != $ac_func;
17072 rm -f conftest.$ac_objext conftest$ac_exeext
17073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17074 (eval $ac_link) 2>&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); } &&
17078 { ac_try='test -s conftest$ac_exeext'
17079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080 (eval $ac_try) 2>&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); }; }; then
17084 eval "$as_ac_var=yes"
17086 echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17089 eval "$as_ac_var=no"
17091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17095 if test `eval echo '${'$as_ac_var'}'` = yes; then
17096 cat >>confdefs.h <<_ACEOF
17097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17099 cat >>confdefs.h <<\_ACEOF
17100 #define HAVE_GETHOSTBYNAME2 1
17107 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
17108 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
17109 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17112 cat >conftest.$ac_ext <<_ACEOF
17113 #line $LINENO "configure"
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17119 #include <sys/socket.h>
17123 struct sockaddr s; s.sa_len;
17128 rm -f conftest.$ac_objext
17129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17130 (eval $ac_compile) 2>&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
17134 { ac_try='test -s conftest.$ac_objext'
17135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; }; then
17140 ac_cv_struct_sockaddr_sa_len=yes
17142 echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17145 ac_cv_struct_sockaddr_sa_len=no
17147 rm -f conftest.$ac_objext conftest.$ac_ext
17149 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
17150 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
17152 if test $ac_cv_struct_sockaddr_sa_len = yes; then
17154 cat >>confdefs.h <<\_ACEOF
17155 #define HAVE_SA_LEN 1
17161 echo "$as_me:$LINENO: checking for IPv6 support" >&5
17162 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
17163 if test "${ac_cv_ipv6_support+set}" = set; then
17164 echo $ECHO_N "(cached) $ECHO_C" >&6
17166 cat >conftest.$ac_ext <<_ACEOF
17167 #line $LINENO "configure"
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h. */
17173 #include <sys/types.h>
17174 #include <sys/socket.h>
17175 #include <netinet/in.h>
17179 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
17185 rm -f conftest.$ac_objext conftest$ac_exeext
17186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17187 (eval $ac_link) 2>&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } &&
17191 { ac_try='test -s conftest$ac_exeext'
17192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193 (eval $ac_try) 2>&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; }; then
17197 ac_cv_ipv6_support=yes
17199 echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17202 ac_cv_ipv6_support=no
17204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17206 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
17207 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
17209 if test "$ac_cv_ipv6_support" = yes; then
17211 cat >>confdefs.h <<\_ACEOF
17212 #define HAVE_IPV6 1
17220 for ac_func in strftime
17222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17223 echo "$as_me:$LINENO: checking for $ac_func" >&5
17224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17225 if eval "test \"\${$as_ac_var+set}\" = set"; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17228 cat >conftest.$ac_ext <<_ACEOF
17229 #line $LINENO "configure"
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h. */
17235 /* System header to define __stub macros and hopefully few prototypes,
17236 which can conflict with char $ac_func (); below.
17237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17238 <limits.h> exists even on freestanding compilers. */
17240 # include <limits.h>
17242 # include <assert.h>
17244 /* Override any gcc2 internal prototype to avoid an error. */
17249 /* We use char because int might match the return type of a gcc2
17250 builtin and then its argument prototype would still apply. */
17252 /* The GNU C library defines this for functions which it implements
17253 to always fail with ENOSYS. Some functions are actually named
17254 something starting with __ and the normal name is an alias. */
17255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17258 char (*f) () = $ac_func;
17267 return f != $ac_func;
17272 rm -f conftest.$ac_objext conftest$ac_exeext
17273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17274 (eval $ac_link) 2>&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); } &&
17278 { ac_try='test -s conftest$ac_exeext'
17279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17280 (eval $ac_try) 2>&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }; }; then
17284 eval "$as_ac_var=yes"
17286 echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.$ac_ext >&5
17289 eval "$as_ac_var=no"
17291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17295 if test `eval echo '${'$as_ac_var'}'` = yes; then
17296 cat >>confdefs.h <<_ACEOF
17297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17301 # strftime is in -lintl on SCO UNIX.
17302 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17303 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17304 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17305 echo $ECHO_N "(cached) $ECHO_C" >&6
17307 ac_check_lib_save_LIBS=$LIBS
17308 LIBS="-lintl $LIBS"
17309 cat >conftest.$ac_ext <<_ACEOF
17310 #line $LINENO "configure"
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h. */
17317 /* Override any gcc2 internal prototype to avoid an error. */
17321 /* We use char because int might match the return type of a gcc2
17322 builtin and then its argument prototype would still apply. */
17332 rm -f conftest.$ac_objext conftest$ac_exeext
17333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17334 (eval $ac_link) 2>&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); } &&
17338 { ac_try='test -s conftest$ac_exeext'
17339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340 (eval $ac_try) 2>&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; }; then
17344 ac_cv_lib_intl_strftime=yes
17346 echo "$as_me: failed program was:" >&5
17347 sed 's/^/| /' conftest.$ac_ext >&5
17349 ac_cv_lib_intl_strftime=no
17351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17352 LIBS=$ac_check_lib_save_LIBS
17354 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17355 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17356 if test $ac_cv_lib_intl_strftime = yes; then
17357 cat >>confdefs.h <<\_ACEOF
17358 #define HAVE_STRFTIME 1
17361 LIBS="-lintl $LIBS"
17368 for ac_func in vprintf
17370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17371 echo "$as_me:$LINENO: checking for $ac_func" >&5
17372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17373 if eval "test \"\${$as_ac_var+set}\" = set"; then
17374 echo $ECHO_N "(cached) $ECHO_C" >&6
17376 cat >conftest.$ac_ext <<_ACEOF
17377 #line $LINENO "configure"
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17383 /* System header to define __stub macros and hopefully few prototypes,
17384 which can conflict with char $ac_func (); below.
17385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17386 <limits.h> exists even on freestanding compilers. */
17388 # include <limits.h>
17390 # include <assert.h>
17392 /* Override any gcc2 internal prototype to avoid an error. */
17397 /* We use char because int might match the return type of a gcc2
17398 builtin and then its argument prototype would still apply. */
17400 /* The GNU C library defines this for functions which it implements
17401 to always fail with ENOSYS. Some functions are actually named
17402 something starting with __ and the normal name is an alias. */
17403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17406 char (*f) () = $ac_func;
17415 return f != $ac_func;
17420 rm -f conftest.$ac_objext conftest$ac_exeext
17421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17422 (eval $ac_link) 2>&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } &&
17426 { ac_try='test -s conftest$ac_exeext'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; }; then
17432 eval "$as_ac_var=yes"
17434 echo "$as_me: failed program was:" >&5
17435 sed 's/^/| /' conftest.$ac_ext >&5
17437 eval "$as_ac_var=no"
17439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17443 if test `eval echo '${'$as_ac_var'}'` = yes; then
17444 cat >>confdefs.h <<_ACEOF
17445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17448 echo "$as_me:$LINENO: checking for _doprnt" >&5
17449 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
17450 if test "${ac_cv_func__doprnt+set}" = set; then
17451 echo $ECHO_N "(cached) $ECHO_C" >&6
17453 cat >conftest.$ac_ext <<_ACEOF
17454 #line $LINENO "configure"
17457 cat confdefs.h >>conftest.$ac_ext
17458 cat >>conftest.$ac_ext <<_ACEOF
17459 /* end confdefs.h. */
17460 /* System header to define __stub macros and hopefully few prototypes,
17461 which can conflict with char _doprnt (); below.
17462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17463 <limits.h> exists even on freestanding compilers. */
17465 # include <limits.h>
17467 # include <assert.h>
17469 /* Override any gcc2 internal prototype to avoid an error. */
17474 /* We use char because int might match the return type of a gcc2
17475 builtin and then its argument prototype would still apply. */
17477 /* The GNU C library defines this for functions which it implements
17478 to always fail with ENOSYS. Some functions are actually named
17479 something starting with __ and the normal name is an alias. */
17480 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17483 char (*f) () = _doprnt;
17492 return f != _doprnt;
17497 rm -f conftest.$ac_objext conftest$ac_exeext
17498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17499 (eval $ac_link) 2>&5
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); } &&
17503 { ac_try='test -s conftest$ac_exeext'
17504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17505 (eval $ac_try) 2>&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; }; then
17509 ac_cv_func__doprnt=yes
17511 echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17514 ac_cv_func__doprnt=no
17516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17518 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17519 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
17520 if test $ac_cv_func__doprnt = yes; then
17522 cat >>confdefs.h <<\_ACEOF
17523 #define HAVE_DOPRNT 1
17532 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17533 # for constant arguments. Useless!
17534 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17535 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17536 if test "${ac_cv_working_alloca_h+set}" = set; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17539 cat >conftest.$ac_ext <<_ACEOF
17540 #line $LINENO "configure"
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17546 #include <alloca.h>
17550 char *p = (char *) alloca (2 * sizeof (int));
17555 rm -f conftest.$ac_objext conftest$ac_exeext
17556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17557 (eval $ac_link) 2>&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); } &&
17561 { ac_try='test -s conftest$ac_exeext'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; }; then
17567 ac_cv_working_alloca_h=yes
17569 echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17572 ac_cv_working_alloca_h=no
17574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17576 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17577 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17578 if test $ac_cv_working_alloca_h = yes; then
17580 cat >>confdefs.h <<\_ACEOF
17581 #define HAVE_ALLOCA_H 1
17586 echo "$as_me:$LINENO: checking for alloca" >&5
17587 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17588 if test "${ac_cv_func_alloca_works+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 cat >conftest.$ac_ext <<_ACEOF
17592 #line $LINENO "configure"
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17599 # define alloca __builtin_alloca
17602 # include <malloc.h>
17603 # define alloca _alloca
17606 # include <alloca.h>
17611 # ifndef alloca /* predefined by HP cc +Olibcalls */
17622 char *p = (char *) alloca (1);
17627 rm -f conftest.$ac_objext conftest$ac_exeext
17628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629 (eval $ac_link) 2>&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } &&
17633 { ac_try='test -s conftest$ac_exeext'
17634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; }; then
17639 ac_cv_func_alloca_works=yes
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17644 ac_cv_func_alloca_works=no
17646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17648 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17649 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17651 if test $ac_cv_func_alloca_works = yes; then
17653 cat >>confdefs.h <<\_ACEOF
17654 #define HAVE_ALLOCA 1
17658 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17659 # that cause trouble. Some versions do not even contain alloca or
17660 # contain a buggy version. If you still want to use their alloca,
17661 # use ar to extract alloca.o from them instead of compiling alloca.c.
17663 ALLOCA=alloca.$ac_objext
17665 cat >>confdefs.h <<\_ACEOF
17670 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17671 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17672 if test "${ac_cv_os_cray+set}" = set; then
17673 echo $ECHO_N "(cached) $ECHO_C" >&6
17675 cat >conftest.$ac_ext <<_ACEOF
17676 #line $LINENO "configure"
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h. */
17682 #if defined(CRAY) && ! defined(CRAY2)
17689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17690 $EGREP "webecray" >/dev/null 2>&1; then
17698 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17699 echo "${ECHO_T}$ac_cv_os_cray" >&6
17700 if test $ac_cv_os_cray = yes; then
17701 for ac_func in _getb67 GETB67 getb67; do
17702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17703 echo "$as_me:$LINENO: checking for $ac_func" >&5
17704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17705 if eval "test \"\${$as_ac_var+set}\" = set"; then
17706 echo $ECHO_N "(cached) $ECHO_C" >&6
17708 cat >conftest.$ac_ext <<_ACEOF
17709 #line $LINENO "configure"
17712 cat confdefs.h >>conftest.$ac_ext
17713 cat >>conftest.$ac_ext <<_ACEOF
17714 /* end confdefs.h. */
17715 /* System header to define __stub macros and hopefully few prototypes,
17716 which can conflict with char $ac_func (); below.
17717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17718 <limits.h> exists even on freestanding compilers. */
17720 # include <limits.h>
17722 # include <assert.h>
17724 /* Override any gcc2 internal prototype to avoid an error. */
17729 /* We use char because int might match the return type of a gcc2
17730 builtin and then its argument prototype would still apply. */
17732 /* The GNU C library defines this for functions which it implements
17733 to always fail with ENOSYS. Some functions are actually named
17734 something starting with __ and the normal name is an alias. */
17735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17738 char (*f) () = $ac_func;
17747 return f != $ac_func;
17752 rm -f conftest.$ac_objext conftest$ac_exeext
17753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17754 (eval $ac_link) 2>&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } &&
17758 { ac_try='test -s conftest$ac_exeext'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; }; then
17764 eval "$as_ac_var=yes"
17766 echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17769 eval "$as_ac_var=no"
17771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17775 if test `eval echo '${'$as_ac_var'}'` = yes; then
17777 cat >>confdefs.h <<_ACEOF
17778 #define CRAY_STACKSEG_END $ac_func
17787 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17788 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17789 if test "${ac_cv_c_stack_direction+set}" = set; then
17790 echo $ECHO_N "(cached) $ECHO_C" >&6
17792 if test "$cross_compiling" = yes; then
17793 ac_cv_c_stack_direction=0
17795 cat >conftest.$ac_ext <<_ACEOF
17796 #line $LINENO "configure"
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17803 find_stack_direction ()
17805 static char *addr = 0;
17810 return find_stack_direction ();
17813 return (&dummy > addr) ? 1 : -1;
17819 exit (find_stack_direction () < 0);
17822 rm -f conftest$ac_exeext
17823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17824 (eval $ac_link) 2>&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829 (eval $ac_try) 2>&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; }; then
17833 ac_cv_c_stack_direction=1
17835 echo "$as_me: program exited with status $ac_status" >&5
17836 echo "$as_me: failed program was:" >&5
17837 sed 's/^/| /' conftest.$ac_ext >&5
17839 ( exit $ac_status )
17840 ac_cv_c_stack_direction=-1
17842 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17845 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17846 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17848 cat >>confdefs.h <<_ACEOF
17849 #define STACK_DIRECTION $ac_cv_c_stack_direction
17855 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17856 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17857 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17858 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17859 echo $ECHO_N "(cached) $ECHO_C" >&6
17861 ac_check_lib_save_LIBS=$LIBS
17863 cat >conftest.$ac_ext <<_ACEOF
17864 #line $LINENO "configure"
17867 cat confdefs.h >>conftest.$ac_ext
17868 cat >>conftest.$ac_ext <<_ACEOF
17869 /* end confdefs.h. */
17871 /* Override any gcc2 internal prototype to avoid an error. */
17875 /* We use char because int might match the return type of a gcc2
17876 builtin and then its argument prototype would still apply. */
17886 rm -f conftest.$ac_objext conftest$ac_exeext
17887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17888 (eval $ac_link) 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } &&
17892 { ac_try='test -s conftest$ac_exeext'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17898 ac_cv_lib_sun_getmntent=yes
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17903 ac_cv_lib_sun_getmntent=no
17905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17906 LIBS=$ac_check_lib_save_LIBS
17908 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17909 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17910 if test $ac_cv_lib_sun_getmntent = yes; then
17913 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17914 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17915 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17916 echo $ECHO_N "(cached) $ECHO_C" >&6
17918 ac_check_lib_save_LIBS=$LIBS
17920 cat >conftest.$ac_ext <<_ACEOF
17921 #line $LINENO "configure"
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h. */
17928 /* Override any gcc2 internal prototype to avoid an error. */
17932 /* We use char because int might match the return type of a gcc2
17933 builtin and then its argument prototype would still apply. */
17943 rm -f conftest.$ac_objext conftest$ac_exeext
17944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17945 (eval $ac_link) 2>&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); } &&
17949 { ac_try='test -s conftest$ac_exeext'
17950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951 (eval $ac_try) 2>&5
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; }; then
17955 ac_cv_lib_seq_getmntent=yes
17957 echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.$ac_ext >&5
17960 ac_cv_lib_seq_getmntent=no
17962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17963 LIBS=$ac_check_lib_save_LIBS
17965 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17966 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17967 if test $ac_cv_lib_seq_getmntent = yes; then
17970 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17971 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17972 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17973 echo $ECHO_N "(cached) $ECHO_C" >&6
17975 ac_check_lib_save_LIBS=$LIBS
17977 cat >conftest.$ac_ext <<_ACEOF
17978 #line $LINENO "configure"
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h. */
17985 /* Override any gcc2 internal prototype to avoid an error. */
17989 /* We use char because int might match the return type of a gcc2
17990 builtin and then its argument prototype would still apply. */
18000 rm -f conftest.$ac_objext conftest$ac_exeext
18001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18002 (eval $ac_link) 2>&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); } &&
18006 { ac_try='test -s conftest$ac_exeext'
18007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18008 (eval $ac_try) 2>&5
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; }; then
18012 ac_cv_lib_gen_getmntent=yes
18014 echo "$as_me: failed program was:" >&5
18015 sed 's/^/| /' conftest.$ac_ext >&5
18017 ac_cv_lib_gen_getmntent=no
18019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18020 LIBS=$ac_check_lib_save_LIBS
18022 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
18023 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
18024 if test $ac_cv_lib_gen_getmntent = yes; then
18033 for ac_func in getmntent
18035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18036 echo "$as_me:$LINENO: checking for $ac_func" >&5
18037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18038 if eval "test \"\${$as_ac_var+set}\" = set"; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18041 cat >conftest.$ac_ext <<_ACEOF
18042 #line $LINENO "configure"
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 /* System header to define __stub macros and hopefully few prototypes,
18049 which can conflict with char $ac_func (); below.
18050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18051 <limits.h> exists even on freestanding compilers. */
18053 # include <limits.h>
18055 # include <assert.h>
18057 /* Override any gcc2 internal prototype to avoid an error. */
18062 /* We use char because int might match the return type of a gcc2
18063 builtin and then its argument prototype would still apply. */
18065 /* The GNU C library defines this for functions which it implements
18066 to always fail with ENOSYS. Some functions are actually named
18067 something starting with __ and the normal name is an alias. */
18068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18071 char (*f) () = $ac_func;
18080 return f != $ac_func;
18085 rm -f conftest.$ac_objext conftest$ac_exeext
18086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18087 (eval $ac_link) 2>&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } &&
18091 { ac_try='test -s conftest$ac_exeext'
18092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093 (eval $ac_try) 2>&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; }; then
18097 eval "$as_ac_var=yes"
18099 echo "$as_me: failed program was:" >&5
18100 sed 's/^/| /' conftest.$ac_ext >&5
18102 eval "$as_ac_var=no"
18104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18107 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18108 if test `eval echo '${'$as_ac_var'}'` = yes; then
18109 cat >>confdefs.h <<_ACEOF
18110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18117 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
18118 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
18119 if test "${ac_cv_func_closedir_void+set}" = set; then
18120 echo $ECHO_N "(cached) $ECHO_C" >&6
18122 if test "$cross_compiling" = yes; then
18123 ac_cv_func_closedir_void=yes
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. */
18132 $ac_includes_default
18133 #include <$ac_header_dirent>
18134 #ifndef __cplusplus
18141 exit (closedir (opendir (".")) != 0);
18146 rm -f conftest$ac_exeext
18147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18148 (eval $ac_link) 2>&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18153 (eval $ac_try) 2>&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; }; then
18157 ac_cv_func_closedir_void=no
18159 echo "$as_me: program exited with status $ac_status" >&5
18160 echo "$as_me: failed program was:" >&5
18161 sed 's/^/| /' conftest.$ac_ext >&5
18163 ( exit $ac_status )
18164 ac_cv_func_closedir_void=yes
18166 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18169 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
18170 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
18171 if test $ac_cv_func_closedir_void = yes; then
18173 cat >>confdefs.h <<\_ACEOF
18174 #define CLOSEDIR_VOID 1
18179 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18180 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18181 if test "${ac_cv_func_setpgrp_void+set}" = set; then
18182 echo $ECHO_N "(cached) $ECHO_C" >&6
18184 if test "$cross_compiling" = yes; then
18185 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18186 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18187 { (exit 1); exit 1; }; }
18189 cat >conftest.$ac_ext <<_ACEOF
18190 #line $LINENO "configure"
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18197 # include <unistd.h>
18203 /* If this system has a BSD-style setpgrp which takes arguments,
18204 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18205 exit successfully. */
18206 exit (setpgrp (1,1) == -1 ? 0 : 1);
18211 rm -f conftest$ac_exeext
18212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18213 (eval $ac_link) 2>&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; }; then
18222 ac_cv_func_setpgrp_void=no
18224 echo "$as_me: program exited with status $ac_status" >&5
18225 echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18228 ( exit $ac_status )
18229 ac_cv_func_setpgrp_void=yes
18231 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18234 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18235 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18236 if test $ac_cv_func_setpgrp_void = yes; then
18238 cat >>confdefs.h <<\_ACEOF
18239 #define SETPGRP_VOID 1
18243 # AC_FUNC_FNMATCH dnl use local version
18246 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
18247 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
18248 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18251 ac_check_lib_save_LIBS=$LIBS
18252 LIBS="-lxpg4 $LIBS"
18253 cat >conftest.$ac_ext <<_ACEOF
18254 #line $LINENO "configure"
18257 cat confdefs.h >>conftest.$ac_ext
18258 cat >>conftest.$ac_ext <<_ACEOF
18259 /* end confdefs.h. */
18261 /* Override any gcc2 internal prototype to avoid an error. */
18265 /* We use char because int might match the return type of a gcc2
18266 builtin and then its argument prototype would still apply. */
18276 rm -f conftest.$ac_objext conftest$ac_exeext
18277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18278 (eval $ac_link) 2>&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } &&
18282 { ac_try='test -s conftest$ac_exeext'
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; }; then
18288 ac_cv_lib_xpg4_setlocale=yes
18290 echo "$as_me: failed program was:" >&5
18291 sed 's/^/| /' conftest.$ac_ext >&5
18293 ac_cv_lib_xpg4_setlocale=no
18295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18296 LIBS=$ac_check_lib_save_LIBS
18298 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
18299 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
18300 if test $ac_cv_lib_xpg4_setlocale = yes; then
18301 LIBS="$LIBS -lxpg4"
18307 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
18308 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
18309 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
18310 echo $ECHO_N "(cached) $ECHO_C" >&6
18312 ac_check_lib_save_LIBS=$LIBS
18314 cat >conftest.$ac_ext <<_ACEOF
18315 #line $LINENO "configure"
18318 cat confdefs.h >>conftest.$ac_ext
18319 cat >>conftest.$ac_ext <<_ACEOF
18320 /* end confdefs.h. */
18322 /* Override any gcc2 internal prototype to avoid an error. */
18326 /* We use char because int might match the return type of a gcc2
18327 builtin and then its argument prototype would still apply. */
18337 rm -f conftest.$ac_objext conftest$ac_exeext
18338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18339 (eval $ac_link) 2>&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); } &&
18343 { ac_try='test -s conftest$ac_exeext'
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; }; then
18349 ac_cv_lib_sun_getpwnam=yes
18351 echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18354 ac_cv_lib_sun_getpwnam=no
18356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18357 LIBS=$ac_check_lib_save_LIBS
18359 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
18360 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
18361 if test $ac_cv_lib_sun_getpwnam = yes; then
18362 cat >>confdefs.h <<_ACEOF
18363 #define HAVE_LIBSUN 1
18372 for ac_header in zlib.h
18374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18376 echo "$as_me:$LINENO: checking for $ac_header" >&5
18377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18379 echo $ECHO_N "(cached) $ECHO_C" >&6
18381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18384 # Is the header compilable?
18385 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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>
18397 rm -f conftest.$ac_objext
18398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18399 (eval $ac_compile) 2>&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } &&
18403 { ac_try='test -s conftest.$ac_objext'
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405 (eval $ac_try) 2>&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; }; then
18409 ac_header_compiler=yes
18411 echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18414 ac_header_compiler=no
18416 rm -f conftest.$ac_objext conftest.$ac_ext
18417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18418 echo "${ECHO_T}$ac_header_compiler" >&6
18420 # Is the header present?
18421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18423 cat >conftest.$ac_ext <<_ACEOF
18424 #line $LINENO "configure"
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h. */
18430 #include <$ac_header>
18432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18435 grep -v '^ *+' conftest.er1 >conftest.err
18437 cat conftest.err >&5
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); } >/dev/null; then
18440 if test -s conftest.err; then
18441 ac_cpp_err=$ac_c_preproc_warn_flag
18448 if test -z "$ac_cpp_err"; then
18449 ac_header_preproc=yes
18451 echo "$as_me: failed program was:" >&5
18452 sed 's/^/| /' conftest.$ac_ext >&5
18454 ac_header_preproc=no
18456 rm -f conftest.err conftest.$ac_ext
18457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18458 echo "${ECHO_T}$ac_header_preproc" >&6
18460 # So? What about this header?
18461 case $ac_header_compiler:$ac_header_preproc in
18463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18469 ## ------------------------------------ ##
18470 ## Report this to bug-autoconf@gnu.org. ##
18471 ## ------------------------------------ ##
18474 sed "s/^/$as_me: WARNING: /" >&2
18477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18485 ## ------------------------------------ ##
18486 ## Report this to bug-autoconf@gnu.org. ##
18487 ## ------------------------------------ ##
18490 sed "s/^/$as_me: WARNING: /" >&2
18493 echo "$as_me:$LINENO: checking for $ac_header" >&5
18494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18498 eval "$as_ac_Header=$ac_header_preproc"
18500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18505 cat >>confdefs.h <<_ACEOF
18506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18513 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18514 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18515 if test "${ac_cv_lib_z_deflate+set}" = set; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18518 ac_check_lib_save_LIBS=$LIBS
18520 cat >conftest.$ac_ext <<_ACEOF
18521 #line $LINENO "configure"
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h. */
18528 /* Override any gcc2 internal prototype to avoid an error. */
18532 /* We use char because int might match the return type of a gcc2
18533 builtin and then its argument prototype would still apply. */
18543 rm -f conftest.$ac_objext conftest$ac_exeext
18544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18545 (eval $ac_link) 2>&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } &&
18549 { ac_try='test -s conftest$ac_exeext'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18555 ac_cv_lib_z_deflate=yes
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18560 ac_cv_lib_z_deflate=no
18562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18563 LIBS=$ac_check_lib_save_LIBS
18565 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18566 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18567 if test $ac_cv_lib_z_deflate = yes; then
18572 if test x$FDLIBS = x-lz; then
18573 cat >>confdefs.h <<\_ACEOF
18574 #define HAVE_LIBZ 1
18580 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18581 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18582 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18583 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18584 echo $ECHO_N "(cached) $ECHO_C" >&6
18586 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18587 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18589 # Is the header compilable?
18590 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18591 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18592 cat >conftest.$ac_ext <<_ACEOF
18593 #line $LINENO "configure"
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h. */
18599 $ac_includes_default
18600 #include <sys/acl.h>
18602 rm -f conftest.$ac_objext
18603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18604 (eval $ac_compile) 2>&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); } &&
18608 { ac_try='test -s conftest.$ac_objext'
18609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18610 (eval $ac_try) 2>&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; }; then
18614 ac_header_compiler=yes
18616 echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.$ac_ext >&5
18619 ac_header_compiler=no
18621 rm -f conftest.$ac_objext conftest.$ac_ext
18622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18623 echo "${ECHO_T}$ac_header_compiler" >&6
18625 # Is the header present?
18626 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18627 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18628 cat >conftest.$ac_ext <<_ACEOF
18629 #line $LINENO "configure"
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h. */
18635 #include <sys/acl.h>
18637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18640 grep -v '^ *+' conftest.er1 >conftest.err
18642 cat conftest.err >&5
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); } >/dev/null; then
18645 if test -s conftest.err; then
18646 ac_cpp_err=$ac_c_preproc_warn_flag
18653 if test -z "$ac_cpp_err"; then
18654 ac_header_preproc=yes
18656 echo "$as_me: failed program was:" >&5
18657 sed 's/^/| /' conftest.$ac_ext >&5
18659 ac_header_preproc=no
18661 rm -f conftest.err conftest.$ac_ext
18662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18663 echo "${ECHO_T}$ac_header_preproc" >&6
18665 # So? What about this header?
18666 case $ac_header_compiler:$ac_header_preproc in
18668 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18669 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18670 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18671 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18674 ## ------------------------------------ ##
18675 ## Report this to bug-autoconf@gnu.org. ##
18676 ## ------------------------------------ ##
18679 sed "s/^/$as_me: WARNING: /" >&2
18682 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18683 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18684 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18685 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18686 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18687 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18690 ## ------------------------------------ ##
18691 ## Report this to bug-autoconf@gnu.org. ##
18692 ## ------------------------------------ ##
18695 sed "s/^/$as_me: WARNING: /" >&2
18698 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18699 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18700 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18701 echo $ECHO_N "(cached) $ECHO_C" >&6
18703 ac_cv_header_sys_acl_h=$ac_header_preproc
18705 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18706 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18711 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18712 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18713 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18714 echo $ECHO_N "(cached) $ECHO_C" >&6
18716 ac_check_lib_save_LIBS=$LIBS
18718 cat >conftest.$ac_ext <<_ACEOF
18719 #line $LINENO "configure"
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18726 /* Override any gcc2 internal prototype to avoid an error. */
18730 /* We use char because int might match the return type of a gcc2
18731 builtin and then its argument prototype would still apply. */
18732 char acl_get_file ();
18741 rm -f conftest.$ac_objext conftest$ac_exeext
18742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18743 (eval $ac_link) 2>&5
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); } &&
18747 { ac_try='test -s conftest$ac_exeext'
18748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749 (eval $ac_try) 2>&5
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); }; }; then
18753 ac_cv_lib_acl_acl_get_file=yes
18755 echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18758 ac_cv_lib_acl_acl_get_file=no
18760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18761 LIBS=$ac_check_lib_save_LIBS
18763 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18764 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18765 if test $ac_cv_lib_acl_acl_get_file = yes; then
18766 FDLIBS="-lacl $FDLIBS"
18770 if test $ac_cv_lib_acl_acl_get_file = yes; then
18771 cat >>confdefs.h <<\_ACEOF
18779 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18780 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18781 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18782 echo $ECHO_N "(cached) $ECHO_C" >&6
18784 ac_check_lib_save_LIBS=$LIBS
18785 LIBS="-lpthread $LIBS"
18786 cat >conftest.$ac_ext <<_ACEOF
18787 #line $LINENO "configure"
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h. */
18794 /* Override any gcc2 internal prototype to avoid an error. */
18798 /* We use char because int might match the return type of a gcc2
18799 builtin and then its argument prototype would still apply. */
18800 char pthread_create ();
18809 rm -f conftest.$ac_objext conftest$ac_exeext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18811 (eval $ac_link) 2>&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } &&
18815 { ac_try='test -s conftest$ac_exeext'
18816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817 (eval $ac_try) 2>&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; }; then
18821 ac_cv_lib_pthread_pthread_create=yes
18823 echo "$as_me: failed program was:" >&5
18824 sed 's/^/| /' conftest.$ac_ext >&5
18826 ac_cv_lib_pthread_pthread_create=no
18828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18829 LIBS=$ac_check_lib_save_LIBS
18831 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18832 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18833 if test $ac_cv_lib_pthread_pthread_create = yes; then
18834 PTHREAD_LIB="-lpthread"
18836 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18837 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18838 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18839 echo $ECHO_N "(cached) $ECHO_C" >&6
18841 ac_check_lib_save_LIBS=$LIBS
18842 LIBS="-lpthreads $LIBS"
18843 cat >conftest.$ac_ext <<_ACEOF
18844 #line $LINENO "configure"
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h. */
18851 /* Override any gcc2 internal prototype to avoid an error. */
18855 /* We use char because int might match the return type of a gcc2
18856 builtin and then its argument prototype would still apply. */
18857 char pthread_create ();
18866 rm -f conftest.$ac_objext conftest$ac_exeext
18867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18868 (eval $ac_link) 2>&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); } &&
18872 { ac_try='test -s conftest$ac_exeext'
18873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18874 (eval $ac_try) 2>&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; }; then
18878 ac_cv_lib_pthreads_pthread_create=yes
18880 echo "$as_me: failed program was:" >&5
18881 sed 's/^/| /' conftest.$ac_ext >&5
18883 ac_cv_lib_pthreads_pthread_create=no
18885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18886 LIBS=$ac_check_lib_save_LIBS
18888 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18889 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18890 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18891 PTHREAD_LIB="-lpthreads"
18893 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18894 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18895 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18896 echo $ECHO_N "(cached) $ECHO_C" >&6
18898 ac_check_lib_save_LIBS=$LIBS
18900 cat >conftest.$ac_ext <<_ACEOF
18901 #line $LINENO "configure"
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h. */
18908 /* Override any gcc2 internal prototype to avoid an error. */
18912 /* We use char because int might match the return type of a gcc2
18913 builtin and then its argument prototype would still apply. */
18914 char pthread_create ();
18923 rm -f conftest.$ac_objext conftest$ac_exeext
18924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18925 (eval $ac_link) 2>&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } &&
18929 { ac_try='test -s conftest$ac_exeext'
18930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18931 (eval $ac_try) 2>&5
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; }; then
18935 ac_cv_lib_c_r_pthread_create=yes
18937 echo "$as_me: failed program was:" >&5
18938 sed 's/^/| /' conftest.$ac_ext >&5
18940 ac_cv_lib_c_r_pthread_create=no
18942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18943 LIBS=$ac_check_lib_save_LIBS
18945 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18946 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18947 if test $ac_cv_lib_c_r_pthread_create = yes; then
18948 PTHREAD_LIB="-lc_r"
18950 echo "$as_me:$LINENO: checking for pthread_create" >&5
18951 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18952 if test "${ac_cv_func_pthread_create+set}" = set; then
18953 echo $ECHO_N "(cached) $ECHO_C" >&6
18955 cat >conftest.$ac_ext <<_ACEOF
18956 #line $LINENO "configure"
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h. */
18962 /* System header to define __stub macros and hopefully few prototypes,
18963 which can conflict with char pthread_create (); below.
18964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18965 <limits.h> exists even on freestanding compilers. */
18967 # include <limits.h>
18969 # include <assert.h>
18971 /* Override any gcc2 internal prototype to avoid an error. */
18976 /* We use char because int might match the return type of a gcc2
18977 builtin and then its argument prototype would still apply. */
18978 char pthread_create ();
18979 /* The GNU C library defines this for functions which it implements
18980 to always fail with ENOSYS. Some functions are actually named
18981 something starting with __ and the normal name is an alias. */
18982 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18985 char (*f) () = pthread_create;
18994 return f != pthread_create;
18999 rm -f conftest.$ac_objext conftest$ac_exeext
19000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19001 (eval $ac_link) 2>&5
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); } &&
19005 { ac_try='test -s conftest$ac_exeext'
19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; }; then
19011 ac_cv_func_pthread_create=yes
19013 echo "$as_me: failed program was:" >&5
19014 sed 's/^/| /' conftest.$ac_ext >&5
19016 ac_cv_func_pthread_create=no
19018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19020 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
19021 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
19034 cat >>confdefs.h <<\_ACEOF
19040 CFLAGS=${CFLAGS--O}
19041 LDFLAGS=${LDFLAGS--O}
19042 DB_LIBS="${SQL_LFLAGS}"
19044 CPPFLAGS="$CPPFLAGS"
19069 # Finally we set appropriate distribution specific
19070 # variables and defaults
19072 # PFILES are platform specific files
19073 PFILES="platforms/Makefile"
19077 hostname=`uname -n | cut -d '.' -f 1`
19078 case "$DISTNAME" in
19081 PSCMD="ps -e -o pid,comm"
19082 PFILES="${PFILES} \
19083 platforms/aix/Makefile"
19084 TAPEDRIVE="/dev/rmt0.1"
19088 PTHREAD_LIB="-lpthread -lexc"
19089 if test "${CC}" = "gcc" ; then
19096 TAPEDRIVE="/dev/nrmt0"
19099 DISTVER=`uname -a |awk '{print $3}'`
19100 TAPEDRIVE="/dev/nrmt0"
19101 PTHREAD_LIB="-pthread"
19102 CFLAGS="${CFLAGS} -pthread"
19103 PSCMD="ps -x -o pid,command"
19106 PFILES="${PFILES} \
19107 platforms/bsdi/Makefile \
19108 platforms/bsdi/bacula-fd \
19109 platforms/bsdi/bacula-sd \
19110 platforms/bsdi/bacula-dir"
19111 largefile_support="yes"
19114 DISTVER=`uname -a |awk '{print $3}'`
19115 TAPEDRIVE="/dev/nrst0"
19117 WCFLAGS="-mwindows"
19118 WLDFLAGS="-mwindows"
19122 TAPEDRIVE="/dev/nst0"
19123 PSCMD="ps -e -o pid,command"
19125 PFILES="${PFILES} \
19126 platforms/darwin/Makefile"
19129 DISTVER=`cat /etc/debian_version`
19130 TAPEDRIVE="/dev/nrst0"
19131 PSCMD="ps -e -o pid,command"
19134 DISTVER=`uname -a |awk '{print $3}'`
19135 VER=`echo $DISTVER | cut -c 1`
19136 if test x$VER = x4 ; then
19137 PTHREAD_LIB="-pthread"
19138 CFLAGS="${CFLAGS} -pthread"
19142 TAPEDRIVE="/dev/nrsa0"
19143 PSCMD="ps -x -o pid,command"
19144 PFILES="${PFILES} \
19145 platforms/freebsd/Makefile \
19146 platforms/freebsd/bacula-fd \
19147 platforms/freebsd/bacula-sd \
19148 platforms/freebsd/bacula-dir"
19149 largefile_support="yes"
19152 PSCMD="UNIX95=1 ps -e -o pid,comm"
19153 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
19155 TAPEDRIVE="/dev/rmt/0hnb"
19159 TAPEDRIVE="/dev/rmt/0cbn"
19160 PSCMD="ps -e -o pid,comm"
19161 PFILES="${PFILES} \
19162 platforms/irix/Makefile \
19163 platforms/irix/bacula-fd \
19164 platforms/irix/bacula-sd \
19165 platforms/irix/bacula-dir"
19168 DISTVER=`uname -a |awk '{print $3}'`
19171 TAPEDRIVE="/dev/nrst0"
19172 PSCMD="ps -a -o pid,command"
19173 PTHREAD_LIB="-pthread"
19174 CFLAGS="${CFLAGS} -pthread"
19177 DISTVER=`uname -a |awk '{print $3}'`
19180 TAPEDRIVE="/dev/nrst0"
19181 PSCMD="ps -ax -o pid,command"
19182 PTHREAD_LIB="-pthread"
19183 CFLAGS="${CFLAGS} -pthread"
19184 PFILES="${PFILES} \
19185 platforms/openbsd/Makefile \
19186 platforms/openbsd/bacula-fd \
19187 platforms/openbsd/bacula-sd \
19188 platforms/openbsd/bacula-dir"
19191 if test -f /etc/whitebox-release ; then
19192 f=/etc/whitebox-release
19194 f=/etc/redhat-release
19196 if test `cat $f | grep release |\
19197 cut -f 3 -d ' '`x = "Enterprise"x ; then
19198 DISTVER="Enterprise "`cat $f | grep release |\
19201 DISTVER=`cat /etc/redhat-release | grep release |\
19204 TAPEDRIVE="/dev/nst0"
19205 PSCMD="ps -e -o pid,command"
19206 PFILES="${PFILES} \
19207 platforms/redhat/Makefile \
19208 platforms/redhat/bacula-fd \
19209 platforms/redhat/bacula-sd \
19210 platforms/redhat/bacula-dir \
19211 platforms/redhat/bacula.spec \
19213 hostname=`hostname -s`
19216 DISTVER=`cat /etc/mandrake-release | grep release |\
19218 TAPEDRIVE="/dev/nst0"
19219 PSCMD="ps -e -o pid,command"
19220 PFILES="${PFILES} \
19221 platforms/mandrake/Makefile \
19222 platforms/mandrake/bacula-fd \
19223 platforms/mandrake/bacula-sd \
19224 platforms/mandrake/bacula-dir \
19225 platforms/mandrake/bacula.spec \
19229 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
19230 TAPEDRIVE="/dev/nst0"
19231 PSCMD="ps -e -o pid,command"
19232 PFILES="${PFILES} \
19233 platforms/gentoo/Makefile \
19234 platforms/gentoo/bacula-init \
19235 platforms/gentoo/bacula-fd \
19236 platforms/gentoo/bacula-sd \
19237 platforms/gentoo/bacula-dir"
19240 DISTVER=`cat /etc/slackware-version`
19241 TAPEDRIVE="/dev/nst0"
19242 PSCMD="ps -e -o pid,command"
19243 PFILES="${PFILES} \
19244 platforms/slackware/Makefile \
19245 platforms/slackware/rc.bacula-fd \
19246 platforms/slackware/rc.bacula-sd \
19247 platforms/slackware/rc.bacula-dir\
19248 platforms/slackware/functions.bacula"
19252 TAPEDRIVE="/dev/rmt/0cbn"
19253 PSCMD="ps -e -o pid,comm"
19254 PFILES="${PFILES} \
19255 platforms/solaris/Makefile \
19256 platforms/solaris/bacula-fd \
19257 platforms/solaris/bacula-sd \
19258 platforms/solaris/bacula-dir"
19259 if test x$DISTVER = x5.6 ; then
19260 cat >>confdefs.h <<\_ACEOF
19261 #define HAVE_OLD_SOCKOPT 1
19267 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
19269 TAPEDRIVE="/dev/nst0"
19270 PSCMD="ps -e -o pid,command"
19271 PFILES="${PFILES} \
19272 platforms/suse/Makefile \
19273 platforms/suse/bacula-fd \
19274 platforms/suse/bacula-sd \
19275 platforms/suse/bacula-dir \
19276 platforms/suse/bacula \
19277 platforms/suse/bacula.spec"
19282 TAPEDRIVE="/dev/nst0"
19283 PSCMD="ps -e -o pid,command"
19284 PFILES="${PFILES} \
19285 platforms/suse/Makefile \
19286 platforms/suse/bacula-fd \
19287 platforms/suse/bacula-sd \
19288 platforms/suse/bacula-dir"
19292 TAPEDRIVE="/dev/nst0"
19295 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
19301 LIBS="$PTHREAD_LIB $LIBS"
19303 cat >>confdefs.h <<_ACEOF
19307 cat >>confdefs.h <<_ACEOF
19318 MCOMMON=./autoconf/Make.common
19321 if test "x${subsysdir}" = "x${sbindir}" ; then
19324 echo "You have set both --sbindir and --with-subsys-dir"
19325 echo " equal to: ${subsysdir} "
19326 echo "This is not permitted. Please reconfigure."
19328 echo "Aborting configuration ..."
19334 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/linux/cdrom/bacula/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/bacula-tray-monitor.desktop doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile src/bimagemgr/Makefile src/bimagemgr/bacula-bimagemgr.spec $PFILES"
19335 ac_config_commands="$ac_config_commands default"
19336 cat >confcache <<\_ACEOF
19337 # This file is a shell script that caches the results of configure
19338 # tests run on this system so they can be shared between configure
19339 # scripts and configure runs, see configure's option --config-cache.
19340 # It is not useful on other systems. If it contains results you don't
19341 # want to keep, you may remove or edit it.
19343 # config.status only pays attention to the cache file if you give it
19344 # the --recheck option to rerun configure.
19346 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19347 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19348 # following values.
19352 # The following way of writing the cache mishandles newlines in values,
19353 # but we know of no workaround that is simple, portable, and efficient.
19354 # So, don't put newlines in cache variables' values.
19355 # Ultrix sh set writes to stderr and can't be redirected directly,
19356 # and sets the high bit in the cache file unless we assign to the vars.
19359 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19361 # `set' does not quote correctly, so add quotes (double-quote
19362 # substitution turns \\\\ into \\, and sed turns \\ into \).
19365 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19368 # `set' quotes correctly as required by POSIX, so do not add quotes.
19370 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19377 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19379 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19381 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19382 if test -w $cache_file; then
19383 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19384 cat confcache >$cache_file
19386 echo "not updating unwritable cache $cache_file"
19391 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19392 # Let make expand exec_prefix.
19393 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19395 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19396 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19397 # trailing colons and then remove the whole line if VPATH becomes empty
19398 # (actually we leave an empty line to preserve line numbers).
19399 if test "x$srcdir" = x.; then
19400 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19401 s/:*\$(srcdir):*/:/;
19402 s/:*\${srcdir}:*/:/;
19404 s/^\([^=]*=[ ]*\):*/\1/;
19410 DEFS=-DHAVE_CONFIG_H
19414 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19415 # 1. Remove the extension, and $U if already installed.
19416 ac_i=`echo "$ac_i" |
19417 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19419 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19420 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19422 LIBOBJS=$ac_libobjs
19424 LTLIBOBJS=$ac_ltlibobjs
19428 : ${CONFIG_STATUS=./config.status}
19429 ac_clean_files_save=$ac_clean_files
19430 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19431 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19432 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19433 cat >$CONFIG_STATUS <<_ACEOF
19435 # Generated by $as_me.
19436 # Run this file to recreate the current configuration.
19437 # Compiler output produced by configure, useful for debugging
19438 # configure, is in config.log if it exists.
19441 ac_cs_recheck=false
19443 SHELL=\${CONFIG_SHELL-$SHELL}
19446 cat >>$CONFIG_STATUS <<\_ACEOF
19447 ## --------------------- ##
19448 ## M4sh Initialization. ##
19449 ## --------------------- ##
19451 # Be Bourne compatible
19452 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19455 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19456 # is contrary to our usage. Disable this feature.
19457 alias -g '${1+"$@"}'='"$@"'
19458 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19462 # Support unset when possible.
19463 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19470 # Work around bugs in pre-3.0 UWIN ksh.
19471 $as_unset ENV MAIL MAILPATH
19478 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19479 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19480 LC_TELEPHONE LC_TIME
19482 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19483 eval $as_var=C; export $as_var
19489 # Required to use basename.
19490 if expr a : '\(a\)' >/dev/null 2>&1; then
19496 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19497 as_basename=basename
19503 # Name of the executable.
19504 as_me=`$as_basename "$0" ||
19505 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19506 X"$0" : 'X\(//\)$' \| \
19507 X"$0" : 'X\(/\)$' \| \
19508 . : '\(.\)' 2>/dev/null ||
19510 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19511 /^X\/\(\/\/\)$/{ s//\1/; q; }
19512 /^X\/\(\/\).*/{ s//\1/; q; }
19516 # PATH needs CR, and LINENO needs CR and PATH.
19517 # Avoid depending upon Character Ranges.
19518 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19519 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19520 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19521 as_cr_digits='0123456789'
19522 as_cr_alnum=$as_cr_Letters$as_cr_digits
19524 # The user is always right.
19525 if test "${PATH_SEPARATOR+set}" != set; then
19526 echo "#! /bin/sh" >conf$$.sh
19527 echo "exit 0" >>conf$$.sh
19529 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19538 as_lineno_1=$LINENO
19539 as_lineno_2=$LINENO
19540 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19541 test "x$as_lineno_1" != "x$as_lineno_2" &&
19542 test "x$as_lineno_3" = "x$as_lineno_2" || {
19543 # Find who we are. Look in the path if we contain no path at all
19546 *[\\/]* ) as_myself=$0 ;;
19547 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19548 for as_dir in $PATH
19551 test -z "$as_dir" && as_dir=.
19552 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19557 # We did not find ourselves, most probably we were run as `sh COMMAND'
19558 # in which case we are not to be found in the path.
19559 if test "x$as_myself" = x; then
19562 if test ! -f "$as_myself"; then
19563 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19564 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19565 { (exit 1); exit 1; }; }
19567 case $CONFIG_SHELL in
19569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19570 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19573 test -z "$as_dir" && as_dir=.
19574 for as_base in sh bash ksh sh5; do
19577 if ("$as_dir/$as_base" -c '
19578 as_lineno_1=$LINENO
19579 as_lineno_2=$LINENO
19580 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19581 test "x$as_lineno_1" != "x$as_lineno_2" &&
19582 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19583 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19584 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19585 CONFIG_SHELL=$as_dir/$as_base
19586 export CONFIG_SHELL
19587 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19595 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19596 # uniformly replaced by the line number. The first 'sed' inserts a
19597 # line-number line before each line; the second 'sed' does the real
19598 # work. The second script uses 'N' to pair each line-number line
19599 # with the numbered line, and appends trailing '-' during
19600 # substitution so that $LINENO is not a special case at line end.
19601 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19602 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19603 sed '=' <$as_myself |
19608 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19611 s,^['$as_cr_digits']*\n,,
19612 ' >$as_me.lineno &&
19613 chmod +x $as_me.lineno ||
19614 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19615 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19616 { (exit 1); exit 1; }; }
19618 # Don't try to exec as it changes $[0], causing all sort of problems
19619 # (the dirname of $[0] is not the place where we might find the
19620 # original and so on. Autoconf is especially sensible to this).
19622 # Exit status is that of the last command.
19627 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19628 *c*,-n*) ECHO_N= ECHO_C='
19630 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19631 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19634 if expr a : '\(a\)' >/dev/null 2>&1; then
19640 rm -f conf$$ conf$$.exe conf$$.file
19642 if ln -s conf$$.file conf$$ 2>/dev/null; then
19643 # We could just check for DJGPP; but this test a) works b) is more generic
19644 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19645 if test -f conf$$.exe; then
19646 # Don't use ln at all; we don't have any links
19651 elif ln conf$$.file conf$$ 2>/dev/null; then
19656 rm -f conf$$ conf$$.exe conf$$.file
19658 if mkdir -p . 2>/dev/null; then
19664 as_executable_p="test -f"
19666 # Sed expression to map a string onto a valid CPP name.
19667 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19669 # Sed expression to map a string onto a valid variable name.
19670 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19674 # We need space, tab and new line, in precisely that order.
19684 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19685 # report actual input values of CONFIG_FILES etc. instead of their
19686 # values after options handling. Logging --version etc. is OK.
19690 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19691 ## Running $as_me. ##
19696 This file was extended by $as_me, which was
19697 generated by GNU Autoconf 2.57. Invocation command line was
19699 CONFIG_FILES = $CONFIG_FILES
19700 CONFIG_HEADERS = $CONFIG_HEADERS
19701 CONFIG_LINKS = $CONFIG_LINKS
19702 CONFIG_COMMANDS = $CONFIG_COMMANDS
19706 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19710 # Files that config.status was made for.
19711 if test -n "$ac_config_files"; then
19712 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19715 if test -n "$ac_config_headers"; then
19716 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19719 if test -n "$ac_config_links"; then
19720 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19723 if test -n "$ac_config_commands"; then
19724 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19727 cat >>$CONFIG_STATUS <<\_ACEOF
19730 \`$as_me' instantiates files from templates according to the
19731 current configuration.
19733 Usage: $0 [OPTIONS] [FILE]...
19735 -h, --help print this help, then exit
19736 -V, --version print version number, then exit
19737 -q, --quiet do not print progress messages
19738 -d, --debug don't remove temporary files
19739 --recheck update $as_me by reconfiguring in the same conditions
19740 --file=FILE[:TEMPLATE]
19741 instantiate the configuration file FILE
19742 --header=FILE[:TEMPLATE]
19743 instantiate the configuration header FILE
19745 Configuration files:
19748 Configuration headers:
19751 Configuration commands:
19754 Report bugs to <bug-autoconf@gnu.org>."
19757 cat >>$CONFIG_STATUS <<_ACEOF
19760 configured by $0, generated by GNU Autoconf 2.57,
19761 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19763 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19764 Free Software Foundation, Inc.
19765 This config.status script is free software; the Free Software Foundation
19766 gives unlimited permission to copy, distribute and modify it."
19771 cat >>$CONFIG_STATUS <<\_ACEOF
19772 # If no file are specified by the user, then we need to provide default
19773 # value. By we need to know if files were specified by the user.
19779 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19780 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19788 *) # This is not an option, so the user has probably given explicit
19791 ac_need_defaults=false;;
19795 # Handling of the options.
19797 cat >>$CONFIG_STATUS <<\_ACEOF
19798 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19800 --version | --vers* | -V )
19801 echo "$ac_cs_version"; exit 0 ;;
19803 # Conflict between --help and --header
19804 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19805 Try \`$0 --help' for more information." >&5
19806 echo "$as_me: error: ambiguous option: $1
19807 Try \`$0 --help' for more information." >&2;}
19808 { (exit 1); exit 1; }; };;
19809 --help | --hel | -h )
19810 echo "$ac_cs_usage"; exit 0 ;;
19811 --debug | --d* | -d )
19813 --file | --fil | --fi | --f )
19815 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19816 ac_need_defaults=false;;
19817 --header | --heade | --head | --hea )
19819 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19820 ac_need_defaults=false;;
19821 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19822 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19825 # This is an error.
19826 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19827 Try \`$0 --help' for more information." >&5
19828 echo "$as_me: error: unrecognized option: $1
19829 Try \`$0 --help' for more information." >&2;}
19830 { (exit 1); exit 1; }; } ;;
19832 *) ac_config_targets="$ac_config_targets $1" ;;
19838 ac_configure_extra_args=
19840 if $ac_cs_silent; then
19842 ac_configure_extra_args="$ac_configure_extra_args --silent"
19846 cat >>$CONFIG_STATUS <<_ACEOF
19847 if \$ac_cs_recheck; then
19848 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19849 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19858 cat >>$CONFIG_STATUS <<\_ACEOF
19859 for ac_config_target in $ac_config_targets
19861 case "$ac_config_target" in
19862 # Handling of arguments.
19863 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19864 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19865 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19866 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19867 "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
19868 "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
19869 "rescue/linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/bacula/Makefile" ;;
19870 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19871 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19872 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19873 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19874 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19875 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19876 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19877 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19878 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19879 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19880 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19881 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19882 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19883 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19884 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19885 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19886 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19887 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19888 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19889 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19890 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19891 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
19892 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19893 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19894 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19895 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19896 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19897 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19898 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19899 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19900 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19901 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19902 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19903 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19904 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19905 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19906 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19907 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19908 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19909 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19910 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19911 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19912 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19913 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19914 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19915 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19916 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19917 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19918 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19919 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19920 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19921 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19922 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19923 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19924 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19925 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19926 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19927 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19928 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19929 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19930 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19931 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19932 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19933 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19934 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19935 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19936 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19937 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19938 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19939 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19940 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19941 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19942 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19943 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19944 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19945 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19946 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19947 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19948 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19949 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19950 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19951 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19952 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19953 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19954 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19955 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
19956 "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
19957 "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
19958 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19959 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19960 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19961 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19962 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19963 { (exit 1); exit 1; }; };;
19967 # If the user did not use the arguments to specify the items to instantiate,
19968 # then the envvar interface is used. Set only those that are not.
19969 # We use the long form for the default assignment because of an extremely
19970 # bizarre bug on SunOS 4.1.3.
19971 if $ac_need_defaults; then
19972 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19973 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19974 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19977 # Have a temporary directory for convenience. Make it in the build tree
19978 # simply because there is no reason to put it here, and in addition,
19979 # creating and moving files from /tmp can sometimes cause problems.
19980 # Create a temporary directory, and hook for its removal unless debugging.
19983 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19984 trap '{ (exit 1); exit 1; }' 1 2 13 15
19987 # Create a (secure) tmp directory for tmp files.
19990 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19991 test -n "$tmp" && test -d "$tmp"
19994 tmp=./confstat$$-$RANDOM
19995 (umask 077 && mkdir $tmp)
19998 echo "$me: cannot create a temporary directory in ." >&2
19999 { (exit 1); exit 1; }
20004 cat >>$CONFIG_STATUS <<_ACEOF
20007 # CONFIG_FILES section.
20010 # No need to generate the scripts if there are no CONFIG_FILES.
20011 # This happens for instance when ./config.status config.h
20012 if test -n "\$CONFIG_FILES"; then
20013 # Protect against being on the right side of a sed subst in config.status.
20014 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20015 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20016 s,@SHELL@,$SHELL,;t t
20017 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20018 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20019 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20020 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20021 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20022 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20023 s,@exec_prefix@,$exec_prefix,;t t
20024 s,@prefix@,$prefix,;t t
20025 s,@program_transform_name@,$program_transform_name,;t t
20026 s,@bindir@,$bindir,;t t
20027 s,@sbindir@,$sbindir,;t t
20028 s,@libexecdir@,$libexecdir,;t t
20029 s,@datadir@,$datadir,;t t
20030 s,@sysconfdir@,$sysconfdir,;t t
20031 s,@sharedstatedir@,$sharedstatedir,;t t
20032 s,@localstatedir@,$localstatedir,;t t
20033 s,@libdir@,$libdir,;t t
20034 s,@includedir@,$includedir,;t t
20035 s,@oldincludedir@,$oldincludedir,;t t
20036 s,@infodir@,$infodir,;t t
20037 s,@mandir@,$mandir,;t t
20038 s,@build_alias@,$build_alias,;t t
20039 s,@host_alias@,$host_alias,;t t
20040 s,@target_alias@,$target_alias,;t t
20041 s,@DEFS@,$DEFS,;t t
20042 s,@ECHO_C@,$ECHO_C,;t t
20043 s,@ECHO_N@,$ECHO_N,;t t
20044 s,@ECHO_T@,$ECHO_T,;t t
20045 s,@LIBS@,$LIBS,;t t
20046 s,@BUILD_DIR@,$BUILD_DIR,;t t
20047 s,@TRUEPRG@,$TRUEPRG,;t t
20048 s,@FALSEPRG@,$FALSEPRG,;t t
20049 s,@VERSION@,$VERSION,;t t
20050 s,@DATE@,$DATE,;t t
20051 s,@LSMDATE@,$LSMDATE,;t t
20053 s,@CFLAGS@,$CFLAGS,;t t
20054 s,@LDFLAGS@,$LDFLAGS,;t t
20055 s,@CPPFLAGS@,$CPPFLAGS,;t t
20056 s,@ac_ct_CC@,$ac_ct_CC,;t t
20057 s,@EXEEXT@,$EXEEXT,;t t
20058 s,@OBJEXT@,$OBJEXT,;t t
20060 s,@CXXFLAGS@,$CXXFLAGS,;t t
20061 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20063 s,@EGREP@,$EGREP,;t t
20064 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20065 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20066 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20067 s,@RANLIB@,$RANLIB,;t t
20068 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20074 s,@ECHO@,$ECHO,;t t
20078 s,@OPENSSL@,$OPENSSL,;t t
20080 s,@PKGCONFIG@,$PKGCONFIG,;t t
20081 s,@WXCONFIG@,$WXCONFIG,;t t
20082 s,@CDRECORD@,$CDRECORD,;t t
20083 s,@PIDOF@,$PIDOF,;t t
20084 s,@ARFLAGS@,$ARFLAGS,;t t
20085 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
20086 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
20087 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
20088 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
20089 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
20090 s,@build@,$build,;t t
20091 s,@build_cpu@,$build_cpu,;t t
20092 s,@build_vendor@,$build_vendor,;t t
20093 s,@build_os@,$build_os,;t t
20094 s,@host@,$host,;t t
20095 s,@host_cpu@,$host_cpu,;t t
20096 s,@host_vendor@,$host_vendor,;t t
20097 s,@host_os@,$host_os,;t t
20098 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
20099 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
20100 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
20101 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
20102 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
20103 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
20104 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
20105 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
20106 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
20107 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
20108 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
20109 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
20110 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
20111 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
20112 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
20113 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
20114 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
20115 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
20116 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
20117 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
20118 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
20119 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
20120 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
20121 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
20122 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
20123 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
20124 s,@MSGFMT@,$MSGFMT,;t t
20125 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
20126 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
20127 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
20128 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
20129 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
20130 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
20131 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
20132 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
20133 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
20134 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
20135 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
20136 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
20137 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
20138 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
20139 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
20140 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
20141 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
20142 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
20143 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
20144 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
20145 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
20146 s,@GNOME_DIR@,$GNOME_DIR,;t t
20147 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
20148 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
20149 s,@WX_DIR@,$WX_DIR,;t t
20150 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
20151 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
20152 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
20153 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
20154 s,@STATIC_FD@,$STATIC_FD,;t t
20155 s,@STATIC_SD@,$STATIC_SD,;t t
20156 s,@STATIC_DIR@,$STATIC_DIR,;t t
20157 s,@STATIC_CONS@,$STATIC_CONS,;t t
20158 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
20159 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
20160 s,@ALL_DIRS@,$ALL_DIRS,;t t
20161 s,@CONS_INC@,$CONS_INC,;t t
20162 s,@CONS_OBJ@,$CONS_OBJ,;t t
20163 s,@CONS_SRC@,$CONS_SRC,;t t
20164 s,@CONS_LIBS@,$CONS_LIBS,;t t
20165 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
20166 s,@READLINE_SRC@,$READLINE_SRC,;t t
20167 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
20168 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
20169 s,@CDSTL@,$CDSTL,;t t
20170 s,@working_dir@,$working_dir,;t t
20171 s,@scriptdir@,$scriptdir,;t t
20172 s,@dump_email@,$dump_email,;t t
20173 s,@job_email@,$job_email,;t t
20174 s,@smtp_host@,$smtp_host,;t t
20175 s,@piddir@,$piddir,;t t
20176 s,@subsysdir@,$subsysdir,;t t
20177 s,@baseport@,$baseport,;t t
20178 s,@dir_port@,$dir_port,;t t
20179 s,@fd_port@,$fd_port,;t t
20180 s,@sd_port@,$sd_port,;t t
20181 s,@dir_password@,$dir_password,;t t
20182 s,@fd_password@,$fd_password,;t t
20183 s,@sd_password@,$sd_password,;t t
20184 s,@mon_dir_password@,$mon_dir_password,;t t
20185 s,@mon_fd_password@,$mon_fd_password,;t t
20186 s,@mon_sd_password@,$mon_sd_password,;t t
20187 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
20188 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
20189 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
20190 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
20191 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
20192 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
20193 s,@dir_user@,$dir_user,;t t
20194 s,@dir_group@,$dir_group,;t t
20195 s,@sd_user@,$sd_user,;t t
20196 s,@sd_group@,$sd_group,;t t
20197 s,@fd_user@,$fd_user,;t t
20198 s,@fd_group@,$fd_group,;t t
20199 s,@SBINPERM@,$SBINPERM,;t t
20200 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
20201 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
20202 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
20203 s,@cats@,$cats,;t t
20204 s,@DB_NAME@,$DB_NAME,;t t
20205 s,@GETCONF@,$GETCONF,;t t
20206 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
20207 s,@X_CFLAGS@,$X_CFLAGS,;t t
20208 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20209 s,@X_LIBS@,$X_LIBS,;t t
20210 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20211 s,@LIBOBJS@,$LIBOBJS,;t t
20212 s,@ALLOCA@,$ALLOCA,;t t
20213 s,@FDLIBS@,$FDLIBS,;t t
20214 s,@DEBUG@,$DEBUG,;t t
20215 s,@DINCLUDE@,$DINCLUDE,;t t
20216 s,@DLIB@,$DLIB,;t t
20217 s,@DB_LIBS@,$DB_LIBS,;t t
20218 s,@WCFLAGS@,$WCFLAGS,;t t
20219 s,@WLDFLAGS@,$WLDFLAGS,;t t
20220 s,@OBJLIST@,$OBJLIST,;t t
20221 s,@hostname@,$hostname,;t t
20222 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
20223 s,@PSCMD@,$PSCMD,;t t
20224 s,@WIN32@,$WIN32,;t t
20225 s,@MACOSX@,$MACOSX,;t t
20226 s,@DISTNAME@,$DISTNAME,;t t
20227 s,@DISTVER@,$DISTVER,;t t
20228 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20229 /@MCOMMON@/r $MCOMMON
20235 cat >>$CONFIG_STATUS <<\_ACEOF
20236 # Split the substitutions into bite-sized pieces for seds with
20237 # small command number limits, like on Digital OSF/1 and HP-UX.
20238 ac_max_sed_lines=48
20239 ac_sed_frag=1 # Number of current file.
20240 ac_beg=1 # First line for current file.
20241 ac_end=$ac_max_sed_lines # Line after last line for current file.
20244 while $ac_more_lines; do
20245 if test $ac_beg -gt 1; then
20246 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20248 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20250 if test ! -s $tmp/subs.frag; then
20251 ac_more_lines=false
20253 # The purpose of the label and of the branching condition is to
20254 # speed up the sed processing (if there are no `@' at all, there
20255 # is no need to browse any of the substitutions).
20256 # These are the two extra sed commands mentioned above.
20258 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20259 if test -z "$ac_sed_cmds"; then
20260 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20262 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20264 ac_sed_frag=`expr $ac_sed_frag + 1`
20266 ac_end=`expr $ac_end + $ac_max_sed_lines`
20269 if test -z "$ac_sed_cmds"; then
20272 fi # test -n "$CONFIG_FILES"
20275 cat >>$CONFIG_STATUS <<\_ACEOF
20276 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20277 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20279 - | *:- | *:-:* ) # input from stdin
20281 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20282 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20283 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20284 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20285 * ) ac_file_in=$ac_file.in ;;
20288 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20289 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20290 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20291 X"$ac_file" : 'X\(//\)[^/]' \| \
20292 X"$ac_file" : 'X\(//\)$' \| \
20293 X"$ac_file" : 'X\(/\)' \| \
20294 . : '\(.\)' 2>/dev/null ||
20296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20298 /^X\(\/\/\)$/{ s//\1/; q; }
20299 /^X\(\/\).*/{ s//\1/; q; }
20301 { if $as_mkdir_p; then
20306 while test ! -d "$as_dir"; do
20307 as_dirs="$as_dir $as_dirs"
20308 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20310 X"$as_dir" : 'X\(//\)[^/]' \| \
20311 X"$as_dir" : 'X\(//\)$' \| \
20312 X"$as_dir" : 'X\(/\)' \| \
20313 . : '\(.\)' 2>/dev/null ||
20315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20317 /^X\(\/\/\)$/{ s//\1/; q; }
20318 /^X\(\/\).*/{ s//\1/; q; }
20321 test ! -n "$as_dirs" || mkdir $as_dirs
20322 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20323 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20324 { (exit 1); exit 1; }; }; }
20328 if test "$ac_dir" != .; then
20329 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20330 # A "../" for each directory in $ac_dir_suffix.
20331 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20333 ac_dir_suffix= ac_top_builddir=
20337 .) # No --srcdir option. We are building in place.
20339 if test -z "$ac_top_builddir"; then
20342 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20344 [\\/]* | ?:[\\/]* ) # Absolute path.
20345 ac_srcdir=$srcdir$ac_dir_suffix;
20346 ac_top_srcdir=$srcdir ;;
20347 *) # Relative path.
20348 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20349 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20351 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20353 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20354 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20355 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20356 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20360 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20361 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20364 if test x"$ac_file" != x-; then
20365 { echo "$as_me:$LINENO: creating $ac_file" >&5
20366 echo "$as_me: creating $ac_file" >&6;}
20369 # Let's still pretend it is `configure' which instantiates (i.e., don't
20370 # use $as_me), people would be surprised to read:
20371 # /* config.h. Generated by config.status. */
20372 if test x"$ac_file" = x-; then
20375 configure_input="$ac_file. "
20377 configure_input=$configure_input"Generated from `echo $ac_file_in |
20378 sed 's,.*/,,'` by configure."
20380 # First look for the input files in the build tree, otherwise in the
20382 ac_file_inputs=`IFS=:
20383 for f in $ac_file_in; do
20385 -) echo $tmp/stdin ;;
20387 # Absolute (can't be DOS-style, as IFS=:)
20388 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20389 echo "$as_me: error: cannot find input file: $f" >&2;}
20390 { (exit 1); exit 1; }; }
20393 if test -f "$f"; then
20396 elif test -f "$srcdir/$f"; then
20401 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20402 echo "$as_me: error: cannot find input file: $f" >&2;}
20403 { (exit 1); exit 1; }; }
20406 done` || { (exit 1); exit 1; }
20408 cat >>$CONFIG_STATUS <<_ACEOF
20412 cat >>$CONFIG_STATUS <<\_ACEOF
20414 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20415 s,@configure_input@,$configure_input,;t t
20416 s,@srcdir@,$ac_srcdir,;t t
20417 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20418 s,@top_srcdir@,$ac_top_srcdir,;t t
20419 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20420 s,@builddir@,$ac_builddir,;t t
20421 s,@abs_builddir@,$ac_abs_builddir,;t t
20422 s,@top_builddir@,$ac_top_builddir,;t t
20423 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20424 s,@INSTALL@,$ac_INSTALL,;t t
20425 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20427 if test x"$ac_file" != x-; then
20428 mv $tmp/out $ac_file
20436 cat >>$CONFIG_STATUS <<\_ACEOF
20439 # CONFIG_HEADER section.
20442 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20443 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20445 # ac_d sets the value in "#define NAME VALUE" lines.
20446 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20447 ac_dB='[ ].*$,\1#\2'
20450 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20451 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20452 ac_uB='$,\1#\2define\3'
20456 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20457 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20459 - | *:- | *:-:* ) # input from stdin
20461 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20462 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20463 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20464 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20465 * ) ac_file_in=$ac_file.in ;;
20468 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20469 echo "$as_me: creating $ac_file" >&6;}
20471 # First look for the input files in the build tree, otherwise in the
20473 ac_file_inputs=`IFS=:
20474 for f in $ac_file_in; do
20476 -) echo $tmp/stdin ;;
20478 # Absolute (can't be DOS-style, as IFS=:)
20479 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20480 echo "$as_me: error: cannot find input file: $f" >&2;}
20481 { (exit 1); exit 1; }; }
20484 if test -f "$f"; then
20487 elif test -f "$srcdir/$f"; then
20492 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20493 echo "$as_me: error: cannot find input file: $f" >&2;}
20494 { (exit 1); exit 1; }; }
20497 done` || { (exit 1); exit 1; }
20498 # Remove the trailing spaces.
20499 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20503 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20504 # `conftest.undefs', that substitutes the proper values into
20505 # config.h.in to produce config.h. The first handles `#define'
20506 # templates, and the second `#undef' templates.
20507 # And first: Protect against being on the right side of a sed subst in
20508 # config.status. Protect against being in an unquoted here document
20509 # in config.status.
20510 rm -f conftest.defines conftest.undefs
20511 # Using a here document instead of a string reduces the quoting nightmare.
20512 # Putting comments in sed scripts is not portable.
20514 # `end' is used to avoid that the second main sed command (meant for
20515 # 0-ary CPP macros) applies to n-ary macro definitions.
20516 # See the Autoconf documentation for `clear'.
20517 cat >confdef2sed.sed <<\_ACEOF
20522 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20524 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20527 # If some macros were called several times there might be several times
20528 # the same #defines, which is useless. Nevertheless, we may not want to
20529 # sort them, since we want the *last* AC-DEFINE to be honored.
20530 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20531 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20532 rm -f confdef2sed.sed
20534 # This sed command replaces #undef with comments. This is necessary, for
20535 # example, in the case of _POSIX_SOURCE, which is predefined and required
20536 # on some systems where configure will not decide to define it.
20537 cat >>conftest.undefs <<\_ACEOF
20538 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20541 # Break up conftest.defines because some shells have a limit on the size
20542 # of here documents, and old seds have small limits too (100 cmds).
20543 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20544 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20545 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20546 echo ' :' >>$CONFIG_STATUS
20547 rm -f conftest.tail
20548 while grep . conftest.defines >/dev/null
20550 # Write a limited-size here document to $tmp/defines.sed.
20551 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20552 # Speed up: don't consider the non `#define' lines.
20553 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20554 # Work around the forget-to-reset-the-flag bug.
20555 echo 't clr' >>$CONFIG_STATUS
20556 echo ': clr' >>$CONFIG_STATUS
20557 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20559 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20561 mv $tmp/out $tmp/in
20563 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20564 rm -f conftest.defines
20565 mv conftest.tail conftest.defines
20567 rm -f conftest.defines
20568 echo ' fi # grep' >>$CONFIG_STATUS
20569 echo >>$CONFIG_STATUS
20571 # Break up conftest.undefs because some shells have a limit on the size
20572 # of here documents, and old seds have small limits too (100 cmds).
20573 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20574 rm -f conftest.tail
20575 while grep . conftest.undefs >/dev/null
20577 # Write a limited-size here document to $tmp/undefs.sed.
20578 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20579 # Speed up: don't consider the non `#undef'
20580 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20581 # Work around the forget-to-reset-the-flag bug.
20582 echo 't clr' >>$CONFIG_STATUS
20583 echo ': clr' >>$CONFIG_STATUS
20584 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20586 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20588 mv $tmp/out $tmp/in
20590 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20591 rm -f conftest.undefs
20592 mv conftest.tail conftest.undefs
20594 rm -f conftest.undefs
20596 cat >>$CONFIG_STATUS <<\_ACEOF
20597 # Let's still pretend it is `configure' which instantiates (i.e., don't
20598 # use $as_me), people would be surprised to read:
20599 # /* config.h. Generated by config.status. */
20600 if test x"$ac_file" = x-; then
20601 echo "/* Generated by configure. */" >$tmp/config.h
20603 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20605 cat $tmp/in >>$tmp/config.h
20607 if test x"$ac_file" != x-; then
20608 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20609 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20610 echo "$as_me: $ac_file is unchanged" >&6;}
20612 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20613 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20614 X"$ac_file" : 'X\(//\)[^/]' \| \
20615 X"$ac_file" : 'X\(//\)$' \| \
20616 X"$ac_file" : 'X\(/\)' \| \
20617 . : '\(.\)' 2>/dev/null ||
20619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20620 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20621 /^X\(\/\/\)$/{ s//\1/; q; }
20622 /^X\(\/\).*/{ s//\1/; q; }
20624 { if $as_mkdir_p; then
20629 while test ! -d "$as_dir"; do
20630 as_dirs="$as_dir $as_dirs"
20631 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20633 X"$as_dir" : 'X\(//\)[^/]' \| \
20634 X"$as_dir" : 'X\(//\)$' \| \
20635 X"$as_dir" : 'X\(/\)' \| \
20636 . : '\(.\)' 2>/dev/null ||
20638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20639 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20640 /^X\(\/\/\)$/{ s//\1/; q; }
20641 /^X\(\/\).*/{ s//\1/; q; }
20644 test ! -n "$as_dirs" || mkdir $as_dirs
20645 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20646 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20647 { (exit 1); exit 1; }; }; }
20650 mv $tmp/config.h $ac_file
20654 rm -f $tmp/config.h
20658 cat >>$CONFIG_STATUS <<\_ACEOF
20661 # CONFIG_COMMANDS section.
20663 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20664 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20665 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20666 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20667 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20668 X"$ac_dest" : 'X\(//\)[^/]' \| \
20669 X"$ac_dest" : 'X\(//\)$' \| \
20670 X"$ac_dest" : 'X\(/\)' \| \
20671 . : '\(.\)' 2>/dev/null ||
20673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20674 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20675 /^X\(\/\/\)$/{ s//\1/; q; }
20676 /^X\(\/\).*/{ s//\1/; q; }
20680 if test "$ac_dir" != .; then
20681 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20682 # A "../" for each directory in $ac_dir_suffix.
20683 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20685 ac_dir_suffix= ac_top_builddir=
20689 .) # No --srcdir option. We are building in place.
20691 if test -z "$ac_top_builddir"; then
20694 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20696 [\\/]* | ?:[\\/]* ) # Absolute path.
20697 ac_srcdir=$srcdir$ac_dir_suffix;
20698 ac_top_srcdir=$srcdir ;;
20699 *) # Relative path.
20700 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20701 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20703 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20705 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20706 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20707 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20708 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20711 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20712 echo "$as_me: executing $ac_dest commands" >&6;}
20714 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20720 cat >>$CONFIG_STATUS <<\_ACEOF
20722 { (exit 0); exit 0; }
20724 chmod +x $CONFIG_STATUS
20725 ac_clean_files=$ac_clean_files_save
20728 # configure is writing to config.log, and then calls config.status.
20729 # config.status does its own redirection, appending to config.log.
20730 # Unfortunately, on DOS this fails, as config.log is still kept open
20731 # by configure, so config.status won't be able to write to it; its
20732 # output is simply discarded. So we exec the FD to /dev/null,
20733 # effectively closing config.log, so it can be properly (re)opened and
20734 # appended to by config.status. When coming back to configure, we
20735 # need to make the FD available again.
20736 if test "$no_create" != yes; then
20738 ac_config_status_args=
20739 test "$silent" = yes &&
20740 ac_config_status_args="$ac_config_status_args --quiet"
20742 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20744 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20745 # would make configure fail if this is the last instruction.
20746 $ac_cs_success || { (exit 1); exit 1; }
20751 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20752 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20757 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
20758 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
20760 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
20761 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
20763 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
20764 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
20766 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
20767 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
20769 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
20770 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
20772 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20773 chmod 755 $c/sqlite
20776 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20777 largefile_support="yes"
20781 # A whole lot of hand springs to get the compiler version.
20782 # This is because gcc changed the output in version 3.0
20784 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20785 if test "x${CCVERSION}" = "x" ; then
20786 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20788 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20789 if test x"${CXXVERSION}" = x ; then
20790 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20793 if test "x${subsysdir}" = "x${sbindir}" ; then
20796 echo "You have set --sbindir and --with-subsys-dir"
20797 echo " both equal to: ${subsysdir} "
20798 echo " This is not permitted. Please reconfigure."
20800 echo "Aborting configuration ..."
20806 if test "x${db_name}" = "xInternal" ; then
20809 echo "You have not specified either --enable-client-only or one of the"
20810 echo " supported databases: MySQL, PostgreSQL, or SQLite".
20811 echo " This is not permitted. Please reconfigure."
20813 echo "Aborting the configuration ..."
20820 Configuration on `date`:
20822 Host: $host -- ${DISTNAME} ${DISTVER}
20823 Bacula version: ${VERSION} (${DATE})
20824 Source code location: ${srcdir}
20825 Install binaries: ${sbindir}
20826 Install config files: ${sysconfdir}
20827 Scripts directory: ${scriptdir}
20828 Working directory: ${working_dir}
20829 PID directory: ${piddir}
20830 Subsys directory: ${subsysdir}
20831 C Compiler: ${CC} ${CCVERSION}
20832 C++ Compiler: ${CXX} ${CXXVERSION}
20833 Compiler flags: ${WCFLAGS} ${CFLAGS}
20834 Linker flags: ${WLDFLAGS} ${LDFLAGS}
20836 Statically Linked Tools: ${support_static_tools}
20837 Statically Linked FD: ${support_static_fd}
20838 Statically Linked SD: ${support_static_sd}
20839 Statically Linked DIR: ${support_static_dir}
20840 Statically Linked CONS: ${support_static_cons}
20841 Database type: ${db_name}
20842 Database lib: ${DB_LIBS}
20844 Job Output Email: ${job_email}
20845 Traceback Email: ${dump_email}
20846 SMTP Host Address: ${smtp_host}
20848 Director Port: ${dir_port}
20849 File daemon Port: ${fd_port}
20850 Storage daemon Port: ${sd_port}
20852 Director User: ${dir_user}
20853 Director Group: ${dir_group}
20854 Storage Daemon User: ${sd_user}
20855 Storage DaemonGroup: ${sd_group}
20856 File Daemon User: ${fd_user}
20857 File Daemon Group: ${fd_group}
20859 SQL binaries Directory ${SQL_BINDIR}
20861 Large file support: $largefile_support
20862 Bacula conio support: ${got_conio} ${CONS_LIBS}
20863 readline support: ${got_readline} ${PRTREADLINE_SRC}
20864 TCP Wrappers support: ${TCPW_MSG}
20865 ZLIB support: ${have_zlib}
20866 enable-smartalloc: ${support_smartalloc}
20867 enable-gnome: ${support_gnome} ${gnome_version}
20868 enable-wx-console: ${support_wx_console}
20869 enable-tray-monitor: ${support_tray_monitor}
20870 client-only: ${build_client_only}
20871 ACL support: ${have_acl}
20872 Python support: ${support_python} ${PYTHON_LIBS}
20879 # cweb support: ${got_cweb} ${CWEB_SRC}
20880 # gmp support: ${got_gmp} ${GMP_SRC}