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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS 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 TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group 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 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-smartalloc enable smartalloc debugging support disabled
860 --enable-static-tools enable static tape tools disabled
861 --enable-static-fd enable static File daemon disabled
862 --enable-static-sd enable static Storage daemon disabled
863 --enable-static-dir enable static Director disabled
864 --enable-static-cons enable static Console disabled
865 --enable-client-only build client (File daemon) only disabled
866 --disable-conio disable conio support enabled
868 --disable-readline disable readline support disable
870 --disable-largefile omit support for large files
873 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
874 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
875 --with-gnome-includes Specify location of GNOME headers
876 --with-gnome-libs Specify location of GNOME libs
877 --with-gnome Specify prefix for GNOME files
878 --with-readline=DIR specify readline library directory
879 --with-tcp-wrappers=DIR enable tcpwrappers support
880 --with-working-dir=PATH specify path of Bacula working directory
881 --with-scriptdir=PATH specify path of Bacula scripts directory
882 --with-dump-email=EMAIL dump email address
883 --with-job-email=EMAIL job output email address
884 --with-smtp-host=HOST SMTP mail host address
885 --with-pid-dir=PATH specify location of Bacula pid files
886 --with-subsys-dir=PATH specify location of Bacula subsys file
887 --with-baseport=PORT specify base port address for daemons
888 --with-dir-password=PASSWORD specify Director's password
889 --with-fd-password=PASSWORD specify Client's password
890 --with-sd-password=PASSWORD specify Storage daemon's password
891 --with-dir-user=USER specify user for Director daemon
892 --with-dir-group=GROUP specify group for Director daemon
893 --with-sd-user=USER specify user for Storage daemon
894 --with-sd-group=GROUP specify group for Storage daemon
895 --with-fd-user=USER specify user for File daemon
896 --with-fd-group=GROUP specify group for File daemon
897 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
898 base install directory, defaults to /usr/local/pgsql
900 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
901 install directory, default is to search through
902 a number of common places for the MySQL files.
904 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
905 install directory, default is to search through
906 a number of common places for the MySQL files.
908 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
909 install directory, default is to search through
910 a number of common places for the SQLite files.
911 --with-x use the X Window System
913 Some influential environment variables:
914 CC C compiler command
915 CFLAGS C compiler flags
916 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
917 nonstandard directory <lib dir>
918 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
919 headers in a nonstandard directory <include dir>
920 CXX C++ compiler command
921 CXXFLAGS C++ compiler flags
924 Use these variables to override the choices made by `configure' or to help
925 it to find libraries and programs with nonstandard names/locations.
930 if test "$ac_init_help" = "recursive"; then
931 # If there are subdirs, report their specific --help.
933 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
934 test -d $ac_dir || continue
937 if test "$ac_dir" != .; then
938 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
939 # A "../" for each directory in $ac_dir_suffix.
940 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
942 ac_dir_suffix= ac_top_builddir=
946 .) # No --srcdir option. We are building in place.
948 if test -z "$ac_top_builddir"; then
951 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
953 [\\/]* | ?:[\\/]* ) # Absolute path.
954 ac_srcdir=$srcdir$ac_dir_suffix;
955 ac_top_srcdir=$srcdir ;;
957 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
958 ac_top_srcdir=$ac_top_builddir$srcdir ;;
960 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
962 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
963 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
964 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
965 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
968 # Check for guested configure; otherwise get Cygnus style configure.
969 if test -f $ac_srcdir/configure.gnu; then
971 $SHELL $ac_srcdir/configure.gnu --help=recursive
972 elif test -f $ac_srcdir/configure; then
974 $SHELL $ac_srcdir/configure --help=recursive
975 elif test -f $ac_srcdir/configure.ac ||
976 test -f $ac_srcdir/configure.in; then
980 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
990 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
991 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
999 This file contains any messages produced by compilers while
1000 running configure, to aid debugging if configure makes a mistake.
1002 It was created by $as_me, which was
1003 generated by GNU Autoconf 2.57. Invocation command line was
1014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037 test -z "$as_dir" && as_dir=.
1038 echo "PATH: $as_dir"
1053 # Keep a trace of the command line.
1054 # Strip out --no-create and --no-recursion so they do not pile up.
1055 # Strip out --silent because we don't want to record it for future runs.
1056 # Also quote any args containing shell meta-characters.
1057 # Make two passes to allow for proper duplicate-argument suppression.
1062 ac_must_keep_next=false
1068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1072 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079 if test $ac_must_keep_next = true; then
1080 ac_must_keep_next=false # Got value, back to normal.
1083 *=* | --config-cache | -C | -disable-* | --disable-* \
1084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086 | -with-* | --with-* | -without-* | --without-* | --x)
1087 case "$ac_configure_args0 " in
1088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091 -* ) ac_must_keep_next=true ;;
1094 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095 # Get rid of the leading space.
1101 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104 # When interrupted or exit'd, cleanup temporary files, and complete
1105 # config.log. We remove comments because anyway the quotes in there
1106 # would cause problems or look ugly.
1107 # WARNING: Be sure not to use single quotes in there, as some shells,
1108 # such as our DU 5.0 friend, will then `close' the trap.
1109 trap 'exit_status=$?
1110 # Save into config.log some information that might help in debugging.
1115 ## ---------------- ##
1116 ## Cache variables. ##
1117 ## ---------------- ##
1120 # The following way of writing the cache mishandles newlines in values,
1123 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138 ## ----------------- ##
1139 ## Output variables. ##
1140 ## ----------------- ##
1143 for ac_var in $ac_subst_vars
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1150 if test -n "$ac_subst_files"; then
1157 for ac_var in $ac_subst_files
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1165 if test -s confdefs.h; then
1172 sed "/^$/d" confdefs.h | sort
1175 test "$ac_signal" != 0 &&
1176 echo "$as_me: caught signal $ac_signal"
1177 echo "$as_me: exit $exit_status"
1179 rm -f core core.* *.core &&
1180 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183 for ac_signal in 1 2 13 15; do
1184 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1189 rm -rf conftest* confdefs.h
1190 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 # Predefined preprocessor variables.
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_NAME "$PACKAGE_NAME"
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_STRING "$PACKAGE_STRING"
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220 # Let the site file select an alternate cache file if it wants to.
1221 # Prefer explicitly selected file to automatically selected ones.
1222 if test -z "$CONFIG_SITE"; then
1223 if test "x$prefix" != xNONE; then
1224 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229 for ac_site_file in $CONFIG_SITE; do
1230 if test -r "$ac_site_file"; then
1231 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232 echo "$as_me: loading site script $ac_site_file" >&6;}
1233 sed 's/^/| /' "$ac_site_file" >&5
1238 if test -r "$cache_file"; then
1239 # Some versions of bash will fail to source /dev/null (special
1240 # files actually), so we avoid doing that.
1241 if test -f "$cache_file"; then
1242 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243 echo "$as_me: loading cache $cache_file" >&6;}
1245 [\\/]* | ?:[\\/]* ) . $cache_file;;
1246 *) . ./$cache_file;;
1250 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251 echo "$as_me: creating cache $cache_file" >&6;}
1255 # Check that the precious variables saved in the cache have kept the same
1257 ac_cache_corrupted=false
1258 for ac_var in `(set) 2>&1 |
1259 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261 eval ac_new_set=\$ac_env_${ac_var}_set
1262 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263 eval ac_new_val="\$ac_env_${ac_var}_value"
1264 case $ac_old_set,$ac_new_set in
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1275 if test "x$ac_old_val" != "x$ac_new_val"; then
1276 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1279 echo "$as_me: former value: $ac_old_val" >&2;}
1280 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1281 echo "$as_me: current value: $ac_new_val" >&2;}
1282 ac_cache_corrupted=:
1285 # Pass precious variables to config.status.
1286 if test "$ac_new_set" = set; then
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 *) ac_arg=$ac_var=$ac_new_val ;;
1292 case " $ac_configure_args " in
1293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1294 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298 if $ac_cache_corrupted; then
1299 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303 { (exit 1); exit 1; }; }
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1336 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1337 if test -f $ac_dir/install-sh; then
1339 ac_install_sh="$ac_aux_dir/install-sh -c"
1341 elif test -f $ac_dir/install.sh; then
1343 ac_install_sh="$ac_aux_dir/install.sh -c"
1345 elif test -f $ac_dir/shtool; then
1347 ac_install_sh="$ac_aux_dir/shtool install -c"
1351 if test -z "$ac_aux_dir"; then
1352 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1353 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1354 { (exit 1); exit 1; }; }
1356 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1357 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1358 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1360 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1368 # Extract the first word of "$ac_prog", so it can be a program name with args.
1369 set dummy $ac_prog; ac_word=$2
1370 echo "$as_me:$LINENO: checking for $ac_word" >&5
1371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1372 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1373 echo $ECHO_N "(cached) $ECHO_C" >&6
1377 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1384 test -z "$as_dir" && as_dir=.
1385 for ac_exec_ext in '' $ac_executable_extensions; do
1386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1387 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1397 TRUEPRG=$ac_cv_path_TRUEPRG
1399 if test -n "$TRUEPRG"; then
1400 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1401 echo "${ECHO_T}$TRUEPRG" >&6
1403 echo "$as_me:$LINENO: result: no" >&5
1404 echo "${ECHO_T}no" >&6
1407 test -n "$TRUEPRG" && break
1409 test -n "$TRUEPRG" || TRUEPRG=":"
1411 for ac_prog in false
1413 # Extract the first word of "$ac_prog", so it can be a program name with args.
1414 set dummy $ac_prog; ac_word=$2
1415 echo "$as_me:$LINENO: checking for $ac_word" >&5
1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1429 test -z "$as_dir" && as_dir=.
1430 for ac_exec_ext in '' $ac_executable_extensions; do
1431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1432 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1442 FALSEPRG=$ac_cv_path_FALSEPRG
1444 if test -n "$FALSEPRG"; then
1445 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1446 echo "${ECHO_T}$FALSEPRG" >&6
1448 echo "$as_me:$LINENO: result: no" >&5
1449 echo "${ECHO_T}no" >&6
1452 test -n "$FALSEPRG" && break
1454 test -n "$FALSEPRG" || FALSEPRG=":"
1457 # Make sure we can run config.sub.
1458 $ac_config_sub sun4 >/dev/null 2>&1 ||
1459 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1460 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1461 { (exit 1); exit 1; }; }
1463 echo "$as_me:$LINENO: checking build system type" >&5
1464 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1465 if test "${ac_cv_build+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1468 ac_cv_build_alias=$build_alias
1469 test -z "$ac_cv_build_alias" &&
1470 ac_cv_build_alias=`$ac_config_guess`
1471 test -z "$ac_cv_build_alias" &&
1472 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1473 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1474 { (exit 1); exit 1; }; }
1475 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1476 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1477 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1478 { (exit 1); exit 1; }; }
1481 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1482 echo "${ECHO_T}$ac_cv_build" >&6
1484 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1485 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1486 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1489 echo "$as_me:$LINENO: checking host system type" >&5
1490 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1491 if test "${ac_cv_host+set}" = set; then
1492 echo $ECHO_N "(cached) $ECHO_C" >&6
1494 ac_cv_host_alias=$host_alias
1495 test -z "$ac_cv_host_alias" &&
1496 ac_cv_host_alias=$ac_cv_build_alias
1497 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1498 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1499 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1500 { (exit 1); exit 1; }; }
1503 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1504 echo "${ECHO_T}$ac_cv_host" >&6
1506 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1507 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1508 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1512 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1513 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1514 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1515 echo "configuring for bacula $VERSION ($DATE)"
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524 if test -n "$ac_tool_prefix"; then
1525 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_CC+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 if test -n "$CC"; then
1533 ac_cv_prog_CC="$CC" # Let the user override the test.
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 test -z "$as_dir" && as_dir=.
1540 for ac_exec_ext in '' $ac_executable_extensions; do
1541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552 if test -n "$CC"; then
1553 echo "$as_me:$LINENO: result: $CC" >&5
1554 echo "${ECHO_T}$CC" >&6
1556 echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1561 if test -z "$ac_cv_prog_CC"; then
1563 # Extract the first word of "gcc", so it can be a program name with args.
1564 set dummy gcc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 if test -n "$ac_ct_CC"; then
1571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577 test -z "$as_dir" && as_dir=.
1578 for ac_exec_ext in '' $ac_executable_extensions; do
1579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580 ac_cv_prog_ac_ct_CC="gcc"
1581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1590 if test -n "$ac_ct_CC"; then
1591 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1592 echo "${ECHO_T}$ac_ct_CC" >&6
1594 echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1603 if test -z "$CC"; then
1604 if test -n "$ac_tool_prefix"; then
1605 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1606 set dummy ${ac_tool_prefix}cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 if test -n "$CC"; then
1613 ac_cv_prog_CC="$CC" # Let the user override the test.
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 test -z "$as_dir" && as_dir=.
1620 for ac_exec_ext in '' $ac_executable_extensions; do
1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622 ac_cv_prog_CC="${ac_tool_prefix}cc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632 if test -n "$CC"; then
1633 echo "$as_me:$LINENO: result: $CC" >&5
1634 echo "${ECHO_T}$CC" >&6
1636 echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1641 if test -z "$ac_cv_prog_CC"; then
1643 # Extract the first word of "cc", so it can be a program name with args.
1644 set dummy cc; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 if test -n "$ac_ct_CC"; then
1651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 test -z "$as_dir" && as_dir=.
1658 for ac_exec_ext in '' $ac_executable_extensions; do
1659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660 ac_cv_prog_ac_ct_CC="cc"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1674 echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1684 if test -z "$CC"; then
1685 # Extract the first word of "cc", so it can be a program name with args.
1686 set dummy cc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 if test -n "$CC"; then
1693 ac_cv_prog_CC="$CC" # Let the user override the test.
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1704 ac_prog_rejected=yes
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 if test $ac_prog_rejected = yes; then
1715 # We found a bogon in the path, so make sure we never use it.
1716 set dummy $ac_cv_prog_CC
1718 if test $# != 0; then
1719 # We chose a different compiler from the bogus one.
1720 # However, it has the same basename, so the bogon will be chosen
1721 # first if we set CC to just the basename; use the full file name.
1723 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1729 if test -n "$CC"; then
1730 echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1738 if test -z "$CC"; then
1739 if test -n "$ac_tool_prefix"; then
1742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_CC+set}" = set; then
1747 echo $ECHO_N "(cached) $ECHO_C" >&6
1749 if test -n "$CC"; then
1750 ac_cv_prog_CC="$CC" # Let the user override the test.
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 test -z "$as_dir" && as_dir=.
1757 for ac_exec_ext in '' $ac_executable_extensions; do
1758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769 if test -n "$CC"; then
1770 echo "$as_me:$LINENO: result: $CC" >&5
1771 echo "${ECHO_T}$CC" >&6
1773 echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1777 test -n "$CC" && break
1780 if test -z "$CC"; then
1784 # Extract the first word of "$ac_prog", so it can be a program name with args.
1785 set dummy $ac_prog; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 if test -n "$ac_ct_CC"; then
1792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 test -z "$as_dir" && as_dir=.
1799 for ac_exec_ext in '' $ac_executable_extensions; do
1800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801 ac_cv_prog_ac_ct_CC="$ac_prog"
1802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1811 if test -n "$ac_ct_CC"; then
1812 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1813 echo "${ECHO_T}$ac_ct_CC" >&6
1815 echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1819 test -n "$ac_ct_CC" && break
1828 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&2;}
1832 { (exit 1); exit 1; }; }
1834 # Provide some information about the compiler.
1835 echo "$as_me:$LINENO:" \
1836 "checking for C compiler version" >&5
1837 ac_compiler=`set X $ac_compile; echo $2`
1838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1839 (eval $ac_compiler --version </dev/null >&5) 2>&5
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); }
1843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1844 (eval $ac_compiler -v </dev/null >&5) 2>&5
1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847 (exit $ac_status); }
1848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1849 (eval $ac_compiler -V </dev/null >&5) 2>&5
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }
1854 cat >conftest.$ac_ext <<_ACEOF
1855 #line $LINENO "configure"
1858 cat confdefs.h >>conftest.$ac_ext
1859 cat >>conftest.$ac_ext <<_ACEOF
1860 /* end confdefs.h. */
1870 ac_clean_files_save=$ac_clean_files
1871 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1872 # Try to create an executable without -o first, disregard a.out.
1873 # It will help us diagnose broken compilers, and finding out an intuition
1875 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1876 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1877 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1878 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1879 (eval $ac_link_default) 2>&5
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; then
1883 # Find the output, starting from the most likely. This scheme is
1884 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1887 # Be careful to initialize this variable, since it used to be cached.
1888 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1890 # b.out is created by i960 compilers.
1891 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1893 test -f "$ac_file" || continue
1895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1898 # This is the source file.
1901 # We found the default executable, but exeext='' is most
1905 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1906 # FIXME: I believe we export ac_cv_exeext for Libtool,
1907 # but it would be cool to find out if it's true. Does anybody
1908 # maintain Libtool? --akim.
1916 echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1919 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1920 See \`config.log' for more details." >&5
1921 echo "$as_me: error: C compiler cannot create executables
1922 See \`config.log' for more details." >&2;}
1923 { (exit 77); exit 77; }; }
1926 ac_exeext=$ac_cv_exeext
1927 echo "$as_me:$LINENO: result: $ac_file" >&5
1928 echo "${ECHO_T}$ac_file" >&6
1930 # Check the compiler produces executables we can run. If not, either
1931 # the compiler is broken, or we cross compile.
1932 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1933 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1934 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1935 # If not cross compiling, check that we can run a simple program.
1936 if test "$cross_compiling" != yes; then
1937 if { ac_try='./$ac_file'
1938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; }; then
1945 if test "$cross_compiling" = maybe; then
1948 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1949 If you meant to cross compile, use \`--host'.
1950 See \`config.log' for more details." >&5
1951 echo "$as_me: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&2;}
1954 { (exit 1); exit 1; }; }
1958 echo "$as_me:$LINENO: result: yes" >&5
1959 echo "${ECHO_T}yes" >&6
1961 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1962 ac_clean_files=$ac_clean_files_save
1963 # Check the compiler produces executables we can run. If not, either
1964 # the compiler is broken, or we cross compile.
1965 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1966 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1967 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1968 echo "${ECHO_T}$cross_compiling" >&6
1970 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1971 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1973 (eval $ac_link) 2>&5
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); }; then
1977 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1978 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1979 # work properly (i.e., refer to `conftest.exe'), while it won't with
1981 for ac_file in conftest.exe conftest conftest.*; do
1982 test -f "$ac_file" || continue
1984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1985 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1992 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1993 See \`config.log' for more details." >&5
1994 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1995 See \`config.log' for more details." >&2;}
1996 { (exit 1); exit 1; }; }
1999 rm -f conftest$ac_cv_exeext
2000 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2001 echo "${ECHO_T}$ac_cv_exeext" >&6
2003 rm -f conftest.$ac_ext
2004 EXEEXT=$ac_cv_exeext
2006 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2007 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2008 if test "${ac_cv_objext+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h. */
2027 rm -f conftest.o conftest.obj
2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029 (eval $ac_compile) 2>&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; then
2033 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2036 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2041 echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2044 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&2;}
2048 { (exit 1); exit 1; }; }
2051 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2053 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2054 echo "${ECHO_T}$ac_cv_objext" >&6
2055 OBJEXT=$ac_cv_objext
2057 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2058 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2059 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 cat >conftest.$ac_ext <<_ACEOF
2063 #line $LINENO "configure"
2066 cat confdefs.h >>conftest.$ac_ext
2067 cat >>conftest.$ac_ext <<_ACEOF
2068 /* end confdefs.h. */
2081 rm -f conftest.$ac_objext
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083 (eval $ac_compile) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try='test -s conftest.$ac_objext'
2088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; }; then
2095 echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2100 rm -f conftest.$ac_objext conftest.$ac_ext
2101 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2104 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2105 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2106 GCC=`test $ac_compiler_gnu = yes && echo yes`
2107 ac_test_CFLAGS=${CFLAGS+set}
2108 ac_save_CFLAGS=$CFLAGS
2110 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2111 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2112 if test "${ac_cv_prog_cc_g+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 cat >conftest.$ac_ext <<_ACEOF
2116 #line $LINENO "configure"
2119 cat confdefs.h >>conftest.$ac_ext
2120 cat >>conftest.$ac_ext <<_ACEOF
2121 /* end confdefs.h. */
2131 rm -f conftest.$ac_objext
2132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2133 (eval $ac_compile) 2>&5
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); } &&
2137 { ac_try='test -s conftest.$ac_objext'
2138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }; }; then
2145 echo "$as_me: failed program was:" >&5
2146 sed 's/^/| /' conftest.$ac_ext >&5
2150 rm -f conftest.$ac_objext conftest.$ac_ext
2152 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2153 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2154 if test "$ac_test_CFLAGS" = set; then
2155 CFLAGS=$ac_save_CFLAGS
2156 elif test $ac_cv_prog_cc_g = yes; then
2157 if test "$GCC" = yes; then
2163 if test "$GCC" = yes; then
2169 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2170 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2171 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 ac_cv_prog_cc_stdc=no
2176 cat >conftest.$ac_ext <<_ACEOF
2177 #line $LINENO "configure"
2180 cat confdefs.h >>conftest.$ac_ext
2181 cat >>conftest.$ac_ext <<_ACEOF
2182 /* end confdefs.h. */
2185 #include <sys/types.h>
2186 #include <sys/stat.h>
2187 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2188 struct buf { int x; };
2189 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2190 static char *e (p, i)
2196 static char *f (char * (*g) (char **, int), char **p, ...)
2201 s = g (p, va_arg (v,int));
2205 int test (int i, double x);
2206 struct s1 {int (*f) (int a);};
2207 struct s2 {int (*f) (double a);};
2208 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2214 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2219 # Don't try gcc -ansi; that turns off useful extensions and
2220 # breaks some systems' header files.
2221 # AIX -qlanglvl=ansi
2222 # Ultrix and OSF/1 -std1
2223 # HP-UX 10.20 and later -Ae
2224 # HP-UX older versions -Aa -D_HPUX_SOURCE
2225 # SVR4 -Xc -D__EXTENSIONS__
2226 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2228 CC="$ac_save_CC $ac_arg"
2229 rm -f conftest.$ac_objext
2230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231 (eval $ac_compile) 2>&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try='test -s conftest.$ac_objext'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 ac_cv_prog_cc_stdc=$ac_arg
2244 echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2248 rm -f conftest.$ac_objext
2250 rm -f conftest.$ac_ext conftest.$ac_objext
2255 case "x$ac_cv_prog_cc_stdc" in
2257 echo "$as_me:$LINENO: result: none needed" >&5
2258 echo "${ECHO_T}none needed" >&6 ;;
2260 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2261 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2262 CC="$CC $ac_cv_prog_cc_stdc" ;;
2265 # Some people use a C++ compiler to compile C. Since we use `exit',
2266 # in C++ we need to declare it. In case someone uses the same compiler
2267 # for both compiling C and C++ we need to have the C++ compiler decide
2268 # the declaration of exit, since it's the most demanding environment.
2269 cat >conftest.$ac_ext <<_ACEOF
2274 rm -f conftest.$ac_objext
2275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276 (eval $ac_compile) 2>&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); } &&
2280 { ac_try='test -s conftest.$ac_objext'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; }; then
2286 for ac_declaration in \
2288 '#include <stdlib.h>' \
2289 'extern "C" void std::exit (int) throw (); using std::exit;' \
2290 'extern "C" void std::exit (int); using std::exit;' \
2291 'extern "C" void exit (int) throw ();' \
2292 'extern "C" void exit (int);' \
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. */
2312 rm -f conftest.$ac_objext
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314 (eval $ac_compile) 2>&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try='test -s conftest.$ac_objext'
2319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; }; then
2326 echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2331 rm -f conftest.$ac_objext conftest.$ac_ext
2332 cat >conftest.$ac_ext <<_ACEOF
2333 #line $LINENO "configure"
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h. */
2348 rm -f conftest.$ac_objext
2349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350 (eval $ac_compile) 2>&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
2354 { ac_try='test -s conftest.$ac_objext'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; }; then
2362 echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2366 rm -f conftest.$ac_objext conftest.$ac_ext
2369 if test -n "$ac_declaration"; then
2370 echo '#ifdef __cplusplus' >>confdefs.h
2371 echo $ac_declaration >>confdefs.h
2372 echo '#endif' >>confdefs.h
2376 echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2380 rm -f conftest.$ac_objext conftest.$ac_ext
2382 ac_cpp='$CPP $CPPFLAGS'
2383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2388 ac_cpp='$CXXCPP $CPPFLAGS'
2389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2392 if test -n "$ac_tool_prefix"; then
2393 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2397 echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2399 if test "${ac_cv_prog_CXX+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 if test -n "$CXX"; then
2403 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 test -z "$as_dir" && as_dir=.
2410 for ac_exec_ext in '' $ac_executable_extensions; do
2411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2412 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 if test -n "$CXX"; then
2423 echo "$as_me:$LINENO: result: $CXX" >&5
2424 echo "${ECHO_T}$CXX" >&6
2426 echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6
2430 test -n "$CXX" && break
2433 if test -z "$CXX"; then
2435 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2437 # Extract the first word of "$ac_prog", so it can be a program name with args.
2438 set dummy $ac_prog; ac_word=$2
2439 echo "$as_me:$LINENO: checking for $ac_word" >&5
2440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2441 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 if test -n "$ac_ct_CXX"; then
2445 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2454 ac_cv_prog_ac_ct_CXX="$ac_prog"
2455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2464 if test -n "$ac_ct_CXX"; then
2465 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2466 echo "${ECHO_T}$ac_ct_CXX" >&6
2468 echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6
2472 test -n "$ac_ct_CXX" && break
2474 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2480 # Provide some information about the compiler.
2481 echo "$as_me:$LINENO:" \
2482 "checking for C++ compiler version" >&5
2483 ac_compiler=`set X $ac_compile; echo $2`
2484 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2485 (eval $ac_compiler --version </dev/null >&5) 2>&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }
2489 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2490 (eval $ac_compiler -v </dev/null >&5) 2>&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }
2494 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2495 (eval $ac_compiler -V </dev/null >&5) 2>&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }
2500 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2501 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2502 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 cat >conftest.$ac_ext <<_ACEOF
2506 #line $LINENO "configure"
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h. */
2524 rm -f conftest.$ac_objext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526 (eval $ac_compile) 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -s conftest.$ac_objext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2543 rm -f conftest.$ac_objext conftest.$ac_ext
2544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2547 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2548 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2549 GXX=`test $ac_compiler_gnu = yes && echo yes`
2550 ac_test_CXXFLAGS=${CXXFLAGS+set}
2551 ac_save_CXXFLAGS=$CXXFLAGS
2553 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2554 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2555 if test "${ac_cv_prog_cxx_g+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 cat >conftest.$ac_ext <<_ACEOF
2559 #line $LINENO "configure"
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576 (eval $ac_compile) 2>&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
2580 { ac_try='test -s conftest.$ac_objext'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2586 ac_cv_prog_cxx_g=yes
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2593 rm -f conftest.$ac_objext conftest.$ac_ext
2595 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2596 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2597 if test "$ac_test_CXXFLAGS" = set; then
2598 CXXFLAGS=$ac_save_CXXFLAGS
2599 elif test $ac_cv_prog_cxx_g = yes; then
2600 if test "$GXX" = yes; then
2606 if test "$GXX" = yes; then
2612 for ac_declaration in \
2614 '#include <stdlib.h>' \
2615 'extern "C" void std::exit (int) throw (); using std::exit;' \
2616 'extern "C" void std::exit (int); using std::exit;' \
2617 'extern "C" void exit (int) throw ();' \
2618 'extern "C" void exit (int);' \
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. */
2638 rm -f conftest.$ac_objext
2639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2640 (eval $ac_compile) 2>&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } &&
2644 { ac_try='test -s conftest.$ac_objext'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; }; then
2652 echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2657 rm -f conftest.$ac_objext conftest.$ac_ext
2658 cat >conftest.$ac_ext <<_ACEOF
2659 #line $LINENO "configure"
2662 cat confdefs.h >>conftest.$ac_ext
2663 cat >>conftest.$ac_ext <<_ACEOF
2664 /* end confdefs.h. */
2674 rm -f conftest.$ac_objext
2675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2676 (eval $ac_compile) 2>&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); } &&
2680 { ac_try='test -s conftest.$ac_objext'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; }; then
2688 echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2692 rm -f conftest.$ac_objext conftest.$ac_ext
2695 if test -n "$ac_declaration"; then
2696 echo '#ifdef __cplusplus' >>confdefs.h
2697 echo $ac_declaration >>confdefs.h
2698 echo '#endif' >>confdefs.h
2702 ac_cpp='$CPP $CPPFLAGS'
2703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707 if test "x$CC" != xcc; then
2708 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2709 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2711 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2712 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2714 set dummy $CC; ac_cc=`echo $2 |
2715 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2716 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 cat >conftest.$ac_ext <<_ACEOF
2720 #line $LINENO "configure"
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h. */
2735 # Make sure it works both with $CC and with simple cc.
2736 # We do the test twice because some compilers refuse to overwrite an
2737 # existing .o file with -o, though they will create one.
2738 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2739 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } &&
2744 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); };
2750 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2751 if test "x$CC" != xcc; then
2752 # Test first that cc exists at all.
2753 if { ac_try='cc -c conftest.$ac_ext >&5'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2760 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); };
2774 # cc exists but doesn't like -o.
2775 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2780 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2785 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2786 echo "$as_me:$LINENO: result: yes" >&5
2787 echo "${ECHO_T}yes" >&6
2789 echo "$as_me:$LINENO: result: no" >&5
2790 echo "${ECHO_T}no" >&6
2792 cat >>confdefs.h <<\_ACEOF
2793 #define NO_MINUS_C_MINUS_O 1
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2804 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2805 # On Suns, sometimes $CPP names a directory.
2806 if test -n "$CPP" && test -d "$CPP"; then
2809 if test -z "$CPP"; then
2810 if test "${ac_cv_prog_CPP+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 # Double quotes because CPP needs to be expanded
2814 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2817 for ac_c_preproc_warn_flag in '' yes
2819 # Use a header file that comes with gcc, so configuring glibc
2820 # with a fresh cross-compiler works.
2821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2822 # <limits.h> exists even on freestanding compilers.
2823 # On the NeXT, cc -E runs the code through the compiler's parser,
2824 # not just through cpp. "Syntax error" is here to catch this case.
2825 cat >conftest.$ac_ext <<_ACEOF
2826 #line $LINENO "configure"
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h. */
2833 # include <limits.h>
2835 # include <assert.h>
2839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2842 grep -v '^ *+' conftest.er1 >conftest.err
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } >/dev/null; then
2847 if test -s conftest.err; then
2848 ac_cpp_err=$ac_c_preproc_warn_flag
2855 if test -z "$ac_cpp_err"; then
2858 echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2861 # Broken: fails on valid input.
2864 rm -f conftest.err conftest.$ac_ext
2866 # OK, works on sane cases. Now check whether non-existent headers
2867 # can be detected and how.
2868 cat >conftest.$ac_ext <<_ACEOF
2869 #line $LINENO "configure"
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2875 #include <ac_nonexistent.h>
2877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2880 grep -v '^ *+' conftest.er1 >conftest.err
2882 cat conftest.err >&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } >/dev/null; then
2885 if test -s conftest.err; then
2886 ac_cpp_err=$ac_c_preproc_warn_flag
2893 if test -z "$ac_cpp_err"; then
2894 # Broken: success on invalid input.
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2900 # Passes both tests.
2904 rm -f conftest.err conftest.$ac_ext
2907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2908 rm -f conftest.err conftest.$ac_ext
2909 if $ac_preproc_ok; then
2921 echo "$as_me:$LINENO: result: $CPP" >&5
2922 echo "${ECHO_T}$CPP" >&6
2924 for ac_c_preproc_warn_flag in '' yes
2926 # Use a header file that comes with gcc, so configuring glibc
2927 # with a fresh cross-compiler works.
2928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2929 # <limits.h> exists even on freestanding compilers.
2930 # On the NeXT, cc -E runs the code through the compiler's parser,
2931 # not just through cpp. "Syntax error" is here to catch this case.
2932 cat >conftest.$ac_ext <<_ACEOF
2933 #line $LINENO "configure"
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2940 # include <limits.h>
2942 # include <assert.h>
2946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2949 grep -v '^ *+' conftest.er1 >conftest.err
2951 cat conftest.err >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } >/dev/null; then
2954 if test -s conftest.err; then
2955 ac_cpp_err=$ac_c_preproc_warn_flag
2962 if test -z "$ac_cpp_err"; then
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2968 # Broken: fails on valid input.
2971 rm -f conftest.err conftest.$ac_ext
2973 # OK, works on sane cases. Now check whether non-existent headers
2974 # can be detected and how.
2975 cat >conftest.$ac_ext <<_ACEOF
2976 #line $LINENO "configure"
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2982 #include <ac_nonexistent.h>
2984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2987 grep -v '^ *+' conftest.er1 >conftest.err
2989 cat conftest.err >&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } >/dev/null; then
2992 if test -s conftest.err; then
2993 ac_cpp_err=$ac_c_preproc_warn_flag
3000 if test -z "$ac_cpp_err"; then
3001 # Broken: success on invalid input.
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3007 # Passes both tests.
3011 rm -f conftest.err conftest.$ac_ext
3014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3015 rm -f conftest.err conftest.$ac_ext
3016 if $ac_preproc_ok; then
3019 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3020 See \`config.log' for more details." >&5
3021 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3022 See \`config.log' for more details." >&2;}
3023 { (exit 1); exit 1; }; }
3027 ac_cpp='$CPP $CPPFLAGS'
3028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3033 echo "$as_me:$LINENO: checking for egrep" >&5
3034 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3035 if test "${ac_cv_prog_egrep+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3039 then ac_cv_prog_egrep='grep -E'
3040 else ac_cv_prog_egrep='egrep'
3043 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3044 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3045 EGREP=$ac_cv_prog_egrep
3048 if test $ac_cv_c_compiler_gnu = yes; then
3049 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3050 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3051 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 ac_pattern="Autoconf.*'x'"
3055 cat >conftest.$ac_ext <<_ACEOF
3056 #line $LINENO "configure"
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3066 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3067 ac_cv_prog_gcc_traditional=yes
3069 ac_cv_prog_gcc_traditional=no
3074 if test $ac_cv_prog_gcc_traditional = no; then
3075 cat >conftest.$ac_ext <<_ACEOF
3076 #line $LINENO "configure"
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3086 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3087 ac_cv_prog_gcc_traditional=yes
3093 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3094 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3095 if test $ac_cv_prog_gcc_traditional = yes; then
3096 CC="$CC -traditional"
3102 cat >>confdefs.h <<\_ACEOF
3108 # Find a good install program. We prefer a C program (faster),
3109 # so one script is as good as another. But avoid the broken or
3110 # incompatible versions:
3111 # SysV /etc/install, /usr/sbin/install
3112 # SunOS /usr/etc/install
3113 # IRIX /sbin/install
3115 # AmigaOS /C/install, which installs bootblocks on floppy discs
3116 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3117 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3118 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3119 # ./install, which can be erroneously created by make from ./install.sh.
3120 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3121 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3122 if test -z "$INSTALL"; then
3123 if test "${ac_cv_path_install+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 test -z "$as_dir" && as_dir=.
3131 # Account for people who put trailing slashes in PATH elements.
3133 ./ | .// | /cC/* | \
3134 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3137 # OSF1 and SCO ODT 3.0 have their own names for install.
3138 # Don't use installbsd from OSF since it installs stuff as root
3140 for ac_prog in ginstall scoinst install; do
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3143 if test $ac_prog = install &&
3144 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3145 # AIX install. It has an incompatible calling convention.
3147 elif test $ac_prog = install &&
3148 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3149 # program-specific install script used by HP pwplus--don't use.
3152 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3164 if test "${ac_cv_path_install+set}" = set; then
3165 INSTALL=$ac_cv_path_install
3167 # As a last resort, use the slow shell script. We don't cache a
3168 # path for INSTALL within a source directory, because that will
3169 # break other packages using the cache if that directory is
3170 # removed, or if the path is relative.
3171 INSTALL=$ac_install_sh
3174 echo "$as_me:$LINENO: result: $INSTALL" >&5
3175 echo "${ECHO_T}$INSTALL" >&6
3177 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3178 # It thinks the first close brace ends the variable substitution.
3179 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3181 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3183 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3185 if test -n "$ac_tool_prefix"; then
3186 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3188 echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190 if test "${ac_cv_prog_RANLIB+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 if test -n "$RANLIB"; then
3194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 RANLIB=$ac_cv_prog_RANLIB
3213 if test -n "$RANLIB"; then
3214 echo "$as_me:$LINENO: result: $RANLIB" >&5
3215 echo "${ECHO_T}$RANLIB" >&6
3217 echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3222 if test -z "$ac_cv_prog_RANLIB"; then
3223 ac_ct_RANLIB=$RANLIB
3224 # Extract the first word of "ranlib", so it can be a program name with args.
3225 set dummy ranlib; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 if test -n "$ac_ct_RANLIB"; then
3232 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_ac_ct_RANLIB="ranlib"
3242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3251 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3252 if test -n "$ac_ct_RANLIB"; then
3253 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3254 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3256 echo "$as_me:$LINENO: result: no" >&5
3257 echo "${ECHO_T}no" >&6
3260 RANLIB=$ac_ct_RANLIB
3262 RANLIB="$ac_cv_prog_RANLIB"
3265 # Extract the first word of "mv", so it can be a program name with args.
3266 set dummy mv; ac_word=$2
3267 echo "$as_me:$LINENO: checking for $ac_word" >&5
3268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3269 if test "${ac_cv_path_MV+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3297 if test -n "$MV"; then
3298 echo "$as_me:$LINENO: result: $MV" >&5
3299 echo "${ECHO_T}$MV" >&6
3301 echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6
3305 # Extract the first word of "rm", so it can be a program name with args.
3306 set dummy rm; ac_word=$2
3307 echo "$as_me:$LINENO: checking for $ac_word" >&5
3308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3309 if test "${ac_cv_path_RM+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3337 if test -n "$RM"; then
3338 echo "$as_me:$LINENO: result: $RM" >&5
3339 echo "${ECHO_T}$RM" >&6
3341 echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3345 # Extract the first word of "cp", so it can be a program name with args.
3346 set dummy cp; ac_word=$2
3347 echo "$as_me:$LINENO: checking for $ac_word" >&5
3348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3349 if test "${ac_cv_path_CP+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 test -z "$as_dir" && as_dir=.
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3377 if test -n "$CP"; then
3378 echo "$as_me:$LINENO: result: $CP" >&5
3379 echo "${ECHO_T}$CP" >&6
3381 echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6
3385 # Extract the first word of "sed", so it can be a program name with args.
3386 set dummy sed; ac_word=$2
3387 echo "$as_me:$LINENO: checking for $ac_word" >&5
3388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3389 if test "${ac_cv_path_SED+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 test -z "$as_dir" && as_dir=.
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3404 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3417 if test -n "$SED"; then
3418 echo "$as_me:$LINENO: result: $SED" >&5
3419 echo "${ECHO_T}$SED" >&6
3421 echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6
3425 # Extract the first word of "awk", so it can be a program name with args.
3426 set dummy awk; ac_word=$2
3427 echo "$as_me:$LINENO: checking for $ac_word" >&5
3428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3429 if test "${ac_cv_path_AWK+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3451 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3457 if test -n "$AWK"; then
3458 echo "$as_me:$LINENO: result: $AWK" >&5
3459 echo "${ECHO_T}$AWK" >&6
3461 echo "$as_me:$LINENO: result: no" >&5
3462 echo "${ECHO_T}no" >&6
3465 # Extract the first word of "echo", so it can be a program name with args.
3466 set dummy echo; ac_word=$2
3467 echo "$as_me:$LINENO: checking for $ac_word" >&5
3468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3469 if test "${ac_cv_path_ECHO+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3474 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 test -z "$as_dir" && as_dir=.
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3495 ECHO=$ac_cv_path_ECHO
3497 if test -n "$ECHO"; then
3498 echo "$as_me:$LINENO: result: $ECHO" >&5
3499 echo "${ECHO_T}$ECHO" >&6
3501 echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6
3505 # Extract the first word of "cmp", so it can be a program name with args.
3506 set dummy cmp; ac_word=$2
3507 echo "$as_me:$LINENO: checking for $ac_word" >&5
3508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3509 if test "${ac_cv_path_CMP+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 test -z "$as_dir" && as_dir=.
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3537 if test -n "$CMP"; then
3538 echo "$as_me:$LINENO: result: $CMP" >&5
3539 echo "${ECHO_T}$CMP" >&6
3541 echo "$as_me:$LINENO: result: no" >&5
3542 echo "${ECHO_T}no" >&6
3545 # Extract the first word of "tbl", so it can be a program name with args.
3546 set dummy tbl; ac_word=$2
3547 echo "$as_me:$LINENO: checking for $ac_word" >&5
3548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3549 if test "${ac_cv_path_TBL+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3577 if test -n "$TBL"; then
3578 echo "$as_me:$LINENO: result: $TBL" >&5
3579 echo "${ECHO_T}$TBL" >&6
3581 echo "$as_me:$LINENO: result: no" >&5
3582 echo "${ECHO_T}no" >&6
3585 # Extract the first word of "ar", so it can be a program name with args.
3586 set dummy ar; ac_word=$2
3587 echo "$as_me:$LINENO: checking for $ac_word" >&5
3588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3589 if test "${ac_cv_path_AR+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 test -z "$as_dir" && as_dir=.
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3604 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3617 if test -n "$AR"; then
3618 echo "$as_me:$LINENO: result: $AR" >&5
3619 echo "${ECHO_T}$AR" >&6
3621 echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6
3625 # Extract the first word of "ranlib", so it can be a program name with args.
3626 set dummy ranlib; ac_word=$2
3627 echo "$as_me:$LINENO: checking for $ac_word" >&5
3628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3629 if test "${ac_cv_path_RANLIB+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3644 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3655 RANLIB=$ac_cv_path_RANLIB
3657 if test -n "$RANLIB"; then
3658 echo "$as_me:$LINENO: result: $RANLIB" >&5
3659 echo "${ECHO_T}$RANLIB" >&6
3661 echo "$as_me:$LINENO: result: no" >&5
3662 echo "${ECHO_T}no" >&6
3665 # Extract the first word of "openssl", so it can be a program name with args.
3666 set dummy openssl; ac_word=$2
3667 echo "$as_me:$LINENO: checking for $ac_word" >&5
3668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3669 if test "${ac_cv_path_OPENSSL+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 test -z "$as_dir" && as_dir=.
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3684 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3695 OPENSSL=$ac_cv_path_OPENSSL
3697 if test -n "$OPENSSL"; then
3698 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3699 echo "${ECHO_T}$OPENSSL" >&6
3701 echo "$as_me:$LINENO: result: no" >&5
3702 echo "${ECHO_T}no" >&6
3705 # Extract the first word of "mtx", so it can be a program name with args.
3706 set dummy mtx; ac_word=$2
3707 echo "$as_me:$LINENO: checking for $ac_word" >&5
3708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3709 if test "${ac_cv_path_MTX+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 test -z "$as_dir" && as_dir=.
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3724 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3737 if test -n "$MTX"; then
3738 echo "$as_me:$LINENO: result: $MTX" >&5
3739 echo "${ECHO_T}$MTX" >&6
3741 echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6
3745 # Extract the first word of "pkg-config", so it can be a program name with args.
3746 set dummy pkg-config; ac_word=$2
3747 echo "$as_me:$LINENO: checking for $ac_word" >&5
3748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3749 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3775 PKGCONFIG=$ac_cv_path_PKGCONFIG
3777 if test -n "$PKGCONFIG"; then
3778 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3779 echo "${ECHO_T}$PKGCONFIG" >&6
3781 echo "$as_me:$LINENO: result: no" >&5
3782 echo "${ECHO_T}no" >&6
3786 test -n "$ARFLAG" || ARFLAGS="cr"
3799 echo "$as_me:$LINENO: checking for Operating System" >&5
3800 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3803 *cygwin* ) CYGWIN=yes;;
3807 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3813 HAVE_SUN_OS_FALSE='#'
3815 HAVE_SUN_OS_TRUE='#'
3818 cat >>confdefs.h <<\_ACEOF
3819 #define HAVE_SUN_OS 1
3827 HAVE_SUN_OS_FALSE='#'
3829 HAVE_SUN_OS_TRUE='#'
3834 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3840 HAVE_OSF1_OS_FALSE='#'
3842 HAVE_OSF1_OS_TRUE='#'
3845 cat >>confdefs.h <<\_ACEOF
3846 #define HAVE_OSF1_OS 1
3854 HAVE_OSF1_OS_FALSE='#'
3856 HAVE_OSF1_OS_TRUE='#'
3861 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3867 HAVE_AIX_OS_FALSE='#'
3869 HAVE_AIX_OS_TRUE='#'
3872 cat >>confdefs.h <<\_ACEOF
3873 #define HAVE_AIX_OS 1
3881 HAVE_AIX_OS_FALSE='#'
3883 HAVE_AIX_OS_TRUE='#'
3888 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3894 HAVE_HPUX_OS_FALSE='#'
3896 HAVE_HPUX_OS_TRUE='#'
3899 cat >>confdefs.h <<\_ACEOF
3900 #define HAVE_HPUX_OS 1
3908 HAVE_HPUX_OS_FALSE='#'
3910 HAVE_HPUX_OS_TRUE='#'
3915 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3921 HAVE_LINUX_OS_FALSE='#'
3923 HAVE_LINUX_OS_TRUE='#'
3924 HAVE_LINUX_OS_FALSE=
3926 cat >>confdefs.h <<\_ACEOF
3927 #define HAVE_LINUX_OS 1
3935 HAVE_LINUX_OS_FALSE='#'
3937 HAVE_LINUX_OS_TRUE='#'
3938 HAVE_LINUX_OS_FALSE=
3942 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3947 HAVE_FREEBSD_OS_TRUE=
3948 HAVE_FREEBSD_OS_FALSE='#'
3950 HAVE_FREEBSD_OS_TRUE='#'
3951 HAVE_FREEBSD_OS_FALSE=
3953 cat >>confdefs.h <<\_ACEOF
3954 #define HAVE_FREEBSD_OS 1
3961 HAVE_FREEBSD_OS_TRUE=
3962 HAVE_FREEBSD_OS_FALSE='#'
3964 HAVE_FREEBSD_OS_TRUE='#'
3965 HAVE_FREEBSD_OS_FALSE=
3969 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3974 HAVE_NETBSD_OS_TRUE=
3975 HAVE_NETBSD_OS_FALSE='#'
3977 HAVE_NETBSD_OS_TRUE='#'
3978 HAVE_NETBSD_OS_FALSE=
3980 cat >>confdefs.h <<\_ACEOF
3981 #define HAVE_NETBSD_OS 1
3988 HAVE_NETBSD_OS_TRUE=
3989 HAVE_NETBSD_OS_FALSE='#'
3991 HAVE_NETBSD_OS_TRUE='#'
3992 HAVE_NETBSD_OS_FALSE=
3996 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4001 HAVE_OPENBSD_OS_TRUE=
4002 HAVE_OPENBSD_OS_FALSE='#'
4004 HAVE_OPENBSD_OS_TRUE='#'
4005 HAVE_OPENBSD_OS_FALSE=
4007 cat >>confdefs.h <<\_ACEOF
4008 #define HAVE_OPENBSD_OS 1
4015 HAVE_OPENBSD_OS_TRUE=
4016 HAVE_OPENBSD_OS_FALSE='#'
4018 HAVE_OPENBSD_OS_TRUE='#'
4019 HAVE_OPENBSD_OS_FALSE=
4023 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4029 HAVE_BSDI_OS_FALSE='#'
4031 HAVE_BSDI_OS_TRUE='#'
4034 cat >>confdefs.h <<\_ACEOF
4035 #define HAVE_BSDI_OS 1
4043 HAVE_BSDI_OS_FALSE='#'
4045 HAVE_BSDI_OS_TRUE='#'
4050 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4056 HAVE_SGI_OS_FALSE='#'
4058 HAVE_SGI_OS_TRUE='#'
4061 cat >>confdefs.h <<\_ACEOF
4062 #define HAVE_SGI_OS 1
4070 HAVE_SGI_OS_FALSE='#'
4072 HAVE_SGI_OS_TRUE='#'
4077 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4083 HAVE_IRIX_OS_FALSE='#'
4085 HAVE_IRIX_OS_TRUE='#'
4088 cat >>confdefs.h <<\_ACEOF
4089 #define HAVE_IRIX_OS 1
4097 HAVE_IRIX_OS_FALSE='#'
4099 HAVE_IRIX_OS_TRUE='#'
4104 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4109 HAVE_DARWIN_OS_TRUE=
4110 HAVE_DARWIN_OS_FALSE='#'
4112 HAVE_DARWIN_OS_TRUE='#'
4113 HAVE_DARWIN_OS_FALSE=
4115 cat >>confdefs.h <<\_ACEOF
4116 #define HAVE_DARWIN_OS 1
4123 HAVE_DARWIN_OS_TRUE=
4124 HAVE_DARWIN_OS_FALSE='#'
4126 HAVE_DARWIN_OS_TRUE='#'
4127 HAVE_DARWIN_OS_FALSE=
4131 echo "$as_me:$LINENO: result: \" \"" >&5
4132 echo "${ECHO_T}\" \"" >&6
4135 # -----------------------------------------------------------
4136 # ----------------------------------------------------------
4137 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4138 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4139 if test "x$DISTNAME" != "x"
4141 echo "distname set to $DISTNAME"
4142 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4145 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4148 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4151 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4154 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4157 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4160 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4163 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4166 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4169 elif test -f /etc/SuSE-release
4172 elif test -d /etc/SuSEconfig
4175 elif test -f /etc/mandrake-release
4178 elif test -f /etc/redhat-release
4181 elif test -f /etc/gentoo-release
4184 elif test -f /etc/debian_version
4187 elif test -f /etc/slackware-version
4190 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4193 elif test -f /etc/engarde-version
4196 elif test "$CYGWIN" = yes
4199 cat >>confdefs.h <<\_ACEOF
4200 #define HAVE_CYGWIN 1
4206 echo "$as_me:$LINENO: result: \" \"" >&5
4207 echo "${ECHO_T}\" \"" >&6
4210 # -----------------------------------------------------------
4211 # ----------------------------------------------------------
4216 INSIDE_GNOME_COMMON_TRUE=
4217 INSIDE_GNOME_COMMON_FALSE='#'
4219 INSIDE_GNOME_COMMON_TRUE='#'
4220 INSIDE_GNOME_COMMON_FALSE=
4223 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4225 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4228 # ------------------------------------------------------------------
4229 # If the user has not set --prefix, we set our default to nothing.
4230 # In this case, if the user has not set --sysconfdir, we set it
4231 # to the package default of /etc/bacula. If either --prefix or
4232 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4233 # ------------------------------------------------------------------
4234 if test x${prefix} = xNONE ; then
4235 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4236 sysconfdir=/etc/bacula
4240 sysconfdir=`eval echo ${sysconfdir}`
4242 # -------------------------------------------------------------------------
4243 # If the user has not set --exec-prefix, we default to ${prefix}
4244 # -------------------------------------------------------------------------
4245 if test x${exec_prefix} = xNONE ; then
4246 exec_prefix=${prefix}
4249 # ------------------------------------------------------------------
4250 # If the user has not set --sbindir, we set our default as /sbin
4251 # ------------------------------------------------------------------
4252 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4253 sbindir=${exec_prefix}/sbin
4255 sbindir=`eval echo ${sbindir}`
4257 # ------------------------------------------------------------------
4258 # All list of languages for which a translation exist. Each
4259 # language is separated by a space.
4260 # ------------------------------------------------------------------
4263 for ac_prog in msgfmt
4265 # Extract the first word of "$ac_prog", so it can be a program name with args.
4266 set dummy $ac_prog; ac_word=$2
4267 echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4269 if test "${ac_cv_path_MSGFMT+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 MSGFMT=$ac_cv_path_MSGFMT
4296 if test -n "$MSGFMT"; then
4297 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4298 echo "${ECHO_T}$MSGFMT" >&6
4300 echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4304 test -n "$MSGFMT" && break
4306 test -n "$MSGFMT" || MSGFMT="no"
4308 if test "$MSGFMT" = "no"
4310 echo 'msgfmt program not found, disabling NLS !'
4312 USE_INCLUDED_LIBINTL=no
4320 support_postgresql=no
4321 support_smartalloc=yes
4326 support_static_tools=no
4327 support_static_fd=no
4328 support_static_sd=no
4329 support_static_dir=no
4330 support_static_cons=no
4331 build_client_only=no
4337 # -------------------------------------------
4338 # gnome (default off)
4339 # -------------------------------------------
4340 # Check whether --enable-gnome or --disable-gnome was given.
4341 if test "${enable_gnome+set}" = set; then
4342 enableval="$enable_gnome"
4343 if test x$enableval = xyes; then
4349 if test x$support_gnome = xyes; then
4350 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4352 if test $pkg = 0; then
4353 GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4354 GNOMEUI_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4355 GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4356 GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4361 GNOME_DIR=src/gnome2-console
4362 gnome_version="Version 2.x"
4375 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4376 if test "${with_gnome_includes+set}" = set; then
4377 withval="$with_gnome_includes"
4379 CFLAGS="$CFLAGS -I$withval"
4384 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4385 if test "${with_gnome_libs+set}" = set; then
4386 withval="$with_gnome_libs"
4388 LDFLAGS="$LDFLAGS -L$withval"
4389 gnome_prefix=$withval
4394 # Check whether --with-gnome or --without-gnome was given.
4395 if test "${with_gnome+set}" = set; then
4396 withval="$with_gnome"
4397 if test x$withval = xyes; then
4401 if test "x$withval" = xno; then
4405 LDFLAGS="$LDFLAGS -L$withval/lib"
4406 CFLAGS="$CFLAGS -I$withval/include"
4407 gnome_prefix=$withval/lib
4414 if test "x$want_gnome" = xyes; then
4416 # Extract the first word of "gnome-config", so it can be a program name with args.
4417 set dummy gnome-config; ac_word=$2
4418 echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 case $GNOME_CONFIG in
4425 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4435 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4446 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4448 if test -n "$GNOME_CONFIG"; then
4449 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4450 echo "${ECHO_T}$GNOME_CONFIG" >&6
4452 echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6
4456 if test "$GNOME_CONFIG" = "no"; then
4457 no_gnome_config="yes"
4459 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4460 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4461 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4462 echo "$as_me:$LINENO: result: yes" >&5
4463 echo "${ECHO_T}yes" >&6
4466 # Extract the first word of "orbit-config", so it can be a program name with args.
4467 set dummy orbit-config; ac_word=$2
4468 echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4470 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 case $ORBIT_CONFIG in
4475 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4496 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4498 if test -n "$ORBIT_CONFIG"; then
4499 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4500 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4502 echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6
4506 # Extract the first word of "orbit-idl", so it can be a program name with args.
4507 set dummy orbit-idl; ac_word=$2
4508 echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4536 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4538 if test -n "$ORBIT_IDL"; then
4539 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4540 echo "${ECHO_T}$ORBIT_IDL" >&6
4542 echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6
4546 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4547 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4548 if test "${gnome_cv_orbit_found+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4553 gnome_cv_orbit_found=no
4555 gnome_cv_orbit_found=yes
4559 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4560 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4563 if test x$gnome_cv_orbit_found = xyes; then
4565 HAVE_ORBIT_FALSE='#'
4570 if test x$gnome_cv_orbit_found = xyes; then
4572 ORBIT_CFLAGS=`orbit-config --cflags client server`
4573 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4577 if test xfail = xfailure; then
4578 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4579 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4580 { (exit 1); exit 1; }; }
4584 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4585 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4586 if test "${gnome_cv_gnorba_found+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 gnome_cv_gnorba_found=no
4591 if test x$gnome_cv_orbit_found = xyes; then
4592 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4593 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4594 if test -n "$GNORBA_LIBS"; then
4595 gnome_cv_gnorba_found=yes
4600 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4601 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4604 if test x$gnome_cv_gnorba_found = xyes; then
4606 HAVE_GNORBA_FALSE='#'
4608 HAVE_GNORBA_TRUE='#'
4611 if test x$gnome_cv_orbit_found = xyes; then
4613 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4614 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4618 if test xfail = xfailure; then
4619 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4620 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4621 { (exit 1); exit 1; }; }
4625 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4626 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4627 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4628 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4629 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4630 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4631 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4634 echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4636 no_gnome_config="yes"
4640 if test x$exec_prefix = xNONE; then
4641 if test x$prefix = xNONE; then
4642 gnome_prefix=$ac_default_prefix/lib
4644 gnome_prefix=$prefix/lib
4647 gnome_prefix=`eval echo \`echo $libdir\``
4650 if test "$no_gnome_config" = "yes"; then
4651 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4652 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4653 if test -f $gnome_prefix/gnomeConf.sh; then
4654 echo "$as_me:$LINENO: result: found" >&5
4655 echo "${ECHO_T}found" >&6
4656 echo "loading gnome configuration from" \
4657 "$gnome_prefix/gnomeConf.sh"
4658 . $gnome_prefix/gnomeConf.sh
4661 echo "$as_me:$LINENO: result: not found" >&5
4662 echo "${ECHO_T}not found" >&6
4663 if test xfail = xfail; then
4664 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4665 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4666 { (exit 1); exit 1; }; }
4675 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4676 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4680 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4681 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4682 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4685 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4686 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4687 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4690 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4691 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4692 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4694 echo "$as_me:$LINENO: result: unknown library" >&5
4695 echo "${ECHO_T}unknown library" >&6
4697 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4698 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4703 GNOME_DIR=src/gnome-console
4704 gnome_version="Version 1.4"
4710 # -------------------------------------------
4711 # smartalloc (default off)
4712 # -------------------------------------------
4713 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4714 if test "${enable_smartalloc+set}" = set; then
4715 enableval="$enable_smartalloc"
4716 if test x$enableval = xno; then
4717 support_smartalloc=no
4721 if test x$support_smartalloc = xyes; then
4722 cat >>confdefs.h <<\_ACEOF
4723 #define SMARTALLOC 1
4728 # -------------------------------------------
4729 # static-tools (default off)
4730 # -------------------------------------------
4731 # Check whether --enable-static-tools or --disable-static-tools was given.
4732 if test "${enable_static_tools+set}" = set; then
4733 enableval="$enable_static_tools"
4734 if test x$enableval = xyes; then
4735 support_static_tools=yes
4740 if test x$support_static_tools = xyes; then
4741 TTOOL_LDFLAGS="-static"
4745 # -------------------------------------------
4746 # static-fd (default off)
4747 # -------------------------------------------
4748 # Check whether --enable-static-fd or --disable-static-fd was given.
4749 if test "${enable_static_fd+set}" = set; then
4750 enableval="$enable_static_fd"
4751 if test x$enableval = xyes; then
4752 support_static_fd=yes
4757 if test x$support_static_fd = xyes; then
4758 STATIC_FD="static-bacula-fd"
4762 # -------------------------------------------
4763 # static-sd (default off)
4764 # -------------------------------------------
4765 # Check whether --enable-static-sd or --disable-static-sd was given.
4766 if test "${enable_static_sd+set}" = set; then
4767 enableval="$enable_static_sd"
4768 if test x$enableval = xyes; then
4769 support_static_sd=yes
4774 if test x$support_static_sd = xyes; then
4775 STATIC_SD="static-bacula-sd"
4779 # -------------------------------------------
4780 # static-dir (default off)
4781 # -------------------------------------------
4782 # Check whether --enable-static-dir or --disable-static-dir was given.
4783 if test "${enable_static_dir+set}" = set; then
4784 enableval="$enable_static_dir"
4785 if test x$enableval = xyes; then
4786 support_static_dir=yes
4791 if test x$support_static_dir = xyes; then
4792 STATIC_DIR="static-bacula-dir"
4796 # -------------------------------------------
4797 # static-cons (default off)
4798 # -------------------------------------------
4799 # Check whether --enable-static-cons or --disable-static-cons was given.
4800 if test "${enable_static_cons+set}" = set; then
4801 enableval="$enable_static_cons"
4802 if test x$enableval = xyes; then
4803 support_static_cons=yes
4809 if test x$support_static_cons = xyes; then
4810 STATIC_CONS="static-bconsole"
4811 STATIC_GNOME_CONS="static-gnome-console"
4816 # -------------------------------------------
4817 # client_only (default off)
4818 # -------------------------------------------
4819 # Check whether --enable-client-only or --disable-client-only was given.
4820 if test "${enable_client_only+set}" = set; then
4821 enableval="$enable_client_only"
4822 if test x$enableval = xyes; then
4823 build_client_only=yes
4826 if test x$build_client_only = xno; then
4833 # ---------------------------------------------------
4834 # Check for conio (Bacula readline substitute)(
4835 # ---------------------------------------------------
4836 # this allows you to turn it completely off
4837 # Check whether --enable-conio or --disable-conio was given.
4838 if test "${enable_conio+set}" = set; then
4839 enableval="$enable_conio"
4840 if test x$enableval = xno; then
4846 if test x$support_conio = xyes; then
4847 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4848 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4849 if test "${ac_cv_header_stdc+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 cat >conftest.$ac_ext <<_ACEOF
4853 #line $LINENO "configure"
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4872 rm -f conftest.$ac_objext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4874 (eval $ac_compile) 2>&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } &&
4878 { ac_try='test -s conftest.$ac_objext'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; }; then
4884 ac_cv_header_stdc=yes
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4889 ac_cv_header_stdc=no
4891 rm -f conftest.$ac_objext conftest.$ac_ext
4893 if test $ac_cv_header_stdc = yes; then
4894 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4895 cat >conftest.$ac_ext <<_ACEOF
4896 #line $LINENO "configure"
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h. */
4905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4906 $EGREP "memchr" >/dev/null 2>&1; then
4909 ac_cv_header_stdc=no
4915 if test $ac_cv_header_stdc = yes; then
4916 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4917 cat >conftest.$ac_ext <<_ACEOF
4918 #line $LINENO "configure"
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4928 $EGREP "free" >/dev/null 2>&1; then
4931 ac_cv_header_stdc=no
4937 if test $ac_cv_header_stdc = yes; then
4938 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4939 if test "$cross_compiling" = yes; then
4942 cat >conftest.$ac_ext <<_ACEOF
4943 #line $LINENO "configure"
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4950 #if ((' ' & 0x0FF) == 0x020)
4951 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4952 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4954 # define ISLOWER(c) \
4955 (('a' <= (c) && (c) <= 'i') \
4956 || ('j' <= (c) && (c) <= 'r') \
4957 || ('s' <= (c) && (c) <= 'z'))
4958 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4961 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4966 for (i = 0; i < 256; i++)
4967 if (XOR (islower (i), ISLOWER (i))
4968 || toupper (i) != TOUPPER (i))
4973 rm -f conftest$ac_exeext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4975 (eval $ac_link) 2>&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4986 echo "$as_me: program exited with status $ac_status" >&5
4987 echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4991 ac_cv_header_stdc=no
4993 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4997 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4998 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4999 if test $ac_cv_header_stdc = yes; then
5001 cat >>confdefs.h <<\_ACEOF
5002 #define STDC_HEADERS 1
5007 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5017 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5018 inttypes.h stdint.h unistd.h
5020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5021 echo "$as_me:$LINENO: checking for $ac_header" >&5
5022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 cat >conftest.$ac_ext <<_ACEOF
5027 #line $LINENO "configure"
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h. */
5033 $ac_includes_default
5035 #include <$ac_header>
5037 rm -f conftest.$ac_objext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5039 (eval $ac_compile) 2>&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } &&
5043 { ac_try='test -s conftest.$ac_objext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 eval "$as_ac_Header=yes"
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5054 eval "$as_ac_Header=no"
5056 rm -f conftest.$ac_objext conftest.$ac_ext
5058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5061 cat >>confdefs.h <<_ACEOF
5062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5070 if test "${ac_cv_header_termcap_h+set}" = set; then
5071 echo "$as_me:$LINENO: checking for termcap.h" >&5
5072 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5073 if test "${ac_cv_header_termcap_h+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5077 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5079 # Is the header compilable?
5080 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5081 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5082 cat >conftest.$ac_ext <<_ACEOF
5083 #line $LINENO "configure"
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5089 $ac_includes_default
5090 #include <termcap.h>
5092 rm -f conftest.$ac_objext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5094 (eval $ac_compile) 2>&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } &&
5098 { ac_try='test -s conftest.$ac_objext'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; }; then
5104 ac_header_compiler=yes
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5109 ac_header_compiler=no
5111 rm -f conftest.$ac_objext conftest.$ac_ext
5112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5113 echo "${ECHO_T}$ac_header_compiler" >&6
5115 # Is the header present?
5116 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5117 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5118 cat >conftest.$ac_ext <<_ACEOF
5119 #line $LINENO "configure"
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 #include <termcap.h>
5127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5130 grep -v '^ *+' conftest.er1 >conftest.err
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } >/dev/null; then
5135 if test -s conftest.err; then
5136 ac_cpp_err=$ac_c_preproc_warn_flag
5143 if test -z "$ac_cpp_err"; then
5144 ac_header_preproc=yes
5146 echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5149 ac_header_preproc=no
5151 rm -f conftest.err conftest.$ac_ext
5152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5153 echo "${ECHO_T}$ac_header_preproc" >&6
5155 # So? What about this header?
5156 case $ac_header_compiler:$ac_header_preproc in
5158 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5159 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5160 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5161 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5164 ## ------------------------------------ ##
5165 ## Report this to bug-autoconf@gnu.org. ##
5166 ## ------------------------------------ ##
5169 sed "s/^/$as_me: WARNING: /" >&2
5172 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5173 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5174 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5175 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5176 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5177 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5180 ## ------------------------------------ ##
5181 ## Report this to bug-autoconf@gnu.org. ##
5182 ## ------------------------------------ ##
5185 sed "s/^/$as_me: WARNING: /" >&2
5188 echo "$as_me:$LINENO: checking for termcap.h" >&5
5189 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5190 if test "${ac_cv_header_termcap_h+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 ac_cv_header_termcap_h=$ac_header_preproc
5195 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5196 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5199 if test $ac_cv_header_termcap_h = yes; then
5200 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5201 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5202 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 ac_check_lib_save_LIBS=$LIBS
5206 LIBS="-ltermcap $LIBS"
5207 cat >conftest.$ac_ext <<_ACEOF
5208 #line $LINENO "configure"
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5215 /* Override any gcc2 internal prototype to avoid an error. */
5219 /* We use char because int might match the return type of a gcc2
5220 builtin and then its argument prototype would still apply. */
5230 rm -f conftest.$ac_objext conftest$ac_exeext
5231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5232 (eval $ac_link) 2>&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } &&
5236 { ac_try='test -s conftest$ac_exeext'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5242 ac_cv_lib_termcap_tgetent=yes
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5247 ac_cv_lib_termcap_tgetent=no
5249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5250 LIBS=$ac_check_lib_save_LIBS
5252 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5253 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5254 if test $ac_cv_lib_termcap_tgetent = yes; then
5255 CONS_LIBS="-ltermcap"
5261 cat >>confdefs.h <<\_ACEOF
5262 #define HAVE_CONIO 1
5267 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5268 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5269 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 ac_check_lib_save_LIBS=$LIBS
5273 LIBS="-lncurses $LIBS"
5274 cat >conftest.$ac_ext <<_ACEOF
5275 #line $LINENO "configure"
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5282 /* Override any gcc2 internal prototype to avoid an error. */
5286 /* We use char because int might match the return type of a gcc2
5287 builtin and then its argument prototype would still apply. */
5297 rm -f conftest.$ac_objext conftest$ac_exeext
5298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5299 (eval $ac_link) 2>&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } &&
5303 { ac_try='test -s conftest$ac_exeext'
5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; }; then
5309 ac_cv_lib_ncurses_tgetent=yes
5311 echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.$ac_ext >&5
5314 ac_cv_lib_ncurses_tgetent=no
5316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5317 LIBS=$ac_check_lib_save_LIBS
5319 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5320 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5321 if test $ac_cv_lib_ncurses_tgetent = yes; then
5322 CONS_LIBS="-lncurses"
5328 cat >>confdefs.h <<\_ACEOF
5329 #define HAVE_CONIO 1
5334 echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5342 echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5349 # ---------------------------------------------------
5350 # Check for readline support/directory (default off)
5351 # ---------------------------------------------------
5352 # this allows you to turn it completely off
5353 # Check whether --enable-readline or --disable-readline was given.
5354 if test "${enable_readline+set}" = set; then
5355 enableval="$enable_readline"
5356 if test x$enableval = xno; then
5363 if test x$support_readline = xyes; then
5365 # Check whether --with-readline or --without-readline was given.
5366 if test "${with_readline+set}" = set; then
5367 withval="$with_readline"
5369 case "$with_readline" in
5372 if test "$with_readline" != "yes"; then
5373 CONS_INC="-I${with_readline}"
5374 CONS_LDFLAGS="-L$with_readline"
5376 with_readline="/usr/include/readline"
5378 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5380 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5381 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5388 # Is the header compilable?
5389 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5390 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5391 cat >conftest.$ac_ext <<_ACEOF
5392 #line $LINENO "configure"
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 $ac_includes_default
5399 #include <${with_readline}/readline.h>
5401 rm -f conftest.$ac_objext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5403 (eval $ac_compile) 2>&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try='test -s conftest.$ac_objext'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5413 ac_header_compiler=yes
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5418 ac_header_compiler=no
5420 rm -f conftest.$ac_objext conftest.$ac_ext
5421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5422 echo "${ECHO_T}$ac_header_compiler" >&6
5424 # Is the header present?
5425 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5426 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5427 cat >conftest.$ac_ext <<_ACEOF
5428 #line $LINENO "configure"
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5434 #include <${with_readline}/readline.h>
5436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5439 grep -v '^ *+' conftest.er1 >conftest.err
5441 cat conftest.err >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } >/dev/null; then
5444 if test -s conftest.err; then
5445 ac_cpp_err=$ac_c_preproc_warn_flag
5452 if test -z "$ac_cpp_err"; then
5453 ac_header_preproc=yes
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5458 ac_header_preproc=no
5460 rm -f conftest.err conftest.$ac_ext
5461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5462 echo "${ECHO_T}$ac_header_preproc" >&6
5464 # So? What about this header?
5465 case $ac_header_compiler:$ac_header_preproc in
5467 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5468 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5469 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5470 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5473 ## ------------------------------------ ##
5474 ## Report this to bug-autoconf@gnu.org. ##
5475 ## ------------------------------------ ##
5478 sed "s/^/$as_me: WARNING: /" >&2
5481 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5482 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5483 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5484 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5485 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5486 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5489 ## ------------------------------------ ##
5490 ## Report this to bug-autoconf@gnu.org. ##
5491 ## ------------------------------------ ##
5494 sed "s/^/$as_me: WARNING: /" >&2
5497 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5498 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 eval "$as_ac_Header=$ac_header_preproc"
5504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5509 cat >>confdefs.h <<\_ACEOF
5510 #define HAVE_READLINE 1
5513 CONS_LIBS="-lreadline -ltermcap"
5517 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5518 echo "$as_me: error: *** readline library missing" >&2;}
5519 { (exit 1); exit 1; }; }
5530 # check for standard readline library
5531 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5532 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5533 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5534 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5538 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5540 # Is the header compilable?
5541 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5542 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5543 cat >conftest.$ac_ext <<_ACEOF
5544 #line $LINENO "configure"
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h. */
5550 $ac_includes_default
5551 #include </usr/include/readline/readline.h>
5553 rm -f conftest.$ac_objext
5554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5555 (eval $ac_compile) 2>&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } &&
5559 { ac_try='test -s conftest.$ac_objext'
5560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }; }; then
5565 ac_header_compiler=yes
5567 echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5570 ac_header_compiler=no
5572 rm -f conftest.$ac_objext conftest.$ac_ext
5573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5574 echo "${ECHO_T}$ac_header_compiler" >&6
5576 # Is the header present?
5577 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5578 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5579 cat >conftest.$ac_ext <<_ACEOF
5580 #line $LINENO "configure"
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586 #include </usr/include/readline/readline.h>
5588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5591 grep -v '^ *+' conftest.er1 >conftest.err
5593 cat conftest.err >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } >/dev/null; then
5596 if test -s conftest.err; then
5597 ac_cpp_err=$ac_c_preproc_warn_flag
5604 if test -z "$ac_cpp_err"; then
5605 ac_header_preproc=yes
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5610 ac_header_preproc=no
5612 rm -f conftest.err conftest.$ac_ext
5613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5614 echo "${ECHO_T}$ac_header_preproc" >&6
5616 # So? What about this header?
5617 case $ac_header_compiler:$ac_header_preproc in
5619 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5620 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5621 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5622 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5625 ## ------------------------------------ ##
5626 ## Report this to bug-autoconf@gnu.org. ##
5627 ## ------------------------------------ ##
5630 sed "s/^/$as_me: WARNING: /" >&2
5633 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5634 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5635 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5636 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5637 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5638 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5641 ## ------------------------------------ ##
5642 ## Report this to bug-autoconf@gnu.org. ##
5643 ## ------------------------------------ ##
5646 sed "s/^/$as_me: WARNING: /" >&2
5649 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5650 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5651 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5656 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5657 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5660 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5661 cat >>confdefs.h <<\_ACEOF
5662 #define HAVE_READLINE 1
5666 CONS_INC="-I/usr/include/readline"
5667 CONS_LIBS="-lreadline -ltermcap"
5671 # Did not find standard library, so try Bacula's default
5672 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5674 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5675 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5682 # Is the header compilable?
5683 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5684 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5685 cat >conftest.$ac_ext <<_ACEOF
5686 #line $LINENO "configure"
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5692 $ac_includes_default
5693 #include <${TOP_DIR}/depkgs/readline/readline.h>
5695 rm -f conftest.$ac_objext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5697 (eval $ac_compile) 2>&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } &&
5701 { ac_try='test -s conftest.$ac_objext'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; }; then
5707 ac_header_compiler=yes
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5712 ac_header_compiler=no
5714 rm -f conftest.$ac_objext conftest.$ac_ext
5715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5716 echo "${ECHO_T}$ac_header_compiler" >&6
5718 # Is the header present?
5719 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5720 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5721 cat >conftest.$ac_ext <<_ACEOF
5722 #line $LINENO "configure"
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5728 #include <${TOP_DIR}/depkgs/readline/readline.h>
5730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5733 grep -v '^ *+' conftest.er1 >conftest.err
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } >/dev/null; then
5738 if test -s conftest.err; then
5739 ac_cpp_err=$ac_c_preproc_warn_flag
5746 if test -z "$ac_cpp_err"; then
5747 ac_header_preproc=yes
5749 echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.$ac_ext >&5
5752 ac_header_preproc=no
5754 rm -f conftest.err conftest.$ac_ext
5755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5756 echo "${ECHO_T}$ac_header_preproc" >&6
5758 # So? What about this header?
5759 case $ac_header_compiler:$ac_header_preproc in
5761 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5762 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5763 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5764 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5767 ## ------------------------------------ ##
5768 ## Report this to bug-autoconf@gnu.org. ##
5769 ## ------------------------------------ ##
5772 sed "s/^/$as_me: WARNING: /" >&2
5775 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5776 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5777 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5778 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5779 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5780 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5783 ## ------------------------------------ ##
5784 ## Report this to bug-autoconf@gnu.org. ##
5785 ## ------------------------------------ ##
5788 sed "s/^/$as_me: WARNING: /" >&2
5791 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5792 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 eval "$as_ac_Header=$ac_header_preproc"
5798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5803 cat >>confdefs.h <<\_ACEOF
5804 #define HAVE_READLINE 1
5808 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5809 CONS_LIBS="-lreadline -lhistory -ltermcap"
5810 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5811 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5814 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5815 echo "$as_me: error: *** readline library missing" >&2;}
5816 { (exit 1); exit 1; }; }
5841 # Minimal stuff for readline Makefile configuration
5845 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5846 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5847 if test "${ac_cv_header_stat_broken+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 cat >conftest.$ac_ext <<_ACEOF
5851 #line $LINENO "configure"
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 #include <sys/types.h>
5858 #include <sys/stat.h>
5860 #if defined(S_ISBLK) && defined(S_IFDIR)
5861 # if S_ISBLK (S_IFDIR)
5866 #if defined(S_ISBLK) && defined(S_IFCHR)
5867 # if S_ISBLK (S_IFCHR)
5872 #if defined(S_ISLNK) && defined(S_IFREG)
5873 # if S_ISLNK (S_IFREG)
5878 #if defined(S_ISSOCK) && defined(S_IFREG)
5879 # if S_ISSOCK (S_IFREG)
5885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5886 $EGREP "You lose" >/dev/null 2>&1; then
5887 ac_cv_header_stat_broken=yes
5889 ac_cv_header_stat_broken=no
5894 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5895 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5896 if test $ac_cv_header_stat_broken = yes; then
5898 cat >>confdefs.h <<\_ACEOF
5899 #define STAT_MACROS_BROKEN 1
5910 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5911 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5912 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5913 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 cat >conftest.$ac_ext <<_ACEOF
5918 #line $LINENO "configure"
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5924 #include <sys/types.h>
5936 rm -f conftest.$ac_objext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938 (eval $ac_compile) 2>&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } &&
5942 { ac_try='test -s conftest.$ac_objext'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; }; then
5948 eval "$as_ac_Header=yes"
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 eval "$as_ac_Header=no"
5955 rm -f conftest.$ac_objext conftest.$ac_ext
5957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5960 cat >>confdefs.h <<_ACEOF
5961 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5964 ac_header_dirent=$ac_hdr; break
5968 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5969 if test $ac_header_dirent = dirent.h; then
5970 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5971 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5972 if test "${ac_cv_search_opendir+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 ac_func_search_save_LIBS=$LIBS
5976 ac_cv_search_opendir=no
5977 cat >conftest.$ac_ext <<_ACEOF
5978 #line $LINENO "configure"
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5985 /* Override any gcc2 internal prototype to avoid an error. */
5989 /* We use char because int might match the return type of a gcc2
5990 builtin and then its argument prototype would still apply. */
6000 rm -f conftest.$ac_objext conftest$ac_exeext
6001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6002 (eval $ac_link) 2>&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try='test -s conftest$ac_exeext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 ac_cv_search_opendir="none required"
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6019 if test "$ac_cv_search_opendir" = no; then
6020 for ac_lib in dir; do
6021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6022 cat >conftest.$ac_ext <<_ACEOF
6023 #line $LINENO "configure"
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6030 /* Override any gcc2 internal prototype to avoid an error. */
6034 /* We use char because int might match the return type of a gcc2
6035 builtin and then its argument prototype would still apply. */
6045 rm -f conftest.$ac_objext conftest$ac_exeext
6046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6047 (eval $ac_link) 2>&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } &&
6051 { ac_try='test -s conftest$ac_exeext'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 ac_cv_search_opendir="-l$ac_lib"
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6067 LIBS=$ac_func_search_save_LIBS
6069 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6070 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6071 if test "$ac_cv_search_opendir" != no; then
6072 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6077 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6078 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6079 if test "${ac_cv_search_opendir+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 ac_func_search_save_LIBS=$LIBS
6083 ac_cv_search_opendir=no
6084 cat >conftest.$ac_ext <<_ACEOF
6085 #line $LINENO "configure"
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6092 /* Override any gcc2 internal prototype to avoid an error. */
6096 /* We use char because int might match the return type of a gcc2
6097 builtin and then its argument prototype would still apply. */
6107 rm -f conftest.$ac_objext conftest$ac_exeext
6108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6109 (eval $ac_link) 2>&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } &&
6113 { ac_try='test -s conftest$ac_exeext'
6114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; }; then
6119 ac_cv_search_opendir="none required"
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6126 if test "$ac_cv_search_opendir" = no; then
6128 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6129 cat >conftest.$ac_ext <<_ACEOF
6130 #line $LINENO "configure"
6133 cat confdefs.h >>conftest.$ac_ext
6134 cat >>conftest.$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6137 /* Override any gcc2 internal prototype to avoid an error. */
6141 /* We use char because int might match the return type of a gcc2
6142 builtin and then its argument prototype would still apply. */
6152 rm -f conftest.$ac_objext conftest$ac_exeext
6153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6154 (eval $ac_link) 2>&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } &&
6158 { ac_try='test -s conftest$ac_exeext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 ac_cv_search_opendir="-l$ac_lib"
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6174 LIBS=$ac_func_search_save_LIBS
6176 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6177 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6178 if test "$ac_cv_search_opendir" != no; then
6179 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6194 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6197 echo "$as_me:$LINENO: checking for $ac_func" >&5
6198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6199 if eval "test \"\${$as_ac_var+set}\" = set"; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 cat >conftest.$ac_ext <<_ACEOF
6203 #line $LINENO "configure"
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6209 /* System header to define __stub macros and hopefully few prototypes,
6210 which can conflict with char $ac_func (); below.
6211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6212 <limits.h> exists even on freestanding compilers. */
6214 # include <limits.h>
6216 # include <assert.h>
6218 /* Override any gcc2 internal prototype to avoid an error. */
6223 /* We use char because int might match the return type of a gcc2
6224 builtin and then its argument prototype would still apply. */
6226 /* The GNU C library defines this for functions which it implements
6227 to always fail with ENOSYS. Some functions are actually named
6228 something starting with __ and the normal name is an alias. */
6229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6232 char (*f) () = $ac_func;
6241 return f != $ac_func;
6246 rm -f conftest.$ac_objext conftest$ac_exeext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6248 (eval $ac_link) 2>&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } &&
6252 { ac_try='test -s conftest$ac_exeext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6258 eval "$as_ac_var=yes"
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6263 eval "$as_ac_var=no"
6265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6269 if test `eval echo '${'$as_ac_var'}'` = yes; then
6270 cat >>confdefs.h <<_ACEOF
6271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6278 for ac_func in nanosleep
6280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6281 echo "$as_me:$LINENO: checking for $ac_func" >&5
6282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6283 if eval "test \"\${$as_ac_var+set}\" = set"; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6286 cat >conftest.$ac_ext <<_ACEOF
6287 #line $LINENO "configure"
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6293 /* System header to define __stub macros and hopefully few prototypes,
6294 which can conflict with char $ac_func (); below.
6295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6296 <limits.h> exists even on freestanding compilers. */
6298 # include <limits.h>
6300 # include <assert.h>
6302 /* Override any gcc2 internal prototype to avoid an error. */
6307 /* We use char because int might match the return type of a gcc2
6308 builtin and then its argument prototype would still apply. */
6310 /* The GNU C library defines this for functions which it implements
6311 to always fail with ENOSYS. Some functions are actually named
6312 something starting with __ and the normal name is an alias. */
6313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6316 char (*f) () = $ac_func;
6325 return f != $ac_func;
6330 rm -f conftest.$ac_objext conftest$ac_exeext
6331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6332 (eval $ac_link) 2>&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } &&
6336 { ac_try='test -s conftest$ac_exeext'
6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; }; then
6342 eval "$as_ac_var=yes"
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6347 eval "$as_ac_var=no"
6349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6353 if test `eval echo '${'$as_ac_var'}'` = yes; then
6354 cat >>confdefs.h <<_ACEOF
6355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6363 for ac_header in varargs.h
6365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6367 echo "$as_me:$LINENO: checking for $ac_header" >&5
6368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6375 # Is the header compilable?
6376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6378 cat >conftest.$ac_ext <<_ACEOF
6379 #line $LINENO "configure"
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h. */
6385 $ac_includes_default
6386 #include <$ac_header>
6388 rm -f conftest.$ac_objext
6389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6390 (eval $ac_compile) 2>&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } &&
6394 { ac_try='test -s conftest.$ac_objext'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
6400 ac_header_compiler=yes
6402 echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6405 ac_header_compiler=no
6407 rm -f conftest.$ac_objext conftest.$ac_ext
6408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6409 echo "${ECHO_T}$ac_header_compiler" >&6
6411 # Is the header present?
6412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6414 cat >conftest.$ac_ext <<_ACEOF
6415 #line $LINENO "configure"
6418 cat confdefs.h >>conftest.$ac_ext
6419 cat >>conftest.$ac_ext <<_ACEOF
6420 /* end confdefs.h. */
6421 #include <$ac_header>
6423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6426 grep -v '^ *+' conftest.er1 >conftest.err
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } >/dev/null; then
6431 if test -s conftest.err; then
6432 ac_cpp_err=$ac_c_preproc_warn_flag
6439 if test -z "$ac_cpp_err"; then
6440 ac_header_preproc=yes
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6445 ac_header_preproc=no
6447 rm -f conftest.err conftest.$ac_ext
6448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6449 echo "${ECHO_T}$ac_header_preproc" >&6
6451 # So? What about this header?
6452 case $ac_header_compiler:$ac_header_preproc in
6454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6460 ## ------------------------------------ ##
6461 ## Report this to bug-autoconf@gnu.org. ##
6462 ## ------------------------------------ ##
6465 sed "s/^/$as_me: WARNING: /" >&2
6468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6476 ## ------------------------------------ ##
6477 ## Report this to bug-autoconf@gnu.org. ##
6478 ## ------------------------------------ ##
6481 sed "s/^/$as_me: WARNING: /" >&2
6484 echo "$as_me:$LINENO: checking for $ac_header" >&5
6485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 eval "$as_ac_Header=$ac_header_preproc"
6491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6496 cat >>confdefs.h <<_ACEOF
6497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6505 # End of readline/conio stuff
6506 # -----------------------------------------------------------------------
6509 # ---------------------------------------------------
6510 # Check for GMP support/directory
6511 # ---------------------------------------------------
6515 # [ --with-gmp[=DIR] Specify gmp library directory],
6517 # case "$with_gmp" in
6520 # if test "$with_gmp" != "yes"; then
6521 # GMP_INC="-I$with_gmp"
6523 # GMP_LDFLAGS="-L$with_gmp"
6525 # with_gmp="/usr/include"
6527 # AC_CHECK_HEADER($with_gmp/gmp.h,
6528 # [ AC_MSG_RESULT(yes)
6529 # AC_DEFINE(HAVE_GMP)
6533 # [ AC_MSG_ERROR([*** gmp library missing])
6539 # # check for standard gmp library
6540 # AC_CHECK_HEADER(/usr/include/gmp.h,
6541 # [ AC_MSG_RESULT(yes)
6542 # AC_DEFINE(HAVE_GMP)
6547 # # Did not find standard library, so use our own
6548 # AC_MSG_RESULT(yes)
6549 # AC_DEFINE(HAVE_GMP)
6552 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6554 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6555 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6561 #AC_SUBST(GMP_LDFLAGS)
6565 # -----------------------------------------------------------------------
6568 # ---------------------------------------------------
6569 # Check for CWEB support/directory
6570 # ---------------------------------------------------
6575 # [ --with-cweb[=DIR] Specify cweb library directory],
6577 # case "$with_cweb" in
6580 # if test "$with_cweb" != "yes"; then
6581 # CWEB_INC="-I$with_cweb"
6582 # CWEB_LIBS="-lcweb"
6583 # CWEB_LDFLAGS="-L$with_cweb"
6585 # with_cweb="/usr/include"
6587 # AC_CHECK_HEADER($with_cweb/cweb.h,
6588 # [ AC_MSG_RESULT(yes)
6589 # AC_DEFINE(HAVE_CWEB)
6590 # CWEB_LIBS="-lcweb"
6593 # [ AC_MSG_ERROR([*** cweb library missing])
6599 # # check for standard cweb library
6600 # AC_CHECK_HEADER(/usr/include/cweb.h,
6601 # [ AC_MSG_RESULT(yes)
6602 # AC_DEFINE(HAVE_CWEB)
6605 # CWEB_LIBS="-lcweb"
6607 # # Did not find starndard library, so use our own
6608 # AC_MSG_RESULT(yes)
6609 # AC_DEFINE(HAVE_CWEB)
6612 # CWEB=${TOP_DIR}/depkgs/cweb
6613 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6614 # CWEB_LIBS="-lcweb"
6615 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6616 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6622 #AC_SUBST(CWEB_LIBS)
6623 #AC_SUBST(CWEB_LDFLAGS)
6627 # -----------------------------------------------------------------------
6631 # -----------------------------------------------------------
6632 # Check whether user wants TCP wrappers support (default off)
6633 # -----------------------------------------------------------
6636 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6637 if test "${with_tcp_wrappers+set}" = set; then
6638 withval="$with_tcp_wrappers"
6640 if test "x$withval" != "xno" ; then
6642 LIBS="$saved_LIBS -lwrap"
6643 echo "$as_me:$LINENO: checking for libwrap" >&5
6644 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6645 cat >conftest.$ac_ext <<_ACEOF
6646 #line $LINENO "configure"
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6653 int deny_severity = 0;
6654 int allow_severity = 0;
6655 struct request_info *req;
6664 rm -f conftest.$ac_objext conftest$ac_exeext
6665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6666 (eval $ac_link) 2>&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } &&
6670 { ac_try='test -s conftest$ac_exeext'
6671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6677 echo "$as_me:$LINENO: result: yes" >&5
6678 echo "${ECHO_T}yes" >&6
6679 cat >>confdefs.h <<\_ACEOF
6680 #define HAVE_LIBWRAP 1
6686 echo "$as_me: failed program was:" >&5
6687 sed 's/^/| /' conftest.$ac_ext >&5
6690 LIBS="$saved_LIBS -lwrap -lnsl"
6691 cat >conftest.$ac_ext <<_ACEOF
6692 #line $LINENO "configure"
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6699 int deny_severity = 0;
6700 int allow_severity = 0;
6701 struct request_info *req;
6710 rm -f conftest.$ac_objext conftest$ac_exeext
6711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6712 (eval $ac_link) 2>&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } &&
6716 { ac_try='test -s conftest$ac_exeext'
6717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); }; }; then
6723 echo "$as_me:$LINENO: result: yes" >&5
6724 echo "${ECHO_T}yes" >&6
6725 cat >>confdefs.h <<\_ACEOF
6726 #define HAVE_LIBWRAP 1
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6735 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6736 echo "$as_me: error: *** libwrap missing" >&2;}
6737 { (exit 1); exit 1; }; }
6740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6749 # ------------------------------------------
6750 # Where to place working dir
6751 # ------------------------------------------
6752 working_dir=`eval echo ${prefix}/var/bacula/working`
6754 # Check whether --with-working-dir or --without-working-dir was given.
6755 if test "${with_working_dir+set}" = set; then
6756 withval="$with_working_dir"
6758 if test "x$withval" != "xno" ; then
6759 working_dir=$withval
6768 # ------------------------------------------
6769 # Where to place scriptdir (script files)
6770 # ------------------------------------------
6771 scriptdir=`eval echo ${sysconfdir}`
6773 # Check whether --with-scriptdir or --without-scriptdir was given.
6774 if test "${with_scriptdir+set}" = set; then
6775 withval="$with_scriptdir"
6777 if test "x$withval" != "xno" ; then
6787 # ------------------------------------------
6788 # Where to send dump email
6789 # ------------------------------------------
6790 dump_email=root@localhost
6792 # Check whether --with-dump-email or --without-dump-email was given.
6793 if test "${with_dump_email+set}" = set; then
6794 withval="$with_dump_email"
6796 if test "x$withval" != "xno" ; then
6805 # ------------------------------------------
6806 # Where to send job email
6807 # ------------------------------------------
6808 job_email=root@localhost
6810 # Check whether --with-job-email or --without-job-email was given.
6811 if test "${with_job_email+set}" = set; then
6812 withval="$with_job_email"
6814 if test "x$withval" != "xno" ; then
6823 # ------------------------------------------
6824 # Where to find smtp host
6825 # ------------------------------------------
6828 # Check whether --with-smtp_host or --without-smtp_host was given.
6829 if test "${with_smtp_host+set}" = set; then
6830 withval="$with_smtp_host"
6832 if test "x$withval" != "xno" ; then
6842 # ------------------------------------
6843 # Where to place pid files
6844 # ------------------------------------
6847 # Check whether --with-pid-dir or --without-pid-dir was given.
6848 if test "${with_pid_dir+set}" = set; then
6849 withval="$with_pid_dir"
6851 if test "x$withval" != "xno" ; then
6858 cat >>confdefs.h <<_ACEOF
6859 #define _PATH_BACULA_PIDDIR "$piddir"
6865 # ------------------------------------
6866 # Where to place subsys "lock file"
6867 # ------------------------------------
6868 subsysdir=/var/run/subsys
6870 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6871 if test "${with_subsys_dir+set}" = set; then
6872 withval="$with_subsys_dir"
6874 if test "x$withval" != "xno" ; then
6885 # ------------------------------------
6886 # Where to start assigning ports
6887 # ------------------------------------
6890 # Check whether --with-baseport or --without-baseport was given.
6891 if test "${with_baseport+set}" = set; then
6892 withval="$with_baseport"
6894 if test "x$withval" != "xno" ; then
6902 dir_port=`expr $baseport`
6903 fd_port=`expr $baseport + 1`
6904 sd_port=`expr $fd_port + 1`
6911 # ------------------------------------------
6912 # Generate passwords
6913 # ------------------------------------------
6916 # Check whether --with-dir-password or --without-dir-password was given.
6917 if test "${with_dir_password+set}" = set; then
6918 withval="$with_dir_password"
6920 if test "x$withval" != "xno" ; then
6921 dir_password=$withval
6927 if test "x$dir_password" = "x" ; then
6928 if test "x$OPENSSL" = "xnone" ; then
6929 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6930 key=`autoconf/randpass 33`
6932 key=`openssl rand -base64 33`
6939 # Check whether --with-fd-password or --without-fd-password was given.
6940 if test "${with_fd_password+set}" = set; then
6941 withval="$with_fd_password"
6943 if test "x$withval" != "xno" ; then
6944 fd_password=$withval
6950 if test "x$fd_password" = "x" ; then
6951 if test "x$OPENSSL" = "xnone" ; then
6952 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6953 key=`autoconf/randpass 37`
6955 key=`openssl rand -base64 33`
6962 # Check whether --with-sd-password or --without-sd-password was given.
6963 if test "${with_sd_password+set}" = set; then
6964 withval="$with_sd_password"
6966 if test "x$withval" != "xno" ; then
6967 sd_password=$withval
6973 if test "x$sd_password" = "x" ; then
6974 if test "x$OPENSSL" = "xnone" ; then
6975 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6976 key=`autoconf/randpass 41`
6978 key=`openssl rand -base64 33`
6990 # Handle users and groups for each daemon
6994 # Check whether --with-dir_user or --without-dir_user was given.
6995 if test "${with_dir_user+set}" = set; then
6996 withval="$with_dir_user"
6998 if test "x$withval" != "x" ; then
7007 # Check whether --with-dir_group or --without-dir_group was given.
7008 if test "${with_dir_group+set}" = set; then
7009 withval="$with_dir_group"
7011 if test "x$withval" != "x" ; then
7020 # Check whether --with-sd_user or --without-sd_user was given.
7021 if test "${with_sd_user+set}" = set; then
7022 withval="$with_sd_user"
7024 if test "x$withval" != "x" ; then
7033 # Check whether --with-sd_group or --without-sd_group was given.
7034 if test "${with_sd_group+set}" = set; then
7035 withval="$with_sd_group"
7037 if test "x$withval" != "x" ; then
7046 # Check whether --with-fd_user or --without-fd_user was given.
7047 if test "${with_fd_user+set}" = set; then
7048 withval="$with_fd_user"
7050 if test "x$withval" != "x" ; then
7059 # Check whether --with-fd_group or --without-fd_group was given.
7060 if test "${with_fd_group+set}" = set; then
7061 withval="$with_fd_group"
7063 if test "x$withval" != "x" ; then
7080 # ------------------------------------------------
7081 # Bacula check for various SQL database engines
7082 # ------------------------------------------------
7085 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7086 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7088 # Check whether --with-postgresql or --without-postgresql was given.
7089 if test "${with_postgresql+set}" = set; then
7090 withval="$with_postgresql"
7092 if test "$withval" != "no"; then
7093 if test "$db_found" = "yes"; then
7094 echo "$as_me:$LINENO: result: error" >&5
7095 echo "${ECHO_T}error" >&6
7096 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7097 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7098 { (exit 1); exit 1; }; };
7100 if test "$withval" = "yes"; then
7101 if test -f /usr/local/include/libpq-fe.h; then
7102 POSTGRESQL_INCDIR=/usr/local/include
7103 POSTGRESQL_LIBDIR=/usr/local/lib
7104 POSTGRESQL_BINDIR=/usr/local/bin
7105 elif test -f /usr/include/libpq-fe.h; then
7106 POSTGRESQL_INCDIR=/usr/include
7107 POSTGRESQL_LIBDIR=/usr/lib
7108 POSTGRESQL_BINDIR=/usr/bin
7109 elif test -f /usr/include/pgsql/libpq-fe.h; then
7110 POSTGRESQL_INCDIR=/usr/include/pgsql
7111 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7112 POSTGRESQL_BINDIR=/usr/bin
7114 echo "$as_me:$LINENO: result: no" >&5
7115 echo "${ECHO_T}no" >&6
7116 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7117 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7118 { (exit 1); exit 1; }; }
7120 elif test -f $withval/libpq-fe.h; then
7121 POSTGRESQL_INCDIR=$withval
7122 POSTGRESQL_LIBDIR=$withval
7123 POSTGRESQL_BINDIR=$withval
7125 echo "$as_me:$LINENO: result: no" >&5
7126 echo "${ECHO_T}no" >&6
7127 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7128 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7129 { (exit 1); exit 1; }; }
7131 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7132 echo "$as_me:$LINENO: checking for crypt" >&5
7133 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7134 if test "${ac_cv_func_crypt+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7137 cat >conftest.$ac_ext <<_ACEOF
7138 #line $LINENO "configure"
7141 cat confdefs.h >>conftest.$ac_ext
7142 cat >>conftest.$ac_ext <<_ACEOF
7143 /* end confdefs.h. */
7144 /* System header to define __stub macros and hopefully few prototypes,
7145 which can conflict with char crypt (); below.
7146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7147 <limits.h> exists even on freestanding compilers. */
7149 # include <limits.h>
7151 # include <assert.h>
7153 /* Override any gcc2 internal prototype to avoid an error. */
7158 /* We use char because int might match the return type of a gcc2
7159 builtin and then its argument prototype would still apply. */
7161 /* The GNU C library defines this for functions which it implements
7162 to always fail with ENOSYS. Some functions are actually named
7163 something starting with __ and the normal name is an alias. */
7164 #if defined (__stub_crypt) || defined (__stub___crypt)
7167 char (*f) () = crypt;
7181 rm -f conftest.$ac_objext conftest$ac_exeext
7182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7183 (eval $ac_link) 2>&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } &&
7187 { ac_try='test -s conftest$ac_exeext'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7193 ac_cv_func_crypt=yes
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7202 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7203 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7204 if test $ac_cv_func_crypt = yes; then
7207 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7208 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7209 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 ac_check_lib_save_LIBS=$LIBS
7213 LIBS="-lcrypt $LIBS"
7214 cat >conftest.$ac_ext <<_ACEOF
7215 #line $LINENO "configure"
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7222 /* Override any gcc2 internal prototype to avoid an error. */
7226 /* We use char because int might match the return type of a gcc2
7227 builtin and then its argument prototype would still apply. */
7237 rm -f conftest.$ac_objext conftest$ac_exeext
7238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7239 (eval $ac_link) 2>&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } &&
7243 { ac_try='test -s conftest$ac_exeext'
7244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); }; }; then
7249 ac_cv_lib_crypt_crypt=yes
7251 echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.$ac_ext >&5
7254 ac_cv_lib_crypt_crypt=no
7256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7257 LIBS=$ac_check_lib_save_LIBS
7259 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7260 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7261 if test $ac_cv_lib_crypt_crypt = yes; then
7262 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7267 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7268 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7269 SQL_BINDIR=$POSTGRESQL_BINDIR
7270 cat >>confdefs.h <<\_ACEOF
7271 #define HAVE_POSTGRESQL 1
7274 echo "$as_me:$LINENO: result: yes" >&5
7275 echo "${ECHO_T}yes" >&6
7277 support_postgresql=yes
7281 echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6
7287 echo "$as_me:$LINENO: result: no" >&5
7288 echo "${ECHO_T}no" >&6
7299 echo "$as_me:$LINENO: checking for MySQL support" >&5
7300 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7302 # Check whether --with-mysql or --without-mysql was given.
7303 if test "${with_mysql+set}" = set; then
7304 withval="$with_mysql"
7306 if test "$withval" != "no"; then
7307 if test "$withval" = "yes"; then
7308 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7309 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7310 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7311 MYSQL_BINDIR=/usr/local/mysql/bin
7312 elif test -f /usr/include/mysql/mysql.h; then
7313 MYSQL_INCDIR=/usr/include/mysql
7314 MYSQL_LIBDIR=/usr/lib/mysql
7315 MYSQL_BINDIR=/usr/bin
7316 elif test -f /usr/include/mysql.h; then
7317 MYSQL_INCDIR=/usr/include
7318 MYSQL_LIBDIR=/usr/lib
7319 MYSQL_BINDIR=/usr/bin
7320 elif test -f /usr/local/include/mysql/mysql.h; then
7321 MYSQL_INCDIR=/usr/local/include/mysql
7322 MYSQL_LIBDIR=/usr/local/lib/mysql
7323 MYSQL_BINDIR=/usr/local/bin
7324 elif test -f /usr/local/include/mysql.h; then
7325 MYSQL_INCDIR=/usr/local/include
7326 MYSQL_LIBDIR=/usr/local/lib
7327 MYSQL_BINDIR=/usr/local/bin
7329 echo "$as_me:$LINENO: result: no" >&5
7330 echo "${ECHO_T}no" >&6
7331 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7332 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7333 { (exit 1); exit 1; }; }
7336 if test -f $withval/include/mysql/mysql.h; then
7337 MYSQL_INCDIR=$withval/include/mysql
7338 MYSQL_LIBDIR=$withval/lib/mysql
7339 MYSQL_BINDIR=$withval/bin
7340 elif test -f $withval/include/mysql.h; then
7341 MYSQL_INCDIR=$withval/include
7342 MYSQL_LIBDIR=$withval/lib
7343 MYSQL_BINDIR=$withval/bin
7345 echo "$as_me:$LINENO: result: no" >&5
7346 echo "${ECHO_T}no" >&6
7347 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7348 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7349 { (exit 1); exit 1; }; }
7352 SQL_INCLUDE=-I$MYSQL_INCDIR
7353 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7354 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7355 cat >>confdefs.h <<\_ACEOF
7356 #define HAVE_THREAD_SAFE_MYSQL 1
7360 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7362 SQL_BINDIR=$MYSQL_BINDIR
7364 cat >>confdefs.h <<\_ACEOF
7365 #define HAVE_MYSQL 1
7368 echo "$as_me:$LINENO: result: yes" >&5
7369 echo "${ECHO_T}yes" >&6
7376 echo "$as_me:$LINENO: result: no" >&5
7377 echo "${ECHO_T}no" >&6
7382 echo "$as_me:$LINENO: result: no" >&5
7383 echo "${ECHO_T}no" >&6
7388 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7389 if test "${with_embedded_mysql+set}" = set; then
7390 withval="$with_embedded_mysql"
7392 if test "$withval" != "no"; then
7393 if test "$withval" = "yes"; then
7394 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7395 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7396 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7397 MYSQL_BINDIR=/usr/local/mysql/bin
7398 elif test -f /usr/include/mysql/mysql.h; then
7399 MYSQL_INCDIR=/usr/include/mysql
7400 MYSQL_LIBDIR=/usr/lib/mysql
7401 MYSQL_BINDIR=/usr/bin
7402 elif test -f /usr/include/mysql.h; then
7403 MYSQL_INCDIR=/usr/include
7404 MYSQL_LIBDIR=/usr/lib
7405 MYSQL_BINDIR=/usr/bin
7406 elif test -f /usr/local/include/mysql/mysql.h; then
7407 MYSQL_INCDIR=/usr/local/include/mysql
7408 MYSQL_LIBDIR=/usr/local/lib/mysql
7409 MYSQL_BINDIR=/usr/local/bin
7410 elif test -f /usr/local/include/mysql.h; then
7411 MYSQL_INCDIR=/usr/local/include
7412 MYSQL_LIBDIR=/usr/local/lib
7413 MYSQL_BINDIR=/usr/local/bin
7415 echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6
7417 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7418 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7419 { (exit 1); exit 1; }; }
7422 if test -f $withval/include/mysql/mysql.h; then
7423 MYSQL_INCDIR=$withval/include/mysql
7424 MYSQL_LIBDIR=$withval/lib/mysql
7425 MYSQL_BINDIR=$withval/bin
7426 elif test -f $withval/include/mysql.h; then
7427 MYSQL_INCDIR=$withval/include
7428 MYSQL_LIBDIR=$withval/lib
7429 MYSQL_BINDIR=$withval/bin
7431 echo "$as_me:$LINENO: result: no" >&5
7432 echo "${ECHO_T}no" >&6
7433 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7434 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7435 { (exit 1); exit 1; }; }
7438 SQL_INCLUDE=-I$MYSQL_INCDIR
7439 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7440 SQL_BINDIR=$MYSQL_BINDIR
7442 cat >>confdefs.h <<\_ACEOF
7443 #define HAVE_MYSQL 1
7446 cat >>confdefs.h <<\_ACEOF
7447 #define HAVE_EMBEDDED_MYSQL 1
7450 echo "$as_me:$LINENO: result: yes" >&5
7451 echo "${ECHO_T}yes" >&6
7458 echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6
7464 echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6
7478 echo "$as_me:$LINENO: checking for SQLite support" >&5
7479 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7481 # Check whether --with-sqlite or --without-sqlite was given.
7482 if test "${with_sqlite+set}" = set; then
7483 withval="$with_sqlite"
7485 if test "$withval" != "no"; then
7486 if test "$withval" = "yes"; then
7487 if test -f /usr/local/include/sqlite.h; then
7488 SQLITE_INCDIR=/usr/local/include
7489 SQLITE_LIBDIR=/usr/local/lib
7490 SQLITE_BINDIR=/usr/local/bin
7491 elif test -f /usr/include/sqlite.h; then
7492 SQLITE_INCDIR=/usr/include
7493 SQLITE_LIBDIR=/usr/lib
7494 SQLITE_BINDIR=/usr/bin
7496 echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6
7498 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7499 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7500 { (exit 1); exit 1; }; }
7503 if test -f $withval/sqlite.h; then
7504 SQLITE_INCDIR=$withval
7505 SQLITE_LIBDIR=$withval
7506 SQLITE_BINDIR=$withval
7508 echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6
7510 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7511 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7512 { (exit 1); exit 1; }; }
7515 SQL_INCLUDE=-I$SQLITE_INCDIR
7516 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7517 SQL_BINDIR=$SQLITE_BINDIR
7519 cat >>confdefs.h <<\_ACEOF
7520 #define HAVE_SQLITE 1
7523 echo "$as_me:$LINENO: result: yes" >&5
7524 echo "${ECHO_T}yes" >&6
7531 echo "$as_me:$LINENO: result: no" >&5
7532 echo "${ECHO_T}no" >&6
7537 echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6
7550 cat >>confdefs.h <<\_ACEOF
7551 #define PROTOTYPES 1
7555 if test -z "$CFLAGS"; then
7556 if test -z "$CCOPTS"; then
7565 largefile_support="no"
7567 # Check whether --enable-largefile or --disable-largefile was given.
7568 if test "${enable_largefile+set}" = set; then
7569 enableval="$enable_largefile"
7572 if test "$enable_largefile" != no; then
7573 if test -n "$ac_tool_prefix"; then
7574 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7575 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7576 echo "$as_me:$LINENO: checking for $ac_word" >&5
7577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7578 if test "${ac_cv_prog_GETCONF+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 if test -n "$GETCONF"; then
7582 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7591 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 GETCONF=$ac_cv_prog_GETCONF
7601 if test -n "$GETCONF"; then
7602 echo "$as_me:$LINENO: result: $GETCONF" >&5
7603 echo "${ECHO_T}$GETCONF" >&6
7605 echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6
7610 if test -z "$ac_cv_prog_GETCONF"; then
7611 ac_ct_GETCONF=$GETCONF
7612 # Extract the first word of "getconf", so it can be a program name with args.
7613 set dummy getconf; ac_word=$2
7614 echo "$as_me:$LINENO: checking for $ac_word" >&5
7615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7616 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 if test -n "$ac_ct_GETCONF"; then
7620 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7629 ac_cv_prog_ac_ct_GETCONF="getconf"
7630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7639 if test -n "$ac_ct_GETCONF"; then
7640 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7641 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7643 echo "$as_me:$LINENO: result: no" >&5
7644 echo "${ECHO_T}no" >&6
7647 GETCONF=$ac_ct_GETCONF
7649 GETCONF="$ac_cv_prog_GETCONF"
7652 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7653 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7654 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7658 ac_cv_sys_largefile_CFLAGS=no
7660 # IRIX 6.2 and later require cc -n32.
7661 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7662 if test "$GCC" != yes; then
7663 ac_cv_sys_largefile_CFLAGS=-n32
7666 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7667 cat >conftest.$ac_ext <<_ACEOF
7668 #line $LINENO "configure"
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7683 rm -f conftest.$ac_objext conftest$ac_exeext
7684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7685 (eval $ac_link) 2>&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } &&
7689 { ac_try='test -s conftest$ac_exeext'
7690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); }; }; then
7697 echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7700 ac_cv_sys_largefile_CFLAGS=no
7702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7707 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7708 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7709 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7710 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7711 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7715 ac_cv_sys_largefile_LDFLAGS=no
7719 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7720 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7721 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7722 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7723 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7727 ac_cv_sys_largefile_LIBS=no
7731 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7732 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7734 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7737 -D_FILE_OFFSET_BITS=*) ;;
7738 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7739 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7745 '') CPPFLAGS="$ac_flag" ;;
7746 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7754 '') CFLAGS="$ac_flag" ;;
7755 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7760 case "$ac_cv_sys_largefile_LDFLAGS" in
7764 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7765 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7768 case "$ac_cv_sys_largefile_LIBS" in
7772 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7773 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7776 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7777 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7778 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 ac_cv_sys_file_offset_bits=no
7783 # HP-UX 10.20 and later
7784 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7785 ac_cv_sys_file_offset_bits=64 ;;
7787 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7789 -D_FILE_OFFSET_BITS)
7790 ac_cv_sys_file_offset_bits=1 ;;
7791 -D_FILE_OFFSET_BITS=*)
7792 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7797 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7798 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7799 if test "$ac_cv_sys_file_offset_bits" != no; then
7801 cat >>confdefs.h <<_ACEOF
7802 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7806 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7807 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7808 if test "${ac_cv_sys_largefile_source+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 ac_cv_sys_largefile_source=no
7813 # HP-UX 10.20 and later
7814 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7815 ac_cv_sys_largefile_source=1 ;;
7817 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7819 -D_LARGEFILE_SOURCE)
7820 ac_cv_sys_largefile_source=1 ;;
7821 -D_LARGEFILE_SOURCE=*)
7822 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7827 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7828 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7829 if test "$ac_cv_sys_largefile_source" != no; then
7831 cat >>confdefs.h <<_ACEOF
7832 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7836 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7837 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7838 if test "${ac_cv_sys_large_files+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 ac_cv_sys_large_files=no
7844 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7845 ac_cv_sys_large_files=1 ;;
7847 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7850 ac_cv_sys_large_files=1 ;;
7852 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7857 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7858 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7859 if test "$ac_cv_sys_large_files" != no; then
7861 cat >>confdefs.h <<_ACEOF
7862 #define _LARGE_FILES $ac_cv_sys_large_files
7870 echo "$as_me:$LINENO: checking for X" >&5
7871 echo $ECHO_N "checking for X... $ECHO_C" >&6
7874 # Check whether --with-x or --without-x was given.
7875 if test "${with_x+set}" = set; then
7879 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7880 if test "x$with_x" = xno; then
7881 # The user explicitly disabled X.
7884 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7885 # Both variables are already set.
7888 if test "${ac_cv_have_x+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7891 # One or both of the vars are not set, and there is no cached value.
7892 ac_x_includes=no ac_x_libraries=no
7894 if mkdir conftest.dir; then
7896 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7897 cat >Imakefile <<'_ACEOF'
7899 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7901 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7902 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7903 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7904 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7905 for ac_extension in a so sl; do
7906 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7907 test -f $ac_im_libdir/libX11.$ac_extension; then
7908 ac_im_usrlibdir=$ac_im_libdir; break
7911 # Screen out bogus values from the imake configuration. They are
7912 # bogus both because they are the default anyway, and because
7913 # using them would break gcc on systems where it needs fixed includes.
7914 case $ac_im_incroot in
7916 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7918 case $ac_im_usrlibdir in
7920 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7927 # Standard set of common directories for X headers.
7928 # Check X11 before X11Rn because it is often a symlink to the current release.
7940 /usr/local/X11/include
7941 /usr/local/X11R6/include
7942 /usr/local/X11R5/include
7943 /usr/local/X11R4/include
7945 /usr/local/include/X11
7946 /usr/local/include/X11R6
7947 /usr/local/include/X11R5
7948 /usr/local/include/X11R4
7952 /usr/XFree86/include/X11
7956 /usr/unsupported/include
7958 /usr/local/x11r5/include
7959 /usr/lpp/Xamples/include
7961 /usr/openwin/include
7962 /usr/openwin/share/include'
7964 if test "$ac_x_includes" = no; then
7965 # Guess where to find include files, by looking for Intrinsic.h.
7966 # First, try using that file with no special directory specified.
7967 cat >conftest.$ac_ext <<_ACEOF
7968 #line $LINENO "configure"
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h. */
7974 #include <X11/Intrinsic.h>
7976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7979 grep -v '^ *+' conftest.er1 >conftest.err
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } >/dev/null; then
7984 if test -s conftest.err; then
7985 ac_cpp_err=$ac_c_preproc_warn_flag
7992 if test -z "$ac_cpp_err"; then
7993 # We can compile using X headers with no special include directory.
7996 echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7999 for ac_dir in $ac_x_header_dirs; do
8000 if test -r "$ac_dir/X11/Intrinsic.h"; then
8001 ac_x_includes=$ac_dir
8006 rm -f conftest.err conftest.$ac_ext
8007 fi # $ac_x_includes = no
8009 if test "$ac_x_libraries" = no; then
8010 # Check for the libraries.
8011 # See if we find them without any special options.
8012 # Don't add to $LIBS permanently.
8015 cat >conftest.$ac_ext <<_ACEOF
8016 #line $LINENO "configure"
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8022 #include <X11/Intrinsic.h>
8031 rm -f conftest.$ac_objext conftest$ac_exeext
8032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8033 (eval $ac_link) 2>&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } &&
8037 { ac_try='test -s conftest$ac_exeext'
8038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); }; }; then
8044 # We can link X programs with no special library path.
8047 echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8051 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8053 # Don't even attempt the hair of trying to link an X program!
8054 for ac_extension in a so sl; do
8055 if test -r $ac_dir/libXt.$ac_extension; then
8056 ac_x_libraries=$ac_dir
8062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8063 fi # $ac_x_libraries = no
8065 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8066 # Didn't find X anywhere. Cache the known absence of X.
8067 ac_cv_have_x="have_x=no"
8069 # Record where we found X for the cache.
8070 ac_cv_have_x="have_x=yes \
8071 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8076 eval "$ac_cv_have_x"
8079 if test "$have_x" != yes; then
8080 echo "$as_me:$LINENO: result: $have_x" >&5
8081 echo "${ECHO_T}$have_x" >&6
8084 # If each of the values was on the command line, it overrides each guess.
8085 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8086 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8087 # Update the cache value to reflect the command line values.
8088 ac_cv_have_x="have_x=yes \
8089 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8090 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8091 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8094 if test "$no_x" = yes; then
8095 # Not all programs may use this symbol, but it does not hurt to define it.
8097 cat >>confdefs.h <<\_ACEOF
8098 #define X_DISPLAY_MISSING 1
8101 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8103 if test -n "$x_includes"; then
8104 X_CFLAGS="$X_CFLAGS -I$x_includes"
8107 # It would also be nice to do this for all -L options, not just this one.
8108 if test -n "$x_libraries"; then
8109 X_LIBS="$X_LIBS -L$x_libraries"
8110 # For Solaris; some versions of Sun CC require a space after -R and
8111 # others require no space. Words are not sufficient . . . .
8112 case `(uname -sr) 2>/dev/null` in
8114 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8115 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8116 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8117 cat >conftest.$ac_ext <<_ACEOF
8118 #line $LINENO "configure"
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h. */
8133 rm -f conftest.$ac_objext conftest$ac_exeext
8134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8135 (eval $ac_link) 2>&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } &&
8139 { ac_try='test -s conftest$ac_exeext'
8140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; }; then
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8153 if test $ac_R_nospace = yes; then
8154 echo "$as_me:$LINENO: result: no" >&5
8155 echo "${ECHO_T}no" >&6
8156 X_LIBS="$X_LIBS -R$x_libraries"
8158 LIBS="$ac_xsave_LIBS -R $x_libraries"
8159 cat >conftest.$ac_ext <<_ACEOF
8160 #line $LINENO "configure"
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8175 rm -f conftest.$ac_objext conftest$ac_exeext
8176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8177 (eval $ac_link) 2>&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } &&
8181 { ac_try='test -s conftest$ac_exeext'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; }; then
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8195 if test $ac_R_space = yes; then
8196 echo "$as_me:$LINENO: result: yes" >&5
8197 echo "${ECHO_T}yes" >&6
8198 X_LIBS="$X_LIBS -R $x_libraries"
8200 echo "$as_me:$LINENO: result: neither works" >&5
8201 echo "${ECHO_T}neither works" >&6
8208 # Check for system-dependent libraries X programs must link with.
8209 # Do this before checking for the system-independent R6 libraries
8210 # (-lICE), since we may need -lsocket or whatever for X linking.
8212 if test "$ISC" = yes; then
8213 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8215 # Martyn Johnson says this is needed for Ultrix, if the X
8216 # libraries were built with DECnet support. And Karl Berry says
8217 # the Alpha needs dnet_stub (dnet does not exist).
8218 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8219 cat >conftest.$ac_ext <<_ACEOF
8220 #line $LINENO "configure"
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8227 /* Override any gcc2 internal prototype to avoid an error. */
8231 /* We use char because int might match the return type of a gcc2
8232 builtin and then its argument prototype would still apply. */
8233 char XOpenDisplay ();
8242 rm -f conftest.$ac_objext conftest$ac_exeext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8244 (eval $ac_link) 2>&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } &&
8248 { ac_try='test -s conftest$ac_exeext'
8249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; }; then
8256 echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8259 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8260 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8261 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 ac_check_lib_save_LIBS=$LIBS
8266 cat >conftest.$ac_ext <<_ACEOF
8267 #line $LINENO "configure"
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8274 /* Override any gcc2 internal prototype to avoid an error. */
8278 /* We use char because int might match the return type of a gcc2
8279 builtin and then its argument prototype would still apply. */
8289 rm -f conftest.$ac_objext conftest$ac_exeext
8290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8291 (eval $ac_link) 2>&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } &&
8295 { ac_try='test -s conftest$ac_exeext'
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; }; then
8301 ac_cv_lib_dnet_dnet_ntoa=yes
8303 echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8306 ac_cv_lib_dnet_dnet_ntoa=no
8308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8309 LIBS=$ac_check_lib_save_LIBS
8311 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8312 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8313 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8314 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8317 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8318 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8319 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8320 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 ac_check_lib_save_LIBS=$LIBS
8324 LIBS="-ldnet_stub $LIBS"
8325 cat >conftest.$ac_ext <<_ACEOF
8326 #line $LINENO "configure"
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h. */
8333 /* Override any gcc2 internal prototype to avoid an error. */
8337 /* We use char because int might match the return type of a gcc2
8338 builtin and then its argument prototype would still apply. */
8348 rm -f conftest.$ac_objext conftest$ac_exeext
8349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8350 (eval $ac_link) 2>&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); } &&
8354 { ac_try='test -s conftest$ac_exeext'
8355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; }; then
8360 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8365 ac_cv_lib_dnet_stub_dnet_ntoa=no
8367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8368 LIBS=$ac_check_lib_save_LIBS
8370 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8371 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8372 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8373 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8379 LIBS="$ac_xsave_LIBS"
8381 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8382 # to get the SysV transport functions.
8383 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8385 # The nsl library prevents programs from opening the X display
8386 # on Irix 5.2, according to T.E. Dickey.
8387 # The functions gethostbyname, getservbyname, and inet_addr are
8388 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8389 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8390 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8391 if test "${ac_cv_func_gethostbyname+set}" = set; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 cat >conftest.$ac_ext <<_ACEOF
8395 #line $LINENO "configure"
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8401 /* System header to define __stub macros and hopefully few prototypes,
8402 which can conflict with char gethostbyname (); below.
8403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8404 <limits.h> exists even on freestanding compilers. */
8406 # include <limits.h>
8408 # include <assert.h>
8410 /* Override any gcc2 internal prototype to avoid an error. */
8415 /* We use char because int might match the return type of a gcc2
8416 builtin and then its argument prototype would still apply. */
8417 char gethostbyname ();
8418 /* The GNU C library defines this for functions which it implements
8419 to always fail with ENOSYS. Some functions are actually named
8420 something starting with __ and the normal name is an alias. */
8421 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8424 char (*f) () = gethostbyname;
8433 return f != gethostbyname;
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440 (eval $ac_link) 2>&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } &&
8444 { ac_try='test -s conftest$ac_exeext'
8445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; }; then
8450 ac_cv_func_gethostbyname=yes
8452 echo "$as_me: failed program was:" >&5
8453 sed 's/^/| /' conftest.$ac_ext >&5
8455 ac_cv_func_gethostbyname=no
8457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8459 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8460 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8462 if test $ac_cv_func_gethostbyname = no; then
8463 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8464 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8465 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 ac_check_lib_save_LIBS=$LIBS
8470 cat >conftest.$ac_ext <<_ACEOF
8471 #line $LINENO "configure"
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h. */
8478 /* Override any gcc2 internal prototype to avoid an error. */
8482 /* We use char because int might match the return type of a gcc2
8483 builtin and then its argument prototype would still apply. */
8484 char gethostbyname ();
8493 rm -f conftest.$ac_objext conftest$ac_exeext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8495 (eval $ac_link) 2>&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try='test -s conftest$ac_exeext'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; }; then
8505 ac_cv_lib_nsl_gethostbyname=yes
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8510 ac_cv_lib_nsl_gethostbyname=no
8512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8513 LIBS=$ac_check_lib_save_LIBS
8515 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8516 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8517 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8518 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8521 if test $ac_cv_lib_nsl_gethostbyname = no; then
8522 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8523 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8524 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8527 ac_check_lib_save_LIBS=$LIBS
8529 cat >conftest.$ac_ext <<_ACEOF
8530 #line $LINENO "configure"
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h. */
8537 /* Override any gcc2 internal prototype to avoid an error. */
8541 /* We use char because int might match the return type of a gcc2
8542 builtin and then its argument prototype would still apply. */
8543 char gethostbyname ();
8552 rm -f conftest.$ac_objext conftest$ac_exeext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8554 (eval $ac_link) 2>&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try='test -s conftest$ac_exeext'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8564 ac_cv_lib_bsd_gethostbyname=yes
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8569 ac_cv_lib_bsd_gethostbyname=no
8571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8572 LIBS=$ac_check_lib_save_LIBS
8574 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8575 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8576 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8577 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8583 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8584 # socket/setsockopt and other routines are undefined under SCO ODT
8585 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8586 # on later versions), says Simon Leinen: it contains gethostby*
8587 # variants that don't use the name server (or something). -lsocket
8588 # must be given before -lnsl if both are needed. We assume that
8589 # if connect needs -lnsl, so does gethostbyname.
8590 echo "$as_me:$LINENO: checking for connect" >&5
8591 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8592 if test "${ac_cv_func_connect+set}" = set; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 cat >conftest.$ac_ext <<_ACEOF
8596 #line $LINENO "configure"
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8602 /* System header to define __stub macros and hopefully few prototypes,
8603 which can conflict with char connect (); below.
8604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8605 <limits.h> exists even on freestanding compilers. */
8607 # include <limits.h>
8609 # include <assert.h>
8611 /* Override any gcc2 internal prototype to avoid an error. */
8616 /* We use char because int might match the return type of a gcc2
8617 builtin and then its argument prototype would still apply. */
8619 /* The GNU C library defines this for functions which it implements
8620 to always fail with ENOSYS. Some functions are actually named
8621 something starting with __ and the normal name is an alias. */
8622 #if defined (__stub_connect) || defined (__stub___connect)
8625 char (*f) () = connect;
8634 return f != connect;
8639 rm -f conftest.$ac_objext conftest$ac_exeext
8640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8641 (eval $ac_link) 2>&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } &&
8645 { ac_try='test -s conftest$ac_exeext'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
8651 ac_cv_func_connect=yes
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8656 ac_cv_func_connect=no
8658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8660 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8661 echo "${ECHO_T}$ac_cv_func_connect" >&6
8663 if test $ac_cv_func_connect = no; then
8664 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8665 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8666 if test "${ac_cv_lib_socket_connect+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8669 ac_check_lib_save_LIBS=$LIBS
8670 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8671 cat >conftest.$ac_ext <<_ACEOF
8672 #line $LINENO "configure"
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8679 /* Override any gcc2 internal prototype to avoid an error. */
8683 /* We use char because int might match the return type of a gcc2
8684 builtin and then its argument prototype would still apply. */
8694 rm -f conftest.$ac_objext conftest$ac_exeext
8695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8696 (eval $ac_link) 2>&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); } &&
8700 { ac_try='test -s conftest$ac_exeext'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; }; then
8706 ac_cv_lib_socket_connect=yes
8708 echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8711 ac_cv_lib_socket_connect=no
8713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8714 LIBS=$ac_check_lib_save_LIBS
8716 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8717 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8718 if test $ac_cv_lib_socket_connect = yes; then
8719 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8724 # Guillermo Gomez says -lposix is necessary on A/UX.
8725 echo "$as_me:$LINENO: checking for remove" >&5
8726 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8727 if test "${ac_cv_func_remove+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 cat >conftest.$ac_ext <<_ACEOF
8731 #line $LINENO "configure"
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h. */
8737 /* System header to define __stub macros and hopefully few prototypes,
8738 which can conflict with char remove (); below.
8739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8740 <limits.h> exists even on freestanding compilers. */
8742 # include <limits.h>
8744 # include <assert.h>
8746 /* Override any gcc2 internal prototype to avoid an error. */
8751 /* We use char because int might match the return type of a gcc2
8752 builtin and then its argument prototype would still apply. */
8754 /* The GNU C library defines this for functions which it implements
8755 to always fail with ENOSYS. Some functions are actually named
8756 something starting with __ and the normal name is an alias. */
8757 #if defined (__stub_remove) || defined (__stub___remove)
8760 char (*f) () = remove;
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776 (eval $ac_link) 2>&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); } &&
8780 { ac_try='test -s conftest$ac_exeext'
8781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; }; then
8786 ac_cv_func_remove=yes
8788 echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8791 ac_cv_func_remove=no
8793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8795 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8796 echo "${ECHO_T}$ac_cv_func_remove" >&6
8798 if test $ac_cv_func_remove = no; then
8799 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8800 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8801 if test "${ac_cv_lib_posix_remove+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 ac_check_lib_save_LIBS=$LIBS
8805 LIBS="-lposix $LIBS"
8806 cat >conftest.$ac_ext <<_ACEOF
8807 #line $LINENO "configure"
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8814 /* Override any gcc2 internal prototype to avoid an error. */
8818 /* We use char because int might match the return type of a gcc2
8819 builtin and then its argument prototype would still apply. */
8829 rm -f conftest.$ac_objext conftest$ac_exeext
8830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8831 (eval $ac_link) 2>&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } &&
8835 { ac_try='test -s conftest$ac_exeext'
8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; }; then
8841 ac_cv_lib_posix_remove=yes
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8846 ac_cv_lib_posix_remove=no
8848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8849 LIBS=$ac_check_lib_save_LIBS
8851 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8852 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8853 if test $ac_cv_lib_posix_remove = yes; then
8854 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8859 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8860 echo "$as_me:$LINENO: checking for shmat" >&5
8861 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8862 if test "${ac_cv_func_shmat+set}" = set; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 cat >conftest.$ac_ext <<_ACEOF
8866 #line $LINENO "configure"
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h. */
8872 /* System header to define __stub macros and hopefully few prototypes,
8873 which can conflict with char shmat (); below.
8874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8875 <limits.h> exists even on freestanding compilers. */
8877 # include <limits.h>
8879 # include <assert.h>
8881 /* Override any gcc2 internal prototype to avoid an error. */
8886 /* We use char because int might match the return type of a gcc2
8887 builtin and then its argument prototype would still apply. */
8889 /* The GNU C library defines this for functions which it implements
8890 to always fail with ENOSYS. Some functions are actually named
8891 something starting with __ and the normal name is an alias. */
8892 #if defined (__stub_shmat) || defined (__stub___shmat)
8895 char (*f) () = shmat;
8909 rm -f conftest.$ac_objext conftest$ac_exeext
8910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8911 (eval $ac_link) 2>&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); } &&
8915 { ac_try='test -s conftest$ac_exeext'
8916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; }; then
8921 ac_cv_func_shmat=yes
8923 echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.$ac_ext >&5
8928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8930 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8931 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8933 if test $ac_cv_func_shmat = no; then
8934 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8935 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8936 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 ac_check_lib_save_LIBS=$LIBS
8941 cat >conftest.$ac_ext <<_ACEOF
8942 #line $LINENO "configure"
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8949 /* Override any gcc2 internal prototype to avoid an error. */
8953 /* We use char because int might match the return type of a gcc2
8954 builtin and then its argument prototype would still apply. */
8964 rm -f conftest.$ac_objext conftest$ac_exeext
8965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8966 (eval $ac_link) 2>&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } &&
8970 { ac_try='test -s conftest$ac_exeext'
8971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; }; then
8976 ac_cv_lib_ipc_shmat=yes
8978 echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8981 ac_cv_lib_ipc_shmat=no
8983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8984 LIBS=$ac_check_lib_save_LIBS
8986 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8987 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8988 if test $ac_cv_lib_ipc_shmat = yes; then
8989 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8995 # Check for libraries that X11R6 Xt/Xaw programs need.
8996 ac_save_LDFLAGS=$LDFLAGS
8997 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8998 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8999 # check for ICE first), but we must link in the order -lSM -lICE or
9000 # we get undefined symbols. So assume we have SM if we have ICE.
9001 # These have to be linked with before -lX11, unlike the other
9002 # libraries we check for below, so use a different variable.
9003 # John Interrante, Karl Berry
9004 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9005 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9006 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9007 echo $ECHO_N "(cached) $ECHO_C" >&6
9009 ac_check_lib_save_LIBS=$LIBS
9010 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9011 cat >conftest.$ac_ext <<_ACEOF
9012 #line $LINENO "configure"
9015 cat confdefs.h >>conftest.$ac_ext
9016 cat >>conftest.$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9019 /* Override any gcc2 internal prototype to avoid an error. */
9023 /* We use char because int might match the return type of a gcc2
9024 builtin and then its argument prototype would still apply. */
9025 char IceConnectionNumber ();
9029 IceConnectionNumber ();
9034 rm -f conftest.$ac_objext conftest$ac_exeext
9035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9036 (eval $ac_link) 2>&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } &&
9040 { ac_try='test -s conftest$ac_exeext'
9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; }; then
9046 ac_cv_lib_ICE_IceConnectionNumber=yes
9048 echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9051 ac_cv_lib_ICE_IceConnectionNumber=no
9053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9054 LIBS=$ac_check_lib_save_LIBS
9056 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9057 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9058 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9059 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9062 LDFLAGS=$ac_save_LDFLAGS
9114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9116 echo "$as_me:$LINENO: checking for $ac_header" >&5
9117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9124 # Is the header compilable?
9125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9127 cat >conftest.$ac_ext <<_ACEOF
9128 #line $LINENO "configure"
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h. */
9134 $ac_includes_default
9135 #include <$ac_header>
9137 rm -f conftest.$ac_objext
9138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9139 (eval $ac_compile) 2>&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } &&
9143 { ac_try='test -s conftest.$ac_objext'
9144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }; }; then
9149 ac_header_compiler=yes
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9154 ac_header_compiler=no
9156 rm -f conftest.$ac_objext conftest.$ac_ext
9157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9158 echo "${ECHO_T}$ac_header_compiler" >&6
9160 # Is the header present?
9161 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9163 cat >conftest.$ac_ext <<_ACEOF
9164 #line $LINENO "configure"
9167 cat confdefs.h >>conftest.$ac_ext
9168 cat >>conftest.$ac_ext <<_ACEOF
9169 /* end confdefs.h. */
9170 #include <$ac_header>
9172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9175 grep -v '^ *+' conftest.er1 >conftest.err
9177 cat conftest.err >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } >/dev/null; then
9180 if test -s conftest.err; then
9181 ac_cpp_err=$ac_c_preproc_warn_flag
9188 if test -z "$ac_cpp_err"; then
9189 ac_header_preproc=yes
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9194 ac_header_preproc=no
9196 rm -f conftest.err conftest.$ac_ext
9197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9198 echo "${ECHO_T}$ac_header_preproc" >&6
9200 # So? What about this header?
9201 case $ac_header_compiler:$ac_header_preproc in
9203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9209 ## ------------------------------------ ##
9210 ## Report this to bug-autoconf@gnu.org. ##
9211 ## ------------------------------------ ##
9214 sed "s/^/$as_me: WARNING: /" >&2
9217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9225 ## ------------------------------------ ##
9226 ## Report this to bug-autoconf@gnu.org. ##
9227 ## ------------------------------------ ##
9230 sed "s/^/$as_me: WARNING: /" >&2
9233 echo "$as_me:$LINENO: checking for $ac_header" >&5
9234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 eval "$as_ac_Header=$ac_header_preproc"
9240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9245 cat >>confdefs.h <<_ACEOF
9246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9253 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9254 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9255 if test "${ac_cv_header_stdc+set}" = set; then
9256 echo $ECHO_N "(cached) $ECHO_C" >&6
9258 cat >conftest.$ac_ext <<_ACEOF
9259 #line $LINENO "configure"
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h. */
9278 rm -f conftest.$ac_objext
9279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9280 (eval $ac_compile) 2>&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } &&
9284 { ac_try='test -s conftest.$ac_objext'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; }; then
9290 ac_cv_header_stdc=yes
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9295 ac_cv_header_stdc=no
9297 rm -f conftest.$ac_objext conftest.$ac_ext
9299 if test $ac_cv_header_stdc = yes; then
9300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9301 cat >conftest.$ac_ext <<_ACEOF
9302 #line $LINENO "configure"
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9312 $EGREP "memchr" >/dev/null 2>&1; then
9315 ac_cv_header_stdc=no
9321 if test $ac_cv_header_stdc = yes; then
9322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9323 cat >conftest.$ac_ext <<_ACEOF
9324 #line $LINENO "configure"
9327 cat confdefs.h >>conftest.$ac_ext
9328 cat >>conftest.$ac_ext <<_ACEOF
9329 /* end confdefs.h. */
9333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9334 $EGREP "free" >/dev/null 2>&1; then
9337 ac_cv_header_stdc=no
9343 if test $ac_cv_header_stdc = yes; then
9344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9345 if test "$cross_compiling" = yes; then
9348 cat >conftest.$ac_ext <<_ACEOF
9349 #line $LINENO "configure"
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h. */
9356 #if ((' ' & 0x0FF) == 0x020)
9357 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9358 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9360 # define ISLOWER(c) \
9361 (('a' <= (c) && (c) <= 'i') \
9362 || ('j' <= (c) && (c) <= 'r') \
9363 || ('s' <= (c) && (c) <= 'z'))
9364 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9372 for (i = 0; i < 256; i++)
9373 if (XOR (islower (i), ISLOWER (i))
9374 || toupper (i) != TOUPPER (i))
9379 rm -f conftest$ac_exeext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9381 (eval $ac_link) 2>&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); }; }; then
9392 echo "$as_me: program exited with status $ac_status" >&5
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9397 ac_cv_header_stdc=no
9399 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9403 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9404 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9405 if test $ac_cv_header_stdc = yes; then
9407 cat >>confdefs.h <<\_ACEOF
9408 #define STDC_HEADERS 1
9413 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9414 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9415 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 cat >conftest.$ac_ext <<_ACEOF
9419 #line $LINENO "configure"
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9425 #include <sys/types.h>
9429 return makedev(0, 0);
9434 rm -f conftest.$ac_objext conftest$ac_exeext
9435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9436 (eval $ac_link) 2>&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } &&
9440 { ac_try='test -s conftest$ac_exeext'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; }; then
9446 ac_cv_header_sys_types_h_makedev=yes
9448 echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9451 ac_cv_header_sys_types_h_makedev=no
9453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9456 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9457 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9459 if test $ac_cv_header_sys_types_h_makedev = no; then
9460 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9461 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9462 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9463 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9464 echo $ECHO_N "(cached) $ECHO_C" >&6
9466 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9467 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9469 # Is the header compilable?
9470 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9471 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9472 cat >conftest.$ac_ext <<_ACEOF
9473 #line $LINENO "configure"
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9479 $ac_includes_default
9480 #include <sys/mkdev.h>
9482 rm -f conftest.$ac_objext
9483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9484 (eval $ac_compile) 2>&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } &&
9488 { ac_try='test -s conftest.$ac_objext'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; }; then
9494 ac_header_compiler=yes
9496 echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9499 ac_header_compiler=no
9501 rm -f conftest.$ac_objext conftest.$ac_ext
9502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9503 echo "${ECHO_T}$ac_header_compiler" >&6
9505 # Is the header present?
9506 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9507 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9508 cat >conftest.$ac_ext <<_ACEOF
9509 #line $LINENO "configure"
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9515 #include <sys/mkdev.h>
9517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9520 grep -v '^ *+' conftest.er1 >conftest.err
9522 cat conftest.err >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } >/dev/null; then
9525 if test -s conftest.err; then
9526 ac_cpp_err=$ac_c_preproc_warn_flag
9533 if test -z "$ac_cpp_err"; then
9534 ac_header_preproc=yes
9536 echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.$ac_ext >&5
9539 ac_header_preproc=no
9541 rm -f conftest.err conftest.$ac_ext
9542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9543 echo "${ECHO_T}$ac_header_preproc" >&6
9545 # So? What about this header?
9546 case $ac_header_compiler:$ac_header_preproc in
9548 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9549 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9550 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9551 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9554 ## ------------------------------------ ##
9555 ## Report this to bug-autoconf@gnu.org. ##
9556 ## ------------------------------------ ##
9559 sed "s/^/$as_me: WARNING: /" >&2
9562 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9563 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9564 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9565 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9566 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9567 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9570 ## ------------------------------------ ##
9571 ## Report this to bug-autoconf@gnu.org. ##
9572 ## ------------------------------------ ##
9575 sed "s/^/$as_me: WARNING: /" >&2
9578 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9579 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9580 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9583 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9585 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9586 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9589 if test $ac_cv_header_sys_mkdev_h = yes; then
9591 cat >>confdefs.h <<\_ACEOF
9592 #define MAJOR_IN_MKDEV 1
9599 if test $ac_cv_header_sys_mkdev_h = no; then
9600 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9601 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9602 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9603 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9606 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9607 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9609 # Is the header compilable?
9610 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9611 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9612 cat >conftest.$ac_ext <<_ACEOF
9613 #line $LINENO "configure"
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9619 $ac_includes_default
9620 #include <sys/sysmacros.h>
9622 rm -f conftest.$ac_objext
9623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9624 (eval $ac_compile) 2>&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } &&
9628 { ac_try='test -s conftest.$ac_objext'
9629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; }; then
9634 ac_header_compiler=yes
9636 echo "$as_me: failed program was:" >&5
9637 sed 's/^/| /' conftest.$ac_ext >&5
9639 ac_header_compiler=no
9641 rm -f conftest.$ac_objext conftest.$ac_ext
9642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9643 echo "${ECHO_T}$ac_header_compiler" >&6
9645 # Is the header present?
9646 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9647 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9648 cat >conftest.$ac_ext <<_ACEOF
9649 #line $LINENO "configure"
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9655 #include <sys/sysmacros.h>
9657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9660 grep -v '^ *+' conftest.er1 >conftest.err
9662 cat conftest.err >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } >/dev/null; then
9665 if test -s conftest.err; then
9666 ac_cpp_err=$ac_c_preproc_warn_flag
9673 if test -z "$ac_cpp_err"; then
9674 ac_header_preproc=yes
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9679 ac_header_preproc=no
9681 rm -f conftest.err conftest.$ac_ext
9682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9683 echo "${ECHO_T}$ac_header_preproc" >&6
9685 # So? What about this header?
9686 case $ac_header_compiler:$ac_header_preproc in
9688 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9689 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9690 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9691 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9694 ## ------------------------------------ ##
9695 ## Report this to bug-autoconf@gnu.org. ##
9696 ## ------------------------------------ ##
9699 sed "s/^/$as_me: WARNING: /" >&2
9702 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9703 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9704 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9705 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9706 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9707 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9710 ## ------------------------------------ ##
9711 ## Report this to bug-autoconf@gnu.org. ##
9712 ## ------------------------------------ ##
9715 sed "s/^/$as_me: WARNING: /" >&2
9718 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9719 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9720 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9725 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9726 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9729 if test $ac_cv_header_sys_sysmacros_h = yes; then
9731 cat >>confdefs.h <<\_ACEOF
9732 #define MAJOR_IN_SYSMACROS 1
9747 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9748 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9749 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9750 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 cat >conftest.$ac_ext <<_ACEOF
9755 #line $LINENO "configure"
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9761 #include <sys/types.h>
9773 rm -f conftest.$ac_objext
9774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9775 (eval $ac_compile) 2>&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } &&
9779 { ac_try='test -s conftest.$ac_objext'
9780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); }; }; then
9785 eval "$as_ac_Header=yes"
9787 echo "$as_me: failed program was:" >&5
9788 sed 's/^/| /' conftest.$ac_ext >&5
9790 eval "$as_ac_Header=no"
9792 rm -f conftest.$ac_objext conftest.$ac_ext
9794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9797 cat >>confdefs.h <<_ACEOF
9798 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9801 ac_header_dirent=$ac_hdr; break
9805 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9806 if test $ac_header_dirent = dirent.h; then
9807 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9808 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9809 if test "${ac_cv_search_opendir+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 ac_func_search_save_LIBS=$LIBS
9813 ac_cv_search_opendir=no
9814 cat >conftest.$ac_ext <<_ACEOF
9815 #line $LINENO "configure"
9818 cat confdefs.h >>conftest.$ac_ext
9819 cat >>conftest.$ac_ext <<_ACEOF
9820 /* end confdefs.h. */
9822 /* Override any gcc2 internal prototype to avoid an error. */
9826 /* We use char because int might match the return type of a gcc2
9827 builtin and then its argument prototype would still apply. */
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839 (eval $ac_link) 2>&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } &&
9843 { ac_try='test -s conftest$ac_exeext'
9844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; }; then
9849 ac_cv_search_opendir="none required"
9851 echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9856 if test "$ac_cv_search_opendir" = no; then
9857 for ac_lib in dir; do
9858 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9859 cat >conftest.$ac_ext <<_ACEOF
9860 #line $LINENO "configure"
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9867 /* Override any gcc2 internal prototype to avoid an error. */
9871 /* We use char because int might match the return type of a gcc2
9872 builtin and then its argument prototype would still apply. */
9882 rm -f conftest.$ac_objext conftest$ac_exeext
9883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9884 (eval $ac_link) 2>&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } &&
9888 { ac_try='test -s conftest$ac_exeext'
9889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; }; then
9894 ac_cv_search_opendir="-l$ac_lib"
9897 echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.$ac_ext >&5
9901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9904 LIBS=$ac_func_search_save_LIBS
9906 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9907 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9908 if test "$ac_cv_search_opendir" != no; then
9909 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9914 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9915 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9916 if test "${ac_cv_search_opendir+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 ac_func_search_save_LIBS=$LIBS
9920 ac_cv_search_opendir=no
9921 cat >conftest.$ac_ext <<_ACEOF
9922 #line $LINENO "configure"
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h. */
9929 /* Override any gcc2 internal prototype to avoid an error. */
9933 /* We use char because int might match the return type of a gcc2
9934 builtin and then its argument prototype would still apply. */
9944 rm -f conftest.$ac_objext conftest$ac_exeext
9945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9946 (eval $ac_link) 2>&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } &&
9950 { ac_try='test -s conftest$ac_exeext'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; }; then
9956 ac_cv_search_opendir="none required"
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9963 if test "$ac_cv_search_opendir" = no; then
9965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9966 cat >conftest.$ac_ext <<_ACEOF
9967 #line $LINENO "configure"
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9974 /* Override any gcc2 internal prototype to avoid an error. */
9978 /* We use char because int might match the return type of a gcc2
9979 builtin and then its argument prototype would still apply. */
9989 rm -f conftest.$ac_objext conftest$ac_exeext
9990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9991 (eval $ac_link) 2>&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } &&
9995 { ac_try='test -s conftest$ac_exeext'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; }; then
10001 ac_cv_search_opendir="-l$ac_lib"
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10011 LIBS=$ac_func_search_save_LIBS
10013 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10014 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10015 if test "$ac_cv_search_opendir" != no; then
10016 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10022 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10023 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10024 if test "${ac_cv_header_stat_broken+set}" = set; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 cat >conftest.$ac_ext <<_ACEOF
10028 #line $LINENO "configure"
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10034 #include <sys/types.h>
10035 #include <sys/stat.h>
10037 #if defined(S_ISBLK) && defined(S_IFDIR)
10038 # if S_ISBLK (S_IFDIR)
10043 #if defined(S_ISBLK) && defined(S_IFCHR)
10044 # if S_ISBLK (S_IFCHR)
10049 #if defined(S_ISLNK) && defined(S_IFREG)
10050 # if S_ISLNK (S_IFREG)
10055 #if defined(S_ISSOCK) && defined(S_IFREG)
10056 # if S_ISSOCK (S_IFREG)
10062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10063 $EGREP "You lose" >/dev/null 2>&1; then
10064 ac_cv_header_stat_broken=yes
10066 ac_cv_header_stat_broken=no
10071 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10072 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10073 if test $ac_cv_header_stat_broken = yes; then
10075 cat >>confdefs.h <<\_ACEOF
10076 #define STAT_MACROS_BROKEN 1
10081 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10082 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10083 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 cat >conftest.$ac_ext <<_ACEOF
10087 #line $LINENO "configure"
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10093 #include <sys/types.h>
10094 #include <sys/wait.h>
10095 #ifndef WEXITSTATUS
10096 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10099 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10107 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10112 rm -f conftest.$ac_objext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10114 (eval $ac_compile) 2>&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } &&
10118 { ac_try='test -s conftest.$ac_objext'
10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; }; then
10124 ac_cv_header_sys_wait_h=yes
10126 echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10129 ac_cv_header_sys_wait_h=no
10131 rm -f conftest.$ac_objext conftest.$ac_ext
10133 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10134 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10135 if test $ac_cv_header_sys_wait_h = yes; then
10137 cat >>confdefs.h <<\_ACEOF
10138 #define HAVE_SYS_WAIT_H 1
10143 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10144 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10145 if test "${ac_cv_header_time+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 cat >conftest.$ac_ext <<_ACEOF
10149 #line $LINENO "configure"
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h. */
10155 #include <sys/types.h>
10156 #include <sys/time.h>
10162 if ((struct tm *) 0)
10168 rm -f conftest.$ac_objext
10169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10170 (eval $ac_compile) 2>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try='test -s conftest.$ac_objext'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
10180 ac_cv_header_time=yes
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10185 ac_cv_header_time=no
10187 rm -f conftest.$ac_objext conftest.$ac_ext
10189 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10190 echo "${ECHO_T}$ac_cv_header_time" >&6
10191 if test $ac_cv_header_time = yes; then
10193 cat >>confdefs.h <<\_ACEOF
10194 #define TIME_WITH_SYS_TIME 1
10200 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10201 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10202 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 cat >conftest.$ac_ext <<_ACEOF
10206 #line $LINENO "configure"
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10212 $ac_includes_default
10216 static struct stat ac_aggr;
10217 if (ac_aggr.st_blksize)
10223 rm -f conftest.$ac_objext
10224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10225 (eval $ac_compile) 2>&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); } &&
10229 { ac_try='test -s conftest.$ac_objext'
10230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10231 (eval $ac_try) 2>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; }; then
10235 ac_cv_member_struct_stat_st_blksize=yes
10237 echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10240 cat >conftest.$ac_ext <<_ACEOF
10241 #line $LINENO "configure"
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h. */
10247 $ac_includes_default
10251 static struct stat ac_aggr;
10252 if (sizeof ac_aggr.st_blksize)
10258 rm -f conftest.$ac_objext
10259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10260 (eval $ac_compile) 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } &&
10264 { ac_try='test -s conftest.$ac_objext'
10265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266 (eval $ac_try) 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10270 ac_cv_member_struct_stat_st_blksize=yes
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10275 ac_cv_member_struct_stat_st_blksize=no
10277 rm -f conftest.$ac_objext conftest.$ac_ext
10279 rm -f conftest.$ac_objext conftest.$ac_ext
10281 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10282 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10283 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10285 cat >>confdefs.h <<_ACEOF
10286 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10290 cat >>confdefs.h <<\_ACEOF
10291 #define HAVE_ST_BLKSIZE 1
10297 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10298 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10299 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 cat >conftest.$ac_ext <<_ACEOF
10303 #line $LINENO "configure"
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10309 $ac_includes_default
10313 static struct stat ac_aggr;
10314 if (ac_aggr.st_blocks)
10320 rm -f conftest.$ac_objext
10321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10322 (eval $ac_compile) 2>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } &&
10326 { ac_try='test -s conftest.$ac_objext'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; }; then
10332 ac_cv_member_struct_stat_st_blocks=yes
10334 echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.$ac_ext >&5
10337 cat >conftest.$ac_ext <<_ACEOF
10338 #line $LINENO "configure"
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h. */
10344 $ac_includes_default
10348 static struct stat ac_aggr;
10349 if (sizeof ac_aggr.st_blocks)
10355 rm -f conftest.$ac_objext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357 (eval $ac_compile) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } &&
10361 { ac_try='test -s conftest.$ac_objext'
10362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; }; then
10367 ac_cv_member_struct_stat_st_blocks=yes
10369 echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10372 ac_cv_member_struct_stat_st_blocks=no
10374 rm -f conftest.$ac_objext conftest.$ac_ext
10376 rm -f conftest.$ac_objext conftest.$ac_ext
10378 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10379 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10380 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10382 cat >>confdefs.h <<_ACEOF
10383 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10387 cat >>confdefs.h <<\_ACEOF
10388 #define HAVE_ST_BLOCKS 1
10392 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10396 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10397 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10398 if test "${ac_cv_struct_tm+set}" = set; then
10399 echo $ECHO_N "(cached) $ECHO_C" >&6
10401 cat >conftest.$ac_ext <<_ACEOF
10402 #line $LINENO "configure"
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10408 #include <sys/types.h>
10414 struct tm *tp; tp->tm_sec;
10419 rm -f conftest.$ac_objext
10420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10421 (eval $ac_compile) 2>&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } &&
10425 { ac_try='test -s conftest.$ac_objext'
10426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427 (eval $ac_try) 2>&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; }; then
10431 ac_cv_struct_tm=time.h
10433 echo "$as_me: failed program was:" >&5
10434 sed 's/^/| /' conftest.$ac_ext >&5
10436 ac_cv_struct_tm=sys/time.h
10438 rm -f conftest.$ac_objext conftest.$ac_ext
10440 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10441 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10442 if test $ac_cv_struct_tm = sys/time.h; then
10444 cat >>confdefs.h <<\_ACEOF
10445 #define TM_IN_SYS_TIME 1
10450 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10451 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10452 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10455 cat >conftest.$ac_ext <<_ACEOF
10456 #line $LINENO "configure"
10459 cat confdefs.h >>conftest.$ac_ext
10460 cat >>conftest.$ac_ext <<_ACEOF
10461 /* end confdefs.h. */
10462 #include <sys/types.h>
10463 #include <$ac_cv_struct_tm>
10469 static struct tm ac_aggr;
10470 if (ac_aggr.tm_zone)
10476 rm -f conftest.$ac_objext
10477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10478 (eval $ac_compile) 2>&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } &&
10482 { ac_try='test -s conftest.$ac_objext'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10488 ac_cv_member_struct_tm_tm_zone=yes
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10493 cat >conftest.$ac_ext <<_ACEOF
10494 #line $LINENO "configure"
10497 cat confdefs.h >>conftest.$ac_ext
10498 cat >>conftest.$ac_ext <<_ACEOF
10499 /* end confdefs.h. */
10500 #include <sys/types.h>
10501 #include <$ac_cv_struct_tm>
10507 static struct tm ac_aggr;
10508 if (sizeof ac_aggr.tm_zone)
10514 rm -f conftest.$ac_objext
10515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10516 (eval $ac_compile) 2>&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); } &&
10520 { ac_try='test -s conftest.$ac_objext'
10521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522 (eval $ac_try) 2>&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); }; }; then
10526 ac_cv_member_struct_tm_tm_zone=yes
10528 echo "$as_me: failed program was:" >&5
10529 sed 's/^/| /' conftest.$ac_ext >&5
10531 ac_cv_member_struct_tm_tm_zone=no
10533 rm -f conftest.$ac_objext conftest.$ac_ext
10535 rm -f conftest.$ac_objext conftest.$ac_ext
10537 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10538 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10539 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10541 cat >>confdefs.h <<_ACEOF
10542 #define HAVE_STRUCT_TM_TM_ZONE 1
10548 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10550 cat >>confdefs.h <<\_ACEOF
10551 #define HAVE_TM_ZONE 1
10555 echo "$as_me:$LINENO: checking for tzname" >&5
10556 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10557 if test "${ac_cv_var_tzname+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10560 cat >conftest.$ac_ext <<_ACEOF
10561 #line $LINENO "configure"
10564 cat confdefs.h >>conftest.$ac_ext
10565 cat >>conftest.$ac_ext <<_ACEOF
10566 /* end confdefs.h. */
10568 #ifndef tzname /* For SGI. */
10569 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10580 rm -f conftest.$ac_objext conftest$ac_exeext
10581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10582 (eval $ac_link) 2>&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } &&
10586 { ac_try='test -s conftest$ac_exeext'
10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 ac_cv_var_tzname=yes
10594 echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.$ac_ext >&5
10597 ac_cv_var_tzname=no
10599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10601 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10602 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10603 if test $ac_cv_var_tzname = yes; then
10605 cat >>confdefs.h <<\_ACEOF
10606 #define HAVE_TZNAME 1
10613 echo "$as_me:$LINENO: checking for utime.h" >&5
10614 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10615 if test "${ba_cv_header_utime_h+set}" = set; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 cat >conftest.$ac_ext <<_ACEOF
10619 #line $LINENO "configure"
10622 cat confdefs.h >>conftest.$ac_ext
10623 cat >>conftest.$ac_ext <<_ACEOF
10624 /* end confdefs.h. */
10626 #include <sys/types.h>
10636 rm -f conftest.$ac_objext
10637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10638 (eval $ac_compile) 2>&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } &&
10642 { ac_try='test -s conftest.$ac_objext'
10643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644 (eval $ac_try) 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; }; then
10648 ba_cv_header_utime_h=yes
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10653 ba_cv_header_utime_h=no
10655 rm -f conftest.$ac_objext conftest.$ac_ext
10657 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10658 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10659 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10660 #define HAVE_UTIME_H 1
10664 echo "$as_me:$LINENO: checking for socklen_t" >&5
10665 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10666 if test "${ba_cv_header_socklen_t+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10669 cat >conftest.$ac_ext <<_ACEOF
10670 #line $LINENO "configure"
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h. */
10677 #include <sys/types.h>
10678 #include <sys/socket.h>
10687 rm -f conftest.$ac_objext
10688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10689 (eval $ac_compile) 2>&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } &&
10693 { ac_try='test -s conftest.$ac_objext'
10694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695 (eval $ac_try) 2>&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; }; then
10699 ba_cv_header_socklen_t=yes
10701 echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10704 ba_cv_header_socklen_t=no
10706 rm -f conftest.$ac_objext conftest.$ac_ext
10708 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10709 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10710 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10711 #define HAVE_SOCKLEN_T 1
10715 echo "$as_me:$LINENO: checking for bigendian" >&5
10716 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10717 if test "${ba_cv_bigendian+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10720 if test "$cross_compiling" = yes; then
10723 cat >conftest.$ac_ext <<_ACEOF
10724 #line $LINENO "configure"
10727 cat confdefs.h >>conftest.$ac_ext
10728 cat >>conftest.$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10730 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10732 rm -f conftest$ac_exeext
10733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10734 (eval $ac_link) 2>&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739 (eval $ac_try) 2>&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; }; then
10743 ba_cv_bigendian=yes
10745 echo "$as_me: program exited with status $ac_status" >&5
10746 echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10749 ( exit $ac_status )
10752 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10755 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10756 echo "${ECHO_T}$ba_cv_bigendian" >&6
10757 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10758 #define HAVE_BIGENDIAN 1
10763 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10764 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10765 if test "${ac_cv_c_const+set}" = set; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 cat >conftest.$ac_ext <<_ACEOF
10769 #line $LINENO "configure"
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10779 /* FIXME: Include the comments suggested by Paul. */
10780 #ifndef __cplusplus
10781 /* Ultrix mips cc rejects this. */
10782 typedef int charset[2];
10784 /* SunOS 4.1.1 cc rejects this. */
10785 char const *const *ccp;
10787 /* NEC SVR4.0.2 mips cc rejects this. */
10788 struct point {int x, y;};
10789 static struct point const zero = {0,0};
10790 /* AIX XL C 1.02.0.0 rejects this.
10791 It does not let you subtract one const X* pointer from another in
10792 an arm of an if-expression whose if-part is not a constant
10794 const char *g = "string";
10795 ccp = &g + (g ? g-g : 0);
10796 /* HPUX 7.0 cc rejects these. */
10799 ccp = (char const *const *) p;
10800 { /* SCO 3.2v4 cc rejects this. */
10802 char const *s = 0 ? (char *) 0 : (char const *) 0;
10806 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10807 int x[] = {25, 17};
10808 const int *foo = &x[0];
10811 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10812 typedef const int *iptr;
10816 { /* AIX XL C 1.02.0.0 rejects this saying
10817 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10818 struct s { int j; const int *ap[3]; };
10819 struct s *b; b->j = 5;
10821 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10822 const int foo = 10;
10830 rm -f conftest.$ac_objext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10832 (eval $ac_compile) 2>&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } &&
10836 { ac_try='test -s conftest.$ac_objext'
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; }; then
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10849 rm -f conftest.$ac_objext conftest.$ac_ext
10851 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10852 echo "${ECHO_T}$ac_cv_c_const" >&6
10853 if test $ac_cv_c_const = no; then
10855 cat >>confdefs.h <<\_ACEOF
10863 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10864 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10866 # The order of these tests is important.
10867 cat >conftest.$ac_ext <<_ACEOF
10868 #line $LINENO "configure"
10871 cat confdefs.h >>conftest.$ac_ext
10872 cat >>conftest.$ac_ext <<_ACEOF
10873 /* end confdefs.h. */
10874 #include <sys/statvfs.h>
10875 #include <sys/fstyp.h>
10877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10880 grep -v '^ *+' conftest.er1 >conftest.err
10882 cat conftest.err >&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } >/dev/null; then
10885 if test -s conftest.err; then
10886 ac_cpp_err=$ac_c_preproc_warn_flag
10893 if test -z "$ac_cpp_err"; then
10894 cat >>confdefs.h <<\_ACEOF
10895 #define FSTYPE_STATVFS 1
10899 echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10904 rm -f conftest.err conftest.$ac_ext
10905 if test $fstype = no; then
10906 cat >conftest.$ac_ext <<_ACEOF
10907 #line $LINENO "configure"
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10913 #include <sys/statfs.h>
10914 #include <sys/fstyp.h>
10916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10919 grep -v '^ *+' conftest.er1 >conftest.err
10921 cat conftest.err >&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } >/dev/null; then
10924 if test -s conftest.err; then
10925 ac_cpp_err=$ac_c_preproc_warn_flag
10932 if test -z "$ac_cpp_err"; then
10933 cat >>confdefs.h <<\_ACEOF
10934 #define FSTYPE_USG_STATFS 1
10938 echo "$as_me: failed program was:" >&5
10939 sed 's/^/| /' conftest.$ac_ext >&5
10943 rm -f conftest.err conftest.$ac_ext
10945 if test $fstype = no; then
10946 cat >conftest.$ac_ext <<_ACEOF
10947 #line $LINENO "configure"
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h. */
10953 #include <sys/statfs.h>
10954 #include <sys/vmount.h>
10956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10959 grep -v '^ *+' conftest.er1 >conftest.err
10961 cat conftest.err >&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } >/dev/null; then
10964 if test -s conftest.err; then
10965 ac_cpp_err=$ac_c_preproc_warn_flag
10972 if test -z "$ac_cpp_err"; then
10973 cat >>confdefs.h <<\_ACEOF
10974 #define FSTYPE_AIX_STATFS 1
10978 echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10983 rm -f conftest.err conftest.$ac_ext
10985 if test $fstype = no; then
10986 cat >conftest.$ac_ext <<_ACEOF
10987 #line $LINENO "configure"
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h. */
10993 #include <mntent.h>
10995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10998 grep -v '^ *+' conftest.er1 >conftest.err
11000 cat conftest.err >&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } >/dev/null; then
11003 if test -s conftest.err; then
11004 ac_cpp_err=$ac_c_preproc_warn_flag
11011 if test -z "$ac_cpp_err"; then
11012 cat >>confdefs.h <<\_ACEOF
11013 #define FSTYPE_MNTENT 1
11017 echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11022 rm -f conftest.err conftest.$ac_ext
11024 if test $fstype = no; then
11025 cat >conftest.$ac_ext <<_ACEOF
11026 #line $LINENO "configure"
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
11032 #include <sys/mount.h>
11035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11036 $EGREP "f_type;" >/dev/null 2>&1; then
11037 cat >>confdefs.h <<\_ACEOF
11038 #define FSTYPE_STATFS 1
11045 if test $fstype = no; then
11046 cat >conftest.$ac_ext <<_ACEOF
11047 #line $LINENO "configure"
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h. */
11053 #include <sys/mount.h>
11054 #include <sys/fs_types.h>
11056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11059 grep -v '^ *+' conftest.er1 >conftest.err
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } >/dev/null; then
11064 if test -s conftest.err; then
11065 ac_cpp_err=$ac_c_preproc_warn_flag
11072 if test -z "$ac_cpp_err"; then
11073 cat >>confdefs.h <<\_ACEOF
11074 #define FSTYPE_GETMNT 1
11078 echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.$ac_ext >&5
11083 rm -f conftest.err conftest.$ac_ext
11085 echo "$as_me:$LINENO: result: $fstype" >&5
11086 echo "${ECHO_T}$fstype" >&6
11088 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11089 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11090 if test "${ac_cv_type_signal+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 cat >conftest.$ac_ext <<_ACEOF
11094 #line $LINENO "configure"
11097 cat confdefs.h >>conftest.$ac_ext
11098 cat >>conftest.$ac_ext <<_ACEOF
11099 /* end confdefs.h. */
11100 #include <sys/types.h>
11101 #include <signal.h>
11106 extern "C" void (*signal (int, void (*)(int)))(int);
11108 void (*signal ()) ();
11119 rm -f conftest.$ac_objext
11120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11121 (eval $ac_compile) 2>&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } &&
11125 { ac_try='test -s conftest.$ac_objext'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
11131 ac_cv_type_signal=void
11133 echo "$as_me: failed program was:" >&5
11134 sed 's/^/| /' conftest.$ac_ext >&5
11136 ac_cv_type_signal=int
11138 rm -f conftest.$ac_objext conftest.$ac_ext
11140 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11141 echo "${ECHO_T}$ac_cv_type_signal" >&6
11143 cat >>confdefs.h <<_ACEOF
11144 #define RETSIGTYPE $ac_cv_type_signal
11149 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11150 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11151 if test "${bash_cv_signal_vintage+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 cat >conftest.$ac_ext <<_ACEOF
11156 #line $LINENO "configure"
11159 cat confdefs.h >>conftest.$ac_ext
11160 cat >>conftest.$ac_ext <<_ACEOF
11161 /* end confdefs.h. */
11162 #include <signal.h>
11168 struct sigaction sa;
11169 sigemptyset(&ss); sigsuspend(&ss);
11170 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11171 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11177 rm -f conftest.$ac_objext conftest$ac_exeext
11178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11179 (eval $ac_link) 2>&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try='test -s conftest$ac_exeext'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 bash_cv_signal_vintage=posix
11191 echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11195 cat >conftest.$ac_ext <<_ACEOF
11196 #line $LINENO "configure"
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h. */
11202 #include <signal.h>
11207 int mask = sigmask(SIGINT);
11208 sigsetmask(mask); sigblock(mask); sigpause(mask);
11214 rm -f conftest.$ac_objext conftest$ac_exeext
11215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11216 (eval $ac_link) 2>&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } &&
11220 { ac_try='test -s conftest$ac_exeext'
11221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222 (eval $ac_try) 2>&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; }; then
11226 bash_cv_signal_vintage=4.2bsd
11228 echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11232 cat >conftest.$ac_ext <<_ACEOF
11233 #line $LINENO "configure"
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h. */
11240 #include <signal.h>
11241 RETSIGTYPE foo() { }
11246 int mask = sigmask(SIGINT);
11247 sigset(SIGINT, foo); sigrelse(SIGINT);
11248 sighold(SIGINT); sigpause(SIGINT);
11254 rm -f conftest.$ac_objext conftest$ac_exeext
11255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11256 (eval $ac_link) 2>&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } &&
11260 { ac_try='test -s conftest$ac_exeext'
11261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262 (eval $ac_try) 2>&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; }; then
11266 bash_cv_signal_vintage=svr3
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11271 bash_cv_signal_vintage=v7
11274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11284 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11285 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11286 if test "$bash_cv_signal_vintage" = posix; then
11287 cat >>confdefs.h <<\_ACEOF
11288 #define HAVE_POSIX_SIGNALS 1
11291 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11292 cat >>confdefs.h <<\_ACEOF
11293 #define HAVE_BSD_SIGNALS 1
11296 elif test "$bash_cv_signal_vintage" = svr3; then
11297 cat >>confdefs.h <<\_ACEOF
11298 #define HAVE_USG_SIGHOLD 1
11303 echo "$as_me:$LINENO: checking for mode_t" >&5
11304 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11305 if test "${ac_cv_type_mode_t+set}" = set; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 cat >conftest.$ac_ext <<_ACEOF
11309 #line $LINENO "configure"
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 $ac_includes_default
11321 if (sizeof (mode_t))
11327 rm -f conftest.$ac_objext
11328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11329 (eval $ac_compile) 2>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } &&
11333 { ac_try='test -s conftest.$ac_objext'
11334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; }; then
11339 ac_cv_type_mode_t=yes
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11344 ac_cv_type_mode_t=no
11346 rm -f conftest.$ac_objext conftest.$ac_ext
11348 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11349 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11350 if test $ac_cv_type_mode_t = yes; then
11354 cat >>confdefs.h <<_ACEOF
11360 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11361 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11362 if test "${ac_cv_type_uid_t+set}" = set; then
11363 echo $ECHO_N "(cached) $ECHO_C" >&6
11365 cat >conftest.$ac_ext <<_ACEOF
11366 #line $LINENO "configure"
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 #include <sys/types.h>
11375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11376 $EGREP "uid_t" >/dev/null 2>&1; then
11377 ac_cv_type_uid_t=yes
11379 ac_cv_type_uid_t=no
11384 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11385 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11386 if test $ac_cv_type_uid_t = no; then
11388 cat >>confdefs.h <<\_ACEOF
11393 cat >>confdefs.h <<\_ACEOF
11399 echo "$as_me:$LINENO: checking for size_t" >&5
11400 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11401 if test "${ac_cv_type_size_t+set}" = set; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 cat >conftest.$ac_ext <<_ACEOF
11405 #line $LINENO "configure"
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h. */
11411 $ac_includes_default
11417 if (sizeof (size_t))
11423 rm -f conftest.$ac_objext
11424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11425 (eval $ac_compile) 2>&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } &&
11429 { ac_try='test -s conftest.$ac_objext'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 ac_cv_type_size_t=yes
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11440 ac_cv_type_size_t=no
11442 rm -f conftest.$ac_objext conftest.$ac_ext
11444 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11445 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11446 if test $ac_cv_type_size_t = yes; then
11450 cat >>confdefs.h <<_ACEOF
11451 #define size_t unsigned
11456 echo "$as_me:$LINENO: checking for pid_t" >&5
11457 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11458 if test "${ac_cv_type_pid_t+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 cat >conftest.$ac_ext <<_ACEOF
11462 #line $LINENO "configure"
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11468 $ac_includes_default
11474 if (sizeof (pid_t))
11480 rm -f conftest.$ac_objext
11481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11482 (eval $ac_compile) 2>&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try='test -s conftest.$ac_objext'
11487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488 (eval $ac_try) 2>&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; }; then
11492 ac_cv_type_pid_t=yes
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11497 ac_cv_type_pid_t=no
11499 rm -f conftest.$ac_objext conftest.$ac_ext
11501 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11502 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11503 if test $ac_cv_type_pid_t = yes; then
11507 cat >>confdefs.h <<_ACEOF
11513 echo "$as_me:$LINENO: checking for off_t" >&5
11514 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11515 if test "${ac_cv_type_off_t+set}" = set; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11518 cat >conftest.$ac_ext <<_ACEOF
11519 #line $LINENO "configure"
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h. */
11525 $ac_includes_default
11531 if (sizeof (off_t))
11537 rm -f conftest.$ac_objext
11538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11539 (eval $ac_compile) 2>&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } &&
11543 { ac_try='test -s conftest.$ac_objext'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; }; then
11549 ac_cv_type_off_t=yes
11551 echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11554 ac_cv_type_off_t=no
11556 rm -f conftest.$ac_objext conftest.$ac_ext
11558 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11559 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11560 if test $ac_cv_type_off_t = yes; then
11564 cat >>confdefs.h <<_ACEOF
11570 echo "$as_me:$LINENO: checking for ino_t" >&5
11571 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11572 if test "${ac_cv_type_ino_t+set}" = set; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 cat >conftest.$ac_ext <<_ACEOF
11576 #line $LINENO "configure"
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h. */
11582 $ac_includes_default
11588 if (sizeof (ino_t))
11594 rm -f conftest.$ac_objext
11595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11596 (eval $ac_compile) 2>&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } &&
11600 { ac_try='test -s conftest.$ac_objext'
11601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602 (eval $ac_try) 2>&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); }; }; then
11606 ac_cv_type_ino_t=yes
11608 echo "$as_me: failed program was:" >&5
11609 sed 's/^/| /' conftest.$ac_ext >&5
11611 ac_cv_type_ino_t=no
11613 rm -f conftest.$ac_objext conftest.$ac_ext
11615 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11616 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11617 if test $ac_cv_type_ino_t = yes; then
11621 cat >>confdefs.h <<_ACEOF
11622 #define ino_t unsigned long
11627 echo "$as_me:$LINENO: checking for dev_t" >&5
11628 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11629 if test "${ac_cv_type_dev_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. */
11639 $ac_includes_default
11645 if (sizeof (dev_t))
11651 rm -f conftest.$ac_objext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11653 (eval $ac_compile) 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
11657 { ac_try='test -s conftest.$ac_objext'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11663 ac_cv_type_dev_t=yes
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11668 ac_cv_type_dev_t=no
11670 rm -f conftest.$ac_objext conftest.$ac_ext
11672 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11673 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11674 if test $ac_cv_type_dev_t = yes; then
11678 cat >>confdefs.h <<_ACEOF
11679 #define dev_t unsigned long
11684 echo "$as_me:$LINENO: checking for daddr_t" >&5
11685 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11686 if test "${ac_cv_type_daddr_t+set}" = set; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11689 cat >conftest.$ac_ext <<_ACEOF
11690 #line $LINENO "configure"
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h. */
11696 $ac_includes_default
11702 if (sizeof (daddr_t))
11708 rm -f conftest.$ac_objext
11709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11710 (eval $ac_compile) 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } &&
11714 { ac_try='test -s conftest.$ac_objext'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 ac_cv_type_daddr_t=yes
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11725 ac_cv_type_daddr_t=no
11727 rm -f conftest.$ac_objext conftest.$ac_ext
11729 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11730 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11731 if test $ac_cv_type_daddr_t = yes; then
11735 cat >>confdefs.h <<_ACEOF
11736 #define daddr_t long
11741 echo "$as_me:$LINENO: checking for major_t" >&5
11742 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11743 if test "${ac_cv_type_major_t+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11746 cat >conftest.$ac_ext <<_ACEOF
11747 #line $LINENO "configure"
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h. */
11753 $ac_includes_default
11759 if (sizeof (major_t))
11765 rm -f conftest.$ac_objext
11766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11767 (eval $ac_compile) 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); } &&
11771 { ac_try='test -s conftest.$ac_objext'
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; }; then
11777 ac_cv_type_major_t=yes
11779 echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11782 ac_cv_type_major_t=no
11784 rm -f conftest.$ac_objext conftest.$ac_ext
11786 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11787 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11788 if test $ac_cv_type_major_t = yes; then
11792 cat >>confdefs.h <<_ACEOF
11793 #define major_t int
11798 echo "$as_me:$LINENO: checking for minor_t" >&5
11799 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11800 if test "${ac_cv_type_minor_t+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 cat >conftest.$ac_ext <<_ACEOF
11804 #line $LINENO "configure"
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 $ac_includes_default
11816 if (sizeof (minor_t))
11822 rm -f conftest.$ac_objext
11823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11824 (eval $ac_compile) 2>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
11828 { ac_try='test -s conftest.$ac_objext'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 ac_cv_type_minor_t=yes
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11839 ac_cv_type_minor_t=no
11841 rm -f conftest.$ac_objext conftest.$ac_ext
11843 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11844 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11845 if test $ac_cv_type_minor_t = yes; then
11849 cat >>confdefs.h <<_ACEOF
11850 #define minor_t int
11855 echo "$as_me:$LINENO: checking for ssize_t" >&5
11856 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11857 if test "${ac_cv_type_ssize_t+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 cat >conftest.$ac_ext <<_ACEOF
11861 #line $LINENO "configure"
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11867 $ac_includes_default
11873 if (sizeof (ssize_t))
11879 rm -f conftest.$ac_objext
11880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11881 (eval $ac_compile) 2>&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } &&
11885 { ac_try='test -s conftest.$ac_objext'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; }; then
11891 ac_cv_type_ssize_t=yes
11893 echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11896 ac_cv_type_ssize_t=no
11898 rm -f conftest.$ac_objext conftest.$ac_ext
11900 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11901 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11902 if test $ac_cv_type_ssize_t = yes; then
11906 cat >>confdefs.h <<_ACEOF
11907 #define ssize_t int
11912 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11913 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11914 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11917 cat >conftest.$ac_ext <<_ACEOF
11918 #line $LINENO "configure"
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h. */
11924 $ac_includes_default
11928 static struct stat ac_aggr;
11929 if (ac_aggr.st_blocks)
11935 rm -f conftest.$ac_objext
11936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11937 (eval $ac_compile) 2>&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -s conftest.$ac_objext'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; }; then
11947 ac_cv_member_struct_stat_st_blocks=yes
11949 echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.$ac_ext >&5
11952 cat >conftest.$ac_ext <<_ACEOF
11953 #line $LINENO "configure"
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h. */
11959 $ac_includes_default
11963 static struct stat ac_aggr;
11964 if (sizeof ac_aggr.st_blocks)
11970 rm -f conftest.$ac_objext
11971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11972 (eval $ac_compile) 2>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } &&
11976 { ac_try='test -s conftest.$ac_objext'
11977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11978 (eval $ac_try) 2>&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); }; }; then
11982 ac_cv_member_struct_stat_st_blocks=yes
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 ac_cv_member_struct_stat_st_blocks=no
11989 rm -f conftest.$ac_objext conftest.$ac_ext
11991 rm -f conftest.$ac_objext conftest.$ac_ext
11993 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11994 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11995 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11997 cat >>confdefs.h <<_ACEOF
11998 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12002 cat >>confdefs.h <<\_ACEOF
12003 #define HAVE_ST_BLOCKS 1
12007 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12012 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12013 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12014 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12017 cat >conftest.$ac_ext <<_ACEOF
12018 #line $LINENO "configure"
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 $ac_includes_default
12028 static struct stat ac_aggr;
12029 if (ac_aggr.st_rdev)
12035 rm -f conftest.$ac_objext
12036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037 (eval $ac_compile) 2>&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -s conftest.$ac_objext'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12047 ac_cv_member_struct_stat_st_rdev=yes
12049 echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12052 cat >conftest.$ac_ext <<_ACEOF
12053 #line $LINENO "configure"
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12059 $ac_includes_default
12063 static struct stat ac_aggr;
12064 if (sizeof ac_aggr.st_rdev)
12070 rm -f conftest.$ac_objext
12071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12072 (eval $ac_compile) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
12076 { ac_try='test -s conftest.$ac_objext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 ac_cv_member_struct_stat_st_rdev=yes
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12087 ac_cv_member_struct_stat_st_rdev=no
12089 rm -f conftest.$ac_objext conftest.$ac_ext
12091 rm -f conftest.$ac_objext conftest.$ac_ext
12093 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12094 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12095 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12097 cat >>confdefs.h <<_ACEOF
12098 #define HAVE_STRUCT_STAT_ST_RDEV 1
12102 cat >>confdefs.h <<\_ACEOF
12103 #define HAVE_ST_RDEV 1
12109 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12110 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12111 if test "${ac_cv_struct_tm+set}" = set; then
12112 echo $ECHO_N "(cached) $ECHO_C" >&6
12114 cat >conftest.$ac_ext <<_ACEOF
12115 #line $LINENO "configure"
12118 cat confdefs.h >>conftest.$ac_ext
12119 cat >>conftest.$ac_ext <<_ACEOF
12120 /* end confdefs.h. */
12121 #include <sys/types.h>
12127 struct tm *tp; tp->tm_sec;
12132 rm -f conftest.$ac_objext
12133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12134 (eval $ac_compile) 2>&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } &&
12138 { ac_try='test -s conftest.$ac_objext'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; }; then
12144 ac_cv_struct_tm=time.h
12146 echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12149 ac_cv_struct_tm=sys/time.h
12151 rm -f conftest.$ac_objext conftest.$ac_ext
12153 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12154 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12155 if test $ac_cv_struct_tm = sys/time.h; then
12157 cat >>confdefs.h <<\_ACEOF
12158 #define TM_IN_SYS_TIME 1
12163 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12164 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12165 if test "${ac_cv_c_const+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 cat >conftest.$ac_ext <<_ACEOF
12169 #line $LINENO "configure"
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12179 /* FIXME: Include the comments suggested by Paul. */
12180 #ifndef __cplusplus
12181 /* Ultrix mips cc rejects this. */
12182 typedef int charset[2];
12184 /* SunOS 4.1.1 cc rejects this. */
12185 char const *const *ccp;
12187 /* NEC SVR4.0.2 mips cc rejects this. */
12188 struct point {int x, y;};
12189 static struct point const zero = {0,0};
12190 /* AIX XL C 1.02.0.0 rejects this.
12191 It does not let you subtract one const X* pointer from another in
12192 an arm of an if-expression whose if-part is not a constant
12194 const char *g = "string";
12195 ccp = &g + (g ? g-g : 0);
12196 /* HPUX 7.0 cc rejects these. */
12199 ccp = (char const *const *) p;
12200 { /* SCO 3.2v4 cc rejects this. */
12202 char const *s = 0 ? (char *) 0 : (char const *) 0;
12206 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12207 int x[] = {25, 17};
12208 const int *foo = &x[0];
12211 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12212 typedef const int *iptr;
12216 { /* AIX XL C 1.02.0.0 rejects this saying
12217 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12218 struct s { int j; const int *ap[3]; };
12219 struct s *b; b->j = 5;
12221 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12222 const int foo = 10;
12230 rm -f conftest.$ac_objext
12231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12232 (eval $ac_compile) 2>&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } &&
12236 { ac_try='test -s conftest.$ac_objext'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; }; then
12244 echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12249 rm -f conftest.$ac_objext conftest.$ac_ext
12251 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12252 echo "${ECHO_T}$ac_cv_c_const" >&6
12253 if test $ac_cv_c_const = no; then
12255 cat >>confdefs.h <<\_ACEOF
12263 echo "$as_me:$LINENO: checking for char" >&5
12264 echo $ECHO_N "checking for char... $ECHO_C" >&6
12265 if test "${ac_cv_type_char+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 cat >conftest.$ac_ext <<_ACEOF
12269 #line $LINENO "configure"
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12275 $ac_includes_default
12287 rm -f conftest.$ac_objext
12288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12289 (eval $ac_compile) 2>&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } &&
12293 { ac_try='test -s conftest.$ac_objext'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12299 ac_cv_type_char=yes
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12306 rm -f conftest.$ac_objext conftest.$ac_ext
12308 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12309 echo "${ECHO_T}$ac_cv_type_char" >&6
12311 echo "$as_me:$LINENO: checking size of char" >&5
12312 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12313 if test "${ac_cv_sizeof_char+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 if test "$ac_cv_type_char" = yes; then
12317 # The cast to unsigned long works around a bug in the HP C Compiler
12318 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12319 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12320 # This bug is HP SR number 8606223364.
12321 if test "$cross_compiling" = yes; then
12322 # Depending upon the size, compute the lo and hi bounds.
12323 cat >conftest.$ac_ext <<_ACEOF
12324 #line $LINENO "configure"
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12330 $ac_includes_default
12334 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12341 rm -f conftest.$ac_objext
12342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12343 (eval $ac_compile) 2>&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } &&
12347 { ac_try='test -s conftest.$ac_objext'
12348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349 (eval $ac_try) 2>&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; }; then
12355 cat >conftest.$ac_ext <<_ACEOF
12356 #line $LINENO "configure"
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h. */
12362 $ac_includes_default
12366 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12373 rm -f conftest.$ac_objext
12374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12375 (eval $ac_compile) 2>&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } &&
12379 { ac_try='test -s conftest.$ac_objext'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12385 ac_hi=$ac_mid; break
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12390 ac_lo=`expr $ac_mid + 1`
12391 if test $ac_lo -le $ac_mid; then
12395 ac_mid=`expr 2 '*' $ac_mid + 1`
12397 rm -f conftest.$ac_objext conftest.$ac_ext
12400 echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12403 cat >conftest.$ac_ext <<_ACEOF
12404 #line $LINENO "configure"
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12410 $ac_includes_default
12414 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12421 rm -f conftest.$ac_objext
12422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12423 (eval $ac_compile) 2>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try='test -s conftest.$ac_objext'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; }; then
12435 cat >conftest.$ac_ext <<_ACEOF
12436 #line $LINENO "configure"
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h. */
12442 $ac_includes_default
12446 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12453 rm -f conftest.$ac_objext
12454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12455 (eval $ac_compile) 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); } &&
12459 { ac_try='test -s conftest.$ac_objext'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; }; then
12465 ac_lo=$ac_mid; break
12467 echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12470 ac_hi=`expr '(' $ac_mid ')' - 1`
12471 if test $ac_mid -le $ac_hi; then
12475 ac_mid=`expr 2 '*' $ac_mid`
12477 rm -f conftest.$ac_objext conftest.$ac_ext
12480 echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12485 rm -f conftest.$ac_objext conftest.$ac_ext
12487 rm -f conftest.$ac_objext conftest.$ac_ext
12488 # Binary search between lo and hi bounds.
12489 while test "x$ac_lo" != "x$ac_hi"; do
12490 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12491 cat >conftest.$ac_ext <<_ACEOF
12492 #line $LINENO "configure"
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h. */
12498 $ac_includes_default
12502 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12509 rm -f conftest.$ac_objext
12510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12511 (eval $ac_compile) 2>&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } &&
12515 { ac_try='test -s conftest.$ac_objext'
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12526 ac_lo=`expr '(' $ac_mid ')' + 1`
12528 rm -f conftest.$ac_objext conftest.$ac_ext
12531 ?*) ac_cv_sizeof_char=$ac_lo;;
12532 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12533 See \`config.log' for more details." >&5
12534 echo "$as_me: error: cannot compute sizeof (char), 77
12535 See \`config.log' for more details." >&2;}
12536 { (exit 1); exit 1; }; } ;;
12539 if test "$cross_compiling" = yes; then
12540 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12541 See \`config.log' for more details." >&5
12542 echo "$as_me: error: cannot run test program while cross compiling
12543 See \`config.log' for more details." >&2;}
12544 { (exit 1); exit 1; }; }
12546 cat >conftest.$ac_ext <<_ACEOF
12547 #line $LINENO "configure"
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h. */
12553 $ac_includes_default
12554 long longval () { return (long) (sizeof (char)); }
12555 unsigned long ulongval () { return (long) (sizeof (char)); }
12557 #include <stdlib.h>
12562 FILE *f = fopen ("conftest.val", "w");
12565 if (((long) (sizeof (char))) < 0)
12567 long i = longval ();
12568 if (i != ((long) (sizeof (char))))
12570 fprintf (f, "%ld\n", i);
12574 unsigned long i = ulongval ();
12575 if (i != ((long) (sizeof (char))))
12577 fprintf (f, "%lu\n", i);
12579 exit (ferror (f) || fclose (f) != 0);
12585 rm -f conftest$ac_exeext
12586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12587 (eval $ac_link) 2>&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592 (eval $ac_try) 2>&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); }; }; then
12596 ac_cv_sizeof_char=`cat conftest.val`
12598 echo "$as_me: program exited with status $ac_status" >&5
12599 echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12602 ( exit $ac_status )
12603 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12604 See \`config.log' for more details." >&5
12605 echo "$as_me: error: cannot compute sizeof (char), 77
12606 See \`config.log' for more details." >&2;}
12607 { (exit 1); exit 1; }; }
12609 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12614 ac_cv_sizeof_char=0
12617 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12618 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12619 cat >>confdefs.h <<_ACEOF
12620 #define SIZEOF_CHAR $ac_cv_sizeof_char
12624 echo "$as_me:$LINENO: checking for short int" >&5
12625 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12626 if test "${ac_cv_type_short_int+set}" = set; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
12629 cat >conftest.$ac_ext <<_ACEOF
12630 #line $LINENO "configure"
12633 cat confdefs.h >>conftest.$ac_ext
12634 cat >>conftest.$ac_ext <<_ACEOF
12635 /* end confdefs.h. */
12636 $ac_includes_default
12640 if ((short int *) 0)
12642 if (sizeof (short int))
12648 rm -f conftest.$ac_objext
12649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12650 (eval $ac_compile) 2>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } &&
12654 { ac_try='test -s conftest.$ac_objext'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12660 ac_cv_type_short_int=yes
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12665 ac_cv_type_short_int=no
12667 rm -f conftest.$ac_objext conftest.$ac_ext
12669 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12670 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12672 echo "$as_me:$LINENO: checking size of short int" >&5
12673 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12674 if test "${ac_cv_sizeof_short_int+set}" = set; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
12677 if test "$ac_cv_type_short_int" = yes; then
12678 # The cast to unsigned long works around a bug in the HP C Compiler
12679 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12680 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12681 # This bug is HP SR number 8606223364.
12682 if test "$cross_compiling" = yes; then
12683 # Depending upon the size, compute the lo and hi bounds.
12684 cat >conftest.$ac_ext <<_ACEOF
12685 #line $LINENO "configure"
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h. */
12691 $ac_includes_default
12695 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12702 rm -f conftest.$ac_objext
12703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12704 (eval $ac_compile) 2>&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } &&
12708 { ac_try='test -s conftest.$ac_objext'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12716 cat >conftest.$ac_ext <<_ACEOF
12717 #line $LINENO "configure"
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 $ac_includes_default
12727 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12734 rm -f conftest.$ac_objext
12735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12736 (eval $ac_compile) 2>&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } &&
12740 { ac_try='test -s conftest.$ac_objext'
12741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742 (eval $ac_try) 2>&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; }; then
12746 ac_hi=$ac_mid; break
12748 echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12751 ac_lo=`expr $ac_mid + 1`
12752 if test $ac_lo -le $ac_mid; then
12756 ac_mid=`expr 2 '*' $ac_mid + 1`
12758 rm -f conftest.$ac_objext conftest.$ac_ext
12761 echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12764 cat >conftest.$ac_ext <<_ACEOF
12765 #line $LINENO "configure"
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h. */
12771 $ac_includes_default
12775 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12782 rm -f conftest.$ac_objext
12783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12784 (eval $ac_compile) 2>&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
12788 { ac_try='test -s conftest.$ac_objext'
12789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790 (eval $ac_try) 2>&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; }; then
12796 cat >conftest.$ac_ext <<_ACEOF
12797 #line $LINENO "configure"
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12803 $ac_includes_default
12807 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12814 rm -f conftest.$ac_objext
12815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12816 (eval $ac_compile) 2>&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } &&
12820 { ac_try='test -s conftest.$ac_objext'
12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; }; then
12826 ac_lo=$ac_mid; break
12828 echo "$as_me: failed program was:" >&5
12829 sed 's/^/| /' conftest.$ac_ext >&5
12831 ac_hi=`expr '(' $ac_mid ')' - 1`
12832 if test $ac_mid -le $ac_hi; then
12836 ac_mid=`expr 2 '*' $ac_mid`
12838 rm -f conftest.$ac_objext conftest.$ac_ext
12841 echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12846 rm -f conftest.$ac_objext conftest.$ac_ext
12848 rm -f conftest.$ac_objext conftest.$ac_ext
12849 # Binary search between lo and hi bounds.
12850 while test "x$ac_lo" != "x$ac_hi"; do
12851 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12852 cat >conftest.$ac_ext <<_ACEOF
12853 #line $LINENO "configure"
12856 cat confdefs.h >>conftest.$ac_ext
12857 cat >>conftest.$ac_ext <<_ACEOF
12858 /* end confdefs.h. */
12859 $ac_includes_default
12863 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12870 rm -f conftest.$ac_objext
12871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12872 (eval $ac_compile) 2>&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); } &&
12876 { ac_try='test -s conftest.$ac_objext'
12877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12878 (eval $ac_try) 2>&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); }; }; then
12884 echo "$as_me: failed program was:" >&5
12885 sed 's/^/| /' conftest.$ac_ext >&5
12887 ac_lo=`expr '(' $ac_mid ')' + 1`
12889 rm -f conftest.$ac_objext conftest.$ac_ext
12892 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12893 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12894 See \`config.log' for more details." >&5
12895 echo "$as_me: error: cannot compute sizeof (short int), 77
12896 See \`config.log' for more details." >&2;}
12897 { (exit 1); exit 1; }; } ;;
12900 if test "$cross_compiling" = yes; then
12901 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12902 See \`config.log' for more details." >&5
12903 echo "$as_me: error: cannot run test program while cross compiling
12904 See \`config.log' for more details." >&2;}
12905 { (exit 1); exit 1; }; }
12907 cat >conftest.$ac_ext <<_ACEOF
12908 #line $LINENO "configure"
12911 cat confdefs.h >>conftest.$ac_ext
12912 cat >>conftest.$ac_ext <<_ACEOF
12913 /* end confdefs.h. */
12914 $ac_includes_default
12915 long longval () { return (long) (sizeof (short int)); }
12916 unsigned long ulongval () { return (long) (sizeof (short int)); }
12918 #include <stdlib.h>
12923 FILE *f = fopen ("conftest.val", "w");
12926 if (((long) (sizeof (short int))) < 0)
12928 long i = longval ();
12929 if (i != ((long) (sizeof (short int))))
12931 fprintf (f, "%ld\n", i);
12935 unsigned long i = ulongval ();
12936 if (i != ((long) (sizeof (short int))))
12938 fprintf (f, "%lu\n", i);
12940 exit (ferror (f) || fclose (f) != 0);
12946 rm -f conftest$ac_exeext
12947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12948 (eval $ac_link) 2>&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953 (eval $ac_try) 2>&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; }; then
12957 ac_cv_sizeof_short_int=`cat conftest.val`
12959 echo "$as_me: program exited with status $ac_status" >&5
12960 echo "$as_me: failed program was:" >&5
12961 sed 's/^/| /' conftest.$ac_ext >&5
12963 ( exit $ac_status )
12964 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12965 See \`config.log' for more details." >&5
12966 echo "$as_me: error: cannot compute sizeof (short int), 77
12967 See \`config.log' for more details." >&2;}
12968 { (exit 1); exit 1; }; }
12970 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12975 ac_cv_sizeof_short_int=0
12978 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12979 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12980 cat >>confdefs.h <<_ACEOF
12981 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12985 echo "$as_me:$LINENO: checking for int" >&5
12986 echo $ECHO_N "checking for int... $ECHO_C" >&6
12987 if test "${ac_cv_type_int+set}" = set; then
12988 echo $ECHO_N "(cached) $ECHO_C" >&6
12990 cat >conftest.$ac_ext <<_ACEOF
12991 #line $LINENO "configure"
12994 cat confdefs.h >>conftest.$ac_ext
12995 cat >>conftest.$ac_ext <<_ACEOF
12996 /* end confdefs.h. */
12997 $ac_includes_default
13009 rm -f conftest.$ac_objext
13010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13011 (eval $ac_compile) 2>&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } &&
13015 { ac_try='test -s conftest.$ac_objext'
13016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13017 (eval $ac_try) 2>&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); }; }; then
13023 echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13028 rm -f conftest.$ac_objext conftest.$ac_ext
13030 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13031 echo "${ECHO_T}$ac_cv_type_int" >&6
13033 echo "$as_me:$LINENO: checking size of int" >&5
13034 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13035 if test "${ac_cv_sizeof_int+set}" = set; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13038 if test "$ac_cv_type_int" = yes; then
13039 # The cast to unsigned long works around a bug in the HP C Compiler
13040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13042 # This bug is HP SR number 8606223364.
13043 if test "$cross_compiling" = yes; then
13044 # Depending upon the size, compute the lo and hi bounds.
13045 cat >conftest.$ac_ext <<_ACEOF
13046 #line $LINENO "configure"
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h. */
13052 $ac_includes_default
13056 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13063 rm -f conftest.$ac_objext
13064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13065 (eval $ac_compile) 2>&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } &&
13069 { ac_try='test -s conftest.$ac_objext'
13070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071 (eval $ac_try) 2>&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
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 $ac_includes_default
13088 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
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_hi=$ac_mid; break
13109 echo "$as_me: failed program was:" >&5
13110 sed 's/^/| /' conftest.$ac_ext >&5
13112 ac_lo=`expr $ac_mid + 1`
13113 if test $ac_lo -le $ac_mid; then
13117 ac_mid=`expr 2 '*' $ac_mid + 1`
13119 rm -f conftest.$ac_objext conftest.$ac_ext
13122 echo "$as_me: failed program was:" >&5
13123 sed 's/^/| /' conftest.$ac_ext >&5
13125 cat >conftest.$ac_ext <<_ACEOF
13126 #line $LINENO "configure"
13129 cat confdefs.h >>conftest.$ac_ext
13130 cat >>conftest.$ac_ext <<_ACEOF
13131 /* end confdefs.h. */
13132 $ac_includes_default
13136 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13143 rm -f conftest.$ac_objext
13144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13145 (eval $ac_compile) 2>&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
13149 { ac_try='test -s conftest.$ac_objext'
13150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151 (eval $ac_try) 2>&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; }; then
13157 cat >conftest.$ac_ext <<_ACEOF
13158 #line $LINENO "configure"
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h. */
13164 $ac_includes_default
13168 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13175 rm -f conftest.$ac_objext
13176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13177 (eval $ac_compile) 2>&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } &&
13181 { ac_try='test -s conftest.$ac_objext'
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; }; then
13187 ac_lo=$ac_mid; break
13189 echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13192 ac_hi=`expr '(' $ac_mid ')' - 1`
13193 if test $ac_mid -le $ac_hi; then
13197 ac_mid=`expr 2 '*' $ac_mid`
13199 rm -f conftest.$ac_objext conftest.$ac_ext
13202 echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13207 rm -f conftest.$ac_objext conftest.$ac_ext
13209 rm -f conftest.$ac_objext conftest.$ac_ext
13210 # Binary search between lo and hi bounds.
13211 while test "x$ac_lo" != "x$ac_hi"; do
13212 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13213 cat >conftest.$ac_ext <<_ACEOF
13214 #line $LINENO "configure"
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h. */
13220 $ac_includes_default
13224 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13231 rm -f conftest.$ac_objext
13232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13233 (eval $ac_compile) 2>&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } &&
13237 { ac_try='test -s conftest.$ac_objext'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; }; then
13245 echo "$as_me: failed program was:" >&5
13246 sed 's/^/| /' conftest.$ac_ext >&5
13248 ac_lo=`expr '(' $ac_mid ')' + 1`
13250 rm -f conftest.$ac_objext conftest.$ac_ext
13253 ?*) ac_cv_sizeof_int=$ac_lo;;
13254 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13255 See \`config.log' for more details." >&5
13256 echo "$as_me: error: cannot compute sizeof (int), 77
13257 See \`config.log' for more details." >&2;}
13258 { (exit 1); exit 1; }; } ;;
13261 if test "$cross_compiling" = yes; then
13262 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13263 See \`config.log' for more details." >&5
13264 echo "$as_me: error: cannot run test program while cross compiling
13265 See \`config.log' for more details." >&2;}
13266 { (exit 1); exit 1; }; }
13268 cat >conftest.$ac_ext <<_ACEOF
13269 #line $LINENO "configure"
13272 cat confdefs.h >>conftest.$ac_ext
13273 cat >>conftest.$ac_ext <<_ACEOF
13274 /* end confdefs.h. */
13275 $ac_includes_default
13276 long longval () { return (long) (sizeof (int)); }
13277 unsigned long ulongval () { return (long) (sizeof (int)); }
13279 #include <stdlib.h>
13284 FILE *f = fopen ("conftest.val", "w");
13287 if (((long) (sizeof (int))) < 0)
13289 long i = longval ();
13290 if (i != ((long) (sizeof (int))))
13292 fprintf (f, "%ld\n", i);
13296 unsigned long i = ulongval ();
13297 if (i != ((long) (sizeof (int))))
13299 fprintf (f, "%lu\n", i);
13301 exit (ferror (f) || fclose (f) != 0);
13307 rm -f conftest$ac_exeext
13308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13309 (eval $ac_link) 2>&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13314 (eval $ac_try) 2>&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); }; }; then
13318 ac_cv_sizeof_int=`cat conftest.val`
13320 echo "$as_me: program exited with status $ac_status" >&5
13321 echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13324 ( exit $ac_status )
13325 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13326 See \`config.log' for more details." >&5
13327 echo "$as_me: error: cannot compute sizeof (int), 77
13328 See \`config.log' for more details." >&2;}
13329 { (exit 1); exit 1; }; }
13331 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13339 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13340 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13341 cat >>confdefs.h <<_ACEOF
13342 #define SIZEOF_INT $ac_cv_sizeof_int
13346 echo "$as_me:$LINENO: checking for long int" >&5
13347 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13348 if test "${ac_cv_type_long_int+set}" = set; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13351 cat >conftest.$ac_ext <<_ACEOF
13352 #line $LINENO "configure"
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13358 $ac_includes_default
13362 if ((long int *) 0)
13364 if (sizeof (long int))
13370 rm -f conftest.$ac_objext
13371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13372 (eval $ac_compile) 2>&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); } &&
13376 { ac_try='test -s conftest.$ac_objext'
13377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378 (eval $ac_try) 2>&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }; }; then
13382 ac_cv_type_long_int=yes
13384 echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13387 ac_cv_type_long_int=no
13389 rm -f conftest.$ac_objext conftest.$ac_ext
13391 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13392 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13394 echo "$as_me:$LINENO: checking size of long int" >&5
13395 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13396 if test "${ac_cv_sizeof_long_int+set}" = set; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13399 if test "$ac_cv_type_long_int" = yes; then
13400 # The cast to unsigned long works around a bug in the HP C Compiler
13401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13403 # This bug is HP SR number 8606223364.
13404 if test "$cross_compiling" = yes; then
13405 # Depending upon the size, compute the lo and hi bounds.
13406 cat >conftest.$ac_ext <<_ACEOF
13407 #line $LINENO "configure"
13410 cat confdefs.h >>conftest.$ac_ext
13411 cat >>conftest.$ac_ext <<_ACEOF
13412 /* end confdefs.h. */
13413 $ac_includes_default
13417 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13424 rm -f conftest.$ac_objext
13425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13426 (eval $ac_compile) 2>&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } &&
13430 { ac_try='test -s conftest.$ac_objext'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13438 cat >conftest.$ac_ext <<_ACEOF
13439 #line $LINENO "configure"
13442 cat confdefs.h >>conftest.$ac_ext
13443 cat >>conftest.$ac_ext <<_ACEOF
13444 /* end confdefs.h. */
13445 $ac_includes_default
13449 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13456 rm -f conftest.$ac_objext
13457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13458 (eval $ac_compile) 2>&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } &&
13462 { ac_try='test -s conftest.$ac_objext'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
13468 ac_hi=$ac_mid; break
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13473 ac_lo=`expr $ac_mid + 1`
13474 if test $ac_lo -le $ac_mid; then
13478 ac_mid=`expr 2 '*' $ac_mid + 1`
13480 rm -f conftest.$ac_objext conftest.$ac_ext
13483 echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13486 cat >conftest.$ac_ext <<_ACEOF
13487 #line $LINENO "configure"
13490 cat confdefs.h >>conftest.$ac_ext
13491 cat >>conftest.$ac_ext <<_ACEOF
13492 /* end confdefs.h. */
13493 $ac_includes_default
13497 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13504 rm -f conftest.$ac_objext
13505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13506 (eval $ac_compile) 2>&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } &&
13510 { ac_try='test -s conftest.$ac_objext'
13511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
13518 cat >conftest.$ac_ext <<_ACEOF
13519 #line $LINENO "configure"
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h. */
13525 $ac_includes_default
13529 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13536 rm -f conftest.$ac_objext
13537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13538 (eval $ac_compile) 2>&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
13542 { ac_try='test -s conftest.$ac_objext'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; }; then
13548 ac_lo=$ac_mid; break
13550 echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13553 ac_hi=`expr '(' $ac_mid ')' - 1`
13554 if test $ac_mid -le $ac_hi; then
13558 ac_mid=`expr 2 '*' $ac_mid`
13560 rm -f conftest.$ac_objext conftest.$ac_ext
13563 echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13568 rm -f conftest.$ac_objext conftest.$ac_ext
13570 rm -f conftest.$ac_objext conftest.$ac_ext
13571 # Binary search between lo and hi bounds.
13572 while test "x$ac_lo" != "x$ac_hi"; do
13573 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13574 cat >conftest.$ac_ext <<_ACEOF
13575 #line $LINENO "configure"
13578 cat confdefs.h >>conftest.$ac_ext
13579 cat >>conftest.$ac_ext <<_ACEOF
13580 /* end confdefs.h. */
13581 $ac_includes_default
13585 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13592 rm -f conftest.$ac_objext
13593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13594 (eval $ac_compile) 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } &&
13598 { ac_try='test -s conftest.$ac_objext'
13599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13600 (eval $ac_try) 2>&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); }; }; then
13606 echo "$as_me: failed program was:" >&5
13607 sed 's/^/| /' conftest.$ac_ext >&5
13609 ac_lo=`expr '(' $ac_mid ')' + 1`
13611 rm -f conftest.$ac_objext conftest.$ac_ext
13614 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13615 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13616 See \`config.log' for more details." >&5
13617 echo "$as_me: error: cannot compute sizeof (long int), 77
13618 See \`config.log' for more details." >&2;}
13619 { (exit 1); exit 1; }; } ;;
13622 if test "$cross_compiling" = yes; then
13623 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13624 See \`config.log' for more details." >&5
13625 echo "$as_me: error: cannot run test program while cross compiling
13626 See \`config.log' for more details." >&2;}
13627 { (exit 1); exit 1; }; }
13629 cat >conftest.$ac_ext <<_ACEOF
13630 #line $LINENO "configure"
13633 cat confdefs.h >>conftest.$ac_ext
13634 cat >>conftest.$ac_ext <<_ACEOF
13635 /* end confdefs.h. */
13636 $ac_includes_default
13637 long longval () { return (long) (sizeof (long int)); }
13638 unsigned long ulongval () { return (long) (sizeof (long int)); }
13640 #include <stdlib.h>
13645 FILE *f = fopen ("conftest.val", "w");
13648 if (((long) (sizeof (long int))) < 0)
13650 long i = longval ();
13651 if (i != ((long) (sizeof (long int))))
13653 fprintf (f, "%ld\n", i);
13657 unsigned long i = ulongval ();
13658 if (i != ((long) (sizeof (long int))))
13660 fprintf (f, "%lu\n", i);
13662 exit (ferror (f) || fclose (f) != 0);
13668 rm -f conftest$ac_exeext
13669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13670 (eval $ac_link) 2>&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675 (eval $ac_try) 2>&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; }; then
13679 ac_cv_sizeof_long_int=`cat conftest.val`
13681 echo "$as_me: program exited with status $ac_status" >&5
13682 echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13685 ( exit $ac_status )
13686 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13687 See \`config.log' for more details." >&5
13688 echo "$as_me: error: cannot compute sizeof (long int), 77
13689 See \`config.log' for more details." >&2;}
13690 { (exit 1); exit 1; }; }
13692 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13697 ac_cv_sizeof_long_int=0
13700 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13701 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13702 cat >>confdefs.h <<_ACEOF
13703 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13707 echo "$as_me:$LINENO: checking for long long int" >&5
13708 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13709 if test "${ac_cv_type_long_long_int+set}" = set; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 cat >conftest.$ac_ext <<_ACEOF
13713 #line $LINENO "configure"
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h. */
13719 $ac_includes_default
13723 if ((long long int *) 0)
13725 if (sizeof (long long int))
13731 rm -f conftest.$ac_objext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733 (eval $ac_compile) 2>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
13737 { ac_try='test -s conftest.$ac_objext'
13738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739 (eval $ac_try) 2>&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
13743 ac_cv_type_long_long_int=yes
13745 echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13748 ac_cv_type_long_long_int=no
13750 rm -f conftest.$ac_objext conftest.$ac_ext
13752 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13753 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13755 echo "$as_me:$LINENO: checking size of long long int" >&5
13756 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13757 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13758 echo $ECHO_N "(cached) $ECHO_C" >&6
13760 if test "$ac_cv_type_long_long_int" = yes; then
13761 # The cast to unsigned long works around a bug in the HP C Compiler
13762 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13763 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13764 # This bug is HP SR number 8606223364.
13765 if test "$cross_compiling" = yes; then
13766 # Depending upon the size, compute the lo and hi bounds.
13767 cat >conftest.$ac_ext <<_ACEOF
13768 #line $LINENO "configure"
13771 cat confdefs.h >>conftest.$ac_ext
13772 cat >>conftest.$ac_ext <<_ACEOF
13773 /* end confdefs.h. */
13774 $ac_includes_default
13778 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13785 rm -f conftest.$ac_objext
13786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13787 (eval $ac_compile) 2>&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } &&
13791 { ac_try='test -s conftest.$ac_objext'
13792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; }; then
13799 cat >conftest.$ac_ext <<_ACEOF
13800 #line $LINENO "configure"
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h. */
13806 $ac_includes_default
13810 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13817 rm -f conftest.$ac_objext
13818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13819 (eval $ac_compile) 2>&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
13823 { ac_try='test -s conftest.$ac_objext'
13824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13825 (eval $ac_try) 2>&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; }; then
13829 ac_hi=$ac_mid; break
13831 echo "$as_me: failed program was:" >&5
13832 sed 's/^/| /' conftest.$ac_ext >&5
13834 ac_lo=`expr $ac_mid + 1`
13835 if test $ac_lo -le $ac_mid; then
13839 ac_mid=`expr 2 '*' $ac_mid + 1`
13841 rm -f conftest.$ac_objext conftest.$ac_ext
13844 echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13847 cat >conftest.$ac_ext <<_ACEOF
13848 #line $LINENO "configure"
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13854 $ac_includes_default
13858 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13865 rm -f conftest.$ac_objext
13866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13867 (eval $ac_compile) 2>&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } &&
13871 { ac_try='test -s conftest.$ac_objext'
13872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873 (eval $ac_try) 2>&5
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); }; }; then
13879 cat >conftest.$ac_ext <<_ACEOF
13880 #line $LINENO "configure"
13883 cat confdefs.h >>conftest.$ac_ext
13884 cat >>conftest.$ac_ext <<_ACEOF
13885 /* end confdefs.h. */
13886 $ac_includes_default
13890 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13897 rm -f conftest.$ac_objext
13898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13899 (eval $ac_compile) 2>&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); } &&
13903 { ac_try='test -s conftest.$ac_objext'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }; then
13909 ac_lo=$ac_mid; break
13911 echo "$as_me: failed program was:" >&5
13912 sed 's/^/| /' conftest.$ac_ext >&5
13914 ac_hi=`expr '(' $ac_mid ')' - 1`
13915 if test $ac_mid -le $ac_hi; then
13919 ac_mid=`expr 2 '*' $ac_mid`
13921 rm -f conftest.$ac_objext conftest.$ac_ext
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13929 rm -f conftest.$ac_objext conftest.$ac_ext
13931 rm -f conftest.$ac_objext conftest.$ac_ext
13932 # Binary search between lo and hi bounds.
13933 while test "x$ac_lo" != "x$ac_hi"; do
13934 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13935 cat >conftest.$ac_ext <<_ACEOF
13936 #line $LINENO "configure"
13939 cat confdefs.h >>conftest.$ac_ext
13940 cat >>conftest.$ac_ext <<_ACEOF
13941 /* end confdefs.h. */
13942 $ac_includes_default
13946 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13953 rm -f conftest.$ac_objext
13954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13955 (eval $ac_compile) 2>&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); } &&
13959 { ac_try='test -s conftest.$ac_objext'
13960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961 (eval $ac_try) 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; }; then
13967 echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13970 ac_lo=`expr '(' $ac_mid ')' + 1`
13972 rm -f conftest.$ac_objext conftest.$ac_ext
13975 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13976 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13977 See \`config.log' for more details." >&5
13978 echo "$as_me: error: cannot compute sizeof (long long int), 77
13979 See \`config.log' for more details." >&2;}
13980 { (exit 1); exit 1; }; } ;;
13983 if test "$cross_compiling" = yes; then
13984 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13985 See \`config.log' for more details." >&5
13986 echo "$as_me: error: cannot run test program while cross compiling
13987 See \`config.log' for more details." >&2;}
13988 { (exit 1); exit 1; }; }
13990 cat >conftest.$ac_ext <<_ACEOF
13991 #line $LINENO "configure"
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h. */
13997 $ac_includes_default
13998 long longval () { return (long) (sizeof (long long int)); }
13999 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14001 #include <stdlib.h>
14006 FILE *f = fopen ("conftest.val", "w");
14009 if (((long) (sizeof (long long int))) < 0)
14011 long i = longval ();
14012 if (i != ((long) (sizeof (long long int))))
14014 fprintf (f, "%ld\n", i);
14018 unsigned long i = ulongval ();
14019 if (i != ((long) (sizeof (long long int))))
14021 fprintf (f, "%lu\n", i);
14023 exit (ferror (f) || fclose (f) != 0);
14029 rm -f conftest$ac_exeext
14030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14031 (eval $ac_link) 2>&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 ac_cv_sizeof_long_long_int=`cat conftest.val`
14042 echo "$as_me: program exited with status $ac_status" >&5
14043 echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14046 ( exit $ac_status )
14047 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14048 See \`config.log' for more details." >&5
14049 echo "$as_me: error: cannot compute sizeof (long long int), 77
14050 See \`config.log' for more details." >&2;}
14051 { (exit 1); exit 1; }; }
14053 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14058 ac_cv_sizeof_long_long_int=0
14061 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14062 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14063 cat >>confdefs.h <<_ACEOF
14064 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14068 echo "$as_me:$LINENO: checking for int *" >&5
14069 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14070 if test "${ac_cv_type_int_p+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 cat >conftest.$ac_ext <<_ACEOF
14074 #line $LINENO "configure"
14077 cat confdefs.h >>conftest.$ac_ext
14078 cat >>conftest.$ac_ext <<_ACEOF
14079 /* end confdefs.h. */
14080 $ac_includes_default
14086 if (sizeof (int *))
14092 rm -f conftest.$ac_objext
14093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14094 (eval $ac_compile) 2>&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); } &&
14098 { ac_try='test -s conftest.$ac_objext'
14099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; }; then
14104 ac_cv_type_int_p=yes
14106 echo "$as_me: failed program was:" >&5
14107 sed 's/^/| /' conftest.$ac_ext >&5
14109 ac_cv_type_int_p=no
14111 rm -f conftest.$ac_objext conftest.$ac_ext
14113 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14114 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14116 echo "$as_me:$LINENO: checking size of int *" >&5
14117 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14118 if test "${ac_cv_sizeof_int_p+set}" = set; then
14119 echo $ECHO_N "(cached) $ECHO_C" >&6
14121 if test "$ac_cv_type_int_p" = yes; then
14122 # The cast to unsigned long works around a bug in the HP C Compiler
14123 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14124 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14125 # This bug is HP SR number 8606223364.
14126 if test "$cross_compiling" = yes; then
14127 # Depending upon the size, compute the lo and hi bounds.
14128 cat >conftest.$ac_ext <<_ACEOF
14129 #line $LINENO "configure"
14132 cat confdefs.h >>conftest.$ac_ext
14133 cat >>conftest.$ac_ext <<_ACEOF
14134 /* end confdefs.h. */
14135 $ac_includes_default
14139 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14146 rm -f conftest.$ac_objext
14147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14148 (eval $ac_compile) 2>&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } &&
14152 { ac_try='test -s conftest.$ac_objext'
14153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154 (eval $ac_try) 2>&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; }; then
14160 cat >conftest.$ac_ext <<_ACEOF
14161 #line $LINENO "configure"
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h. */
14167 $ac_includes_default
14171 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14178 rm -f conftest.$ac_objext
14179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14180 (eval $ac_compile) 2>&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); } &&
14184 { ac_try='test -s conftest.$ac_objext'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 ac_hi=$ac_mid; break
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14195 ac_lo=`expr $ac_mid + 1`
14196 if test $ac_lo -le $ac_mid; then
14200 ac_mid=`expr 2 '*' $ac_mid + 1`
14202 rm -f conftest.$ac_objext conftest.$ac_ext
14205 echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14208 cat >conftest.$ac_ext <<_ACEOF
14209 #line $LINENO "configure"
14212 cat confdefs.h >>conftest.$ac_ext
14213 cat >>conftest.$ac_ext <<_ACEOF
14214 /* end confdefs.h. */
14215 $ac_includes_default
14219 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14226 rm -f conftest.$ac_objext
14227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14228 (eval $ac_compile) 2>&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); } &&
14232 { ac_try='test -s conftest.$ac_objext'
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; }; then
14240 cat >conftest.$ac_ext <<_ACEOF
14241 #line $LINENO "configure"
14244 cat confdefs.h >>conftest.$ac_ext
14245 cat >>conftest.$ac_ext <<_ACEOF
14246 /* end confdefs.h. */
14247 $ac_includes_default
14251 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14258 rm -f conftest.$ac_objext
14259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14260 (eval $ac_compile) 2>&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); } &&
14264 { ac_try='test -s conftest.$ac_objext'
14265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266 (eval $ac_try) 2>&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; }; then
14270 ac_lo=$ac_mid; break
14272 echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14275 ac_hi=`expr '(' $ac_mid ')' - 1`
14276 if test $ac_mid -le $ac_hi; then
14280 ac_mid=`expr 2 '*' $ac_mid`
14282 rm -f conftest.$ac_objext conftest.$ac_ext
14285 echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.$ac_ext >&5
14290 rm -f conftest.$ac_objext conftest.$ac_ext
14292 rm -f conftest.$ac_objext conftest.$ac_ext
14293 # Binary search between lo and hi bounds.
14294 while test "x$ac_lo" != "x$ac_hi"; do
14295 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14296 cat >conftest.$ac_ext <<_ACEOF
14297 #line $LINENO "configure"
14300 cat confdefs.h >>conftest.$ac_ext
14301 cat >>conftest.$ac_ext <<_ACEOF
14302 /* end confdefs.h. */
14303 $ac_includes_default
14307 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14314 rm -f conftest.$ac_objext
14315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14316 (eval $ac_compile) 2>&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } &&
14320 { ac_try='test -s conftest.$ac_objext'
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }; then
14328 echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14331 ac_lo=`expr '(' $ac_mid ')' + 1`
14333 rm -f conftest.$ac_objext conftest.$ac_ext
14336 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14337 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14338 See \`config.log' for more details." >&5
14339 echo "$as_me: error: cannot compute sizeof (int *), 77
14340 See \`config.log' for more details." >&2;}
14341 { (exit 1); exit 1; }; } ;;
14344 if test "$cross_compiling" = yes; then
14345 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14346 See \`config.log' for more details." >&5
14347 echo "$as_me: error: cannot run test program while cross compiling
14348 See \`config.log' for more details." >&2;}
14349 { (exit 1); exit 1; }; }
14351 cat >conftest.$ac_ext <<_ACEOF
14352 #line $LINENO "configure"
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h. */
14358 $ac_includes_default
14359 long longval () { return (long) (sizeof (int *)); }
14360 unsigned long ulongval () { return (long) (sizeof (int *)); }
14362 #include <stdlib.h>
14367 FILE *f = fopen ("conftest.val", "w");
14370 if (((long) (sizeof (int *))) < 0)
14372 long i = longval ();
14373 if (i != ((long) (sizeof (int *))))
14375 fprintf (f, "%ld\n", i);
14379 unsigned long i = ulongval ();
14380 if (i != ((long) (sizeof (int *))))
14382 fprintf (f, "%lu\n", i);
14384 exit (ferror (f) || fclose (f) != 0);
14390 rm -f conftest$ac_exeext
14391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14392 (eval $ac_link) 2>&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14397 (eval $ac_try) 2>&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); }; }; then
14401 ac_cv_sizeof_int_p=`cat conftest.val`
14403 echo "$as_me: program exited with status $ac_status" >&5
14404 echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14407 ( exit $ac_status )
14408 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14409 See \`config.log' for more details." >&5
14410 echo "$as_me: error: cannot compute sizeof (int *), 77
14411 See \`config.log' for more details." >&2;}
14412 { (exit 1); exit 1; }; }
14414 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14419 ac_cv_sizeof_int_p=0
14422 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14423 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14424 cat >>confdefs.h <<_ACEOF
14425 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14430 # Check for sys/types.h types
14431 echo "$as_me:$LINENO: checking for u_int type" >&5
14432 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14433 if test "${ac_cv_have_u_int+set}" = set; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14437 cat >conftest.$ac_ext <<_ACEOF
14438 #line $LINENO "configure"
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h. */
14444 #include <sys/types.h>
14453 rm -f conftest.$ac_objext
14454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14455 (eval $ac_compile) 2>&5
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); } &&
14459 { ac_try='test -s conftest.$ac_objext'
14460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461 (eval $ac_try) 2>&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; }; then
14465 ac_cv_have_u_int="yes"
14467 echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14470 ac_cv_have_u_int="no"
14473 rm -f conftest.$ac_objext conftest.$ac_ext
14476 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14477 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14478 if test "x$ac_cv_have_u_int" = "xyes" ; then
14479 cat >>confdefs.h <<\_ACEOF
14480 #define HAVE_U_INT 1
14486 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14487 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14488 if test "${ac_cv_have_intmax_t+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14492 cat >conftest.$ac_ext <<_ACEOF
14493 #line $LINENO "configure"
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14499 #include <sys/types.h>
14508 rm -f conftest.$ac_objext
14509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510 (eval $ac_compile) 2>&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } &&
14514 { ac_try='test -s conftest.$ac_objext'
14515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516 (eval $ac_try) 2>&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); }; }; then
14520 ac_cv_have_intmax_t="yes"
14522 echo "$as_me: failed program was:" >&5
14523 sed 's/^/| /' conftest.$ac_ext >&5
14526 cat >conftest.$ac_ext <<_ACEOF
14527 #line $LINENO "configure"
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h. */
14533 #include <stdint.h>
14542 rm -f conftest.$ac_objext
14543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14544 (eval $ac_compile) 2>&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); } &&
14548 { ac_try='test -s conftest.$ac_objext'
14549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14550 (eval $ac_try) 2>&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
14554 ac_cv_have_intmax_t="yes"
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14559 ac_cv_have_intmax_t="no"
14562 rm -f conftest.$ac_objext conftest.$ac_ext
14566 rm -f conftest.$ac_objext conftest.$ac_ext
14570 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14571 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14572 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14573 cat >>confdefs.h <<\_ACEOF
14574 #define HAVE_INTMAX_T 1
14581 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14582 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14583 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14584 echo $ECHO_N "(cached) $ECHO_C" >&6
14587 cat >conftest.$ac_ext <<_ACEOF
14588 #line $LINENO "configure"
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h. */
14594 #include <sys/types.h>
14598 u_intmax_t a; a = 1;
14603 rm -f conftest.$ac_objext
14604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14605 (eval $ac_compile) 2>&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } &&
14609 { ac_try='test -s conftest.$ac_objext'
14610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611 (eval $ac_try) 2>&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); }; }; then
14615 ac_cv_have_u_intmax_t="yes"
14617 echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.$ac_ext >&5
14621 cat >conftest.$ac_ext <<_ACEOF
14622 #line $LINENO "configure"
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14628 #include <stdint.h>
14632 u_intmax_t a; a = 1;
14637 rm -f conftest.$ac_objext
14638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14639 (eval $ac_compile) 2>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); } &&
14643 { ac_try='test -s conftest.$ac_objext'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }; then
14649 ac_cv_have_u_intmax_t="yes"
14651 echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14654 ac_cv_have_u_intmax_t="no"
14657 rm -f conftest.$ac_objext conftest.$ac_ext
14661 rm -f conftest.$ac_objext conftest.$ac_ext
14664 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14665 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14666 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14667 cat >>confdefs.h <<\_ACEOF
14668 #define HAVE_U_INTMAX_T 1
14675 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14676 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14677 if test "${ac_cv_have_intxx_t+set}" = set; then
14678 echo $ECHO_N "(cached) $ECHO_C" >&6
14681 cat >conftest.$ac_ext <<_ACEOF
14682 #line $LINENO "configure"
14685 cat confdefs.h >>conftest.$ac_ext
14686 cat >>conftest.$ac_ext <<_ACEOF
14687 /* end confdefs.h. */
14688 #include <sys/types.h>
14692 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14697 rm -f conftest.$ac_objext
14698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14699 (eval $ac_compile) 2>&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } &&
14703 { ac_try='test -s conftest.$ac_objext'
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; }; then
14709 ac_cv_have_intxx_t="yes"
14711 echo "$as_me: failed program was:" >&5
14712 sed 's/^/| /' conftest.$ac_ext >&5
14714 ac_cv_have_intxx_t="no"
14717 rm -f conftest.$ac_objext conftest.$ac_ext
14720 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14721 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14722 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14723 cat >>confdefs.h <<\_ACEOF
14724 #define HAVE_INTXX_T 1
14730 echo "$as_me:$LINENO: checking for int64_t type" >&5
14731 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14732 if test "${ac_cv_have_int64_t+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14736 cat >conftest.$ac_ext <<_ACEOF
14737 #line $LINENO "configure"
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14743 #include <sys/types.h>
14752 rm -f conftest.$ac_objext
14753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14754 (eval $ac_compile) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); } &&
14758 { ac_try='test -s conftest.$ac_objext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_cv_have_int64_t="yes"
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14769 ac_cv_have_int64_t="no"
14772 rm -f conftest.$ac_objext conftest.$ac_ext
14775 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14776 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14777 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14778 cat >>confdefs.h <<\_ACEOF
14779 #define HAVE_INT64_T 1
14785 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14786 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14787 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14788 echo $ECHO_N "(cached) $ECHO_C" >&6
14791 cat >conftest.$ac_ext <<_ACEOF
14792 #line $LINENO "configure"
14795 cat confdefs.h >>conftest.$ac_ext
14796 cat >>conftest.$ac_ext <<_ACEOF
14797 /* end confdefs.h. */
14798 #include <sys/types.h>
14802 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14807 rm -f conftest.$ac_objext
14808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14809 (eval $ac_compile) 2>&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } &&
14813 { ac_try='test -s conftest.$ac_objext'
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; }; then
14819 ac_cv_have_u_intxx_t="yes"
14821 echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14824 ac_cv_have_u_intxx_t="no"
14827 rm -f conftest.$ac_objext conftest.$ac_ext
14830 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14831 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14832 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14833 cat >>confdefs.h <<\_ACEOF
14834 #define HAVE_U_INTXX_T 1
14840 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14841 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14842 if test "${ac_cv_have_u_int64_t+set}" = set; then
14843 echo $ECHO_N "(cached) $ECHO_C" >&6
14846 cat >conftest.$ac_ext <<_ACEOF
14847 #line $LINENO "configure"
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14853 #include <sys/types.h>
14857 u_int64_t a; a = 1;
14862 rm -f conftest.$ac_objext
14863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14864 (eval $ac_compile) 2>&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } &&
14868 { ac_try='test -s conftest.$ac_objext'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; }; then
14874 ac_cv_have_u_int64_t="yes"
14876 echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14879 ac_cv_have_u_int64_t="no"
14882 rm -f conftest.$ac_objext conftest.$ac_ext
14885 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14886 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14887 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14888 cat >>confdefs.h <<\_ACEOF
14889 #define HAVE_U_INT64_T 1
14895 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14896 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14898 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14899 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14900 cat >conftest.$ac_ext <<_ACEOF
14901 #line $LINENO "configure"
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14907 #include <sys/bitypes.h>
14911 int8_t a; int16_t b; int32_t c;
14912 u_int8_t e; u_int16_t f; u_int32_t g;
14913 a = b = c = e = f = g = 1;
14918 rm -f conftest.$ac_objext
14919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14920 (eval $ac_compile) 2>&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } &&
14924 { ac_try='test -s conftest.$ac_objext'
14925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14926 (eval $ac_try) 2>&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; }; then
14930 cat >>confdefs.h <<\_ACEOF
14931 #define HAVE_U_INTXX_T 1
14934 cat >>confdefs.h <<\_ACEOF
14935 #define HAVE_INTXX_T 1
14938 cat >>confdefs.h <<\_ACEOF
14939 #define HAVE_SYS_BITYPES_H 1
14942 echo "$as_me:$LINENO: result: yes" >&5
14943 echo "${ECHO_T}yes" >&6
14945 echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14948 echo "$as_me:$LINENO: result: no" >&5
14949 echo "${ECHO_T}no" >&6
14952 rm -f conftest.$ac_objext conftest.$ac_ext
14955 if test -z "$have_u_intxx_t" ; then
14956 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14957 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14958 if test "${ac_cv_have_uintxx_t+set}" = set; then
14959 echo $ECHO_N "(cached) $ECHO_C" >&6
14962 cat >conftest.$ac_ext <<_ACEOF
14963 #line $LINENO "configure"
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h. */
14969 #include <sys/types.h>
14973 uint8_t a; uint16_t b;
14974 uint32_t c; a = b = c = 1;
14979 rm -f conftest.$ac_objext
14980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14981 (eval $ac_compile) 2>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } &&
14985 { ac_try='test -s conftest.$ac_objext'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; }; then
14991 ac_cv_have_uintxx_t="yes"
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14996 ac_cv_have_uintxx_t="no"
14999 rm -f conftest.$ac_objext conftest.$ac_ext
15002 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15003 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15004 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15005 cat >>confdefs.h <<\_ACEOF
15006 #define HAVE_UINTXX_T 1
15042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15043 echo "$as_me:$LINENO: checking for $ac_func" >&5
15044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15045 if eval "test \"\${$as_ac_var+set}\" = set"; then
15046 echo $ECHO_N "(cached) $ECHO_C" >&6
15048 cat >conftest.$ac_ext <<_ACEOF
15049 #line $LINENO "configure"
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15055 /* System header to define __stub macros and hopefully few prototypes,
15056 which can conflict with char $ac_func (); below.
15057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15058 <limits.h> exists even on freestanding compilers. */
15060 # include <limits.h>
15062 # include <assert.h>
15064 /* Override any gcc2 internal prototype to avoid an error. */
15069 /* We use char because int might match the return type of a gcc2
15070 builtin and then its argument prototype would still apply. */
15072 /* The GNU C library defines this for functions which it implements
15073 to always fail with ENOSYS. Some functions are actually named
15074 something starting with __ and the normal name is an alias. */
15075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15078 char (*f) () = $ac_func;
15087 return f != $ac_func;
15092 rm -f conftest.$ac_objext conftest$ac_exeext
15093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15094 (eval $ac_link) 2>&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); } &&
15098 { ac_try='test -s conftest$ac_exeext'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15104 eval "$as_ac_var=yes"
15106 echo "$as_me: failed program was:" >&5
15107 sed 's/^/| /' conftest.$ac_ext >&5
15109 eval "$as_ac_var=no"
15111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15115 if test `eval echo '${'$as_ac_var'}'` = yes; then
15116 cat >>confdefs.h <<_ACEOF
15117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15121 echo 'configure: cannot find needed function.'; exit 1
15128 for ac_func in fchdir
15130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15131 echo "$as_me:$LINENO: checking for $ac_func" >&5
15132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15133 if eval "test \"\${$as_ac_var+set}\" = set"; then
15134 echo $ECHO_N "(cached) $ECHO_C" >&6
15136 cat >conftest.$ac_ext <<_ACEOF
15137 #line $LINENO "configure"
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h. */
15143 /* System header to define __stub macros and hopefully few prototypes,
15144 which can conflict with char $ac_func (); below.
15145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15146 <limits.h> exists even on freestanding compilers. */
15148 # include <limits.h>
15150 # include <assert.h>
15152 /* Override any gcc2 internal prototype to avoid an error. */
15157 /* We use char because int might match the return type of a gcc2
15158 builtin and then its argument prototype would still apply. */
15160 /* The GNU C library defines this for functions which it implements
15161 to always fail with ENOSYS. Some functions are actually named
15162 something starting with __ and the normal name is an alias. */
15163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15166 char (*f) () = $ac_func;
15175 return f != $ac_func;
15180 rm -f conftest.$ac_objext conftest$ac_exeext
15181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15182 (eval $ac_link) 2>&5
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); } &&
15186 { ac_try='test -s conftest$ac_exeext'
15187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; }; then
15192 eval "$as_ac_var=yes"
15194 echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15197 eval "$as_ac_var=no"
15199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15203 if test `eval echo '${'$as_ac_var'}'` = yes; then
15204 cat >>confdefs.h <<_ACEOF
15205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15207 cat >>confdefs.h <<\_ACEOF
15208 #define HAVE_FCHDIR 1
15215 for ac_func in strtoll
15217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15218 echo "$as_me:$LINENO: checking for $ac_func" >&5
15219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15220 if eval "test \"\${$as_ac_var+set}\" = set"; then
15221 echo $ECHO_N "(cached) $ECHO_C" >&6
15223 cat >conftest.$ac_ext <<_ACEOF
15224 #line $LINENO "configure"
15227 cat confdefs.h >>conftest.$ac_ext
15228 cat >>conftest.$ac_ext <<_ACEOF
15229 /* end confdefs.h. */
15230 /* System header to define __stub macros and hopefully few prototypes,
15231 which can conflict with char $ac_func (); below.
15232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15233 <limits.h> exists even on freestanding compilers. */
15235 # include <limits.h>
15237 # include <assert.h>
15239 /* Override any gcc2 internal prototype to avoid an error. */
15244 /* We use char because int might match the return type of a gcc2
15245 builtin and then its argument prototype would still apply. */
15247 /* The GNU C library defines this for functions which it implements
15248 to always fail with ENOSYS. Some functions are actually named
15249 something starting with __ and the normal name is an alias. */
15250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15253 char (*f) () = $ac_func;
15262 return f != $ac_func;
15267 rm -f conftest.$ac_objext conftest$ac_exeext
15268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15269 (eval $ac_link) 2>&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } &&
15273 { ac_try='test -s conftest$ac_exeext'
15274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275 (eval $ac_try) 2>&5
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); }; }; then
15279 eval "$as_ac_var=yes"
15281 echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15284 eval "$as_ac_var=no"
15286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15290 if test `eval echo '${'$as_ac_var'}'` = yes; then
15291 cat >>confdefs.h <<_ACEOF
15292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15294 cat >>confdefs.h <<\_ACEOF
15295 #define HAVE_STRTOLL 1
15303 for ac_func in chflags
15305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15306 echo "$as_me:$LINENO: checking for $ac_func" >&5
15307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15308 if eval "test \"\${$as_ac_var+set}\" = set"; then
15309 echo $ECHO_N "(cached) $ECHO_C" >&6
15311 cat >conftest.$ac_ext <<_ACEOF
15312 #line $LINENO "configure"
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h. */
15318 /* System header to define __stub macros and hopefully few prototypes,
15319 which can conflict with char $ac_func (); below.
15320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15321 <limits.h> exists even on freestanding compilers. */
15323 # include <limits.h>
15325 # include <assert.h>
15327 /* Override any gcc2 internal prototype to avoid an error. */
15332 /* We use char because int might match the return type of a gcc2
15333 builtin and then its argument prototype would still apply. */
15335 /* The GNU C library defines this for functions which it implements
15336 to always fail with ENOSYS. Some functions are actually named
15337 something starting with __ and the normal name is an alias. */
15338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15341 char (*f) () = $ac_func;
15350 return f != $ac_func;
15355 rm -f conftest.$ac_objext conftest$ac_exeext
15356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15357 (eval $ac_link) 2>&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } &&
15361 { ac_try='test -s conftest$ac_exeext'
15362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15363 (eval $ac_try) 2>&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; }; then
15367 eval "$as_ac_var=yes"
15369 echo "$as_me: failed program was:" >&5
15370 sed 's/^/| /' conftest.$ac_ext >&5
15372 eval "$as_ac_var=no"
15374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15378 if test `eval echo '${'$as_ac_var'}'` = yes; then
15379 cat >>confdefs.h <<_ACEOF
15380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15391 for ac_func in snprintf vsnprintf gethostid getdomainname
15393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15394 echo "$as_me:$LINENO: checking for $ac_func" >&5
15395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15396 if eval "test \"\${$as_ac_var+set}\" = set"; then
15397 echo $ECHO_N "(cached) $ECHO_C" >&6
15399 cat >conftest.$ac_ext <<_ACEOF
15400 #line $LINENO "configure"
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15406 /* System header to define __stub macros and hopefully few prototypes,
15407 which can conflict with char $ac_func (); below.
15408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15409 <limits.h> exists even on freestanding compilers. */
15411 # include <limits.h>
15413 # include <assert.h>
15415 /* Override any gcc2 internal prototype to avoid an error. */
15420 /* We use char because int might match the return type of a gcc2
15421 builtin and then its argument prototype would still apply. */
15423 /* The GNU C library defines this for functions which it implements
15424 to always fail with ENOSYS. Some functions are actually named
15425 something starting with __ and the normal name is an alias. */
15426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15429 char (*f) () = $ac_func;
15438 return f != $ac_func;
15443 rm -f conftest.$ac_objext conftest$ac_exeext
15444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15445 (eval $ac_link) 2>&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); } &&
15449 { ac_try='test -s conftest$ac_exeext'
15450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451 (eval $ac_try) 2>&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; }; then
15455 eval "$as_ac_var=yes"
15457 echo "$as_me: failed program was:" >&5
15458 sed 's/^/| /' conftest.$ac_ext >&5
15460 eval "$as_ac_var=no"
15462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15466 if test `eval echo '${'$as_ac_var'}'` = yes; then
15467 cat >>confdefs.h <<_ACEOF
15468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15479 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15482 echo "$as_me:$LINENO: checking for $ac_func" >&5
15483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15484 if eval "test \"\${$as_ac_var+set}\" = set"; then
15485 echo $ECHO_N "(cached) $ECHO_C" >&6
15487 cat >conftest.$ac_ext <<_ACEOF
15488 #line $LINENO "configure"
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h. */
15494 /* System header to define __stub macros and hopefully few prototypes,
15495 which can conflict with char $ac_func (); below.
15496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15497 <limits.h> exists even on freestanding compilers. */
15499 # include <limits.h>
15501 # include <assert.h>
15503 /* Override any gcc2 internal prototype to avoid an error. */
15508 /* We use char because int might match the return type of a gcc2
15509 builtin and then its argument prototype would still apply. */
15511 /* The GNU C library defines this for functions which it implements
15512 to always fail with ENOSYS. Some functions are actually named
15513 something starting with __ and the normal name is an alias. */
15514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15517 char (*f) () = $ac_func;
15526 return f != $ac_func;
15531 rm -f conftest.$ac_objext conftest$ac_exeext
15532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15533 (eval $ac_link) 2>&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } &&
15537 { ac_try='test -s conftest$ac_exeext'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; }; then
15543 eval "$as_ac_var=yes"
15545 echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15548 eval "$as_ac_var=no"
15550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15553 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15554 if test `eval echo '${'$as_ac_var'}'` = yes; then
15555 cat >>confdefs.h <<_ACEOF
15556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15563 # If resolver functions are not in libc check for -lnsl or -lresolv.
15564 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15565 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15566 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15567 echo $ECHO_N "(cached) $ECHO_C" >&6
15569 cat >conftest.$ac_ext <<_ACEOF
15570 #line $LINENO "configure"
15573 cat confdefs.h >>conftest.$ac_ext
15574 cat >>conftest.$ac_ext <<_ACEOF
15575 /* end confdefs.h. */
15576 /* System header to define __stub macros and hopefully few prototypes,
15577 which can conflict with char gethostbyname_r (); below.
15578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15579 <limits.h> exists even on freestanding compilers. */
15581 # include <limits.h>
15583 # include <assert.h>
15585 /* Override any gcc2 internal prototype to avoid an error. */
15590 /* We use char because int might match the return type of a gcc2
15591 builtin and then its argument prototype would still apply. */
15592 char gethostbyname_r ();
15593 /* The GNU C library defines this for functions which it implements
15594 to always fail with ENOSYS. Some functions are actually named
15595 something starting with __ and the normal name is an alias. */
15596 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15599 char (*f) () = gethostbyname_r;
15608 return f != gethostbyname_r;
15613 rm -f conftest.$ac_objext conftest$ac_exeext
15614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15615 (eval $ac_link) 2>&5
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); } &&
15619 { ac_try='test -s conftest$ac_exeext'
15620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15621 (eval $ac_try) 2>&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); }; }; then
15625 ac_cv_func_gethostbyname_r=yes
15627 echo "$as_me: failed program was:" >&5
15628 sed 's/^/| /' conftest.$ac_ext >&5
15630 ac_cv_func_gethostbyname_r=no
15632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15634 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15635 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15636 if test $ac_cv_func_gethostbyname_r = yes; then
15637 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15638 echo "${ECHO_T}using libc's resolver" >&6
15641 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15642 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15643 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15646 ac_check_lib_save_LIBS=$LIBS
15648 cat >conftest.$ac_ext <<_ACEOF
15649 #line $LINENO "configure"
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h. */
15656 /* Override any gcc2 internal prototype to avoid an error. */
15660 /* We use char because int might match the return type of a gcc2
15661 builtin and then its argument prototype would still apply. */
15662 char gethostbyname_r ();
15666 gethostbyname_r ();
15671 rm -f conftest.$ac_objext conftest$ac_exeext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15673 (eval $ac_link) 2>&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } &&
15677 { ac_try='test -s conftest$ac_exeext'
15678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679 (eval $ac_try) 2>&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }; }; then
15683 ac_cv_lib_nsl_gethostbyname_r=yes
15685 echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15688 ac_cv_lib_nsl_gethostbyname_r=no
15690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15691 LIBS=$ac_check_lib_save_LIBS
15693 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15694 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15695 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15696 cat >>confdefs.h <<_ACEOF
15697 #define HAVE_LIBNSL 1
15705 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15706 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15707 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15708 echo $ECHO_N "(cached) $ECHO_C" >&6
15710 ac_check_lib_save_LIBS=$LIBS
15711 LIBS="-lresolv $LIBS"
15712 cat >conftest.$ac_ext <<_ACEOF
15713 #line $LINENO "configure"
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15720 /* Override any gcc2 internal prototype to avoid an error. */
15724 /* We use char because int might match the return type of a gcc2
15725 builtin and then its argument prototype would still apply. */
15726 char gethostbyname_r ();
15730 gethostbyname_r ();
15735 rm -f conftest.$ac_objext conftest$ac_exeext
15736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15737 (eval $ac_link) 2>&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); } &&
15741 { ac_try='test -s conftest$ac_exeext'
15742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15743 (eval $ac_try) 2>&5
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; }; then
15747 ac_cv_lib_resolv_gethostbyname_r=yes
15749 echo "$as_me: failed program was:" >&5
15750 sed 's/^/| /' conftest.$ac_ext >&5
15752 ac_cv_lib_resolv_gethostbyname_r=no
15754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15755 LIBS=$ac_check_lib_save_LIBS
15757 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15758 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15759 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15760 cat >>confdefs.h <<_ACEOF
15761 #define HAVE_LIBRESOLV 1
15764 LIBS="-lresolv $LIBS"
15772 # Find where sockets are (especially for Solaris)
15773 echo "$as_me:$LINENO: checking for socket" >&5
15774 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15775 if test "${ac_cv_func_socket+set}" = set; then
15776 echo $ECHO_N "(cached) $ECHO_C" >&6
15778 cat >conftest.$ac_ext <<_ACEOF
15779 #line $LINENO "configure"
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h. */
15785 /* System header to define __stub macros and hopefully few prototypes,
15786 which can conflict with char socket (); below.
15787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15788 <limits.h> exists even on freestanding compilers. */
15790 # include <limits.h>
15792 # include <assert.h>
15794 /* Override any gcc2 internal prototype to avoid an error. */
15799 /* We use char because int might match the return type of a gcc2
15800 builtin and then its argument prototype would still apply. */
15802 /* The GNU C library defines this for functions which it implements
15803 to always fail with ENOSYS. Some functions are actually named
15804 something starting with __ and the normal name is an alias. */
15805 #if defined (__stub_socket) || defined (__stub___socket)
15808 char (*f) () = socket;
15817 return f != socket;
15822 rm -f conftest.$ac_objext conftest$ac_exeext
15823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15824 (eval $ac_link) 2>&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); } &&
15828 { ac_try='test -s conftest$ac_exeext'
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; }; then
15834 ac_cv_func_socket=yes
15836 echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15839 ac_cv_func_socket=no
15841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15843 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15844 echo "${ECHO_T}$ac_cv_func_socket" >&6
15845 if test $ac_cv_func_socket = yes; then
15846 echo "$as_me:$LINENO: result: using libc's socket" >&5
15847 echo "${ECHO_T}using libc's socket" >&6
15850 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15851 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15852 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15853 echo $ECHO_N "(cached) $ECHO_C" >&6
15855 ac_check_lib_save_LIBS=$LIBS
15856 LIBS="-lxnet $LIBS"
15857 cat >conftest.$ac_ext <<_ACEOF
15858 #line $LINENO "configure"
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h. */
15865 /* Override any gcc2 internal prototype to avoid an error. */
15869 /* We use char because int might match the return type of a gcc2
15870 builtin and then its argument prototype would still apply. */
15880 rm -f conftest.$ac_objext conftest$ac_exeext
15881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15882 (eval $ac_link) 2>&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); } &&
15886 { ac_try='test -s conftest$ac_exeext'
15887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888 (eval $ac_try) 2>&5
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; }; then
15892 ac_cv_lib_xnet_socket=yes
15894 echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15897 ac_cv_lib_xnet_socket=no
15899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15900 LIBS=$ac_check_lib_save_LIBS
15902 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15903 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15904 if test $ac_cv_lib_xnet_socket = yes; then
15905 cat >>confdefs.h <<_ACEOF
15906 #define HAVE_LIBXNET 1
15909 LIBS="-lxnet $LIBS"
15914 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15915 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15916 if test "${ac_cv_lib_socket_socket+set}" = set; then
15917 echo $ECHO_N "(cached) $ECHO_C" >&6
15919 ac_check_lib_save_LIBS=$LIBS
15920 LIBS="-lsocket $LIBS"
15921 cat >conftest.$ac_ext <<_ACEOF
15922 #line $LINENO "configure"
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h. */
15929 /* Override any gcc2 internal prototype to avoid an error. */
15933 /* We use char because int might match the return type of a gcc2
15934 builtin and then its argument prototype would still apply. */
15944 rm -f conftest.$ac_objext conftest$ac_exeext
15945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15946 (eval $ac_link) 2>&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } &&
15950 { ac_try='test -s conftest$ac_exeext'
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; }; then
15956 ac_cv_lib_socket_socket=yes
15958 echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15961 ac_cv_lib_socket_socket=no
15963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15964 LIBS=$ac_check_lib_save_LIBS
15966 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15967 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15968 if test $ac_cv_lib_socket_socket = yes; then
15969 cat >>confdefs.h <<_ACEOF
15970 #define HAVE_LIBSOCKET 1
15973 LIBS="-lsocket $LIBS"
15978 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15979 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15980 if test "${ac_cv_lib_inet_socket+set}" = set; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15983 ac_check_lib_save_LIBS=$LIBS
15984 LIBS="-linet $LIBS"
15985 cat >conftest.$ac_ext <<_ACEOF
15986 #line $LINENO "configure"
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h. */
15993 /* Override any gcc2 internal prototype to avoid an error. */
15997 /* We use char because int might match the return type of a gcc2
15998 builtin and then its argument prototype would still apply. */
16008 rm -f conftest.$ac_objext conftest$ac_exeext
16009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16010 (eval $ac_link) 2>&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); } &&
16014 { ac_try='test -s conftest$ac_exeext'
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; }; then
16020 ac_cv_lib_inet_socket=yes
16022 echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.$ac_ext >&5
16025 ac_cv_lib_inet_socket=no
16027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16028 LIBS=$ac_check_lib_save_LIBS
16030 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16031 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16032 if test $ac_cv_lib_inet_socket = yes; then
16033 cat >>confdefs.h <<_ACEOF
16034 #define HAVE_LIBINET 1
16037 LIBS="-linet $LIBS"
16045 for ac_func in inet_pton
16047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16048 echo "$as_me:$LINENO: checking for $ac_func" >&5
16049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16050 if eval "test \"\${$as_ac_var+set}\" = set"; then
16051 echo $ECHO_N "(cached) $ECHO_C" >&6
16053 cat >conftest.$ac_ext <<_ACEOF
16054 #line $LINENO "configure"
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h. */
16060 /* System header to define __stub macros and hopefully few prototypes,
16061 which can conflict with char $ac_func (); below.
16062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16063 <limits.h> exists even on freestanding compilers. */
16065 # include <limits.h>
16067 # include <assert.h>
16069 /* Override any gcc2 internal prototype to avoid an error. */
16074 /* We use char because int might match the return type of a gcc2
16075 builtin and then its argument prototype would still apply. */
16077 /* The GNU C library defines this for functions which it implements
16078 to always fail with ENOSYS. Some functions are actually named
16079 something starting with __ and the normal name is an alias. */
16080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16083 char (*f) () = $ac_func;
16092 return f != $ac_func;
16097 rm -f conftest.$ac_objext conftest$ac_exeext
16098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16099 (eval $ac_link) 2>&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } &&
16103 { ac_try='test -s conftest$ac_exeext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 eval "$as_ac_var=yes"
16111 echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16114 eval "$as_ac_var=no"
16116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16120 if test `eval echo '${'$as_ac_var'}'` = yes; then
16121 cat >>confdefs.h <<_ACEOF
16122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16124 cat >>confdefs.h <<\_ACEOF
16125 #define HAVE_INET_PTON 1
16133 for ac_func in strftime
16135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16136 echo "$as_me:$LINENO: checking for $ac_func" >&5
16137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16138 if eval "test \"\${$as_ac_var+set}\" = set"; then
16139 echo $ECHO_N "(cached) $ECHO_C" >&6
16141 cat >conftest.$ac_ext <<_ACEOF
16142 #line $LINENO "configure"
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h. */
16148 /* System header to define __stub macros and hopefully few prototypes,
16149 which can conflict with char $ac_func (); below.
16150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16151 <limits.h> exists even on freestanding compilers. */
16153 # include <limits.h>
16155 # include <assert.h>
16157 /* Override any gcc2 internal prototype to avoid an error. */
16162 /* We use char because int might match the return type of a gcc2
16163 builtin and then its argument prototype would still apply. */
16165 /* The GNU C library defines this for functions which it implements
16166 to always fail with ENOSYS. Some functions are actually named
16167 something starting with __ and the normal name is an alias. */
16168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16171 char (*f) () = $ac_func;
16180 return f != $ac_func;
16185 rm -f conftest.$ac_objext conftest$ac_exeext
16186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16187 (eval $ac_link) 2>&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); } &&
16191 { ac_try='test -s conftest$ac_exeext'
16192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16193 (eval $ac_try) 2>&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); }; }; then
16197 eval "$as_ac_var=yes"
16199 echo "$as_me: failed program was:" >&5
16200 sed 's/^/| /' conftest.$ac_ext >&5
16202 eval "$as_ac_var=no"
16204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16208 if test `eval echo '${'$as_ac_var'}'` = yes; then
16209 cat >>confdefs.h <<_ACEOF
16210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16214 # strftime is in -lintl on SCO UNIX.
16215 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16216 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16217 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16218 echo $ECHO_N "(cached) $ECHO_C" >&6
16220 ac_check_lib_save_LIBS=$LIBS
16221 LIBS="-lintl $LIBS"
16222 cat >conftest.$ac_ext <<_ACEOF
16223 #line $LINENO "configure"
16226 cat confdefs.h >>conftest.$ac_ext
16227 cat >>conftest.$ac_ext <<_ACEOF
16228 /* end confdefs.h. */
16230 /* Override any gcc2 internal prototype to avoid an error. */
16234 /* We use char because int might match the return type of a gcc2
16235 builtin and then its argument prototype would still apply. */
16245 rm -f conftest.$ac_objext conftest$ac_exeext
16246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16247 (eval $ac_link) 2>&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } &&
16251 { ac_try='test -s conftest$ac_exeext'
16252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253 (eval $ac_try) 2>&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; }; then
16257 ac_cv_lib_intl_strftime=yes
16259 echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16262 ac_cv_lib_intl_strftime=no
16264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16265 LIBS=$ac_check_lib_save_LIBS
16267 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16268 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16269 if test $ac_cv_lib_intl_strftime = yes; then
16270 cat >>confdefs.h <<\_ACEOF
16271 #define HAVE_STRFTIME 1
16274 LIBS="-lintl $LIBS"
16281 for ac_func in vprintf
16283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16284 echo "$as_me:$LINENO: checking for $ac_func" >&5
16285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16286 if eval "test \"\${$as_ac_var+set}\" = set"; then
16287 echo $ECHO_N "(cached) $ECHO_C" >&6
16289 cat >conftest.$ac_ext <<_ACEOF
16290 #line $LINENO "configure"
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h. */
16296 /* System header to define __stub macros and hopefully few prototypes,
16297 which can conflict with char $ac_func (); below.
16298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16299 <limits.h> exists even on freestanding compilers. */
16301 # include <limits.h>
16303 # include <assert.h>
16305 /* Override any gcc2 internal prototype to avoid an error. */
16310 /* We use char because int might match the return type of a gcc2
16311 builtin and then its argument prototype would still apply. */
16313 /* The GNU C library defines this for functions which it implements
16314 to always fail with ENOSYS. Some functions are actually named
16315 something starting with __ and the normal name is an alias. */
16316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16319 char (*f) () = $ac_func;
16328 return f != $ac_func;
16333 rm -f conftest.$ac_objext conftest$ac_exeext
16334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16335 (eval $ac_link) 2>&5
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); } &&
16339 { ac_try='test -s conftest$ac_exeext'
16340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16341 (eval $ac_try) 2>&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; }; then
16345 eval "$as_ac_var=yes"
16347 echo "$as_me: failed program was:" >&5
16348 sed 's/^/| /' conftest.$ac_ext >&5
16350 eval "$as_ac_var=no"
16352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16356 if test `eval echo '${'$as_ac_var'}'` = yes; then
16357 cat >>confdefs.h <<_ACEOF
16358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16361 echo "$as_me:$LINENO: checking for _doprnt" >&5
16362 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16363 if test "${ac_cv_func__doprnt+set}" = set; then
16364 echo $ECHO_N "(cached) $ECHO_C" >&6
16366 cat >conftest.$ac_ext <<_ACEOF
16367 #line $LINENO "configure"
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 /* System header to define __stub macros and hopefully few prototypes,
16374 which can conflict with char _doprnt (); below.
16375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16376 <limits.h> exists even on freestanding compilers. */
16378 # include <limits.h>
16380 # include <assert.h>
16382 /* Override any gcc2 internal prototype to avoid an error. */
16387 /* We use char because int might match the return type of a gcc2
16388 builtin and then its argument prototype would still apply. */
16390 /* The GNU C library defines this for functions which it implements
16391 to always fail with ENOSYS. Some functions are actually named
16392 something starting with __ and the normal name is an alias. */
16393 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16396 char (*f) () = _doprnt;
16405 return f != _doprnt;
16410 rm -f conftest.$ac_objext conftest$ac_exeext
16411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16412 (eval $ac_link) 2>&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); } &&
16416 { ac_try='test -s conftest$ac_exeext'
16417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; }; then
16422 ac_cv_func__doprnt=yes
16424 echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16427 ac_cv_func__doprnt=no
16429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16431 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16432 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16433 if test $ac_cv_func__doprnt = yes; then
16435 cat >>confdefs.h <<\_ACEOF
16436 #define HAVE_DOPRNT 1
16445 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16446 # for constant arguments. Useless!
16447 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16448 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16449 if test "${ac_cv_working_alloca_h+set}" = set; then
16450 echo $ECHO_N "(cached) $ECHO_C" >&6
16452 cat >conftest.$ac_ext <<_ACEOF
16453 #line $LINENO "configure"
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h. */
16459 #include <alloca.h>
16463 char *p = (char *) alloca (2 * sizeof (int));
16468 rm -f conftest.$ac_objext conftest$ac_exeext
16469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16470 (eval $ac_link) 2>&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); } &&
16474 { ac_try='test -s conftest$ac_exeext'
16475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; }; then
16480 ac_cv_working_alloca_h=yes
16482 echo "$as_me: failed program was:" >&5
16483 sed 's/^/| /' conftest.$ac_ext >&5
16485 ac_cv_working_alloca_h=no
16487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16489 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16490 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16491 if test $ac_cv_working_alloca_h = yes; then
16493 cat >>confdefs.h <<\_ACEOF
16494 #define HAVE_ALLOCA_H 1
16499 echo "$as_me:$LINENO: checking for alloca" >&5
16500 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16501 if test "${ac_cv_func_alloca_works+set}" = set; then
16502 echo $ECHO_N "(cached) $ECHO_C" >&6
16504 cat >conftest.$ac_ext <<_ACEOF
16505 #line $LINENO "configure"
16508 cat confdefs.h >>conftest.$ac_ext
16509 cat >>conftest.$ac_ext <<_ACEOF
16510 /* end confdefs.h. */
16512 # define alloca __builtin_alloca
16515 # include <malloc.h>
16516 # define alloca _alloca
16519 # include <alloca.h>
16524 # ifndef alloca /* predefined by HP cc +Olibcalls */
16535 char *p = (char *) alloca (1);
16540 rm -f conftest.$ac_objext conftest$ac_exeext
16541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16542 (eval $ac_link) 2>&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } &&
16546 { ac_try='test -s conftest$ac_exeext'
16547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16548 (eval $ac_try) 2>&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); }; }; then
16552 ac_cv_func_alloca_works=yes
16554 echo "$as_me: failed program was:" >&5
16555 sed 's/^/| /' conftest.$ac_ext >&5
16557 ac_cv_func_alloca_works=no
16559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16561 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16562 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16564 if test $ac_cv_func_alloca_works = yes; then
16566 cat >>confdefs.h <<\_ACEOF
16567 #define HAVE_ALLOCA 1
16571 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16572 # that cause trouble. Some versions do not even contain alloca or
16573 # contain a buggy version. If you still want to use their alloca,
16574 # use ar to extract alloca.o from them instead of compiling alloca.c.
16576 ALLOCA=alloca.$ac_objext
16578 cat >>confdefs.h <<\_ACEOF
16583 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16584 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16585 if test "${ac_cv_os_cray+set}" = set; then
16586 echo $ECHO_N "(cached) $ECHO_C" >&6
16588 cat >conftest.$ac_ext <<_ACEOF
16589 #line $LINENO "configure"
16592 cat confdefs.h >>conftest.$ac_ext
16593 cat >>conftest.$ac_ext <<_ACEOF
16594 /* end confdefs.h. */
16595 #if defined(CRAY) && ! defined(CRAY2)
16602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16603 $EGREP "webecray" >/dev/null 2>&1; then
16611 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16612 echo "${ECHO_T}$ac_cv_os_cray" >&6
16613 if test $ac_cv_os_cray = yes; then
16614 for ac_func in _getb67 GETB67 getb67; do
16615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16616 echo "$as_me:$LINENO: checking for $ac_func" >&5
16617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16618 if eval "test \"\${$as_ac_var+set}\" = set"; then
16619 echo $ECHO_N "(cached) $ECHO_C" >&6
16621 cat >conftest.$ac_ext <<_ACEOF
16622 #line $LINENO "configure"
16625 cat confdefs.h >>conftest.$ac_ext
16626 cat >>conftest.$ac_ext <<_ACEOF
16627 /* end confdefs.h. */
16628 /* System header to define __stub macros and hopefully few prototypes,
16629 which can conflict with char $ac_func (); below.
16630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16631 <limits.h> exists even on freestanding compilers. */
16633 # include <limits.h>
16635 # include <assert.h>
16637 /* Override any gcc2 internal prototype to avoid an error. */
16642 /* We use char because int might match the return type of a gcc2
16643 builtin and then its argument prototype would still apply. */
16645 /* The GNU C library defines this for functions which it implements
16646 to always fail with ENOSYS. Some functions are actually named
16647 something starting with __ and the normal name is an alias. */
16648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16651 char (*f) () = $ac_func;
16660 return f != $ac_func;
16665 rm -f conftest.$ac_objext conftest$ac_exeext
16666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16667 (eval $ac_link) 2>&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } &&
16671 { ac_try='test -s conftest$ac_exeext'
16672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673 (eval $ac_try) 2>&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); }; }; then
16677 eval "$as_ac_var=yes"
16679 echo "$as_me: failed program was:" >&5
16680 sed 's/^/| /' conftest.$ac_ext >&5
16682 eval "$as_ac_var=no"
16684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16688 if test `eval echo '${'$as_ac_var'}'` = yes; then
16690 cat >>confdefs.h <<_ACEOF
16691 #define CRAY_STACKSEG_END $ac_func
16700 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16701 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16702 if test "${ac_cv_c_stack_direction+set}" = set; then
16703 echo $ECHO_N "(cached) $ECHO_C" >&6
16705 if test "$cross_compiling" = yes; then
16706 ac_cv_c_stack_direction=0
16708 cat >conftest.$ac_ext <<_ACEOF
16709 #line $LINENO "configure"
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h. */
16716 find_stack_direction ()
16718 static char *addr = 0;
16723 return find_stack_direction ();
16726 return (&dummy > addr) ? 1 : -1;
16732 exit (find_stack_direction () < 0);
16735 rm -f conftest$ac_exeext
16736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16737 (eval $ac_link) 2>&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742 (eval $ac_try) 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; }; then
16746 ac_cv_c_stack_direction=1
16748 echo "$as_me: program exited with status $ac_status" >&5
16749 echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16752 ( exit $ac_status )
16753 ac_cv_c_stack_direction=-1
16755 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16758 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16759 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16761 cat >>confdefs.h <<_ACEOF
16762 #define STACK_DIRECTION $ac_cv_c_stack_direction
16768 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16769 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16770 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16771 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16774 ac_check_lib_save_LIBS=$LIBS
16776 cat >conftest.$ac_ext <<_ACEOF
16777 #line $LINENO "configure"
16780 cat confdefs.h >>conftest.$ac_ext
16781 cat >>conftest.$ac_ext <<_ACEOF
16782 /* end confdefs.h. */
16784 /* Override any gcc2 internal prototype to avoid an error. */
16788 /* We use char because int might match the return type of a gcc2
16789 builtin and then its argument prototype would still apply. */
16799 rm -f conftest.$ac_objext conftest$ac_exeext
16800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16801 (eval $ac_link) 2>&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } &&
16805 { ac_try='test -s conftest$ac_exeext'
16806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16807 (eval $ac_try) 2>&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; }; then
16811 ac_cv_lib_sun_getmntent=yes
16813 echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16816 ac_cv_lib_sun_getmntent=no
16818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16819 LIBS=$ac_check_lib_save_LIBS
16821 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16822 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16823 if test $ac_cv_lib_sun_getmntent = yes; then
16826 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16827 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16828 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16829 echo $ECHO_N "(cached) $ECHO_C" >&6
16831 ac_check_lib_save_LIBS=$LIBS
16833 cat >conftest.$ac_ext <<_ACEOF
16834 #line $LINENO "configure"
16837 cat confdefs.h >>conftest.$ac_ext
16838 cat >>conftest.$ac_ext <<_ACEOF
16839 /* end confdefs.h. */
16841 /* Override any gcc2 internal prototype to avoid an error. */
16845 /* We use char because int might match the return type of a gcc2
16846 builtin and then its argument prototype would still apply. */
16856 rm -f conftest.$ac_objext conftest$ac_exeext
16857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16858 (eval $ac_link) 2>&5
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); } &&
16862 { ac_try='test -s conftest$ac_exeext'
16863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864 (eval $ac_try) 2>&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; }; then
16868 ac_cv_lib_seq_getmntent=yes
16870 echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16873 ac_cv_lib_seq_getmntent=no
16875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16876 LIBS=$ac_check_lib_save_LIBS
16878 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16879 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16880 if test $ac_cv_lib_seq_getmntent = yes; then
16883 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16884 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16885 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16888 ac_check_lib_save_LIBS=$LIBS
16890 cat >conftest.$ac_ext <<_ACEOF
16891 #line $LINENO "configure"
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h. */
16898 /* Override any gcc2 internal prototype to avoid an error. */
16902 /* We use char because int might match the return type of a gcc2
16903 builtin and then its argument prototype would still apply. */
16913 rm -f conftest.$ac_objext conftest$ac_exeext
16914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16915 (eval $ac_link) 2>&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } &&
16919 { ac_try='test -s conftest$ac_exeext'
16920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; }; then
16925 ac_cv_lib_gen_getmntent=yes
16927 echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16930 ac_cv_lib_gen_getmntent=no
16932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16933 LIBS=$ac_check_lib_save_LIBS
16935 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16936 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16937 if test $ac_cv_lib_gen_getmntent = yes; then
16946 for ac_func in getmntent
16948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16949 echo "$as_me:$LINENO: checking for $ac_func" >&5
16950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16951 if eval "test \"\${$as_ac_var+set}\" = set"; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16954 cat >conftest.$ac_ext <<_ACEOF
16955 #line $LINENO "configure"
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16961 /* System header to define __stub macros and hopefully few prototypes,
16962 which can conflict with char $ac_func (); below.
16963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16964 <limits.h> exists even on freestanding compilers. */
16966 # include <limits.h>
16968 # include <assert.h>
16970 /* Override any gcc2 internal prototype to avoid an error. */
16975 /* We use char because int might match the return type of a gcc2
16976 builtin and then its argument prototype would still apply. */
16978 /* The GNU C library defines this for functions which it implements
16979 to always fail with ENOSYS. Some functions are actually named
16980 something starting with __ and the normal name is an alias. */
16981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16984 char (*f) () = $ac_func;
16993 return f != $ac_func;
16998 rm -f conftest.$ac_objext conftest$ac_exeext
16999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17000 (eval $ac_link) 2>&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); } &&
17004 { ac_try='test -s conftest$ac_exeext'
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; }; then
17010 eval "$as_ac_var=yes"
17012 echo "$as_me: failed program was:" >&5
17013 sed 's/^/| /' conftest.$ac_ext >&5
17015 eval "$as_ac_var=no"
17017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17021 if test `eval echo '${'$as_ac_var'}'` = yes; then
17022 cat >>confdefs.h <<_ACEOF
17023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17030 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17031 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17032 if test "${ac_cv_func_closedir_void+set}" = set; then
17033 echo $ECHO_N "(cached) $ECHO_C" >&6
17035 if test "$cross_compiling" = yes; then
17036 ac_cv_func_closedir_void=yes
17038 cat >conftest.$ac_ext <<_ACEOF
17039 #line $LINENO "configure"
17042 cat confdefs.h >>conftest.$ac_ext
17043 cat >>conftest.$ac_ext <<_ACEOF
17044 /* end confdefs.h. */
17045 $ac_includes_default
17046 #include <$ac_header_dirent>
17047 #ifndef __cplusplus
17054 exit (closedir (opendir (".")) != 0);
17059 rm -f conftest$ac_exeext
17060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17061 (eval $ac_link) 2>&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066 (eval $ac_try) 2>&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
17070 ac_cv_func_closedir_void=no
17072 echo "$as_me: program exited with status $ac_status" >&5
17073 echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17076 ( exit $ac_status )
17077 ac_cv_func_closedir_void=yes
17079 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17082 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17083 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17084 if test $ac_cv_func_closedir_void = yes; then
17086 cat >>confdefs.h <<\_ACEOF
17087 #define CLOSEDIR_VOID 1
17092 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17093 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17094 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17097 if test "$cross_compiling" = yes; then
17098 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17099 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17100 { (exit 1); exit 1; }; }
17102 cat >conftest.$ac_ext <<_ACEOF
17103 #line $LINENO "configure"
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h. */
17110 # include <unistd.h>
17116 /* If this system has a BSD-style setpgrp which takes arguments,
17117 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17118 exit successfully. */
17119 exit (setpgrp (1,1) == -1 ? 0 : 1);
17124 rm -f conftest$ac_exeext
17125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17126 (eval $ac_link) 2>&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; }; then
17135 ac_cv_func_setpgrp_void=no
17137 echo "$as_me: program exited with status $ac_status" >&5
17138 echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17141 ( exit $ac_status )
17142 ac_cv_func_setpgrp_void=yes
17144 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17147 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17148 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17149 if test $ac_cv_func_setpgrp_void = yes; then
17151 cat >>confdefs.h <<\_ACEOF
17152 #define SETPGRP_VOID 1
17156 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17157 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17158 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17161 # Some versions of Solaris, SCO, and the GNU C Library
17162 # have a broken or incompatible fnmatch.
17163 # So we run a test program. If we are cross-compiling, take no chance.
17164 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17165 if test "$cross_compiling" = yes; then
17166 ac_cv_func_fnmatch_works=cross
17168 cat >conftest.$ac_ext <<_ACEOF
17169 #line $LINENO "configure"
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h. */
17175 #include <fnmatch.h>
17176 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17177 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17183 (!(y ("a*", "abc", 0)
17184 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17185 && y ("a\\\\bc", "abc", 0)
17186 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17187 && y ("*x", ".x", 0)
17188 && n ("*x", ".x", FNM_PERIOD)
17194 rm -f conftest$ac_exeext
17195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17196 (eval $ac_link) 2>&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201 (eval $ac_try) 2>&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; }; then
17205 ac_cv_func_fnmatch_works=yes
17207 echo "$as_me: program exited with status $ac_status" >&5
17208 echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17211 ( exit $ac_status )
17212 ac_cv_func_fnmatch_works=no
17214 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17217 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17218 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17219 if test $ac_cv_func_fnmatch_works = yes; then
17221 cat >>confdefs.h <<\_ACEOF
17222 #define HAVE_FNMATCH 1
17231 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17232 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17233 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17234 echo $ECHO_N "(cached) $ECHO_C" >&6
17236 ac_check_lib_save_LIBS=$LIBS
17237 LIBS="-lxpg4 $LIBS"
17238 cat >conftest.$ac_ext <<_ACEOF
17239 #line $LINENO "configure"
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h. */
17246 /* Override any gcc2 internal prototype to avoid an error. */
17250 /* We use char because int might match the return type of a gcc2
17251 builtin and then its argument prototype would still apply. */
17261 rm -f conftest.$ac_objext conftest$ac_exeext
17262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17263 (eval $ac_link) 2>&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); } &&
17267 { ac_try='test -s conftest$ac_exeext'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; }; then
17273 ac_cv_lib_xpg4_setlocale=yes
17275 echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17278 ac_cv_lib_xpg4_setlocale=no
17280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17281 LIBS=$ac_check_lib_save_LIBS
17283 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17284 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17285 if test $ac_cv_lib_xpg4_setlocale = yes; then
17286 LIBS="$LIBS -lxpg4"
17292 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17293 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17294 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17297 ac_check_lib_save_LIBS=$LIBS
17299 cat >conftest.$ac_ext <<_ACEOF
17300 #line $LINENO "configure"
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h. */
17307 /* Override any gcc2 internal prototype to avoid an error. */
17311 /* We use char because int might match the return type of a gcc2
17312 builtin and then its argument prototype would still apply. */
17322 rm -f conftest.$ac_objext conftest$ac_exeext
17323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17324 (eval $ac_link) 2>&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } &&
17328 { ac_try='test -s conftest$ac_exeext'
17329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17330 (eval $ac_try) 2>&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; }; then
17334 ac_cv_lib_sun_getpwnam=yes
17336 echo "$as_me: failed program was:" >&5
17337 sed 's/^/| /' conftest.$ac_ext >&5
17339 ac_cv_lib_sun_getpwnam=no
17341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17342 LIBS=$ac_check_lib_save_LIBS
17344 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17345 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17346 if test $ac_cv_lib_sun_getpwnam = yes; then
17347 cat >>confdefs.h <<_ACEOF
17348 #define HAVE_LIBSUN 1
17357 for ac_header in zlib.h
17359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17361 echo "$as_me:$LINENO: checking for $ac_header" >&5
17362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17364 echo $ECHO_N "(cached) $ECHO_C" >&6
17366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17369 # Is the header compilable?
17370 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17372 cat >conftest.$ac_ext <<_ACEOF
17373 #line $LINENO "configure"
17376 cat confdefs.h >>conftest.$ac_ext
17377 cat >>conftest.$ac_ext <<_ACEOF
17378 /* end confdefs.h. */
17379 $ac_includes_default
17380 #include <$ac_header>
17382 rm -f conftest.$ac_objext
17383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17384 (eval $ac_compile) 2>&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); } &&
17388 { ac_try='test -s conftest.$ac_objext'
17389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17390 (eval $ac_try) 2>&5
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); }; }; then
17394 ac_header_compiler=yes
17396 echo "$as_me: failed program was:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17399 ac_header_compiler=no
17401 rm -f conftest.$ac_objext conftest.$ac_ext
17402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17403 echo "${ECHO_T}$ac_header_compiler" >&6
17405 # Is the header present?
17406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17408 cat >conftest.$ac_ext <<_ACEOF
17409 #line $LINENO "configure"
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h. */
17415 #include <$ac_header>
17417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17420 grep -v '^ *+' conftest.er1 >conftest.err
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } >/dev/null; then
17425 if test -s conftest.err; then
17426 ac_cpp_err=$ac_c_preproc_warn_flag
17433 if test -z "$ac_cpp_err"; then
17434 ac_header_preproc=yes
17436 echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17439 ac_header_preproc=no
17441 rm -f conftest.err conftest.$ac_ext
17442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17443 echo "${ECHO_T}$ac_header_preproc" >&6
17445 # So? What about this header?
17446 case $ac_header_compiler:$ac_header_preproc in
17448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17454 ## ------------------------------------ ##
17455 ## Report this to bug-autoconf@gnu.org. ##
17456 ## ------------------------------------ ##
17459 sed "s/^/$as_me: WARNING: /" >&2
17462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17470 ## ------------------------------------ ##
17471 ## Report this to bug-autoconf@gnu.org. ##
17472 ## ------------------------------------ ##
17475 sed "s/^/$as_me: WARNING: /" >&2
17478 echo "$as_me:$LINENO: checking for $ac_header" >&5
17479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17481 echo $ECHO_N "(cached) $ECHO_C" >&6
17483 eval "$as_ac_Header=$ac_header_preproc"
17485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17490 cat >>confdefs.h <<_ACEOF
17491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17498 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17499 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17500 if test "${ac_cv_lib_z_deflate+set}" = set; then
17501 echo $ECHO_N "(cached) $ECHO_C" >&6
17503 ac_check_lib_save_LIBS=$LIBS
17505 cat >conftest.$ac_ext <<_ACEOF
17506 #line $LINENO "configure"
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h. */
17513 /* Override any gcc2 internal prototype to avoid an error. */
17517 /* We use char because int might match the return type of a gcc2
17518 builtin and then its argument prototype would still apply. */
17528 rm -f conftest.$ac_objext conftest$ac_exeext
17529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17530 (eval $ac_link) 2>&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } &&
17534 { ac_try='test -s conftest$ac_exeext'
17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536 (eval $ac_try) 2>&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; }; then
17540 ac_cv_lib_z_deflate=yes
17542 echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17545 ac_cv_lib_z_deflate=no
17547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17548 LIBS=$ac_check_lib_save_LIBS
17550 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17551 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17552 if test $ac_cv_lib_z_deflate = yes; then
17557 if test x$FDLIBS = x-lz; then
17558 cat >>confdefs.h <<\_ACEOF
17559 #define HAVE_LIBZ 1
17566 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17567 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17568 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17569 echo $ECHO_N "(cached) $ECHO_C" >&6
17571 ac_check_lib_save_LIBS=$LIBS
17572 LIBS="-lpthread $LIBS"
17573 cat >conftest.$ac_ext <<_ACEOF
17574 #line $LINENO "configure"
17577 cat confdefs.h >>conftest.$ac_ext
17578 cat >>conftest.$ac_ext <<_ACEOF
17579 /* end confdefs.h. */
17581 /* Override any gcc2 internal prototype to avoid an error. */
17585 /* We use char because int might match the return type of a gcc2
17586 builtin and then its argument prototype would still apply. */
17587 char pthread_create ();
17596 rm -f conftest.$ac_objext conftest$ac_exeext
17597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17598 (eval $ac_link) 2>&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } &&
17602 { ac_try='test -s conftest$ac_exeext'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
17608 ac_cv_lib_pthread_pthread_create=yes
17610 echo "$as_me: failed program was:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17613 ac_cv_lib_pthread_pthread_create=no
17615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17616 LIBS=$ac_check_lib_save_LIBS
17618 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17619 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17620 if test $ac_cv_lib_pthread_pthread_create = yes; then
17621 PTHREAD_LIB="-lpthread"
17623 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17624 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17625 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17628 ac_check_lib_save_LIBS=$LIBS
17629 LIBS="-lpthreads $LIBS"
17630 cat >conftest.$ac_ext <<_ACEOF
17631 #line $LINENO "configure"
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h. */
17638 /* Override any gcc2 internal prototype to avoid an error. */
17642 /* We use char because int might match the return type of a gcc2
17643 builtin and then its argument prototype would still apply. */
17644 char pthread_create ();
17653 rm -f conftest.$ac_objext conftest$ac_exeext
17654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17655 (eval $ac_link) 2>&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
17659 { ac_try='test -s conftest$ac_exeext'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 ac_cv_lib_pthreads_pthread_create=yes
17667 echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17670 ac_cv_lib_pthreads_pthread_create=no
17672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17673 LIBS=$ac_check_lib_save_LIBS
17675 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17676 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17677 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17678 PTHREAD_LIB="-lpthreads"
17680 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17681 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17682 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17685 ac_check_lib_save_LIBS=$LIBS
17687 cat >conftest.$ac_ext <<_ACEOF
17688 #line $LINENO "configure"
17691 cat confdefs.h >>conftest.$ac_ext
17692 cat >>conftest.$ac_ext <<_ACEOF
17693 /* end confdefs.h. */
17695 /* Override any gcc2 internal prototype to avoid an error. */
17699 /* We use char because int might match the return type of a gcc2
17700 builtin and then its argument prototype would still apply. */
17701 char pthread_create ();
17710 rm -f conftest.$ac_objext conftest$ac_exeext
17711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17712 (eval $ac_link) 2>&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } &&
17716 { ac_try='test -s conftest$ac_exeext'
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; }; then
17722 ac_cv_lib_c_r_pthread_create=yes
17724 echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17727 ac_cv_lib_c_r_pthread_create=no
17729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17730 LIBS=$ac_check_lib_save_LIBS
17732 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17733 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17734 if test $ac_cv_lib_c_r_pthread_create = yes; then
17735 PTHREAD_LIB="-lc_r"
17737 echo "$as_me:$LINENO: checking for pthread_create" >&5
17738 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17739 if test "${ac_cv_func_pthread_create+set}" = set; then
17740 echo $ECHO_N "(cached) $ECHO_C" >&6
17742 cat >conftest.$ac_ext <<_ACEOF
17743 #line $LINENO "configure"
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h. */
17749 /* System header to define __stub macros and hopefully few prototypes,
17750 which can conflict with char pthread_create (); below.
17751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17752 <limits.h> exists even on freestanding compilers. */
17754 # include <limits.h>
17756 # include <assert.h>
17758 /* Override any gcc2 internal prototype to avoid an error. */
17763 /* We use char because int might match the return type of a gcc2
17764 builtin and then its argument prototype would still apply. */
17765 char pthread_create ();
17766 /* The GNU C library defines this for functions which it implements
17767 to always fail with ENOSYS. Some functions are actually named
17768 something starting with __ and the normal name is an alias. */
17769 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17772 char (*f) () = pthread_create;
17781 return f != pthread_create;
17786 rm -f conftest.$ac_objext conftest$ac_exeext
17787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17788 (eval $ac_link) 2>&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } &&
17792 { ac_try='test -s conftest$ac_exeext'
17793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794 (eval $ac_try) 2>&5
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; }; then
17798 ac_cv_func_pthread_create=yes
17800 echo "$as_me: failed program was:" >&5
17801 sed 's/^/| /' conftest.$ac_ext >&5
17803 ac_cv_func_pthread_create=no
17805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17807 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17808 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17821 cat >>confdefs.h <<\_ACEOF
17827 CFLAGS=${CFLAGS--O}
17828 LDFLAGS=${LDFLAGS--O}
17829 DB_LIBS="${SQL_LFLAGS}"
17831 CPPFLAGS="$CPPFLAGS"
17856 # Finally we set appropriate distribution specific
17857 # variables and defaults
17859 # PFILES are platform specific files
17860 PFILES="platforms/Makefile"
17863 hostname=`uname -n | cut -d '.' -f 1`
17864 case "$DISTNAME" in
17867 PSCMD="ps -e -o pid,comm"
17868 PFILES="${PFILES} \
17869 platforms/aix/Makefile"
17870 TAPEDRIVE="/dev/rmt0.1"
17874 PTHREAD_LIB="-lpthread -lexc"
17875 if test "${CC}" = "gcc" ; then
17882 TAPEDRIVE="/dev/nrmt0"
17885 DISTVER=`uname -a |awk '{print $3}'`
17886 TAPEDRIVE="/dev/nrmt0"
17887 PTHREAD_LIB="-pthread"
17888 CFLAGS="${CFLAGS} -pthread"
17889 PSCMD="ps -x -o pid,command"
17892 PFILES="${PFILES} \
17893 platforms/bsdi/Makefile \
17894 platforms/bsdi/bacula-fd \
17895 platforms/bsdi/bacula-sd \
17896 platforms/bsdi/bacula-dir"
17897 largefile_support="yes"
17900 DISTVER=`uname -a |awk '{print $3}'`
17901 TAPEDRIVE="/dev/nrst0"
17903 WCFLAGS="-mwindows"
17904 WLDFLAGS="-mwindows"
17908 TAPEDRIVE="/dev/nst0"
17909 PSCMD="ps -e -o pid,command"
17910 PFILES="${PFILES} \
17911 platforms/darwin/Makefile"
17914 DISTVER=`cat /etc/debian_version`
17915 TAPEDRIVE="/dev/nrst0"
17916 PSCMD="ps -e -o pid,command"
17919 DISTVER=`uname -a |awk '{print $3}'`
17920 VER=`echo $DISTVER | cut -c 1`
17921 if test x$VER = x4 ; then
17922 PTHREAD_LIB="-pthread"
17923 CFLAGS="${CFLAGS} -pthread"
17927 TAPEDRIVE="/dev/nrsa0"
17928 PSCMD="ps -x -o pid,command"
17929 PFILES="${PFILES} \
17930 platforms/freebsd/Makefile \
17931 platforms/freebsd/bacula-fd \
17932 platforms/freebsd/bacula-sd \
17933 platforms/freebsd/bacula-dir"
17934 largefile_support="yes"
17937 PSCMD="UNIX95=1 ps -e -o pid,comm"
17938 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
17940 TAPEDRIVE="/dev/rmt/0hnb"
17944 TAPEDRIVE="/dev/rmt/0cbn"
17945 PSCMD="ps -e -o pid,comm"
17946 PFILES="${PFILES} \
17947 platforms/irix/Makefile \
17948 platforms/irix/bacula-fd \
17949 platforms/irix/bacula-sd \
17950 platforms/irix/bacula-dir"
17953 DISTVER=`uname -a |awk '{print $3}'`
17956 TAPEDRIVE="/dev/nrst0"
17957 PSCMD="ps -a -o pid,command"
17958 PTHREAD_LIB="-pthread"
17959 CFLAGS="${CFLAGS} -pthread"
17962 DISTVER=`uname -a |awk '{print $3}'`
17965 TAPEDRIVE="/dev/nrst0"
17966 PSCMD="ps -a -o pid,command"
17967 PTHREAD_LIB="-pthread"
17968 CFLAGS="${CFLAGS} -pthread"
17969 PFILES="${PFILES} \
17970 platforms/openbsd/Makefile \
17971 platforms/openbsd/bacula-fd \
17972 platforms/openbsd/bacula-sd \
17973 platforms/openbsd/bacula-dir"
17976 if test `cat /etc/redhat-release | grep release |\
17977 cut -f 3 -d ' '`x = "Enterprise"x ; then
17978 DISTVER="Enterprise "`cat /etc/redhat-release | grep release |\
17981 DISTVER=`cat /etc/redhat-release | grep release |\
17984 TAPEDRIVE="/dev/nst0"
17985 PSCMD="ps -e -o pid,command"
17986 PFILES="${PFILES} \
17987 platforms/redhat/Makefile \
17988 platforms/redhat/bacula-fd \
17989 platforms/redhat/bacula-sd \
17990 platforms/redhat/bacula-dir \
17991 platforms/redhat/bacula.spec \
17993 hostname=`hostname -s`
17996 DISTVER=`cat /etc/mandrake-release | grep release |\
17998 TAPEDRIVE="/dev/nst0"
17999 PSCMD="ps -e -o pid,command"
18000 PFILES="${PFILES} \
18001 platforms/mandrake/Makefile \
18002 platforms/mandrake/bacula-fd \
18003 platforms/mandrake/bacula-sd \
18004 platforms/mandrake/bacula-dir \
18005 platforms/mandrake/bacula.spec \
18009 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18010 TAPEDRIVE="/dev/nst0"
18011 PSCMD="ps -e -o pid,command"
18012 PFILES="${PFILES} \
18013 platforms/gentoo/Makefile \
18014 platforms/gentoo/bacula-fd \
18015 platforms/gentoo/bacula-sd \
18016 platforms/gentoo/bacula-dir"
18019 DISTVER=`cat /etc/slackware-version`
18020 TAPEDRIVE="/dev/nst0"
18021 PSCMD="ps -e -o pid,command"
18022 PFILES="${PFILES} \
18023 platforms/slackware/Makefile \
18024 platforms/slackware/rc.bacula-fd \
18025 platforms/slackware/rc.bacula-sd \
18026 platforms/slackware/rc.bacula-dir\
18027 platforms/slackware/functions.bacula"
18031 TAPEDRIVE="/dev/rmt/0cbn"
18032 PSCMD="ps -e -o pid,comm"
18033 PFILES="${PFILES} \
18034 platforms/solaris/Makefile \
18035 platforms/solaris/bacula-fd \
18036 platforms/solaris/bacula-sd \
18037 platforms/solaris/bacula-dir"
18038 if test x$DISTVER = x5.6 ; then
18039 cat >>confdefs.h <<\_ACEOF
18040 #define HAVE_OLD_SOCKOPT 1
18046 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18048 TAPEDRIVE="/dev/nst0"
18049 PSCMD="ps -e -o pid,command"
18050 PFILES="${PFILES} \
18051 platforms/suse/Makefile \
18052 platforms/suse/bacula-fd \
18053 platforms/suse/bacula-sd \
18054 platforms/suse/bacula-dir \
18055 platforms/suse/bacula \
18056 platforms/suse/bacula.spec"
18061 TAPEDRIVE="/dev/nst0"
18062 PSCMD="ps -e -o pid,command"
18063 PFILES="${PFILES} \
18064 platforms/suse/Makefile \
18065 platforms/suse/bacula-fd \
18066 platforms/suse/bacula-sd \
18067 platforms/suse/bacula-dir"
18071 TAPEDRIVE="/dev/nst0"
18074 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18080 LIBS="$PTHREAD_LIB $LIBS"
18082 cat >>confdefs.h <<_ACEOF
18086 cat >>confdefs.h <<_ACEOF
18096 MCOMMON=./autoconf/Make.common
18099 if test "x${subsysdir}" = "x${sbindir}" ; then
18102 echo "You have set both --sbindir and --with-subsys-dir"
18103 echo " equal to: ${subsysdir} "
18104 echo "This is not permitted. Please reconfigure."
18106 echo "Aborting configuration ..."
18112 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/tconsole/Makefile 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/bacula-fd.conf src/win32/Makefile $PFILES"
18113 ac_config_commands="$ac_config_commands default"
18114 cat >confcache <<\_ACEOF
18115 # This file is a shell script that caches the results of configure
18116 # tests run on this system so they can be shared between configure
18117 # scripts and configure runs, see configure's option --config-cache.
18118 # It is not useful on other systems. If it contains results you don't
18119 # want to keep, you may remove or edit it.
18121 # config.status only pays attention to the cache file if you give it
18122 # the --recheck option to rerun configure.
18124 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18125 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18126 # following values.
18130 # The following way of writing the cache mishandles newlines in values,
18131 # but we know of no workaround that is simple, portable, and efficient.
18132 # So, don't put newlines in cache variables' values.
18133 # Ultrix sh set writes to stderr and can't be redirected directly,
18134 # and sets the high bit in the cache file unless we assign to the vars.
18137 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18139 # `set' does not quote correctly, so add quotes (double-quote
18140 # substitution turns \\\\ into \\, and sed turns \\ into \).
18143 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18146 # `set' quotes correctly as required by POSIX, so do not add quotes.
18148 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18155 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18157 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18159 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18160 if test -w $cache_file; then
18161 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18162 cat confcache >$cache_file
18164 echo "not updating unwritable cache $cache_file"
18169 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18170 # Let make expand exec_prefix.
18171 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18173 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18174 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18175 # trailing colons and then remove the whole line if VPATH becomes empty
18176 # (actually we leave an empty line to preserve line numbers).
18177 if test "x$srcdir" = x.; then
18178 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18179 s/:*\$(srcdir):*/:/;
18180 s/:*\${srcdir}:*/:/;
18182 s/^\([^=]*=[ ]*\):*/\1/;
18188 DEFS=-DHAVE_CONFIG_H
18192 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18193 # 1. Remove the extension, and $U if already installed.
18194 ac_i=`echo "$ac_i" |
18195 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18197 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18198 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18200 LIBOBJS=$ac_libobjs
18202 LTLIBOBJS=$ac_ltlibobjs
18206 : ${CONFIG_STATUS=./config.status}
18207 ac_clean_files_save=$ac_clean_files
18208 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18209 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18210 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18211 cat >$CONFIG_STATUS <<_ACEOF
18213 # Generated by $as_me.
18214 # Run this file to recreate the current configuration.
18215 # Compiler output produced by configure, useful for debugging
18216 # configure, is in config.log if it exists.
18219 ac_cs_recheck=false
18221 SHELL=\${CONFIG_SHELL-$SHELL}
18224 cat >>$CONFIG_STATUS <<\_ACEOF
18225 ## --------------------- ##
18226 ## M4sh Initialization. ##
18227 ## --------------------- ##
18229 # Be Bourne compatible
18230 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18233 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18234 # is contrary to our usage. Disable this feature.
18235 alias -g '${1+"$@"}'='"$@"'
18236 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18240 # Support unset when possible.
18241 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18248 # Work around bugs in pre-3.0 UWIN ksh.
18249 $as_unset ENV MAIL MAILPATH
18256 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18257 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18258 LC_TELEPHONE LC_TIME
18260 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18261 eval $as_var=C; export $as_var
18267 # Required to use basename.
18268 if expr a : '\(a\)' >/dev/null 2>&1; then
18274 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18275 as_basename=basename
18281 # Name of the executable.
18282 as_me=`$as_basename "$0" ||
18283 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18284 X"$0" : 'X\(//\)$' \| \
18285 X"$0" : 'X\(/\)$' \| \
18286 . : '\(.\)' 2>/dev/null ||
18288 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18289 /^X\/\(\/\/\)$/{ s//\1/; q; }
18290 /^X\/\(\/\).*/{ s//\1/; q; }
18294 # PATH needs CR, and LINENO needs CR and PATH.
18295 # Avoid depending upon Character Ranges.
18296 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18297 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18298 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18299 as_cr_digits='0123456789'
18300 as_cr_alnum=$as_cr_Letters$as_cr_digits
18302 # The user is always right.
18303 if test "${PATH_SEPARATOR+set}" != set; then
18304 echo "#! /bin/sh" >conf$$.sh
18305 echo "exit 0" >>conf$$.sh
18307 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18316 as_lineno_1=$LINENO
18317 as_lineno_2=$LINENO
18318 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18319 test "x$as_lineno_1" != "x$as_lineno_2" &&
18320 test "x$as_lineno_3" = "x$as_lineno_2" || {
18321 # Find who we are. Look in the path if we contain no path at all
18324 *[\\/]* ) as_myself=$0 ;;
18325 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18326 for as_dir in $PATH
18329 test -z "$as_dir" && as_dir=.
18330 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18335 # We did not find ourselves, most probably we were run as `sh COMMAND'
18336 # in which case we are not to be found in the path.
18337 if test "x$as_myself" = x; then
18340 if test ! -f "$as_myself"; then
18341 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18342 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18343 { (exit 1); exit 1; }; }
18345 case $CONFIG_SHELL in
18347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18348 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18351 test -z "$as_dir" && as_dir=.
18352 for as_base in sh bash ksh sh5; do
18355 if ("$as_dir/$as_base" -c '
18356 as_lineno_1=$LINENO
18357 as_lineno_2=$LINENO
18358 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18359 test "x$as_lineno_1" != "x$as_lineno_2" &&
18360 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18361 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18362 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18363 CONFIG_SHELL=$as_dir/$as_base
18364 export CONFIG_SHELL
18365 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18373 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18374 # uniformly replaced by the line number. The first 'sed' inserts a
18375 # line-number line before each line; the second 'sed' does the real
18376 # work. The second script uses 'N' to pair each line-number line
18377 # with the numbered line, and appends trailing '-' during
18378 # substitution so that $LINENO is not a special case at line end.
18379 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18380 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18381 sed '=' <$as_myself |
18386 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18389 s,^['$as_cr_digits']*\n,,
18390 ' >$as_me.lineno &&
18391 chmod +x $as_me.lineno ||
18392 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18393 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18394 { (exit 1); exit 1; }; }
18396 # Don't try to exec as it changes $[0], causing all sort of problems
18397 # (the dirname of $[0] is not the place where we might find the
18398 # original and so on. Autoconf is especially sensible to this).
18400 # Exit status is that of the last command.
18405 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18406 *c*,-n*) ECHO_N= ECHO_C='
18408 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18409 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18412 if expr a : '\(a\)' >/dev/null 2>&1; then
18418 rm -f conf$$ conf$$.exe conf$$.file
18420 if ln -s conf$$.file conf$$ 2>/dev/null; then
18421 # We could just check for DJGPP; but this test a) works b) is more generic
18422 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18423 if test -f conf$$.exe; then
18424 # Don't use ln at all; we don't have any links
18429 elif ln conf$$.file conf$$ 2>/dev/null; then
18434 rm -f conf$$ conf$$.exe conf$$.file
18436 if mkdir -p . 2>/dev/null; then
18442 as_executable_p="test -f"
18444 # Sed expression to map a string onto a valid CPP name.
18445 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18447 # Sed expression to map a string onto a valid variable name.
18448 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18452 # We need space, tab and new line, in precisely that order.
18462 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18463 # report actual input values of CONFIG_FILES etc. instead of their
18464 # values after options handling. Logging --version etc. is OK.
18468 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18469 ## Running $as_me. ##
18474 This file was extended by $as_me, which was
18475 generated by GNU Autoconf 2.57. Invocation command line was
18477 CONFIG_FILES = $CONFIG_FILES
18478 CONFIG_HEADERS = $CONFIG_HEADERS
18479 CONFIG_LINKS = $CONFIG_LINKS
18480 CONFIG_COMMANDS = $CONFIG_COMMANDS
18484 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18488 # Files that config.status was made for.
18489 if test -n "$ac_config_files"; then
18490 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18493 if test -n "$ac_config_headers"; then
18494 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18497 if test -n "$ac_config_links"; then
18498 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18501 if test -n "$ac_config_commands"; then
18502 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18505 cat >>$CONFIG_STATUS <<\_ACEOF
18508 \`$as_me' instantiates files from templates according to the
18509 current configuration.
18511 Usage: $0 [OPTIONS] [FILE]...
18513 -h, --help print this help, then exit
18514 -V, --version print version number, then exit
18515 -q, --quiet do not print progress messages
18516 -d, --debug don't remove temporary files
18517 --recheck update $as_me by reconfiguring in the same conditions
18518 --file=FILE[:TEMPLATE]
18519 instantiate the configuration file FILE
18520 --header=FILE[:TEMPLATE]
18521 instantiate the configuration header FILE
18523 Configuration files:
18526 Configuration headers:
18529 Configuration commands:
18532 Report bugs to <bug-autoconf@gnu.org>."
18535 cat >>$CONFIG_STATUS <<_ACEOF
18538 configured by $0, generated by GNU Autoconf 2.57,
18539 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18541 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18542 Free Software Foundation, Inc.
18543 This config.status script is free software; the Free Software Foundation
18544 gives unlimited permission to copy, distribute and modify it."
18549 cat >>$CONFIG_STATUS <<\_ACEOF
18550 # If no file are specified by the user, then we need to provide default
18551 # value. By we need to know if files were specified by the user.
18557 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18558 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18566 *) # This is not an option, so the user has probably given explicit
18569 ac_need_defaults=false;;
18573 # Handling of the options.
18575 cat >>$CONFIG_STATUS <<\_ACEOF
18576 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18578 --version | --vers* | -V )
18579 echo "$ac_cs_version"; exit 0 ;;
18581 # Conflict between --help and --header
18582 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18583 Try \`$0 --help' for more information." >&5
18584 echo "$as_me: error: ambiguous option: $1
18585 Try \`$0 --help' for more information." >&2;}
18586 { (exit 1); exit 1; }; };;
18587 --help | --hel | -h )
18588 echo "$ac_cs_usage"; exit 0 ;;
18589 --debug | --d* | -d )
18591 --file | --fil | --fi | --f )
18593 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18594 ac_need_defaults=false;;
18595 --header | --heade | --head | --hea )
18597 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18598 ac_need_defaults=false;;
18599 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18600 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18603 # This is an error.
18604 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18605 Try \`$0 --help' for more information." >&5
18606 echo "$as_me: error: unrecognized option: $1
18607 Try \`$0 --help' for more information." >&2;}
18608 { (exit 1); exit 1; }; } ;;
18610 *) ac_config_targets="$ac_config_targets $1" ;;
18616 ac_configure_extra_args=
18618 if $ac_cs_silent; then
18620 ac_configure_extra_args="$ac_configure_extra_args --silent"
18624 cat >>$CONFIG_STATUS <<_ACEOF
18625 if \$ac_cs_recheck; then
18626 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18627 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18636 cat >>$CONFIG_STATUS <<\_ACEOF
18637 for ac_config_target in $ac_config_targets
18639 case "$ac_config_target" in
18640 # Handling of arguments.
18641 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18642 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18643 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18644 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18645 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18646 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18647 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18648 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18649 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18650 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18651 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18652 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18653 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18654 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18655 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18656 "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18657 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18658 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18659 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18660 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18661 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
18662 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
18663 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
18664 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
18665 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
18666 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18667 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18668 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18669 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18670 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18671 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18672 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18673 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18674 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18675 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18676 "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18677 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18678 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18679 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18680 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18681 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18682 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18683 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18684 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18685 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18686 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18687 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18688 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18689 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18690 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18691 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18692 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18693 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18694 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18695 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18696 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18697 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18698 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18699 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18700 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18701 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18702 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18703 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18704 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18705 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18706 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18707 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18708 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18709 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18710 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18711 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18712 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18713 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18714 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18715 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18716 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18717 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18718 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18719 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18720 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18721 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18722 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
18723 "src/win32/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/bacula-fd.conf" ;;
18724 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
18725 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18726 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18727 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18728 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18729 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18730 { (exit 1); exit 1; }; };;
18734 # If the user did not use the arguments to specify the items to instantiate,
18735 # then the envvar interface is used. Set only those that are not.
18736 # We use the long form for the default assignment because of an extremely
18737 # bizarre bug on SunOS 4.1.3.
18738 if $ac_need_defaults; then
18739 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18740 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18741 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18744 # Have a temporary directory for convenience. Make it in the build tree
18745 # simply because there is no reason to put it here, and in addition,
18746 # creating and moving files from /tmp can sometimes cause problems.
18747 # Create a temporary directory, and hook for its removal unless debugging.
18750 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18751 trap '{ (exit 1); exit 1; }' 1 2 13 15
18754 # Create a (secure) tmp directory for tmp files.
18757 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18758 test -n "$tmp" && test -d "$tmp"
18761 tmp=./confstat$$-$RANDOM
18762 (umask 077 && mkdir $tmp)
18765 echo "$me: cannot create a temporary directory in ." >&2
18766 { (exit 1); exit 1; }
18771 cat >>$CONFIG_STATUS <<_ACEOF
18774 # CONFIG_FILES section.
18777 # No need to generate the scripts if there are no CONFIG_FILES.
18778 # This happens for instance when ./config.status config.h
18779 if test -n "\$CONFIG_FILES"; then
18780 # Protect against being on the right side of a sed subst in config.status.
18781 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18782 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18783 s,@SHELL@,$SHELL,;t t
18784 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18785 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18786 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18787 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18788 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18789 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18790 s,@exec_prefix@,$exec_prefix,;t t
18791 s,@prefix@,$prefix,;t t
18792 s,@program_transform_name@,$program_transform_name,;t t
18793 s,@bindir@,$bindir,;t t
18794 s,@sbindir@,$sbindir,;t t
18795 s,@libexecdir@,$libexecdir,;t t
18796 s,@datadir@,$datadir,;t t
18797 s,@sysconfdir@,$sysconfdir,;t t
18798 s,@sharedstatedir@,$sharedstatedir,;t t
18799 s,@localstatedir@,$localstatedir,;t t
18800 s,@libdir@,$libdir,;t t
18801 s,@includedir@,$includedir,;t t
18802 s,@oldincludedir@,$oldincludedir,;t t
18803 s,@infodir@,$infodir,;t t
18804 s,@mandir@,$mandir,;t t
18805 s,@build_alias@,$build_alias,;t t
18806 s,@host_alias@,$host_alias,;t t
18807 s,@target_alias@,$target_alias,;t t
18808 s,@DEFS@,$DEFS,;t t
18809 s,@ECHO_C@,$ECHO_C,;t t
18810 s,@ECHO_N@,$ECHO_N,;t t
18811 s,@ECHO_T@,$ECHO_T,;t t
18812 s,@LIBS@,$LIBS,;t t
18813 s,@BUILD_DIR@,$BUILD_DIR,;t t
18814 s,@TRUEPRG@,$TRUEPRG,;t t
18815 s,@FALSEPRG@,$FALSEPRG,;t t
18816 s,@build@,$build,;t t
18817 s,@build_cpu@,$build_cpu,;t t
18818 s,@build_vendor@,$build_vendor,;t t
18819 s,@build_os@,$build_os,;t t
18820 s,@host@,$host,;t t
18821 s,@host_cpu@,$host_cpu,;t t
18822 s,@host_vendor@,$host_vendor,;t t
18823 s,@host_os@,$host_os,;t t
18824 s,@VERSION@,$VERSION,;t t
18825 s,@DATE@,$DATE,;t t
18826 s,@LSMDATE@,$LSMDATE,;t t
18828 s,@CFLAGS@,$CFLAGS,;t t
18829 s,@LDFLAGS@,$LDFLAGS,;t t
18830 s,@CPPFLAGS@,$CPPFLAGS,;t t
18831 s,@ac_ct_CC@,$ac_ct_CC,;t t
18832 s,@EXEEXT@,$EXEEXT,;t t
18833 s,@OBJEXT@,$OBJEXT,;t t
18835 s,@CXXFLAGS@,$CXXFLAGS,;t t
18836 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18838 s,@EGREP@,$EGREP,;t t
18839 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18840 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18841 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18842 s,@RANLIB@,$RANLIB,;t t
18843 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18849 s,@ECHO@,$ECHO,;t t
18853 s,@OPENSSL@,$OPENSSL,;t t
18855 s,@PKGCONFIG@,$PKGCONFIG,;t t
18856 s,@ARFLAGS@,$ARFLAGS,;t t
18857 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18858 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18859 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18860 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18861 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18862 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18863 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18864 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18865 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18866 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18867 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18868 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18869 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18870 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18871 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18872 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18873 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18874 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18875 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18876 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18877 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18878 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18879 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18880 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18881 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18882 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18883 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18884 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18885 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18886 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18887 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18888 s,@MSGFMT@,$MSGFMT,;t t
18889 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18890 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18891 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18892 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18893 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18894 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18895 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18896 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18897 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18898 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18899 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18900 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18901 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18902 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18903 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18904 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18905 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18906 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18907 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18908 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18909 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18910 s,@GNOME_DIR@,$GNOME_DIR,;t t
18911 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18912 s,@STATIC_FD@,$STATIC_FD,;t t
18913 s,@STATIC_SD@,$STATIC_SD,;t t
18914 s,@STATIC_DIR@,$STATIC_DIR,;t t
18915 s,@STATIC_CONS@,$STATIC_CONS,;t t
18916 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
18917 s,@ALL_DIRS@,$ALL_DIRS,;t t
18918 s,@CONS_INC@,$CONS_INC,;t t
18919 s,@CONS_OBJ@,$CONS_OBJ,;t t
18920 s,@CONS_SRC@,$CONS_SRC,;t t
18921 s,@CONS_LIBS@,$CONS_LIBS,;t t
18922 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18923 s,@READLINE_SRC@,$READLINE_SRC,;t t
18924 s,@working_dir@,$working_dir,;t t
18925 s,@scriptdir@,$scriptdir,;t t
18926 s,@dump_email@,$dump_email,;t t
18927 s,@job_email@,$job_email,;t t
18928 s,@smtp_host@,$smtp_host,;t t
18929 s,@piddir@,$piddir,;t t
18930 s,@subsysdir@,$subsysdir,;t t
18931 s,@baseport@,$baseport,;t t
18932 s,@dir_port@,$dir_port,;t t
18933 s,@fd_port@,$fd_port,;t t
18934 s,@sd_port@,$sd_port,;t t
18935 s,@dir_password@,$dir_password,;t t
18936 s,@fd_password@,$fd_password,;t t
18937 s,@sd_password@,$sd_password,;t t
18938 s,@dir_user@,$dir_user,;t t
18939 s,@dir_group@,$dir_group,;t t
18940 s,@sd_user@,$sd_user,;t t
18941 s,@sd_group@,$sd_group,;t t
18942 s,@fd_user@,$fd_user,;t t
18943 s,@fd_group@,$fd_group,;t t
18944 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18945 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18946 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18947 s,@cats@,$cats,;t t
18948 s,@DB_NAME@,$DB_NAME,;t t
18949 s,@GETCONF@,$GETCONF,;t t
18950 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18951 s,@X_CFLAGS@,$X_CFLAGS,;t t
18952 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18953 s,@X_LIBS@,$X_LIBS,;t t
18954 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18955 s,@LIBOBJS@,$LIBOBJS,;t t
18956 s,@ALLOCA@,$ALLOCA,;t t
18957 s,@FDLIBS@,$FDLIBS,;t t
18958 s,@DEBUG@,$DEBUG,;t t
18959 s,@DINCLUDE@,$DINCLUDE,;t t
18960 s,@DLIB@,$DLIB,;t t
18961 s,@DB_LIBS@,$DB_LIBS,;t t
18962 s,@WCFLAGS@,$WCFLAGS,;t t
18963 s,@WLDFLAGS@,$WLDFLAGS,;t t
18964 s,@OBJLIST@,$OBJLIST,;t t
18965 s,@hostname@,$hostname,;t t
18966 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18967 s,@PSCMD@,$PSCMD,;t t
18968 s,@WIN32@,$WIN32,;t t
18969 s,@DISTNAME@,$DISTNAME,;t t
18970 s,@DISTVER@,$DISTVER,;t t
18971 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18972 /@MCOMMON@/r $MCOMMON
18978 cat >>$CONFIG_STATUS <<\_ACEOF
18979 # Split the substitutions into bite-sized pieces for seds with
18980 # small command number limits, like on Digital OSF/1 and HP-UX.
18981 ac_max_sed_lines=48
18982 ac_sed_frag=1 # Number of current file.
18983 ac_beg=1 # First line for current file.
18984 ac_end=$ac_max_sed_lines # Line after last line for current file.
18987 while $ac_more_lines; do
18988 if test $ac_beg -gt 1; then
18989 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18991 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18993 if test ! -s $tmp/subs.frag; then
18994 ac_more_lines=false
18996 # The purpose of the label and of the branching condition is to
18997 # speed up the sed processing (if there are no `@' at all, there
18998 # is no need to browse any of the substitutions).
18999 # These are the two extra sed commands mentioned above.
19001 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19002 if test -z "$ac_sed_cmds"; then
19003 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19005 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19007 ac_sed_frag=`expr $ac_sed_frag + 1`
19009 ac_end=`expr $ac_end + $ac_max_sed_lines`
19012 if test -z "$ac_sed_cmds"; then
19015 fi # test -n "$CONFIG_FILES"
19018 cat >>$CONFIG_STATUS <<\_ACEOF
19019 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19020 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19022 - | *:- | *:-:* ) # input from stdin
19024 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19025 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19026 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19027 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19028 * ) ac_file_in=$ac_file.in ;;
19031 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19032 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19034 X"$ac_file" : 'X\(//\)[^/]' \| \
19035 X"$ac_file" : 'X\(//\)$' \| \
19036 X"$ac_file" : 'X\(/\)' \| \
19037 . : '\(.\)' 2>/dev/null ||
19039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19040 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19041 /^X\(\/\/\)$/{ s//\1/; q; }
19042 /^X\(\/\).*/{ s//\1/; q; }
19044 { if $as_mkdir_p; then
19049 while test ! -d "$as_dir"; do
19050 as_dirs="$as_dir $as_dirs"
19051 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19053 X"$as_dir" : 'X\(//\)[^/]' \| \
19054 X"$as_dir" : 'X\(//\)$' \| \
19055 X"$as_dir" : 'X\(/\)' \| \
19056 . : '\(.\)' 2>/dev/null ||
19058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19060 /^X\(\/\/\)$/{ s//\1/; q; }
19061 /^X\(\/\).*/{ s//\1/; q; }
19064 test ! -n "$as_dirs" || mkdir $as_dirs
19065 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19066 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19067 { (exit 1); exit 1; }; }; }
19071 if test "$ac_dir" != .; then
19072 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19073 # A "../" for each directory in $ac_dir_suffix.
19074 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19076 ac_dir_suffix= ac_top_builddir=
19080 .) # No --srcdir option. We are building in place.
19082 if test -z "$ac_top_builddir"; then
19085 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19087 [\\/]* | ?:[\\/]* ) # Absolute path.
19088 ac_srcdir=$srcdir$ac_dir_suffix;
19089 ac_top_srcdir=$srcdir ;;
19090 *) # Relative path.
19091 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19092 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19094 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19096 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19097 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19098 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19099 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19103 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19104 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19107 if test x"$ac_file" != x-; then
19108 { echo "$as_me:$LINENO: creating $ac_file" >&5
19109 echo "$as_me: creating $ac_file" >&6;}
19112 # Let's still pretend it is `configure' which instantiates (i.e., don't
19113 # use $as_me), people would be surprised to read:
19114 # /* config.h. Generated by config.status. */
19115 if test x"$ac_file" = x-; then
19118 configure_input="$ac_file. "
19120 configure_input=$configure_input"Generated from `echo $ac_file_in |
19121 sed 's,.*/,,'` by configure."
19123 # First look for the input files in the build tree, otherwise in the
19125 ac_file_inputs=`IFS=:
19126 for f in $ac_file_in; do
19128 -) echo $tmp/stdin ;;
19130 # Absolute (can't be DOS-style, as IFS=:)
19131 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19132 echo "$as_me: error: cannot find input file: $f" >&2;}
19133 { (exit 1); exit 1; }; }
19136 if test -f "$f"; then
19139 elif test -f "$srcdir/$f"; then
19144 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19145 echo "$as_me: error: cannot find input file: $f" >&2;}
19146 { (exit 1); exit 1; }; }
19149 done` || { (exit 1); exit 1; }
19151 cat >>$CONFIG_STATUS <<_ACEOF
19155 cat >>$CONFIG_STATUS <<\_ACEOF
19157 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19158 s,@configure_input@,$configure_input,;t t
19159 s,@srcdir@,$ac_srcdir,;t t
19160 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19161 s,@top_srcdir@,$ac_top_srcdir,;t t
19162 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19163 s,@builddir@,$ac_builddir,;t t
19164 s,@abs_builddir@,$ac_abs_builddir,;t t
19165 s,@top_builddir@,$ac_top_builddir,;t t
19166 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19167 s,@INSTALL@,$ac_INSTALL,;t t
19168 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19170 if test x"$ac_file" != x-; then
19171 mv $tmp/out $ac_file
19179 cat >>$CONFIG_STATUS <<\_ACEOF
19182 # CONFIG_HEADER section.
19185 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19186 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19188 # ac_d sets the value in "#define NAME VALUE" lines.
19189 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19190 ac_dB='[ ].*$,\1#\2'
19193 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19194 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19195 ac_uB='$,\1#\2define\3'
19199 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19200 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19202 - | *:- | *:-:* ) # input from stdin
19204 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19205 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19206 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19207 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19208 * ) ac_file_in=$ac_file.in ;;
19211 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19212 echo "$as_me: creating $ac_file" >&6;}
19214 # First look for the input files in the build tree, otherwise in the
19216 ac_file_inputs=`IFS=:
19217 for f in $ac_file_in; do
19219 -) echo $tmp/stdin ;;
19221 # Absolute (can't be DOS-style, as IFS=:)
19222 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19223 echo "$as_me: error: cannot find input file: $f" >&2;}
19224 { (exit 1); exit 1; }; }
19227 if test -f "$f"; then
19230 elif test -f "$srcdir/$f"; then
19235 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19236 echo "$as_me: error: cannot find input file: $f" >&2;}
19237 { (exit 1); exit 1; }; }
19240 done` || { (exit 1); exit 1; }
19241 # Remove the trailing spaces.
19242 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19246 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19247 # `conftest.undefs', that substitutes the proper values into
19248 # config.h.in to produce config.h. The first handles `#define'
19249 # templates, and the second `#undef' templates.
19250 # And first: Protect against being on the right side of a sed subst in
19251 # config.status. Protect against being in an unquoted here document
19252 # in config.status.
19253 rm -f conftest.defines conftest.undefs
19254 # Using a here document instead of a string reduces the quoting nightmare.
19255 # Putting comments in sed scripts is not portable.
19257 # `end' is used to avoid that the second main sed command (meant for
19258 # 0-ary CPP macros) applies to n-ary macro definitions.
19259 # See the Autoconf documentation for `clear'.
19260 cat >confdef2sed.sed <<\_ACEOF
19265 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19267 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19270 # If some macros were called several times there might be several times
19271 # the same #defines, which is useless. Nevertheless, we may not want to
19272 # sort them, since we want the *last* AC-DEFINE to be honored.
19273 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19274 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19275 rm -f confdef2sed.sed
19277 # This sed command replaces #undef with comments. This is necessary, for
19278 # example, in the case of _POSIX_SOURCE, which is predefined and required
19279 # on some systems where configure will not decide to define it.
19280 cat >>conftest.undefs <<\_ACEOF
19281 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19284 # Break up conftest.defines because some shells have a limit on the size
19285 # of here documents, and old seds have small limits too (100 cmds).
19286 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19287 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19288 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19289 echo ' :' >>$CONFIG_STATUS
19290 rm -f conftest.tail
19291 while grep . conftest.defines >/dev/null
19293 # Write a limited-size here document to $tmp/defines.sed.
19294 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19295 # Speed up: don't consider the non `#define' lines.
19296 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19297 # Work around the forget-to-reset-the-flag bug.
19298 echo 't clr' >>$CONFIG_STATUS
19299 echo ': clr' >>$CONFIG_STATUS
19300 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19302 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19304 mv $tmp/out $tmp/in
19306 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19307 rm -f conftest.defines
19308 mv conftest.tail conftest.defines
19310 rm -f conftest.defines
19311 echo ' fi # grep' >>$CONFIG_STATUS
19312 echo >>$CONFIG_STATUS
19314 # Break up conftest.undefs because some shells have a limit on the size
19315 # of here documents, and old seds have small limits too (100 cmds).
19316 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19317 rm -f conftest.tail
19318 while grep . conftest.undefs >/dev/null
19320 # Write a limited-size here document to $tmp/undefs.sed.
19321 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19322 # Speed up: don't consider the non `#undef'
19323 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19324 # Work around the forget-to-reset-the-flag bug.
19325 echo 't clr' >>$CONFIG_STATUS
19326 echo ': clr' >>$CONFIG_STATUS
19327 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19329 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19331 mv $tmp/out $tmp/in
19333 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19334 rm -f conftest.undefs
19335 mv conftest.tail conftest.undefs
19337 rm -f conftest.undefs
19339 cat >>$CONFIG_STATUS <<\_ACEOF
19340 # Let's still pretend it is `configure' which instantiates (i.e., don't
19341 # use $as_me), people would be surprised to read:
19342 # /* config.h. Generated by config.status. */
19343 if test x"$ac_file" = x-; then
19344 echo "/* Generated by configure. */" >$tmp/config.h
19346 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19348 cat $tmp/in >>$tmp/config.h
19350 if test x"$ac_file" != x-; then
19351 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19352 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19353 echo "$as_me: $ac_file is unchanged" >&6;}
19355 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19356 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19357 X"$ac_file" : 'X\(//\)[^/]' \| \
19358 X"$ac_file" : 'X\(//\)$' \| \
19359 X"$ac_file" : 'X\(/\)' \| \
19360 . : '\(.\)' 2>/dev/null ||
19362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19363 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19364 /^X\(\/\/\)$/{ s//\1/; q; }
19365 /^X\(\/\).*/{ s//\1/; q; }
19367 { if $as_mkdir_p; then
19372 while test ! -d "$as_dir"; do
19373 as_dirs="$as_dir $as_dirs"
19374 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19375 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19376 X"$as_dir" : 'X\(//\)[^/]' \| \
19377 X"$as_dir" : 'X\(//\)$' \| \
19378 X"$as_dir" : 'X\(/\)' \| \
19379 . : '\(.\)' 2>/dev/null ||
19381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19382 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19383 /^X\(\/\/\)$/{ s//\1/; q; }
19384 /^X\(\/\).*/{ s//\1/; q; }
19387 test ! -n "$as_dirs" || mkdir $as_dirs
19388 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19389 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19390 { (exit 1); exit 1; }; }; }
19393 mv $tmp/config.h $ac_file
19397 rm -f $tmp/config.h
19401 cat >>$CONFIG_STATUS <<\_ACEOF
19404 # CONFIG_COMMANDS section.
19406 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19407 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19408 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19409 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19410 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19411 X"$ac_dest" : 'X\(//\)[^/]' \| \
19412 X"$ac_dest" : 'X\(//\)$' \| \
19413 X"$ac_dest" : 'X\(/\)' \| \
19414 . : '\(.\)' 2>/dev/null ||
19416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19417 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19418 /^X\(\/\/\)$/{ s//\1/; q; }
19419 /^X\(\/\).*/{ s//\1/; q; }
19423 if test "$ac_dir" != .; then
19424 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19425 # A "../" for each directory in $ac_dir_suffix.
19426 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19428 ac_dir_suffix= ac_top_builddir=
19432 .) # No --srcdir option. We are building in place.
19434 if test -z "$ac_top_builddir"; then
19437 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19439 [\\/]* | ?:[\\/]* ) # Absolute path.
19440 ac_srcdir=$srcdir$ac_dir_suffix;
19441 ac_top_srcdir=$srcdir ;;
19442 *) # Relative path.
19443 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19444 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19446 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19448 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19449 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19450 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19451 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19454 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19455 echo "$as_me: executing $ac_dest commands" >&6;}
19457 default ) (echo "Doing make of dependencies"; make depend;)
19463 cat >>$CONFIG_STATUS <<\_ACEOF
19465 { (exit 0); exit 0; }
19467 chmod +x $CONFIG_STATUS
19468 ac_clean_files=$ac_clean_files_save
19471 # configure is writing to config.log, and then calls config.status.
19472 # config.status does its own redirection, appending to config.log.
19473 # Unfortunately, on DOS this fails, as config.log is still kept open
19474 # by configure, so config.status won't be able to write to it; its
19475 # output is simply discarded. So we exec the FD to /dev/null,
19476 # effectively closing config.log, so it can be properly (re)opened and
19477 # appended to by config.status. When coming back to configure, we
19478 # need to make the FD available again.
19479 if test "$no_create" != yes; then
19481 ac_config_status_args=
19482 test "$silent" = yes &&
19483 ac_config_status_args="$ac_config_status_args --quiet"
19485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19488 # would make configure fail if this is the last instruction.
19489 $ac_cs_success || { (exit 1); exit 1; }
19494 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19495 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19500 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
19501 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
19503 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
19504 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
19506 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
19507 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
19509 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
19510 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
19512 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
19513 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
19515 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19516 chmod 755 $c/sqlite
19519 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19520 largefile_support="yes"
19524 # A whole lot of hand springs to get the compiler version.
19525 # This is because gcc changed the output in version 3.0
19527 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19528 if test "x${CCVERSION}" = "x" ; then
19529 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19531 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19532 if test x"${CXXVERSION}" = x ; then
19533 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19536 if test "x${subsysdir}" = "x${sbindir}" ; then
19539 echo "You have set --sbindir and --with-subsys-dir"
19540 echo " both equal to: ${subsysdir} "
19541 echo " This is not permitted. Please reconfigure."
19542 echo "Aborting configuration ..."
19549 Configuration on `date`:
19551 Host: $host -- ${DISTNAME} ${DISTVER}
19552 Bacula version: ${VERSION} (${DATE})
19553 Source code location: ${srcdir}
19554 Install binaries: ${sbindir}
19555 Install config files: ${sysconfdir}
19556 Scripts directory: ${scriptdir}
19557 Working directory: ${working_dir}
19558 PID directory: ${piddir}
19559 Subsys directory: ${subsysdir}
19560 C Compiler: ${CC} ${CCVERSION}
19561 C++ Compiler: ${CXX} ${CXXVERSION}
19562 Compiler flags: ${WCFLAGS} ${CFLAGS}
19563 Linker flags: ${WLDFLAGS} ${LDFLAGS}
19565 Statically Linked Tools: ${support_static_tools}
19566 Statically Linked FD: ${support_static_fd}
19567 Statically Linked SD: ${support_static_sd}
19568 Statically Linked DIR: ${support_static_dir}
19569 Statically Linked CONS: ${support_static_cons}
19570 Database type: ${db_name}
19571 Database lib: ${DB_LIBS}
19573 Job Output Email: ${job_email}
19574 Traceback Email: ${dump_email}
19575 SMTP Host Address: ${smtp_host}
19577 Director Port: ${dir_port}
19578 File daemon Port: ${fd_port}
19579 Storage daemon Port: ${sd_port}
19581 Director User: ${dir_user}
19582 Director Group: ${dir_group}
19583 Storage Daemon User: ${sd_user}
19584 Storage DaemonGroup: ${sd_group}
19585 File Daemon User: ${fd_user}
19586 File Daemon Group: ${fd_group}
19588 SQL binaries Directory ${SQL_BINDIR}
19590 Large file support: $largefile_support
19591 Bacula conio support: ${got_conio} ${CONS_LIBS}
19592 readline support: ${got_readline} ${PRTREADLINE_SRC}
19593 TCP Wrappers support: ${TCPW_MSG}
19594 ZLIB support: ${have_zlib}
19595 enable-smartalloc: ${support_smartalloc}
19596 enable-gnome: ${support_gnome} ${gnome_version}
19597 client-only: ${build_client_only}
19604 # cweb support: ${got_cweb} ${CWEB_SRC}
19605 # gmp support: ${got_gmp} ${GMP_SRC}