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 Which DBMS do you want to use (please select only one):
901 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
902 install directory, default is to search through
903 a number of common places for the MySQL files.
905 Which DBMS do you want to use (please select only one):
906 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
907 install directory, default is to search through
908 a number of common places for the MySQL files.
910 Which DBMS do you want to use (please select only one):
911 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
912 install directory, default is to search through
913 a number of common places for the SQLite files.
914 --with-x use the X Window System
916 Some influential environment variables:
917 CC C compiler command
918 CFLAGS C compiler flags
919 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
920 nonstandard directory <lib dir>
921 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
922 headers in a nonstandard directory <include dir>
923 CXX C++ compiler command
924 CXXFLAGS C++ compiler flags
927 Use these variables to override the choices made by `configure' or to help
928 it to find libraries and programs with nonstandard names/locations.
933 if test "$ac_init_help" = "recursive"; then
934 # If there are subdirs, report their specific --help.
936 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
937 test -d $ac_dir || continue
940 if test "$ac_dir" != .; then
941 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
942 # A "../" for each directory in $ac_dir_suffix.
943 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
945 ac_dir_suffix= ac_top_builddir=
949 .) # No --srcdir option. We are building in place.
951 if test -z "$ac_top_builddir"; then
954 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
956 [\\/]* | ?:[\\/]* ) # Absolute path.
957 ac_srcdir=$srcdir$ac_dir_suffix;
958 ac_top_srcdir=$srcdir ;;
960 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
961 ac_top_srcdir=$ac_top_builddir$srcdir ;;
963 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
965 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
966 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
967 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
968 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
971 # Check for guested configure; otherwise get Cygnus style configure.
972 if test -f $ac_srcdir/configure.gnu; then
974 $SHELL $ac_srcdir/configure.gnu --help=recursive
975 elif test -f $ac_srcdir/configure; then
977 $SHELL $ac_srcdir/configure --help=recursive
978 elif test -f $ac_srcdir/configure.ac ||
979 test -f $ac_srcdir/configure.in; then
983 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
989 test -n "$ac_init_help" && exit 0
990 if $ac_init_version; then
993 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
994 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
1002 This file contains any messages produced by compilers while
1003 running configure, to aid debugging if configure makes a mistake.
1005 It was created by $as_me, which was
1006 generated by GNU Autoconf 2.57. Invocation command line was
1017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1026 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1027 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1030 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1031 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1032 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 test -z "$as_dir" && as_dir=.
1041 echo "PATH: $as_dir"
1056 # Keep a trace of the command line.
1057 # Strip out --no-create and --no-recursion so they do not pile up.
1058 # Strip out --silent because we don't want to record it for future runs.
1059 # Also quote any args containing shell meta-characters.
1060 # Make two passes to allow for proper duplicate-argument suppression.
1065 ac_must_keep_next=false
1071 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1075 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082 if test $ac_must_keep_next = true; then
1083 ac_must_keep_next=false # Got value, back to normal.
1086 *=* | --config-cache | -C | -disable-* | --disable-* \
1087 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089 | -with-* | --with-* | -without-* | --without-* | --x)
1090 case "$ac_configure_args0 " in
1091 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094 -* ) ac_must_keep_next=true ;;
1097 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098 # Get rid of the leading space.
1104 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1107 # When interrupted or exit'd, cleanup temporary files, and complete
1108 # config.log. We remove comments because anyway the quotes in there
1109 # would cause problems or look ugly.
1110 # WARNING: Be sure not to use single quotes in there, as some shells,
1111 # such as our DU 5.0 friend, will then `close' the trap.
1112 trap 'exit_status=$?
1113 # Save into config.log some information that might help in debugging.
1118 ## ---------------- ##
1119 ## Cache variables. ##
1120 ## ---------------- ##
1123 # The following way of writing the cache mishandles newlines in values,
1126 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1141 ## ----------------- ##
1142 ## Output variables. ##
1143 ## ----------------- ##
1146 for ac_var in $ac_subst_vars
1148 eval ac_val=$`echo $ac_var`
1149 echo "$ac_var='"'"'$ac_val'"'"'"
1153 if test -n "$ac_subst_files"; then
1160 for ac_var in $ac_subst_files
1162 eval ac_val=$`echo $ac_var`
1163 echo "$ac_var='"'"'$ac_val'"'"'"
1168 if test -s confdefs.h; then
1175 sed "/^$/d" confdefs.h | sort
1178 test "$ac_signal" != 0 &&
1179 echo "$as_me: caught signal $ac_signal"
1180 echo "$as_me: exit $exit_status"
1182 rm -f core core.* *.core &&
1183 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186 for ac_signal in 1 2 13 15; do
1187 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1192 rm -rf conftest* confdefs.h
1193 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196 # Predefined preprocessor variables.
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 # Let the site file select an alternate cache file if it wants to.
1224 # Prefer explicitly selected file to automatically selected ones.
1225 if test -z "$CONFIG_SITE"; then
1226 if test "x$prefix" != xNONE; then
1227 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232 for ac_site_file in $CONFIG_SITE; do
1233 if test -r "$ac_site_file"; then
1234 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235 echo "$as_me: loading site script $ac_site_file" >&6;}
1236 sed 's/^/| /' "$ac_site_file" >&5
1241 if test -r "$cache_file"; then
1242 # Some versions of bash will fail to source /dev/null (special
1243 # files actually), so we avoid doing that.
1244 if test -f "$cache_file"; then
1245 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246 echo "$as_me: loading cache $cache_file" >&6;}
1248 [\\/]* | ?:[\\/]* ) . $cache_file;;
1249 *) . ./$cache_file;;
1253 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254 echo "$as_me: creating cache $cache_file" >&6;}
1258 # Check that the precious variables saved in the cache have kept the same
1260 ac_cache_corrupted=false
1261 for ac_var in `(set) 2>&1 |
1262 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264 eval ac_new_set=\$ac_env_${ac_var}_set
1265 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266 eval ac_new_val="\$ac_env_${ac_var}_value"
1267 case $ac_old_set,$ac_new_set in
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1273 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275 ac_cache_corrupted=: ;;
1278 if test "x$ac_old_val" != "x$ac_new_val"; then
1279 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1282 echo "$as_me: former value: $ac_old_val" >&2;}
1283 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1284 echo "$as_me: current value: $ac_new_val" >&2;}
1285 ac_cache_corrupted=:
1288 # Pass precious variables to config.status.
1289 if test "$ac_new_set" = set; then
1291 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293 *) ac_arg=$ac_var=$ac_new_val ;;
1295 case " $ac_configure_args " in
1296 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1297 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301 if $ac_cache_corrupted; then
1302 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306 { (exit 1); exit 1; }; }
1310 ac_cpp='$CPP $CPPFLAGS'
1311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1339 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1340 if test -f $ac_dir/install-sh; then
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1344 elif test -f $ac_dir/install.sh; then
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1348 elif test -f $ac_dir/shtool; then
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1354 if test -z "$ac_aux_dir"; then
1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1357 { (exit 1); exit 1; }; }
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1363 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1371 # Extract the first word of "$ac_prog", so it can be a program name with args.
1372 set dummy $ac_prog; ac_word=$2
1373 echo "$as_me:$LINENO: checking for $ac_word" >&5
1374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1375 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1376 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387 test -z "$as_dir" && as_dir=.
1388 for ac_exec_ext in '' $ac_executable_extensions; do
1389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1390 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1400 TRUEPRG=$ac_cv_path_TRUEPRG
1402 if test -n "$TRUEPRG"; then
1403 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1404 echo "${ECHO_T}$TRUEPRG" >&6
1406 echo "$as_me:$LINENO: result: no" >&5
1407 echo "${ECHO_T}no" >&6
1410 test -n "$TRUEPRG" && break
1412 test -n "$TRUEPRG" || TRUEPRG=":"
1414 for ac_prog in false
1416 # Extract the first word of "$ac_prog", so it can be a program name with args.
1417 set dummy $ac_prog; ac_word=$2
1418 echo "$as_me:$LINENO: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1425 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 test -z "$as_dir" && as_dir=.
1433 for ac_exec_ext in '' $ac_executable_extensions; do
1434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1435 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1445 FALSEPRG=$ac_cv_path_FALSEPRG
1447 if test -n "$FALSEPRG"; then
1448 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1449 echo "${ECHO_T}$FALSEPRG" >&6
1451 echo "$as_me:$LINENO: result: no" >&5
1452 echo "${ECHO_T}no" >&6
1455 test -n "$FALSEPRG" && break
1457 test -n "$FALSEPRG" || FALSEPRG=":"
1460 # Make sure we can run config.sub.
1461 $ac_config_sub sun4 >/dev/null 2>&1 ||
1462 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1463 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1464 { (exit 1); exit 1; }; }
1466 echo "$as_me:$LINENO: checking build system type" >&5
1467 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1468 if test "${ac_cv_build+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1471 ac_cv_build_alias=$build_alias
1472 test -z "$ac_cv_build_alias" &&
1473 ac_cv_build_alias=`$ac_config_guess`
1474 test -z "$ac_cv_build_alias" &&
1475 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1476 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1477 { (exit 1); exit 1; }; }
1478 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1479 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1480 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1481 { (exit 1); exit 1; }; }
1484 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1485 echo "${ECHO_T}$ac_cv_build" >&6
1487 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1488 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1489 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1492 echo "$as_me:$LINENO: checking host system type" >&5
1493 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1494 if test "${ac_cv_host+set}" = set; then
1495 echo $ECHO_N "(cached) $ECHO_C" >&6
1497 ac_cv_host_alias=$host_alias
1498 test -z "$ac_cv_host_alias" &&
1499 ac_cv_host_alias=$ac_cv_build_alias
1500 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1501 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1502 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1503 { (exit 1); exit 1; }; }
1506 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1507 echo "${ECHO_T}$ac_cv_host" >&6
1509 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1510 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1511 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1515 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1516 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1517 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1518 echo "configuring for bacula $VERSION ($DATE)"
1523 ac_cpp='$CPP $CPPFLAGS'
1524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1527 if test -n "$ac_tool_prefix"; then
1528 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1529 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1530 echo "$as_me:$LINENO: checking for $ac_word" >&5
1531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1532 if test "${ac_cv_prog_CC+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1535 if test -n "$CC"; then
1536 ac_cv_prog_CC="$CC" # Let the user override the test.
1538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1542 test -z "$as_dir" && as_dir=.
1543 for ac_exec_ext in '' $ac_executable_extensions; do
1544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1545 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1555 if test -n "$CC"; then
1556 echo "$as_me:$LINENO: result: $CC" >&5
1557 echo "${ECHO_T}$CC" >&6
1559 echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1564 if test -z "$ac_cv_prog_CC"; then
1566 # Extract the first word of "gcc", so it can be a program name with args.
1567 set dummy gcc; ac_word=$2
1568 echo "$as_me:$LINENO: checking for $ac_word" >&5
1569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1570 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 if test -n "$ac_ct_CC"; then
1574 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580 test -z "$as_dir" && as_dir=.
1581 for ac_exec_ext in '' $ac_executable_extensions; do
1582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1583 ac_cv_prog_ac_ct_CC="gcc"
1584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1593 if test -n "$ac_ct_CC"; then
1594 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1595 echo "${ECHO_T}$ac_ct_CC" >&6
1597 echo "$as_me:$LINENO: result: no" >&5
1598 echo "${ECHO_T}no" >&6
1606 if test -z "$CC"; then
1607 if test -n "$ac_tool_prefix"; then
1608 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1609 set dummy ${ac_tool_prefix}cc; ac_word=$2
1610 echo "$as_me:$LINENO: checking for $ac_word" >&5
1611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612 if test "${ac_cv_prog_CC+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1615 if test -n "$CC"; then
1616 ac_cv_prog_CC="$CC" # Let the user override the test.
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 test -z "$as_dir" && as_dir=.
1623 for ac_exec_ext in '' $ac_executable_extensions; do
1624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625 ac_cv_prog_CC="${ac_tool_prefix}cc"
1626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635 if test -n "$CC"; then
1636 echo "$as_me:$LINENO: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1639 echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1644 if test -z "$ac_cv_prog_CC"; then
1646 # Extract the first word of "cc", so it can be a program name with args.
1647 set dummy cc; ac_word=$2
1648 echo "$as_me:$LINENO: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 if test -n "$ac_ct_CC"; then
1654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 test -z "$as_dir" && as_dir=.
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663 ac_cv_prog_ac_ct_CC="cc"
1664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1673 if test -n "$ac_ct_CC"; then
1674 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1675 echo "${ECHO_T}$ac_ct_CC" >&6
1677 echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1687 if test -z "$CC"; then
1688 # Extract the first word of "cc", so it can be a program name with args.
1689 set dummy cc; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 if test -n "$CC"; then
1696 ac_cv_prog_CC="$CC" # Let the user override the test.
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 test -z "$as_dir" && as_dir=.
1704 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1707 ac_prog_rejected=yes
1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 if test $ac_prog_rejected = yes; then
1718 # We found a bogon in the path, so make sure we never use it.
1719 set dummy $ac_cv_prog_CC
1721 if test $# != 0; then
1722 # We chose a different compiler from the bogus one.
1723 # However, it has the same basename, so the bogon will be chosen
1724 # first if we set CC to just the basename; use the full file name.
1726 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1732 if test -n "$CC"; then
1733 echo "$as_me:$LINENO: result: $CC" >&5
1734 echo "${ECHO_T}$CC" >&6
1736 echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1741 if test -z "$CC"; then
1742 if test -n "$ac_tool_prefix"; then
1745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1746 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 if test "${ac_cv_prog_CC+set}" = set; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 if test -n "$CC"; then
1753 ac_cv_prog_CC="$CC" # Let the user override the test.
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 test -z "$as_dir" && as_dir=.
1760 for ac_exec_ext in '' $ac_executable_extensions; do
1761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772 if test -n "$CC"; then
1773 echo "$as_me:$LINENO: result: $CC" >&5
1774 echo "${ECHO_T}$CC" >&6
1776 echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1780 test -n "$CC" && break
1783 if test -z "$CC"; then
1787 # Extract the first word of "$ac_prog", so it can be a program name with args.
1788 set dummy $ac_prog; ac_word=$2
1789 echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 if test -n "$ac_ct_CC"; then
1795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 test -z "$as_dir" && as_dir=.
1802 for ac_exec_ext in '' $ac_executable_extensions; do
1803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804 ac_cv_prog_ac_ct_CC="$ac_prog"
1805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1814 if test -n "$ac_ct_CC"; then
1815 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1816 echo "${ECHO_T}$ac_ct_CC" >&6
1818 echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1822 test -n "$ac_ct_CC" && break
1831 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1832 See \`config.log' for more details." >&5
1833 echo "$as_me: error: no acceptable C compiler found in \$PATH
1834 See \`config.log' for more details." >&2;}
1835 { (exit 1); exit 1; }; }
1837 # Provide some information about the compiler.
1838 echo "$as_me:$LINENO:" \
1839 "checking for C compiler version" >&5
1840 ac_compiler=`set X $ac_compile; echo $2`
1841 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1842 (eval $ac_compiler --version </dev/null >&5) 2>&5
1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845 (exit $ac_status); }
1846 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1847 (eval $ac_compiler -v </dev/null >&5) 2>&5
1849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850 (exit $ac_status); }
1851 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1852 (eval $ac_compiler -V </dev/null >&5) 2>&5
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }
1857 cat >conftest.$ac_ext <<_ACEOF
1858 #line $LINENO "configure"
1861 cat confdefs.h >>conftest.$ac_ext
1862 cat >>conftest.$ac_ext <<_ACEOF
1863 /* end confdefs.h. */
1873 ac_clean_files_save=$ac_clean_files
1874 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1875 # Try to create an executable without -o first, disregard a.out.
1876 # It will help us diagnose broken compilers, and finding out an intuition
1878 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1879 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1880 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1882 (eval $ac_link_default) 2>&5
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # Find the output, starting from the most likely. This scheme is
1887 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1890 # Be careful to initialize this variable, since it used to be cached.
1891 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1893 # b.out is created by i960 compilers.
1894 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1896 test -f "$ac_file" || continue
1898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1901 # This is the source file.
1904 # We found the default executable, but exeext='' is most
1908 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1909 # FIXME: I believe we export ac_cv_exeext for Libtool,
1910 # but it would be cool to find out if it's true. Does anybody
1911 # maintain Libtool? --akim.
1919 echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1922 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&5
1924 echo "$as_me: error: C compiler cannot create executables
1925 See \`config.log' for more details." >&2;}
1926 { (exit 77); exit 77; }; }
1929 ac_exeext=$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_file" >&5
1931 echo "${ECHO_T}$ac_file" >&6
1933 # Check the compiler produces executables we can run. If not, either
1934 # the compiler is broken, or we cross compile.
1935 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1936 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1937 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1938 # If not cross compiling, check that we can run a simple program.
1939 if test "$cross_compiling" != yes; then
1940 if { ac_try='./$ac_file'
1941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; }; then
1948 if test "$cross_compiling" = maybe; then
1951 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot run C compiled programs.
1955 If you meant to cross compile, use \`--host'.
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1961 echo "$as_me:$LINENO: result: yes" >&5
1962 echo "${ECHO_T}yes" >&6
1964 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1965 ac_clean_files=$ac_clean_files_save
1966 # Check the compiler produces executables we can run. If not, either
1967 # the compiler is broken, or we cross compile.
1968 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1969 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1970 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1971 echo "${ECHO_T}$cross_compiling" >&6
1973 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1974 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1976 (eval $ac_link) 2>&5
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }; then
1980 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1981 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1982 # work properly (i.e., refer to `conftest.exe'), while it won't with
1984 for ac_file in conftest.exe conftest conftest.*; do
1985 test -f "$ac_file" || continue
1987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1988 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1995 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1998 See \`config.log' for more details." >&2;}
1999 { (exit 1); exit 1; }; }
2002 rm -f conftest$ac_cv_exeext
2003 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2004 echo "${ECHO_T}$ac_cv_exeext" >&6
2006 rm -f conftest.$ac_ext
2007 EXEEXT=$ac_cv_exeext
2009 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2010 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2011 if test "${ac_cv_objext+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 cat >conftest.$ac_ext <<_ACEOF
2015 #line $LINENO "configure"
2018 cat confdefs.h >>conftest.$ac_ext
2019 cat >>conftest.$ac_ext <<_ACEOF
2020 /* end confdefs.h. */
2030 rm -f conftest.o conftest.obj
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032 (eval $ac_compile) 2>&5
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; then
2036 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2039 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2044 echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2047 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2048 See \`config.log' for more details." >&5
2049 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2050 See \`config.log' for more details." >&2;}
2051 { (exit 1); exit 1; }; }
2054 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2056 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2057 echo "${ECHO_T}$ac_cv_objext" >&6
2058 OBJEXT=$ac_cv_objext
2060 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2061 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2062 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 cat >conftest.$ac_ext <<_ACEOF
2066 #line $LINENO "configure"
2069 cat confdefs.h >>conftest.$ac_ext
2070 cat >>conftest.$ac_ext <<_ACEOF
2071 /* end confdefs.h. */
2084 rm -f conftest.$ac_objext
2085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086 (eval $ac_compile) 2>&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); } &&
2090 { ac_try='test -s conftest.$ac_objext'
2091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; }; then
2098 echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2103 rm -f conftest.$ac_objext conftest.$ac_ext
2104 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2107 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2108 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2109 GCC=`test $ac_compiler_gnu = yes && echo yes`
2110 ac_test_CFLAGS=${CFLAGS+set}
2111 ac_save_CFLAGS=$CFLAGS
2113 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2114 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2115 if test "${ac_cv_prog_cc_g+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 cat >conftest.$ac_ext <<_ACEOF
2119 #line $LINENO "configure"
2122 cat confdefs.h >>conftest.$ac_ext
2123 cat >>conftest.$ac_ext <<_ACEOF
2124 /* end confdefs.h. */
2134 rm -f conftest.$ac_objext
2135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2136 (eval $ac_compile) 2>&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); } &&
2140 { ac_try='test -s conftest.$ac_objext'
2141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; }; then
2148 echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2153 rm -f conftest.$ac_objext conftest.$ac_ext
2155 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2156 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2157 if test "$ac_test_CFLAGS" = set; then
2158 CFLAGS=$ac_save_CFLAGS
2159 elif test $ac_cv_prog_cc_g = yes; then
2160 if test "$GCC" = yes; then
2166 if test "$GCC" = yes; then
2172 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2173 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2174 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 ac_cv_prog_cc_stdc=no
2179 cat >conftest.$ac_ext <<_ACEOF
2180 #line $LINENO "configure"
2183 cat confdefs.h >>conftest.$ac_ext
2184 cat >>conftest.$ac_ext <<_ACEOF
2185 /* end confdefs.h. */
2188 #include <sys/types.h>
2189 #include <sys/stat.h>
2190 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2191 struct buf { int x; };
2192 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2193 static char *e (p, i)
2199 static char *f (char * (*g) (char **, int), char **p, ...)
2204 s = g (p, va_arg (v,int));
2208 int test (int i, double x);
2209 struct s1 {int (*f) (int a);};
2210 struct s2 {int (*f) (double a);};
2211 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2217 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2222 # Don't try gcc -ansi; that turns off useful extensions and
2223 # breaks some systems' header files.
2224 # AIX -qlanglvl=ansi
2225 # Ultrix and OSF/1 -std1
2226 # HP-UX 10.20 and later -Ae
2227 # HP-UX older versions -Aa -D_HPUX_SOURCE
2228 # SVR4 -Xc -D__EXTENSIONS__
2229 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2231 CC="$ac_save_CC $ac_arg"
2232 rm -f conftest.$ac_objext
2233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2234 (eval $ac_compile) 2>&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); } &&
2238 { ac_try='test -s conftest.$ac_objext'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2244 ac_cv_prog_cc_stdc=$ac_arg
2247 echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2251 rm -f conftest.$ac_objext
2253 rm -f conftest.$ac_ext conftest.$ac_objext
2258 case "x$ac_cv_prog_cc_stdc" in
2260 echo "$as_me:$LINENO: result: none needed" >&5
2261 echo "${ECHO_T}none needed" >&6 ;;
2263 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2264 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2265 CC="$CC $ac_cv_prog_cc_stdc" ;;
2268 # Some people use a C++ compiler to compile C. Since we use `exit',
2269 # in C++ we need to declare it. In case someone uses the same compiler
2270 # for both compiling C and C++ we need to have the C++ compiler decide
2271 # the declaration of exit, since it's the most demanding environment.
2272 cat >conftest.$ac_ext <<_ACEOF
2277 rm -f conftest.$ac_objext
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279 (eval $ac_compile) 2>&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); } &&
2283 { ac_try='test -s conftest.$ac_objext'
2284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; }; then
2289 for ac_declaration in \
2291 '#include <stdlib.h>' \
2292 'extern "C" void std::exit (int) throw (); using std::exit;' \
2293 'extern "C" void std::exit (int); using std::exit;' \
2294 'extern "C" void exit (int) throw ();' \
2295 'extern "C" void exit (int);' \
2298 cat >conftest.$ac_ext <<_ACEOF
2299 #line $LINENO "configure"
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h. */
2315 rm -f conftest.$ac_objext
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); } &&
2321 { ac_try='test -s conftest.$ac_objext'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2329 echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2334 rm -f conftest.$ac_objext conftest.$ac_ext
2335 cat >conftest.$ac_ext <<_ACEOF
2336 #line $LINENO "configure"
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353 (eval $ac_compile) 2>&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } &&
2357 { ac_try='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2369 rm -f conftest.$ac_objext conftest.$ac_ext
2372 if test -n "$ac_declaration"; then
2373 echo '#ifdef __cplusplus' >>confdefs.h
2374 echo $ac_declaration >>confdefs.h
2375 echo '#endif' >>confdefs.h
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2383 rm -f conftest.$ac_objext conftest.$ac_ext
2385 ac_cpp='$CPP $CPPFLAGS'
2386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391 ac_cpp='$CXXCPP $CPPFLAGS'
2392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2395 if test -n "$ac_tool_prefix"; then
2396 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2400 echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2402 if test "${ac_cv_prog_CXX+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2405 if test -n "$CXX"; then
2406 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2415 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 if test -n "$CXX"; then
2426 echo "$as_me:$LINENO: result: $CXX" >&5
2427 echo "${ECHO_T}$CXX" >&6
2429 echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6
2433 test -n "$CXX" && break
2436 if test -z "$CXX"; then
2438 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2440 # Extract the first word of "$ac_prog", so it can be a program name with args.
2441 set dummy $ac_prog; ac_word=$2
2442 echo "$as_me:$LINENO: checking for $ac_word" >&5
2443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2444 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 if test -n "$ac_ct_CXX"; then
2448 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 test -z "$as_dir" && as_dir=.
2455 for ac_exec_ext in '' $ac_executable_extensions; do
2456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2457 ac_cv_prog_ac_ct_CXX="$ac_prog"
2458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2467 if test -n "$ac_ct_CXX"; then
2468 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2469 echo "${ECHO_T}$ac_ct_CXX" >&6
2471 echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6
2475 test -n "$ac_ct_CXX" && break
2477 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2483 # Provide some information about the compiler.
2484 echo "$as_me:$LINENO:" \
2485 "checking for C++ compiler version" >&5
2486 ac_compiler=`set X $ac_compile; echo $2`
2487 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2488 (eval $ac_compiler --version </dev/null >&5) 2>&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }
2492 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2493 (eval $ac_compiler -v </dev/null >&5) 2>&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }
2497 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2498 (eval $ac_compiler -V </dev/null >&5) 2>&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }
2503 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2504 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2505 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 cat >conftest.$ac_ext <<_ACEOF
2509 #line $LINENO "configure"
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } &&
2533 { ac_try='test -s conftest.$ac_objext'
2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; }; then
2541 echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2546 rm -f conftest.$ac_objext conftest.$ac_ext
2547 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2550 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2551 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2552 GXX=`test $ac_compiler_gnu = yes && echo yes`
2553 ac_test_CXXFLAGS=${CXXFLAGS+set}
2554 ac_save_CXXFLAGS=$CXXFLAGS
2556 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2557 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2558 if test "${ac_cv_prog_cxx_g+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 cat >conftest.$ac_ext <<_ACEOF
2562 #line $LINENO "configure"
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2577 rm -f conftest.$ac_objext
2578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579 (eval $ac_compile) 2>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try='test -s conftest.$ac_objext'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; }; then
2589 ac_cv_prog_cxx_g=yes
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2596 rm -f conftest.$ac_objext conftest.$ac_ext
2598 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2599 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2600 if test "$ac_test_CXXFLAGS" = set; then
2601 CXXFLAGS=$ac_save_CXXFLAGS
2602 elif test $ac_cv_prog_cxx_g = yes; then
2603 if test "$GXX" = yes; then
2609 if test "$GXX" = yes; then
2615 for ac_declaration in \
2617 '#include <stdlib.h>' \
2618 'extern "C" void std::exit (int) throw (); using std::exit;' \
2619 'extern "C" void std::exit (int); using std::exit;' \
2620 'extern "C" void exit (int) throw ();' \
2621 'extern "C" void exit (int);' \
2624 cat >conftest.$ac_ext <<_ACEOF
2625 #line $LINENO "configure"
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643 (eval $ac_compile) 2>&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); } &&
2647 { ac_try='test -s conftest.$ac_objext'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; }; then
2655 echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2660 rm -f conftest.$ac_objext conftest.$ac_ext
2661 cat >conftest.$ac_ext <<_ACEOF
2662 #line $LINENO "configure"
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h. */
2677 rm -f conftest.$ac_objext
2678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679 (eval $ac_compile) 2>&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); } &&
2683 { ac_try='test -s conftest.$ac_objext'
2684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; }; then
2691 echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2695 rm -f conftest.$ac_objext conftest.$ac_ext
2698 if test -n "$ac_declaration"; then
2699 echo '#ifdef __cplusplus' >>confdefs.h
2700 echo $ac_declaration >>confdefs.h
2701 echo '#endif' >>confdefs.h
2705 ac_cpp='$CPP $CPPFLAGS'
2706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710 if test "x$CC" != xcc; then
2711 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2712 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2714 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2715 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2717 set dummy $CC; ac_cc=`echo $2 |
2718 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2719 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 cat >conftest.$ac_ext <<_ACEOF
2723 #line $LINENO "configure"
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2738 # Make sure it works both with $CC and with simple cc.
2739 # We do the test twice because some compilers refuse to overwrite an
2740 # existing .o file with -o, though they will create one.
2741 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2742 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); };
2753 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2754 if test "x$CC" != xcc; then
2755 # Test first that cc exists at all.
2756 if { ac_try='cc -c conftest.$ac_ext >&5'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2763 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } &&
2768 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); };
2777 # cc exists but doesn't like -o.
2778 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2783 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2788 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2789 echo "$as_me:$LINENO: result: yes" >&5
2790 echo "${ECHO_T}yes" >&6
2792 echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6
2795 cat >>confdefs.h <<\_ACEOF
2796 #define NO_MINUS_C_MINUS_O 1
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2807 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2808 # On Suns, sometimes $CPP names a directory.
2809 if test -n "$CPP" && test -d "$CPP"; then
2812 if test -z "$CPP"; then
2813 if test "${ac_cv_prog_CPP+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 # Double quotes because CPP needs to be expanded
2817 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2820 for ac_c_preproc_warn_flag in '' yes
2822 # Use a header file that comes with gcc, so configuring glibc
2823 # with a fresh cross-compiler works.
2824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2825 # <limits.h> exists even on freestanding compilers.
2826 # On the NeXT, cc -E runs the code through the compiler's parser,
2827 # not just through cpp. "Syntax error" is here to catch this case.
2828 cat >conftest.$ac_ext <<_ACEOF
2829 #line $LINENO "configure"
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2836 # include <limits.h>
2838 # include <assert.h>
2842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2845 grep -v '^ *+' conftest.er1 >conftest.err
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } >/dev/null; then
2850 if test -s conftest.err; then
2851 ac_cpp_err=$ac_c_preproc_warn_flag
2858 if test -z "$ac_cpp_err"; then
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 # Broken: fails on valid input.
2867 rm -f conftest.err conftest.$ac_ext
2869 # OK, works on sane cases. Now check whether non-existent headers
2870 # can be detected and how.
2871 cat >conftest.$ac_ext <<_ACEOF
2872 #line $LINENO "configure"
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2878 #include <ac_nonexistent.h>
2880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2883 grep -v '^ *+' conftest.er1 >conftest.err
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } >/dev/null; then
2888 if test -s conftest.err; then
2889 ac_cpp_err=$ac_c_preproc_warn_flag
2896 if test -z "$ac_cpp_err"; then
2897 # Broken: success on invalid input.
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2903 # Passes both tests.
2907 rm -f conftest.err conftest.$ac_ext
2910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2911 rm -f conftest.err conftest.$ac_ext
2912 if $ac_preproc_ok; then
2924 echo "$as_me:$LINENO: result: $CPP" >&5
2925 echo "${ECHO_T}$CPP" >&6
2927 for ac_c_preproc_warn_flag in '' yes
2929 # Use a header file that comes with gcc, so configuring glibc
2930 # with a fresh cross-compiler works.
2931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2932 # <limits.h> exists even on freestanding compilers.
2933 # On the NeXT, cc -E runs the code through the compiler's parser,
2934 # not just through cpp. "Syntax error" is here to catch this case.
2935 cat >conftest.$ac_ext <<_ACEOF
2936 #line $LINENO "configure"
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h. */
2943 # include <limits.h>
2945 # include <assert.h>
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2952 grep -v '^ *+' conftest.er1 >conftest.err
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } >/dev/null; then
2957 if test -s conftest.err; then
2958 ac_cpp_err=$ac_c_preproc_warn_flag
2965 if test -z "$ac_cpp_err"; then
2968 echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2971 # Broken: fails on valid input.
2974 rm -f conftest.err conftest.$ac_ext
2976 # OK, works on sane cases. Now check whether non-existent headers
2977 # can be detected and how.
2978 cat >conftest.$ac_ext <<_ACEOF
2979 #line $LINENO "configure"
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2985 #include <ac_nonexistent.h>
2987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2990 grep -v '^ *+' conftest.er1 >conftest.err
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } >/dev/null; then
2995 if test -s conftest.err; then
2996 ac_cpp_err=$ac_c_preproc_warn_flag
3003 if test -z "$ac_cpp_err"; then
3004 # Broken: success on invalid input.
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3010 # Passes both tests.
3014 rm -f conftest.err conftest.$ac_ext
3017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3018 rm -f conftest.err conftest.$ac_ext
3019 if $ac_preproc_ok; then
3022 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3023 See \`config.log' for more details." >&5
3024 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3025 See \`config.log' for more details." >&2;}
3026 { (exit 1); exit 1; }; }
3030 ac_cpp='$CPP $CPPFLAGS'
3031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036 echo "$as_me:$LINENO: checking for egrep" >&5
3037 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3038 if test "${ac_cv_prog_egrep+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3042 then ac_cv_prog_egrep='grep -E'
3043 else ac_cv_prog_egrep='egrep'
3046 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3047 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3048 EGREP=$ac_cv_prog_egrep
3051 if test $ac_cv_c_compiler_gnu = yes; then
3052 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3053 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3054 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3057 ac_pattern="Autoconf.*'x'"
3058 cat >conftest.$ac_ext <<_ACEOF
3059 #line $LINENO "configure"
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3069 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3070 ac_cv_prog_gcc_traditional=yes
3072 ac_cv_prog_gcc_traditional=no
3077 if test $ac_cv_prog_gcc_traditional = no; then
3078 cat >conftest.$ac_ext <<_ACEOF
3079 #line $LINENO "configure"
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3089 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3090 ac_cv_prog_gcc_traditional=yes
3096 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3097 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3098 if test $ac_cv_prog_gcc_traditional = yes; then
3099 CC="$CC -traditional"
3105 cat >>confdefs.h <<\_ACEOF
3111 # Find a good install program. We prefer a C program (faster),
3112 # so one script is as good as another. But avoid the broken or
3113 # incompatible versions:
3114 # SysV /etc/install, /usr/sbin/install
3115 # SunOS /usr/etc/install
3116 # IRIX /sbin/install
3118 # AmigaOS /C/install, which installs bootblocks on floppy discs
3119 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3120 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3121 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3122 # ./install, which can be erroneously created by make from ./install.sh.
3123 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3124 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3125 if test -z "$INSTALL"; then
3126 if test "${ac_cv_path_install+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 test -z "$as_dir" && as_dir=.
3134 # Account for people who put trailing slashes in PATH elements.
3136 ./ | .// | /cC/* | \
3137 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3140 # OSF1 and SCO ODT 3.0 have their own names for install.
3141 # Don't use installbsd from OSF since it installs stuff as root
3143 for ac_prog in ginstall scoinst install; do
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3146 if test $ac_prog = install &&
3147 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3148 # AIX install. It has an incompatible calling convention.
3150 elif test $ac_prog = install &&
3151 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3152 # program-specific install script used by HP pwplus--don't use.
3155 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3167 if test "${ac_cv_path_install+set}" = set; then
3168 INSTALL=$ac_cv_path_install
3170 # As a last resort, use the slow shell script. We don't cache a
3171 # path for INSTALL within a source directory, because that will
3172 # break other packages using the cache if that directory is
3173 # removed, or if the path is relative.
3174 INSTALL=$ac_install_sh
3177 echo "$as_me:$LINENO: result: $INSTALL" >&5
3178 echo "${ECHO_T}$INSTALL" >&6
3180 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3181 # It thinks the first close brace ends the variable substitution.
3182 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3184 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3186 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3188 if test -n "$ac_tool_prefix"; then
3189 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3190 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3191 echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3193 if test "${ac_cv_prog_RANLIB+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 if test -n "$RANLIB"; then
3197 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 RANLIB=$ac_cv_prog_RANLIB
3216 if test -n "$RANLIB"; then
3217 echo "$as_me:$LINENO: result: $RANLIB" >&5
3218 echo "${ECHO_T}$RANLIB" >&6
3220 echo "$as_me:$LINENO: result: no" >&5
3221 echo "${ECHO_T}no" >&6
3225 if test -z "$ac_cv_prog_RANLIB"; then
3226 ac_ct_RANLIB=$RANLIB
3227 # Extract the first word of "ranlib", so it can be a program name with args.
3228 set dummy ranlib; ac_word=$2
3229 echo "$as_me:$LINENO: checking for $ac_word" >&5
3230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3231 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 if test -n "$ac_ct_RANLIB"; then
3235 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244 ac_cv_prog_ac_ct_RANLIB="ranlib"
3245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3254 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3255 if test -n "$ac_ct_RANLIB"; then
3256 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3257 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3259 echo "$as_me:$LINENO: result: no" >&5
3260 echo "${ECHO_T}no" >&6
3263 RANLIB=$ac_ct_RANLIB
3265 RANLIB="$ac_cv_prog_RANLIB"
3268 # Extract the first word of "mv", so it can be a program name with args.
3269 set dummy mv; ac_word=$2
3270 echo "$as_me:$LINENO: checking for $ac_word" >&5
3271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3272 if test "${ac_cv_path_MV+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3300 if test -n "$MV"; then
3301 echo "$as_me:$LINENO: result: $MV" >&5
3302 echo "${ECHO_T}$MV" >&6
3304 echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3308 # Extract the first word of "rm", so it can be a program name with args.
3309 set dummy rm; ac_word=$2
3310 echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3312 if test "${ac_cv_path_RM+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3340 if test -n "$RM"; then
3341 echo "$as_me:$LINENO: result: $RM" >&5
3342 echo "${ECHO_T}$RM" >&6
3344 echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3348 # Extract the first word of "cp", so it can be a program name with args.
3349 set dummy cp; ac_word=$2
3350 echo "$as_me:$LINENO: checking for $ac_word" >&5
3351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3352 if test "${ac_cv_path_CP+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3380 if test -n "$CP"; then
3381 echo "$as_me:$LINENO: result: $CP" >&5
3382 echo "${ECHO_T}$CP" >&6
3384 echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3388 # Extract the first word of "sed", so it can be a program name with args.
3389 set dummy sed; ac_word=$2
3390 echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_path_SED+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3420 if test -n "$SED"; then
3421 echo "$as_me:$LINENO: result: $SED" >&5
3422 echo "${ECHO_T}$SED" >&6
3424 echo "$as_me:$LINENO: result: no" >&5
3425 echo "${ECHO_T}no" >&6
3428 # Extract the first word of "awk", so it can be a program name with args.
3429 set dummy awk; ac_word=$2
3430 echo "$as_me:$LINENO: checking for $ac_word" >&5
3431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3432 if test "${ac_cv_path_AWK+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3460 if test -n "$AWK"; then
3461 echo "$as_me:$LINENO: result: $AWK" >&5
3462 echo "${ECHO_T}$AWK" >&6
3464 echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3468 # Extract the first word of "echo", so it can be a program name with args.
3469 set dummy echo; ac_word=$2
3470 echo "$as_me:$LINENO: checking for $ac_word" >&5
3471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3472 if test "${ac_cv_path_ECHO+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3498 ECHO=$ac_cv_path_ECHO
3500 if test -n "$ECHO"; then
3501 echo "$as_me:$LINENO: result: $ECHO" >&5
3502 echo "${ECHO_T}$ECHO" >&6
3504 echo "$as_me:$LINENO: result: no" >&5
3505 echo "${ECHO_T}no" >&6
3508 # Extract the first word of "cmp", so it can be a program name with args.
3509 set dummy cmp; ac_word=$2
3510 echo "$as_me:$LINENO: checking for $ac_word" >&5
3511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512 if test "${ac_cv_path_CMP+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3540 if test -n "$CMP"; then
3541 echo "$as_me:$LINENO: result: $CMP" >&5
3542 echo "${ECHO_T}$CMP" >&6
3544 echo "$as_me:$LINENO: result: no" >&5
3545 echo "${ECHO_T}no" >&6
3548 # Extract the first word of "tbl", so it can be a program name with args.
3549 set dummy tbl; ac_word=$2
3550 echo "$as_me:$LINENO: checking for $ac_word" >&5
3551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3552 if test "${ac_cv_path_TBL+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3580 if test -n "$TBL"; then
3581 echo "$as_me:$LINENO: result: $TBL" >&5
3582 echo "${ECHO_T}$TBL" >&6
3584 echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3588 # Extract the first word of "ar", so it can be a program name with args.
3589 set dummy ar; ac_word=$2
3590 echo "$as_me:$LINENO: checking for $ac_word" >&5
3591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3592 if test "${ac_cv_path_AR+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3620 if test -n "$AR"; then
3621 echo "$as_me:$LINENO: result: $AR" >&5
3622 echo "${ECHO_T}$AR" >&6
3624 echo "$as_me:$LINENO: result: no" >&5
3625 echo "${ECHO_T}no" >&6
3628 # Extract the first word of "ranlib", so it can be a program name with args.
3629 set dummy ranlib; ac_word=$2
3630 echo "$as_me:$LINENO: checking for $ac_word" >&5
3631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3632 if test "${ac_cv_path_RANLIB+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 test -z "$as_dir" && as_dir=.
3645 for ac_exec_ext in '' $ac_executable_extensions; do
3646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3647 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3658 RANLIB=$ac_cv_path_RANLIB
3660 if test -n "$RANLIB"; then
3661 echo "$as_me:$LINENO: result: $RANLIB" >&5
3662 echo "${ECHO_T}$RANLIB" >&6
3664 echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3668 # Extract the first word of "openssl", so it can be a program name with args.
3669 set dummy openssl; ac_word=$2
3670 echo "$as_me:$LINENO: checking for $ac_word" >&5
3671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3672 if test "${ac_cv_path_OPENSSL+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3698 OPENSSL=$ac_cv_path_OPENSSL
3700 if test -n "$OPENSSL"; then
3701 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3702 echo "${ECHO_T}$OPENSSL" >&6
3704 echo "$as_me:$LINENO: result: no" >&5
3705 echo "${ECHO_T}no" >&6
3708 # Extract the first word of "mtx", so it can be a program name with args.
3709 set dummy mtx; ac_word=$2
3710 echo "$as_me:$LINENO: checking for $ac_word" >&5
3711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3712 if test "${ac_cv_path_MTX+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 test -z "$as_dir" && as_dir=.
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3740 if test -n "$MTX"; then
3741 echo "$as_me:$LINENO: result: $MTX" >&5
3742 echo "${ECHO_T}$MTX" >&6
3744 echo "$as_me:$LINENO: result: no" >&5
3745 echo "${ECHO_T}no" >&6
3748 # Extract the first word of "pkg-config", so it can be a program name with args.
3749 set dummy pkg-config; ac_word=$2
3750 echo "$as_me:$LINENO: checking for $ac_word" >&5
3751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3752 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3778 PKGCONFIG=$ac_cv_path_PKGCONFIG
3780 if test -n "$PKGCONFIG"; then
3781 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3782 echo "${ECHO_T}$PKGCONFIG" >&6
3784 echo "$as_me:$LINENO: result: no" >&5
3785 echo "${ECHO_T}no" >&6
3789 test -n "$ARFLAG" || ARFLAGS="cr"
3802 echo "$as_me:$LINENO: checking for Operating System" >&5
3803 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3806 *cygwin* ) CYGWIN=yes;;
3810 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3816 HAVE_SUN_OS_FALSE='#'
3818 HAVE_SUN_OS_TRUE='#'
3821 cat >>confdefs.h <<\_ACEOF
3822 #define HAVE_SUN_OS 1
3830 HAVE_SUN_OS_FALSE='#'
3832 HAVE_SUN_OS_TRUE='#'
3837 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3843 HAVE_OSF1_OS_FALSE='#'
3845 HAVE_OSF1_OS_TRUE='#'
3848 cat >>confdefs.h <<\_ACEOF
3849 #define HAVE_OSF1_OS 1
3857 HAVE_OSF1_OS_FALSE='#'
3859 HAVE_OSF1_OS_TRUE='#'
3864 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3870 HAVE_AIX_OS_FALSE='#'
3872 HAVE_AIX_OS_TRUE='#'
3875 cat >>confdefs.h <<\_ACEOF
3876 #define HAVE_AIX_OS 1
3884 HAVE_AIX_OS_FALSE='#'
3886 HAVE_AIX_OS_TRUE='#'
3891 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3897 HAVE_HPUX_OS_FALSE='#'
3899 HAVE_HPUX_OS_TRUE='#'
3902 cat >>confdefs.h <<\_ACEOF
3903 #define HAVE_HPUX_OS 1
3911 HAVE_HPUX_OS_FALSE='#'
3913 HAVE_HPUX_OS_TRUE='#'
3918 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3924 HAVE_LINUX_OS_FALSE='#'
3926 HAVE_LINUX_OS_TRUE='#'
3927 HAVE_LINUX_OS_FALSE=
3929 cat >>confdefs.h <<\_ACEOF
3930 #define HAVE_LINUX_OS 1
3938 HAVE_LINUX_OS_FALSE='#'
3940 HAVE_LINUX_OS_TRUE='#'
3941 HAVE_LINUX_OS_FALSE=
3945 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3950 HAVE_FREEBSD_OS_TRUE=
3951 HAVE_FREEBSD_OS_FALSE='#'
3953 HAVE_FREEBSD_OS_TRUE='#'
3954 HAVE_FREEBSD_OS_FALSE=
3956 cat >>confdefs.h <<\_ACEOF
3957 #define HAVE_FREEBSD_OS 1
3964 HAVE_FREEBSD_OS_TRUE=
3965 HAVE_FREEBSD_OS_FALSE='#'
3967 HAVE_FREEBSD_OS_TRUE='#'
3968 HAVE_FREEBSD_OS_FALSE=
3972 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3977 HAVE_NETBSD_OS_TRUE=
3978 HAVE_NETBSD_OS_FALSE='#'
3980 HAVE_NETBSD_OS_TRUE='#'
3981 HAVE_NETBSD_OS_FALSE=
3983 cat >>confdefs.h <<\_ACEOF
3984 #define HAVE_NETBSD_OS 1
3991 HAVE_NETBSD_OS_TRUE=
3992 HAVE_NETBSD_OS_FALSE='#'
3994 HAVE_NETBSD_OS_TRUE='#'
3995 HAVE_NETBSD_OS_FALSE=
3999 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4004 HAVE_OPENBSD_OS_TRUE=
4005 HAVE_OPENBSD_OS_FALSE='#'
4007 HAVE_OPENBSD_OS_TRUE='#'
4008 HAVE_OPENBSD_OS_FALSE=
4010 cat >>confdefs.h <<\_ACEOF
4011 #define HAVE_OPENBSD_OS 1
4018 HAVE_OPENBSD_OS_TRUE=
4019 HAVE_OPENBSD_OS_FALSE='#'
4021 HAVE_OPENBSD_OS_TRUE='#'
4022 HAVE_OPENBSD_OS_FALSE=
4026 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4032 HAVE_BSDI_OS_FALSE='#'
4034 HAVE_BSDI_OS_TRUE='#'
4037 cat >>confdefs.h <<\_ACEOF
4038 #define HAVE_BSDI_OS 1
4046 HAVE_BSDI_OS_FALSE='#'
4048 HAVE_BSDI_OS_TRUE='#'
4053 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4059 HAVE_SGI_OS_FALSE='#'
4061 HAVE_SGI_OS_TRUE='#'
4064 cat >>confdefs.h <<\_ACEOF
4065 #define HAVE_SGI_OS 1
4073 HAVE_SGI_OS_FALSE='#'
4075 HAVE_SGI_OS_TRUE='#'
4080 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4086 HAVE_IRIX_OS_FALSE='#'
4088 HAVE_IRIX_OS_TRUE='#'
4091 cat >>confdefs.h <<\_ACEOF
4092 #define HAVE_IRIX_OS 1
4100 HAVE_IRIX_OS_FALSE='#'
4102 HAVE_IRIX_OS_TRUE='#'
4107 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4112 HAVE_DARWIN_OS_TRUE=
4113 HAVE_DARWIN_OS_FALSE='#'
4115 HAVE_DARWIN_OS_TRUE='#'
4116 HAVE_DARWIN_OS_FALSE=
4118 cat >>confdefs.h <<\_ACEOF
4119 #define HAVE_DARWIN_OS 1
4126 HAVE_DARWIN_OS_TRUE=
4127 HAVE_DARWIN_OS_FALSE='#'
4129 HAVE_DARWIN_OS_TRUE='#'
4130 HAVE_DARWIN_OS_FALSE=
4134 echo "$as_me:$LINENO: result: \" \"" >&5
4135 echo "${ECHO_T}\" \"" >&6
4138 # -----------------------------------------------------------
4139 # ----------------------------------------------------------
4140 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4141 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4142 if test "x$DISTNAME" != "x"
4144 echo "distname set to $DISTNAME"
4145 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4148 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4151 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4154 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4157 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4160 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4163 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4166 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4169 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4172 elif test -f /etc/SuSE-release
4175 elif test -d /etc/SuSEconfig
4178 elif test -f /etc/mandrake-release
4181 elif test -f /etc/redhat-release
4184 elif test -f /etc/gentoo-release
4187 elif test -f /etc/debian_version
4190 elif test -f /etc/slackware-version
4193 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4196 elif test -f /etc/engarde-version
4199 elif test "$CYGWIN" = yes
4202 cat >>confdefs.h <<\_ACEOF
4203 #define HAVE_CYGWIN 1
4209 echo "$as_me:$LINENO: result: \" \"" >&5
4210 echo "${ECHO_T}\" \"" >&6
4213 # -----------------------------------------------------------
4214 # ----------------------------------------------------------
4219 INSIDE_GNOME_COMMON_TRUE=
4220 INSIDE_GNOME_COMMON_FALSE='#'
4222 INSIDE_GNOME_COMMON_TRUE='#'
4223 INSIDE_GNOME_COMMON_FALSE=
4226 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4228 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4231 # ------------------------------------------------------------------
4232 # If the user has not set --prefix, we set our default to nothing.
4233 # In this case, if the user has not set --sysconfdir, we set it
4234 # to the package default of /etc/bacula. If either --prefix or
4235 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4236 # ------------------------------------------------------------------
4237 if test x${prefix} = xNONE ; then
4238 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4239 sysconfdir=/etc/bacula
4243 sysconfdir=`eval echo ${sysconfdir}`
4245 # -------------------------------------------------------------------------
4246 # If the user has not set --exec-prefix, we default to ${prefix}
4247 # -------------------------------------------------------------------------
4248 if test x${exec_prefix} = xNONE ; then
4249 exec_prefix=${prefix}
4252 # ------------------------------------------------------------------
4253 # If the user has not set --sbindir, we set our default as /sbin
4254 # ------------------------------------------------------------------
4255 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4256 sbindir=${exec_prefix}/sbin
4258 sbindir=`eval echo ${sbindir}`
4260 # ------------------------------------------------------------------
4261 # All list of languages for which a translation exist. Each
4262 # language is separated by a space.
4263 # ------------------------------------------------------------------
4266 for ac_prog in msgfmt
4268 # Extract the first word of "$ac_prog", so it can be a program name with args.
4269 set dummy $ac_prog; ac_word=$2
4270 echo "$as_me:$LINENO: checking for $ac_word" >&5
4271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4272 if test "${ac_cv_path_MSGFMT+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 MSGFMT=$ac_cv_path_MSGFMT
4299 if test -n "$MSGFMT"; then
4300 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4301 echo "${ECHO_T}$MSGFMT" >&6
4303 echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6
4307 test -n "$MSGFMT" && break
4309 test -n "$MSGFMT" || MSGFMT="no"
4311 if test "$MSGFMT" = "no"
4313 echo 'msgfmt program not found, disabling NLS !'
4315 USE_INCLUDED_LIBINTL=no
4323 support_postgresql=no
4324 support_smartalloc=yes
4329 support_static_tools=no
4330 support_static_fd=no
4331 support_static_sd=no
4332 support_static_dir=no
4333 support_static_cons=no
4334 build_client_only=no
4340 # -------------------------------------------
4341 # gnome (default off)
4342 # -------------------------------------------
4343 # Check whether --enable-gnome or --disable-gnome was given.
4344 if test "${enable_gnome+set}" = set; then
4345 enableval="$enable_gnome"
4346 if test x$enableval = xyes; then
4352 if test x$support_gnome = xyes; then
4353 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4355 if test $pkg = 0; then
4356 GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4357 GNOMEUI_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4358 GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4359 GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4364 GNOME_DIR=src/gnome2-console
4365 gnome_version="Version 2.x"
4378 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4379 if test "${with_gnome_includes+set}" = set; then
4380 withval="$with_gnome_includes"
4382 CFLAGS="$CFLAGS -I$withval"
4387 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4388 if test "${with_gnome_libs+set}" = set; then
4389 withval="$with_gnome_libs"
4391 LDFLAGS="$LDFLAGS -L$withval"
4392 gnome_prefix=$withval
4397 # Check whether --with-gnome or --without-gnome was given.
4398 if test "${with_gnome+set}" = set; then
4399 withval="$with_gnome"
4400 if test x$withval = xyes; then
4404 if test "x$withval" = xno; then
4408 LDFLAGS="$LDFLAGS -L$withval/lib"
4409 CFLAGS="$CFLAGS -I$withval/include"
4410 gnome_prefix=$withval/lib
4417 if test "x$want_gnome" = xyes; then
4419 # Extract the first word of "gnome-config", so it can be a program name with args.
4420 set dummy gnome-config; ac_word=$2
4421 echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 case $GNOME_CONFIG in
4428 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4449 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4451 if test -n "$GNOME_CONFIG"; then
4452 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4453 echo "${ECHO_T}$GNOME_CONFIG" >&6
4455 echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4459 if test "$GNOME_CONFIG" = "no"; then
4460 no_gnome_config="yes"
4462 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4463 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4464 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4465 echo "$as_me:$LINENO: result: yes" >&5
4466 echo "${ECHO_T}yes" >&6
4469 # Extract the first word of "orbit-config", so it can be a program name with args.
4470 set dummy orbit-config; ac_word=$2
4471 echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4473 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 case $ORBIT_CONFIG in
4478 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4499 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4501 if test -n "$ORBIT_CONFIG"; then
4502 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4503 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4505 echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6
4509 # Extract the first word of "orbit-idl", so it can be a program name with args.
4510 set dummy orbit-idl; ac_word=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4539 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4541 if test -n "$ORBIT_IDL"; then
4542 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4543 echo "${ECHO_T}$ORBIT_IDL" >&6
4545 echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4549 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4550 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4551 if test "${gnome_cv_orbit_found+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4556 gnome_cv_orbit_found=no
4558 gnome_cv_orbit_found=yes
4562 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4563 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4566 if test x$gnome_cv_orbit_found = xyes; then
4568 HAVE_ORBIT_FALSE='#'
4573 if test x$gnome_cv_orbit_found = xyes; then
4575 ORBIT_CFLAGS=`orbit-config --cflags client server`
4576 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4580 if test xfail = xfailure; then
4581 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4582 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4583 { (exit 1); exit 1; }; }
4587 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4588 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4589 if test "${gnome_cv_gnorba_found+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 gnome_cv_gnorba_found=no
4594 if test x$gnome_cv_orbit_found = xyes; then
4595 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4596 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4597 if test -n "$GNORBA_LIBS"; then
4598 gnome_cv_gnorba_found=yes
4603 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4604 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4607 if test x$gnome_cv_gnorba_found = xyes; then
4609 HAVE_GNORBA_FALSE='#'
4611 HAVE_GNORBA_TRUE='#'
4614 if test x$gnome_cv_orbit_found = xyes; then
4616 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4617 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4621 if test xfail = xfailure; then
4622 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4623 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4624 { (exit 1); exit 1; }; }
4628 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4629 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4630 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4631 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4632 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4633 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4634 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4637 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4639 no_gnome_config="yes"
4643 if test x$exec_prefix = xNONE; then
4644 if test x$prefix = xNONE; then
4645 gnome_prefix=$ac_default_prefix/lib
4647 gnome_prefix=$prefix/lib
4650 gnome_prefix=`eval echo \`echo $libdir\``
4653 if test "$no_gnome_config" = "yes"; then
4654 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4655 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4656 if test -f $gnome_prefix/gnomeConf.sh; then
4657 echo "$as_me:$LINENO: result: found" >&5
4658 echo "${ECHO_T}found" >&6
4659 echo "loading gnome configuration from" \
4660 "$gnome_prefix/gnomeConf.sh"
4661 . $gnome_prefix/gnomeConf.sh
4664 echo "$as_me:$LINENO: result: not found" >&5
4665 echo "${ECHO_T}not found" >&6
4666 if test xfail = xfail; then
4667 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4668 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4669 { (exit 1); exit 1; }; }
4678 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4679 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4683 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4684 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4685 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4688 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4689 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4690 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4693 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4694 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4695 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4697 echo "$as_me:$LINENO: result: unknown library" >&5
4698 echo "${ECHO_T}unknown library" >&6
4700 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4701 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4706 GNOME_DIR=src/gnome-console
4707 gnome_version="Version 1.4"
4713 # -------------------------------------------
4714 # smartalloc (default off)
4715 # -------------------------------------------
4716 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4717 if test "${enable_smartalloc+set}" = set; then
4718 enableval="$enable_smartalloc"
4719 if test x$enableval = xno; then
4720 support_smartalloc=no
4724 if test x$support_smartalloc = xyes; then
4725 cat >>confdefs.h <<\_ACEOF
4726 #define SMARTALLOC 1
4731 # -------------------------------------------
4732 # static-tools (default off)
4733 # -------------------------------------------
4734 # Check whether --enable-static-tools or --disable-static-tools was given.
4735 if test "${enable_static_tools+set}" = set; then
4736 enableval="$enable_static_tools"
4737 if test x$enableval = xyes; then
4738 support_static_tools=yes
4743 if test x$support_static_tools = xyes; then
4744 TTOOL_LDFLAGS="-static"
4748 # -------------------------------------------
4749 # static-fd (default off)
4750 # -------------------------------------------
4751 # Check whether --enable-static-fd or --disable-static-fd was given.
4752 if test "${enable_static_fd+set}" = set; then
4753 enableval="$enable_static_fd"
4754 if test x$enableval = xyes; then
4755 support_static_fd=yes
4760 if test x$support_static_fd = xyes; then
4761 STATIC_FD="static-bacula-fd"
4765 # -------------------------------------------
4766 # static-sd (default off)
4767 # -------------------------------------------
4768 # Check whether --enable-static-sd or --disable-static-sd was given.
4769 if test "${enable_static_sd+set}" = set; then
4770 enableval="$enable_static_sd"
4771 if test x$enableval = xyes; then
4772 support_static_sd=yes
4777 if test x$support_static_sd = xyes; then
4778 STATIC_SD="static-bacula-sd"
4782 # -------------------------------------------
4783 # static-dir (default off)
4784 # -------------------------------------------
4785 # Check whether --enable-static-dir or --disable-static-dir was given.
4786 if test "${enable_static_dir+set}" = set; then
4787 enableval="$enable_static_dir"
4788 if test x$enableval = xyes; then
4789 support_static_dir=yes
4794 if test x$support_static_dir = xyes; then
4795 STATIC_DIR="static-bacula-dir"
4799 # -------------------------------------------
4800 # static-cons (default off)
4801 # -------------------------------------------
4802 # Check whether --enable-static-cons or --disable-static-cons was given.
4803 if test "${enable_static_cons+set}" = set; then
4804 enableval="$enable_static_cons"
4805 if test x$enableval = xyes; then
4806 support_static_cons=yes
4812 if test x$support_static_cons = xyes; then
4813 STATIC_CONS="static-bconsole"
4814 STATIC_GNOME_CONS="static-gnome-console"
4819 # -------------------------------------------
4820 # client_only (default off)
4821 # -------------------------------------------
4822 # Check whether --enable-client-only or --disable-client-only was given.
4823 if test "${enable_client_only+set}" = set; then
4824 enableval="$enable_client_only"
4825 if test x$enableval = xyes; then
4826 build_client_only=yes
4829 if test x$build_client_only = xno; then
4836 # ---------------------------------------------------
4837 # Check for conio (Bacula readline substitute)(
4838 # ---------------------------------------------------
4839 # this allows you to turn it completely off
4840 # Check whether --enable-conio or --disable-conio was given.
4841 if test "${enable_conio+set}" = set; then
4842 enableval="$enable_conio"
4843 if test x$enableval = xno; then
4849 if test x$support_conio = xyes; then
4853 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4854 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4855 if test "${ac_cv_header_stdc+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 cat >conftest.$ac_ext <<_ACEOF
4859 #line $LINENO "configure"
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4878 rm -f conftest.$ac_objext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880 (eval $ac_compile) 2>&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } &&
4884 { ac_try='test -s conftest.$ac_objext'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; }; then
4890 ac_cv_header_stdc=yes
4892 echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4895 ac_cv_header_stdc=no
4897 rm -f conftest.$ac_objext conftest.$ac_ext
4899 if test $ac_cv_header_stdc = yes; then
4900 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4901 cat >conftest.$ac_ext <<_ACEOF
4902 #line $LINENO "configure"
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4912 $EGREP "memchr" >/dev/null 2>&1; then
4915 ac_cv_header_stdc=no
4921 if test $ac_cv_header_stdc = yes; then
4922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4923 cat >conftest.$ac_ext <<_ACEOF
4924 #line $LINENO "configure"
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h. */
4933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4934 $EGREP "free" >/dev/null 2>&1; then
4937 ac_cv_header_stdc=no
4943 if test $ac_cv_header_stdc = yes; then
4944 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4945 if test "$cross_compiling" = yes; then
4948 cat >conftest.$ac_ext <<_ACEOF
4949 #line $LINENO "configure"
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4956 #if ((' ' & 0x0FF) == 0x020)
4957 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4958 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4960 # define ISLOWER(c) \
4961 (('a' <= (c) && (c) <= 'i') \
4962 || ('j' <= (c) && (c) <= 'r') \
4963 || ('s' <= (c) && (c) <= 'z'))
4964 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4967 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4972 for (i = 0; i < 256; i++)
4973 if (XOR (islower (i), ISLOWER (i))
4974 || toupper (i) != TOUPPER (i))
4979 rm -f conftest$ac_exeext
4980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4981 (eval $ac_link) 2>&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4992 echo "$as_me: program exited with status $ac_status" >&5
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4997 ac_cv_header_stdc=no
4999 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5003 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5004 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5005 if test $ac_cv_header_stdc = yes; then
5007 cat >>confdefs.h <<\_ACEOF
5008 #define STDC_HEADERS 1
5013 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5023 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5024 inttypes.h stdint.h unistd.h
5026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5027 echo "$as_me:$LINENO: checking for $ac_header" >&5
5028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 cat >conftest.$ac_ext <<_ACEOF
5033 #line $LINENO "configure"
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5039 $ac_includes_default
5041 #include <$ac_header>
5043 rm -f conftest.$ac_objext
5044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5045 (eval $ac_compile) 2>&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } &&
5049 { ac_try='test -s conftest.$ac_objext'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5055 eval "$as_ac_Header=yes"
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5060 eval "$as_ac_Header=no"
5062 rm -f conftest.$ac_objext conftest.$ac_ext
5064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5067 cat >>confdefs.h <<_ACEOF
5068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5077 for ac_header in termcap.h
5079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5081 echo "$as_me:$LINENO: checking for $ac_header" >&5
5082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5089 # Is the header compilable?
5090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5092 cat >conftest.$ac_ext <<_ACEOF
5093 #line $LINENO "configure"
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5099 $ac_includes_default
5100 #include <$ac_header>
5102 rm -f conftest.$ac_objext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5104 (eval $ac_compile) 2>&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } &&
5108 { ac_try='test -s conftest.$ac_objext'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; }; then
5114 ac_header_compiler=yes
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5119 ac_header_compiler=no
5121 rm -f conftest.$ac_objext conftest.$ac_ext
5122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5123 echo "${ECHO_T}$ac_header_compiler" >&6
5125 # Is the header present?
5126 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5128 cat >conftest.$ac_ext <<_ACEOF
5129 #line $LINENO "configure"
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5135 #include <$ac_header>
5137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5140 grep -v '^ *+' conftest.er1 >conftest.err
5142 cat conftest.err >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } >/dev/null; then
5145 if test -s conftest.err; then
5146 ac_cpp_err=$ac_c_preproc_warn_flag
5153 if test -z "$ac_cpp_err"; then
5154 ac_header_preproc=yes
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5159 ac_header_preproc=no
5161 rm -f conftest.err conftest.$ac_ext
5162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5163 echo "${ECHO_T}$ac_header_preproc" >&6
5165 # So? What about this header?
5166 case $ac_header_compiler:$ac_header_preproc in
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5174 ## ------------------------------------ ##
5175 ## Report this to bug-autoconf@gnu.org. ##
5176 ## ------------------------------------ ##
5179 sed "s/^/$as_me: WARNING: /" >&2
5182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5190 ## ------------------------------------ ##
5191 ## Report this to bug-autoconf@gnu.org. ##
5192 ## ------------------------------------ ##
5195 sed "s/^/$as_me: WARNING: /" >&2
5198 echo "$as_me:$LINENO: checking for $ac_header" >&5
5199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 eval "$as_ac_Header=$ac_header_preproc"
5205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5210 cat >>confdefs.h <<_ACEOF
5211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5218 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5219 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5220 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 ac_check_lib_save_LIBS=$LIBS
5224 LIBS="-ltermcap $LIBS"
5225 cat >conftest.$ac_ext <<_ACEOF
5226 #line $LINENO "configure"
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h. */
5233 /* Override any gcc2 internal prototype to avoid an error. */
5237 /* We use char because int might match the return type of a gcc2
5238 builtin and then its argument prototype would still apply. */
5248 rm -f conftest.$ac_objext conftest$ac_exeext
5249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5250 (eval $ac_link) 2>&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } &&
5254 { ac_try='test -s conftest$ac_exeext'
5255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }; }; then
5260 ac_cv_lib_termcap_tgetent=yes
5262 echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5265 ac_cv_lib_termcap_tgetent=no
5267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5268 LIBS=$ac_check_lib_save_LIBS
5270 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5271 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5272 if test $ac_cv_lib_termcap_tgetent = yes; then
5273 CONS_LIBS="-ltermcap"
5278 cat >>confdefs.h <<\_ACEOF
5279 #define HAVE_CONIO 1
5285 # ---------------------------------------------------
5286 # Check for readline support/directory (default off)
5287 # ---------------------------------------------------
5288 # this allows you to turn it completely off
5289 # Check whether --enable-readline or --disable-readline was given.
5290 if test "${enable_readline+set}" = set; then
5291 enableval="$enable_readline"
5292 if test x$enableval = xno; then
5299 if test x$support_readline = xyes; then
5301 # Check whether --with-readline or --without-readline was given.
5302 if test "${with_readline+set}" = set; then
5303 withval="$with_readline"
5305 case "$with_readline" in
5308 if test "$with_readline" != "yes"; then
5309 CONS_INC="-I${with_readline}"
5310 CONS_LDFLAGS="-L$with_readline"
5312 with_readline="/usr/include/readline"
5314 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5316 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5317 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5324 # Is the header compilable?
5325 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5326 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5327 cat >conftest.$ac_ext <<_ACEOF
5328 #line $LINENO "configure"
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h. */
5334 $ac_includes_default
5335 #include <${with_readline}/readline.h>
5337 rm -f conftest.$ac_objext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5339 (eval $ac_compile) 2>&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } &&
5343 { ac_try='test -s conftest.$ac_objext'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5349 ac_header_compiler=yes
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5354 ac_header_compiler=no
5356 rm -f conftest.$ac_objext conftest.$ac_ext
5357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5358 echo "${ECHO_T}$ac_header_compiler" >&6
5360 # Is the header present?
5361 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5362 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5363 cat >conftest.$ac_ext <<_ACEOF
5364 #line $LINENO "configure"
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 #include <${with_readline}/readline.h>
5372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5375 grep -v '^ *+' conftest.er1 >conftest.err
5377 cat conftest.err >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } >/dev/null; then
5380 if test -s conftest.err; then
5381 ac_cpp_err=$ac_c_preproc_warn_flag
5388 if test -z "$ac_cpp_err"; then
5389 ac_header_preproc=yes
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5394 ac_header_preproc=no
5396 rm -f conftest.err conftest.$ac_ext
5397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5398 echo "${ECHO_T}$ac_header_preproc" >&6
5400 # So? What about this header?
5401 case $ac_header_compiler:$ac_header_preproc in
5403 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5404 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5406 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5409 ## ------------------------------------ ##
5410 ## Report this to bug-autoconf@gnu.org. ##
5411 ## ------------------------------------ ##
5414 sed "s/^/$as_me: WARNING: /" >&2
5417 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5418 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5419 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5420 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5421 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5422 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5425 ## ------------------------------------ ##
5426 ## Report this to bug-autoconf@gnu.org. ##
5427 ## ------------------------------------ ##
5430 sed "s/^/$as_me: WARNING: /" >&2
5433 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5434 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 eval "$as_ac_Header=$ac_header_preproc"
5440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5445 cat >>confdefs.h <<\_ACEOF
5446 #define HAVE_READLINE 1
5449 CONS_LIBS="-lreadline -ltermcap"
5453 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5454 echo "$as_me: error: *** readline library missing" >&2;}
5455 { (exit 1); exit 1; }; }
5466 # check for standard readline library
5467 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5468 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5469 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5470 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5474 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5476 # Is the header compilable?
5477 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5478 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5479 cat >conftest.$ac_ext <<_ACEOF
5480 #line $LINENO "configure"
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5486 $ac_includes_default
5487 #include </usr/include/readline/readline.h>
5489 rm -f conftest.$ac_objext
5490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5491 (eval $ac_compile) 2>&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try='test -s conftest.$ac_objext'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; }; then
5501 ac_header_compiler=yes
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5506 ac_header_compiler=no
5508 rm -f conftest.$ac_objext conftest.$ac_ext
5509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5510 echo "${ECHO_T}$ac_header_compiler" >&6
5512 # Is the header present?
5513 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5514 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5515 cat >conftest.$ac_ext <<_ACEOF
5516 #line $LINENO "configure"
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522 #include </usr/include/readline/readline.h>
5524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5527 grep -v '^ *+' conftest.er1 >conftest.err
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } >/dev/null; then
5532 if test -s conftest.err; then
5533 ac_cpp_err=$ac_c_preproc_warn_flag
5540 if test -z "$ac_cpp_err"; then
5541 ac_header_preproc=yes
5543 echo "$as_me: failed program was:" >&5
5544 sed 's/^/| /' conftest.$ac_ext >&5
5546 ac_header_preproc=no
5548 rm -f conftest.err conftest.$ac_ext
5549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5550 echo "${ECHO_T}$ac_header_preproc" >&6
5552 # So? What about this header?
5553 case $ac_header_compiler:$ac_header_preproc in
5555 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5556 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5557 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5558 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5561 ## ------------------------------------ ##
5562 ## Report this to bug-autoconf@gnu.org. ##
5563 ## ------------------------------------ ##
5566 sed "s/^/$as_me: WARNING: /" >&2
5569 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5570 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5571 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5572 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5573 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5574 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5577 ## ------------------------------------ ##
5578 ## Report this to bug-autoconf@gnu.org. ##
5579 ## ------------------------------------ ##
5582 sed "s/^/$as_me: WARNING: /" >&2
5585 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5586 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5587 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5592 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5593 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5596 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5597 cat >>confdefs.h <<\_ACEOF
5598 #define HAVE_READLINE 1
5602 CONS_INC="-I/usr/include/readline"
5603 CONS_LIBS="-lreadline -ltermcap"
5607 # Did not find standard library, so try Bacula's default
5608 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5610 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5611 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5618 # Is the header compilable?
5619 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5620 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5621 cat >conftest.$ac_ext <<_ACEOF
5622 #line $LINENO "configure"
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 $ac_includes_default
5629 #include <${TOP_DIR}/depkgs/readline/readline.h>
5631 rm -f conftest.$ac_objext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633 (eval $ac_compile) 2>&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } &&
5637 { ac_try='test -s conftest.$ac_objext'
5638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; }; then
5643 ac_header_compiler=yes
5645 echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5648 ac_header_compiler=no
5650 rm -f conftest.$ac_objext conftest.$ac_ext
5651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5652 echo "${ECHO_T}$ac_header_compiler" >&6
5654 # Is the header present?
5655 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5656 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5657 cat >conftest.$ac_ext <<_ACEOF
5658 #line $LINENO "configure"
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5664 #include <${TOP_DIR}/depkgs/readline/readline.h>
5666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5669 grep -v '^ *+' conftest.er1 >conftest.err
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } >/dev/null; then
5674 if test -s conftest.err; then
5675 ac_cpp_err=$ac_c_preproc_warn_flag
5682 if test -z "$ac_cpp_err"; then
5683 ac_header_preproc=yes
5685 echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5688 ac_header_preproc=no
5690 rm -f conftest.err conftest.$ac_ext
5691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5692 echo "${ECHO_T}$ac_header_preproc" >&6
5694 # So? What about this header?
5695 case $ac_header_compiler:$ac_header_preproc in
5697 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5698 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5699 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5700 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5703 ## ------------------------------------ ##
5704 ## Report this to bug-autoconf@gnu.org. ##
5705 ## ------------------------------------ ##
5708 sed "s/^/$as_me: WARNING: /" >&2
5711 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5712 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5713 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5714 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5715 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5716 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5719 ## ------------------------------------ ##
5720 ## Report this to bug-autoconf@gnu.org. ##
5721 ## ------------------------------------ ##
5724 sed "s/^/$as_me: WARNING: /" >&2
5727 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5728 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 eval "$as_ac_Header=$ac_header_preproc"
5734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5739 cat >>confdefs.h <<\_ACEOF
5740 #define HAVE_READLINE 1
5744 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5745 CONS_LIBS="-lreadline -lhistory -ltermcap"
5746 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5747 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5750 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5751 echo "$as_me: error: *** readline library missing" >&2;}
5752 { (exit 1); exit 1; }; }
5777 # Minimal stuff for readline Makefile configuration
5781 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5782 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5783 if test "${ac_cv_header_stat_broken+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 cat >conftest.$ac_ext <<_ACEOF
5787 #line $LINENO "configure"
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 #include <sys/types.h>
5794 #include <sys/stat.h>
5796 #if defined(S_ISBLK) && defined(S_IFDIR)
5797 # if S_ISBLK (S_IFDIR)
5802 #if defined(S_ISBLK) && defined(S_IFCHR)
5803 # if S_ISBLK (S_IFCHR)
5808 #if defined(S_ISLNK) && defined(S_IFREG)
5809 # if S_ISLNK (S_IFREG)
5814 #if defined(S_ISSOCK) && defined(S_IFREG)
5815 # if S_ISSOCK (S_IFREG)
5821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5822 $EGREP "You lose" >/dev/null 2>&1; then
5823 ac_cv_header_stat_broken=yes
5825 ac_cv_header_stat_broken=no
5830 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5831 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5832 if test $ac_cv_header_stat_broken = yes; then
5834 cat >>confdefs.h <<\_ACEOF
5835 #define STAT_MACROS_BROKEN 1
5846 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5847 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5848 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5849 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 cat >conftest.$ac_ext <<_ACEOF
5854 #line $LINENO "configure"
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5860 #include <sys/types.h>
5872 rm -f conftest.$ac_objext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874 (eval $ac_compile) 2>&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } &&
5878 { ac_try='test -s conftest.$ac_objext'
5879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; }; then
5884 eval "$as_ac_Header=yes"
5886 echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5889 eval "$as_ac_Header=no"
5891 rm -f conftest.$ac_objext conftest.$ac_ext
5893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5896 cat >>confdefs.h <<_ACEOF
5897 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5900 ac_header_dirent=$ac_hdr; break
5904 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5905 if test $ac_header_dirent = dirent.h; then
5906 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5907 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5908 if test "${ac_cv_search_opendir+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 ac_func_search_save_LIBS=$LIBS
5912 ac_cv_search_opendir=no
5913 cat >conftest.$ac_ext <<_ACEOF
5914 #line $LINENO "configure"
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5921 /* Override any gcc2 internal prototype to avoid an error. */
5925 /* We use char because int might match the return type of a gcc2
5926 builtin and then its argument prototype would still apply. */
5936 rm -f conftest.$ac_objext conftest$ac_exeext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5938 (eval $ac_link) 2>&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } &&
5942 { ac_try='test -s conftest$ac_exeext'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; }; then
5948 ac_cv_search_opendir="none required"
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5955 if test "$ac_cv_search_opendir" = no; then
5956 for ac_lib in dir; do
5957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5958 cat >conftest.$ac_ext <<_ACEOF
5959 #line $LINENO "configure"
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5966 /* Override any gcc2 internal prototype to avoid an error. */
5970 /* We use char because int might match the return type of a gcc2
5971 builtin and then its argument prototype would still apply. */
5981 rm -f conftest.$ac_objext conftest$ac_exeext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5983 (eval $ac_link) 2>&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try='test -s conftest$ac_exeext'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; }; then
5993 ac_cv_search_opendir="-l$ac_lib"
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
6000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6003 LIBS=$ac_func_search_save_LIBS
6005 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6006 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6007 if test "$ac_cv_search_opendir" != no; then
6008 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6013 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6014 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6015 if test "${ac_cv_search_opendir+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 ac_func_search_save_LIBS=$LIBS
6019 ac_cv_search_opendir=no
6020 cat >conftest.$ac_ext <<_ACEOF
6021 #line $LINENO "configure"
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6028 /* Override any gcc2 internal prototype to avoid an error. */
6032 /* We use char because int might match the return type of a gcc2
6033 builtin and then its argument prototype would still apply. */
6043 rm -f conftest.$ac_objext conftest$ac_exeext
6044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6045 (eval $ac_link) 2>&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } &&
6049 { ac_try='test -s conftest$ac_exeext'
6050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; }; then
6055 ac_cv_search_opendir="none required"
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6062 if test "$ac_cv_search_opendir" = no; then
6064 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6065 cat >conftest.$ac_ext <<_ACEOF
6066 #line $LINENO "configure"
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6073 /* Override any gcc2 internal prototype to avoid an error. */
6077 /* We use char because int might match the return type of a gcc2
6078 builtin and then its argument prototype would still apply. */
6088 rm -f conftest.$ac_objext conftest$ac_exeext
6089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6090 (eval $ac_link) 2>&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); } &&
6094 { ac_try='test -s conftest$ac_exeext'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; }; then
6100 ac_cv_search_opendir="-l$ac_lib"
6103 echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6110 LIBS=$ac_func_search_save_LIBS
6112 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6113 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6114 if test "$ac_cv_search_opendir" != no; then
6115 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6130 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6133 echo "$as_me:$LINENO: checking for $ac_func" >&5
6134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6135 if eval "test \"\${$as_ac_var+set}\" = set"; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 cat >conftest.$ac_ext <<_ACEOF
6139 #line $LINENO "configure"
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6145 /* System header to define __stub macros and hopefully few prototypes,
6146 which can conflict with char $ac_func (); below.
6147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6148 <limits.h> exists even on freestanding compilers. */
6150 # include <limits.h>
6152 # include <assert.h>
6154 /* Override any gcc2 internal prototype to avoid an error. */
6159 /* We use char because int might match the return type of a gcc2
6160 builtin and then its argument prototype would still apply. */
6162 /* The GNU C library defines this for functions which it implements
6163 to always fail with ENOSYS. Some functions are actually named
6164 something starting with __ and the normal name is an alias. */
6165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6168 char (*f) () = $ac_func;
6177 return f != $ac_func;
6182 rm -f conftest.$ac_objext conftest$ac_exeext
6183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6184 (eval $ac_link) 2>&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } &&
6188 { ac_try='test -s conftest$ac_exeext'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; }; then
6194 eval "$as_ac_var=yes"
6196 echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6199 eval "$as_ac_var=no"
6201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6205 if test `eval echo '${'$as_ac_var'}'` = yes; then
6206 cat >>confdefs.h <<_ACEOF
6207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6214 for ac_func in nanosleep
6216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6217 echo "$as_me:$LINENO: checking for $ac_func" >&5
6218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6219 if eval "test \"\${$as_ac_var+set}\" = set"; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 cat >conftest.$ac_ext <<_ACEOF
6223 #line $LINENO "configure"
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6229 /* System header to define __stub macros and hopefully few prototypes,
6230 which can conflict with char $ac_func (); below.
6231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6232 <limits.h> exists even on freestanding compilers. */
6234 # include <limits.h>
6236 # include <assert.h>
6238 /* Override any gcc2 internal prototype to avoid an error. */
6243 /* We use char because int might match the return type of a gcc2
6244 builtin and then its argument prototype would still apply. */
6246 /* The GNU C library defines this for functions which it implements
6247 to always fail with ENOSYS. Some functions are actually named
6248 something starting with __ and the normal name is an alias. */
6249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6252 char (*f) () = $ac_func;
6261 return f != $ac_func;
6266 rm -f conftest.$ac_objext conftest$ac_exeext
6267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6268 (eval $ac_link) 2>&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } &&
6272 { ac_try='test -s conftest$ac_exeext'
6273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }; }; then
6278 eval "$as_ac_var=yes"
6280 echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6283 eval "$as_ac_var=no"
6285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6289 if test `eval echo '${'$as_ac_var'}'` = yes; then
6290 cat >>confdefs.h <<_ACEOF
6291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6299 for ac_header in varargs.h
6301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6303 echo "$as_me:$LINENO: checking for $ac_header" >&5
6304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6311 # Is the header compilable?
6312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6314 cat >conftest.$ac_ext <<_ACEOF
6315 #line $LINENO "configure"
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6321 $ac_includes_default
6322 #include <$ac_header>
6324 rm -f conftest.$ac_objext
6325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6326 (eval $ac_compile) 2>&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } &&
6330 { ac_try='test -s conftest.$ac_objext'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; }; then
6336 ac_header_compiler=yes
6338 echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6341 ac_header_compiler=no
6343 rm -f conftest.$ac_objext conftest.$ac_ext
6344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6345 echo "${ECHO_T}$ac_header_compiler" >&6
6347 # Is the header present?
6348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6350 cat >conftest.$ac_ext <<_ACEOF
6351 #line $LINENO "configure"
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 #include <$ac_header>
6359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6362 grep -v '^ *+' conftest.er1 >conftest.err
6364 cat conftest.err >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } >/dev/null; then
6367 if test -s conftest.err; then
6368 ac_cpp_err=$ac_c_preproc_warn_flag
6375 if test -z "$ac_cpp_err"; then
6376 ac_header_preproc=yes
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6381 ac_header_preproc=no
6383 rm -f conftest.err conftest.$ac_ext
6384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6385 echo "${ECHO_T}$ac_header_preproc" >&6
6387 # So? What about this header?
6388 case $ac_header_compiler:$ac_header_preproc in
6390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6396 ## ------------------------------------ ##
6397 ## Report this to bug-autoconf@gnu.org. ##
6398 ## ------------------------------------ ##
6401 sed "s/^/$as_me: WARNING: /" >&2
6404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6412 ## ------------------------------------ ##
6413 ## Report this to bug-autoconf@gnu.org. ##
6414 ## ------------------------------------ ##
6417 sed "s/^/$as_me: WARNING: /" >&2
6420 echo "$as_me:$LINENO: checking for $ac_header" >&5
6421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6425 eval "$as_ac_Header=$ac_header_preproc"
6427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6432 cat >>confdefs.h <<_ACEOF
6433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6441 # End of readline/conio stuff
6442 # -----------------------------------------------------------------------
6445 # ---------------------------------------------------
6446 # Check for GMP support/directory
6447 # ---------------------------------------------------
6451 # [ --with-gmp[=DIR] Specify gmp library directory],
6453 # case "$with_gmp" in
6456 # if test "$with_gmp" != "yes"; then
6457 # GMP_INC="-I$with_gmp"
6459 # GMP_LDFLAGS="-L$with_gmp"
6461 # with_gmp="/usr/include"
6463 # AC_CHECK_HEADER($with_gmp/gmp.h,
6464 # [ AC_MSG_RESULT(yes)
6465 # AC_DEFINE(HAVE_GMP)
6469 # [ AC_MSG_ERROR([*** gmp library missing])
6475 # # check for standard gmp library
6476 # AC_CHECK_HEADER(/usr/include/gmp.h,
6477 # [ AC_MSG_RESULT(yes)
6478 # AC_DEFINE(HAVE_GMP)
6483 # # Did not find standard library, so use our own
6484 # AC_MSG_RESULT(yes)
6485 # AC_DEFINE(HAVE_GMP)
6488 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6490 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6491 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6497 #AC_SUBST(GMP_LDFLAGS)
6501 # -----------------------------------------------------------------------
6504 # ---------------------------------------------------
6505 # Check for CWEB support/directory
6506 # ---------------------------------------------------
6511 # [ --with-cweb[=DIR] Specify cweb library directory],
6513 # case "$with_cweb" in
6516 # if test "$with_cweb" != "yes"; then
6517 # CWEB_INC="-I$with_cweb"
6518 # CWEB_LIBS="-lcweb"
6519 # CWEB_LDFLAGS="-L$with_cweb"
6521 # with_cweb="/usr/include"
6523 # AC_CHECK_HEADER($with_cweb/cweb.h,
6524 # [ AC_MSG_RESULT(yes)
6525 # AC_DEFINE(HAVE_CWEB)
6526 # CWEB_LIBS="-lcweb"
6529 # [ AC_MSG_ERROR([*** cweb library missing])
6535 # # check for standard cweb library
6536 # AC_CHECK_HEADER(/usr/include/cweb.h,
6537 # [ AC_MSG_RESULT(yes)
6538 # AC_DEFINE(HAVE_CWEB)
6541 # CWEB_LIBS="-lcweb"
6543 # # Did not find starndard library, so use our own
6544 # AC_MSG_RESULT(yes)
6545 # AC_DEFINE(HAVE_CWEB)
6548 # CWEB=${TOP_DIR}/depkgs/cweb
6549 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6550 # CWEB_LIBS="-lcweb"
6551 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6552 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6558 #AC_SUBST(CWEB_LIBS)
6559 #AC_SUBST(CWEB_LDFLAGS)
6563 # -----------------------------------------------------------------------
6567 # -----------------------------------------------------------
6568 # Check whether user wants TCP wrappers support (default off)
6569 # -----------------------------------------------------------
6572 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6573 if test "${with_tcp_wrappers+set}" = set; then
6574 withval="$with_tcp_wrappers"
6576 if test "x$withval" != "xno" ; then
6578 LIBS="$saved_LIBS -lwrap"
6579 echo "$as_me:$LINENO: checking for libwrap" >&5
6580 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6581 cat >conftest.$ac_ext <<_ACEOF
6582 #line $LINENO "configure"
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6589 int deny_severity = 0;
6590 int allow_severity = 0;
6591 struct request_info *req;
6600 rm -f conftest.$ac_objext conftest$ac_exeext
6601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6602 (eval $ac_link) 2>&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } &&
6606 { ac_try='test -s conftest$ac_exeext'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; }; then
6613 echo "$as_me:$LINENO: result: yes" >&5
6614 echo "${ECHO_T}yes" >&6
6615 cat >>confdefs.h <<\_ACEOF
6616 #define HAVE_LIBWRAP 1
6622 echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6626 LIBS="$saved_LIBS -lwrap -lnsl"
6627 cat >conftest.$ac_ext <<_ACEOF
6628 #line $LINENO "configure"
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h. */
6635 int deny_severity = 0;
6636 int allow_severity = 0;
6637 struct request_info *req;
6646 rm -f conftest.$ac_objext conftest$ac_exeext
6647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6648 (eval $ac_link) 2>&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } &&
6652 { ac_try='test -s conftest$ac_exeext'
6653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); }; }; then
6659 echo "$as_me:$LINENO: result: yes" >&5
6660 echo "${ECHO_T}yes" >&6
6661 cat >>confdefs.h <<\_ACEOF
6662 #define HAVE_LIBWRAP 1
6668 echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6671 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6672 echo "$as_me: error: *** libwrap missing" >&2;}
6673 { (exit 1); exit 1; }; }
6676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6685 # ------------------------------------------
6686 # Where to place working dir
6687 # ------------------------------------------
6688 working_dir=`eval echo ${prefix}/var/bacula/working`
6690 # Check whether --with-working-dir or --without-working-dir was given.
6691 if test "${with_working_dir+set}" = set; then
6692 withval="$with_working_dir"
6694 if test "x$withval" != "xno" ; then
6695 working_dir=$withval
6704 # ------------------------------------------
6705 # Where to place scriptdir (script files)
6706 # ------------------------------------------
6707 scriptdir=`eval echo ${sysconfdir}`
6709 # Check whether --with-scriptdir or --without-scriptdir was given.
6710 if test "${with_scriptdir+set}" = set; then
6711 withval="$with_scriptdir"
6713 if test "x$withval" != "xno" ; then
6723 # ------------------------------------------
6724 # Where to send dump email
6725 # ------------------------------------------
6726 dump_email=root@localhost
6728 # Check whether --with-dump-email or --without-dump-email was given.
6729 if test "${with_dump_email+set}" = set; then
6730 withval="$with_dump_email"
6732 if test "x$withval" != "xno" ; then
6741 # ------------------------------------------
6742 # Where to send job email
6743 # ------------------------------------------
6744 job_email=root@localhost
6746 # Check whether --with-job-email or --without-job-email was given.
6747 if test "${with_job_email+set}" = set; then
6748 withval="$with_job_email"
6750 if test "x$withval" != "xno" ; then
6759 # ------------------------------------------
6760 # Where to find smtp host
6761 # ------------------------------------------
6764 # Check whether --with-smtp_host or --without-smtp_host was given.
6765 if test "${with_smtp_host+set}" = set; then
6766 withval="$with_smtp_host"
6768 if test "x$withval" != "xno" ; then
6778 # ------------------------------------
6779 # Where to place pid files
6780 # ------------------------------------
6783 # Check whether --with-pid-dir or --without-pid-dir was given.
6784 if test "${with_pid_dir+set}" = set; then
6785 withval="$with_pid_dir"
6787 if test "x$withval" != "xno" ; then
6794 cat >>confdefs.h <<_ACEOF
6795 #define _PATH_BACULA_PIDDIR "$piddir"
6801 # ------------------------------------
6802 # Where to place subsys "lock file"
6803 # ------------------------------------
6804 subsysdir=/var/run/subsys
6806 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6807 if test "${with_subsys_dir+set}" = set; then
6808 withval="$with_subsys_dir"
6810 if test "x$withval" != "xno" ; then
6821 # ------------------------------------
6822 # Where to start assigning ports
6823 # ------------------------------------
6826 # Check whether --with-baseport or --without-baseport was given.
6827 if test "${with_baseport+set}" = set; then
6828 withval="$with_baseport"
6830 if test "x$withval" != "xno" ; then
6838 dir_port=`expr $baseport`
6839 fd_port=`expr $baseport + 1`
6840 sd_port=`expr $fd_port + 1`
6847 # ------------------------------------------
6848 # Generate passwords
6849 # ------------------------------------------
6852 # Check whether --with-dir-password or --without-dir-password was given.
6853 if test "${with_dir_password+set}" = set; then
6854 withval="$with_dir_password"
6856 if test "x$withval" != "xno" ; then
6857 dir_password=$withval
6863 if test "x$dir_password" = "x" ; then
6864 if test "x$OPENSSL" = "xnone" ; then
6865 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6866 key=`autoconf/randpass 33`
6868 key=`openssl rand -base64 33`
6875 # Check whether --with-fd-password or --without-fd-password was given.
6876 if test "${with_fd_password+set}" = set; then
6877 withval="$with_fd_password"
6879 if test "x$withval" != "xno" ; then
6880 fd_password=$withval
6886 if test "x$fd_password" = "x" ; then
6887 if test "x$OPENSSL" = "xnone" ; then
6888 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6889 key=`autoconf/randpass 37`
6891 key=`openssl rand -base64 33`
6898 # Check whether --with-sd-password or --without-sd-password was given.
6899 if test "${with_sd_password+set}" = set; then
6900 withval="$with_sd_password"
6902 if test "x$withval" != "xno" ; then
6903 sd_password=$withval
6909 if test "x$sd_password" = "x" ; then
6910 if test "x$OPENSSL" = "xnone" ; then
6911 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6912 key=`autoconf/randpass 41`
6914 key=`openssl rand -base64 33`
6926 # Handle users and groups for each daemon
6930 # Check whether --with-dir_user or --without-dir_user was given.
6931 if test "${with_dir_user+set}" = set; then
6932 withval="$with_dir_user"
6934 if test "x$withval" != "x" ; then
6943 # Check whether --with-dir_group or --without-dir_group was given.
6944 if test "${with_dir_group+set}" = set; then
6945 withval="$with_dir_group"
6947 if test "x$withval" != "x" ; then
6956 # Check whether --with-sd_user or --without-sd_user was given.
6957 if test "${with_sd_user+set}" = set; then
6958 withval="$with_sd_user"
6960 if test "x$withval" != "x" ; then
6969 # Check whether --with-sd_group or --without-sd_group was given.
6970 if test "${with_sd_group+set}" = set; then
6971 withval="$with_sd_group"
6973 if test "x$withval" != "x" ; then
6982 # Check whether --with-fd_user or --without-fd_user was given.
6983 if test "${with_fd_user+set}" = set; then
6984 withval="$with_fd_user"
6986 if test "x$withval" != "x" ; then
6995 # Check whether --with-fd_group or --without-fd_group was given.
6996 if test "${with_fd_group+set}" = set; then
6997 withval="$with_fd_group"
6999 if test "x$withval" != "x" ; then
7016 # ------------------------------------------------
7017 # Bacula check for various SQL database engines
7018 # ------------------------------------------------
7021 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7022 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7024 # Check whether --with-postgresql or --without-postgresql was given.
7025 if test "${with_postgresql+set}" = set; then
7026 withval="$with_postgresql"
7028 if test "$withval" != "no"; then
7029 if test "$db_found" = "yes"; then
7030 echo "$as_me:$LINENO: result: error" >&5
7031 echo "${ECHO_T}error" >&6
7032 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7033 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7034 { (exit 1); exit 1; }; };
7036 if test "$withval" = "yes"; then
7037 if test -f /usr/local/include/libpq-fe.h; then
7038 POSTGRESQL_INCDIR=/usr/local/include
7039 POSTGRESQL_LIBDIR=/usr/local/lib
7040 POSTGRESQL_BINDIR=/usr/local/bin
7041 elif test -f /usr/include/libpq-fe.h; then
7042 POSTGRESQL_INCDIR=/usr/include
7043 POSTGRESQL_LIBDIR=/usr/lib
7044 POSTGRESQL_BINDIR=/usr/bin
7045 elif test -f /usr/include/pgsql/libpq-fe.h; then
7046 POSTGRESQL_INCDIR=/usr/include/pgsql
7047 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7048 POSTGRESQL_BINDIR=/usr/bin
7050 echo "$as_me:$LINENO: result: no" >&5
7051 echo "${ECHO_T}no" >&6
7052 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7053 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7054 { (exit 1); exit 1; }; }
7056 elif test -f $withval/libpq-fe.h; then
7057 POSTGRESQL_INCDIR=$withval
7058 POSTGRESQL_LIBDIR=$withval
7059 POSTGRESQL_BINDIR=$withval
7061 echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6
7063 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7064 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7065 { (exit 1); exit 1; }; }
7067 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7068 echo "$as_me:$LINENO: checking for crypt" >&5
7069 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7070 if test "${ac_cv_func_crypt+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 cat >conftest.$ac_ext <<_ACEOF
7074 #line $LINENO "configure"
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h. */
7080 /* System header to define __stub macros and hopefully few prototypes,
7081 which can conflict with char crypt (); below.
7082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7083 <limits.h> exists even on freestanding compilers. */
7085 # include <limits.h>
7087 # include <assert.h>
7089 /* Override any gcc2 internal prototype to avoid an error. */
7094 /* We use char because int might match the return type of a gcc2
7095 builtin and then its argument prototype would still apply. */
7097 /* The GNU C library defines this for functions which it implements
7098 to always fail with ENOSYS. Some functions are actually named
7099 something starting with __ and the normal name is an alias. */
7100 #if defined (__stub_crypt) || defined (__stub___crypt)
7103 char (*f) () = crypt;
7117 rm -f conftest.$ac_objext conftest$ac_exeext
7118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7119 (eval $ac_link) 2>&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } &&
7123 { ac_try='test -s conftest$ac_exeext'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
7129 ac_cv_func_crypt=yes
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7138 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7139 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7140 if test $ac_cv_func_crypt = yes; then
7143 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7144 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7145 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 ac_check_lib_save_LIBS=$LIBS
7149 LIBS="-lcrypt $LIBS"
7150 cat >conftest.$ac_ext <<_ACEOF
7151 #line $LINENO "configure"
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h. */
7158 /* Override any gcc2 internal prototype to avoid an error. */
7162 /* We use char because int might match the return type of a gcc2
7163 builtin and then its argument prototype would still apply. */
7173 rm -f conftest.$ac_objext conftest$ac_exeext
7174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7175 (eval $ac_link) 2>&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } &&
7179 { ac_try='test -s conftest$ac_exeext'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; }; then
7185 ac_cv_lib_crypt_crypt=yes
7187 echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7190 ac_cv_lib_crypt_crypt=no
7192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7193 LIBS=$ac_check_lib_save_LIBS
7195 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7196 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7197 if test $ac_cv_lib_crypt_crypt = yes; then
7198 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7203 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7204 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7205 SQL_BINDIR=$POSTGRESQL_BINDIR
7206 cat >>confdefs.h <<\_ACEOF
7207 #define HAVE_POSTGRESQL 1
7210 echo "$as_me:$LINENO: result: yes" >&5
7211 echo "${ECHO_T}yes" >&6
7213 support_postgresql=yes
7217 echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6
7223 echo "$as_me:$LINENO: result: no" >&5
7224 echo "${ECHO_T}no" >&6
7235 echo "$as_me:$LINENO: checking for MySQL support" >&5
7236 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7238 # Check whether --with-mysql or --without-mysql was given.
7239 if test "${with_mysql+set}" = set; then
7240 withval="$with_mysql"
7242 if test "$withval" != "no"; then
7243 if test "$withval" = "yes"; then
7244 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7245 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7246 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7247 MYSQL_BINDIR=/usr/local/mysql/bin
7248 elif test -f /usr/include/mysql/mysql.h; then
7249 MYSQL_INCDIR=/usr/include/mysql
7250 MYSQL_LIBDIR=/usr/lib/mysql
7251 MYSQL_BINDIR=/usr/bin
7252 elif test -f /usr/include/mysql.h; then
7253 MYSQL_INCDIR=/usr/include
7254 MYSQL_LIBDIR=/usr/lib
7255 MYSQL_BINDIR=/usr/bin
7256 elif test -f /usr/local/include/mysql/mysql.h; then
7257 MYSQL_INCDIR=/usr/local/include/mysql
7258 MYSQL_LIBDIR=/usr/local/lib/mysql
7259 MYSQL_BINDIR=/usr/local/bin
7260 elif test -f /usr/local/include/mysql.h; then
7261 MYSQL_INCDIR=/usr/local/include
7262 MYSQL_LIBDIR=/usr/local/lib
7263 MYSQL_BINDIR=/usr/local/bin
7265 echo "$as_me:$LINENO: result: no" >&5
7266 echo "${ECHO_T}no" >&6
7267 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7268 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7269 { (exit 1); exit 1; }; }
7272 if test -f $withval/include/mysql/mysql.h; then
7273 MYSQL_INCDIR=$withval/include/mysql
7274 MYSQL_LIBDIR=$withval/lib/mysql
7275 MYSQL_BINDIR=$withval/bin
7276 elif test -f $withval/include/mysql.h; then
7277 MYSQL_INCDIR=$withval/include
7278 MYSQL_LIBDIR=$withval/lib
7279 MYSQL_BINDIR=$withval/bin
7281 echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6
7283 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7284 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7285 { (exit 1); exit 1; }; }
7288 SQL_INCLUDE=-I$MYSQL_INCDIR
7289 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7290 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7291 cat >>confdefs.h <<\_ACEOF
7292 #define HAVE_THREAD_SAFE_MYSQL 1
7296 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7298 SQL_BINDIR=$MYSQL_BINDIR
7300 cat >>confdefs.h <<\_ACEOF
7301 #define HAVE_MYSQL 1
7304 echo "$as_me:$LINENO: result: yes" >&5
7305 echo "${ECHO_T}yes" >&6
7312 echo "$as_me:$LINENO: result: no" >&5
7313 echo "${ECHO_T}no" >&6
7318 echo "$as_me:$LINENO: result: no" >&5
7319 echo "${ECHO_T}no" >&6
7324 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7325 if test "${with_embedded_mysql+set}" = set; then
7326 withval="$with_embedded_mysql"
7328 if test "$withval" != "no"; then
7329 if test "$withval" = "yes"; then
7330 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7331 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7332 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7333 MYSQL_BINDIR=/usr/local/mysql/bin
7334 elif test -f /usr/include/mysql/mysql.h; then
7335 MYSQL_INCDIR=/usr/include/mysql
7336 MYSQL_LIBDIR=/usr/lib/mysql
7337 MYSQL_BINDIR=/usr/bin
7338 elif test -f /usr/include/mysql.h; then
7339 MYSQL_INCDIR=/usr/include
7340 MYSQL_LIBDIR=/usr/lib
7341 MYSQL_BINDIR=/usr/bin
7342 elif test -f /usr/local/include/mysql/mysql.h; then
7343 MYSQL_INCDIR=/usr/local/include/mysql
7344 MYSQL_LIBDIR=/usr/local/lib/mysql
7345 MYSQL_BINDIR=/usr/local/bin
7346 elif test -f /usr/local/include/mysql.h; then
7347 MYSQL_INCDIR=/usr/local/include
7348 MYSQL_LIBDIR=/usr/local/lib
7349 MYSQL_BINDIR=/usr/local/bin
7351 echo "$as_me:$LINENO: result: no" >&5
7352 echo "${ECHO_T}no" >&6
7353 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7354 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7355 { (exit 1); exit 1; }; }
7358 if test -f $withval/include/mysql/mysql.h; then
7359 MYSQL_INCDIR=$withval/include/mysql
7360 MYSQL_LIBDIR=$withval/lib/mysql
7361 MYSQL_BINDIR=$withval/bin
7362 elif test -f $withval/include/mysql.h; then
7363 MYSQL_INCDIR=$withval/include
7364 MYSQL_LIBDIR=$withval/lib
7365 MYSQL_BINDIR=$withval/bin
7367 echo "$as_me:$LINENO: result: no" >&5
7368 echo "${ECHO_T}no" >&6
7369 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7370 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7371 { (exit 1); exit 1; }; }
7374 SQL_INCLUDE=-I$MYSQL_INCDIR
7375 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7376 SQL_BINDIR=$MYSQL_BINDIR
7378 cat >>confdefs.h <<\_ACEOF
7379 #define HAVE_MYSQL 1
7382 cat >>confdefs.h <<\_ACEOF
7383 #define HAVE_EMBEDDED_MYSQL 1
7386 echo "$as_me:$LINENO: result: yes" >&5
7387 echo "${ECHO_T}yes" >&6
7394 echo "$as_me:$LINENO: result: no" >&5
7395 echo "${ECHO_T}no" >&6
7400 echo "$as_me:$LINENO: result: no" >&5
7401 echo "${ECHO_T}no" >&6
7414 echo "$as_me:$LINENO: checking for SQLite support" >&5
7415 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7417 # Check whether --with-sqlite or --without-sqlite was given.
7418 if test "${with_sqlite+set}" = set; then
7419 withval="$with_sqlite"
7421 if test "$withval" != "no"; then
7422 if test "$withval" = "yes"; then
7423 if test -f /usr/local/include/sqlite.h; then
7424 SQLITE_INCDIR=/usr/local/include
7425 SQLITE_LIBDIR=/usr/local/lib
7426 SQLITE_BINDIR=/usr/local/bin
7427 elif test -f /usr/include/sqlite.h; then
7428 SQLITE_INCDIR=/usr/include
7429 SQLITE_LIBDIR=/usr/lib
7430 SQLITE_BINDIR=/usr/bin
7432 echo "$as_me:$LINENO: result: no" >&5
7433 echo "${ECHO_T}no" >&6
7434 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7435 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7436 { (exit 1); exit 1; }; }
7439 if test -f $withval/sqlite.h; then
7440 SQLITE_INCDIR=$withval
7441 SQLITE_LIBDIR=$withval
7442 SQLITE_BINDIR=$withval
7444 echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6
7446 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7447 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7448 { (exit 1); exit 1; }; }
7451 SQL_INCLUDE=-I$SQLITE_INCDIR
7452 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7453 SQL_BINDIR=$SQLITE_BINDIR
7455 cat >>confdefs.h <<\_ACEOF
7456 #define HAVE_SQLITE 1
7459 echo "$as_me:$LINENO: result: yes" >&5
7460 echo "${ECHO_T}yes" >&6
7467 echo "$as_me:$LINENO: result: no" >&5
7468 echo "${ECHO_T}no" >&6
7473 echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6
7486 cat >>confdefs.h <<\_ACEOF
7487 #define PROTOTYPES 1
7491 if test -z "$CFLAGS"; then
7492 if test -z "$CCOPTS"; then
7501 largefile_support="no"
7503 # Check whether --enable-largefile or --disable-largefile was given.
7504 if test "${enable_largefile+set}" = set; then
7505 enableval="$enable_largefile"
7508 if test "$enable_largefile" != no; then
7509 if test -n "$ac_tool_prefix"; then
7510 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7511 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7512 echo "$as_me:$LINENO: checking for $ac_word" >&5
7513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7514 if test "${ac_cv_prog_GETCONF+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 if test -n "$GETCONF"; then
7518 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7536 GETCONF=$ac_cv_prog_GETCONF
7537 if test -n "$GETCONF"; then
7538 echo "$as_me:$LINENO: result: $GETCONF" >&5
7539 echo "${ECHO_T}$GETCONF" >&6
7541 echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6
7546 if test -z "$ac_cv_prog_GETCONF"; then
7547 ac_ct_GETCONF=$GETCONF
7548 # Extract the first word of "getconf", so it can be a program name with args.
7549 set dummy getconf; ac_word=$2
7550 echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7552 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 if test -n "$ac_ct_GETCONF"; then
7556 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565 ac_cv_prog_ac_ct_GETCONF="getconf"
7566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7575 if test -n "$ac_ct_GETCONF"; then
7576 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7577 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7579 echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6
7583 GETCONF=$ac_ct_GETCONF
7585 GETCONF="$ac_cv_prog_GETCONF"
7588 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7589 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7590 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7594 ac_cv_sys_largefile_CFLAGS=no
7596 # IRIX 6.2 and later require cc -n32.
7597 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7598 if test "$GCC" != yes; then
7599 ac_cv_sys_largefile_CFLAGS=-n32
7602 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7603 cat >conftest.$ac_ext <<_ACEOF
7604 #line $LINENO "configure"
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7619 rm -f conftest.$ac_objext conftest$ac_exeext
7620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7621 (eval $ac_link) 2>&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } &&
7625 { ac_try='test -s conftest$ac_exeext'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; }; then
7633 echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7636 ac_cv_sys_largefile_CFLAGS=no
7638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7643 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7644 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7645 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7646 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7647 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7651 ac_cv_sys_largefile_LDFLAGS=no
7655 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7656 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7657 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7658 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7659 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7662 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7663 ac_cv_sys_largefile_LIBS=no
7667 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7668 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7670 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7673 -D_FILE_OFFSET_BITS=*) ;;
7674 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7675 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7681 '') CPPFLAGS="$ac_flag" ;;
7682 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7690 '') CFLAGS="$ac_flag" ;;
7691 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7696 case "$ac_cv_sys_largefile_LDFLAGS" in
7700 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7701 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7704 case "$ac_cv_sys_largefile_LIBS" in
7708 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7709 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7712 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7713 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7714 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 ac_cv_sys_file_offset_bits=no
7719 # HP-UX 10.20 and later
7720 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7721 ac_cv_sys_file_offset_bits=64 ;;
7723 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7725 -D_FILE_OFFSET_BITS)
7726 ac_cv_sys_file_offset_bits=1 ;;
7727 -D_FILE_OFFSET_BITS=*)
7728 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7733 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7734 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7735 if test "$ac_cv_sys_file_offset_bits" != no; then
7737 cat >>confdefs.h <<_ACEOF
7738 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7742 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7743 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7744 if test "${ac_cv_sys_largefile_source+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 ac_cv_sys_largefile_source=no
7749 # HP-UX 10.20 and later
7750 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7751 ac_cv_sys_largefile_source=1 ;;
7753 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7755 -D_LARGEFILE_SOURCE)
7756 ac_cv_sys_largefile_source=1 ;;
7757 -D_LARGEFILE_SOURCE=*)
7758 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7763 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7764 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7765 if test "$ac_cv_sys_largefile_source" != no; then
7767 cat >>confdefs.h <<_ACEOF
7768 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7772 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7773 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7774 if test "${ac_cv_sys_large_files+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 ac_cv_sys_large_files=no
7780 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7781 ac_cv_sys_large_files=1 ;;
7783 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7786 ac_cv_sys_large_files=1 ;;
7788 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7793 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7794 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7795 if test "$ac_cv_sys_large_files" != no; then
7797 cat >>confdefs.h <<_ACEOF
7798 #define _LARGE_FILES $ac_cv_sys_large_files
7806 echo "$as_me:$LINENO: checking for X" >&5
7807 echo $ECHO_N "checking for X... $ECHO_C" >&6
7810 # Check whether --with-x or --without-x was given.
7811 if test "${with_x+set}" = set; then
7815 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7816 if test "x$with_x" = xno; then
7817 # The user explicitly disabled X.
7820 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7821 # Both variables are already set.
7824 if test "${ac_cv_have_x+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 # One or both of the vars are not set, and there is no cached value.
7828 ac_x_includes=no ac_x_libraries=no
7830 if mkdir conftest.dir; then
7832 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7833 cat >Imakefile <<'_ACEOF'
7835 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7837 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7838 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7839 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7840 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7841 for ac_extension in a so sl; do
7842 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7843 test -f $ac_im_libdir/libX11.$ac_extension; then
7844 ac_im_usrlibdir=$ac_im_libdir; break
7847 # Screen out bogus values from the imake configuration. They are
7848 # bogus both because they are the default anyway, and because
7849 # using them would break gcc on systems where it needs fixed includes.
7850 case $ac_im_incroot in
7852 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7854 case $ac_im_usrlibdir in
7856 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7863 # Standard set of common directories for X headers.
7864 # Check X11 before X11Rn because it is often a symlink to the current release.
7876 /usr/local/X11/include
7877 /usr/local/X11R6/include
7878 /usr/local/X11R5/include
7879 /usr/local/X11R4/include
7881 /usr/local/include/X11
7882 /usr/local/include/X11R6
7883 /usr/local/include/X11R5
7884 /usr/local/include/X11R4
7888 /usr/XFree86/include/X11
7892 /usr/unsupported/include
7894 /usr/local/x11r5/include
7895 /usr/lpp/Xamples/include
7897 /usr/openwin/include
7898 /usr/openwin/share/include'
7900 if test "$ac_x_includes" = no; then
7901 # Guess where to find include files, by looking for Intrinsic.h.
7902 # First, try using that file with no special directory specified.
7903 cat >conftest.$ac_ext <<_ACEOF
7904 #line $LINENO "configure"
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7910 #include <X11/Intrinsic.h>
7912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7915 grep -v '^ *+' conftest.er1 >conftest.err
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } >/dev/null; then
7920 if test -s conftest.err; then
7921 ac_cpp_err=$ac_c_preproc_warn_flag
7928 if test -z "$ac_cpp_err"; then
7929 # We can compile using X headers with no special include directory.
7932 echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7935 for ac_dir in $ac_x_header_dirs; do
7936 if test -r "$ac_dir/X11/Intrinsic.h"; then
7937 ac_x_includes=$ac_dir
7942 rm -f conftest.err conftest.$ac_ext
7943 fi # $ac_x_includes = no
7945 if test "$ac_x_libraries" = no; then
7946 # Check for the libraries.
7947 # See if we find them without any special options.
7948 # Don't add to $LIBS permanently.
7951 cat >conftest.$ac_ext <<_ACEOF
7952 #line $LINENO "configure"
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h. */
7958 #include <X11/Intrinsic.h>
7967 rm -f conftest.$ac_objext conftest$ac_exeext
7968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7969 (eval $ac_link) 2>&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } &&
7973 { ac_try='test -s conftest$ac_exeext'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; }; then
7980 # We can link X programs with no special library path.
7983 echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7987 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7989 # Don't even attempt the hair of trying to link an X program!
7990 for ac_extension in a so sl; do
7991 if test -r $ac_dir/libXt.$ac_extension; then
7992 ac_x_libraries=$ac_dir
7998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7999 fi # $ac_x_libraries = no
8001 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8002 # Didn't find X anywhere. Cache the known absence of X.
8003 ac_cv_have_x="have_x=no"
8005 # Record where we found X for the cache.
8006 ac_cv_have_x="have_x=yes \
8007 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8012 eval "$ac_cv_have_x"
8015 if test "$have_x" != yes; then
8016 echo "$as_me:$LINENO: result: $have_x" >&5
8017 echo "${ECHO_T}$have_x" >&6
8020 # If each of the values was on the command line, it overrides each guess.
8021 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8022 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8023 # Update the cache value to reflect the command line values.
8024 ac_cv_have_x="have_x=yes \
8025 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8026 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8027 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8030 if test "$no_x" = yes; then
8031 # Not all programs may use this symbol, but it does not hurt to define it.
8033 cat >>confdefs.h <<\_ACEOF
8034 #define X_DISPLAY_MISSING 1
8037 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8039 if test -n "$x_includes"; then
8040 X_CFLAGS="$X_CFLAGS -I$x_includes"
8043 # It would also be nice to do this for all -L options, not just this one.
8044 if test -n "$x_libraries"; then
8045 X_LIBS="$X_LIBS -L$x_libraries"
8046 # For Solaris; some versions of Sun CC require a space after -R and
8047 # others require no space. Words are not sufficient . . . .
8048 case `(uname -sr) 2>/dev/null` in
8050 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8051 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8052 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8053 cat >conftest.$ac_ext <<_ACEOF
8054 #line $LINENO "configure"
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8071 (eval $ac_link) 2>&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } &&
8075 { ac_try='test -s conftest$ac_exeext'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; }; then
8083 echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8089 if test $ac_R_nospace = yes; then
8090 echo "$as_me:$LINENO: result: no" >&5
8091 echo "${ECHO_T}no" >&6
8092 X_LIBS="$X_LIBS -R$x_libraries"
8094 LIBS="$ac_xsave_LIBS -R $x_libraries"
8095 cat >conftest.$ac_ext <<_ACEOF
8096 #line $LINENO "configure"
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h. */
8111 rm -f conftest.$ac_objext conftest$ac_exeext
8112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8113 (eval $ac_link) 2>&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } &&
8117 { ac_try='test -s conftest$ac_exeext'
8118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; }; then
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8131 if test $ac_R_space = yes; then
8132 echo "$as_me:$LINENO: result: yes" >&5
8133 echo "${ECHO_T}yes" >&6
8134 X_LIBS="$X_LIBS -R $x_libraries"
8136 echo "$as_me:$LINENO: result: neither works" >&5
8137 echo "${ECHO_T}neither works" >&6
8144 # Check for system-dependent libraries X programs must link with.
8145 # Do this before checking for the system-independent R6 libraries
8146 # (-lICE), since we may need -lsocket or whatever for X linking.
8148 if test "$ISC" = yes; then
8149 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8151 # Martyn Johnson says this is needed for Ultrix, if the X
8152 # libraries were built with DECnet support. And Karl Berry says
8153 # the Alpha needs dnet_stub (dnet does not exist).
8154 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8155 cat >conftest.$ac_ext <<_ACEOF
8156 #line $LINENO "configure"
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8163 /* Override any gcc2 internal prototype to avoid an error. */
8167 /* We use char because int might match the return type of a gcc2
8168 builtin and then its argument prototype would still apply. */
8169 char XOpenDisplay ();
8178 rm -f conftest.$ac_objext conftest$ac_exeext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8180 (eval $ac_link) 2>&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } &&
8184 { ac_try='test -s conftest$ac_exeext'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8195 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8196 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8197 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
8200 ac_check_lib_save_LIBS=$LIBS
8202 cat >conftest.$ac_ext <<_ACEOF
8203 #line $LINENO "configure"
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8210 /* Override any gcc2 internal prototype to avoid an error. */
8214 /* We use char because int might match the return type of a gcc2
8215 builtin and then its argument prototype would still apply. */
8225 rm -f conftest.$ac_objext conftest$ac_exeext
8226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8227 (eval $ac_link) 2>&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } &&
8231 { ac_try='test -s conftest$ac_exeext'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
8237 ac_cv_lib_dnet_dnet_ntoa=yes
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8242 ac_cv_lib_dnet_dnet_ntoa=no
8244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8245 LIBS=$ac_check_lib_save_LIBS
8247 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8248 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8249 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8250 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8253 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8254 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8255 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8256 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 ac_check_lib_save_LIBS=$LIBS
8260 LIBS="-ldnet_stub $LIBS"
8261 cat >conftest.$ac_ext <<_ACEOF
8262 #line $LINENO "configure"
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8269 /* Override any gcc2 internal prototype to avoid an error. */
8273 /* We use char because int might match the return type of a gcc2
8274 builtin and then its argument prototype would still apply. */
8284 rm -f conftest.$ac_objext conftest$ac_exeext
8285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8286 (eval $ac_link) 2>&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } &&
8290 { ac_try='test -s conftest$ac_exeext'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
8296 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8298 echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8301 ac_cv_lib_dnet_stub_dnet_ntoa=no
8303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8304 LIBS=$ac_check_lib_save_LIBS
8306 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8307 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8308 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8309 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8315 LIBS="$ac_xsave_LIBS"
8317 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8318 # to get the SysV transport functions.
8319 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8321 # The nsl library prevents programs from opening the X display
8322 # on Irix 5.2, according to T.E. Dickey.
8323 # The functions gethostbyname, getservbyname, and inet_addr are
8324 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8325 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8326 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8327 if test "${ac_cv_func_gethostbyname+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 cat >conftest.$ac_ext <<_ACEOF
8331 #line $LINENO "configure"
8334 cat confdefs.h >>conftest.$ac_ext
8335 cat >>conftest.$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8337 /* System header to define __stub macros and hopefully few prototypes,
8338 which can conflict with char gethostbyname (); below.
8339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8340 <limits.h> exists even on freestanding compilers. */
8342 # include <limits.h>
8344 # include <assert.h>
8346 /* Override any gcc2 internal prototype to avoid an error. */
8351 /* We use char because int might match the return type of a gcc2
8352 builtin and then its argument prototype would still apply. */
8353 char gethostbyname ();
8354 /* The GNU C library defines this for functions which it implements
8355 to always fail with ENOSYS. Some functions are actually named
8356 something starting with __ and the normal name is an alias. */
8357 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8360 char (*f) () = gethostbyname;
8369 return f != gethostbyname;
8374 rm -f conftest.$ac_objext conftest$ac_exeext
8375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8376 (eval $ac_link) 2>&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } &&
8380 { ac_try='test -s conftest$ac_exeext'
8381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; }; then
8386 ac_cv_func_gethostbyname=yes
8388 echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8391 ac_cv_func_gethostbyname=no
8393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8395 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8396 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8398 if test $ac_cv_func_gethostbyname = no; then
8399 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8400 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8401 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 ac_check_lib_save_LIBS=$LIBS
8406 cat >conftest.$ac_ext <<_ACEOF
8407 #line $LINENO "configure"
8410 cat confdefs.h >>conftest.$ac_ext
8411 cat >>conftest.$ac_ext <<_ACEOF
8412 /* end confdefs.h. */
8414 /* Override any gcc2 internal prototype to avoid an error. */
8418 /* We use char because int might match the return type of a gcc2
8419 builtin and then its argument prototype would still apply. */
8420 char gethostbyname ();
8429 rm -f conftest.$ac_objext conftest$ac_exeext
8430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8431 (eval $ac_link) 2>&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } &&
8435 { ac_try='test -s conftest$ac_exeext'
8436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; }; then
8441 ac_cv_lib_nsl_gethostbyname=yes
8443 echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8446 ac_cv_lib_nsl_gethostbyname=no
8448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8449 LIBS=$ac_check_lib_save_LIBS
8451 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8452 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8453 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8454 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8457 if test $ac_cv_lib_nsl_gethostbyname = no; then
8458 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8459 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8460 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 ac_check_lib_save_LIBS=$LIBS
8465 cat >conftest.$ac_ext <<_ACEOF
8466 #line $LINENO "configure"
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8473 /* Override any gcc2 internal prototype to avoid an error. */
8477 /* We use char because int might match the return type of a gcc2
8478 builtin and then its argument prototype would still apply. */
8479 char gethostbyname ();
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8490 (eval $ac_link) 2>&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
8494 { ac_try='test -s conftest$ac_exeext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 ac_cv_lib_bsd_gethostbyname=yes
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8505 ac_cv_lib_bsd_gethostbyname=no
8507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8508 LIBS=$ac_check_lib_save_LIBS
8510 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8511 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8512 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8513 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8519 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8520 # socket/setsockopt and other routines are undefined under SCO ODT
8521 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8522 # on later versions), says Simon Leinen: it contains gethostby*
8523 # variants that don't use the name server (or something). -lsocket
8524 # must be given before -lnsl if both are needed. We assume that
8525 # if connect needs -lnsl, so does gethostbyname.
8526 echo "$as_me:$LINENO: checking for connect" >&5
8527 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8528 if test "${ac_cv_func_connect+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 cat >conftest.$ac_ext <<_ACEOF
8532 #line $LINENO "configure"
8535 cat confdefs.h >>conftest.$ac_ext
8536 cat >>conftest.$ac_ext <<_ACEOF
8537 /* end confdefs.h. */
8538 /* System header to define __stub macros and hopefully few prototypes,
8539 which can conflict with char connect (); below.
8540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8541 <limits.h> exists even on freestanding compilers. */
8543 # include <limits.h>
8545 # include <assert.h>
8547 /* Override any gcc2 internal prototype to avoid an error. */
8552 /* We use char because int might match the return type of a gcc2
8553 builtin and then its argument prototype would still apply. */
8555 /* The GNU C library defines this for functions which it implements
8556 to always fail with ENOSYS. Some functions are actually named
8557 something starting with __ and the normal name is an alias. */
8558 #if defined (__stub_connect) || defined (__stub___connect)
8561 char (*f) () = connect;
8570 return f != connect;
8575 rm -f conftest.$ac_objext conftest$ac_exeext
8576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8577 (eval $ac_link) 2>&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -s conftest$ac_exeext'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; }; then
8587 ac_cv_func_connect=yes
8589 echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8592 ac_cv_func_connect=no
8594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8596 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8597 echo "${ECHO_T}$ac_cv_func_connect" >&6
8599 if test $ac_cv_func_connect = no; then
8600 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8601 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8602 if test "${ac_cv_lib_socket_connect+set}" = set; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
8605 ac_check_lib_save_LIBS=$LIBS
8606 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8607 cat >conftest.$ac_ext <<_ACEOF
8608 #line $LINENO "configure"
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8615 /* Override any gcc2 internal prototype to avoid an error. */
8619 /* We use char because int might match the return type of a gcc2
8620 builtin and then its argument prototype would still apply. */
8630 rm -f conftest.$ac_objext conftest$ac_exeext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8632 (eval $ac_link) 2>&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } &&
8636 { ac_try='test -s conftest$ac_exeext'
8637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; }; then
8642 ac_cv_lib_socket_connect=yes
8644 echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8647 ac_cv_lib_socket_connect=no
8649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8650 LIBS=$ac_check_lib_save_LIBS
8652 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8653 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8654 if test $ac_cv_lib_socket_connect = yes; then
8655 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8660 # Guillermo Gomez says -lposix is necessary on A/UX.
8661 echo "$as_me:$LINENO: checking for remove" >&5
8662 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8663 if test "${ac_cv_func_remove+set}" = set; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8666 cat >conftest.$ac_ext <<_ACEOF
8667 #line $LINENO "configure"
8670 cat confdefs.h >>conftest.$ac_ext
8671 cat >>conftest.$ac_ext <<_ACEOF
8672 /* end confdefs.h. */
8673 /* System header to define __stub macros and hopefully few prototypes,
8674 which can conflict with char remove (); below.
8675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8676 <limits.h> exists even on freestanding compilers. */
8678 # include <limits.h>
8680 # include <assert.h>
8682 /* Override any gcc2 internal prototype to avoid an error. */
8687 /* We use char because int might match the return type of a gcc2
8688 builtin and then its argument prototype would still apply. */
8690 /* The GNU C library defines this for functions which it implements
8691 to always fail with ENOSYS. Some functions are actually named
8692 something starting with __ and the normal name is an alias. */
8693 #if defined (__stub_remove) || defined (__stub___remove)
8696 char (*f) () = remove;
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712 (eval $ac_link) 2>&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } &&
8716 { ac_try='test -s conftest$ac_exeext'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8722 ac_cv_func_remove=yes
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8727 ac_cv_func_remove=no
8729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8731 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8732 echo "${ECHO_T}$ac_cv_func_remove" >&6
8734 if test $ac_cv_func_remove = no; then
8735 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8736 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8737 if test "${ac_cv_lib_posix_remove+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 ac_check_lib_save_LIBS=$LIBS
8741 LIBS="-lposix $LIBS"
8742 cat >conftest.$ac_ext <<_ACEOF
8743 #line $LINENO "configure"
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8750 /* Override any gcc2 internal prototype to avoid an error. */
8754 /* We use char because int might match the return type of a gcc2
8755 builtin and then its argument prototype would still apply. */
8765 rm -f conftest.$ac_objext conftest$ac_exeext
8766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8767 (eval $ac_link) 2>&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } &&
8771 { ac_try='test -s conftest$ac_exeext'
8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; }; then
8777 ac_cv_lib_posix_remove=yes
8779 echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8782 ac_cv_lib_posix_remove=no
8784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8785 LIBS=$ac_check_lib_save_LIBS
8787 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8788 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8789 if test $ac_cv_lib_posix_remove = yes; then
8790 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8795 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8796 echo "$as_me:$LINENO: checking for shmat" >&5
8797 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8798 if test "${ac_cv_func_shmat+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 cat >conftest.$ac_ext <<_ACEOF
8802 #line $LINENO "configure"
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h. */
8808 /* System header to define __stub macros and hopefully few prototypes,
8809 which can conflict with char shmat (); below.
8810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8811 <limits.h> exists even on freestanding compilers. */
8813 # include <limits.h>
8815 # include <assert.h>
8817 /* Override any gcc2 internal prototype to avoid an error. */
8822 /* We use char because int might match the return type of a gcc2
8823 builtin and then its argument prototype would still apply. */
8825 /* The GNU C library defines this for functions which it implements
8826 to always fail with ENOSYS. Some functions are actually named
8827 something starting with __ and the normal name is an alias. */
8828 #if defined (__stub_shmat) || defined (__stub___shmat)
8831 char (*f) () = shmat;
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8847 (eval $ac_link) 2>&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try='test -s conftest$ac_exeext'
8852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; }; then
8857 ac_cv_func_shmat=yes
8859 echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8866 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8867 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8869 if test $ac_cv_func_shmat = no; then
8870 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8871 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8872 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8873 echo $ECHO_N "(cached) $ECHO_C" >&6
8875 ac_check_lib_save_LIBS=$LIBS
8877 cat >conftest.$ac_ext <<_ACEOF
8878 #line $LINENO "configure"
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8885 /* Override any gcc2 internal prototype to avoid an error. */
8889 /* We use char because int might match the return type of a gcc2
8890 builtin and then its argument prototype would still apply. */
8900 rm -f conftest.$ac_objext conftest$ac_exeext
8901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8902 (eval $ac_link) 2>&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } &&
8906 { ac_try='test -s conftest$ac_exeext'
8907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); }; }; then
8912 ac_cv_lib_ipc_shmat=yes
8914 echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8917 ac_cv_lib_ipc_shmat=no
8919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8920 LIBS=$ac_check_lib_save_LIBS
8922 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8923 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8924 if test $ac_cv_lib_ipc_shmat = yes; then
8925 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8931 # Check for libraries that X11R6 Xt/Xaw programs need.
8932 ac_save_LDFLAGS=$LDFLAGS
8933 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8934 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8935 # check for ICE first), but we must link in the order -lSM -lICE or
8936 # we get undefined symbols. So assume we have SM if we have ICE.
8937 # These have to be linked with before -lX11, unlike the other
8938 # libraries we check for below, so use a different variable.
8939 # John Interrante, Karl Berry
8940 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8941 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8942 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
8945 ac_check_lib_save_LIBS=$LIBS
8946 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8947 cat >conftest.$ac_ext <<_ACEOF
8948 #line $LINENO "configure"
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8955 /* Override any gcc2 internal prototype to avoid an error. */
8959 /* We use char because int might match the return type of a gcc2
8960 builtin and then its argument prototype would still apply. */
8961 char IceConnectionNumber ();
8965 IceConnectionNumber ();
8970 rm -f conftest.$ac_objext conftest$ac_exeext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8972 (eval $ac_link) 2>&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } &&
8976 { ac_try='test -s conftest$ac_exeext'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
8982 ac_cv_lib_ICE_IceConnectionNumber=yes
8984 echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8987 ac_cv_lib_ICE_IceConnectionNumber=no
8989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8990 LIBS=$ac_check_lib_save_LIBS
8992 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8993 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8994 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8995 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8998 LDFLAGS=$ac_save_LDFLAGS
9050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9052 echo "$as_me:$LINENO: checking for $ac_header" >&5
9053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9060 # Is the header compilable?
9061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9063 cat >conftest.$ac_ext <<_ACEOF
9064 #line $LINENO "configure"
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h. */
9070 $ac_includes_default
9071 #include <$ac_header>
9073 rm -f conftest.$ac_objext
9074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9075 (eval $ac_compile) 2>&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } &&
9079 { ac_try='test -s conftest.$ac_objext'
9080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; }; then
9085 ac_header_compiler=yes
9087 echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.$ac_ext >&5
9090 ac_header_compiler=no
9092 rm -f conftest.$ac_objext conftest.$ac_ext
9093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9094 echo "${ECHO_T}$ac_header_compiler" >&6
9096 # Is the header present?
9097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9099 cat >conftest.$ac_ext <<_ACEOF
9100 #line $LINENO "configure"
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h. */
9106 #include <$ac_header>
9108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9111 grep -v '^ *+' conftest.er1 >conftest.err
9113 cat conftest.err >&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } >/dev/null; then
9116 if test -s conftest.err; then
9117 ac_cpp_err=$ac_c_preproc_warn_flag
9124 if test -z "$ac_cpp_err"; then
9125 ac_header_preproc=yes
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9130 ac_header_preproc=no
9132 rm -f conftest.err conftest.$ac_ext
9133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9134 echo "${ECHO_T}$ac_header_preproc" >&6
9136 # So? What about this header?
9137 case $ac_header_compiler:$ac_header_preproc in
9139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9145 ## ------------------------------------ ##
9146 ## Report this to bug-autoconf@gnu.org. ##
9147 ## ------------------------------------ ##
9150 sed "s/^/$as_me: WARNING: /" >&2
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9156 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9161 ## ------------------------------------ ##
9162 ## Report this to bug-autoconf@gnu.org. ##
9163 ## ------------------------------------ ##
9166 sed "s/^/$as_me: WARNING: /" >&2
9169 echo "$as_me:$LINENO: checking for $ac_header" >&5
9170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 eval "$as_ac_Header=$ac_header_preproc"
9176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9181 cat >>confdefs.h <<_ACEOF
9182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9189 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9190 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9191 if test "${ac_cv_header_stdc+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 cat >conftest.$ac_ext <<_ACEOF
9195 #line $LINENO "configure"
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h. */
9214 rm -f conftest.$ac_objext
9215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9216 (eval $ac_compile) 2>&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -s conftest.$ac_objext'
9221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; }; then
9226 ac_cv_header_stdc=yes
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9231 ac_cv_header_stdc=no
9233 rm -f conftest.$ac_objext conftest.$ac_ext
9235 if test $ac_cv_header_stdc = yes; then
9236 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9237 cat >conftest.$ac_ext <<_ACEOF
9238 #line $LINENO "configure"
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9248 $EGREP "memchr" >/dev/null 2>&1; then
9251 ac_cv_header_stdc=no
9257 if test $ac_cv_header_stdc = yes; then
9258 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9259 cat >conftest.$ac_ext <<_ACEOF
9260 #line $LINENO "configure"
9263 cat confdefs.h >>conftest.$ac_ext
9264 cat >>conftest.$ac_ext <<_ACEOF
9265 /* end confdefs.h. */
9269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9270 $EGREP "free" >/dev/null 2>&1; then
9273 ac_cv_header_stdc=no
9279 if test $ac_cv_header_stdc = yes; then
9280 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9281 if test "$cross_compiling" = yes; then
9284 cat >conftest.$ac_ext <<_ACEOF
9285 #line $LINENO "configure"
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9292 #if ((' ' & 0x0FF) == 0x020)
9293 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9294 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9296 # define ISLOWER(c) \
9297 (('a' <= (c) && (c) <= 'i') \
9298 || ('j' <= (c) && (c) <= 'r') \
9299 || ('s' <= (c) && (c) <= 'z'))
9300 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9308 for (i = 0; i < 256; i++)
9309 if (XOR (islower (i), ISLOWER (i))
9310 || toupper (i) != TOUPPER (i))
9315 rm -f conftest$ac_exeext
9316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9317 (eval $ac_link) 2>&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; }; then
9328 echo "$as_me: program exited with status $ac_status" >&5
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9333 ac_cv_header_stdc=no
9335 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9339 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9340 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9341 if test $ac_cv_header_stdc = yes; then
9343 cat >>confdefs.h <<\_ACEOF
9344 #define STDC_HEADERS 1
9349 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9350 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9351 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 cat >conftest.$ac_ext <<_ACEOF
9355 #line $LINENO "configure"
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361 #include <sys/types.h>
9365 return makedev(0, 0);
9370 rm -f conftest.$ac_objext conftest$ac_exeext
9371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9372 (eval $ac_link) 2>&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } &&
9376 { ac_try='test -s conftest$ac_exeext'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; }; then
9382 ac_cv_header_sys_types_h_makedev=yes
9384 echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9387 ac_cv_header_sys_types_h_makedev=no
9389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9392 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9393 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9395 if test $ac_cv_header_sys_types_h_makedev = no; then
9396 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9397 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9398 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9399 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9403 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9405 # Is the header compilable?
9406 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9407 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9408 cat >conftest.$ac_ext <<_ACEOF
9409 #line $LINENO "configure"
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9415 $ac_includes_default
9416 #include <sys/mkdev.h>
9418 rm -f conftest.$ac_objext
9419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9420 (eval $ac_compile) 2>&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } &&
9424 { ac_try='test -s conftest.$ac_objext'
9425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); }; }; then
9430 ac_header_compiler=yes
9432 echo "$as_me: failed program was:" >&5
9433 sed 's/^/| /' conftest.$ac_ext >&5
9435 ac_header_compiler=no
9437 rm -f conftest.$ac_objext conftest.$ac_ext
9438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9439 echo "${ECHO_T}$ac_header_compiler" >&6
9441 # Is the header present?
9442 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9443 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9444 cat >conftest.$ac_ext <<_ACEOF
9445 #line $LINENO "configure"
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h. */
9451 #include <sys/mkdev.h>
9453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9456 grep -v '^ *+' conftest.er1 >conftest.err
9458 cat conftest.err >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); } >/dev/null; then
9461 if test -s conftest.err; then
9462 ac_cpp_err=$ac_c_preproc_warn_flag
9469 if test -z "$ac_cpp_err"; then
9470 ac_header_preproc=yes
9472 echo "$as_me: failed program was:" >&5
9473 sed 's/^/| /' conftest.$ac_ext >&5
9475 ac_header_preproc=no
9477 rm -f conftest.err conftest.$ac_ext
9478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9479 echo "${ECHO_T}$ac_header_preproc" >&6
9481 # So? What about this header?
9482 case $ac_header_compiler:$ac_header_preproc in
9484 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9485 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9486 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9487 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9490 ## ------------------------------------ ##
9491 ## Report this to bug-autoconf@gnu.org. ##
9492 ## ------------------------------------ ##
9495 sed "s/^/$as_me: WARNING: /" >&2
9498 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9499 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9500 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9501 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9502 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9503 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9506 ## ------------------------------------ ##
9507 ## Report this to bug-autoconf@gnu.org. ##
9508 ## ------------------------------------ ##
9511 sed "s/^/$as_me: WARNING: /" >&2
9514 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9515 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9516 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9517 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9521 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9522 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9525 if test $ac_cv_header_sys_mkdev_h = yes; then
9527 cat >>confdefs.h <<\_ACEOF
9528 #define MAJOR_IN_MKDEV 1
9535 if test $ac_cv_header_sys_mkdev_h = no; then
9536 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9537 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9538 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9539 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9543 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9545 # Is the header compilable?
9546 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9547 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9548 cat >conftest.$ac_ext <<_ACEOF
9549 #line $LINENO "configure"
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9555 $ac_includes_default
9556 #include <sys/sysmacros.h>
9558 rm -f conftest.$ac_objext
9559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9560 (eval $ac_compile) 2>&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } &&
9564 { ac_try='test -s conftest.$ac_objext'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; }; then
9570 ac_header_compiler=yes
9572 echo "$as_me: failed program was:" >&5
9573 sed 's/^/| /' conftest.$ac_ext >&5
9575 ac_header_compiler=no
9577 rm -f conftest.$ac_objext conftest.$ac_ext
9578 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9579 echo "${ECHO_T}$ac_header_compiler" >&6
9581 # Is the header present?
9582 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9583 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9584 cat >conftest.$ac_ext <<_ACEOF
9585 #line $LINENO "configure"
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h. */
9591 #include <sys/sysmacros.h>
9593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9596 grep -v '^ *+' conftest.er1 >conftest.err
9598 cat conftest.err >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } >/dev/null; then
9601 if test -s conftest.err; then
9602 ac_cpp_err=$ac_c_preproc_warn_flag
9609 if test -z "$ac_cpp_err"; then
9610 ac_header_preproc=yes
9612 echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9615 ac_header_preproc=no
9617 rm -f conftest.err conftest.$ac_ext
9618 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9619 echo "${ECHO_T}$ac_header_preproc" >&6
9621 # So? What about this header?
9622 case $ac_header_compiler:$ac_header_preproc in
9624 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9625 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9626 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9627 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9630 ## ------------------------------------ ##
9631 ## Report this to bug-autoconf@gnu.org. ##
9632 ## ------------------------------------ ##
9635 sed "s/^/$as_me: WARNING: /" >&2
9638 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9639 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9640 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9641 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9642 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9643 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9646 ## ------------------------------------ ##
9647 ## Report this to bug-autoconf@gnu.org. ##
9648 ## ------------------------------------ ##
9651 sed "s/^/$as_me: WARNING: /" >&2
9654 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9655 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9656 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9661 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9662 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9665 if test $ac_cv_header_sys_sysmacros_h = yes; then
9667 cat >>confdefs.h <<\_ACEOF
9668 #define MAJOR_IN_SYSMACROS 1
9683 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9684 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9685 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9686 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 cat >conftest.$ac_ext <<_ACEOF
9691 #line $LINENO "configure"
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9697 #include <sys/types.h>
9709 rm -f conftest.$ac_objext
9710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9711 (eval $ac_compile) 2>&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } &&
9715 { ac_try='test -s conftest.$ac_objext'
9716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; }; then
9721 eval "$as_ac_Header=yes"
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9726 eval "$as_ac_Header=no"
9728 rm -f conftest.$ac_objext conftest.$ac_ext
9730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9733 cat >>confdefs.h <<_ACEOF
9734 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9737 ac_header_dirent=$ac_hdr; break
9741 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9742 if test $ac_header_dirent = dirent.h; then
9743 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9744 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9745 if test "${ac_cv_search_opendir+set}" = set; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 ac_func_search_save_LIBS=$LIBS
9749 ac_cv_search_opendir=no
9750 cat >conftest.$ac_ext <<_ACEOF
9751 #line $LINENO "configure"
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9758 /* Override any gcc2 internal prototype to avoid an error. */
9762 /* We use char because int might match the return type of a gcc2
9763 builtin and then its argument prototype would still apply. */
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775 (eval $ac_link) 2>&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } &&
9779 { ac_try='test -s conftest$ac_exeext'
9780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); }; }; then
9785 ac_cv_search_opendir="none required"
9787 echo "$as_me: failed program was:" >&5
9788 sed 's/^/| /' conftest.$ac_ext >&5
9791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9792 if test "$ac_cv_search_opendir" = no; then
9793 for ac_lib in dir; do
9794 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9795 cat >conftest.$ac_ext <<_ACEOF
9796 #line $LINENO "configure"
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9803 /* Override any gcc2 internal prototype to avoid an error. */
9807 /* We use char because int might match the return type of a gcc2
9808 builtin and then its argument prototype would still apply. */
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9820 (eval $ac_link) 2>&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } &&
9824 { ac_try='test -s conftest$ac_exeext'
9825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; }; then
9830 ac_cv_search_opendir="-l$ac_lib"
9833 echo "$as_me: failed program was:" >&5
9834 sed 's/^/| /' conftest.$ac_ext >&5
9837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9840 LIBS=$ac_func_search_save_LIBS
9842 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9843 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9844 if test "$ac_cv_search_opendir" != no; then
9845 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9850 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9851 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9852 if test "${ac_cv_search_opendir+set}" = set; then
9853 echo $ECHO_N "(cached) $ECHO_C" >&6
9855 ac_func_search_save_LIBS=$LIBS
9856 ac_cv_search_opendir=no
9857 cat >conftest.$ac_ext <<_ACEOF
9858 #line $LINENO "configure"
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h. */
9865 /* Override any gcc2 internal prototype to avoid an error. */
9869 /* We use char because int might match the return type of a gcc2
9870 builtin and then its argument prototype would still apply. */
9880 rm -f conftest.$ac_objext conftest$ac_exeext
9881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9882 (eval $ac_link) 2>&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } &&
9886 { ac_try='test -s conftest$ac_exeext'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; }; then
9892 ac_cv_search_opendir="none required"
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9899 if test "$ac_cv_search_opendir" = no; then
9901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9902 cat >conftest.$ac_ext <<_ACEOF
9903 #line $LINENO "configure"
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9910 /* Override any gcc2 internal prototype to avoid an error. */
9914 /* We use char because int might match the return type of a gcc2
9915 builtin and then its argument prototype would still apply. */
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9927 (eval $ac_link) 2>&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } &&
9931 { ac_try='test -s conftest$ac_exeext'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9937 ac_cv_search_opendir="-l$ac_lib"
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9947 LIBS=$ac_func_search_save_LIBS
9949 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9950 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9951 if test "$ac_cv_search_opendir" != no; then
9952 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9958 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9959 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9960 if test "${ac_cv_header_stat_broken+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 cat >conftest.$ac_ext <<_ACEOF
9964 #line $LINENO "configure"
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9970 #include <sys/types.h>
9971 #include <sys/stat.h>
9973 #if defined(S_ISBLK) && defined(S_IFDIR)
9974 # if S_ISBLK (S_IFDIR)
9979 #if defined(S_ISBLK) && defined(S_IFCHR)
9980 # if S_ISBLK (S_IFCHR)
9985 #if defined(S_ISLNK) && defined(S_IFREG)
9986 # if S_ISLNK (S_IFREG)
9991 #if defined(S_ISSOCK) && defined(S_IFREG)
9992 # if S_ISSOCK (S_IFREG)
9998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9999 $EGREP "You lose" >/dev/null 2>&1; then
10000 ac_cv_header_stat_broken=yes
10002 ac_cv_header_stat_broken=no
10007 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10008 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10009 if test $ac_cv_header_stat_broken = yes; then
10011 cat >>confdefs.h <<\_ACEOF
10012 #define STAT_MACROS_BROKEN 1
10017 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10018 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10019 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 cat >conftest.$ac_ext <<_ACEOF
10023 #line $LINENO "configure"
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h. */
10029 #include <sys/types.h>
10030 #include <sys/wait.h>
10031 #ifndef WEXITSTATUS
10032 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10035 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10043 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10048 rm -f conftest.$ac_objext
10049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10050 (eval $ac_compile) 2>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
10054 { ac_try='test -s conftest.$ac_objext'
10055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056 (eval $ac_try) 2>&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; }; then
10060 ac_cv_header_sys_wait_h=yes
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10065 ac_cv_header_sys_wait_h=no
10067 rm -f conftest.$ac_objext conftest.$ac_ext
10069 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10070 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10071 if test $ac_cv_header_sys_wait_h = yes; then
10073 cat >>confdefs.h <<\_ACEOF
10074 #define HAVE_SYS_WAIT_H 1
10079 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10080 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10081 if test "${ac_cv_header_time+set}" = set; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 cat >conftest.$ac_ext <<_ACEOF
10085 #line $LINENO "configure"
10088 cat confdefs.h >>conftest.$ac_ext
10089 cat >>conftest.$ac_ext <<_ACEOF
10090 /* end confdefs.h. */
10091 #include <sys/types.h>
10092 #include <sys/time.h>
10098 if ((struct tm *) 0)
10104 rm -f conftest.$ac_objext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10106 (eval $ac_compile) 2>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } &&
10110 { ac_try='test -s conftest.$ac_objext'
10111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112 (eval $ac_try) 2>&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; }; then
10116 ac_cv_header_time=yes
10118 echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.$ac_ext >&5
10121 ac_cv_header_time=no
10123 rm -f conftest.$ac_objext conftest.$ac_ext
10125 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10126 echo "${ECHO_T}$ac_cv_header_time" >&6
10127 if test $ac_cv_header_time = yes; then
10129 cat >>confdefs.h <<\_ACEOF
10130 #define TIME_WITH_SYS_TIME 1
10136 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10137 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10138 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10139 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 cat >conftest.$ac_ext <<_ACEOF
10142 #line $LINENO "configure"
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10148 $ac_includes_default
10152 static struct stat ac_aggr;
10153 if (ac_aggr.st_blksize)
10159 rm -f conftest.$ac_objext
10160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10161 (eval $ac_compile) 2>&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } &&
10165 { ac_try='test -s conftest.$ac_objext'
10166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167 (eval $ac_try) 2>&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; }; then
10171 ac_cv_member_struct_stat_st_blksize=yes
10173 echo "$as_me: failed program was:" >&5
10174 sed 's/^/| /' conftest.$ac_ext >&5
10176 cat >conftest.$ac_ext <<_ACEOF
10177 #line $LINENO "configure"
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10183 $ac_includes_default
10187 static struct stat ac_aggr;
10188 if (sizeof ac_aggr.st_blksize)
10194 rm -f conftest.$ac_objext
10195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10196 (eval $ac_compile) 2>&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } &&
10200 { ac_try='test -s conftest.$ac_objext'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; }; then
10206 ac_cv_member_struct_stat_st_blksize=yes
10208 echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10211 ac_cv_member_struct_stat_st_blksize=no
10213 rm -f conftest.$ac_objext conftest.$ac_ext
10215 rm -f conftest.$ac_objext conftest.$ac_ext
10217 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10218 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10219 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10221 cat >>confdefs.h <<_ACEOF
10222 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10226 cat >>confdefs.h <<\_ACEOF
10227 #define HAVE_ST_BLKSIZE 1
10233 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10234 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10235 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 cat >conftest.$ac_ext <<_ACEOF
10239 #line $LINENO "configure"
10242 cat confdefs.h >>conftest.$ac_ext
10243 cat >>conftest.$ac_ext <<_ACEOF
10244 /* end confdefs.h. */
10245 $ac_includes_default
10249 static struct stat ac_aggr;
10250 if (ac_aggr.st_blocks)
10256 rm -f conftest.$ac_objext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10258 (eval $ac_compile) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } &&
10262 { ac_try='test -s conftest.$ac_objext'
10263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264 (eval $ac_try) 2>&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; }; then
10268 ac_cv_member_struct_stat_st_blocks=yes
10270 echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10273 cat >conftest.$ac_ext <<_ACEOF
10274 #line $LINENO "configure"
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
10280 $ac_includes_default
10284 static struct stat ac_aggr;
10285 if (sizeof ac_aggr.st_blocks)
10291 rm -f conftest.$ac_objext
10292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10293 (eval $ac_compile) 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } &&
10297 { ac_try='test -s conftest.$ac_objext'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 ac_cv_member_struct_stat_st_blocks=yes
10305 echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10308 ac_cv_member_struct_stat_st_blocks=no
10310 rm -f conftest.$ac_objext conftest.$ac_ext
10312 rm -f conftest.$ac_objext conftest.$ac_ext
10314 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10315 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10316 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10318 cat >>confdefs.h <<_ACEOF
10319 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10323 cat >>confdefs.h <<\_ACEOF
10324 #define HAVE_ST_BLOCKS 1
10328 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10332 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10333 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10334 if test "${ac_cv_struct_tm+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 cat >conftest.$ac_ext <<_ACEOF
10338 #line $LINENO "configure"
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h. */
10344 #include <sys/types.h>
10350 struct tm *tp; tp->tm_sec;
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_struct_tm=time.h
10369 echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10372 ac_cv_struct_tm=sys/time.h
10374 rm -f conftest.$ac_objext conftest.$ac_ext
10376 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10377 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10378 if test $ac_cv_struct_tm = sys/time.h; then
10380 cat >>confdefs.h <<\_ACEOF
10381 #define TM_IN_SYS_TIME 1
10386 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10387 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10388 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10391 cat >conftest.$ac_ext <<_ACEOF
10392 #line $LINENO "configure"
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10398 #include <sys/types.h>
10399 #include <$ac_cv_struct_tm>
10405 static struct tm ac_aggr;
10406 if (ac_aggr.tm_zone)
10412 rm -f conftest.$ac_objext
10413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10414 (eval $ac_compile) 2>&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } &&
10418 { ac_try='test -s conftest.$ac_objext'
10419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420 (eval $ac_try) 2>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); }; }; then
10424 ac_cv_member_struct_tm_tm_zone=yes
10426 echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10429 cat >conftest.$ac_ext <<_ACEOF
10430 #line $LINENO "configure"
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10436 #include <sys/types.h>
10437 #include <$ac_cv_struct_tm>
10443 static struct tm ac_aggr;
10444 if (sizeof ac_aggr.tm_zone)
10450 rm -f conftest.$ac_objext
10451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10452 (eval $ac_compile) 2>&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } &&
10456 { ac_try='test -s conftest.$ac_objext'
10457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10458 (eval $ac_try) 2>&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); }; }; then
10462 ac_cv_member_struct_tm_tm_zone=yes
10464 echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.$ac_ext >&5
10467 ac_cv_member_struct_tm_tm_zone=no
10469 rm -f conftest.$ac_objext conftest.$ac_ext
10471 rm -f conftest.$ac_objext conftest.$ac_ext
10473 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10474 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10475 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10477 cat >>confdefs.h <<_ACEOF
10478 #define HAVE_STRUCT_TM_TM_ZONE 1
10484 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10486 cat >>confdefs.h <<\_ACEOF
10487 #define HAVE_TM_ZONE 1
10491 echo "$as_me:$LINENO: checking for tzname" >&5
10492 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10493 if test "${ac_cv_var_tzname+set}" = set; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10496 cat >conftest.$ac_ext <<_ACEOF
10497 #line $LINENO "configure"
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10504 #ifndef tzname /* For SGI. */
10505 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10516 rm -f conftest.$ac_objext conftest$ac_exeext
10517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10518 (eval $ac_link) 2>&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } &&
10522 { ac_try='test -s conftest$ac_exeext'
10523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; }; then
10528 ac_cv_var_tzname=yes
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10533 ac_cv_var_tzname=no
10535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10537 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10538 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10539 if test $ac_cv_var_tzname = yes; then
10541 cat >>confdefs.h <<\_ACEOF
10542 #define HAVE_TZNAME 1
10549 echo "$as_me:$LINENO: checking for utime.h" >&5
10550 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10551 if test "${ba_cv_header_utime_h+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10554 cat >conftest.$ac_ext <<_ACEOF
10555 #line $LINENO "configure"
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10562 #include <sys/types.h>
10572 rm -f conftest.$ac_objext
10573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10574 (eval $ac_compile) 2>&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } &&
10578 { ac_try='test -s conftest.$ac_objext'
10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; }; then
10584 ba_cv_header_utime_h=yes
10586 echo "$as_me: failed program was:" >&5
10587 sed 's/^/| /' conftest.$ac_ext >&5
10589 ba_cv_header_utime_h=no
10591 rm -f conftest.$ac_objext conftest.$ac_ext
10593 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10594 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10595 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10596 #define HAVE_UTIME_H 1
10600 echo "$as_me:$LINENO: checking for socklen_t" >&5
10601 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10602 if test "${ba_cv_header_socklen_t+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 cat >conftest.$ac_ext <<_ACEOF
10606 #line $LINENO "configure"
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h. */
10613 #include <sys/types.h>
10614 #include <sys/socket.h>
10623 rm -f conftest.$ac_objext
10624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10625 (eval $ac_compile) 2>&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } &&
10629 { ac_try='test -s conftest.$ac_objext'
10630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10631 (eval $ac_try) 2>&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; }; then
10635 ba_cv_header_socklen_t=yes
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10640 ba_cv_header_socklen_t=no
10642 rm -f conftest.$ac_objext conftest.$ac_ext
10644 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10645 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10646 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10647 #define HAVE_SOCKLEN_T 1
10651 echo "$as_me:$LINENO: checking for bigendian" >&5
10652 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10653 if test "${ba_cv_bigendian+set}" = set; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10656 if test "$cross_compiling" = yes; then
10659 cat >conftest.$ac_ext <<_ACEOF
10660 #line $LINENO "configure"
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h. */
10666 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10668 rm -f conftest$ac_exeext
10669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10670 (eval $ac_link) 2>&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; }; then
10679 ba_cv_bigendian=yes
10681 echo "$as_me: program exited with status $ac_status" >&5
10682 echo "$as_me: failed program was:" >&5
10683 sed 's/^/| /' conftest.$ac_ext >&5
10685 ( exit $ac_status )
10688 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10691 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10692 echo "${ECHO_T}$ba_cv_bigendian" >&6
10693 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10694 #define HAVE_BIGENDIAN 1
10699 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10700 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10701 if test "${ac_cv_c_const+set}" = set; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 cat >conftest.$ac_ext <<_ACEOF
10705 #line $LINENO "configure"
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h. */
10715 /* FIXME: Include the comments suggested by Paul. */
10716 #ifndef __cplusplus
10717 /* Ultrix mips cc rejects this. */
10718 typedef int charset[2];
10720 /* SunOS 4.1.1 cc rejects this. */
10721 char const *const *ccp;
10723 /* NEC SVR4.0.2 mips cc rejects this. */
10724 struct point {int x, y;};
10725 static struct point const zero = {0,0};
10726 /* AIX XL C 1.02.0.0 rejects this.
10727 It does not let you subtract one const X* pointer from another in
10728 an arm of an if-expression whose if-part is not a constant
10730 const char *g = "string";
10731 ccp = &g + (g ? g-g : 0);
10732 /* HPUX 7.0 cc rejects these. */
10735 ccp = (char const *const *) p;
10736 { /* SCO 3.2v4 cc rejects this. */
10738 char const *s = 0 ? (char *) 0 : (char const *) 0;
10742 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10743 int x[] = {25, 17};
10744 const int *foo = &x[0];
10747 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10748 typedef const int *iptr;
10752 { /* AIX XL C 1.02.0.0 rejects this saying
10753 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10754 struct s { int j; const int *ap[3]; };
10755 struct s *b; b->j = 5;
10757 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10758 const int foo = 10;
10766 rm -f conftest.$ac_objext
10767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10768 (eval $ac_compile) 2>&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } &&
10772 { ac_try='test -s conftest.$ac_objext'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; }; then
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10785 rm -f conftest.$ac_objext conftest.$ac_ext
10787 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10788 echo "${ECHO_T}$ac_cv_c_const" >&6
10789 if test $ac_cv_c_const = no; then
10791 cat >>confdefs.h <<\_ACEOF
10799 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10800 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10802 # The order of these tests is important.
10803 cat >conftest.$ac_ext <<_ACEOF
10804 #line $LINENO "configure"
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 #include <sys/statvfs.h>
10811 #include <sys/fstyp.h>
10813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10816 grep -v '^ *+' conftest.er1 >conftest.err
10818 cat conftest.err >&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } >/dev/null; then
10821 if test -s conftest.err; then
10822 ac_cpp_err=$ac_c_preproc_warn_flag
10829 if test -z "$ac_cpp_err"; then
10830 cat >>confdefs.h <<\_ACEOF
10831 #define FSTYPE_STATVFS 1
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10840 rm -f conftest.err conftest.$ac_ext
10841 if test $fstype = no; then
10842 cat >conftest.$ac_ext <<_ACEOF
10843 #line $LINENO "configure"
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10849 #include <sys/statfs.h>
10850 #include <sys/fstyp.h>
10852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10855 grep -v '^ *+' conftest.er1 >conftest.err
10857 cat conftest.err >&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } >/dev/null; then
10860 if test -s conftest.err; then
10861 ac_cpp_err=$ac_c_preproc_warn_flag
10868 if test -z "$ac_cpp_err"; then
10869 cat >>confdefs.h <<\_ACEOF
10870 #define FSTYPE_USG_STATFS 1
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10879 rm -f conftest.err conftest.$ac_ext
10881 if test $fstype = no; then
10882 cat >conftest.$ac_ext <<_ACEOF
10883 #line $LINENO "configure"
10886 cat confdefs.h >>conftest.$ac_ext
10887 cat >>conftest.$ac_ext <<_ACEOF
10888 /* end confdefs.h. */
10889 #include <sys/statfs.h>
10890 #include <sys/vmount.h>
10892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10895 grep -v '^ *+' conftest.er1 >conftest.err
10897 cat conftest.err >&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } >/dev/null; then
10900 if test -s conftest.err; then
10901 ac_cpp_err=$ac_c_preproc_warn_flag
10908 if test -z "$ac_cpp_err"; then
10909 cat >>confdefs.h <<\_ACEOF
10910 #define FSTYPE_AIX_STATFS 1
10914 echo "$as_me: failed program was:" >&5
10915 sed 's/^/| /' conftest.$ac_ext >&5
10919 rm -f conftest.err conftest.$ac_ext
10921 if test $fstype = no; then
10922 cat >conftest.$ac_ext <<_ACEOF
10923 #line $LINENO "configure"
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h. */
10929 #include <mntent.h>
10931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10934 grep -v '^ *+' conftest.er1 >conftest.err
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } >/dev/null; then
10939 if test -s conftest.err; then
10940 ac_cpp_err=$ac_c_preproc_warn_flag
10947 if test -z "$ac_cpp_err"; then
10948 cat >>confdefs.h <<\_ACEOF
10949 #define FSTYPE_MNTENT 1
10953 echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10958 rm -f conftest.err conftest.$ac_ext
10960 if test $fstype = no; then
10961 cat >conftest.$ac_ext <<_ACEOF
10962 #line $LINENO "configure"
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968 #include <sys/mount.h>
10971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10972 $EGREP "f_type;" >/dev/null 2>&1; then
10973 cat >>confdefs.h <<\_ACEOF
10974 #define FSTYPE_STATFS 1
10981 if test $fstype = no; then
10982 cat >conftest.$ac_ext <<_ACEOF
10983 #line $LINENO "configure"
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h. */
10989 #include <sys/mount.h>
10990 #include <sys/fs_types.h>
10992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10995 grep -v '^ *+' conftest.er1 >conftest.err
10997 cat conftest.err >&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } >/dev/null; then
11000 if test -s conftest.err; then
11001 ac_cpp_err=$ac_c_preproc_warn_flag
11008 if test -z "$ac_cpp_err"; then
11009 cat >>confdefs.h <<\_ACEOF
11010 #define FSTYPE_GETMNT 1
11014 echo "$as_me: failed program was:" >&5
11015 sed 's/^/| /' conftest.$ac_ext >&5
11019 rm -f conftest.err conftest.$ac_ext
11021 echo "$as_me:$LINENO: result: $fstype" >&5
11022 echo "${ECHO_T}$fstype" >&6
11024 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11025 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11026 if test "${ac_cv_type_signal+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11029 cat >conftest.$ac_ext <<_ACEOF
11030 #line $LINENO "configure"
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11036 #include <sys/types.h>
11037 #include <signal.h>
11042 extern "C" void (*signal (int, void (*)(int)))(int);
11044 void (*signal ()) ();
11055 rm -f conftest.$ac_objext
11056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11057 (eval $ac_compile) 2>&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } &&
11061 { ac_try='test -s conftest.$ac_objext'
11062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063 (eval $ac_try) 2>&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }; }; then
11067 ac_cv_type_signal=void
11069 echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11072 ac_cv_type_signal=int
11074 rm -f conftest.$ac_objext conftest.$ac_ext
11076 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11077 echo "${ECHO_T}$ac_cv_type_signal" >&6
11079 cat >>confdefs.h <<_ACEOF
11080 #define RETSIGTYPE $ac_cv_type_signal
11085 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11086 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11087 if test "${bash_cv_signal_vintage+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11091 cat >conftest.$ac_ext <<_ACEOF
11092 #line $LINENO "configure"
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h. */
11098 #include <signal.h>
11104 struct sigaction sa;
11105 sigemptyset(&ss); sigsuspend(&ss);
11106 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11107 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11113 rm -f conftest.$ac_objext conftest$ac_exeext
11114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11115 (eval $ac_link) 2>&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); } &&
11119 { ac_try='test -s conftest$ac_exeext'
11120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121 (eval $ac_try) 2>&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; }; then
11125 bash_cv_signal_vintage=posix
11127 echo "$as_me: failed program was:" >&5
11128 sed 's/^/| /' conftest.$ac_ext >&5
11131 cat >conftest.$ac_ext <<_ACEOF
11132 #line $LINENO "configure"
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11138 #include <signal.h>
11143 int mask = sigmask(SIGINT);
11144 sigsetmask(mask); sigblock(mask); sigpause(mask);
11150 rm -f conftest.$ac_objext conftest$ac_exeext
11151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11152 (eval $ac_link) 2>&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } &&
11156 { ac_try='test -s conftest$ac_exeext'
11157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158 (eval $ac_try) 2>&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); }; }; then
11162 bash_cv_signal_vintage=4.2bsd
11164 echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11168 cat >conftest.$ac_ext <<_ACEOF
11169 #line $LINENO "configure"
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h. */
11176 #include <signal.h>
11177 RETSIGTYPE foo() { }
11182 int mask = sigmask(SIGINT);
11183 sigset(SIGINT, foo); sigrelse(SIGINT);
11184 sighold(SIGINT); sigpause(SIGINT);
11190 rm -f conftest.$ac_objext conftest$ac_exeext
11191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11192 (eval $ac_link) 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } &&
11196 { ac_try='test -s conftest$ac_exeext'
11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198 (eval $ac_try) 2>&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; }; then
11202 bash_cv_signal_vintage=svr3
11204 echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11207 bash_cv_signal_vintage=v7
11210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11220 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11221 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11222 if test "$bash_cv_signal_vintage" = posix; then
11223 cat >>confdefs.h <<\_ACEOF
11224 #define HAVE_POSIX_SIGNALS 1
11227 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11228 cat >>confdefs.h <<\_ACEOF
11229 #define HAVE_BSD_SIGNALS 1
11232 elif test "$bash_cv_signal_vintage" = svr3; then
11233 cat >>confdefs.h <<\_ACEOF
11234 #define HAVE_USG_SIGHOLD 1
11239 echo "$as_me:$LINENO: checking for mode_t" >&5
11240 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11241 if test "${ac_cv_type_mode_t+set}" = set; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 cat >conftest.$ac_ext <<_ACEOF
11245 #line $LINENO "configure"
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11251 $ac_includes_default
11257 if (sizeof (mode_t))
11263 rm -f conftest.$ac_objext
11264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11265 (eval $ac_compile) 2>&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } &&
11269 { ac_try='test -s conftest.$ac_objext'
11270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271 (eval $ac_try) 2>&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; }; then
11275 ac_cv_type_mode_t=yes
11277 echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11280 ac_cv_type_mode_t=no
11282 rm -f conftest.$ac_objext conftest.$ac_ext
11284 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11285 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11286 if test $ac_cv_type_mode_t = yes; then
11290 cat >>confdefs.h <<_ACEOF
11296 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11297 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11298 if test "${ac_cv_type_uid_t+set}" = set; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 cat >conftest.$ac_ext <<_ACEOF
11302 #line $LINENO "configure"
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 #include <sys/types.h>
11311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11312 $EGREP "uid_t" >/dev/null 2>&1; then
11313 ac_cv_type_uid_t=yes
11315 ac_cv_type_uid_t=no
11320 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11321 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11322 if test $ac_cv_type_uid_t = no; then
11324 cat >>confdefs.h <<\_ACEOF
11329 cat >>confdefs.h <<\_ACEOF
11335 echo "$as_me:$LINENO: checking for size_t" >&5
11336 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11337 if test "${ac_cv_type_size_t+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11340 cat >conftest.$ac_ext <<_ACEOF
11341 #line $LINENO "configure"
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 $ac_includes_default
11353 if (sizeof (size_t))
11359 rm -f conftest.$ac_objext
11360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11361 (eval $ac_compile) 2>&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } &&
11365 { ac_try='test -s conftest.$ac_objext'
11366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11367 (eval $ac_try) 2>&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); }; }; then
11371 ac_cv_type_size_t=yes
11373 echo "$as_me: failed program was:" >&5
11374 sed 's/^/| /' conftest.$ac_ext >&5
11376 ac_cv_type_size_t=no
11378 rm -f conftest.$ac_objext conftest.$ac_ext
11380 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11381 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11382 if test $ac_cv_type_size_t = yes; then
11386 cat >>confdefs.h <<_ACEOF
11387 #define size_t unsigned
11392 echo "$as_me:$LINENO: checking for pid_t" >&5
11393 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11394 if test "${ac_cv_type_pid_t+set}" = set; then
11395 echo $ECHO_N "(cached) $ECHO_C" >&6
11397 cat >conftest.$ac_ext <<_ACEOF
11398 #line $LINENO "configure"
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h. */
11404 $ac_includes_default
11410 if (sizeof (pid_t))
11416 rm -f conftest.$ac_objext
11417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11418 (eval $ac_compile) 2>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } &&
11422 { ac_try='test -s conftest.$ac_objext'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; }; then
11428 ac_cv_type_pid_t=yes
11430 echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11433 ac_cv_type_pid_t=no
11435 rm -f conftest.$ac_objext conftest.$ac_ext
11437 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11438 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11439 if test $ac_cv_type_pid_t = yes; then
11443 cat >>confdefs.h <<_ACEOF
11449 echo "$as_me:$LINENO: checking for off_t" >&5
11450 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11451 if test "${ac_cv_type_off_t+set}" = set; then
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
11454 cat >conftest.$ac_ext <<_ACEOF
11455 #line $LINENO "configure"
11458 cat confdefs.h >>conftest.$ac_ext
11459 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h. */
11461 $ac_includes_default
11467 if (sizeof (off_t))
11473 rm -f conftest.$ac_objext
11474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11475 (eval $ac_compile) 2>&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } &&
11479 { ac_try='test -s conftest.$ac_objext'
11480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11481 (eval $ac_try) 2>&5
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; }; then
11485 ac_cv_type_off_t=yes
11487 echo "$as_me: failed program was:" >&5
11488 sed 's/^/| /' conftest.$ac_ext >&5
11490 ac_cv_type_off_t=no
11492 rm -f conftest.$ac_objext conftest.$ac_ext
11494 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11495 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11496 if test $ac_cv_type_off_t = yes; then
11500 cat >>confdefs.h <<_ACEOF
11506 echo "$as_me:$LINENO: checking for ino_t" >&5
11507 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11508 if test "${ac_cv_type_ino_t+set}" = set; then
11509 echo $ECHO_N "(cached) $ECHO_C" >&6
11511 cat >conftest.$ac_ext <<_ACEOF
11512 #line $LINENO "configure"
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h. */
11518 $ac_includes_default
11524 if (sizeof (ino_t))
11530 rm -f conftest.$ac_objext
11531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11532 (eval $ac_compile) 2>&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } &&
11536 { ac_try='test -s conftest.$ac_objext'
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; }; then
11542 ac_cv_type_ino_t=yes
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11547 ac_cv_type_ino_t=no
11549 rm -f conftest.$ac_objext conftest.$ac_ext
11551 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11552 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11553 if test $ac_cv_type_ino_t = yes; then
11557 cat >>confdefs.h <<_ACEOF
11558 #define ino_t unsigned long
11563 echo "$as_me:$LINENO: checking for dev_t" >&5
11564 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11565 if test "${ac_cv_type_dev_t+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11568 cat >conftest.$ac_ext <<_ACEOF
11569 #line $LINENO "configure"
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11575 $ac_includes_default
11581 if (sizeof (dev_t))
11587 rm -f conftest.$ac_objext
11588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11589 (eval $ac_compile) 2>&5
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); } &&
11593 { ac_try='test -s conftest.$ac_objext'
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; }; then
11599 ac_cv_type_dev_t=yes
11601 echo "$as_me: failed program was:" >&5
11602 sed 's/^/| /' conftest.$ac_ext >&5
11604 ac_cv_type_dev_t=no
11606 rm -f conftest.$ac_objext conftest.$ac_ext
11608 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11609 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11610 if test $ac_cv_type_dev_t = yes; then
11614 cat >>confdefs.h <<_ACEOF
11615 #define dev_t unsigned long
11620 echo "$as_me:$LINENO: checking for daddr_t" >&5
11621 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11622 if test "${ac_cv_type_daddr_t+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11625 cat >conftest.$ac_ext <<_ACEOF
11626 #line $LINENO "configure"
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11632 $ac_includes_default
11638 if (sizeof (daddr_t))
11644 rm -f conftest.$ac_objext
11645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11646 (eval $ac_compile) 2>&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } &&
11650 { ac_try='test -s conftest.$ac_objext'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; }; then
11656 ac_cv_type_daddr_t=yes
11658 echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11661 ac_cv_type_daddr_t=no
11663 rm -f conftest.$ac_objext conftest.$ac_ext
11665 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11666 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11667 if test $ac_cv_type_daddr_t = yes; then
11671 cat >>confdefs.h <<_ACEOF
11672 #define daddr_t long
11677 echo "$as_me:$LINENO: checking for major_t" >&5
11678 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11679 if test "${ac_cv_type_major_t+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 cat >conftest.$ac_ext <<_ACEOF
11683 #line $LINENO "configure"
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h. */
11689 $ac_includes_default
11695 if (sizeof (major_t))
11701 rm -f conftest.$ac_objext
11702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11703 (eval $ac_compile) 2>&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try='test -s conftest.$ac_objext'
11708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709 (eval $ac_try) 2>&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; }; then
11713 ac_cv_type_major_t=yes
11715 echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11718 ac_cv_type_major_t=no
11720 rm -f conftest.$ac_objext conftest.$ac_ext
11722 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11723 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11724 if test $ac_cv_type_major_t = yes; then
11728 cat >>confdefs.h <<_ACEOF
11729 #define major_t int
11734 echo "$as_me:$LINENO: checking for minor_t" >&5
11735 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11736 if test "${ac_cv_type_minor_t+set}" = set; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11739 cat >conftest.$ac_ext <<_ACEOF
11740 #line $LINENO "configure"
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11746 $ac_includes_default
11752 if (sizeof (minor_t))
11758 rm -f conftest.$ac_objext
11759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11760 (eval $ac_compile) 2>&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); } &&
11764 { ac_try='test -s conftest.$ac_objext'
11765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11766 (eval $ac_try) 2>&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); }; }; then
11770 ac_cv_type_minor_t=yes
11772 echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11775 ac_cv_type_minor_t=no
11777 rm -f conftest.$ac_objext conftest.$ac_ext
11779 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11780 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11781 if test $ac_cv_type_minor_t = yes; then
11785 cat >>confdefs.h <<_ACEOF
11786 #define minor_t int
11791 echo "$as_me:$LINENO: checking for ssize_t" >&5
11792 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11793 if test "${ac_cv_type_ssize_t+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11796 cat >conftest.$ac_ext <<_ACEOF
11797 #line $LINENO "configure"
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h. */
11803 $ac_includes_default
11809 if (sizeof (ssize_t))
11815 rm -f conftest.$ac_objext
11816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11817 (eval $ac_compile) 2>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } &&
11821 { ac_try='test -s conftest.$ac_objext'
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
11827 ac_cv_type_ssize_t=yes
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11832 ac_cv_type_ssize_t=no
11834 rm -f conftest.$ac_objext conftest.$ac_ext
11836 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11837 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11838 if test $ac_cv_type_ssize_t = yes; then
11842 cat >>confdefs.h <<_ACEOF
11843 #define ssize_t int
11848 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11849 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11850 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 cat >conftest.$ac_ext <<_ACEOF
11854 #line $LINENO "configure"
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11860 $ac_includes_default
11864 static struct stat ac_aggr;
11865 if (ac_aggr.st_blocks)
11871 rm -f conftest.$ac_objext
11872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11873 (eval $ac_compile) 2>&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } &&
11877 { ac_try='test -s conftest.$ac_objext'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; }; then
11883 ac_cv_member_struct_stat_st_blocks=yes
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11888 cat >conftest.$ac_ext <<_ACEOF
11889 #line $LINENO "configure"
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h. */
11895 $ac_includes_default
11899 static struct stat ac_aggr;
11900 if (sizeof ac_aggr.st_blocks)
11906 rm -f conftest.$ac_objext
11907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11908 (eval $ac_compile) 2>&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } &&
11912 { ac_try='test -s conftest.$ac_objext'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; }; then
11918 ac_cv_member_struct_stat_st_blocks=yes
11920 echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11923 ac_cv_member_struct_stat_st_blocks=no
11925 rm -f conftest.$ac_objext conftest.$ac_ext
11927 rm -f conftest.$ac_objext conftest.$ac_ext
11929 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11930 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11931 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11933 cat >>confdefs.h <<_ACEOF
11934 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11938 cat >>confdefs.h <<\_ACEOF
11939 #define HAVE_ST_BLOCKS 1
11943 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11948 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11949 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11950 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 cat >conftest.$ac_ext <<_ACEOF
11954 #line $LINENO "configure"
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h. */
11960 $ac_includes_default
11964 static struct stat ac_aggr;
11965 if (ac_aggr.st_rdev)
11971 rm -f conftest.$ac_objext
11972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11973 (eval $ac_compile) 2>&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } &&
11977 { ac_try='test -s conftest.$ac_objext'
11978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979 (eval $ac_try) 2>&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; }; then
11983 ac_cv_member_struct_stat_st_rdev=yes
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 cat >conftest.$ac_ext <<_ACEOF
11989 #line $LINENO "configure"
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995 $ac_includes_default
11999 static struct stat ac_aggr;
12000 if (sizeof ac_aggr.st_rdev)
12006 rm -f conftest.$ac_objext
12007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12008 (eval $ac_compile) 2>&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } &&
12012 { ac_try='test -s conftest.$ac_objext'
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; }; then
12018 ac_cv_member_struct_stat_st_rdev=yes
12020 echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12023 ac_cv_member_struct_stat_st_rdev=no
12025 rm -f conftest.$ac_objext conftest.$ac_ext
12027 rm -f conftest.$ac_objext conftest.$ac_ext
12029 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12030 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12031 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12033 cat >>confdefs.h <<_ACEOF
12034 #define HAVE_STRUCT_STAT_ST_RDEV 1
12038 cat >>confdefs.h <<\_ACEOF
12039 #define HAVE_ST_RDEV 1
12045 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12046 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12047 if test "${ac_cv_struct_tm+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 cat >conftest.$ac_ext <<_ACEOF
12051 #line $LINENO "configure"
12054 cat confdefs.h >>conftest.$ac_ext
12055 cat >>conftest.$ac_ext <<_ACEOF
12056 /* end confdefs.h. */
12057 #include <sys/types.h>
12063 struct tm *tp; tp->tm_sec;
12068 rm -f conftest.$ac_objext
12069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12070 (eval $ac_compile) 2>&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } &&
12074 { ac_try='test -s conftest.$ac_objext'
12075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076 (eval $ac_try) 2>&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; }; then
12080 ac_cv_struct_tm=time.h
12082 echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.$ac_ext >&5
12085 ac_cv_struct_tm=sys/time.h
12087 rm -f conftest.$ac_objext conftest.$ac_ext
12089 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12090 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12091 if test $ac_cv_struct_tm = sys/time.h; then
12093 cat >>confdefs.h <<\_ACEOF
12094 #define TM_IN_SYS_TIME 1
12099 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12100 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12101 if test "${ac_cv_c_const+set}" = set; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12104 cat >conftest.$ac_ext <<_ACEOF
12105 #line $LINENO "configure"
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12115 /* FIXME: Include the comments suggested by Paul. */
12116 #ifndef __cplusplus
12117 /* Ultrix mips cc rejects this. */
12118 typedef int charset[2];
12120 /* SunOS 4.1.1 cc rejects this. */
12121 char const *const *ccp;
12123 /* NEC SVR4.0.2 mips cc rejects this. */
12124 struct point {int x, y;};
12125 static struct point const zero = {0,0};
12126 /* AIX XL C 1.02.0.0 rejects this.
12127 It does not let you subtract one const X* pointer from another in
12128 an arm of an if-expression whose if-part is not a constant
12130 const char *g = "string";
12131 ccp = &g + (g ? g-g : 0);
12132 /* HPUX 7.0 cc rejects these. */
12135 ccp = (char const *const *) p;
12136 { /* SCO 3.2v4 cc rejects this. */
12138 char const *s = 0 ? (char *) 0 : (char const *) 0;
12142 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12143 int x[] = {25, 17};
12144 const int *foo = &x[0];
12147 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12148 typedef const int *iptr;
12152 { /* AIX XL C 1.02.0.0 rejects this saying
12153 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12154 struct s { int j; const int *ap[3]; };
12155 struct s *b; b->j = 5;
12157 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12158 const int foo = 10;
12166 rm -f conftest.$ac_objext
12167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12168 (eval $ac_compile) 2>&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } &&
12172 { ac_try='test -s conftest.$ac_objext'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; }; then
12180 echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12185 rm -f conftest.$ac_objext conftest.$ac_ext
12187 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12188 echo "${ECHO_T}$ac_cv_c_const" >&6
12189 if test $ac_cv_c_const = no; then
12191 cat >>confdefs.h <<\_ACEOF
12199 echo "$as_me:$LINENO: checking for char" >&5
12200 echo $ECHO_N "checking for char... $ECHO_C" >&6
12201 if test "${ac_cv_type_char+set}" = set; then
12202 echo $ECHO_N "(cached) $ECHO_C" >&6
12204 cat >conftest.$ac_ext <<_ACEOF
12205 #line $LINENO "configure"
12208 cat confdefs.h >>conftest.$ac_ext
12209 cat >>conftest.$ac_ext <<_ACEOF
12210 /* end confdefs.h. */
12211 $ac_includes_default
12223 rm -f conftest.$ac_objext
12224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12225 (eval $ac_compile) 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); } &&
12229 { ac_try='test -s conftest.$ac_objext'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12235 ac_cv_type_char=yes
12237 echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12242 rm -f conftest.$ac_objext conftest.$ac_ext
12244 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12245 echo "${ECHO_T}$ac_cv_type_char" >&6
12247 echo "$as_me:$LINENO: checking size of char" >&5
12248 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12249 if test "${ac_cv_sizeof_char+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 if test "$ac_cv_type_char" = yes; then
12253 # The cast to unsigned long works around a bug in the HP C Compiler
12254 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12255 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12256 # This bug is HP SR number 8606223364.
12257 if test "$cross_compiling" = yes; then
12258 # Depending upon the size, compute the lo and hi bounds.
12259 cat >conftest.$ac_ext <<_ACEOF
12260 #line $LINENO "configure"
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12266 $ac_includes_default
12270 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12277 rm -f conftest.$ac_objext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12279 (eval $ac_compile) 2>&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } &&
12283 { ac_try='test -s conftest.$ac_objext'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; }; then
12291 cat >conftest.$ac_ext <<_ACEOF
12292 #line $LINENO "configure"
12295 cat confdefs.h >>conftest.$ac_ext
12296 cat >>conftest.$ac_ext <<_ACEOF
12297 /* end confdefs.h. */
12298 $ac_includes_default
12302 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12309 rm -f conftest.$ac_objext
12310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12311 (eval $ac_compile) 2>&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); } &&
12315 { ac_try='test -s conftest.$ac_objext'
12316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317 (eval $ac_try) 2>&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }; }; then
12321 ac_hi=$ac_mid; break
12323 echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12326 ac_lo=`expr $ac_mid + 1`
12327 if test $ac_lo -le $ac_mid; then
12331 ac_mid=`expr 2 '*' $ac_mid + 1`
12333 rm -f conftest.$ac_objext conftest.$ac_ext
12336 echo "$as_me: failed program was:" >&5
12337 sed 's/^/| /' conftest.$ac_ext >&5
12339 cat >conftest.$ac_ext <<_ACEOF
12340 #line $LINENO "configure"
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12346 $ac_includes_default
12350 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12357 rm -f conftest.$ac_objext
12358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12359 (eval $ac_compile) 2>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } &&
12363 { ac_try='test -s conftest.$ac_objext'
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; }; then
12371 cat >conftest.$ac_ext <<_ACEOF
12372 #line $LINENO "configure"
12375 cat confdefs.h >>conftest.$ac_ext
12376 cat >>conftest.$ac_ext <<_ACEOF
12377 /* end confdefs.h. */
12378 $ac_includes_default
12382 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12389 rm -f conftest.$ac_objext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391 (eval $ac_compile) 2>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try='test -s conftest.$ac_objext'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
12401 ac_lo=$ac_mid; break
12403 echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12406 ac_hi=`expr '(' $ac_mid ')' - 1`
12407 if test $ac_mid -le $ac_hi; then
12411 ac_mid=`expr 2 '*' $ac_mid`
12413 rm -f conftest.$ac_objext conftest.$ac_ext
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12421 rm -f conftest.$ac_objext conftest.$ac_ext
12423 rm -f conftest.$ac_objext conftest.$ac_ext
12424 # Binary search between lo and hi bounds.
12425 while test "x$ac_lo" != "x$ac_hi"; do
12426 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12427 cat >conftest.$ac_ext <<_ACEOF
12428 #line $LINENO "configure"
12431 cat confdefs.h >>conftest.$ac_ext
12432 cat >>conftest.$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12434 $ac_includes_default
12438 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12445 rm -f conftest.$ac_objext
12446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12447 (eval $ac_compile) 2>&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } &&
12451 { ac_try='test -s conftest.$ac_objext'
12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453 (eval $ac_try) 2>&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; }; then
12459 echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12462 ac_lo=`expr '(' $ac_mid ')' + 1`
12464 rm -f conftest.$ac_objext conftest.$ac_ext
12467 ?*) ac_cv_sizeof_char=$ac_lo;;
12468 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12469 See \`config.log' for more details." >&5
12470 echo "$as_me: error: cannot compute sizeof (char), 77
12471 See \`config.log' for more details." >&2;}
12472 { (exit 1); exit 1; }; } ;;
12475 if test "$cross_compiling" = yes; then
12476 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12477 See \`config.log' for more details." >&5
12478 echo "$as_me: error: cannot run test program while cross compiling
12479 See \`config.log' for more details." >&2;}
12480 { (exit 1); exit 1; }; }
12482 cat >conftest.$ac_ext <<_ACEOF
12483 #line $LINENO "configure"
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h. */
12489 $ac_includes_default
12490 long longval () { return (long) (sizeof (char)); }
12491 unsigned long ulongval () { return (long) (sizeof (char)); }
12493 #include <stdlib.h>
12498 FILE *f = fopen ("conftest.val", "w");
12501 if (((long) (sizeof (char))) < 0)
12503 long i = longval ();
12504 if (i != ((long) (sizeof (char))))
12506 fprintf (f, "%ld\n", i);
12510 unsigned long i = ulongval ();
12511 if (i != ((long) (sizeof (char))))
12513 fprintf (f, "%lu\n", i);
12515 exit (ferror (f) || fclose (f) != 0);
12521 rm -f conftest$ac_exeext
12522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12523 (eval $ac_link) 2>&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528 (eval $ac_try) 2>&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; }; then
12532 ac_cv_sizeof_char=`cat conftest.val`
12534 echo "$as_me: program exited with status $ac_status" >&5
12535 echo "$as_me: failed program was:" >&5
12536 sed 's/^/| /' conftest.$ac_ext >&5
12538 ( exit $ac_status )
12539 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12540 See \`config.log' for more details." >&5
12541 echo "$as_me: error: cannot compute sizeof (char), 77
12542 See \`config.log' for more details." >&2;}
12543 { (exit 1); exit 1; }; }
12545 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12550 ac_cv_sizeof_char=0
12553 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12554 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12555 cat >>confdefs.h <<_ACEOF
12556 #define SIZEOF_CHAR $ac_cv_sizeof_char
12560 echo "$as_me:$LINENO: checking for short int" >&5
12561 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12562 if test "${ac_cv_type_short_int+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12565 cat >conftest.$ac_ext <<_ACEOF
12566 #line $LINENO "configure"
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12572 $ac_includes_default
12576 if ((short int *) 0)
12578 if (sizeof (short int))
12584 rm -f conftest.$ac_objext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12586 (eval $ac_compile) 2>&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } &&
12590 { ac_try='test -s conftest.$ac_objext'
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_type_short_int=yes
12598 echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12601 ac_cv_type_short_int=no
12603 rm -f conftest.$ac_objext conftest.$ac_ext
12605 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12606 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12608 echo "$as_me:$LINENO: checking size of short int" >&5
12609 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12610 if test "${ac_cv_sizeof_short_int+set}" = set; then
12611 echo $ECHO_N "(cached) $ECHO_C" >&6
12613 if test "$ac_cv_type_short_int" = yes; then
12614 # The cast to unsigned long works around a bug in the HP C Compiler
12615 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12616 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12617 # This bug is HP SR number 8606223364.
12618 if test "$cross_compiling" = yes; then
12619 # Depending upon the size, compute the lo and hi bounds.
12620 cat >conftest.$ac_ext <<_ACEOF
12621 #line $LINENO "configure"
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12627 $ac_includes_default
12631 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12638 rm -f conftest.$ac_objext
12639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12640 (eval $ac_compile) 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } &&
12644 { ac_try='test -s conftest.$ac_objext'
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
12652 cat >conftest.$ac_ext <<_ACEOF
12653 #line $LINENO "configure"
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h. */
12659 $ac_includes_default
12663 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12670 rm -f conftest.$ac_objext
12671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12672 (eval $ac_compile) 2>&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } &&
12676 { ac_try='test -s conftest.$ac_objext'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; }; then
12682 ac_hi=$ac_mid; break
12684 echo "$as_me: failed program was:" >&5
12685 sed 's/^/| /' conftest.$ac_ext >&5
12687 ac_lo=`expr $ac_mid + 1`
12688 if test $ac_lo -le $ac_mid; then
12692 ac_mid=`expr 2 '*' $ac_mid + 1`
12694 rm -f conftest.$ac_objext conftest.$ac_ext
12697 echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12700 cat >conftest.$ac_ext <<_ACEOF
12701 #line $LINENO "configure"
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12707 $ac_includes_default
12711 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12718 rm -f conftest.$ac_objext
12719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12720 (eval $ac_compile) 2>&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } &&
12724 { ac_try='test -s conftest.$ac_objext'
12725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726 (eval $ac_try) 2>&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; }; then
12732 cat >conftest.$ac_ext <<_ACEOF
12733 #line $LINENO "configure"
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h. */
12739 $ac_includes_default
12743 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12750 rm -f conftest.$ac_objext
12751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12752 (eval $ac_compile) 2>&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } &&
12756 { ac_try='test -s conftest.$ac_objext'
12757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; }; then
12762 ac_lo=$ac_mid; break
12764 echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12767 ac_hi=`expr '(' $ac_mid ')' - 1`
12768 if test $ac_mid -le $ac_hi; then
12772 ac_mid=`expr 2 '*' $ac_mid`
12774 rm -f conftest.$ac_objext conftest.$ac_ext
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12782 rm -f conftest.$ac_objext conftest.$ac_ext
12784 rm -f conftest.$ac_objext conftest.$ac_ext
12785 # Binary search between lo and hi bounds.
12786 while test "x$ac_lo" != "x$ac_hi"; do
12787 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12788 cat >conftest.$ac_ext <<_ACEOF
12789 #line $LINENO "configure"
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h. */
12795 $ac_includes_default
12799 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12806 rm -f conftest.$ac_objext
12807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12808 (eval $ac_compile) 2>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
12812 { ac_try='test -s conftest.$ac_objext'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; }; then
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12823 ac_lo=`expr '(' $ac_mid ')' + 1`
12825 rm -f conftest.$ac_objext conftest.$ac_ext
12828 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12829 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12830 See \`config.log' for more details." >&5
12831 echo "$as_me: error: cannot compute sizeof (short int), 77
12832 See \`config.log' for more details." >&2;}
12833 { (exit 1); exit 1; }; } ;;
12836 if test "$cross_compiling" = yes; then
12837 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12838 See \`config.log' for more details." >&5
12839 echo "$as_me: error: cannot run test program while cross compiling
12840 See \`config.log' for more details." >&2;}
12841 { (exit 1); exit 1; }; }
12843 cat >conftest.$ac_ext <<_ACEOF
12844 #line $LINENO "configure"
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12850 $ac_includes_default
12851 long longval () { return (long) (sizeof (short int)); }
12852 unsigned long ulongval () { return (long) (sizeof (short int)); }
12854 #include <stdlib.h>
12859 FILE *f = fopen ("conftest.val", "w");
12862 if (((long) (sizeof (short int))) < 0)
12864 long i = longval ();
12865 if (i != ((long) (sizeof (short int))))
12867 fprintf (f, "%ld\n", i);
12871 unsigned long i = ulongval ();
12872 if (i != ((long) (sizeof (short int))))
12874 fprintf (f, "%lu\n", i);
12876 exit (ferror (f) || fclose (f) != 0);
12882 rm -f conftest$ac_exeext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12884 (eval $ac_link) 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
12893 ac_cv_sizeof_short_int=`cat conftest.val`
12895 echo "$as_me: program exited with status $ac_status" >&5
12896 echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12899 ( exit $ac_status )
12900 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12901 See \`config.log' for more details." >&5
12902 echo "$as_me: error: cannot compute sizeof (short int), 77
12903 See \`config.log' for more details." >&2;}
12904 { (exit 1); exit 1; }; }
12906 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12911 ac_cv_sizeof_short_int=0
12914 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12915 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12916 cat >>confdefs.h <<_ACEOF
12917 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12921 echo "$as_me:$LINENO: checking for int" >&5
12922 echo $ECHO_N "checking for int... $ECHO_C" >&6
12923 if test "${ac_cv_type_int+set}" = set; then
12924 echo $ECHO_N "(cached) $ECHO_C" >&6
12926 cat >conftest.$ac_ext <<_ACEOF
12927 #line $LINENO "configure"
12930 cat confdefs.h >>conftest.$ac_ext
12931 cat >>conftest.$ac_ext <<_ACEOF
12932 /* end confdefs.h. */
12933 $ac_includes_default
12945 rm -f conftest.$ac_objext
12946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12947 (eval $ac_compile) 2>&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); } &&
12951 { ac_try='test -s conftest.$ac_objext'
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
12959 echo "$as_me: failed program was:" >&5
12960 sed 's/^/| /' conftest.$ac_ext >&5
12964 rm -f conftest.$ac_objext conftest.$ac_ext
12966 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12967 echo "${ECHO_T}$ac_cv_type_int" >&6
12969 echo "$as_me:$LINENO: checking size of int" >&5
12970 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12971 if test "${ac_cv_sizeof_int+set}" = set; then
12972 echo $ECHO_N "(cached) $ECHO_C" >&6
12974 if test "$ac_cv_type_int" = yes; then
12975 # The cast to unsigned long works around a bug in the HP C Compiler
12976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12978 # This bug is HP SR number 8606223364.
12979 if test "$cross_compiling" = yes; then
12980 # Depending upon the size, compute the lo and hi bounds.
12981 cat >conftest.$ac_ext <<_ACEOF
12982 #line $LINENO "configure"
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h. */
12988 $ac_includes_default
12992 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12999 rm -f conftest.$ac_objext
13000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13001 (eval $ac_compile) 2>&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } &&
13005 { ac_try='test -s conftest.$ac_objext'
13006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007 (eval $ac_try) 2>&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; }; then
13013 cat >conftest.$ac_ext <<_ACEOF
13014 #line $LINENO "configure"
13017 cat confdefs.h >>conftest.$ac_ext
13018 cat >>conftest.$ac_ext <<_ACEOF
13019 /* end confdefs.h. */
13020 $ac_includes_default
13024 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13031 rm -f conftest.$ac_objext
13032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13033 (eval $ac_compile) 2>&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } &&
13037 { ac_try='test -s conftest.$ac_objext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 ac_hi=$ac_mid; break
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13048 ac_lo=`expr $ac_mid + 1`
13049 if test $ac_lo -le $ac_mid; then
13053 ac_mid=`expr 2 '*' $ac_mid + 1`
13055 rm -f conftest.$ac_objext conftest.$ac_ext
13058 echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13061 cat >conftest.$ac_ext <<_ACEOF
13062 #line $LINENO "configure"
13065 cat confdefs.h >>conftest.$ac_ext
13066 cat >>conftest.$ac_ext <<_ACEOF
13067 /* end confdefs.h. */
13068 $ac_includes_default
13072 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13079 rm -f conftest.$ac_objext
13080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13081 (eval $ac_compile) 2>&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } &&
13085 { ac_try='test -s conftest.$ac_objext'
13086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087 (eval $ac_try) 2>&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; }; then
13093 cat >conftest.$ac_ext <<_ACEOF
13094 #line $LINENO "configure"
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h. */
13100 $ac_includes_default
13104 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13111 rm -f conftest.$ac_objext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13113 (eval $ac_compile) 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } &&
13117 { ac_try='test -s conftest.$ac_objext'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13123 ac_lo=$ac_mid; break
13125 echo "$as_me: failed program was:" >&5
13126 sed 's/^/| /' conftest.$ac_ext >&5
13128 ac_hi=`expr '(' $ac_mid ')' - 1`
13129 if test $ac_mid -le $ac_hi; then
13133 ac_mid=`expr 2 '*' $ac_mid`
13135 rm -f conftest.$ac_objext conftest.$ac_ext
13138 echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13143 rm -f conftest.$ac_objext conftest.$ac_ext
13145 rm -f conftest.$ac_objext conftest.$ac_ext
13146 # Binary search between lo and hi bounds.
13147 while test "x$ac_lo" != "x$ac_hi"; do
13148 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13149 cat >conftest.$ac_ext <<_ACEOF
13150 #line $LINENO "configure"
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h. */
13156 $ac_includes_default
13160 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13167 rm -f conftest.$ac_objext
13168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13169 (eval $ac_compile) 2>&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } &&
13173 { ac_try='test -s conftest.$ac_objext'
13174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175 (eval $ac_try) 2>&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; }; then
13181 echo "$as_me: failed program was:" >&5
13182 sed 's/^/| /' conftest.$ac_ext >&5
13184 ac_lo=`expr '(' $ac_mid ')' + 1`
13186 rm -f conftest.$ac_objext conftest.$ac_ext
13189 ?*) ac_cv_sizeof_int=$ac_lo;;
13190 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13191 See \`config.log' for more details." >&5
13192 echo "$as_me: error: cannot compute sizeof (int), 77
13193 See \`config.log' for more details." >&2;}
13194 { (exit 1); exit 1; }; } ;;
13197 if test "$cross_compiling" = yes; then
13198 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13199 See \`config.log' for more details." >&5
13200 echo "$as_me: error: cannot run test program while cross compiling
13201 See \`config.log' for more details." >&2;}
13202 { (exit 1); exit 1; }; }
13204 cat >conftest.$ac_ext <<_ACEOF
13205 #line $LINENO "configure"
13208 cat confdefs.h >>conftest.$ac_ext
13209 cat >>conftest.$ac_ext <<_ACEOF
13210 /* end confdefs.h. */
13211 $ac_includes_default
13212 long longval () { return (long) (sizeof (int)); }
13213 unsigned long ulongval () { return (long) (sizeof (int)); }
13215 #include <stdlib.h>
13220 FILE *f = fopen ("conftest.val", "w");
13223 if (((long) (sizeof (int))) < 0)
13225 long i = longval ();
13226 if (i != ((long) (sizeof (int))))
13228 fprintf (f, "%ld\n", i);
13232 unsigned long i = ulongval ();
13233 if (i != ((long) (sizeof (int))))
13235 fprintf (f, "%lu\n", i);
13237 exit (ferror (f) || fclose (f) != 0);
13243 rm -f conftest$ac_exeext
13244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13245 (eval $ac_link) 2>&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13254 ac_cv_sizeof_int=`cat conftest.val`
13256 echo "$as_me: program exited with status $ac_status" >&5
13257 echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13260 ( exit $ac_status )
13261 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13262 See \`config.log' for more details." >&5
13263 echo "$as_me: error: cannot compute sizeof (int), 77
13264 See \`config.log' for more details." >&2;}
13265 { (exit 1); exit 1; }; }
13267 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13275 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13276 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13277 cat >>confdefs.h <<_ACEOF
13278 #define SIZEOF_INT $ac_cv_sizeof_int
13282 echo "$as_me:$LINENO: checking for long int" >&5
13283 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13284 if test "${ac_cv_type_long_int+set}" = set; then
13285 echo $ECHO_N "(cached) $ECHO_C" >&6
13287 cat >conftest.$ac_ext <<_ACEOF
13288 #line $LINENO "configure"
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h. */
13294 $ac_includes_default
13298 if ((long int *) 0)
13300 if (sizeof (long int))
13306 rm -f conftest.$ac_objext
13307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13308 (eval $ac_compile) 2>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } &&
13312 { ac_try='test -s conftest.$ac_objext'
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_type_long_int=yes
13320 echo "$as_me: failed program was:" >&5
13321 sed 's/^/| /' conftest.$ac_ext >&5
13323 ac_cv_type_long_int=no
13325 rm -f conftest.$ac_objext conftest.$ac_ext
13327 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13328 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13330 echo "$as_me:$LINENO: checking size of long int" >&5
13331 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13332 if test "${ac_cv_sizeof_long_int+set}" = set; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13335 if test "$ac_cv_type_long_int" = yes; then
13336 # The cast to unsigned long works around a bug in the HP C Compiler
13337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13339 # This bug is HP SR number 8606223364.
13340 if test "$cross_compiling" = yes; then
13341 # Depending upon the size, compute the lo and hi bounds.
13342 cat >conftest.$ac_ext <<_ACEOF
13343 #line $LINENO "configure"
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13349 $ac_includes_default
13353 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13360 rm -f conftest.$ac_objext
13361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13362 (eval $ac_compile) 2>&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); } &&
13366 { ac_try='test -s conftest.$ac_objext'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; }; then
13374 cat >conftest.$ac_ext <<_ACEOF
13375 #line $LINENO "configure"
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13381 $ac_includes_default
13385 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13392 rm -f conftest.$ac_objext
13393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13394 (eval $ac_compile) 2>&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } &&
13398 { ac_try='test -s conftest.$ac_objext'
13399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13400 (eval $ac_try) 2>&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); }; }; then
13404 ac_hi=$ac_mid; break
13406 echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13409 ac_lo=`expr $ac_mid + 1`
13410 if test $ac_lo -le $ac_mid; then
13414 ac_mid=`expr 2 '*' $ac_mid + 1`
13416 rm -f conftest.$ac_objext conftest.$ac_ext
13419 echo "$as_me: failed program was:" >&5
13420 sed 's/^/| /' conftest.$ac_ext >&5
13422 cat >conftest.$ac_ext <<_ACEOF
13423 #line $LINENO "configure"
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13429 $ac_includes_default
13433 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13440 rm -f conftest.$ac_objext
13441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13442 (eval $ac_compile) 2>&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); } &&
13446 { ac_try='test -s conftest.$ac_objext'
13447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }; then
13454 cat >conftest.$ac_ext <<_ACEOF
13455 #line $LINENO "configure"
13458 cat confdefs.h >>conftest.$ac_ext
13459 cat >>conftest.$ac_ext <<_ACEOF
13460 /* end confdefs.h. */
13461 $ac_includes_default
13465 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13472 rm -f conftest.$ac_objext
13473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13474 (eval $ac_compile) 2>&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } &&
13478 { ac_try='test -s conftest.$ac_objext'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; }; then
13484 ac_lo=$ac_mid; break
13486 echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.$ac_ext >&5
13489 ac_hi=`expr '(' $ac_mid ')' - 1`
13490 if test $ac_mid -le $ac_hi; then
13494 ac_mid=`expr 2 '*' $ac_mid`
13496 rm -f conftest.$ac_objext conftest.$ac_ext
13499 echo "$as_me: failed program was:" >&5
13500 sed 's/^/| /' conftest.$ac_ext >&5
13504 rm -f conftest.$ac_objext conftest.$ac_ext
13506 rm -f conftest.$ac_objext conftest.$ac_ext
13507 # Binary search between lo and hi bounds.
13508 while test "x$ac_lo" != "x$ac_hi"; do
13509 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13510 cat >conftest.$ac_ext <<_ACEOF
13511 #line $LINENO "configure"
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13517 $ac_includes_default
13521 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13528 rm -f conftest.$ac_objext
13529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13530 (eval $ac_compile) 2>&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } &&
13534 { ac_try='test -s conftest.$ac_objext'
13535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13536 (eval $ac_try) 2>&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; }; then
13542 echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13545 ac_lo=`expr '(' $ac_mid ')' + 1`
13547 rm -f conftest.$ac_objext conftest.$ac_ext
13550 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13551 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13552 See \`config.log' for more details." >&5
13553 echo "$as_me: error: cannot compute sizeof (long int), 77
13554 See \`config.log' for more details." >&2;}
13555 { (exit 1); exit 1; }; } ;;
13558 if test "$cross_compiling" = yes; then
13559 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13560 See \`config.log' for more details." >&5
13561 echo "$as_me: error: cannot run test program while cross compiling
13562 See \`config.log' for more details." >&2;}
13563 { (exit 1); exit 1; }; }
13565 cat >conftest.$ac_ext <<_ACEOF
13566 #line $LINENO "configure"
13569 cat confdefs.h >>conftest.$ac_ext
13570 cat >>conftest.$ac_ext <<_ACEOF
13571 /* end confdefs.h. */
13572 $ac_includes_default
13573 long longval () { return (long) (sizeof (long int)); }
13574 unsigned long ulongval () { return (long) (sizeof (long int)); }
13576 #include <stdlib.h>
13581 FILE *f = fopen ("conftest.val", "w");
13584 if (((long) (sizeof (long int))) < 0)
13586 long i = longval ();
13587 if (i != ((long) (sizeof (long int))))
13589 fprintf (f, "%ld\n", i);
13593 unsigned long i = ulongval ();
13594 if (i != ((long) (sizeof (long int))))
13596 fprintf (f, "%lu\n", i);
13598 exit (ferror (f) || fclose (f) != 0);
13604 rm -f conftest$ac_exeext
13605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13606 (eval $ac_link) 2>&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13611 (eval $ac_try) 2>&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }; }; then
13615 ac_cv_sizeof_long_int=`cat conftest.val`
13617 echo "$as_me: program exited with status $ac_status" >&5
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13621 ( exit $ac_status )
13622 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13623 See \`config.log' for more details." >&5
13624 echo "$as_me: error: cannot compute sizeof (long int), 77
13625 See \`config.log' for more details." >&2;}
13626 { (exit 1); exit 1; }; }
13628 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13633 ac_cv_sizeof_long_int=0
13636 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13637 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13638 cat >>confdefs.h <<_ACEOF
13639 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13643 echo "$as_me:$LINENO: checking for long long int" >&5
13644 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13645 if test "${ac_cv_type_long_long_int+set}" = set; then
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
13648 cat >conftest.$ac_ext <<_ACEOF
13649 #line $LINENO "configure"
13652 cat confdefs.h >>conftest.$ac_ext
13653 cat >>conftest.$ac_ext <<_ACEOF
13654 /* end confdefs.h. */
13655 $ac_includes_default
13659 if ((long long int *) 0)
13661 if (sizeof (long long int))
13667 rm -f conftest.$ac_objext
13668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13669 (eval $ac_compile) 2>&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); } &&
13673 { ac_try='test -s conftest.$ac_objext'
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_type_long_long_int=yes
13681 echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13684 ac_cv_type_long_long_int=no
13686 rm -f conftest.$ac_objext conftest.$ac_ext
13688 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13689 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13691 echo "$as_me:$LINENO: checking size of long long int" >&5
13692 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13693 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13696 if test "$ac_cv_type_long_long_int" = yes; then
13697 # The cast to unsigned long works around a bug in the HP C Compiler
13698 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13699 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13700 # This bug is HP SR number 8606223364.
13701 if test "$cross_compiling" = yes; then
13702 # Depending upon the size, compute the lo and hi bounds.
13703 cat >conftest.$ac_ext <<_ACEOF
13704 #line $LINENO "configure"
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13710 $ac_includes_default
13714 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13721 rm -f conftest.$ac_objext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13723 (eval $ac_compile) 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } &&
13727 { ac_try='test -s conftest.$ac_objext'
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; }; then
13735 cat >conftest.$ac_ext <<_ACEOF
13736 #line $LINENO "configure"
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h. */
13742 $ac_includes_default
13746 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13753 rm -f conftest.$ac_objext
13754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13755 (eval $ac_compile) 2>&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } &&
13759 { ac_try='test -s conftest.$ac_objext'
13760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761 (eval $ac_try) 2>&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; }; then
13765 ac_hi=$ac_mid; break
13767 echo "$as_me: failed program was:" >&5
13768 sed 's/^/| /' conftest.$ac_ext >&5
13770 ac_lo=`expr $ac_mid + 1`
13771 if test $ac_lo -le $ac_mid; then
13775 ac_mid=`expr 2 '*' $ac_mid + 1`
13777 rm -f conftest.$ac_objext conftest.$ac_ext
13780 echo "$as_me: failed program was:" >&5
13781 sed 's/^/| /' conftest.$ac_ext >&5
13783 cat >conftest.$ac_ext <<_ACEOF
13784 #line $LINENO "configure"
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13790 $ac_includes_default
13794 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13801 rm -f conftest.$ac_objext
13802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13803 (eval $ac_compile) 2>&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } &&
13807 { ac_try='test -s conftest.$ac_objext'
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; }; then
13815 cat >conftest.$ac_ext <<_ACEOF
13816 #line $LINENO "configure"
13819 cat confdefs.h >>conftest.$ac_ext
13820 cat >>conftest.$ac_ext <<_ACEOF
13821 /* end confdefs.h. */
13822 $ac_includes_default
13826 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13833 rm -f conftest.$ac_objext
13834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13835 (eval $ac_compile) 2>&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } &&
13839 { ac_try='test -s conftest.$ac_objext'
13840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841 (eval $ac_try) 2>&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; }; then
13845 ac_lo=$ac_mid; break
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13850 ac_hi=`expr '(' $ac_mid ')' - 1`
13851 if test $ac_mid -le $ac_hi; then
13855 ac_mid=`expr 2 '*' $ac_mid`
13857 rm -f conftest.$ac_objext conftest.$ac_ext
13860 echo "$as_me: failed program was:" >&5
13861 sed 's/^/| /' conftest.$ac_ext >&5
13865 rm -f conftest.$ac_objext conftest.$ac_ext
13867 rm -f conftest.$ac_objext conftest.$ac_ext
13868 # Binary search between lo and hi bounds.
13869 while test "x$ac_lo" != "x$ac_hi"; do
13870 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13871 cat >conftest.$ac_ext <<_ACEOF
13872 #line $LINENO "configure"
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h. */
13878 $ac_includes_default
13882 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13889 rm -f conftest.$ac_objext
13890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13891 (eval $ac_compile) 2>&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
13895 { ac_try='test -s conftest.$ac_objext'
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13906 ac_lo=`expr '(' $ac_mid ')' + 1`
13908 rm -f conftest.$ac_objext conftest.$ac_ext
13911 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13912 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13913 See \`config.log' for more details." >&5
13914 echo "$as_me: error: cannot compute sizeof (long long int), 77
13915 See \`config.log' for more details." >&2;}
13916 { (exit 1); exit 1; }; } ;;
13919 if test "$cross_compiling" = yes; then
13920 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13921 See \`config.log' for more details." >&5
13922 echo "$as_me: error: cannot run test program while cross compiling
13923 See \`config.log' for more details." >&2;}
13924 { (exit 1); exit 1; }; }
13926 cat >conftest.$ac_ext <<_ACEOF
13927 #line $LINENO "configure"
13930 cat confdefs.h >>conftest.$ac_ext
13931 cat >>conftest.$ac_ext <<_ACEOF
13932 /* end confdefs.h. */
13933 $ac_includes_default
13934 long longval () { return (long) (sizeof (long long int)); }
13935 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13937 #include <stdlib.h>
13942 FILE *f = fopen ("conftest.val", "w");
13945 if (((long) (sizeof (long long int))) < 0)
13947 long i = longval ();
13948 if (i != ((long) (sizeof (long long int))))
13950 fprintf (f, "%ld\n", i);
13954 unsigned long i = ulongval ();
13955 if (i != ((long) (sizeof (long long int))))
13957 fprintf (f, "%lu\n", i);
13959 exit (ferror (f) || fclose (f) != 0);
13965 rm -f conftest$ac_exeext
13966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13967 (eval $ac_link) 2>&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972 (eval $ac_try) 2>&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; }; then
13976 ac_cv_sizeof_long_long_int=`cat conftest.val`
13978 echo "$as_me: program exited with status $ac_status" >&5
13979 echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.$ac_ext >&5
13982 ( exit $ac_status )
13983 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13984 See \`config.log' for more details." >&5
13985 echo "$as_me: error: cannot compute sizeof (long long int), 77
13986 See \`config.log' for more details." >&2;}
13987 { (exit 1); exit 1; }; }
13989 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13994 ac_cv_sizeof_long_long_int=0
13997 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13998 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13999 cat >>confdefs.h <<_ACEOF
14000 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14004 echo "$as_me:$LINENO: checking for int *" >&5
14005 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14006 if test "${ac_cv_type_int_p+set}" = set; then
14007 echo $ECHO_N "(cached) $ECHO_C" >&6
14009 cat >conftest.$ac_ext <<_ACEOF
14010 #line $LINENO "configure"
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h. */
14016 $ac_includes_default
14022 if (sizeof (int *))
14028 rm -f conftest.$ac_objext
14029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14030 (eval $ac_compile) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } &&
14034 { ac_try='test -s conftest.$ac_objext'
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_type_int_p=yes
14042 echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14045 ac_cv_type_int_p=no
14047 rm -f conftest.$ac_objext conftest.$ac_ext
14049 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14050 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14052 echo "$as_me:$LINENO: checking size of int *" >&5
14053 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14054 if test "${ac_cv_sizeof_int_p+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14057 if test "$ac_cv_type_int_p" = yes; then
14058 # The cast to unsigned long works around a bug in the HP C Compiler
14059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14061 # This bug is HP SR number 8606223364.
14062 if test "$cross_compiling" = yes; then
14063 # Depending upon the size, compute the lo and hi bounds.
14064 cat >conftest.$ac_ext <<_ACEOF
14065 #line $LINENO "configure"
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h. */
14071 $ac_includes_default
14075 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14082 rm -f conftest.$ac_objext
14083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14084 (eval $ac_compile) 2>&5
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); } &&
14088 { ac_try='test -s conftest.$ac_objext'
14089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090 (eval $ac_try) 2>&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; }; then
14096 cat >conftest.$ac_ext <<_ACEOF
14097 #line $LINENO "configure"
14100 cat confdefs.h >>conftest.$ac_ext
14101 cat >>conftest.$ac_ext <<_ACEOF
14102 /* end confdefs.h. */
14103 $ac_includes_default
14107 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14114 rm -f conftest.$ac_objext
14115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14116 (eval $ac_compile) 2>&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } &&
14120 { ac_try='test -s conftest.$ac_objext'
14121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122 (eval $ac_try) 2>&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; }; then
14126 ac_hi=$ac_mid; break
14128 echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14131 ac_lo=`expr $ac_mid + 1`
14132 if test $ac_lo -le $ac_mid; then
14136 ac_mid=`expr 2 '*' $ac_mid + 1`
14138 rm -f conftest.$ac_objext conftest.$ac_ext
14141 echo "$as_me: failed program was:" >&5
14142 sed 's/^/| /' conftest.$ac_ext >&5
14144 cat >conftest.$ac_ext <<_ACEOF
14145 #line $LINENO "configure"
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14151 $ac_includes_default
14155 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14162 rm -f conftest.$ac_objext
14163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14164 (eval $ac_compile) 2>&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } &&
14168 { ac_try='test -s conftest.$ac_objext'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; }; then
14176 cat >conftest.$ac_ext <<_ACEOF
14177 #line $LINENO "configure"
14180 cat confdefs.h >>conftest.$ac_ext
14181 cat >>conftest.$ac_ext <<_ACEOF
14182 /* end confdefs.h. */
14183 $ac_includes_default
14187 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14194 rm -f conftest.$ac_objext
14195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14196 (eval $ac_compile) 2>&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } &&
14200 { ac_try='test -s conftest.$ac_objext'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; }; then
14206 ac_lo=$ac_mid; break
14208 echo "$as_me: failed program was:" >&5
14209 sed 's/^/| /' conftest.$ac_ext >&5
14211 ac_hi=`expr '(' $ac_mid ')' - 1`
14212 if test $ac_mid -le $ac_hi; then
14216 ac_mid=`expr 2 '*' $ac_mid`
14218 rm -f conftest.$ac_objext conftest.$ac_ext
14221 echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14226 rm -f conftest.$ac_objext conftest.$ac_ext
14228 rm -f conftest.$ac_objext conftest.$ac_ext
14229 # Binary search between lo and hi bounds.
14230 while test "x$ac_lo" != "x$ac_hi"; do
14231 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14232 cat >conftest.$ac_ext <<_ACEOF
14233 #line $LINENO "configure"
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 $ac_includes_default
14243 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14250 rm -f conftest.$ac_objext
14251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14252 (eval $ac_compile) 2>&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); } &&
14256 { ac_try='test -s conftest.$ac_objext'
14257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14258 (eval $ac_try) 2>&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); }; }; then
14264 echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14267 ac_lo=`expr '(' $ac_mid ')' + 1`
14269 rm -f conftest.$ac_objext conftest.$ac_ext
14272 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14273 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14274 See \`config.log' for more details." >&5
14275 echo "$as_me: error: cannot compute sizeof (int *), 77
14276 See \`config.log' for more details." >&2;}
14277 { (exit 1); exit 1; }; } ;;
14280 if test "$cross_compiling" = yes; then
14281 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14282 See \`config.log' for more details." >&5
14283 echo "$as_me: error: cannot run test program while cross compiling
14284 See \`config.log' for more details." >&2;}
14285 { (exit 1); exit 1; }; }
14287 cat >conftest.$ac_ext <<_ACEOF
14288 #line $LINENO "configure"
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14294 $ac_includes_default
14295 long longval () { return (long) (sizeof (int *)); }
14296 unsigned long ulongval () { return (long) (sizeof (int *)); }
14298 #include <stdlib.h>
14303 FILE *f = fopen ("conftest.val", "w");
14306 if (((long) (sizeof (int *))) < 0)
14308 long i = longval ();
14309 if (i != ((long) (sizeof (int *))))
14311 fprintf (f, "%ld\n", i);
14315 unsigned long i = ulongval ();
14316 if (i != ((long) (sizeof (int *))))
14318 fprintf (f, "%lu\n", i);
14320 exit (ferror (f) || fclose (f) != 0);
14326 rm -f conftest$ac_exeext
14327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14328 (eval $ac_link) 2>&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }; then
14337 ac_cv_sizeof_int_p=`cat conftest.val`
14339 echo "$as_me: program exited with status $ac_status" >&5
14340 echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14343 ( exit $ac_status )
14344 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14345 See \`config.log' for more details." >&5
14346 echo "$as_me: error: cannot compute sizeof (int *), 77
14347 See \`config.log' for more details." >&2;}
14348 { (exit 1); exit 1; }; }
14350 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14355 ac_cv_sizeof_int_p=0
14358 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14359 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14360 cat >>confdefs.h <<_ACEOF
14361 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14366 # Check for sys/types.h types
14367 echo "$as_me:$LINENO: checking for u_int type" >&5
14368 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14369 if test "${ac_cv_have_u_int+set}" = set; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14373 cat >conftest.$ac_ext <<_ACEOF
14374 #line $LINENO "configure"
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14380 #include <sys/types.h>
14389 rm -f conftest.$ac_objext
14390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14391 (eval $ac_compile) 2>&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); } &&
14395 { ac_try='test -s conftest.$ac_objext'
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_have_u_int="yes"
14403 echo "$as_me: failed program was:" >&5
14404 sed 's/^/| /' conftest.$ac_ext >&5
14406 ac_cv_have_u_int="no"
14409 rm -f conftest.$ac_objext conftest.$ac_ext
14412 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14413 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14414 if test "x$ac_cv_have_u_int" = "xyes" ; then
14415 cat >>confdefs.h <<\_ACEOF
14416 #define HAVE_U_INT 1
14422 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14423 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14424 if test "${ac_cv_have_intmax_t+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14428 cat >conftest.$ac_ext <<_ACEOF
14429 #line $LINENO "configure"
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14435 #include <sys/types.h>
14444 rm -f conftest.$ac_objext
14445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14446 (eval $ac_compile) 2>&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); } &&
14450 { ac_try='test -s conftest.$ac_objext'
14451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; }; then
14456 ac_cv_have_intmax_t="yes"
14458 echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14462 cat >conftest.$ac_ext <<_ACEOF
14463 #line $LINENO "configure"
14466 cat confdefs.h >>conftest.$ac_ext
14467 cat >>conftest.$ac_ext <<_ACEOF
14468 /* end confdefs.h. */
14469 #include <stdint.h>
14478 rm -f conftest.$ac_objext
14479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14480 (eval $ac_compile) 2>&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } &&
14484 { ac_try='test -s conftest.$ac_objext'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; }; then
14490 ac_cv_have_intmax_t="yes"
14492 echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14495 ac_cv_have_intmax_t="no"
14498 rm -f conftest.$ac_objext conftest.$ac_ext
14502 rm -f conftest.$ac_objext conftest.$ac_ext
14506 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14507 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14508 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14509 cat >>confdefs.h <<\_ACEOF
14510 #define HAVE_INTMAX_T 1
14517 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14518 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14519 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14520 echo $ECHO_N "(cached) $ECHO_C" >&6
14523 cat >conftest.$ac_ext <<_ACEOF
14524 #line $LINENO "configure"
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14530 #include <sys/types.h>
14534 u_intmax_t a; a = 1;
14539 rm -f conftest.$ac_objext
14540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14541 (eval $ac_compile) 2>&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); } &&
14545 { ac_try='test -s conftest.$ac_objext'
14546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547 (eval $ac_try) 2>&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; }; then
14551 ac_cv_have_u_intmax_t="yes"
14553 echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14557 cat >conftest.$ac_ext <<_ACEOF
14558 #line $LINENO "configure"
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h. */
14564 #include <stdint.h>
14568 u_intmax_t a; a = 1;
14573 rm -f conftest.$ac_objext
14574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14575 (eval $ac_compile) 2>&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); } &&
14579 { ac_try='test -s conftest.$ac_objext'
14580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14581 (eval $ac_try) 2>&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); }; }; then
14585 ac_cv_have_u_intmax_t="yes"
14587 echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14590 ac_cv_have_u_intmax_t="no"
14593 rm -f conftest.$ac_objext conftest.$ac_ext
14597 rm -f conftest.$ac_objext conftest.$ac_ext
14600 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14601 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14602 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14603 cat >>confdefs.h <<\_ACEOF
14604 #define HAVE_U_INTMAX_T 1
14611 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14612 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14613 if test "${ac_cv_have_intxx_t+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14617 cat >conftest.$ac_ext <<_ACEOF
14618 #line $LINENO "configure"
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14624 #include <sys/types.h>
14628 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14633 rm -f conftest.$ac_objext
14634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14635 (eval $ac_compile) 2>&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } &&
14639 { ac_try='test -s conftest.$ac_objext'
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; }; then
14645 ac_cv_have_intxx_t="yes"
14647 echo "$as_me: failed program was:" >&5
14648 sed 's/^/| /' conftest.$ac_ext >&5
14650 ac_cv_have_intxx_t="no"
14653 rm -f conftest.$ac_objext conftest.$ac_ext
14656 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14657 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14658 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14659 cat >>confdefs.h <<\_ACEOF
14660 #define HAVE_INTXX_T 1
14666 echo "$as_me:$LINENO: checking for int64_t type" >&5
14667 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14668 if test "${ac_cv_have_int64_t+set}" = set; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 cat >conftest.$ac_ext <<_ACEOF
14673 #line $LINENO "configure"
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h. */
14679 #include <sys/types.h>
14688 rm -f conftest.$ac_objext
14689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14690 (eval $ac_compile) 2>&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); } &&
14694 { ac_try='test -s conftest.$ac_objext'
14695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696 (eval $ac_try) 2>&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; }; then
14700 ac_cv_have_int64_t="yes"
14702 echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.$ac_ext >&5
14705 ac_cv_have_int64_t="no"
14708 rm -f conftest.$ac_objext conftest.$ac_ext
14711 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14712 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14713 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14714 cat >>confdefs.h <<\_ACEOF
14715 #define HAVE_INT64_T 1
14721 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14722 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14723 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14727 cat >conftest.$ac_ext <<_ACEOF
14728 #line $LINENO "configure"
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h. */
14734 #include <sys/types.h>
14738 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14743 rm -f conftest.$ac_objext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14745 (eval $ac_compile) 2>&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } &&
14749 { ac_try='test -s conftest.$ac_objext'
14750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751 (eval $ac_try) 2>&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; }; then
14755 ac_cv_have_u_intxx_t="yes"
14757 echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14760 ac_cv_have_u_intxx_t="no"
14763 rm -f conftest.$ac_objext conftest.$ac_ext
14766 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14767 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14768 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14769 cat >>confdefs.h <<\_ACEOF
14770 #define HAVE_U_INTXX_T 1
14776 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14777 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14778 if test "${ac_cv_have_u_int64_t+set}" = set; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14782 cat >conftest.$ac_ext <<_ACEOF
14783 #line $LINENO "configure"
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14789 #include <sys/types.h>
14793 u_int64_t a; a = 1;
14798 rm -f conftest.$ac_objext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14800 (eval $ac_compile) 2>&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try='test -s conftest.$ac_objext'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14810 ac_cv_have_u_int64_t="yes"
14812 echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14815 ac_cv_have_u_int64_t="no"
14818 rm -f conftest.$ac_objext conftest.$ac_ext
14821 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14822 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14823 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14824 cat >>confdefs.h <<\_ACEOF
14825 #define HAVE_U_INT64_T 1
14831 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14832 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14834 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14835 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14836 cat >conftest.$ac_ext <<_ACEOF
14837 #line $LINENO "configure"
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h. */
14843 #include <sys/bitypes.h>
14847 int8_t a; int16_t b; int32_t c;
14848 u_int8_t e; u_int16_t f; u_int32_t g;
14849 a = b = c = e = f = g = 1;
14854 rm -f conftest.$ac_objext
14855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14856 (eval $ac_compile) 2>&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } &&
14860 { ac_try='test -s conftest.$ac_objext'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; }; then
14866 cat >>confdefs.h <<\_ACEOF
14867 #define HAVE_U_INTXX_T 1
14870 cat >>confdefs.h <<\_ACEOF
14871 #define HAVE_INTXX_T 1
14874 cat >>confdefs.h <<\_ACEOF
14875 #define HAVE_SYS_BITYPES_H 1
14878 echo "$as_me:$LINENO: result: yes" >&5
14879 echo "${ECHO_T}yes" >&6
14881 echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14884 echo "$as_me:$LINENO: result: no" >&5
14885 echo "${ECHO_T}no" >&6
14888 rm -f conftest.$ac_objext conftest.$ac_ext
14891 if test -z "$have_u_intxx_t" ; then
14892 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14893 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14894 if test "${ac_cv_have_uintxx_t+set}" = set; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
14898 cat >conftest.$ac_ext <<_ACEOF
14899 #line $LINENO "configure"
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h. */
14905 #include <sys/types.h>
14909 uint8_t a; uint16_t b;
14910 uint32_t c; a = b = c = 1;
14915 rm -f conftest.$ac_objext
14916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14917 (eval $ac_compile) 2>&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } &&
14921 { ac_try='test -s conftest.$ac_objext'
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; }; then
14927 ac_cv_have_uintxx_t="yes"
14929 echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14932 ac_cv_have_uintxx_t="no"
14935 rm -f conftest.$ac_objext conftest.$ac_ext
14938 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14939 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14940 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14941 cat >>confdefs.h <<\_ACEOF
14942 #define HAVE_UINTXX_T 1
14978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14979 echo "$as_me:$LINENO: checking for $ac_func" >&5
14980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14981 if eval "test \"\${$as_ac_var+set}\" = set"; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14984 cat >conftest.$ac_ext <<_ACEOF
14985 #line $LINENO "configure"
14988 cat confdefs.h >>conftest.$ac_ext
14989 cat >>conftest.$ac_ext <<_ACEOF
14990 /* end confdefs.h. */
14991 /* System header to define __stub macros and hopefully few prototypes,
14992 which can conflict with char $ac_func (); below.
14993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14994 <limits.h> exists even on freestanding compilers. */
14996 # include <limits.h>
14998 # include <assert.h>
15000 /* Override any gcc2 internal prototype to avoid an error. */
15005 /* We use char because int might match the return type of a gcc2
15006 builtin and then its argument prototype would still apply. */
15008 /* The GNU C library defines this for functions which it implements
15009 to always fail with ENOSYS. Some functions are actually named
15010 something starting with __ and the normal name is an alias. */
15011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15014 char (*f) () = $ac_func;
15023 return f != $ac_func;
15028 rm -f conftest.$ac_objext conftest$ac_exeext
15029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15030 (eval $ac_link) 2>&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } &&
15034 { ac_try='test -s conftest$ac_exeext'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15040 eval "$as_ac_var=yes"
15042 echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.$ac_ext >&5
15045 eval "$as_ac_var=no"
15047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15051 if test `eval echo '${'$as_ac_var'}'` = yes; then
15052 cat >>confdefs.h <<_ACEOF
15053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15057 echo 'configure: cannot find needed function.'; exit 1
15064 for ac_func in fchdir
15066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15067 echo "$as_me:$LINENO: checking for $ac_func" >&5
15068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15069 if eval "test \"\${$as_ac_var+set}\" = set"; then
15070 echo $ECHO_N "(cached) $ECHO_C" >&6
15072 cat >conftest.$ac_ext <<_ACEOF
15073 #line $LINENO "configure"
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15079 /* System header to define __stub macros and hopefully few prototypes,
15080 which can conflict with char $ac_func (); below.
15081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15082 <limits.h> exists even on freestanding compilers. */
15084 # include <limits.h>
15086 # include <assert.h>
15088 /* Override any gcc2 internal prototype to avoid an error. */
15093 /* We use char because int might match the return type of a gcc2
15094 builtin and then its argument prototype would still apply. */
15096 /* The GNU C library defines this for functions which it implements
15097 to always fail with ENOSYS. Some functions are actually named
15098 something starting with __ and the normal name is an alias. */
15099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15102 char (*f) () = $ac_func;
15111 return f != $ac_func;
15116 rm -f conftest.$ac_objext conftest$ac_exeext
15117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15118 (eval $ac_link) 2>&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } &&
15122 { ac_try='test -s conftest$ac_exeext'
15123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124 (eval $ac_try) 2>&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; }; then
15128 eval "$as_ac_var=yes"
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15133 eval "$as_ac_var=no"
15135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15139 if test `eval echo '${'$as_ac_var'}'` = yes; then
15140 cat >>confdefs.h <<_ACEOF
15141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15143 cat >>confdefs.h <<\_ACEOF
15144 #define HAVE_FCHDIR 1
15151 for ac_func in strtoll
15153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15154 echo "$as_me:$LINENO: checking for $ac_func" >&5
15155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15156 if eval "test \"\${$as_ac_var+set}\" = set"; then
15157 echo $ECHO_N "(cached) $ECHO_C" >&6
15159 cat >conftest.$ac_ext <<_ACEOF
15160 #line $LINENO "configure"
15163 cat confdefs.h >>conftest.$ac_ext
15164 cat >>conftest.$ac_ext <<_ACEOF
15165 /* end confdefs.h. */
15166 /* System header to define __stub macros and hopefully few prototypes,
15167 which can conflict with char $ac_func (); below.
15168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15169 <limits.h> exists even on freestanding compilers. */
15171 # include <limits.h>
15173 # include <assert.h>
15175 /* Override any gcc2 internal prototype to avoid an error. */
15180 /* We use char because int might match the return type of a gcc2
15181 builtin and then its argument prototype would still apply. */
15183 /* The GNU C library defines this for functions which it implements
15184 to always fail with ENOSYS. Some functions are actually named
15185 something starting with __ and the normal name is an alias. */
15186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15189 char (*f) () = $ac_func;
15198 return f != $ac_func;
15203 rm -f conftest.$ac_objext conftest$ac_exeext
15204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15205 (eval $ac_link) 2>&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); } &&
15209 { ac_try='test -s conftest$ac_exeext'
15210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211 (eval $ac_try) 2>&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then
15215 eval "$as_ac_var=yes"
15217 echo "$as_me: failed program was:" >&5
15218 sed 's/^/| /' conftest.$ac_ext >&5
15220 eval "$as_ac_var=no"
15222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15226 if test `eval echo '${'$as_ac_var'}'` = yes; then
15227 cat >>confdefs.h <<_ACEOF
15228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15230 cat >>confdefs.h <<\_ACEOF
15231 #define HAVE_STRTOLL 1
15239 for ac_func in chflags
15241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15242 echo "$as_me:$LINENO: checking for $ac_func" >&5
15243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15244 if eval "test \"\${$as_ac_var+set}\" = set"; then
15245 echo $ECHO_N "(cached) $ECHO_C" >&6
15247 cat >conftest.$ac_ext <<_ACEOF
15248 #line $LINENO "configure"
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 /* System header to define __stub macros and hopefully few prototypes,
15255 which can conflict with char $ac_func (); below.
15256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15257 <limits.h> exists even on freestanding compilers. */
15259 # include <limits.h>
15261 # include <assert.h>
15263 /* Override any gcc2 internal prototype to avoid an error. */
15268 /* We use char because int might match the return type of a gcc2
15269 builtin and then its argument prototype would still apply. */
15271 /* The GNU C library defines this for functions which it implements
15272 to always fail with ENOSYS. Some functions are actually named
15273 something starting with __ and the normal name is an alias. */
15274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15277 char (*f) () = $ac_func;
15286 return f != $ac_func;
15291 rm -f conftest.$ac_objext conftest$ac_exeext
15292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15293 (eval $ac_link) 2>&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); } &&
15297 { ac_try='test -s conftest$ac_exeext'
15298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15299 (eval $ac_try) 2>&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; }; then
15303 eval "$as_ac_var=yes"
15305 echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15308 eval "$as_ac_var=no"
15310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15314 if test `eval echo '${'$as_ac_var'}'` = yes; then
15315 cat >>confdefs.h <<_ACEOF
15316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15327 for ac_func in snprintf vsnprintf gethostid getdomainname
15329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15330 echo "$as_me:$LINENO: checking for $ac_func" >&5
15331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15332 if eval "test \"\${$as_ac_var+set}\" = set"; then
15333 echo $ECHO_N "(cached) $ECHO_C" >&6
15335 cat >conftest.$ac_ext <<_ACEOF
15336 #line $LINENO "configure"
15339 cat confdefs.h >>conftest.$ac_ext
15340 cat >>conftest.$ac_ext <<_ACEOF
15341 /* end confdefs.h. */
15342 /* System header to define __stub macros and hopefully few prototypes,
15343 which can conflict with char $ac_func (); below.
15344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15345 <limits.h> exists even on freestanding compilers. */
15347 # include <limits.h>
15349 # include <assert.h>
15351 /* Override any gcc2 internal prototype to avoid an error. */
15356 /* We use char because int might match the return type of a gcc2
15357 builtin and then its argument prototype would still apply. */
15359 /* The GNU C library defines this for functions which it implements
15360 to always fail with ENOSYS. Some functions are actually named
15361 something starting with __ and the normal name is an alias. */
15362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15365 char (*f) () = $ac_func;
15374 return f != $ac_func;
15379 rm -f conftest.$ac_objext conftest$ac_exeext
15380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15381 (eval $ac_link) 2>&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } &&
15385 { ac_try='test -s conftest$ac_exeext'
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; }; then
15391 eval "$as_ac_var=yes"
15393 echo "$as_me: failed program was:" >&5
15394 sed 's/^/| /' conftest.$ac_ext >&5
15396 eval "$as_ac_var=no"
15398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15402 if test `eval echo '${'$as_ac_var'}'` = yes; then
15403 cat >>confdefs.h <<_ACEOF
15404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15415 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15418 echo "$as_me:$LINENO: checking for $ac_func" >&5
15419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15420 if eval "test \"\${$as_ac_var+set}\" = set"; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15423 cat >conftest.$ac_ext <<_ACEOF
15424 #line $LINENO "configure"
15427 cat confdefs.h >>conftest.$ac_ext
15428 cat >>conftest.$ac_ext <<_ACEOF
15429 /* end confdefs.h. */
15430 /* System header to define __stub macros and hopefully few prototypes,
15431 which can conflict with char $ac_func (); below.
15432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15433 <limits.h> exists even on freestanding compilers. */
15435 # include <limits.h>
15437 # include <assert.h>
15439 /* Override any gcc2 internal prototype to avoid an error. */
15444 /* We use char because int might match the return type of a gcc2
15445 builtin and then its argument prototype would still apply. */
15447 /* The GNU C library defines this for functions which it implements
15448 to always fail with ENOSYS. Some functions are actually named
15449 something starting with __ and the normal name is an alias. */
15450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15453 char (*f) () = $ac_func;
15462 return f != $ac_func;
15467 rm -f conftest.$ac_objext conftest$ac_exeext
15468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15469 (eval $ac_link) 2>&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } &&
15473 { ac_try='test -s conftest$ac_exeext'
15474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475 (eval $ac_try) 2>&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; }; then
15479 eval "$as_ac_var=yes"
15481 echo "$as_me: failed program was:" >&5
15482 sed 's/^/| /' conftest.$ac_ext >&5
15484 eval "$as_ac_var=no"
15486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15489 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15490 if test `eval echo '${'$as_ac_var'}'` = yes; then
15491 cat >>confdefs.h <<_ACEOF
15492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15499 # If resolver functions are not in libc check for -lnsl or -lresolv.
15500 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15501 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15502 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15503 echo $ECHO_N "(cached) $ECHO_C" >&6
15505 cat >conftest.$ac_ext <<_ACEOF
15506 #line $LINENO "configure"
15509 cat confdefs.h >>conftest.$ac_ext
15510 cat >>conftest.$ac_ext <<_ACEOF
15511 /* end confdefs.h. */
15512 /* System header to define __stub macros and hopefully few prototypes,
15513 which can conflict with char gethostbyname_r (); below.
15514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15515 <limits.h> exists even on freestanding compilers. */
15517 # include <limits.h>
15519 # include <assert.h>
15521 /* Override any gcc2 internal prototype to avoid an error. */
15526 /* We use char because int might match the return type of a gcc2
15527 builtin and then its argument prototype would still apply. */
15528 char gethostbyname_r ();
15529 /* The GNU C library defines this for functions which it implements
15530 to always fail with ENOSYS. Some functions are actually named
15531 something starting with __ and the normal name is an alias. */
15532 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15535 char (*f) () = gethostbyname_r;
15544 return f != gethostbyname_r;
15549 rm -f conftest.$ac_objext conftest$ac_exeext
15550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15551 (eval $ac_link) 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); } &&
15555 { ac_try='test -s conftest$ac_exeext'
15556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557 (eval $ac_try) 2>&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; }; then
15561 ac_cv_func_gethostbyname_r=yes
15563 echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15566 ac_cv_func_gethostbyname_r=no
15568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15570 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15571 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15572 if test $ac_cv_func_gethostbyname_r = yes; then
15573 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15574 echo "${ECHO_T}using libc's resolver" >&6
15577 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15578 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15579 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15580 echo $ECHO_N "(cached) $ECHO_C" >&6
15582 ac_check_lib_save_LIBS=$LIBS
15584 cat >conftest.$ac_ext <<_ACEOF
15585 #line $LINENO "configure"
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h. */
15592 /* Override any gcc2 internal prototype to avoid an error. */
15596 /* We use char because int might match the return type of a gcc2
15597 builtin and then its argument prototype would still apply. */
15598 char gethostbyname_r ();
15602 gethostbyname_r ();
15607 rm -f conftest.$ac_objext conftest$ac_exeext
15608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15609 (eval $ac_link) 2>&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); } &&
15613 { ac_try='test -s conftest$ac_exeext'
15614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15615 (eval $ac_try) 2>&5
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); }; }; then
15619 ac_cv_lib_nsl_gethostbyname_r=yes
15621 echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15624 ac_cv_lib_nsl_gethostbyname_r=no
15626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15627 LIBS=$ac_check_lib_save_LIBS
15629 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15630 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15631 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15632 cat >>confdefs.h <<_ACEOF
15633 #define HAVE_LIBNSL 1
15641 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15642 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15643 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15646 ac_check_lib_save_LIBS=$LIBS
15647 LIBS="-lresolv $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_resolv_gethostbyname_r=yes
15685 echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15688 ac_cv_lib_resolv_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_resolv_gethostbyname_r" >&5
15694 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15695 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15696 cat >>confdefs.h <<_ACEOF
15697 #define HAVE_LIBRESOLV 1
15700 LIBS="-lresolv $LIBS"
15708 # Find where sockets are (especially for Solaris)
15709 echo "$as_me:$LINENO: checking for socket" >&5
15710 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15711 if test "${ac_cv_func_socket+set}" = set; then
15712 echo $ECHO_N "(cached) $ECHO_C" >&6
15714 cat >conftest.$ac_ext <<_ACEOF
15715 #line $LINENO "configure"
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15721 /* System header to define __stub macros and hopefully few prototypes,
15722 which can conflict with char socket (); below.
15723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15724 <limits.h> exists even on freestanding compilers. */
15726 # include <limits.h>
15728 # include <assert.h>
15730 /* Override any gcc2 internal prototype to avoid an error. */
15735 /* We use char because int might match the return type of a gcc2
15736 builtin and then its argument prototype would still apply. */
15738 /* The GNU C library defines this for functions which it implements
15739 to always fail with ENOSYS. Some functions are actually named
15740 something starting with __ and the normal name is an alias. */
15741 #if defined (__stub_socket) || defined (__stub___socket)
15744 char (*f) () = socket;
15753 return f != socket;
15758 rm -f conftest.$ac_objext conftest$ac_exeext
15759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15760 (eval $ac_link) 2>&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } &&
15764 { ac_try='test -s conftest$ac_exeext'
15765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766 (eval $ac_try) 2>&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); }; }; then
15770 ac_cv_func_socket=yes
15772 echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.$ac_ext >&5
15775 ac_cv_func_socket=no
15777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15779 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15780 echo "${ECHO_T}$ac_cv_func_socket" >&6
15781 if test $ac_cv_func_socket = yes; then
15782 echo "$as_me:$LINENO: result: using libc's socket" >&5
15783 echo "${ECHO_T}using libc's socket" >&6
15786 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15787 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15788 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15791 ac_check_lib_save_LIBS=$LIBS
15792 LIBS="-lxnet $LIBS"
15793 cat >conftest.$ac_ext <<_ACEOF
15794 #line $LINENO "configure"
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15801 /* Override any gcc2 internal prototype to avoid an error. */
15805 /* We use char because int might match the return type of a gcc2
15806 builtin and then its argument prototype would still apply. */
15816 rm -f conftest.$ac_objext conftest$ac_exeext
15817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15818 (eval $ac_link) 2>&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } &&
15822 { ac_try='test -s conftest$ac_exeext'
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; }; then
15828 ac_cv_lib_xnet_socket=yes
15830 echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15833 ac_cv_lib_xnet_socket=no
15835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15836 LIBS=$ac_check_lib_save_LIBS
15838 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15839 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15840 if test $ac_cv_lib_xnet_socket = yes; then
15841 cat >>confdefs.h <<_ACEOF
15842 #define HAVE_LIBXNET 1
15845 LIBS="-lxnet $LIBS"
15850 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15851 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15852 if test "${ac_cv_lib_socket_socket+set}" = set; then
15853 echo $ECHO_N "(cached) $ECHO_C" >&6
15855 ac_check_lib_save_LIBS=$LIBS
15856 LIBS="-lsocket $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_socket_socket=yes
15894 echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15897 ac_cv_lib_socket_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_socket_socket" >&5
15903 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15904 if test $ac_cv_lib_socket_socket = yes; then
15905 cat >>confdefs.h <<_ACEOF
15906 #define HAVE_LIBSOCKET 1
15909 LIBS="-lsocket $LIBS"
15914 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15915 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15916 if test "${ac_cv_lib_inet_socket+set}" = set; then
15917 echo $ECHO_N "(cached) $ECHO_C" >&6
15919 ac_check_lib_save_LIBS=$LIBS
15920 LIBS="-linet $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_inet_socket=yes
15958 echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15961 ac_cv_lib_inet_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_inet_socket" >&5
15967 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15968 if test $ac_cv_lib_inet_socket = yes; then
15969 cat >>confdefs.h <<_ACEOF
15970 #define HAVE_LIBINET 1
15973 LIBS="-linet $LIBS"
15981 for ac_func in inet_pton
15983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15984 echo "$as_me:$LINENO: checking for $ac_func" >&5
15985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15986 if eval "test \"\${$as_ac_var+set}\" = set"; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15989 cat >conftest.$ac_ext <<_ACEOF
15990 #line $LINENO "configure"
15993 cat confdefs.h >>conftest.$ac_ext
15994 cat >>conftest.$ac_ext <<_ACEOF
15995 /* end confdefs.h. */
15996 /* System header to define __stub macros and hopefully few prototypes,
15997 which can conflict with char $ac_func (); below.
15998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15999 <limits.h> exists even on freestanding compilers. */
16001 # include <limits.h>
16003 # include <assert.h>
16005 /* Override any gcc2 internal prototype to avoid an error. */
16010 /* We use char because int might match the return type of a gcc2
16011 builtin and then its argument prototype would still apply. */
16013 /* The GNU C library defines this for functions which it implements
16014 to always fail with ENOSYS. Some functions are actually named
16015 something starting with __ and the normal name is an alias. */
16016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16019 char (*f) () = $ac_func;
16028 return f != $ac_func;
16033 rm -f conftest.$ac_objext conftest$ac_exeext
16034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16035 (eval $ac_link) 2>&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); } &&
16039 { ac_try='test -s conftest$ac_exeext'
16040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041 (eval $ac_try) 2>&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); }; }; then
16045 eval "$as_ac_var=yes"
16047 echo "$as_me: failed program was:" >&5
16048 sed 's/^/| /' conftest.$ac_ext >&5
16050 eval "$as_ac_var=no"
16052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16056 if test `eval echo '${'$as_ac_var'}'` = yes; then
16057 cat >>confdefs.h <<_ACEOF
16058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16060 cat >>confdefs.h <<\_ACEOF
16061 #define HAVE_INET_PTON 1
16069 for ac_func in strftime
16071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16072 echo "$as_me:$LINENO: checking for $ac_func" >&5
16073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16074 if eval "test \"\${$as_ac_var+set}\" = set"; then
16075 echo $ECHO_N "(cached) $ECHO_C" >&6
16077 cat >conftest.$ac_ext <<_ACEOF
16078 #line $LINENO "configure"
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h. */
16084 /* System header to define __stub macros and hopefully few prototypes,
16085 which can conflict with char $ac_func (); below.
16086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16087 <limits.h> exists even on freestanding compilers. */
16089 # include <limits.h>
16091 # include <assert.h>
16093 /* Override any gcc2 internal prototype to avoid an error. */
16098 /* We use char because int might match the return type of a gcc2
16099 builtin and then its argument prototype would still apply. */
16101 /* The GNU C library defines this for functions which it implements
16102 to always fail with ENOSYS. Some functions are actually named
16103 something starting with __ and the normal name is an alias. */
16104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16107 char (*f) () = $ac_func;
16116 return f != $ac_func;
16121 rm -f conftest.$ac_objext conftest$ac_exeext
16122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16123 (eval $ac_link) 2>&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } &&
16127 { ac_try='test -s conftest$ac_exeext'
16128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16129 (eval $ac_try) 2>&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); }; }; then
16133 eval "$as_ac_var=yes"
16135 echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16138 eval "$as_ac_var=no"
16140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16143 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16144 if test `eval echo '${'$as_ac_var'}'` = yes; then
16145 cat >>confdefs.h <<_ACEOF
16146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16150 # strftime is in -lintl on SCO UNIX.
16151 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16152 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16153 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16154 echo $ECHO_N "(cached) $ECHO_C" >&6
16156 ac_check_lib_save_LIBS=$LIBS
16157 LIBS="-lintl $LIBS"
16158 cat >conftest.$ac_ext <<_ACEOF
16159 #line $LINENO "configure"
16162 cat confdefs.h >>conftest.$ac_ext
16163 cat >>conftest.$ac_ext <<_ACEOF
16164 /* end confdefs.h. */
16166 /* Override any gcc2 internal prototype to avoid an error. */
16170 /* We use char because int might match the return type of a gcc2
16171 builtin and then its argument prototype would still apply. */
16181 rm -f conftest.$ac_objext conftest$ac_exeext
16182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16183 (eval $ac_link) 2>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } &&
16187 { ac_try='test -s conftest$ac_exeext'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; }; then
16193 ac_cv_lib_intl_strftime=yes
16195 echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16198 ac_cv_lib_intl_strftime=no
16200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16201 LIBS=$ac_check_lib_save_LIBS
16203 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16204 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16205 if test $ac_cv_lib_intl_strftime = yes; then
16206 cat >>confdefs.h <<\_ACEOF
16207 #define HAVE_STRFTIME 1
16210 LIBS="-lintl $LIBS"
16217 for ac_func in vprintf
16219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16220 echo "$as_me:$LINENO: checking for $ac_func" >&5
16221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16222 if eval "test \"\${$as_ac_var+set}\" = set"; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
16225 cat >conftest.$ac_ext <<_ACEOF
16226 #line $LINENO "configure"
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h. */
16232 /* System header to define __stub macros and hopefully few prototypes,
16233 which can conflict with char $ac_func (); below.
16234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16235 <limits.h> exists even on freestanding compilers. */
16237 # include <limits.h>
16239 # include <assert.h>
16241 /* Override any gcc2 internal prototype to avoid an error. */
16246 /* We use char because int might match the return type of a gcc2
16247 builtin and then its argument prototype would still apply. */
16249 /* The GNU C library defines this for functions which it implements
16250 to always fail with ENOSYS. Some functions are actually named
16251 something starting with __ and the normal name is an alias. */
16252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16255 char (*f) () = $ac_func;
16264 return f != $ac_func;
16269 rm -f conftest.$ac_objext conftest$ac_exeext
16270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16271 (eval $ac_link) 2>&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } &&
16275 { ac_try='test -s conftest$ac_exeext'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281 eval "$as_ac_var=yes"
16283 echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16286 eval "$as_ac_var=no"
16288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16292 if test `eval echo '${'$as_ac_var'}'` = yes; then
16293 cat >>confdefs.h <<_ACEOF
16294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16297 echo "$as_me:$LINENO: checking for _doprnt" >&5
16298 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16299 if test "${ac_cv_func__doprnt+set}" = set; then
16300 echo $ECHO_N "(cached) $ECHO_C" >&6
16302 cat >conftest.$ac_ext <<_ACEOF
16303 #line $LINENO "configure"
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h. */
16309 /* System header to define __stub macros and hopefully few prototypes,
16310 which can conflict with char _doprnt (); below.
16311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16312 <limits.h> exists even on freestanding compilers. */
16314 # include <limits.h>
16316 # include <assert.h>
16318 /* Override any gcc2 internal prototype to avoid an error. */
16323 /* We use char because int might match the return type of a gcc2
16324 builtin and then its argument prototype would still apply. */
16326 /* The GNU C library defines this for functions which it implements
16327 to always fail with ENOSYS. Some functions are actually named
16328 something starting with __ and the normal name is an alias. */
16329 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16332 char (*f) () = _doprnt;
16341 return f != _doprnt;
16346 rm -f conftest.$ac_objext conftest$ac_exeext
16347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16348 (eval $ac_link) 2>&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } &&
16352 { ac_try='test -s conftest$ac_exeext'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; }; then
16358 ac_cv_func__doprnt=yes
16360 echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16363 ac_cv_func__doprnt=no
16365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16367 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16368 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16369 if test $ac_cv_func__doprnt = yes; then
16371 cat >>confdefs.h <<\_ACEOF
16372 #define HAVE_DOPRNT 1
16381 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16382 # for constant arguments. Useless!
16383 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16384 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16385 if test "${ac_cv_working_alloca_h+set}" = set; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
16388 cat >conftest.$ac_ext <<_ACEOF
16389 #line $LINENO "configure"
16392 cat confdefs.h >>conftest.$ac_ext
16393 cat >>conftest.$ac_ext <<_ACEOF
16394 /* end confdefs.h. */
16395 #include <alloca.h>
16399 char *p = (char *) alloca (2 * sizeof (int));
16404 rm -f conftest.$ac_objext conftest$ac_exeext
16405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16406 (eval $ac_link) 2>&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } &&
16410 { ac_try='test -s conftest$ac_exeext'
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; }; then
16416 ac_cv_working_alloca_h=yes
16418 echo "$as_me: failed program was:" >&5
16419 sed 's/^/| /' conftest.$ac_ext >&5
16421 ac_cv_working_alloca_h=no
16423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16425 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16426 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16427 if test $ac_cv_working_alloca_h = yes; then
16429 cat >>confdefs.h <<\_ACEOF
16430 #define HAVE_ALLOCA_H 1
16435 echo "$as_me:$LINENO: checking for alloca" >&5
16436 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16437 if test "${ac_cv_func_alloca_works+set}" = set; then
16438 echo $ECHO_N "(cached) $ECHO_C" >&6
16440 cat >conftest.$ac_ext <<_ACEOF
16441 #line $LINENO "configure"
16444 cat confdefs.h >>conftest.$ac_ext
16445 cat >>conftest.$ac_ext <<_ACEOF
16446 /* end confdefs.h. */
16448 # define alloca __builtin_alloca
16451 # include <malloc.h>
16452 # define alloca _alloca
16455 # include <alloca.h>
16460 # ifndef alloca /* predefined by HP cc +Olibcalls */
16471 char *p = (char *) alloca (1);
16476 rm -f conftest.$ac_objext conftest$ac_exeext
16477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16478 (eval $ac_link) 2>&5
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); } &&
16482 { ac_try='test -s conftest$ac_exeext'
16483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16484 (eval $ac_try) 2>&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; }; then
16488 ac_cv_func_alloca_works=yes
16490 echo "$as_me: failed program was:" >&5
16491 sed 's/^/| /' conftest.$ac_ext >&5
16493 ac_cv_func_alloca_works=no
16495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16497 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16498 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16500 if test $ac_cv_func_alloca_works = yes; then
16502 cat >>confdefs.h <<\_ACEOF
16503 #define HAVE_ALLOCA 1
16507 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16508 # that cause trouble. Some versions do not even contain alloca or
16509 # contain a buggy version. If you still want to use their alloca,
16510 # use ar to extract alloca.o from them instead of compiling alloca.c.
16512 ALLOCA=alloca.$ac_objext
16514 cat >>confdefs.h <<\_ACEOF
16519 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16520 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16521 if test "${ac_cv_os_cray+set}" = set; then
16522 echo $ECHO_N "(cached) $ECHO_C" >&6
16524 cat >conftest.$ac_ext <<_ACEOF
16525 #line $LINENO "configure"
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h. */
16531 #if defined(CRAY) && ! defined(CRAY2)
16538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16539 $EGREP "webecray" >/dev/null 2>&1; then
16547 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16548 echo "${ECHO_T}$ac_cv_os_cray" >&6
16549 if test $ac_cv_os_cray = yes; then
16550 for ac_func in _getb67 GETB67 getb67; do
16551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16552 echo "$as_me:$LINENO: checking for $ac_func" >&5
16553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16554 if eval "test \"\${$as_ac_var+set}\" = set"; then
16555 echo $ECHO_N "(cached) $ECHO_C" >&6
16557 cat >conftest.$ac_ext <<_ACEOF
16558 #line $LINENO "configure"
16561 cat confdefs.h >>conftest.$ac_ext
16562 cat >>conftest.$ac_ext <<_ACEOF
16563 /* end confdefs.h. */
16564 /* System header to define __stub macros and hopefully few prototypes,
16565 which can conflict with char $ac_func (); below.
16566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16567 <limits.h> exists even on freestanding compilers. */
16569 # include <limits.h>
16571 # include <assert.h>
16573 /* Override any gcc2 internal prototype to avoid an error. */
16578 /* We use char because int might match the return type of a gcc2
16579 builtin and then its argument prototype would still apply. */
16581 /* The GNU C library defines this for functions which it implements
16582 to always fail with ENOSYS. Some functions are actually named
16583 something starting with __ and the normal name is an alias. */
16584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16587 char (*f) () = $ac_func;
16596 return f != $ac_func;
16601 rm -f conftest.$ac_objext conftest$ac_exeext
16602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16603 (eval $ac_link) 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); } &&
16607 { ac_try='test -s conftest$ac_exeext'
16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; }; then
16613 eval "$as_ac_var=yes"
16615 echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16618 eval "$as_ac_var=no"
16620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16624 if test `eval echo '${'$as_ac_var'}'` = yes; then
16626 cat >>confdefs.h <<_ACEOF
16627 #define CRAY_STACKSEG_END $ac_func
16636 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16637 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16638 if test "${ac_cv_c_stack_direction+set}" = set; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16641 if test "$cross_compiling" = yes; then
16642 ac_cv_c_stack_direction=0
16644 cat >conftest.$ac_ext <<_ACEOF
16645 #line $LINENO "configure"
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16652 find_stack_direction ()
16654 static char *addr = 0;
16659 return find_stack_direction ();
16662 return (&dummy > addr) ? 1 : -1;
16668 exit (find_stack_direction () < 0);
16671 rm -f conftest$ac_exeext
16672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16673 (eval $ac_link) 2>&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; }; then
16682 ac_cv_c_stack_direction=1
16684 echo "$as_me: program exited with status $ac_status" >&5
16685 echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16688 ( exit $ac_status )
16689 ac_cv_c_stack_direction=-1
16691 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16694 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16695 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16697 cat >>confdefs.h <<_ACEOF
16698 #define STACK_DIRECTION $ac_cv_c_stack_direction
16704 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16705 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16706 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16707 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16708 echo $ECHO_N "(cached) $ECHO_C" >&6
16710 ac_check_lib_save_LIBS=$LIBS
16712 cat >conftest.$ac_ext <<_ACEOF
16713 #line $LINENO "configure"
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h. */
16720 /* Override any gcc2 internal prototype to avoid an error. */
16724 /* We use char because int might match the return type of a gcc2
16725 builtin and then its argument prototype would still apply. */
16735 rm -f conftest.$ac_objext 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); } &&
16741 { ac_try='test -s conftest$ac_exeext'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747 ac_cv_lib_sun_getmntent=yes
16749 echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16752 ac_cv_lib_sun_getmntent=no
16754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16755 LIBS=$ac_check_lib_save_LIBS
16757 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16758 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16759 if test $ac_cv_lib_sun_getmntent = yes; then
16762 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16763 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16764 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16765 echo $ECHO_N "(cached) $ECHO_C" >&6
16767 ac_check_lib_save_LIBS=$LIBS
16769 cat >conftest.$ac_ext <<_ACEOF
16770 #line $LINENO "configure"
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16777 /* Override any gcc2 internal prototype to avoid an error. */
16781 /* We use char because int might match the return type of a gcc2
16782 builtin and then its argument prototype would still apply. */
16792 rm -f conftest.$ac_objext conftest$ac_exeext
16793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16794 (eval $ac_link) 2>&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } &&
16798 { ac_try='test -s conftest$ac_exeext'
16799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800 (eval $ac_try) 2>&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; }; then
16804 ac_cv_lib_seq_getmntent=yes
16806 echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16809 ac_cv_lib_seq_getmntent=no
16811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16812 LIBS=$ac_check_lib_save_LIBS
16814 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16815 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16816 if test $ac_cv_lib_seq_getmntent = yes; then
16819 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16820 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16821 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16824 ac_check_lib_save_LIBS=$LIBS
16826 cat >conftest.$ac_ext <<_ACEOF
16827 #line $LINENO "configure"
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16834 /* Override any gcc2 internal prototype to avoid an error. */
16838 /* We use char because int might match the return type of a gcc2
16839 builtin and then its argument prototype would still apply. */
16849 rm -f conftest.$ac_objext conftest$ac_exeext
16850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16851 (eval $ac_link) 2>&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } &&
16855 { ac_try='test -s conftest$ac_exeext'
16856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857 (eval $ac_try) 2>&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; }; then
16861 ac_cv_lib_gen_getmntent=yes
16863 echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16866 ac_cv_lib_gen_getmntent=no
16868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16869 LIBS=$ac_check_lib_save_LIBS
16871 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16872 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16873 if test $ac_cv_lib_gen_getmntent = yes; then
16882 for ac_func in getmntent
16884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16885 echo "$as_me:$LINENO: checking for $ac_func" >&5
16886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16887 if eval "test \"\${$as_ac_var+set}\" = set"; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
16897 /* System header to define __stub macros and hopefully few prototypes,
16898 which can conflict with char $ac_func (); below.
16899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16900 <limits.h> exists even on freestanding compilers. */
16902 # include <limits.h>
16904 # include <assert.h>
16906 /* Override any gcc2 internal prototype to avoid an error. */
16911 /* We use char because int might match the return type of a gcc2
16912 builtin and then its argument prototype would still apply. */
16914 /* The GNU C library defines this for functions which it implements
16915 to always fail with ENOSYS. Some functions are actually named
16916 something starting with __ and the normal name is an alias. */
16917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16920 char (*f) () = $ac_func;
16929 return f != $ac_func;
16934 rm -f conftest.$ac_objext conftest$ac_exeext
16935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16936 (eval $ac_link) 2>&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } &&
16940 { ac_try='test -s conftest$ac_exeext'
16941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16942 (eval $ac_try) 2>&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; }; then
16946 eval "$as_ac_var=yes"
16948 echo "$as_me: failed program was:" >&5
16949 sed 's/^/| /' conftest.$ac_ext >&5
16951 eval "$as_ac_var=no"
16953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16956 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16957 if test `eval echo '${'$as_ac_var'}'` = yes; then
16958 cat >>confdefs.h <<_ACEOF
16959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16966 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16967 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16968 if test "${ac_cv_func_closedir_void+set}" = set; then
16969 echo $ECHO_N "(cached) $ECHO_C" >&6
16971 if test "$cross_compiling" = yes; then
16972 ac_cv_func_closedir_void=yes
16974 cat >conftest.$ac_ext <<_ACEOF
16975 #line $LINENO "configure"
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h. */
16981 $ac_includes_default
16982 #include <$ac_header_dirent>
16983 #ifndef __cplusplus
16990 exit (closedir (opendir (".")) != 0);
16995 rm -f conftest$ac_exeext
16996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16997 (eval $ac_link) 2>&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; }; then
17006 ac_cv_func_closedir_void=no
17008 echo "$as_me: program exited with status $ac_status" >&5
17009 echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17012 ( exit $ac_status )
17013 ac_cv_func_closedir_void=yes
17015 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17018 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17019 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17020 if test $ac_cv_func_closedir_void = yes; then
17022 cat >>confdefs.h <<\_ACEOF
17023 #define CLOSEDIR_VOID 1
17028 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17029 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17030 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17033 if test "$cross_compiling" = yes; then
17034 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17035 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17036 { (exit 1); exit 1; }; }
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. */
17046 # include <unistd.h>
17052 /* If this system has a BSD-style setpgrp which takes arguments,
17053 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17054 exit successfully. */
17055 exit (setpgrp (1,1) == -1 ? 0 : 1);
17060 rm -f conftest$ac_exeext
17061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17062 (eval $ac_link) 2>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; }; then
17071 ac_cv_func_setpgrp_void=no
17073 echo "$as_me: program exited with status $ac_status" >&5
17074 echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17077 ( exit $ac_status )
17078 ac_cv_func_setpgrp_void=yes
17080 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17083 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17084 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17085 if test $ac_cv_func_setpgrp_void = yes; then
17087 cat >>confdefs.h <<\_ACEOF
17088 #define SETPGRP_VOID 1
17092 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17093 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17094 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17097 # Some versions of Solaris, SCO, and the GNU C Library
17098 # have a broken or incompatible fnmatch.
17099 # So we run a test program. If we are cross-compiling, take no chance.
17100 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17101 if test "$cross_compiling" = yes; then
17102 ac_cv_func_fnmatch_works=cross
17104 cat >conftest.$ac_ext <<_ACEOF
17105 #line $LINENO "configure"
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17111 #include <fnmatch.h>
17112 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17113 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17119 (!(y ("a*", "abc", 0)
17120 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17121 && y ("a\\\\bc", "abc", 0)
17122 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17123 && y ("*x", ".x", 0)
17124 && n ("*x", ".x", FNM_PERIOD)
17130 rm -f conftest$ac_exeext
17131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17132 (eval $ac_link) 2>&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; }; then
17141 ac_cv_func_fnmatch_works=yes
17143 echo "$as_me: program exited with status $ac_status" >&5
17144 echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17147 ( exit $ac_status )
17148 ac_cv_func_fnmatch_works=no
17150 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17153 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17154 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17155 if test $ac_cv_func_fnmatch_works = yes; then
17157 cat >>confdefs.h <<\_ACEOF
17158 #define HAVE_FNMATCH 1
17167 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17168 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17169 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17170 echo $ECHO_N "(cached) $ECHO_C" >&6
17172 ac_check_lib_save_LIBS=$LIBS
17173 LIBS="-lxpg4 $LIBS"
17174 cat >conftest.$ac_ext <<_ACEOF
17175 #line $LINENO "configure"
17178 cat confdefs.h >>conftest.$ac_ext
17179 cat >>conftest.$ac_ext <<_ACEOF
17180 /* end confdefs.h. */
17182 /* Override any gcc2 internal prototype to avoid an error. */
17186 /* We use char because int might match the return type of a gcc2
17187 builtin and then its argument prototype would still apply. */
17197 rm -f conftest.$ac_objext conftest$ac_exeext
17198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17199 (eval $ac_link) 2>&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } &&
17203 { ac_try='test -s conftest$ac_exeext'
17204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205 (eval $ac_try) 2>&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; }; then
17209 ac_cv_lib_xpg4_setlocale=yes
17211 echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17214 ac_cv_lib_xpg4_setlocale=no
17216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17217 LIBS=$ac_check_lib_save_LIBS
17219 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17220 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17221 if test $ac_cv_lib_xpg4_setlocale = yes; then
17222 LIBS="$LIBS -lxpg4"
17228 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17229 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17230 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17231 echo $ECHO_N "(cached) $ECHO_C" >&6
17233 ac_check_lib_save_LIBS=$LIBS
17235 cat >conftest.$ac_ext <<_ACEOF
17236 #line $LINENO "configure"
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h. */
17243 /* Override any gcc2 internal prototype to avoid an error. */
17247 /* We use char because int might match the return type of a gcc2
17248 builtin and then its argument prototype would still apply. */
17258 rm -f conftest.$ac_objext conftest$ac_exeext
17259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17260 (eval $ac_link) 2>&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } &&
17264 { ac_try='test -s conftest$ac_exeext'
17265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266 (eval $ac_try) 2>&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17270 ac_cv_lib_sun_getpwnam=yes
17272 echo "$as_me: failed program was:" >&5
17273 sed 's/^/| /' conftest.$ac_ext >&5
17275 ac_cv_lib_sun_getpwnam=no
17277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17278 LIBS=$ac_check_lib_save_LIBS
17280 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17281 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17282 if test $ac_cv_lib_sun_getpwnam = yes; then
17283 cat >>confdefs.h <<_ACEOF
17284 #define HAVE_LIBSUN 1
17293 for ac_header in zlib.h
17295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17297 echo "$as_me:$LINENO: checking for $ac_header" >&5
17298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17300 echo $ECHO_N "(cached) $ECHO_C" >&6
17302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17305 # Is the header compilable?
17306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17308 cat >conftest.$ac_ext <<_ACEOF
17309 #line $LINENO "configure"
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h. */
17315 $ac_includes_default
17316 #include <$ac_header>
17318 rm -f conftest.$ac_objext
17319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17320 (eval $ac_compile) 2>&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } &&
17324 { ac_try='test -s conftest.$ac_objext'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; }; then
17330 ac_header_compiler=yes
17332 echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17335 ac_header_compiler=no
17337 rm -f conftest.$ac_objext conftest.$ac_ext
17338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17339 echo "${ECHO_T}$ac_header_compiler" >&6
17341 # Is the header present?
17342 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17344 cat >conftest.$ac_ext <<_ACEOF
17345 #line $LINENO "configure"
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17351 #include <$ac_header>
17353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17356 grep -v '^ *+' conftest.er1 >conftest.err
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } >/dev/null; then
17361 if test -s conftest.err; then
17362 ac_cpp_err=$ac_c_preproc_warn_flag
17369 if test -z "$ac_cpp_err"; then
17370 ac_header_preproc=yes
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17375 ac_header_preproc=no
17377 rm -f conftest.err conftest.$ac_ext
17378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17379 echo "${ECHO_T}$ac_header_preproc" >&6
17381 # So? What about this header?
17382 case $ac_header_compiler:$ac_header_preproc in
17384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17390 ## ------------------------------------ ##
17391 ## Report this to bug-autoconf@gnu.org. ##
17392 ## ------------------------------------ ##
17395 sed "s/^/$as_me: WARNING: /" >&2
17398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17406 ## ------------------------------------ ##
17407 ## Report this to bug-autoconf@gnu.org. ##
17408 ## ------------------------------------ ##
17411 sed "s/^/$as_me: WARNING: /" >&2
17414 echo "$as_me:$LINENO: checking for $ac_header" >&5
17415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17419 eval "$as_ac_Header=$ac_header_preproc"
17421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17426 cat >>confdefs.h <<_ACEOF
17427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17434 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17435 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17436 if test "${ac_cv_lib_z_deflate+set}" = set; then
17437 echo $ECHO_N "(cached) $ECHO_C" >&6
17439 ac_check_lib_save_LIBS=$LIBS
17441 cat >conftest.$ac_ext <<_ACEOF
17442 #line $LINENO "configure"
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h. */
17449 /* Override any gcc2 internal prototype to avoid an error. */
17453 /* We use char because int might match the return type of a gcc2
17454 builtin and then its argument prototype would still apply. */
17464 rm -f conftest.$ac_objext conftest$ac_exeext
17465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17466 (eval $ac_link) 2>&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } &&
17470 { ac_try='test -s conftest$ac_exeext'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; }; then
17476 ac_cv_lib_z_deflate=yes
17478 echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.$ac_ext >&5
17481 ac_cv_lib_z_deflate=no
17483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17484 LIBS=$ac_check_lib_save_LIBS
17486 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17487 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17488 if test $ac_cv_lib_z_deflate = yes; then
17493 if test x$FDLIBS = x-lz; then
17494 cat >>confdefs.h <<\_ACEOF
17495 #define HAVE_LIBZ 1
17502 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17503 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17504 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17505 echo $ECHO_N "(cached) $ECHO_C" >&6
17507 ac_check_lib_save_LIBS=$LIBS
17508 LIBS="-lpthread $LIBS"
17509 cat >conftest.$ac_ext <<_ACEOF
17510 #line $LINENO "configure"
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h. */
17517 /* Override any gcc2 internal prototype to avoid an error. */
17521 /* We use char because int might match the return type of a gcc2
17522 builtin and then its argument prototype would still apply. */
17523 char pthread_create ();
17532 rm -f conftest.$ac_objext conftest$ac_exeext
17533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17534 (eval $ac_link) 2>&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } &&
17538 { ac_try='test -s conftest$ac_exeext'
17539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17540 (eval $ac_try) 2>&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); }; }; then
17544 ac_cv_lib_pthread_pthread_create=yes
17546 echo "$as_me: failed program was:" >&5
17547 sed 's/^/| /' conftest.$ac_ext >&5
17549 ac_cv_lib_pthread_pthread_create=no
17551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17552 LIBS=$ac_check_lib_save_LIBS
17554 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17555 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17556 if test $ac_cv_lib_pthread_pthread_create = yes; then
17557 PTHREAD_LIB="-lpthread"
17559 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17560 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17561 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17564 ac_check_lib_save_LIBS=$LIBS
17565 LIBS="-lpthreads $LIBS"
17566 cat >conftest.$ac_ext <<_ACEOF
17567 #line $LINENO "configure"
17570 cat confdefs.h >>conftest.$ac_ext
17571 cat >>conftest.$ac_ext <<_ACEOF
17572 /* end confdefs.h. */
17574 /* Override any gcc2 internal prototype to avoid an error. */
17578 /* We use char because int might match the return type of a gcc2
17579 builtin and then its argument prototype would still apply. */
17580 char pthread_create ();
17589 rm -f conftest.$ac_objext conftest$ac_exeext
17590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17591 (eval $ac_link) 2>&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try='test -s conftest$ac_exeext'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 ac_cv_lib_pthreads_pthread_create=yes
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_cv_lib_pthreads_pthread_create=no
17608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17609 LIBS=$ac_check_lib_save_LIBS
17611 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17612 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17613 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17614 PTHREAD_LIB="-lpthreads"
17616 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17617 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17618 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17619 echo $ECHO_N "(cached) $ECHO_C" >&6
17621 ac_check_lib_save_LIBS=$LIBS
17623 cat >conftest.$ac_ext <<_ACEOF
17624 #line $LINENO "configure"
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17631 /* Override any gcc2 internal prototype to avoid an error. */
17635 /* We use char because int might match the return type of a gcc2
17636 builtin and then its argument prototype would still apply. */
17637 char pthread_create ();
17646 rm -f conftest.$ac_objext conftest$ac_exeext
17647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17648 (eval $ac_link) 2>&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } &&
17652 { ac_try='test -s conftest$ac_exeext'
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; }; then
17658 ac_cv_lib_c_r_pthread_create=yes
17660 echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17663 ac_cv_lib_c_r_pthread_create=no
17665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17666 LIBS=$ac_check_lib_save_LIBS
17668 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17669 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17670 if test $ac_cv_lib_c_r_pthread_create = yes; then
17671 PTHREAD_LIB="-lc_r"
17673 echo "$as_me:$LINENO: checking for pthread_create" >&5
17674 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17675 if test "${ac_cv_func_pthread_create+set}" = set; then
17676 echo $ECHO_N "(cached) $ECHO_C" >&6
17678 cat >conftest.$ac_ext <<_ACEOF
17679 #line $LINENO "configure"
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h. */
17685 /* System header to define __stub macros and hopefully few prototypes,
17686 which can conflict with char pthread_create (); below.
17687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17688 <limits.h> exists even on freestanding compilers. */
17690 # include <limits.h>
17692 # include <assert.h>
17694 /* 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 ();
17702 /* The GNU C library defines this for functions which it implements
17703 to always fail with ENOSYS. Some functions are actually named
17704 something starting with __ and the normal name is an alias. */
17705 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17708 char (*f) () = pthread_create;
17717 return f != pthread_create;
17722 rm -f conftest.$ac_objext conftest$ac_exeext
17723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17724 (eval $ac_link) 2>&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } &&
17728 { ac_try='test -s conftest$ac_exeext'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; }; then
17734 ac_cv_func_pthread_create=yes
17736 echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17739 ac_cv_func_pthread_create=no
17741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17743 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17744 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17757 cat >>confdefs.h <<\_ACEOF
17763 CFLAGS=${CFLAGS--O}
17764 LDFLAGS=${LDFLAGS--O}
17765 DB_LIBS="${SQL_LFLAGS}"
17767 CPPFLAGS="$CPPFLAGS"
17792 # Finally we set appropriate distribution specific
17793 # variables and defaults
17795 # PFILES are platform specific files
17796 PFILES="platforms/Makefile"
17799 hostname=`uname -n | cut -d '.' -f 1`
17800 case "$DISTNAME" in
17803 PSCMD="ps -e -o pid,comm"
17804 PFILES="${PFILES} \
17805 platforms/aix/Makefile"
17806 TAPEDRIVE="/dev/rmt0.1"
17810 PTHREAD_LIB="-lpthread -lexc"
17811 if test "${CC}" = "gcc" ; then
17818 TAPEDRIVE="/dev/nrmt0"
17821 DISTVER=`uname -a |awk '{print $3}'`
17822 TAPEDRIVE="/dev/nrmt0"
17823 PTHREAD_LIB="-pthread"
17824 CFLAGS="${CFLAGS} -pthread"
17825 PSCMD="ps -x -o pid,command"
17828 PFILES="${PFILES} \
17829 platforms/bsdi/Makefile \
17830 platforms/bsdi/bacula-fd \
17831 platforms/bsdi/bacula-sd \
17832 platforms/bsdi/bacula-dir"
17833 largefile_support="yes"
17836 DISTVER=`uname -a |awk '{print $3}'`
17837 TAPEDRIVE="/dev/nrst0"
17839 WCFLAGS="-mwindows"
17840 WLDFLAGS="-mwindows"
17844 TAPEDRIVE="/dev/nst0"
17845 PSCMD="ps -e -o pid,command"
17846 PFILES="${PFILES} \
17847 platforms/darwin/Makefile"
17850 DISTVER=`cat /etc/debian_version`
17851 TAPEDRIVE="/dev/nrst0"
17852 PSCMD="ps -e -o pid,command"
17855 DISTVER=`uname -a |awk '{print $3}'`
17856 VER=`echo $DISTVER | cut -c 1`
17857 if test x$VER = x4 ; then
17858 PTHREAD_LIB="-pthread"
17859 CFLAGS="${CFLAGS} -pthread"
17863 TAPEDRIVE="/dev/nrsa0"
17864 PSCMD="ps -x -o pid,command"
17865 PFILES="${PFILES} \
17866 platforms/freebsd/Makefile \
17867 platforms/freebsd/bacula-fd \
17868 platforms/freebsd/bacula-sd \
17869 platforms/freebsd/bacula-dir"
17870 largefile_support="yes"
17874 TAPEDRIVE="/dev/rmt/0hnb"
17878 TAPEDRIVE="/dev/rmt/0cbn"
17879 PSCMD="ps -e -o pid,comm"
17880 PFILES="${PFILES} \
17881 platforms/irix/Makefile \
17882 platforms/irix/bacula-fd \
17883 platforms/irix/bacula-sd \
17884 platforms/irix/bacula-dir"
17887 DISTVER=`uname -a |awk '{print $3}'`
17890 TAPEDRIVE="/dev/nrst0"
17891 PSCMD="ps -a -o pid,command"
17892 PTHREAD_LIB="-pthread"
17893 CFLAGS="${CFLAGS} -pthread"
17896 DISTVER=`uname -a |awk '{print $3}'`
17899 TAPEDRIVE="/dev/nrst0"
17900 PSCMD="ps -a -o pid,command"
17901 PTHREAD_LIB="-pthread"
17902 CFLAGS="${CFLAGS} -pthread"
17903 PFILES="${PFILES} \
17904 platforms/openbsd/Makefile \
17905 platforms/openbsd/bacula-fd \
17906 platforms/openbsd/bacula-sd \
17907 platforms/openbsd/bacula-dir"
17910 if test `cat /etc/redhat-release | grep release |\
17911 cut -f 3 -d ' '`x = "Enterprise"x ; then
17912 DISTVER="Enterprise "`cat /etc/redhat-release | grep release |\
17915 DISTVER=`cat /etc/redhat-release | grep release |\
17918 TAPEDRIVE="/dev/nst0"
17919 PSCMD="ps -e -o pid,command"
17920 PFILES="${PFILES} \
17921 platforms/redhat/Makefile \
17922 platforms/redhat/bacula-fd \
17923 platforms/redhat/bacula-sd \
17924 platforms/redhat/bacula-dir \
17925 platforms/redhat/bacula.spec \
17927 hostname=`hostname -s`
17930 DISTVER=`cat /etc/mandrake-release | grep release |\
17932 TAPEDRIVE="/dev/nst0"
17933 PSCMD="ps -e -o pid,command"
17934 PFILES="${PFILES} \
17935 platforms/mandrake/Makefile \
17936 platforms/mandrake/bacula-fd \
17937 platforms/mandrake/bacula-sd \
17938 platforms/mandrake/bacula-dir \
17939 platforms/mandrake/bacula.spec \
17943 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17944 TAPEDRIVE="/dev/nst0"
17945 PSCMD="ps -e -o pid,command"
17946 PFILES="${PFILES} \
17947 platforms/gentoo/Makefile \
17948 platforms/gentoo/bacula-fd \
17949 platforms/gentoo/bacula-sd \
17950 platforms/gentoo/bacula-dir"
17954 DISTVER=`cat /etc/slackware-version`
17955 TAPEDRIVE="/dev/nst0"
17956 PSCMD="ps -e -o pid,command"
17960 TAPEDRIVE="/dev/rmt/0cbn"
17961 PSCMD="ps -e -o pid,comm"
17962 PFILES="${PFILES} \
17963 platforms/solaris/Makefile \
17964 platforms/solaris/bacula-fd \
17965 platforms/solaris/bacula-sd \
17966 platforms/solaris/bacula-dir"
17967 if test x$DISTVER = x5.6 ; then
17968 cat >>confdefs.h <<\_ACEOF
17969 #define HAVE_OLD_SOCKOPT 1
17975 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17977 TAPEDRIVE="/dev/nst0"
17978 PSCMD="ps -e -o pid,command"
17979 PFILES="${PFILES} \
17980 platforms/suse/Makefile \
17981 platforms/suse/bacula-fd \
17982 platforms/suse/bacula-sd \
17983 platforms/suse/bacula-dir \
17984 platforms/suse/bacula.spec"
17989 TAPEDRIVE="/dev/nst0"
17990 PSCMD="ps -e -o pid,command"
17991 PFILES="${PFILES} \
17992 platforms/suse/Makefile \
17993 platforms/suse/bacula-fd \
17994 platforms/suse/bacula-sd \
17995 platforms/suse/bacula-dir"
17999 TAPEDRIVE="/dev/nst0"
18002 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18008 LIBS="$PTHREAD_LIB $LIBS"
18010 cat >>confdefs.h <<_ACEOF
18014 cat >>confdefs.h <<_ACEOF
18024 MCOMMON=./autoconf/Make.common
18027 if test "x${subsysdir}" = "x${sbindir}" ; then
18030 echo "You have set both --sbindir and --with-subsys-dir"
18031 echo " equal to: ${subsysdir} "
18032 echo "This is not permitted. Please reconfigure."
18034 echo "Aborting configuration ..."
18040 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/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 $PFILES"
18041 ac_config_commands="$ac_config_commands default"
18042 cat >confcache <<\_ACEOF
18043 # This file is a shell script that caches the results of configure
18044 # tests run on this system so they can be shared between configure
18045 # scripts and configure runs, see configure's option --config-cache.
18046 # It is not useful on other systems. If it contains results you don't
18047 # want to keep, you may remove or edit it.
18049 # config.status only pays attention to the cache file if you give it
18050 # the --recheck option to rerun configure.
18052 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18053 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18054 # following values.
18058 # The following way of writing the cache mishandles newlines in values,
18059 # but we know of no workaround that is simple, portable, and efficient.
18060 # So, don't put newlines in cache variables' values.
18061 # Ultrix sh set writes to stderr and can't be redirected directly,
18062 # and sets the high bit in the cache file unless we assign to the vars.
18065 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18067 # `set' does not quote correctly, so add quotes (double-quote
18068 # substitution turns \\\\ into \\, and sed turns \\ into \).
18071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18074 # `set' quotes correctly as required by POSIX, so do not add quotes.
18076 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18083 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18085 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18087 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18088 if test -w $cache_file; then
18089 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18090 cat confcache >$cache_file
18092 echo "not updating unwritable cache $cache_file"
18097 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18098 # Let make expand exec_prefix.
18099 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18101 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18102 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18103 # trailing colons and then remove the whole line if VPATH becomes empty
18104 # (actually we leave an empty line to preserve line numbers).
18105 if test "x$srcdir" = x.; then
18106 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18107 s/:*\$(srcdir):*/:/;
18108 s/:*\${srcdir}:*/:/;
18110 s/^\([^=]*=[ ]*\):*/\1/;
18116 DEFS=-DHAVE_CONFIG_H
18120 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18121 # 1. Remove the extension, and $U if already installed.
18122 ac_i=`echo "$ac_i" |
18123 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18125 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18126 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18128 LIBOBJS=$ac_libobjs
18130 LTLIBOBJS=$ac_ltlibobjs
18134 : ${CONFIG_STATUS=./config.status}
18135 ac_clean_files_save=$ac_clean_files
18136 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18137 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18138 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18139 cat >$CONFIG_STATUS <<_ACEOF
18141 # Generated by $as_me.
18142 # Run this file to recreate the current configuration.
18143 # Compiler output produced by configure, useful for debugging
18144 # configure, is in config.log if it exists.
18147 ac_cs_recheck=false
18149 SHELL=\${CONFIG_SHELL-$SHELL}
18152 cat >>$CONFIG_STATUS <<\_ACEOF
18153 ## --------------------- ##
18154 ## M4sh Initialization. ##
18155 ## --------------------- ##
18157 # Be Bourne compatible
18158 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18161 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18162 # is contrary to our usage. Disable this feature.
18163 alias -g '${1+"$@"}'='"$@"'
18164 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18168 # Support unset when possible.
18169 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18176 # Work around bugs in pre-3.0 UWIN ksh.
18177 $as_unset ENV MAIL MAILPATH
18184 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18185 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18186 LC_TELEPHONE LC_TIME
18188 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18189 eval $as_var=C; export $as_var
18195 # Required to use basename.
18196 if expr a : '\(a\)' >/dev/null 2>&1; then
18202 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18203 as_basename=basename
18209 # Name of the executable.
18210 as_me=`$as_basename "$0" ||
18211 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18212 X"$0" : 'X\(//\)$' \| \
18213 X"$0" : 'X\(/\)$' \| \
18214 . : '\(.\)' 2>/dev/null ||
18216 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18217 /^X\/\(\/\/\)$/{ s//\1/; q; }
18218 /^X\/\(\/\).*/{ s//\1/; q; }
18222 # PATH needs CR, and LINENO needs CR and PATH.
18223 # Avoid depending upon Character Ranges.
18224 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18225 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18226 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18227 as_cr_digits='0123456789'
18228 as_cr_alnum=$as_cr_Letters$as_cr_digits
18230 # The user is always right.
18231 if test "${PATH_SEPARATOR+set}" != set; then
18232 echo "#! /bin/sh" >conf$$.sh
18233 echo "exit 0" >>conf$$.sh
18235 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18244 as_lineno_1=$LINENO
18245 as_lineno_2=$LINENO
18246 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18247 test "x$as_lineno_1" != "x$as_lineno_2" &&
18248 test "x$as_lineno_3" = "x$as_lineno_2" || {
18249 # Find who we are. Look in the path if we contain no path at all
18252 *[\\/]* ) as_myself=$0 ;;
18253 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18254 for as_dir in $PATH
18257 test -z "$as_dir" && as_dir=.
18258 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18263 # We did not find ourselves, most probably we were run as `sh COMMAND'
18264 # in which case we are not to be found in the path.
18265 if test "x$as_myself" = x; then
18268 if test ! -f "$as_myself"; then
18269 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18270 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18271 { (exit 1); exit 1; }; }
18273 case $CONFIG_SHELL in
18275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18276 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18279 test -z "$as_dir" && as_dir=.
18280 for as_base in sh bash ksh sh5; do
18283 if ("$as_dir/$as_base" -c '
18284 as_lineno_1=$LINENO
18285 as_lineno_2=$LINENO
18286 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18287 test "x$as_lineno_1" != "x$as_lineno_2" &&
18288 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18289 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18290 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18291 CONFIG_SHELL=$as_dir/$as_base
18292 export CONFIG_SHELL
18293 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18301 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18302 # uniformly replaced by the line number. The first 'sed' inserts a
18303 # line-number line before each line; the second 'sed' does the real
18304 # work. The second script uses 'N' to pair each line-number line
18305 # with the numbered line, and appends trailing '-' during
18306 # substitution so that $LINENO is not a special case at line end.
18307 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18308 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18309 sed '=' <$as_myself |
18314 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18317 s,^['$as_cr_digits']*\n,,
18318 ' >$as_me.lineno &&
18319 chmod +x $as_me.lineno ||
18320 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18321 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18322 { (exit 1); exit 1; }; }
18324 # Don't try to exec as it changes $[0], causing all sort of problems
18325 # (the dirname of $[0] is not the place where we might find the
18326 # original and so on. Autoconf is especially sensible to this).
18328 # Exit status is that of the last command.
18333 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18334 *c*,-n*) ECHO_N= ECHO_C='
18336 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18337 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18340 if expr a : '\(a\)' >/dev/null 2>&1; then
18346 rm -f conf$$ conf$$.exe conf$$.file
18348 if ln -s conf$$.file conf$$ 2>/dev/null; then
18349 # We could just check for DJGPP; but this test a) works b) is more generic
18350 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18351 if test -f conf$$.exe; then
18352 # Don't use ln at all; we don't have any links
18357 elif ln conf$$.file conf$$ 2>/dev/null; then
18362 rm -f conf$$ conf$$.exe conf$$.file
18364 if mkdir -p . 2>/dev/null; then
18370 as_executable_p="test -f"
18372 # Sed expression to map a string onto a valid CPP name.
18373 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18375 # Sed expression to map a string onto a valid variable name.
18376 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18380 # We need space, tab and new line, in precisely that order.
18390 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18391 # report actual input values of CONFIG_FILES etc. instead of their
18392 # values after options handling. Logging --version etc. is OK.
18396 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18397 ## Running $as_me. ##
18402 This file was extended by $as_me, which was
18403 generated by GNU Autoconf 2.57. Invocation command line was
18405 CONFIG_FILES = $CONFIG_FILES
18406 CONFIG_HEADERS = $CONFIG_HEADERS
18407 CONFIG_LINKS = $CONFIG_LINKS
18408 CONFIG_COMMANDS = $CONFIG_COMMANDS
18412 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18416 # Files that config.status was made for.
18417 if test -n "$ac_config_files"; then
18418 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18421 if test -n "$ac_config_headers"; then
18422 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18425 if test -n "$ac_config_links"; then
18426 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18429 if test -n "$ac_config_commands"; then
18430 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18433 cat >>$CONFIG_STATUS <<\_ACEOF
18436 \`$as_me' instantiates files from templates according to the
18437 current configuration.
18439 Usage: $0 [OPTIONS] [FILE]...
18441 -h, --help print this help, then exit
18442 -V, --version print version number, then exit
18443 -q, --quiet do not print progress messages
18444 -d, --debug don't remove temporary files
18445 --recheck update $as_me by reconfiguring in the same conditions
18446 --file=FILE[:TEMPLATE]
18447 instantiate the configuration file FILE
18448 --header=FILE[:TEMPLATE]
18449 instantiate the configuration header FILE
18451 Configuration files:
18454 Configuration headers:
18457 Configuration commands:
18460 Report bugs to <bug-autoconf@gnu.org>."
18463 cat >>$CONFIG_STATUS <<_ACEOF
18466 configured by $0, generated by GNU Autoconf 2.57,
18467 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18469 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18470 Free Software Foundation, Inc.
18471 This config.status script is free software; the Free Software Foundation
18472 gives unlimited permission to copy, distribute and modify it."
18477 cat >>$CONFIG_STATUS <<\_ACEOF
18478 # If no file are specified by the user, then we need to provide default
18479 # value. By we need to know if files were specified by the user.
18485 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18486 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18494 *) # This is not an option, so the user has probably given explicit
18497 ac_need_defaults=false;;
18501 # Handling of the options.
18503 cat >>$CONFIG_STATUS <<\_ACEOF
18504 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18506 --version | --vers* | -V )
18507 echo "$ac_cs_version"; exit 0 ;;
18509 # Conflict between --help and --header
18510 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18511 Try \`$0 --help' for more information." >&5
18512 echo "$as_me: error: ambiguous option: $1
18513 Try \`$0 --help' for more information." >&2;}
18514 { (exit 1); exit 1; }; };;
18515 --help | --hel | -h )
18516 echo "$ac_cs_usage"; exit 0 ;;
18517 --debug | --d* | -d )
18519 --file | --fil | --fi | --f )
18521 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18522 ac_need_defaults=false;;
18523 --header | --heade | --head | --hea )
18525 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18526 ac_need_defaults=false;;
18527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18528 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18531 # This is an error.
18532 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18533 Try \`$0 --help' for more information." >&5
18534 echo "$as_me: error: unrecognized option: $1
18535 Try \`$0 --help' for more information." >&2;}
18536 { (exit 1); exit 1; }; } ;;
18538 *) ac_config_targets="$ac_config_targets $1" ;;
18544 ac_configure_extra_args=
18546 if $ac_cs_silent; then
18548 ac_configure_extra_args="$ac_configure_extra_args --silent"
18552 cat >>$CONFIG_STATUS <<_ACEOF
18553 if \$ac_cs_recheck; then
18554 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18555 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18564 cat >>$CONFIG_STATUS <<\_ACEOF
18565 for ac_config_target in $ac_config_targets
18567 case "$ac_config_target" in
18568 # Handling of arguments.
18569 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18570 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18571 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18572 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18573 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18574 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18575 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18576 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18577 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18578 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18579 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18580 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18581 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18582 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18583 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18584 "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18585 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18586 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18587 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18588 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18589 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18590 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18591 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18592 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18593 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18594 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18595 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18596 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18597 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18598 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18599 "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18600 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18601 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18602 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18603 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18604 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18605 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18606 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18607 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18608 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18609 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18610 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18611 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18612 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18613 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18614 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18615 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18616 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18617 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18618 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18619 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18620 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18621 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18622 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18623 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18624 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18625 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18626 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18627 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18628 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18629 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18630 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18631 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18632 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18633 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18634 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18635 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18636 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18637 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18638 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18639 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18640 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18641 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18642 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18643 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18644 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18645 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18646 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18647 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18648 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18649 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18650 { (exit 1); exit 1; }; };;
18654 # If the user did not use the arguments to specify the items to instantiate,
18655 # then the envvar interface is used. Set only those that are not.
18656 # We use the long form for the default assignment because of an extremely
18657 # bizarre bug on SunOS 4.1.3.
18658 if $ac_need_defaults; then
18659 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18660 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18661 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18664 # Have a temporary directory for convenience. Make it in the build tree
18665 # simply because there is no reason to put it here, and in addition,
18666 # creating and moving files from /tmp can sometimes cause problems.
18667 # Create a temporary directory, and hook for its removal unless debugging.
18670 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18671 trap '{ (exit 1); exit 1; }' 1 2 13 15
18674 # Create a (secure) tmp directory for tmp files.
18677 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18678 test -n "$tmp" && test -d "$tmp"
18681 tmp=./confstat$$-$RANDOM
18682 (umask 077 && mkdir $tmp)
18685 echo "$me: cannot create a temporary directory in ." >&2
18686 { (exit 1); exit 1; }
18691 cat >>$CONFIG_STATUS <<_ACEOF
18694 # CONFIG_FILES section.
18697 # No need to generate the scripts if there are no CONFIG_FILES.
18698 # This happens for instance when ./config.status config.h
18699 if test -n "\$CONFIG_FILES"; then
18700 # Protect against being on the right side of a sed subst in config.status.
18701 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18702 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18703 s,@SHELL@,$SHELL,;t t
18704 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18705 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18706 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18707 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18708 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18709 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18710 s,@exec_prefix@,$exec_prefix,;t t
18711 s,@prefix@,$prefix,;t t
18712 s,@program_transform_name@,$program_transform_name,;t t
18713 s,@bindir@,$bindir,;t t
18714 s,@sbindir@,$sbindir,;t t
18715 s,@libexecdir@,$libexecdir,;t t
18716 s,@datadir@,$datadir,;t t
18717 s,@sysconfdir@,$sysconfdir,;t t
18718 s,@sharedstatedir@,$sharedstatedir,;t t
18719 s,@localstatedir@,$localstatedir,;t t
18720 s,@libdir@,$libdir,;t t
18721 s,@includedir@,$includedir,;t t
18722 s,@oldincludedir@,$oldincludedir,;t t
18723 s,@infodir@,$infodir,;t t
18724 s,@mandir@,$mandir,;t t
18725 s,@build_alias@,$build_alias,;t t
18726 s,@host_alias@,$host_alias,;t t
18727 s,@target_alias@,$target_alias,;t t
18728 s,@DEFS@,$DEFS,;t t
18729 s,@ECHO_C@,$ECHO_C,;t t
18730 s,@ECHO_N@,$ECHO_N,;t t
18731 s,@ECHO_T@,$ECHO_T,;t t
18732 s,@LIBS@,$LIBS,;t t
18733 s,@BUILD_DIR@,$BUILD_DIR,;t t
18734 s,@TRUEPRG@,$TRUEPRG,;t t
18735 s,@FALSEPRG@,$FALSEPRG,;t t
18736 s,@build@,$build,;t t
18737 s,@build_cpu@,$build_cpu,;t t
18738 s,@build_vendor@,$build_vendor,;t t
18739 s,@build_os@,$build_os,;t t
18740 s,@host@,$host,;t t
18741 s,@host_cpu@,$host_cpu,;t t
18742 s,@host_vendor@,$host_vendor,;t t
18743 s,@host_os@,$host_os,;t t
18744 s,@VERSION@,$VERSION,;t t
18745 s,@DATE@,$DATE,;t t
18746 s,@LSMDATE@,$LSMDATE,;t t
18748 s,@CFLAGS@,$CFLAGS,;t t
18749 s,@LDFLAGS@,$LDFLAGS,;t t
18750 s,@CPPFLAGS@,$CPPFLAGS,;t t
18751 s,@ac_ct_CC@,$ac_ct_CC,;t t
18752 s,@EXEEXT@,$EXEEXT,;t t
18753 s,@OBJEXT@,$OBJEXT,;t t
18755 s,@CXXFLAGS@,$CXXFLAGS,;t t
18756 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18758 s,@EGREP@,$EGREP,;t t
18759 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18760 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18761 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18762 s,@RANLIB@,$RANLIB,;t t
18763 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18769 s,@ECHO@,$ECHO,;t t
18773 s,@OPENSSL@,$OPENSSL,;t t
18775 s,@PKGCONFIG@,$PKGCONFIG,;t t
18776 s,@ARFLAGS@,$ARFLAGS,;t t
18777 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18778 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18779 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18780 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18781 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18782 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18783 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18784 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18785 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18786 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18787 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18788 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18789 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18790 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18791 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18792 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18793 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18794 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18795 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18796 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18797 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18798 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18799 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18800 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18801 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18802 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18803 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18804 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18805 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18806 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18807 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18808 s,@MSGFMT@,$MSGFMT,;t t
18809 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18810 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18811 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18812 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18813 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18814 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18815 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18816 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18817 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18818 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18819 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18820 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18821 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18822 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18823 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18824 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18825 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18826 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18827 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18828 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18829 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18830 s,@GNOME_DIR@,$GNOME_DIR,;t t
18831 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18832 s,@STATIC_FD@,$STATIC_FD,;t t
18833 s,@STATIC_SD@,$STATIC_SD,;t t
18834 s,@STATIC_DIR@,$STATIC_DIR,;t t
18835 s,@STATIC_CONS@,$STATIC_CONS,;t t
18836 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
18837 s,@ALL_DIRS@,$ALL_DIRS,;t t
18838 s,@CONS_INC@,$CONS_INC,;t t
18839 s,@CONS_OBJ@,$CONS_OBJ,;t t
18840 s,@CONS_SRC@,$CONS_SRC,;t t
18841 s,@CONS_LIBS@,$CONS_LIBS,;t t
18842 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18843 s,@READLINE_SRC@,$READLINE_SRC,;t t
18844 s,@working_dir@,$working_dir,;t t
18845 s,@scriptdir@,$scriptdir,;t t
18846 s,@dump_email@,$dump_email,;t t
18847 s,@job_email@,$job_email,;t t
18848 s,@smtp_host@,$smtp_host,;t t
18849 s,@piddir@,$piddir,;t t
18850 s,@subsysdir@,$subsysdir,;t t
18851 s,@baseport@,$baseport,;t t
18852 s,@dir_port@,$dir_port,;t t
18853 s,@fd_port@,$fd_port,;t t
18854 s,@sd_port@,$sd_port,;t t
18855 s,@dir_password@,$dir_password,;t t
18856 s,@fd_password@,$fd_password,;t t
18857 s,@sd_password@,$sd_password,;t t
18858 s,@dir_user@,$dir_user,;t t
18859 s,@dir_group@,$dir_group,;t t
18860 s,@sd_user@,$sd_user,;t t
18861 s,@sd_group@,$sd_group,;t t
18862 s,@fd_user@,$fd_user,;t t
18863 s,@fd_group@,$fd_group,;t t
18864 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18865 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18866 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18867 s,@cats@,$cats,;t t
18868 s,@DB_NAME@,$DB_NAME,;t t
18869 s,@GETCONF@,$GETCONF,;t t
18870 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18871 s,@X_CFLAGS@,$X_CFLAGS,;t t
18872 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18873 s,@X_LIBS@,$X_LIBS,;t t
18874 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18875 s,@LIBOBJS@,$LIBOBJS,;t t
18876 s,@ALLOCA@,$ALLOCA,;t t
18877 s,@FDLIBS@,$FDLIBS,;t t
18878 s,@DEBUG@,$DEBUG,;t t
18879 s,@DINCLUDE@,$DINCLUDE,;t t
18880 s,@DLIB@,$DLIB,;t t
18881 s,@DB_LIBS@,$DB_LIBS,;t t
18882 s,@WCFLAGS@,$WCFLAGS,;t t
18883 s,@WLDFLAGS@,$WLDFLAGS,;t t
18884 s,@OBJLIST@,$OBJLIST,;t t
18885 s,@hostname@,$hostname,;t t
18886 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18887 s,@PSCMD@,$PSCMD,;t t
18888 s,@WIN32@,$WIN32,;t t
18889 s,@DISTNAME@,$DISTNAME,;t t
18890 s,@DISTVER@,$DISTVER,;t t
18891 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18892 /@MCOMMON@/r $MCOMMON
18898 cat >>$CONFIG_STATUS <<\_ACEOF
18899 # Split the substitutions into bite-sized pieces for seds with
18900 # small command number limits, like on Digital OSF/1 and HP-UX.
18901 ac_max_sed_lines=48
18902 ac_sed_frag=1 # Number of current file.
18903 ac_beg=1 # First line for current file.
18904 ac_end=$ac_max_sed_lines # Line after last line for current file.
18907 while $ac_more_lines; do
18908 if test $ac_beg -gt 1; then
18909 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18911 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18913 if test ! -s $tmp/subs.frag; then
18914 ac_more_lines=false
18916 # The purpose of the label and of the branching condition is to
18917 # speed up the sed processing (if there are no `@' at all, there
18918 # is no need to browse any of the substitutions).
18919 # These are the two extra sed commands mentioned above.
18921 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18922 if test -z "$ac_sed_cmds"; then
18923 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18925 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18927 ac_sed_frag=`expr $ac_sed_frag + 1`
18929 ac_end=`expr $ac_end + $ac_max_sed_lines`
18932 if test -z "$ac_sed_cmds"; then
18935 fi # test -n "$CONFIG_FILES"
18938 cat >>$CONFIG_STATUS <<\_ACEOF
18939 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18940 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18942 - | *:- | *:-:* ) # input from stdin
18944 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18945 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18946 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18947 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18948 * ) ac_file_in=$ac_file.in ;;
18951 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18952 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18953 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18954 X"$ac_file" : 'X\(//\)[^/]' \| \
18955 X"$ac_file" : 'X\(//\)$' \| \
18956 X"$ac_file" : 'X\(/\)' \| \
18957 . : '\(.\)' 2>/dev/null ||
18959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18961 /^X\(\/\/\)$/{ s//\1/; q; }
18962 /^X\(\/\).*/{ s//\1/; q; }
18964 { if $as_mkdir_p; then
18969 while test ! -d "$as_dir"; do
18970 as_dirs="$as_dir $as_dirs"
18971 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18972 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18973 X"$as_dir" : 'X\(//\)[^/]' \| \
18974 X"$as_dir" : 'X\(//\)$' \| \
18975 X"$as_dir" : 'X\(/\)' \| \
18976 . : '\(.\)' 2>/dev/null ||
18978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18979 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18980 /^X\(\/\/\)$/{ s//\1/; q; }
18981 /^X\(\/\).*/{ s//\1/; q; }
18984 test ! -n "$as_dirs" || mkdir $as_dirs
18985 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18986 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18987 { (exit 1); exit 1; }; }; }
18991 if test "$ac_dir" != .; then
18992 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18993 # A "../" for each directory in $ac_dir_suffix.
18994 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18996 ac_dir_suffix= ac_top_builddir=
19000 .) # No --srcdir option. We are building in place.
19002 if test -z "$ac_top_builddir"; then
19005 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19007 [\\/]* | ?:[\\/]* ) # Absolute path.
19008 ac_srcdir=$srcdir$ac_dir_suffix;
19009 ac_top_srcdir=$srcdir ;;
19010 *) # Relative path.
19011 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19012 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19014 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19016 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19017 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19018 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19019 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19023 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19024 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19027 if test x"$ac_file" != x-; then
19028 { echo "$as_me:$LINENO: creating $ac_file" >&5
19029 echo "$as_me: creating $ac_file" >&6;}
19032 # Let's still pretend it is `configure' which instantiates (i.e., don't
19033 # use $as_me), people would be surprised to read:
19034 # /* config.h. Generated by config.status. */
19035 if test x"$ac_file" = x-; then
19038 configure_input="$ac_file. "
19040 configure_input=$configure_input"Generated from `echo $ac_file_in |
19041 sed 's,.*/,,'` by configure."
19043 # First look for the input files in the build tree, otherwise in the
19045 ac_file_inputs=`IFS=:
19046 for f in $ac_file_in; do
19048 -) echo $tmp/stdin ;;
19050 # Absolute (can't be DOS-style, as IFS=:)
19051 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19052 echo "$as_me: error: cannot find input file: $f" >&2;}
19053 { (exit 1); exit 1; }; }
19056 if test -f "$f"; then
19059 elif test -f "$srcdir/$f"; then
19064 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19065 echo "$as_me: error: cannot find input file: $f" >&2;}
19066 { (exit 1); exit 1; }; }
19069 done` || { (exit 1); exit 1; }
19071 cat >>$CONFIG_STATUS <<_ACEOF
19075 cat >>$CONFIG_STATUS <<\_ACEOF
19077 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19078 s,@configure_input@,$configure_input,;t t
19079 s,@srcdir@,$ac_srcdir,;t t
19080 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19081 s,@top_srcdir@,$ac_top_srcdir,;t t
19082 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19083 s,@builddir@,$ac_builddir,;t t
19084 s,@abs_builddir@,$ac_abs_builddir,;t t
19085 s,@top_builddir@,$ac_top_builddir,;t t
19086 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19087 s,@INSTALL@,$ac_INSTALL,;t t
19088 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19090 if test x"$ac_file" != x-; then
19091 mv $tmp/out $ac_file
19099 cat >>$CONFIG_STATUS <<\_ACEOF
19102 # CONFIG_HEADER section.
19105 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19106 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19108 # ac_d sets the value in "#define NAME VALUE" lines.
19109 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19110 ac_dB='[ ].*$,\1#\2'
19113 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19114 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19115 ac_uB='$,\1#\2define\3'
19119 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19120 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19122 - | *:- | *:-:* ) # input from stdin
19124 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19125 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19126 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19127 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19128 * ) ac_file_in=$ac_file.in ;;
19131 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19132 echo "$as_me: creating $ac_file" >&6;}
19134 # First look for the input files in the build tree, otherwise in the
19136 ac_file_inputs=`IFS=:
19137 for f in $ac_file_in; do
19139 -) echo $tmp/stdin ;;
19141 # Absolute (can't be DOS-style, as IFS=:)
19142 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19143 echo "$as_me: error: cannot find input file: $f" >&2;}
19144 { (exit 1); exit 1; }; }
19147 if test -f "$f"; then
19150 elif test -f "$srcdir/$f"; then
19155 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19156 echo "$as_me: error: cannot find input file: $f" >&2;}
19157 { (exit 1); exit 1; }; }
19160 done` || { (exit 1); exit 1; }
19161 # Remove the trailing spaces.
19162 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19166 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19167 # `conftest.undefs', that substitutes the proper values into
19168 # config.h.in to produce config.h. The first handles `#define'
19169 # templates, and the second `#undef' templates.
19170 # And first: Protect against being on the right side of a sed subst in
19171 # config.status. Protect against being in an unquoted here document
19172 # in config.status.
19173 rm -f conftest.defines conftest.undefs
19174 # Using a here document instead of a string reduces the quoting nightmare.
19175 # Putting comments in sed scripts is not portable.
19177 # `end' is used to avoid that the second main sed command (meant for
19178 # 0-ary CPP macros) applies to n-ary macro definitions.
19179 # See the Autoconf documentation for `clear'.
19180 cat >confdef2sed.sed <<\_ACEOF
19185 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19187 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19190 # If some macros were called several times there might be several times
19191 # the same #defines, which is useless. Nevertheless, we may not want to
19192 # sort them, since we want the *last* AC-DEFINE to be honored.
19193 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19194 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19195 rm -f confdef2sed.sed
19197 # This sed command replaces #undef with comments. This is necessary, for
19198 # example, in the case of _POSIX_SOURCE, which is predefined and required
19199 # on some systems where configure will not decide to define it.
19200 cat >>conftest.undefs <<\_ACEOF
19201 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19204 # Break up conftest.defines because some shells have a limit on the size
19205 # of here documents, and old seds have small limits too (100 cmds).
19206 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19207 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19208 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19209 echo ' :' >>$CONFIG_STATUS
19210 rm -f conftest.tail
19211 while grep . conftest.defines >/dev/null
19213 # Write a limited-size here document to $tmp/defines.sed.
19214 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19215 # Speed up: don't consider the non `#define' lines.
19216 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19217 # Work around the forget-to-reset-the-flag bug.
19218 echo 't clr' >>$CONFIG_STATUS
19219 echo ': clr' >>$CONFIG_STATUS
19220 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19222 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19224 mv $tmp/out $tmp/in
19226 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19227 rm -f conftest.defines
19228 mv conftest.tail conftest.defines
19230 rm -f conftest.defines
19231 echo ' fi # grep' >>$CONFIG_STATUS
19232 echo >>$CONFIG_STATUS
19234 # Break up conftest.undefs because some shells have a limit on the size
19235 # of here documents, and old seds have small limits too (100 cmds).
19236 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19237 rm -f conftest.tail
19238 while grep . conftest.undefs >/dev/null
19240 # Write a limited-size here document to $tmp/undefs.sed.
19241 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19242 # Speed up: don't consider the non `#undef'
19243 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19244 # Work around the forget-to-reset-the-flag bug.
19245 echo 't clr' >>$CONFIG_STATUS
19246 echo ': clr' >>$CONFIG_STATUS
19247 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19249 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19251 mv $tmp/out $tmp/in
19253 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19254 rm -f conftest.undefs
19255 mv conftest.tail conftest.undefs
19257 rm -f conftest.undefs
19259 cat >>$CONFIG_STATUS <<\_ACEOF
19260 # Let's still pretend it is `configure' which instantiates (i.e., don't
19261 # use $as_me), people would be surprised to read:
19262 # /* config.h. Generated by config.status. */
19263 if test x"$ac_file" = x-; then
19264 echo "/* Generated by configure. */" >$tmp/config.h
19266 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19268 cat $tmp/in >>$tmp/config.h
19270 if test x"$ac_file" != x-; then
19271 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19272 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19273 echo "$as_me: $ac_file is unchanged" >&6;}
19275 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19276 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19277 X"$ac_file" : 'X\(//\)[^/]' \| \
19278 X"$ac_file" : 'X\(//\)$' \| \
19279 X"$ac_file" : 'X\(/\)' \| \
19280 . : '\(.\)' 2>/dev/null ||
19282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19283 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19284 /^X\(\/\/\)$/{ s//\1/; q; }
19285 /^X\(\/\).*/{ s//\1/; q; }
19287 { if $as_mkdir_p; then
19292 while test ! -d "$as_dir"; do
19293 as_dirs="$as_dir $as_dirs"
19294 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19296 X"$as_dir" : 'X\(//\)[^/]' \| \
19297 X"$as_dir" : 'X\(//\)$' \| \
19298 X"$as_dir" : 'X\(/\)' \| \
19299 . : '\(.\)' 2>/dev/null ||
19301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19302 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19303 /^X\(\/\/\)$/{ s//\1/; q; }
19304 /^X\(\/\).*/{ s//\1/; q; }
19307 test ! -n "$as_dirs" || mkdir $as_dirs
19308 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19309 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19310 { (exit 1); exit 1; }; }; }
19313 mv $tmp/config.h $ac_file
19317 rm -f $tmp/config.h
19321 cat >>$CONFIG_STATUS <<\_ACEOF
19324 # CONFIG_COMMANDS section.
19326 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19327 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19328 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19329 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19330 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19331 X"$ac_dest" : 'X\(//\)[^/]' \| \
19332 X"$ac_dest" : 'X\(//\)$' \| \
19333 X"$ac_dest" : 'X\(/\)' \| \
19334 . : '\(.\)' 2>/dev/null ||
19336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19337 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19338 /^X\(\/\/\)$/{ s//\1/; q; }
19339 /^X\(\/\).*/{ s//\1/; q; }
19343 if test "$ac_dir" != .; then
19344 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19345 # A "../" for each directory in $ac_dir_suffix.
19346 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19348 ac_dir_suffix= ac_top_builddir=
19352 .) # No --srcdir option. We are building in place.
19354 if test -z "$ac_top_builddir"; then
19357 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19359 [\\/]* | ?:[\\/]* ) # Absolute path.
19360 ac_srcdir=$srcdir$ac_dir_suffix;
19361 ac_top_srcdir=$srcdir ;;
19362 *) # Relative path.
19363 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19364 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19366 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19368 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19369 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19370 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19371 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19374 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19375 echo "$as_me: executing $ac_dest commands" >&6;}
19377 default ) (echo "Doing make of dependencies"; make depend;)
19383 cat >>$CONFIG_STATUS <<\_ACEOF
19385 { (exit 0); exit 0; }
19387 chmod +x $CONFIG_STATUS
19388 ac_clean_files=$ac_clean_files_save
19391 # configure is writing to config.log, and then calls config.status.
19392 # config.status does its own redirection, appending to config.log.
19393 # Unfortunately, on DOS this fails, as config.log is still kept open
19394 # by configure, so config.status won't be able to write to it; its
19395 # output is simply discarded. So we exec the FD to /dev/null,
19396 # effectively closing config.log, so it can be properly (re)opened and
19397 # appended to by config.status. When coming back to configure, we
19398 # need to make the FD available again.
19399 if test "$no_create" != yes; then
19401 ac_config_status_args=
19402 test "$silent" = yes &&
19403 ac_config_status_args="$ac_config_status_args --quiet"
19405 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19407 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19408 # would make configure fail if this is the last instruction.
19409 $ac_cs_success || { (exit 1); exit 1; }
19414 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19415 chmod 755 bconsole gconsole mtx-changer devel_bacula
19420 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
19421 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
19423 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
19424 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
19426 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
19427 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
19429 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
19430 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
19432 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
19433 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
19435 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19436 chmod 755 $c/sqlite
19439 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19440 largefile_support="yes"
19444 # A whole lot of hand springs to get the compiler version.
19445 # This is because gcc changed the output in version 3.0
19447 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19448 if test "x${CCVERSION}" = "x" ; then
19449 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19451 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19452 if test x"${CXXVERSION}" = x ; then
19453 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19456 if test "x${subsysdir}" = "x${sbindir}" ; then
19459 echo "You have set --sbindir and --with-subsys-dir"
19460 echo " both equal to: ${subsysdir} "
19461 echo " This is not permitted. Please reconfigure."
19462 echo "Aborting configuration ..."
19469 Configuration on `date`:
19471 Host: $host -- ${DISTNAME} ${DISTVER}
19472 Bacula version: ${VERSION} (${DATE})
19473 Source code location: ${srcdir}
19474 Install binaries: ${sbindir}
19475 Install config files: ${sysconfdir}
19476 Scripts directory: ${scriptdir}
19477 Working directory: ${working_dir}
19478 PID directory: ${piddir}
19479 Subsys directory: ${subsysdir}
19480 C Compiler: ${CC} ${CCVERSION}
19481 C++ Compiler: ${CXX} ${CXXVERSION}
19482 Compiler flags: ${WCFLAGS} ${CFLAGS}
19483 Linker flags: ${WLDFLAGS} ${LDFLAGS}
19485 Statically Linked Tools: ${support_static_tools}
19486 Statically Linked FD: ${support_static_fd}
19487 Statically Linked SD: ${support_static_sd}
19488 Statically Linked DIR: ${support_static_dir}
19489 Statically Linked CONS: ${support_static_cons}
19490 Database type: ${db_name}
19491 Database lib: ${DB_LIBS}
19493 Job Output Email: ${job_email}
19494 Traceback Email: ${dump_email}
19495 SMTP Host Address: ${smtp_host}
19497 Director Port: ${dir_port}
19498 File daemon Port: ${fd_port}
19499 Storage daemon Port: ${sd_port}
19501 Director User: ${dir_user}
19502 Director Group: ${dir_group}
19503 Storage Daemon User: ${sd_user}
19504 Storage DaemonGroup: ${sd_group}
19505 File Daemon User: ${fd_user}
19506 File Daemon Group: ${fd_group}
19508 SQL binaries Directory ${SQL_BINDIR}
19510 Large file support: $largefile_support
19511 Bacula conio support: ${got_conio} ${CONS_LIBS}
19512 readline support: ${got_readline} ${PRTREADLINE_SRC}
19513 TCP Wrappers support: ${TCPW_MSG}
19514 ZLIB support: ${have_zlib}
19515 enable-smartalloc: ${support_smartalloc}
19516 enable-gnome: ${support_gnome} ${gnome_version}
19517 client-only: ${build_client_only}
19524 # cweb support: ${got_cweb} ${CWEB_SRC}
19525 # gmp support: ${got_gmp} ${GMP_SRC}