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 ${sysconfdir}/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
7046 echo "$as_me:$LINENO: result: no" >&5
7047 echo "${ECHO_T}no" >&6
7048 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7049 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7050 { (exit 1); exit 1; }; }
7052 elif test -f $withval/libpq-fe.h; then
7053 POSTGRESQL_INCDIR=$withval
7054 POSTGRESQL_LIBDIR=$withval
7055 POSTGRESQL_BINDIR=$withval
7057 echo "$as_me:$LINENO: result: no" >&5
7058 echo "${ECHO_T}no" >&6
7059 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7060 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7061 { (exit 1); exit 1; }; }
7063 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7064 echo "$as_me:$LINENO: checking for crypt" >&5
7065 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7066 if test "${ac_cv_func_crypt+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 cat >conftest.$ac_ext <<_ACEOF
7070 #line $LINENO "configure"
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7076 /* System header to define __stub macros and hopefully few prototypes,
7077 which can conflict with char crypt (); below.
7078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7079 <limits.h> exists even on freestanding compilers. */
7081 # include <limits.h>
7083 # include <assert.h>
7085 /* Override any gcc2 internal prototype to avoid an error. */
7090 /* We use char because int might match the return type of a gcc2
7091 builtin and then its argument prototype would still apply. */
7093 /* The GNU C library defines this for functions which it implements
7094 to always fail with ENOSYS. Some functions are actually named
7095 something starting with __ and the normal name is an alias. */
7096 #if defined (__stub_crypt) || defined (__stub___crypt)
7099 char (*f) () = crypt;
7113 rm -f conftest.$ac_objext conftest$ac_exeext
7114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7115 (eval $ac_link) 2>&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
7119 { ac_try='test -s conftest$ac_exeext'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; }; then
7125 ac_cv_func_crypt=yes
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7134 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7135 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7136 if test $ac_cv_func_crypt = yes; then
7139 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7140 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7141 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 ac_check_lib_save_LIBS=$LIBS
7145 LIBS="-lcrypt $LIBS"
7146 cat >conftest.$ac_ext <<_ACEOF
7147 #line $LINENO "configure"
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h. */
7154 /* Override any gcc2 internal prototype to avoid an error. */
7158 /* We use char because int might match the return type of a gcc2
7159 builtin and then its argument prototype would still apply. */
7169 rm -f conftest.$ac_objext conftest$ac_exeext
7170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7171 (eval $ac_link) 2>&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } &&
7175 { ac_try='test -s conftest$ac_exeext'
7176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); }; }; then
7181 ac_cv_lib_crypt_crypt=yes
7183 echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7186 ac_cv_lib_crypt_crypt=no
7188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7189 LIBS=$ac_check_lib_save_LIBS
7191 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7192 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7193 if test $ac_cv_lib_crypt_crypt = yes; then
7194 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7199 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7200 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7201 SQL_BINDIR=$POSTGRESQL_BINDIR
7202 cat >>confdefs.h <<\_ACEOF
7203 #define HAVE_POSTGRESQL 1
7206 echo "$as_me:$LINENO: result: yes" >&5
7207 echo "${ECHO_T}yes" >&6
7209 support_postgresql=yes
7213 echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6
7219 echo "$as_me:$LINENO: result: no" >&5
7220 echo "${ECHO_T}no" >&6
7231 echo "$as_me:$LINENO: checking for MySQL support" >&5
7232 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7234 # Check whether --with-mysql or --without-mysql was given.
7235 if test "${with_mysql+set}" = set; then
7236 withval="$with_mysql"
7238 if test "$withval" != "no"; then
7239 if test "$withval" = "yes"; then
7240 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7241 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7242 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7243 MYSQL_BINDIR=/usr/local/mysql/bin
7244 elif test -f /usr/include/mysql/mysql.h; then
7245 MYSQL_INCDIR=/usr/include/mysql
7246 MYSQL_LIBDIR=/usr/lib/mysql
7247 MYSQL_BINDIR=/usr/bin
7248 elif test -f /usr/include/mysql.h; then
7249 MYSQL_INCDIR=/usr/include
7250 MYSQL_LIBDIR=/usr/lib
7251 MYSQL_BINDIR=/usr/bin
7252 elif test -f /usr/local/include/mysql/mysql.h; then
7253 MYSQL_INCDIR=/usr/local/include/mysql
7254 MYSQL_LIBDIR=/usr/local/lib/mysql
7255 MYSQL_BINDIR=/usr/local/bin
7256 elif test -f /usr/local/include/mysql.h; then
7257 MYSQL_INCDIR=/usr/local/include
7258 MYSQL_LIBDIR=/usr/local/lib
7259 MYSQL_BINDIR=/usr/local/bin
7261 echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6
7263 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7264 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7265 { (exit 1); exit 1; }; }
7268 if test -f $withval/include/mysql/mysql.h; then
7269 MYSQL_INCDIR=$withval/include/mysql
7270 MYSQL_LIBDIR=$withval/lib/mysql
7271 MYSQL_BINDIR=$withval/bin
7272 elif test -f $withval/include/mysql.h; then
7273 MYSQL_INCDIR=$withval/include
7274 MYSQL_LIBDIR=$withval/lib
7275 MYSQL_BINDIR=$withval/bin
7277 echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6
7279 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7280 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7281 { (exit 1); exit 1; }; }
7284 SQL_INCLUDE=-I$MYSQL_INCDIR
7285 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7286 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7287 cat >>confdefs.h <<\_ACEOF
7288 #define HAVE_THREAD_SAFE_MYSQL 1
7292 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7294 SQL_BINDIR=$MYSQL_BINDIR
7296 cat >>confdefs.h <<\_ACEOF
7297 #define HAVE_MYSQL 1
7300 echo "$as_me:$LINENO: result: yes" >&5
7301 echo "${ECHO_T}yes" >&6
7308 echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6
7314 echo "$as_me:$LINENO: result: no" >&5
7315 echo "${ECHO_T}no" >&6
7320 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7321 if test "${with_embedded_mysql+set}" = set; then
7322 withval="$with_embedded_mysql"
7324 if test "$withval" != "no"; then
7325 if test "$withval" = "yes"; then
7326 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7327 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7328 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7329 MYSQL_BINDIR=/usr/local/mysql/bin
7330 elif test -f /usr/include/mysql/mysql.h; then
7331 MYSQL_INCDIR=/usr/include/mysql
7332 MYSQL_LIBDIR=/usr/lib/mysql
7333 MYSQL_BINDIR=/usr/bin
7334 elif test -f /usr/include/mysql.h; then
7335 MYSQL_INCDIR=/usr/include
7336 MYSQL_LIBDIR=/usr/lib
7337 MYSQL_BINDIR=/usr/bin
7338 elif test -f /usr/local/include/mysql/mysql.h; then
7339 MYSQL_INCDIR=/usr/local/include/mysql
7340 MYSQL_LIBDIR=/usr/local/lib/mysql
7341 MYSQL_BINDIR=/usr/local/bin
7342 elif test -f /usr/local/include/mysql.h; then
7343 MYSQL_INCDIR=/usr/local/include
7344 MYSQL_LIBDIR=/usr/local/lib
7345 MYSQL_BINDIR=/usr/local/bin
7347 echo "$as_me:$LINENO: result: no" >&5
7348 echo "${ECHO_T}no" >&6
7349 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7350 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7351 { (exit 1); exit 1; }; }
7354 if test -f $withval/include/mysql/mysql.h; then
7355 MYSQL_INCDIR=$withval/include/mysql
7356 MYSQL_LIBDIR=$withval/lib/mysql
7357 MYSQL_BINDIR=$withval/bin
7358 elif test -f $withval/include/mysql.h; then
7359 MYSQL_INCDIR=$withval/include
7360 MYSQL_LIBDIR=$withval/lib
7361 MYSQL_BINDIR=$withval/bin
7363 echo "$as_me:$LINENO: result: no" >&5
7364 echo "${ECHO_T}no" >&6
7365 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7366 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7367 { (exit 1); exit 1; }; }
7370 SQL_INCLUDE=-I$MYSQL_INCDIR
7371 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7372 SQL_BINDIR=$MYSQL_BINDIR
7374 cat >>confdefs.h <<\_ACEOF
7375 #define HAVE_MYSQL 1
7378 cat >>confdefs.h <<\_ACEOF
7379 #define HAVE_EMBEDDED_MYSQL 1
7382 echo "$as_me:$LINENO: result: yes" >&5
7383 echo "${ECHO_T}yes" >&6
7390 echo "$as_me:$LINENO: result: no" >&5
7391 echo "${ECHO_T}no" >&6
7396 echo "$as_me:$LINENO: result: no" >&5
7397 echo "${ECHO_T}no" >&6
7410 echo "$as_me:$LINENO: checking for SQLite support" >&5
7411 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7413 # Check whether --with-sqlite or --without-sqlite was given.
7414 if test "${with_sqlite+set}" = set; then
7415 withval="$with_sqlite"
7417 if test "$withval" != "no"; then
7418 if test "$withval" = "yes"; then
7419 if test -f /usr/local/include/sqlite.h; then
7420 SQLITE_INCDIR=/usr/local/include
7421 SQLITE_LIBDIR=/usr/local/lib
7422 SQLITE_BINDIR=/usr/local/bin
7423 elif test -f /usr/include/sqlite.h; then
7424 SQLITE_INCDIR=/usr/include
7425 SQLITE_LIBDIR=/usr/lib
7426 SQLITE_BINDIR=/usr/bin
7428 echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6
7430 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7431 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7432 { (exit 1); exit 1; }; }
7435 if test -f $withval/sqlite.h; then
7436 SQLITE_INCDIR=$withval
7437 SQLITE_LIBDIR=$withval
7438 SQLITE_BINDIR=$withval
7440 echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6
7442 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7443 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7444 { (exit 1); exit 1; }; }
7447 SQL_INCLUDE=-I$SQLITE_INCDIR
7448 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7449 SQL_BINDIR=$SQLITE_BINDIR
7451 cat >>confdefs.h <<\_ACEOF
7452 #define HAVE_SQLITE 1
7455 echo "$as_me:$LINENO: result: yes" >&5
7456 echo "${ECHO_T}yes" >&6
7463 echo "$as_me:$LINENO: result: no" >&5
7464 echo "${ECHO_T}no" >&6
7469 echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6
7482 cat >>confdefs.h <<\_ACEOF
7483 #define PROTOTYPES 1
7487 if test -z "$CFLAGS"; then
7488 if test -z "$CCOPTS"; then
7497 largefile_support="no"
7499 # Check whether --enable-largefile or --disable-largefile was given.
7500 if test "${enable_largefile+set}" = set; then
7501 enableval="$enable_largefile"
7504 if test "$enable_largefile" != no; then
7505 if test -n "$ac_tool_prefix"; then
7506 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7507 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7508 echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7510 if test "${ac_cv_prog_GETCONF+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 if test -n "$GETCONF"; then
7514 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7523 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 GETCONF=$ac_cv_prog_GETCONF
7533 if test -n "$GETCONF"; then
7534 echo "$as_me:$LINENO: result: $GETCONF" >&5
7535 echo "${ECHO_T}$GETCONF" >&6
7537 echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6
7542 if test -z "$ac_cv_prog_GETCONF"; then
7543 ac_ct_GETCONF=$GETCONF
7544 # Extract the first word of "getconf", so it can be a program name with args.
7545 set dummy getconf; ac_word=$2
7546 echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7548 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 if test -n "$ac_ct_GETCONF"; then
7552 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561 ac_cv_prog_ac_ct_GETCONF="getconf"
7562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7571 if test -n "$ac_ct_GETCONF"; then
7572 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7573 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7575 echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6
7579 GETCONF=$ac_ct_GETCONF
7581 GETCONF="$ac_cv_prog_GETCONF"
7584 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7585 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7586 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7590 ac_cv_sys_largefile_CFLAGS=no
7592 # IRIX 6.2 and later require cc -n32.
7593 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7594 if test "$GCC" != yes; then
7595 ac_cv_sys_largefile_CFLAGS=-n32
7598 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7599 cat >conftest.$ac_ext <<_ACEOF
7600 #line $LINENO "configure"
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7615 rm -f conftest.$ac_objext conftest$ac_exeext
7616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7617 (eval $ac_link) 2>&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } &&
7621 { ac_try='test -s conftest$ac_exeext'
7622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; }; then
7629 echo "$as_me: failed program was:" >&5
7630 sed 's/^/| /' conftest.$ac_ext >&5
7632 ac_cv_sys_largefile_CFLAGS=no
7634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7639 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7640 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7641 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7642 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7643 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7647 ac_cv_sys_largefile_LDFLAGS=no
7651 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7652 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7653 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7654 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7655 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7659 ac_cv_sys_largefile_LIBS=no
7663 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7664 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7666 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7669 -D_FILE_OFFSET_BITS=*) ;;
7670 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7671 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7677 '') CPPFLAGS="$ac_flag" ;;
7678 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7686 '') CFLAGS="$ac_flag" ;;
7687 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7692 case "$ac_cv_sys_largefile_LDFLAGS" in
7696 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7697 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7700 case "$ac_cv_sys_largefile_LIBS" in
7704 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7705 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7708 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7709 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7710 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 ac_cv_sys_file_offset_bits=no
7715 # HP-UX 10.20 and later
7716 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7717 ac_cv_sys_file_offset_bits=64 ;;
7719 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7721 -D_FILE_OFFSET_BITS)
7722 ac_cv_sys_file_offset_bits=1 ;;
7723 -D_FILE_OFFSET_BITS=*)
7724 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7729 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7730 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7731 if test "$ac_cv_sys_file_offset_bits" != no; then
7733 cat >>confdefs.h <<_ACEOF
7734 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7738 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7739 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7740 if test "${ac_cv_sys_largefile_source+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 ac_cv_sys_largefile_source=no
7745 # HP-UX 10.20 and later
7746 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7747 ac_cv_sys_largefile_source=1 ;;
7749 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7751 -D_LARGEFILE_SOURCE)
7752 ac_cv_sys_largefile_source=1 ;;
7753 -D_LARGEFILE_SOURCE=*)
7754 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7759 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7760 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7761 if test "$ac_cv_sys_largefile_source" != no; then
7763 cat >>confdefs.h <<_ACEOF
7764 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7768 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7769 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7770 if test "${ac_cv_sys_large_files+set}" = set; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 ac_cv_sys_large_files=no
7776 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7777 ac_cv_sys_large_files=1 ;;
7779 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7782 ac_cv_sys_large_files=1 ;;
7784 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7789 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7790 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7791 if test "$ac_cv_sys_large_files" != no; then
7793 cat >>confdefs.h <<_ACEOF
7794 #define _LARGE_FILES $ac_cv_sys_large_files
7802 echo "$as_me:$LINENO: checking for X" >&5
7803 echo $ECHO_N "checking for X... $ECHO_C" >&6
7806 # Check whether --with-x or --without-x was given.
7807 if test "${with_x+set}" = set; then
7811 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7812 if test "x$with_x" = xno; then
7813 # The user explicitly disabled X.
7816 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7817 # Both variables are already set.
7820 if test "${ac_cv_have_x+set}" = set; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 # One or both of the vars are not set, and there is no cached value.
7824 ac_x_includes=no ac_x_libraries=no
7826 if mkdir conftest.dir; then
7828 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7829 cat >Imakefile <<'_ACEOF'
7831 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7833 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7834 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7835 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7836 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7837 for ac_extension in a so sl; do
7838 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7839 test -f $ac_im_libdir/libX11.$ac_extension; then
7840 ac_im_usrlibdir=$ac_im_libdir; break
7843 # Screen out bogus values from the imake configuration. They are
7844 # bogus both because they are the default anyway, and because
7845 # using them would break gcc on systems where it needs fixed includes.
7846 case $ac_im_incroot in
7848 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7850 case $ac_im_usrlibdir in
7852 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7859 # Standard set of common directories for X headers.
7860 # Check X11 before X11Rn because it is often a symlink to the current release.
7872 /usr/local/X11/include
7873 /usr/local/X11R6/include
7874 /usr/local/X11R5/include
7875 /usr/local/X11R4/include
7877 /usr/local/include/X11
7878 /usr/local/include/X11R6
7879 /usr/local/include/X11R5
7880 /usr/local/include/X11R4
7884 /usr/XFree86/include/X11
7888 /usr/unsupported/include
7890 /usr/local/x11r5/include
7891 /usr/lpp/Xamples/include
7893 /usr/openwin/include
7894 /usr/openwin/share/include'
7896 if test "$ac_x_includes" = no; then
7897 # Guess where to find include files, by looking for Intrinsic.h.
7898 # First, try using that file with no special directory specified.
7899 cat >conftest.$ac_ext <<_ACEOF
7900 #line $LINENO "configure"
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7906 #include <X11/Intrinsic.h>
7908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7911 grep -v '^ *+' conftest.er1 >conftest.err
7913 cat conftest.err >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } >/dev/null; then
7916 if test -s conftest.err; then
7917 ac_cpp_err=$ac_c_preproc_warn_flag
7924 if test -z "$ac_cpp_err"; then
7925 # We can compile using X headers with no special include directory.
7928 echo "$as_me: failed program was:" >&5
7929 sed 's/^/| /' conftest.$ac_ext >&5
7931 for ac_dir in $ac_x_header_dirs; do
7932 if test -r "$ac_dir/X11/Intrinsic.h"; then
7933 ac_x_includes=$ac_dir
7938 rm -f conftest.err conftest.$ac_ext
7939 fi # $ac_x_includes = no
7941 if test "$ac_x_libraries" = no; then
7942 # Check for the libraries.
7943 # See if we find them without any special options.
7944 # Don't add to $LIBS permanently.
7947 cat >conftest.$ac_ext <<_ACEOF
7948 #line $LINENO "configure"
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7954 #include <X11/Intrinsic.h>
7963 rm -f conftest.$ac_objext conftest$ac_exeext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7965 (eval $ac_link) 2>&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } &&
7969 { ac_try='test -s conftest$ac_exeext'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7976 # We can link X programs with no special library path.
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7983 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7985 # Don't even attempt the hair of trying to link an X program!
7986 for ac_extension in a so sl; do
7987 if test -r $ac_dir/libXt.$ac_extension; then
7988 ac_x_libraries=$ac_dir
7994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7995 fi # $ac_x_libraries = no
7997 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7998 # Didn't find X anywhere. Cache the known absence of X.
7999 ac_cv_have_x="have_x=no"
8001 # Record where we found X for the cache.
8002 ac_cv_have_x="have_x=yes \
8003 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8008 eval "$ac_cv_have_x"
8011 if test "$have_x" != yes; then
8012 echo "$as_me:$LINENO: result: $have_x" >&5
8013 echo "${ECHO_T}$have_x" >&6
8016 # If each of the values was on the command line, it overrides each guess.
8017 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8018 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8019 # Update the cache value to reflect the command line values.
8020 ac_cv_have_x="have_x=yes \
8021 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8022 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8023 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8026 if test "$no_x" = yes; then
8027 # Not all programs may use this symbol, but it does not hurt to define it.
8029 cat >>confdefs.h <<\_ACEOF
8030 #define X_DISPLAY_MISSING 1
8033 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8035 if test -n "$x_includes"; then
8036 X_CFLAGS="$X_CFLAGS -I$x_includes"
8039 # It would also be nice to do this for all -L options, not just this one.
8040 if test -n "$x_libraries"; then
8041 X_LIBS="$X_LIBS -L$x_libraries"
8042 # For Solaris; some versions of Sun CC require a space after -R and
8043 # others require no space. Words are not sufficient . . . .
8044 case `(uname -sr) 2>/dev/null` in
8046 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8047 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8048 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8049 cat >conftest.$ac_ext <<_ACEOF
8050 #line $LINENO "configure"
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8065 rm -f conftest.$ac_objext conftest$ac_exeext
8066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8067 (eval $ac_link) 2>&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } &&
8071 { ac_try='test -s conftest$ac_exeext'
8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; }; then
8079 echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8085 if test $ac_R_nospace = yes; then
8086 echo "$as_me:$LINENO: result: no" >&5
8087 echo "${ECHO_T}no" >&6
8088 X_LIBS="$X_LIBS -R$x_libraries"
8090 LIBS="$ac_xsave_LIBS -R $x_libraries"
8091 cat >conftest.$ac_ext <<_ACEOF
8092 #line $LINENO "configure"
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8107 rm -f conftest.$ac_objext conftest$ac_exeext
8108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8109 (eval $ac_link) 2>&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } &&
8113 { ac_try='test -s conftest$ac_exeext'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; }; then
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8127 if test $ac_R_space = yes; then
8128 echo "$as_me:$LINENO: result: yes" >&5
8129 echo "${ECHO_T}yes" >&6
8130 X_LIBS="$X_LIBS -R $x_libraries"
8132 echo "$as_me:$LINENO: result: neither works" >&5
8133 echo "${ECHO_T}neither works" >&6
8140 # Check for system-dependent libraries X programs must link with.
8141 # Do this before checking for the system-independent R6 libraries
8142 # (-lICE), since we may need -lsocket or whatever for X linking.
8144 if test "$ISC" = yes; then
8145 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8147 # Martyn Johnson says this is needed for Ultrix, if the X
8148 # libraries were built with DECnet support. And Karl Berry says
8149 # the Alpha needs dnet_stub (dnet does not exist).
8150 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8151 cat >conftest.$ac_ext <<_ACEOF
8152 #line $LINENO "configure"
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h. */
8159 /* Override any gcc2 internal prototype to avoid an error. */
8163 /* We use char because int might match the return type of a gcc2
8164 builtin and then its argument prototype would still apply. */
8165 char XOpenDisplay ();
8174 rm -f conftest.$ac_objext conftest$ac_exeext
8175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8176 (eval $ac_link) 2>&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } &&
8180 { ac_try='test -s conftest$ac_exeext'
8181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8191 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8192 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8193 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 ac_check_lib_save_LIBS=$LIBS
8198 cat >conftest.$ac_ext <<_ACEOF
8199 #line $LINENO "configure"
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h. */
8206 /* Override any gcc2 internal prototype to avoid an error. */
8210 /* We use char because int might match the return type of a gcc2
8211 builtin and then its argument prototype would still apply. */
8221 rm -f conftest.$ac_objext conftest$ac_exeext
8222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8223 (eval $ac_link) 2>&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } &&
8227 { ac_try='test -s conftest$ac_exeext'
8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
8233 ac_cv_lib_dnet_dnet_ntoa=yes
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8238 ac_cv_lib_dnet_dnet_ntoa=no
8240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8241 LIBS=$ac_check_lib_save_LIBS
8243 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8244 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8245 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8246 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8249 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8250 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8251 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8252 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8255 ac_check_lib_save_LIBS=$LIBS
8256 LIBS="-ldnet_stub $LIBS"
8257 cat >conftest.$ac_ext <<_ACEOF
8258 #line $LINENO "configure"
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h. */
8265 /* Override any gcc2 internal prototype to avoid an error. */
8269 /* We use char because int might match the return type of a gcc2
8270 builtin and then its argument prototype would still apply. */
8280 rm -f conftest.$ac_objext conftest$ac_exeext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282 (eval $ac_link) 2>&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } &&
8286 { ac_try='test -s conftest$ac_exeext'
8287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); }; }; then
8292 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8294 echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8297 ac_cv_lib_dnet_stub_dnet_ntoa=no
8299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8300 LIBS=$ac_check_lib_save_LIBS
8302 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8303 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8304 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8305 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8311 LIBS="$ac_xsave_LIBS"
8313 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8314 # to get the SysV transport functions.
8315 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8317 # The nsl library prevents programs from opening the X display
8318 # on Irix 5.2, according to T.E. Dickey.
8319 # The functions gethostbyname, getservbyname, and inet_addr are
8320 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8321 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8322 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8323 if test "${ac_cv_func_gethostbyname+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 cat >conftest.$ac_ext <<_ACEOF
8327 #line $LINENO "configure"
8330 cat confdefs.h >>conftest.$ac_ext
8331 cat >>conftest.$ac_ext <<_ACEOF
8332 /* end confdefs.h. */
8333 /* System header to define __stub macros and hopefully few prototypes,
8334 which can conflict with char gethostbyname (); below.
8335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8336 <limits.h> exists even on freestanding compilers. */
8338 # include <limits.h>
8340 # include <assert.h>
8342 /* Override any gcc2 internal prototype to avoid an error. */
8347 /* We use char because int might match the return type of a gcc2
8348 builtin and then its argument prototype would still apply. */
8349 char gethostbyname ();
8350 /* The GNU C library defines this for functions which it implements
8351 to always fail with ENOSYS. Some functions are actually named
8352 something starting with __ and the normal name is an alias. */
8353 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8356 char (*f) () = gethostbyname;
8365 return f != gethostbyname;
8370 rm -f conftest.$ac_objext conftest$ac_exeext
8371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372 (eval $ac_link) 2>&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } &&
8376 { ac_try='test -s conftest$ac_exeext'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 ac_cv_func_gethostbyname=yes
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8387 ac_cv_func_gethostbyname=no
8389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8391 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8392 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8394 if test $ac_cv_func_gethostbyname = no; then
8395 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8396 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8397 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8398 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 ac_check_lib_save_LIBS=$LIBS
8402 cat >conftest.$ac_ext <<_ACEOF
8403 #line $LINENO "configure"
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8410 /* Override any gcc2 internal prototype to avoid an error. */
8414 /* We use char because int might match the return type of a gcc2
8415 builtin and then its argument prototype would still apply. */
8416 char gethostbyname ();
8425 rm -f conftest.$ac_objext conftest$ac_exeext
8426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8427 (eval $ac_link) 2>&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } &&
8431 { ac_try='test -s conftest$ac_exeext'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; }; then
8437 ac_cv_lib_nsl_gethostbyname=yes
8439 echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8442 ac_cv_lib_nsl_gethostbyname=no
8444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8445 LIBS=$ac_check_lib_save_LIBS
8447 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8448 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8449 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8450 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8453 if test $ac_cv_lib_nsl_gethostbyname = no; then
8454 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8455 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8456 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8459 ac_check_lib_save_LIBS=$LIBS
8461 cat >conftest.$ac_ext <<_ACEOF
8462 #line $LINENO "configure"
8465 cat confdefs.h >>conftest.$ac_ext
8466 cat >>conftest.$ac_ext <<_ACEOF
8467 /* end confdefs.h. */
8469 /* Override any gcc2 internal prototype to avoid an error. */
8473 /* We use char because int might match the return type of a gcc2
8474 builtin and then its argument prototype would still apply. */
8475 char gethostbyname ();
8484 rm -f conftest.$ac_objext conftest$ac_exeext
8485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8486 (eval $ac_link) 2>&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } &&
8490 { ac_try='test -s conftest$ac_exeext'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; }; then
8496 ac_cv_lib_bsd_gethostbyname=yes
8498 echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8501 ac_cv_lib_bsd_gethostbyname=no
8503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8504 LIBS=$ac_check_lib_save_LIBS
8506 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8507 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8508 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8509 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8515 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8516 # socket/setsockopt and other routines are undefined under SCO ODT
8517 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8518 # on later versions), says Simon Leinen: it contains gethostby*
8519 # variants that don't use the name server (or something). -lsocket
8520 # must be given before -lnsl if both are needed. We assume that
8521 # if connect needs -lnsl, so does gethostbyname.
8522 echo "$as_me:$LINENO: checking for connect" >&5
8523 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8524 if test "${ac_cv_func_connect+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8527 cat >conftest.$ac_ext <<_ACEOF
8528 #line $LINENO "configure"
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8534 /* System header to define __stub macros and hopefully few prototypes,
8535 which can conflict with char connect (); below.
8536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8537 <limits.h> exists even on freestanding compilers. */
8539 # include <limits.h>
8541 # include <assert.h>
8543 /* Override any gcc2 internal prototype to avoid an error. */
8548 /* We use char because int might match the return type of a gcc2
8549 builtin and then its argument prototype would still apply. */
8551 /* The GNU C library defines this for functions which it implements
8552 to always fail with ENOSYS. Some functions are actually named
8553 something starting with __ and the normal name is an alias. */
8554 #if defined (__stub_connect) || defined (__stub___connect)
8557 char (*f) () = connect;
8566 return f != connect;
8571 rm -f conftest.$ac_objext conftest$ac_exeext
8572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8573 (eval $ac_link) 2>&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } &&
8577 { ac_try='test -s conftest$ac_exeext'
8578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; }; then
8583 ac_cv_func_connect=yes
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8588 ac_cv_func_connect=no
8590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8592 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8593 echo "${ECHO_T}$ac_cv_func_connect" >&6
8595 if test $ac_cv_func_connect = no; then
8596 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8597 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8598 if test "${ac_cv_lib_socket_connect+set}" = set; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8601 ac_check_lib_save_LIBS=$LIBS
8602 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8603 cat >conftest.$ac_ext <<_ACEOF
8604 #line $LINENO "configure"
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8611 /* Override any gcc2 internal prototype to avoid an error. */
8615 /* We use char because int might match the return type of a gcc2
8616 builtin and then its argument prototype would still apply. */
8626 rm -f conftest.$ac_objext conftest$ac_exeext
8627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8628 (eval $ac_link) 2>&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } &&
8632 { ac_try='test -s conftest$ac_exeext'
8633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
8638 ac_cv_lib_socket_connect=yes
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8643 ac_cv_lib_socket_connect=no
8645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8646 LIBS=$ac_check_lib_save_LIBS
8648 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8649 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8650 if test $ac_cv_lib_socket_connect = yes; then
8651 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8656 # Guillermo Gomez says -lposix is necessary on A/UX.
8657 echo "$as_me:$LINENO: checking for remove" >&5
8658 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8659 if test "${ac_cv_func_remove+set}" = set; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
8662 cat >conftest.$ac_ext <<_ACEOF
8663 #line $LINENO "configure"
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h. */
8669 /* System header to define __stub macros and hopefully few prototypes,
8670 which can conflict with char remove (); below.
8671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8672 <limits.h> exists even on freestanding compilers. */
8674 # include <limits.h>
8676 # include <assert.h>
8678 /* Override any gcc2 internal prototype to avoid an error. */
8683 /* We use char because int might match the return type of a gcc2
8684 builtin and then its argument prototype would still apply. */
8686 /* The GNU C library defines this for functions which it implements
8687 to always fail with ENOSYS. Some functions are actually named
8688 something starting with __ and the normal name is an alias. */
8689 #if defined (__stub_remove) || defined (__stub___remove)
8692 char (*f) () = remove;
8706 rm -f conftest.$ac_objext conftest$ac_exeext
8707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8708 (eval $ac_link) 2>&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } &&
8712 { ac_try='test -s conftest$ac_exeext'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
8718 ac_cv_func_remove=yes
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8723 ac_cv_func_remove=no
8725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8727 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8728 echo "${ECHO_T}$ac_cv_func_remove" >&6
8730 if test $ac_cv_func_remove = no; then
8731 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8732 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8733 if test "${ac_cv_lib_posix_remove+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8736 ac_check_lib_save_LIBS=$LIBS
8737 LIBS="-lposix $LIBS"
8738 cat >conftest.$ac_ext <<_ACEOF
8739 #line $LINENO "configure"
8742 cat confdefs.h >>conftest.$ac_ext
8743 cat >>conftest.$ac_ext <<_ACEOF
8744 /* end confdefs.h. */
8746 /* Override any gcc2 internal prototype to avoid an error. */
8750 /* We use char because int might match the return type of a gcc2
8751 builtin and then its argument prototype would still apply. */
8761 rm -f conftest.$ac_objext conftest$ac_exeext
8762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8763 (eval $ac_link) 2>&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } &&
8767 { ac_try='test -s conftest$ac_exeext'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; }; then
8773 ac_cv_lib_posix_remove=yes
8775 echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8778 ac_cv_lib_posix_remove=no
8780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8781 LIBS=$ac_check_lib_save_LIBS
8783 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8784 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8785 if test $ac_cv_lib_posix_remove = yes; then
8786 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8791 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8792 echo "$as_me:$LINENO: checking for shmat" >&5
8793 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8794 if test "${ac_cv_func_shmat+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 cat >conftest.$ac_ext <<_ACEOF
8798 #line $LINENO "configure"
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h. */
8804 /* System header to define __stub macros and hopefully few prototypes,
8805 which can conflict with char shmat (); below.
8806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8807 <limits.h> exists even on freestanding compilers. */
8809 # include <limits.h>
8811 # include <assert.h>
8813 /* Override any gcc2 internal prototype to avoid an error. */
8818 /* We use char because int might match the return type of a gcc2
8819 builtin and then its argument prototype would still apply. */
8821 /* The GNU C library defines this for functions which it implements
8822 to always fail with ENOSYS. Some functions are actually named
8823 something starting with __ and the normal name is an alias. */
8824 #if defined (__stub_shmat) || defined (__stub___shmat)
8827 char (*f) () = shmat;
8841 rm -f conftest.$ac_objext conftest$ac_exeext
8842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8843 (eval $ac_link) 2>&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } &&
8847 { ac_try='test -s conftest$ac_exeext'
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; }; then
8853 ac_cv_func_shmat=yes
8855 echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8862 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8863 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8865 if test $ac_cv_func_shmat = no; then
8866 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8867 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8868 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8869 echo $ECHO_N "(cached) $ECHO_C" >&6
8871 ac_check_lib_save_LIBS=$LIBS
8873 cat >conftest.$ac_ext <<_ACEOF
8874 #line $LINENO "configure"
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8881 /* Override any gcc2 internal prototype to avoid an error. */
8885 /* We use char because int might match the return type of a gcc2
8886 builtin and then its argument prototype would still apply. */
8896 rm -f conftest.$ac_objext conftest$ac_exeext
8897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8898 (eval $ac_link) 2>&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } &&
8902 { ac_try='test -s conftest$ac_exeext'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; }; then
8908 ac_cv_lib_ipc_shmat=yes
8910 echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8913 ac_cv_lib_ipc_shmat=no
8915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8916 LIBS=$ac_check_lib_save_LIBS
8918 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8919 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8920 if test $ac_cv_lib_ipc_shmat = yes; then
8921 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8927 # Check for libraries that X11R6 Xt/Xaw programs need.
8928 ac_save_LDFLAGS=$LDFLAGS
8929 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8930 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8931 # check for ICE first), but we must link in the order -lSM -lICE or
8932 # we get undefined symbols. So assume we have SM if we have ICE.
8933 # These have to be linked with before -lX11, unlike the other
8934 # libraries we check for below, so use a different variable.
8935 # John Interrante, Karl Berry
8936 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8937 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8938 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 ac_check_lib_save_LIBS=$LIBS
8942 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8943 cat >conftest.$ac_ext <<_ACEOF
8944 #line $LINENO "configure"
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h. */
8951 /* Override any gcc2 internal prototype to avoid an error. */
8955 /* We use char because int might match the return type of a gcc2
8956 builtin and then its argument prototype would still apply. */
8957 char IceConnectionNumber ();
8961 IceConnectionNumber ();
8966 rm -f conftest.$ac_objext conftest$ac_exeext
8967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8968 (eval $ac_link) 2>&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try='test -s conftest$ac_exeext'
8973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }; }; then
8978 ac_cv_lib_ICE_IceConnectionNumber=yes
8980 echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.$ac_ext >&5
8983 ac_cv_lib_ICE_IceConnectionNumber=no
8985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8986 LIBS=$ac_check_lib_save_LIBS
8988 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8989 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8990 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8991 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8994 LDFLAGS=$ac_save_LDFLAGS
9046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9048 echo "$as_me:$LINENO: checking for $ac_header" >&5
9049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9051 echo $ECHO_N "(cached) $ECHO_C" >&6
9053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9056 # Is the header compilable?
9057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9059 cat >conftest.$ac_ext <<_ACEOF
9060 #line $LINENO "configure"
9063 cat confdefs.h >>conftest.$ac_ext
9064 cat >>conftest.$ac_ext <<_ACEOF
9065 /* end confdefs.h. */
9066 $ac_includes_default
9067 #include <$ac_header>
9069 rm -f conftest.$ac_objext
9070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9071 (eval $ac_compile) 2>&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); } &&
9075 { ac_try='test -s conftest.$ac_objext'
9076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
9081 ac_header_compiler=yes
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9086 ac_header_compiler=no
9088 rm -f conftest.$ac_objext conftest.$ac_ext
9089 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9090 echo "${ECHO_T}$ac_header_compiler" >&6
9092 # Is the header present?
9093 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9095 cat >conftest.$ac_ext <<_ACEOF
9096 #line $LINENO "configure"
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 #include <$ac_header>
9104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9107 grep -v '^ *+' conftest.er1 >conftest.err
9109 cat conftest.err >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } >/dev/null; then
9112 if test -s conftest.err; then
9113 ac_cpp_err=$ac_c_preproc_warn_flag
9120 if test -z "$ac_cpp_err"; then
9121 ac_header_preproc=yes
9123 echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9126 ac_header_preproc=no
9128 rm -f conftest.err conftest.$ac_ext
9129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9130 echo "${ECHO_T}$ac_header_preproc" >&6
9132 # So? What about this header?
9133 case $ac_header_compiler:$ac_header_preproc in
9135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9141 ## ------------------------------------ ##
9142 ## Report this to bug-autoconf@gnu.org. ##
9143 ## ------------------------------------ ##
9146 sed "s/^/$as_me: WARNING: /" >&2
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9157 ## ------------------------------------ ##
9158 ## Report this to bug-autoconf@gnu.org. ##
9159 ## ------------------------------------ ##
9162 sed "s/^/$as_me: WARNING: /" >&2
9165 echo "$as_me:$LINENO: checking for $ac_header" >&5
9166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9170 eval "$as_ac_Header=$ac_header_preproc"
9172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9177 cat >>confdefs.h <<_ACEOF
9178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9185 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9186 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9187 if test "${ac_cv_header_stdc+set}" = set; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9190 cat >conftest.$ac_ext <<_ACEOF
9191 #line $LINENO "configure"
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9210 rm -f conftest.$ac_objext
9211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9212 (eval $ac_compile) 2>&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } &&
9216 { ac_try='test -s conftest.$ac_objext'
9217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); }; }; then
9222 ac_cv_header_stdc=yes
9224 echo "$as_me: failed program was:" >&5
9225 sed 's/^/| /' conftest.$ac_ext >&5
9227 ac_cv_header_stdc=no
9229 rm -f conftest.$ac_objext conftest.$ac_ext
9231 if test $ac_cv_header_stdc = yes; then
9232 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9233 cat >conftest.$ac_ext <<_ACEOF
9234 #line $LINENO "configure"
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9244 $EGREP "memchr" >/dev/null 2>&1; then
9247 ac_cv_header_stdc=no
9253 if test $ac_cv_header_stdc = yes; then
9254 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9255 cat >conftest.$ac_ext <<_ACEOF
9256 #line $LINENO "configure"
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h. */
9265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9266 $EGREP "free" >/dev/null 2>&1; then
9269 ac_cv_header_stdc=no
9275 if test $ac_cv_header_stdc = yes; then
9276 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9277 if test "$cross_compiling" = yes; then
9280 cat >conftest.$ac_ext <<_ACEOF
9281 #line $LINENO "configure"
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9288 #if ((' ' & 0x0FF) == 0x020)
9289 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9290 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9292 # define ISLOWER(c) \
9293 (('a' <= (c) && (c) <= 'i') \
9294 || ('j' <= (c) && (c) <= 'r') \
9295 || ('s' <= (c) && (c) <= 'z'))
9296 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9299 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9304 for (i = 0; i < 256; i++)
9305 if (XOR (islower (i), ISLOWER (i))
9306 || toupper (i) != TOUPPER (i))
9311 rm -f conftest$ac_exeext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9313 (eval $ac_link) 2>&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9324 echo "$as_me: program exited with status $ac_status" >&5
9325 echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9329 ac_cv_header_stdc=no
9331 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9335 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9336 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9337 if test $ac_cv_header_stdc = yes; then
9339 cat >>confdefs.h <<\_ACEOF
9340 #define STDC_HEADERS 1
9345 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9346 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9347 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 cat >conftest.$ac_ext <<_ACEOF
9351 #line $LINENO "configure"
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h. */
9357 #include <sys/types.h>
9361 return makedev(0, 0);
9366 rm -f conftest.$ac_objext conftest$ac_exeext
9367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9368 (eval $ac_link) 2>&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } &&
9372 { ac_try='test -s conftest$ac_exeext'
9373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; }; then
9378 ac_cv_header_sys_types_h_makedev=yes
9380 echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9383 ac_cv_header_sys_types_h_makedev=no
9385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9388 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9389 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9391 if test $ac_cv_header_sys_types_h_makedev = no; then
9392 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9393 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9394 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9395 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
9398 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9399 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9401 # Is the header compilable?
9402 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9403 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9404 cat >conftest.$ac_ext <<_ACEOF
9405 #line $LINENO "configure"
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9411 $ac_includes_default
9412 #include <sys/mkdev.h>
9414 rm -f conftest.$ac_objext
9415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9416 (eval $ac_compile) 2>&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } &&
9420 { ac_try='test -s conftest.$ac_objext'
9421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; }; then
9426 ac_header_compiler=yes
9428 echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9431 ac_header_compiler=no
9433 rm -f conftest.$ac_objext conftest.$ac_ext
9434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9435 echo "${ECHO_T}$ac_header_compiler" >&6
9437 # Is the header present?
9438 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9439 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9440 cat >conftest.$ac_ext <<_ACEOF
9441 #line $LINENO "configure"
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h. */
9447 #include <sys/mkdev.h>
9449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9452 grep -v '^ *+' conftest.er1 >conftest.err
9454 cat conftest.err >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } >/dev/null; then
9457 if test -s conftest.err; then
9458 ac_cpp_err=$ac_c_preproc_warn_flag
9465 if test -z "$ac_cpp_err"; then
9466 ac_header_preproc=yes
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9471 ac_header_preproc=no
9473 rm -f conftest.err conftest.$ac_ext
9474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9475 echo "${ECHO_T}$ac_header_preproc" >&6
9477 # So? What about this header?
9478 case $ac_header_compiler:$ac_header_preproc in
9480 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9481 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9482 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9483 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9486 ## ------------------------------------ ##
9487 ## Report this to bug-autoconf@gnu.org. ##
9488 ## ------------------------------------ ##
9491 sed "s/^/$as_me: WARNING: /" >&2
9494 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9495 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9496 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9497 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9498 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9499 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9502 ## ------------------------------------ ##
9503 ## Report this to bug-autoconf@gnu.org. ##
9504 ## ------------------------------------ ##
9507 sed "s/^/$as_me: WARNING: /" >&2
9510 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9511 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9512 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9517 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9518 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9521 if test $ac_cv_header_sys_mkdev_h = yes; then
9523 cat >>confdefs.h <<\_ACEOF
9524 #define MAJOR_IN_MKDEV 1
9531 if test $ac_cv_header_sys_mkdev_h = no; then
9532 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9533 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9534 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9535 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9538 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9539 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9541 # Is the header compilable?
9542 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9543 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9544 cat >conftest.$ac_ext <<_ACEOF
9545 #line $LINENO "configure"
9548 cat confdefs.h >>conftest.$ac_ext
9549 cat >>conftest.$ac_ext <<_ACEOF
9550 /* end confdefs.h. */
9551 $ac_includes_default
9552 #include <sys/sysmacros.h>
9554 rm -f conftest.$ac_objext
9555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9556 (eval $ac_compile) 2>&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); } &&
9560 { ac_try='test -s conftest.$ac_objext'
9561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; }; then
9566 ac_header_compiler=yes
9568 echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9571 ac_header_compiler=no
9573 rm -f conftest.$ac_objext conftest.$ac_ext
9574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9575 echo "${ECHO_T}$ac_header_compiler" >&6
9577 # Is the header present?
9578 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9579 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9580 cat >conftest.$ac_ext <<_ACEOF
9581 #line $LINENO "configure"
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h. */
9587 #include <sys/sysmacros.h>
9589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9592 grep -v '^ *+' conftest.er1 >conftest.err
9594 cat conftest.err >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } >/dev/null; then
9597 if test -s conftest.err; then
9598 ac_cpp_err=$ac_c_preproc_warn_flag
9605 if test -z "$ac_cpp_err"; then
9606 ac_header_preproc=yes
9608 echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9611 ac_header_preproc=no
9613 rm -f conftest.err conftest.$ac_ext
9614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9615 echo "${ECHO_T}$ac_header_preproc" >&6
9617 # So? What about this header?
9618 case $ac_header_compiler:$ac_header_preproc in
9620 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9621 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9622 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9623 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9626 ## ------------------------------------ ##
9627 ## Report this to bug-autoconf@gnu.org. ##
9628 ## ------------------------------------ ##
9631 sed "s/^/$as_me: WARNING: /" >&2
9634 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9635 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9636 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9637 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9638 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9639 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9642 ## ------------------------------------ ##
9643 ## Report this to bug-autoconf@gnu.org. ##
9644 ## ------------------------------------ ##
9647 sed "s/^/$as_me: WARNING: /" >&2
9650 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9651 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9652 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9657 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9658 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9661 if test $ac_cv_header_sys_sysmacros_h = yes; then
9663 cat >>confdefs.h <<\_ACEOF
9664 #define MAJOR_IN_SYSMACROS 1
9679 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9680 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9681 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9682 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9686 cat >conftest.$ac_ext <<_ACEOF
9687 #line $LINENO "configure"
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9693 #include <sys/types.h>
9705 rm -f conftest.$ac_objext
9706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9707 (eval $ac_compile) 2>&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); } &&
9711 { ac_try='test -s conftest.$ac_objext'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9717 eval "$as_ac_Header=yes"
9719 echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9722 eval "$as_ac_Header=no"
9724 rm -f conftest.$ac_objext conftest.$ac_ext
9726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9729 cat >>confdefs.h <<_ACEOF
9730 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9733 ac_header_dirent=$ac_hdr; break
9737 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9738 if test $ac_header_dirent = dirent.h; then
9739 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9740 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9741 if test "${ac_cv_search_opendir+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 ac_func_search_save_LIBS=$LIBS
9745 ac_cv_search_opendir=no
9746 cat >conftest.$ac_ext <<_ACEOF
9747 #line $LINENO "configure"
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9754 /* Override any gcc2 internal prototype to avoid an error. */
9758 /* We use char because int might match the return type of a gcc2
9759 builtin and then its argument prototype would still apply. */
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9771 (eval $ac_link) 2>&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try='test -s conftest$ac_exeext'
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; }; then
9781 ac_cv_search_opendir="none required"
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9788 if test "$ac_cv_search_opendir" = no; then
9789 for ac_lib in dir; do
9790 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9791 cat >conftest.$ac_ext <<_ACEOF
9792 #line $LINENO "configure"
9795 cat confdefs.h >>conftest.$ac_ext
9796 cat >>conftest.$ac_ext <<_ACEOF
9797 /* end confdefs.h. */
9799 /* Override any gcc2 internal prototype to avoid an error. */
9803 /* We use char because int might match the return type of a gcc2
9804 builtin and then its argument prototype would still apply. */
9814 rm -f conftest.$ac_objext conftest$ac_exeext
9815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9816 (eval $ac_link) 2>&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } &&
9820 { ac_try='test -s conftest$ac_exeext'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; }; then
9826 ac_cv_search_opendir="-l$ac_lib"
9829 echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9836 LIBS=$ac_func_search_save_LIBS
9838 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9839 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9840 if test "$ac_cv_search_opendir" != no; then
9841 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9846 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9847 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9848 if test "${ac_cv_search_opendir+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 ac_func_search_save_LIBS=$LIBS
9852 ac_cv_search_opendir=no
9853 cat >conftest.$ac_ext <<_ACEOF
9854 #line $LINENO "configure"
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h. */
9861 /* Override any gcc2 internal prototype to avoid an error. */
9865 /* We use char because int might match the return type of a gcc2
9866 builtin and then its argument prototype would still apply. */
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878 (eval $ac_link) 2>&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } &&
9882 { ac_try='test -s conftest$ac_exeext'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 ac_cv_search_opendir="none required"
9890 echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9895 if test "$ac_cv_search_opendir" = no; then
9897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9898 cat >conftest.$ac_ext <<_ACEOF
9899 #line $LINENO "configure"
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h. */
9906 /* Override any gcc2 internal prototype to avoid an error. */
9910 /* We use char because int might match the return type of a gcc2
9911 builtin and then its argument prototype would still apply. */
9921 rm -f conftest.$ac_objext conftest$ac_exeext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9923 (eval $ac_link) 2>&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } &&
9927 { ac_try='test -s conftest$ac_exeext'
9928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); }; }; then
9933 ac_cv_search_opendir="-l$ac_lib"
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9943 LIBS=$ac_func_search_save_LIBS
9945 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9946 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9947 if test "$ac_cv_search_opendir" != no; then
9948 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9954 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9955 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9956 if test "${ac_cv_header_stat_broken+set}" = set; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9959 cat >conftest.$ac_ext <<_ACEOF
9960 #line $LINENO "configure"
9963 cat confdefs.h >>conftest.$ac_ext
9964 cat >>conftest.$ac_ext <<_ACEOF
9965 /* end confdefs.h. */
9966 #include <sys/types.h>
9967 #include <sys/stat.h>
9969 #if defined(S_ISBLK) && defined(S_IFDIR)
9970 # if S_ISBLK (S_IFDIR)
9975 #if defined(S_ISBLK) && defined(S_IFCHR)
9976 # if S_ISBLK (S_IFCHR)
9981 #if defined(S_ISLNK) && defined(S_IFREG)
9982 # if S_ISLNK (S_IFREG)
9987 #if defined(S_ISSOCK) && defined(S_IFREG)
9988 # if S_ISSOCK (S_IFREG)
9994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9995 $EGREP "You lose" >/dev/null 2>&1; then
9996 ac_cv_header_stat_broken=yes
9998 ac_cv_header_stat_broken=no
10003 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10004 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10005 if test $ac_cv_header_stat_broken = yes; then
10007 cat >>confdefs.h <<\_ACEOF
10008 #define STAT_MACROS_BROKEN 1
10013 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10014 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10015 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 cat >conftest.$ac_ext <<_ACEOF
10019 #line $LINENO "configure"
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10025 #include <sys/types.h>
10026 #include <sys/wait.h>
10027 #ifndef WEXITSTATUS
10028 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10031 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10039 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10044 rm -f conftest.$ac_objext
10045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10046 (eval $ac_compile) 2>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } &&
10050 { ac_try='test -s conftest.$ac_objext'
10051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052 (eval $ac_try) 2>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
10056 ac_cv_header_sys_wait_h=yes
10058 echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.$ac_ext >&5
10061 ac_cv_header_sys_wait_h=no
10063 rm -f conftest.$ac_objext conftest.$ac_ext
10065 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10066 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10067 if test $ac_cv_header_sys_wait_h = yes; then
10069 cat >>confdefs.h <<\_ACEOF
10070 #define HAVE_SYS_WAIT_H 1
10075 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10076 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10077 if test "${ac_cv_header_time+set}" = set; then
10078 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 cat >conftest.$ac_ext <<_ACEOF
10081 #line $LINENO "configure"
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10087 #include <sys/types.h>
10088 #include <sys/time.h>
10094 if ((struct tm *) 0)
10100 rm -f conftest.$ac_objext
10101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10102 (eval $ac_compile) 2>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } &&
10106 { ac_try='test -s conftest.$ac_objext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 ac_cv_header_time=yes
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10117 ac_cv_header_time=no
10119 rm -f conftest.$ac_objext conftest.$ac_ext
10121 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10122 echo "${ECHO_T}$ac_cv_header_time" >&6
10123 if test $ac_cv_header_time = yes; then
10125 cat >>confdefs.h <<\_ACEOF
10126 #define TIME_WITH_SYS_TIME 1
10132 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10133 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10134 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 cat >conftest.$ac_ext <<_ACEOF
10138 #line $LINENO "configure"
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10144 $ac_includes_default
10148 static struct stat ac_aggr;
10149 if (ac_aggr.st_blksize)
10155 rm -f conftest.$ac_objext
10156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10157 (eval $ac_compile) 2>&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); } &&
10161 { ac_try='test -s conftest.$ac_objext'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 ac_cv_member_struct_stat_st_blksize=yes
10169 echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10172 cat >conftest.$ac_ext <<_ACEOF
10173 #line $LINENO "configure"
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h. */
10179 $ac_includes_default
10183 static struct stat ac_aggr;
10184 if (sizeof ac_aggr.st_blksize)
10190 rm -f conftest.$ac_objext
10191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10192 (eval $ac_compile) 2>&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } &&
10196 { ac_try='test -s conftest.$ac_objext'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; }; then
10202 ac_cv_member_struct_stat_st_blksize=yes
10204 echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.$ac_ext >&5
10207 ac_cv_member_struct_stat_st_blksize=no
10209 rm -f conftest.$ac_objext conftest.$ac_ext
10211 rm -f conftest.$ac_objext conftest.$ac_ext
10213 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10214 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10215 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10217 cat >>confdefs.h <<_ACEOF
10218 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10222 cat >>confdefs.h <<\_ACEOF
10223 #define HAVE_ST_BLKSIZE 1
10229 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10230 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10231 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 cat >conftest.$ac_ext <<_ACEOF
10235 #line $LINENO "configure"
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10241 $ac_includes_default
10245 static struct stat ac_aggr;
10246 if (ac_aggr.st_blocks)
10252 rm -f conftest.$ac_objext
10253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10254 (eval $ac_compile) 2>&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } &&
10258 { ac_try='test -s conftest.$ac_objext'
10259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; }; then
10264 ac_cv_member_struct_stat_st_blocks=yes
10266 echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10269 cat >conftest.$ac_ext <<_ACEOF
10270 #line $LINENO "configure"
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h. */
10276 $ac_includes_default
10280 static struct stat ac_aggr;
10281 if (sizeof ac_aggr.st_blocks)
10287 rm -f conftest.$ac_objext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10289 (eval $ac_compile) 2>&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } &&
10293 { ac_try='test -s conftest.$ac_objext'
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; }; then
10299 ac_cv_member_struct_stat_st_blocks=yes
10301 echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10304 ac_cv_member_struct_stat_st_blocks=no
10306 rm -f conftest.$ac_objext conftest.$ac_ext
10308 rm -f conftest.$ac_objext conftest.$ac_ext
10310 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10311 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10312 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10314 cat >>confdefs.h <<_ACEOF
10315 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10319 cat >>confdefs.h <<\_ACEOF
10320 #define HAVE_ST_BLOCKS 1
10324 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10328 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10329 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10330 if test "${ac_cv_struct_tm+set}" = set; then
10331 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 cat >conftest.$ac_ext <<_ACEOF
10334 #line $LINENO "configure"
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h. */
10340 #include <sys/types.h>
10346 struct tm *tp; tp->tm_sec;
10351 rm -f conftest.$ac_objext
10352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10353 (eval $ac_compile) 2>&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } &&
10357 { ac_try='test -s conftest.$ac_objext'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; }; then
10363 ac_cv_struct_tm=time.h
10365 echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10368 ac_cv_struct_tm=sys/time.h
10370 rm -f conftest.$ac_objext conftest.$ac_ext
10372 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10373 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10374 if test $ac_cv_struct_tm = sys/time.h; then
10376 cat >>confdefs.h <<\_ACEOF
10377 #define TM_IN_SYS_TIME 1
10382 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10383 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10384 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 cat >conftest.$ac_ext <<_ACEOF
10388 #line $LINENO "configure"
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10394 #include <sys/types.h>
10395 #include <$ac_cv_struct_tm>
10401 static struct tm ac_aggr;
10402 if (ac_aggr.tm_zone)
10408 rm -f conftest.$ac_objext
10409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10410 (eval $ac_compile) 2>&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } &&
10414 { ac_try='test -s conftest.$ac_objext'
10415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416 (eval $ac_try) 2>&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; }; then
10420 ac_cv_member_struct_tm_tm_zone=yes
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10425 cat >conftest.$ac_ext <<_ACEOF
10426 #line $LINENO "configure"
10429 cat confdefs.h >>conftest.$ac_ext
10430 cat >>conftest.$ac_ext <<_ACEOF
10431 /* end confdefs.h. */
10432 #include <sys/types.h>
10433 #include <$ac_cv_struct_tm>
10439 static struct tm ac_aggr;
10440 if (sizeof ac_aggr.tm_zone)
10446 rm -f conftest.$ac_objext
10447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10448 (eval $ac_compile) 2>&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } &&
10452 { ac_try='test -s conftest.$ac_objext'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; }; then
10458 ac_cv_member_struct_tm_tm_zone=yes
10460 echo "$as_me: failed program was:" >&5
10461 sed 's/^/| /' conftest.$ac_ext >&5
10463 ac_cv_member_struct_tm_tm_zone=no
10465 rm -f conftest.$ac_objext conftest.$ac_ext
10467 rm -f conftest.$ac_objext conftest.$ac_ext
10469 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10470 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10471 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10473 cat >>confdefs.h <<_ACEOF
10474 #define HAVE_STRUCT_TM_TM_ZONE 1
10480 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10482 cat >>confdefs.h <<\_ACEOF
10483 #define HAVE_TM_ZONE 1
10487 echo "$as_me:$LINENO: checking for tzname" >&5
10488 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10489 if test "${ac_cv_var_tzname+set}" = set; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10492 cat >conftest.$ac_ext <<_ACEOF
10493 #line $LINENO "configure"
10496 cat confdefs.h >>conftest.$ac_ext
10497 cat >>conftest.$ac_ext <<_ACEOF
10498 /* end confdefs.h. */
10500 #ifndef tzname /* For SGI. */
10501 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10512 rm -f conftest.$ac_objext conftest$ac_exeext
10513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10514 (eval $ac_link) 2>&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } &&
10518 { ac_try='test -s conftest$ac_exeext'
10519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520 (eval $ac_try) 2>&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; }; then
10524 ac_cv_var_tzname=yes
10526 echo "$as_me: failed program was:" >&5
10527 sed 's/^/| /' conftest.$ac_ext >&5
10529 ac_cv_var_tzname=no
10531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10533 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10534 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10535 if test $ac_cv_var_tzname = yes; then
10537 cat >>confdefs.h <<\_ACEOF
10538 #define HAVE_TZNAME 1
10545 echo "$as_me:$LINENO: checking for utime.h" >&5
10546 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10547 if test "${ba_cv_header_utime_h+set}" = set; then
10548 echo $ECHO_N "(cached) $ECHO_C" >&6
10550 cat >conftest.$ac_ext <<_ACEOF
10551 #line $LINENO "configure"
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h. */
10558 #include <sys/types.h>
10568 rm -f conftest.$ac_objext
10569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10570 (eval $ac_compile) 2>&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } &&
10574 { ac_try='test -s conftest.$ac_objext'
10575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576 (eval $ac_try) 2>&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; }; then
10580 ba_cv_header_utime_h=yes
10582 echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10585 ba_cv_header_utime_h=no
10587 rm -f conftest.$ac_objext conftest.$ac_ext
10589 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10590 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10591 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10592 #define HAVE_UTIME_H 1
10596 echo "$as_me:$LINENO: checking for socklen_t" >&5
10597 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10598 if test "${ba_cv_header_socklen_t+set}" = set; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
10601 cat >conftest.$ac_ext <<_ACEOF
10602 #line $LINENO "configure"
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h. */
10609 #include <sys/types.h>
10610 #include <sys/socket.h>
10619 rm -f conftest.$ac_objext
10620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10621 (eval $ac_compile) 2>&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } &&
10625 { ac_try='test -s conftest.$ac_objext'
10626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; }; then
10631 ba_cv_header_socklen_t=yes
10633 echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10636 ba_cv_header_socklen_t=no
10638 rm -f conftest.$ac_objext conftest.$ac_ext
10640 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10641 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10642 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10643 #define HAVE_SOCKLEN_T 1
10647 echo "$as_me:$LINENO: checking for bigendian" >&5
10648 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10649 if test "${ba_cv_bigendian+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 if test "$cross_compiling" = yes; then
10655 cat >conftest.$ac_ext <<_ACEOF
10656 #line $LINENO "configure"
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h. */
10662 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10664 rm -f conftest$ac_exeext
10665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10666 (eval $ac_link) 2>&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 ba_cv_bigendian=yes
10677 echo "$as_me: program exited with status $ac_status" >&5
10678 echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10681 ( exit $ac_status )
10684 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10687 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10688 echo "${ECHO_T}$ba_cv_bigendian" >&6
10689 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10690 #define HAVE_BIGENDIAN 1
10695 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10696 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10697 if test "${ac_cv_c_const+set}" = set; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 cat >conftest.$ac_ext <<_ACEOF
10701 #line $LINENO "configure"
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h. */
10711 /* FIXME: Include the comments suggested by Paul. */
10712 #ifndef __cplusplus
10713 /* Ultrix mips cc rejects this. */
10714 typedef int charset[2];
10716 /* SunOS 4.1.1 cc rejects this. */
10717 char const *const *ccp;
10719 /* NEC SVR4.0.2 mips cc rejects this. */
10720 struct point {int x, y;};
10721 static struct point const zero = {0,0};
10722 /* AIX XL C 1.02.0.0 rejects this.
10723 It does not let you subtract one const X* pointer from another in
10724 an arm of an if-expression whose if-part is not a constant
10726 const char *g = "string";
10727 ccp = &g + (g ? g-g : 0);
10728 /* HPUX 7.0 cc rejects these. */
10731 ccp = (char const *const *) p;
10732 { /* SCO 3.2v4 cc rejects this. */
10734 char const *s = 0 ? (char *) 0 : (char const *) 0;
10738 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10739 int x[] = {25, 17};
10740 const int *foo = &x[0];
10743 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10744 typedef const int *iptr;
10748 { /* AIX XL C 1.02.0.0 rejects this saying
10749 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10750 struct s { int j; const int *ap[3]; };
10751 struct s *b; b->j = 5;
10753 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10754 const int foo = 10;
10762 rm -f conftest.$ac_objext
10763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10764 (eval $ac_compile) 2>&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } &&
10768 { ac_try='test -s conftest.$ac_objext'
10769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770 (eval $ac_try) 2>&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; }; then
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10781 rm -f conftest.$ac_objext conftest.$ac_ext
10783 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10784 echo "${ECHO_T}$ac_cv_c_const" >&6
10785 if test $ac_cv_c_const = no; then
10787 cat >>confdefs.h <<\_ACEOF
10795 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10796 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10798 # The order of these tests is important.
10799 cat >conftest.$ac_ext <<_ACEOF
10800 #line $LINENO "configure"
10803 cat confdefs.h >>conftest.$ac_ext
10804 cat >>conftest.$ac_ext <<_ACEOF
10805 /* end confdefs.h. */
10806 #include <sys/statvfs.h>
10807 #include <sys/fstyp.h>
10809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10812 grep -v '^ *+' conftest.er1 >conftest.err
10814 cat conftest.err >&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } >/dev/null; then
10817 if test -s conftest.err; then
10818 ac_cpp_err=$ac_c_preproc_warn_flag
10825 if test -z "$ac_cpp_err"; then
10826 cat >>confdefs.h <<\_ACEOF
10827 #define FSTYPE_STATVFS 1
10831 echo "$as_me: failed program was:" >&5
10832 sed 's/^/| /' conftest.$ac_ext >&5
10836 rm -f conftest.err conftest.$ac_ext
10837 if test $fstype = no; then
10838 cat >conftest.$ac_ext <<_ACEOF
10839 #line $LINENO "configure"
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10845 #include <sys/statfs.h>
10846 #include <sys/fstyp.h>
10848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10851 grep -v '^ *+' conftest.er1 >conftest.err
10853 cat conftest.err >&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } >/dev/null; then
10856 if test -s conftest.err; then
10857 ac_cpp_err=$ac_c_preproc_warn_flag
10864 if test -z "$ac_cpp_err"; then
10865 cat >>confdefs.h <<\_ACEOF
10866 #define FSTYPE_USG_STATFS 1
10870 echo "$as_me: failed program was:" >&5
10871 sed 's/^/| /' conftest.$ac_ext >&5
10875 rm -f conftest.err conftest.$ac_ext
10877 if test $fstype = no; then
10878 cat >conftest.$ac_ext <<_ACEOF
10879 #line $LINENO "configure"
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885 #include <sys/statfs.h>
10886 #include <sys/vmount.h>
10888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10891 grep -v '^ *+' conftest.er1 >conftest.err
10893 cat conftest.err >&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); } >/dev/null; then
10896 if test -s conftest.err; then
10897 ac_cpp_err=$ac_c_preproc_warn_flag
10904 if test -z "$ac_cpp_err"; then
10905 cat >>confdefs.h <<\_ACEOF
10906 #define FSTYPE_AIX_STATFS 1
10910 echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10915 rm -f conftest.err conftest.$ac_ext
10917 if test $fstype = no; then
10918 cat >conftest.$ac_ext <<_ACEOF
10919 #line $LINENO "configure"
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h. */
10925 #include <mntent.h>
10927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10930 grep -v '^ *+' conftest.er1 >conftest.err
10932 cat conftest.err >&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } >/dev/null; then
10935 if test -s conftest.err; then
10936 ac_cpp_err=$ac_c_preproc_warn_flag
10943 if test -z "$ac_cpp_err"; then
10944 cat >>confdefs.h <<\_ACEOF
10945 #define FSTYPE_MNTENT 1
10949 echo "$as_me: failed program was:" >&5
10950 sed 's/^/| /' conftest.$ac_ext >&5
10954 rm -f conftest.err conftest.$ac_ext
10956 if test $fstype = no; then
10957 cat >conftest.$ac_ext <<_ACEOF
10958 #line $LINENO "configure"
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10964 #include <sys/mount.h>
10967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10968 $EGREP "f_type;" >/dev/null 2>&1; then
10969 cat >>confdefs.h <<\_ACEOF
10970 #define FSTYPE_STATFS 1
10977 if test $fstype = no; then
10978 cat >conftest.$ac_ext <<_ACEOF
10979 #line $LINENO "configure"
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h. */
10985 #include <sys/mount.h>
10986 #include <sys/fs_types.h>
10988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10991 grep -v '^ *+' conftest.er1 >conftest.err
10993 cat conftest.err >&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); } >/dev/null; then
10996 if test -s conftest.err; then
10997 ac_cpp_err=$ac_c_preproc_warn_flag
11004 if test -z "$ac_cpp_err"; then
11005 cat >>confdefs.h <<\_ACEOF
11006 #define FSTYPE_GETMNT 1
11010 echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11015 rm -f conftest.err conftest.$ac_ext
11017 echo "$as_me:$LINENO: result: $fstype" >&5
11018 echo "${ECHO_T}$fstype" >&6
11020 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11021 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11022 if test "${ac_cv_type_signal+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 cat >conftest.$ac_ext <<_ACEOF
11026 #line $LINENO "configure"
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
11032 #include <sys/types.h>
11033 #include <signal.h>
11038 extern "C" void (*signal (int, void (*)(int)))(int);
11040 void (*signal ()) ();
11051 rm -f conftest.$ac_objext
11052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11053 (eval $ac_compile) 2>&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); } &&
11057 { ac_try='test -s conftest.$ac_objext'
11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059 (eval $ac_try) 2>&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }; then
11063 ac_cv_type_signal=void
11065 echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11068 ac_cv_type_signal=int
11070 rm -f conftest.$ac_objext conftest.$ac_ext
11072 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11073 echo "${ECHO_T}$ac_cv_type_signal" >&6
11075 cat >>confdefs.h <<_ACEOF
11076 #define RETSIGTYPE $ac_cv_type_signal
11081 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11082 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11083 if test "${bash_cv_signal_vintage+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 cat >conftest.$ac_ext <<_ACEOF
11088 #line $LINENO "configure"
11091 cat confdefs.h >>conftest.$ac_ext
11092 cat >>conftest.$ac_ext <<_ACEOF
11093 /* end confdefs.h. */
11094 #include <signal.h>
11100 struct sigaction sa;
11101 sigemptyset(&ss); sigsuspend(&ss);
11102 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11103 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11109 rm -f conftest.$ac_objext conftest$ac_exeext
11110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11111 (eval $ac_link) 2>&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } &&
11115 { ac_try='test -s conftest$ac_exeext'
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }; then
11121 bash_cv_signal_vintage=posix
11123 echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11127 cat >conftest.$ac_ext <<_ACEOF
11128 #line $LINENO "configure"
11131 cat confdefs.h >>conftest.$ac_ext
11132 cat >>conftest.$ac_ext <<_ACEOF
11133 /* end confdefs.h. */
11134 #include <signal.h>
11139 int mask = sigmask(SIGINT);
11140 sigsetmask(mask); sigblock(mask); sigpause(mask);
11146 rm -f conftest.$ac_objext conftest$ac_exeext
11147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11148 (eval $ac_link) 2>&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } &&
11152 { ac_try='test -s conftest$ac_exeext'
11153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11154 (eval $ac_try) 2>&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; }; then
11158 bash_cv_signal_vintage=4.2bsd
11160 echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11164 cat >conftest.$ac_ext <<_ACEOF
11165 #line $LINENO "configure"
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h. */
11172 #include <signal.h>
11173 RETSIGTYPE foo() { }
11178 int mask = sigmask(SIGINT);
11179 sigset(SIGINT, foo); sigrelse(SIGINT);
11180 sighold(SIGINT); sigpause(SIGINT);
11186 rm -f conftest.$ac_objext conftest$ac_exeext
11187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11188 (eval $ac_link) 2>&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } &&
11192 { ac_try='test -s conftest$ac_exeext'
11193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194 (eval $ac_try) 2>&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }; }; then
11198 bash_cv_signal_vintage=svr3
11200 echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11203 bash_cv_signal_vintage=v7
11206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11216 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11217 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11218 if test "$bash_cv_signal_vintage" = posix; then
11219 cat >>confdefs.h <<\_ACEOF
11220 #define HAVE_POSIX_SIGNALS 1
11223 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11224 cat >>confdefs.h <<\_ACEOF
11225 #define HAVE_BSD_SIGNALS 1
11228 elif test "$bash_cv_signal_vintage" = svr3; then
11229 cat >>confdefs.h <<\_ACEOF
11230 #define HAVE_USG_SIGHOLD 1
11235 echo "$as_me:$LINENO: checking for mode_t" >&5
11236 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11237 if test "${ac_cv_type_mode_t+set}" = set; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 cat >conftest.$ac_ext <<_ACEOF
11241 #line $LINENO "configure"
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247 $ac_includes_default
11253 if (sizeof (mode_t))
11259 rm -f conftest.$ac_objext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11261 (eval $ac_compile) 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
11265 { ac_try='test -s conftest.$ac_objext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 ac_cv_type_mode_t=yes
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11276 ac_cv_type_mode_t=no
11278 rm -f conftest.$ac_objext conftest.$ac_ext
11280 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11281 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11282 if test $ac_cv_type_mode_t = yes; then
11286 cat >>confdefs.h <<_ACEOF
11292 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11293 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11294 if test "${ac_cv_type_uid_t+set}" = set; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 cat >conftest.$ac_ext <<_ACEOF
11298 #line $LINENO "configure"
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11304 #include <sys/types.h>
11307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11308 $EGREP "uid_t" >/dev/null 2>&1; then
11309 ac_cv_type_uid_t=yes
11311 ac_cv_type_uid_t=no
11316 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11317 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11318 if test $ac_cv_type_uid_t = no; then
11320 cat >>confdefs.h <<\_ACEOF
11325 cat >>confdefs.h <<\_ACEOF
11331 echo "$as_me:$LINENO: checking for size_t" >&5
11332 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11333 if test "${ac_cv_type_size_t+set}" = set; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 cat >conftest.$ac_ext <<_ACEOF
11337 #line $LINENO "configure"
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343 $ac_includes_default
11349 if (sizeof (size_t))
11355 rm -f conftest.$ac_objext
11356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11357 (eval $ac_compile) 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } &&
11361 { ac_try='test -s conftest.$ac_objext'
11362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363 (eval $ac_try) 2>&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }; }; then
11367 ac_cv_type_size_t=yes
11369 echo "$as_me: failed program was:" >&5
11370 sed 's/^/| /' conftest.$ac_ext >&5
11372 ac_cv_type_size_t=no
11374 rm -f conftest.$ac_objext conftest.$ac_ext
11376 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11377 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11378 if test $ac_cv_type_size_t = yes; then
11382 cat >>confdefs.h <<_ACEOF
11383 #define size_t unsigned
11388 echo "$as_me:$LINENO: checking for pid_t" >&5
11389 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11390 if test "${ac_cv_type_pid_t+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11393 cat >conftest.$ac_ext <<_ACEOF
11394 #line $LINENO "configure"
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11400 $ac_includes_default
11406 if (sizeof (pid_t))
11412 rm -f conftest.$ac_objext
11413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11414 (eval $ac_compile) 2>&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } &&
11418 { ac_try='test -s conftest.$ac_objext'
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; }; then
11424 ac_cv_type_pid_t=yes
11426 echo "$as_me: failed program was:" >&5
11427 sed 's/^/| /' conftest.$ac_ext >&5
11429 ac_cv_type_pid_t=no
11431 rm -f conftest.$ac_objext conftest.$ac_ext
11433 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11434 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11435 if test $ac_cv_type_pid_t = yes; then
11439 cat >>confdefs.h <<_ACEOF
11445 echo "$as_me:$LINENO: checking for off_t" >&5
11446 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11447 if test "${ac_cv_type_off_t+set}" = set; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 cat >conftest.$ac_ext <<_ACEOF
11451 #line $LINENO "configure"
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457 $ac_includes_default
11463 if (sizeof (off_t))
11469 rm -f conftest.$ac_objext
11470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11471 (eval $ac_compile) 2>&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); } &&
11475 { ac_try='test -s conftest.$ac_objext'
11476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477 (eval $ac_try) 2>&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; }; then
11481 ac_cv_type_off_t=yes
11483 echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11486 ac_cv_type_off_t=no
11488 rm -f conftest.$ac_objext conftest.$ac_ext
11490 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11491 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11492 if test $ac_cv_type_off_t = yes; then
11496 cat >>confdefs.h <<_ACEOF
11502 echo "$as_me:$LINENO: checking for ino_t" >&5
11503 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11504 if test "${ac_cv_type_ino_t+set}" = set; then
11505 echo $ECHO_N "(cached) $ECHO_C" >&6
11507 cat >conftest.$ac_ext <<_ACEOF
11508 #line $LINENO "configure"
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11514 $ac_includes_default
11520 if (sizeof (ino_t))
11526 rm -f conftest.$ac_objext
11527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11528 (eval $ac_compile) 2>&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } &&
11532 { ac_try='test -s conftest.$ac_objext'
11533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11534 (eval $ac_try) 2>&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; }; then
11538 ac_cv_type_ino_t=yes
11540 echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11543 ac_cv_type_ino_t=no
11545 rm -f conftest.$ac_objext conftest.$ac_ext
11547 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11548 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11549 if test $ac_cv_type_ino_t = yes; then
11553 cat >>confdefs.h <<_ACEOF
11554 #define ino_t unsigned long
11559 echo "$as_me:$LINENO: checking for dev_t" >&5
11560 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11561 if test "${ac_cv_type_dev_t+set}" = set; then
11562 echo $ECHO_N "(cached) $ECHO_C" >&6
11564 cat >conftest.$ac_ext <<_ACEOF
11565 #line $LINENO "configure"
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11571 $ac_includes_default
11577 if (sizeof (dev_t))
11583 rm -f conftest.$ac_objext
11584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11585 (eval $ac_compile) 2>&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } &&
11589 { ac_try='test -s conftest.$ac_objext'
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; }; then
11595 ac_cv_type_dev_t=yes
11597 echo "$as_me: failed program was:" >&5
11598 sed 's/^/| /' conftest.$ac_ext >&5
11600 ac_cv_type_dev_t=no
11602 rm -f conftest.$ac_objext conftest.$ac_ext
11604 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11605 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11606 if test $ac_cv_type_dev_t = yes; then
11610 cat >>confdefs.h <<_ACEOF
11611 #define dev_t unsigned long
11616 echo "$as_me:$LINENO: checking for daddr_t" >&5
11617 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11618 if test "${ac_cv_type_daddr_t+set}" = set; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11621 cat >conftest.$ac_ext <<_ACEOF
11622 #line $LINENO "configure"
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h. */
11628 $ac_includes_default
11634 if (sizeof (daddr_t))
11640 rm -f conftest.$ac_objext
11641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11642 (eval $ac_compile) 2>&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); } &&
11646 { ac_try='test -s conftest.$ac_objext'
11647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648 (eval $ac_try) 2>&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; }; then
11652 ac_cv_type_daddr_t=yes
11654 echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11657 ac_cv_type_daddr_t=no
11659 rm -f conftest.$ac_objext conftest.$ac_ext
11661 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11662 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11663 if test $ac_cv_type_daddr_t = yes; then
11667 cat >>confdefs.h <<_ACEOF
11668 #define daddr_t long
11673 echo "$as_me:$LINENO: checking for major_t" >&5
11674 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11675 if test "${ac_cv_type_major_t+set}" = set; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11678 cat >conftest.$ac_ext <<_ACEOF
11679 #line $LINENO "configure"
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11685 $ac_includes_default
11691 if (sizeof (major_t))
11697 rm -f conftest.$ac_objext
11698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11699 (eval $ac_compile) 2>&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } &&
11703 { ac_try='test -s conftest.$ac_objext'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; }; then
11709 ac_cv_type_major_t=yes
11711 echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11714 ac_cv_type_major_t=no
11716 rm -f conftest.$ac_objext conftest.$ac_ext
11718 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11719 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11720 if test $ac_cv_type_major_t = yes; then
11724 cat >>confdefs.h <<_ACEOF
11725 #define major_t int
11730 echo "$as_me:$LINENO: checking for minor_t" >&5
11731 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11732 if test "${ac_cv_type_minor_t+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 cat >conftest.$ac_ext <<_ACEOF
11736 #line $LINENO "configure"
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h. */
11742 $ac_includes_default
11748 if (sizeof (minor_t))
11754 rm -f conftest.$ac_objext
11755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11756 (eval $ac_compile) 2>&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); } &&
11760 { ac_try='test -s conftest.$ac_objext'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11766 ac_cv_type_minor_t=yes
11768 echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11771 ac_cv_type_minor_t=no
11773 rm -f conftest.$ac_objext conftest.$ac_ext
11775 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11776 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11777 if test $ac_cv_type_minor_t = yes; then
11781 cat >>confdefs.h <<_ACEOF
11782 #define minor_t int
11787 echo "$as_me:$LINENO: checking for ssize_t" >&5
11788 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11789 if test "${ac_cv_type_ssize_t+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11792 cat >conftest.$ac_ext <<_ACEOF
11793 #line $LINENO "configure"
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h. */
11799 $ac_includes_default
11805 if (sizeof (ssize_t))
11811 rm -f conftest.$ac_objext
11812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11813 (eval $ac_compile) 2>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } &&
11817 { ac_try='test -s conftest.$ac_objext'
11818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819 (eval $ac_try) 2>&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; }; then
11823 ac_cv_type_ssize_t=yes
11825 echo "$as_me: failed program was:" >&5
11826 sed 's/^/| /' conftest.$ac_ext >&5
11828 ac_cv_type_ssize_t=no
11830 rm -f conftest.$ac_objext conftest.$ac_ext
11832 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11833 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11834 if test $ac_cv_type_ssize_t = yes; then
11838 cat >>confdefs.h <<_ACEOF
11839 #define ssize_t int
11844 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11845 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11846 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11849 cat >conftest.$ac_ext <<_ACEOF
11850 #line $LINENO "configure"
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h. */
11856 $ac_includes_default
11860 static struct stat ac_aggr;
11861 if (ac_aggr.st_blocks)
11867 rm -f conftest.$ac_objext
11868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11869 (eval $ac_compile) 2>&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } &&
11873 { ac_try='test -s conftest.$ac_objext'
11874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875 (eval $ac_try) 2>&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; }; then
11879 ac_cv_member_struct_stat_st_blocks=yes
11881 echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11884 cat >conftest.$ac_ext <<_ACEOF
11885 #line $LINENO "configure"
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11891 $ac_includes_default
11895 static struct stat ac_aggr;
11896 if (sizeof ac_aggr.st_blocks)
11902 rm -f conftest.$ac_objext
11903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11904 (eval $ac_compile) 2>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
11908 { ac_try='test -s conftest.$ac_objext'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11914 ac_cv_member_struct_stat_st_blocks=yes
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11919 ac_cv_member_struct_stat_st_blocks=no
11921 rm -f conftest.$ac_objext conftest.$ac_ext
11923 rm -f conftest.$ac_objext conftest.$ac_ext
11925 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11926 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11927 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11929 cat >>confdefs.h <<_ACEOF
11930 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11934 cat >>confdefs.h <<\_ACEOF
11935 #define HAVE_ST_BLOCKS 1
11939 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11944 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11945 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11946 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 cat >conftest.$ac_ext <<_ACEOF
11950 #line $LINENO "configure"
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h. */
11956 $ac_includes_default
11960 static struct stat ac_aggr;
11961 if (ac_aggr.st_rdev)
11967 rm -f conftest.$ac_objext
11968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11969 (eval $ac_compile) 2>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try='test -s conftest.$ac_objext'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; }; then
11979 ac_cv_member_struct_stat_st_rdev=yes
11981 echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11984 cat >conftest.$ac_ext <<_ACEOF
11985 #line $LINENO "configure"
11988 cat confdefs.h >>conftest.$ac_ext
11989 cat >>conftest.$ac_ext <<_ACEOF
11990 /* end confdefs.h. */
11991 $ac_includes_default
11995 static struct stat ac_aggr;
11996 if (sizeof ac_aggr.st_rdev)
12002 rm -f conftest.$ac_objext
12003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12004 (eval $ac_compile) 2>&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } &&
12008 { ac_try='test -s conftest.$ac_objext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_cv_member_struct_stat_st_rdev=yes
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12019 ac_cv_member_struct_stat_st_rdev=no
12021 rm -f conftest.$ac_objext conftest.$ac_ext
12023 rm -f conftest.$ac_objext conftest.$ac_ext
12025 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12026 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12027 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12029 cat >>confdefs.h <<_ACEOF
12030 #define HAVE_STRUCT_STAT_ST_RDEV 1
12034 cat >>confdefs.h <<\_ACEOF
12035 #define HAVE_ST_RDEV 1
12041 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12042 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12043 if test "${ac_cv_struct_tm+set}" = set; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
12046 cat >conftest.$ac_ext <<_ACEOF
12047 #line $LINENO "configure"
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h. */
12053 #include <sys/types.h>
12059 struct tm *tp; tp->tm_sec;
12064 rm -f conftest.$ac_objext
12065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12066 (eval $ac_compile) 2>&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
12070 { ac_try='test -s conftest.$ac_objext'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12076 ac_cv_struct_tm=time.h
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12081 ac_cv_struct_tm=sys/time.h
12083 rm -f conftest.$ac_objext conftest.$ac_ext
12085 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12086 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12087 if test $ac_cv_struct_tm = sys/time.h; then
12089 cat >>confdefs.h <<\_ACEOF
12090 #define TM_IN_SYS_TIME 1
12095 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12096 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12097 if test "${ac_cv_c_const+set}" = set; then
12098 echo $ECHO_N "(cached) $ECHO_C" >&6
12100 cat >conftest.$ac_ext <<_ACEOF
12101 #line $LINENO "configure"
12104 cat confdefs.h >>conftest.$ac_ext
12105 cat >>conftest.$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12111 /* FIXME: Include the comments suggested by Paul. */
12112 #ifndef __cplusplus
12113 /* Ultrix mips cc rejects this. */
12114 typedef int charset[2];
12116 /* SunOS 4.1.1 cc rejects this. */
12117 char const *const *ccp;
12119 /* NEC SVR4.0.2 mips cc rejects this. */
12120 struct point {int x, y;};
12121 static struct point const zero = {0,0};
12122 /* AIX XL C 1.02.0.0 rejects this.
12123 It does not let you subtract one const X* pointer from another in
12124 an arm of an if-expression whose if-part is not a constant
12126 const char *g = "string";
12127 ccp = &g + (g ? g-g : 0);
12128 /* HPUX 7.0 cc rejects these. */
12131 ccp = (char const *const *) p;
12132 { /* SCO 3.2v4 cc rejects this. */
12134 char const *s = 0 ? (char *) 0 : (char const *) 0;
12138 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12139 int x[] = {25, 17};
12140 const int *foo = &x[0];
12143 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12144 typedef const int *iptr;
12148 { /* AIX XL C 1.02.0.0 rejects this saying
12149 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12150 struct s { int j; const int *ap[3]; };
12151 struct s *b; b->j = 5;
12153 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12154 const int foo = 10;
12162 rm -f conftest.$ac_objext
12163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12164 (eval $ac_compile) 2>&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } &&
12168 { ac_try='test -s conftest.$ac_objext'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; }; then
12176 echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12181 rm -f conftest.$ac_objext conftest.$ac_ext
12183 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12184 echo "${ECHO_T}$ac_cv_c_const" >&6
12185 if test $ac_cv_c_const = no; then
12187 cat >>confdefs.h <<\_ACEOF
12195 echo "$as_me:$LINENO: checking for char" >&5
12196 echo $ECHO_N "checking for char... $ECHO_C" >&6
12197 if test "${ac_cv_type_char+set}" = set; then
12198 echo $ECHO_N "(cached) $ECHO_C" >&6
12200 cat >conftest.$ac_ext <<_ACEOF
12201 #line $LINENO "configure"
12204 cat confdefs.h >>conftest.$ac_ext
12205 cat >>conftest.$ac_ext <<_ACEOF
12206 /* end confdefs.h. */
12207 $ac_includes_default
12219 rm -f conftest.$ac_objext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12221 (eval $ac_compile) 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } &&
12225 { ac_try='test -s conftest.$ac_objext'
12226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227 (eval $ac_try) 2>&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; }; then
12231 ac_cv_type_char=yes
12233 echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12238 rm -f conftest.$ac_objext conftest.$ac_ext
12240 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12241 echo "${ECHO_T}$ac_cv_type_char" >&6
12243 echo "$as_me:$LINENO: checking size of char" >&5
12244 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12245 if test "${ac_cv_sizeof_char+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12248 if test "$ac_cv_type_char" = yes; then
12249 # The cast to unsigned long works around a bug in the HP C Compiler
12250 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12251 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12252 # This bug is HP SR number 8606223364.
12253 if test "$cross_compiling" = yes; then
12254 # Depending upon the size, compute the lo and hi bounds.
12255 cat >conftest.$ac_ext <<_ACEOF
12256 #line $LINENO "configure"
12259 cat confdefs.h >>conftest.$ac_ext
12260 cat >>conftest.$ac_ext <<_ACEOF
12261 /* end confdefs.h. */
12262 $ac_includes_default
12266 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12273 rm -f conftest.$ac_objext
12274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12275 (eval $ac_compile) 2>&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } &&
12279 { ac_try='test -s conftest.$ac_objext'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12287 cat >conftest.$ac_ext <<_ACEOF
12288 #line $LINENO "configure"
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12294 $ac_includes_default
12298 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12305 rm -f conftest.$ac_objext
12306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12307 (eval $ac_compile) 2>&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } &&
12311 { ac_try='test -s conftest.$ac_objext'
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; }; then
12317 ac_hi=$ac_mid; break
12319 echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12322 ac_lo=`expr $ac_mid + 1`
12323 if test $ac_lo -le $ac_mid; then
12327 ac_mid=`expr 2 '*' $ac_mid + 1`
12329 rm -f conftest.$ac_objext conftest.$ac_ext
12332 echo "$as_me: failed program was:" >&5
12333 sed 's/^/| /' conftest.$ac_ext >&5
12335 cat >conftest.$ac_ext <<_ACEOF
12336 #line $LINENO "configure"
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12342 $ac_includes_default
12346 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12353 rm -f conftest.$ac_objext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12355 (eval $ac_compile) 2>&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } &&
12359 { ac_try='test -s conftest.$ac_objext'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; }; then
12367 cat >conftest.$ac_ext <<_ACEOF
12368 #line $LINENO "configure"
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374 $ac_includes_default
12378 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12385 rm -f conftest.$ac_objext
12386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12387 (eval $ac_compile) 2>&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); } &&
12391 { ac_try='test -s conftest.$ac_objext'
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; }; then
12397 ac_lo=$ac_mid; break
12399 echo "$as_me: failed program was:" >&5
12400 sed 's/^/| /' conftest.$ac_ext >&5
12402 ac_hi=`expr '(' $ac_mid ')' - 1`
12403 if test $ac_mid -le $ac_hi; then
12407 ac_mid=`expr 2 '*' $ac_mid`
12409 rm -f conftest.$ac_objext conftest.$ac_ext
12412 echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12417 rm -f conftest.$ac_objext conftest.$ac_ext
12419 rm -f conftest.$ac_objext conftest.$ac_ext
12420 # Binary search between lo and hi bounds.
12421 while test "x$ac_lo" != "x$ac_hi"; do
12422 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12423 cat >conftest.$ac_ext <<_ACEOF
12424 #line $LINENO "configure"
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12430 $ac_includes_default
12434 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12441 rm -f conftest.$ac_objext
12442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12443 (eval $ac_compile) 2>&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
12447 { ac_try='test -s conftest.$ac_objext'
12448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; }; then
12455 echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12458 ac_lo=`expr '(' $ac_mid ')' + 1`
12460 rm -f conftest.$ac_objext conftest.$ac_ext
12463 ?*) ac_cv_sizeof_char=$ac_lo;;
12464 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12465 See \`config.log' for more details." >&5
12466 echo "$as_me: error: cannot compute sizeof (char), 77
12467 See \`config.log' for more details." >&2;}
12468 { (exit 1); exit 1; }; } ;;
12471 if test "$cross_compiling" = yes; then
12472 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12473 See \`config.log' for more details." >&5
12474 echo "$as_me: error: cannot run test program while cross compiling
12475 See \`config.log' for more details." >&2;}
12476 { (exit 1); exit 1; }; }
12478 cat >conftest.$ac_ext <<_ACEOF
12479 #line $LINENO "configure"
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485 $ac_includes_default
12486 long longval () { return (long) (sizeof (char)); }
12487 unsigned long ulongval () { return (long) (sizeof (char)); }
12489 #include <stdlib.h>
12494 FILE *f = fopen ("conftest.val", "w");
12497 if (((long) (sizeof (char))) < 0)
12499 long i = longval ();
12500 if (i != ((long) (sizeof (char))))
12502 fprintf (f, "%ld\n", i);
12506 unsigned long i = ulongval ();
12507 if (i != ((long) (sizeof (char))))
12509 fprintf (f, "%lu\n", i);
12511 exit (ferror (f) || fclose (f) != 0);
12517 rm -f conftest$ac_exeext
12518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12519 (eval $ac_link) 2>&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; }; then
12528 ac_cv_sizeof_char=`cat conftest.val`
12530 echo "$as_me: program exited with status $ac_status" >&5
12531 echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12534 ( exit $ac_status )
12535 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12536 See \`config.log' for more details." >&5
12537 echo "$as_me: error: cannot compute sizeof (char), 77
12538 See \`config.log' for more details." >&2;}
12539 { (exit 1); exit 1; }; }
12541 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12546 ac_cv_sizeof_char=0
12549 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12550 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12551 cat >>confdefs.h <<_ACEOF
12552 #define SIZEOF_CHAR $ac_cv_sizeof_char
12556 echo "$as_me:$LINENO: checking for short int" >&5
12557 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12558 if test "${ac_cv_type_short_int+set}" = set; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12561 cat >conftest.$ac_ext <<_ACEOF
12562 #line $LINENO "configure"
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h. */
12568 $ac_includes_default
12572 if ((short int *) 0)
12574 if (sizeof (short int))
12580 rm -f conftest.$ac_objext
12581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12582 (eval $ac_compile) 2>&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); } &&
12586 { ac_try='test -s conftest.$ac_objext'
12587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588 (eval $ac_try) 2>&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; }; then
12592 ac_cv_type_short_int=yes
12594 echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12597 ac_cv_type_short_int=no
12599 rm -f conftest.$ac_objext conftest.$ac_ext
12601 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12602 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12604 echo "$as_me:$LINENO: checking size of short int" >&5
12605 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12606 if test "${ac_cv_sizeof_short_int+set}" = set; then
12607 echo $ECHO_N "(cached) $ECHO_C" >&6
12609 if test "$ac_cv_type_short_int" = yes; then
12610 # The cast to unsigned long works around a bug in the HP C Compiler
12611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12613 # This bug is HP SR number 8606223364.
12614 if test "$cross_compiling" = yes; then
12615 # Depending upon the size, compute the lo and hi bounds.
12616 cat >conftest.$ac_ext <<_ACEOF
12617 #line $LINENO "configure"
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12623 $ac_includes_default
12627 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12634 rm -f conftest.$ac_objext
12635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12636 (eval $ac_compile) 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } &&
12640 { ac_try='test -s conftest.$ac_objext'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; }; then
12648 cat >conftest.$ac_ext <<_ACEOF
12649 #line $LINENO "configure"
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h. */
12655 $ac_includes_default
12659 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12666 rm -f conftest.$ac_objext
12667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12668 (eval $ac_compile) 2>&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try='test -s conftest.$ac_objext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 ac_hi=$ac_mid; break
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12683 ac_lo=`expr $ac_mid + 1`
12684 if test $ac_lo -le $ac_mid; then
12688 ac_mid=`expr 2 '*' $ac_mid + 1`
12690 rm -f conftest.$ac_objext conftest.$ac_ext
12693 echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12696 cat >conftest.$ac_ext <<_ACEOF
12697 #line $LINENO "configure"
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h. */
12703 $ac_includes_default
12707 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12714 rm -f conftest.$ac_objext
12715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12716 (eval $ac_compile) 2>&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } &&
12720 { ac_try='test -s conftest.$ac_objext'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; }; then
12728 cat >conftest.$ac_ext <<_ACEOF
12729 #line $LINENO "configure"
12732 cat confdefs.h >>conftest.$ac_ext
12733 cat >>conftest.$ac_ext <<_ACEOF
12734 /* end confdefs.h. */
12735 $ac_includes_default
12739 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12746 rm -f conftest.$ac_objext
12747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12748 (eval $ac_compile) 2>&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } &&
12752 { ac_try='test -s conftest.$ac_objext'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; }; then
12758 ac_lo=$ac_mid; break
12760 echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12763 ac_hi=`expr '(' $ac_mid ')' - 1`
12764 if test $ac_mid -le $ac_hi; then
12768 ac_mid=`expr 2 '*' $ac_mid`
12770 rm -f conftest.$ac_objext conftest.$ac_ext
12773 echo "$as_me: failed program was:" >&5
12774 sed 's/^/| /' conftest.$ac_ext >&5
12778 rm -f conftest.$ac_objext conftest.$ac_ext
12780 rm -f conftest.$ac_objext conftest.$ac_ext
12781 # Binary search between lo and hi bounds.
12782 while test "x$ac_lo" != "x$ac_hi"; do
12783 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12784 cat >conftest.$ac_ext <<_ACEOF
12785 #line $LINENO "configure"
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12791 $ac_includes_default
12795 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12802 rm -f conftest.$ac_objext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12804 (eval $ac_compile) 2>&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } &&
12808 { ac_try='test -s conftest.$ac_objext'
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; }; then
12816 echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12819 ac_lo=`expr '(' $ac_mid ')' + 1`
12821 rm -f conftest.$ac_objext conftest.$ac_ext
12824 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12825 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12826 See \`config.log' for more details." >&5
12827 echo "$as_me: error: cannot compute sizeof (short int), 77
12828 See \`config.log' for more details." >&2;}
12829 { (exit 1); exit 1; }; } ;;
12832 if test "$cross_compiling" = yes; then
12833 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12834 See \`config.log' for more details." >&5
12835 echo "$as_me: error: cannot run test program while cross compiling
12836 See \`config.log' for more details." >&2;}
12837 { (exit 1); exit 1; }; }
12839 cat >conftest.$ac_ext <<_ACEOF
12840 #line $LINENO "configure"
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h. */
12846 $ac_includes_default
12847 long longval () { return (long) (sizeof (short int)); }
12848 unsigned long ulongval () { return (long) (sizeof (short int)); }
12850 #include <stdlib.h>
12855 FILE *f = fopen ("conftest.val", "w");
12858 if (((long) (sizeof (short int))) < 0)
12860 long i = longval ();
12861 if (i != ((long) (sizeof (short int))))
12863 fprintf (f, "%ld\n", i);
12867 unsigned long i = ulongval ();
12868 if (i != ((long) (sizeof (short int))))
12870 fprintf (f, "%lu\n", i);
12872 exit (ferror (f) || fclose (f) != 0);
12878 rm -f conftest$ac_exeext
12879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12880 (eval $ac_link) 2>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; }; then
12889 ac_cv_sizeof_short_int=`cat conftest.val`
12891 echo "$as_me: program exited with status $ac_status" >&5
12892 echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12895 ( exit $ac_status )
12896 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12897 See \`config.log' for more details." >&5
12898 echo "$as_me: error: cannot compute sizeof (short int), 77
12899 See \`config.log' for more details." >&2;}
12900 { (exit 1); exit 1; }; }
12902 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12907 ac_cv_sizeof_short_int=0
12910 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12911 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12912 cat >>confdefs.h <<_ACEOF
12913 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12917 echo "$as_me:$LINENO: checking for int" >&5
12918 echo $ECHO_N "checking for int... $ECHO_C" >&6
12919 if test "${ac_cv_type_int+set}" = set; then
12920 echo $ECHO_N "(cached) $ECHO_C" >&6
12922 cat >conftest.$ac_ext <<_ACEOF
12923 #line $LINENO "configure"
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h. */
12929 $ac_includes_default
12941 rm -f conftest.$ac_objext
12942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12943 (eval $ac_compile) 2>&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } &&
12947 { ac_try='test -s conftest.$ac_objext'
12948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949 (eval $ac_try) 2>&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; }; then
12955 echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12960 rm -f conftest.$ac_objext conftest.$ac_ext
12962 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12963 echo "${ECHO_T}$ac_cv_type_int" >&6
12965 echo "$as_me:$LINENO: checking size of int" >&5
12966 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12967 if test "${ac_cv_sizeof_int+set}" = set; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
12970 if test "$ac_cv_type_int" = yes; then
12971 # The cast to unsigned long works around a bug in the HP C Compiler
12972 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12973 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12974 # This bug is HP SR number 8606223364.
12975 if test "$cross_compiling" = yes; then
12976 # Depending upon the size, compute the lo and hi bounds.
12977 cat >conftest.$ac_ext <<_ACEOF
12978 #line $LINENO "configure"
12981 cat confdefs.h >>conftest.$ac_ext
12982 cat >>conftest.$ac_ext <<_ACEOF
12983 /* end confdefs.h. */
12984 $ac_includes_default
12988 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12995 rm -f conftest.$ac_objext
12996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12997 (eval $ac_compile) 2>&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } &&
13001 { ac_try='test -s conftest.$ac_objext'
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; }; then
13009 cat >conftest.$ac_ext <<_ACEOF
13010 #line $LINENO "configure"
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h. */
13016 $ac_includes_default
13020 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13027 rm -f conftest.$ac_objext
13028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13029 (eval $ac_compile) 2>&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } &&
13033 { ac_try='test -s conftest.$ac_objext'
13034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035 (eval $ac_try) 2>&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; }; then
13039 ac_hi=$ac_mid; break
13041 echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13044 ac_lo=`expr $ac_mid + 1`
13045 if test $ac_lo -le $ac_mid; then
13049 ac_mid=`expr 2 '*' $ac_mid + 1`
13051 rm -f conftest.$ac_objext conftest.$ac_ext
13054 echo "$as_me: failed program was:" >&5
13055 sed 's/^/| /' conftest.$ac_ext >&5
13057 cat >conftest.$ac_ext <<_ACEOF
13058 #line $LINENO "configure"
13061 cat confdefs.h >>conftest.$ac_ext
13062 cat >>conftest.$ac_ext <<_ACEOF
13063 /* end confdefs.h. */
13064 $ac_includes_default
13068 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13075 rm -f conftest.$ac_objext
13076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13077 (eval $ac_compile) 2>&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } &&
13081 { ac_try='test -s conftest.$ac_objext'
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; }; then
13089 cat >conftest.$ac_ext <<_ACEOF
13090 #line $LINENO "configure"
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h. */
13096 $ac_includes_default
13100 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13107 rm -f conftest.$ac_objext
13108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13109 (eval $ac_compile) 2>&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } &&
13113 { ac_try='test -s conftest.$ac_objext'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 ac_lo=$ac_mid; break
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13124 ac_hi=`expr '(' $ac_mid ')' - 1`
13125 if test $ac_mid -le $ac_hi; then
13129 ac_mid=`expr 2 '*' $ac_mid`
13131 rm -f conftest.$ac_objext conftest.$ac_ext
13134 echo "$as_me: failed program was:" >&5
13135 sed 's/^/| /' conftest.$ac_ext >&5
13139 rm -f conftest.$ac_objext conftest.$ac_ext
13141 rm -f conftest.$ac_objext conftest.$ac_ext
13142 # Binary search between lo and hi bounds.
13143 while test "x$ac_lo" != "x$ac_hi"; do
13144 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13145 cat >conftest.$ac_ext <<_ACEOF
13146 #line $LINENO "configure"
13149 cat confdefs.h >>conftest.$ac_ext
13150 cat >>conftest.$ac_ext <<_ACEOF
13151 /* end confdefs.h. */
13152 $ac_includes_default
13156 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13163 rm -f conftest.$ac_objext
13164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13165 (eval $ac_compile) 2>&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } &&
13169 { ac_try='test -s conftest.$ac_objext'
13170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171 (eval $ac_try) 2>&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; }; then
13177 echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13180 ac_lo=`expr '(' $ac_mid ')' + 1`
13182 rm -f conftest.$ac_objext conftest.$ac_ext
13185 ?*) ac_cv_sizeof_int=$ac_lo;;
13186 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13187 See \`config.log' for more details." >&5
13188 echo "$as_me: error: cannot compute sizeof (int), 77
13189 See \`config.log' for more details." >&2;}
13190 { (exit 1); exit 1; }; } ;;
13193 if test "$cross_compiling" = yes; then
13194 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13195 See \`config.log' for more details." >&5
13196 echo "$as_me: error: cannot run test program while cross compiling
13197 See \`config.log' for more details." >&2;}
13198 { (exit 1); exit 1; }; }
13200 cat >conftest.$ac_ext <<_ACEOF
13201 #line $LINENO "configure"
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h. */
13207 $ac_includes_default
13208 long longval () { return (long) (sizeof (int)); }
13209 unsigned long ulongval () { return (long) (sizeof (int)); }
13211 #include <stdlib.h>
13216 FILE *f = fopen ("conftest.val", "w");
13219 if (((long) (sizeof (int))) < 0)
13221 long i = longval ();
13222 if (i != ((long) (sizeof (int))))
13224 fprintf (f, "%ld\n", i);
13228 unsigned long i = ulongval ();
13229 if (i != ((long) (sizeof (int))))
13231 fprintf (f, "%lu\n", i);
13233 exit (ferror (f) || fclose (f) != 0);
13239 rm -f conftest$ac_exeext
13240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13241 (eval $ac_link) 2>&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; }; then
13250 ac_cv_sizeof_int=`cat conftest.val`
13252 echo "$as_me: program exited with status $ac_status" >&5
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13256 ( exit $ac_status )
13257 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13258 See \`config.log' for more details." >&5
13259 echo "$as_me: error: cannot compute sizeof (int), 77
13260 See \`config.log' for more details." >&2;}
13261 { (exit 1); exit 1; }; }
13263 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13271 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13272 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13273 cat >>confdefs.h <<_ACEOF
13274 #define SIZEOF_INT $ac_cv_sizeof_int
13278 echo "$as_me:$LINENO: checking for long int" >&5
13279 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13280 if test "${ac_cv_type_long_int+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13283 cat >conftest.$ac_ext <<_ACEOF
13284 #line $LINENO "configure"
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h. */
13290 $ac_includes_default
13294 if ((long int *) 0)
13296 if (sizeof (long int))
13302 rm -f conftest.$ac_objext
13303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13304 (eval $ac_compile) 2>&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } &&
13308 { ac_try='test -s conftest.$ac_objext'
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13314 ac_cv_type_long_int=yes
13316 echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13319 ac_cv_type_long_int=no
13321 rm -f conftest.$ac_objext conftest.$ac_ext
13323 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13324 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13326 echo "$as_me:$LINENO: checking size of long int" >&5
13327 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13328 if test "${ac_cv_sizeof_long_int+set}" = set; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
13331 if test "$ac_cv_type_long_int" = yes; then
13332 # The cast to unsigned long works around a bug in the HP C Compiler
13333 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13334 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13335 # This bug is HP SR number 8606223364.
13336 if test "$cross_compiling" = yes; then
13337 # Depending upon the size, compute the lo and hi bounds.
13338 cat >conftest.$ac_ext <<_ACEOF
13339 #line $LINENO "configure"
13342 cat confdefs.h >>conftest.$ac_ext
13343 cat >>conftest.$ac_ext <<_ACEOF
13344 /* end confdefs.h. */
13345 $ac_includes_default
13349 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13356 rm -f conftest.$ac_objext
13357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13358 (eval $ac_compile) 2>&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); } &&
13362 { ac_try='test -s conftest.$ac_objext'
13363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13364 (eval $ac_try) 2>&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; }; then
13370 cat >conftest.$ac_ext <<_ACEOF
13371 #line $LINENO "configure"
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13377 $ac_includes_default
13381 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13388 rm -f conftest.$ac_objext
13389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13390 (eval $ac_compile) 2>&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } &&
13394 { ac_try='test -s conftest.$ac_objext'
13395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396 (eval $ac_try) 2>&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; }; then
13400 ac_hi=$ac_mid; break
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13405 ac_lo=`expr $ac_mid + 1`
13406 if test $ac_lo -le $ac_mid; then
13410 ac_mid=`expr 2 '*' $ac_mid + 1`
13412 rm -f conftest.$ac_objext conftest.$ac_ext
13415 echo "$as_me: failed program was:" >&5
13416 sed 's/^/| /' conftest.$ac_ext >&5
13418 cat >conftest.$ac_ext <<_ACEOF
13419 #line $LINENO "configure"
13422 cat confdefs.h >>conftest.$ac_ext
13423 cat >>conftest.$ac_ext <<_ACEOF
13424 /* end confdefs.h. */
13425 $ac_includes_default
13429 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13436 rm -f conftest.$ac_objext
13437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13438 (eval $ac_compile) 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
13442 { ac_try='test -s conftest.$ac_objext'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; }; then
13450 cat >conftest.$ac_ext <<_ACEOF
13451 #line $LINENO "configure"
13454 cat confdefs.h >>conftest.$ac_ext
13455 cat >>conftest.$ac_ext <<_ACEOF
13456 /* end confdefs.h. */
13457 $ac_includes_default
13461 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13468 rm -f conftest.$ac_objext
13469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13470 (eval $ac_compile) 2>&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } &&
13474 { ac_try='test -s conftest.$ac_objext'
13475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; }; then
13480 ac_lo=$ac_mid; break
13482 echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.$ac_ext >&5
13485 ac_hi=`expr '(' $ac_mid ')' - 1`
13486 if test $ac_mid -le $ac_hi; then
13490 ac_mid=`expr 2 '*' $ac_mid`
13492 rm -f conftest.$ac_objext conftest.$ac_ext
13495 echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13500 rm -f conftest.$ac_objext conftest.$ac_ext
13502 rm -f conftest.$ac_objext conftest.$ac_ext
13503 # Binary search between lo and hi bounds.
13504 while test "x$ac_lo" != "x$ac_hi"; do
13505 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13506 cat >conftest.$ac_ext <<_ACEOF
13507 #line $LINENO "configure"
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13513 $ac_includes_default
13517 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13524 rm -f conftest.$ac_objext
13525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13526 (eval $ac_compile) 2>&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } &&
13530 { ac_try='test -s conftest.$ac_objext'
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
13538 echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13541 ac_lo=`expr '(' $ac_mid ')' + 1`
13543 rm -f conftest.$ac_objext conftest.$ac_ext
13546 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13547 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13548 See \`config.log' for more details." >&5
13549 echo "$as_me: error: cannot compute sizeof (long int), 77
13550 See \`config.log' for more details." >&2;}
13551 { (exit 1); exit 1; }; } ;;
13554 if test "$cross_compiling" = yes; then
13555 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13556 See \`config.log' for more details." >&5
13557 echo "$as_me: error: cannot run test program while cross compiling
13558 See \`config.log' for more details." >&2;}
13559 { (exit 1); exit 1; }; }
13561 cat >conftest.$ac_ext <<_ACEOF
13562 #line $LINENO "configure"
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h. */
13568 $ac_includes_default
13569 long longval () { return (long) (sizeof (long int)); }
13570 unsigned long ulongval () { return (long) (sizeof (long int)); }
13572 #include <stdlib.h>
13577 FILE *f = fopen ("conftest.val", "w");
13580 if (((long) (sizeof (long int))) < 0)
13582 long i = longval ();
13583 if (i != ((long) (sizeof (long int))))
13585 fprintf (f, "%ld\n", i);
13589 unsigned long i = ulongval ();
13590 if (i != ((long) (sizeof (long int))))
13592 fprintf (f, "%lu\n", i);
13594 exit (ferror (f) || fclose (f) != 0);
13600 rm -f conftest$ac_exeext
13601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13602 (eval $ac_link) 2>&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; }; then
13611 ac_cv_sizeof_long_int=`cat conftest.val`
13613 echo "$as_me: program exited with status $ac_status" >&5
13614 echo "$as_me: failed program was:" >&5
13615 sed 's/^/| /' conftest.$ac_ext >&5
13617 ( exit $ac_status )
13618 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13619 See \`config.log' for more details." >&5
13620 echo "$as_me: error: cannot compute sizeof (long int), 77
13621 See \`config.log' for more details." >&2;}
13622 { (exit 1); exit 1; }; }
13624 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13629 ac_cv_sizeof_long_int=0
13632 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13633 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13634 cat >>confdefs.h <<_ACEOF
13635 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13639 echo "$as_me:$LINENO: checking for long long int" >&5
13640 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13641 if test "${ac_cv_type_long_long_int+set}" = set; then
13642 echo $ECHO_N "(cached) $ECHO_C" >&6
13644 cat >conftest.$ac_ext <<_ACEOF
13645 #line $LINENO "configure"
13648 cat confdefs.h >>conftest.$ac_ext
13649 cat >>conftest.$ac_ext <<_ACEOF
13650 /* end confdefs.h. */
13651 $ac_includes_default
13655 if ((long long int *) 0)
13657 if (sizeof (long long int))
13663 rm -f conftest.$ac_objext
13664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13665 (eval $ac_compile) 2>&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); } &&
13669 { ac_try='test -s conftest.$ac_objext'
13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671 (eval $ac_try) 2>&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; }; then
13675 ac_cv_type_long_long_int=yes
13677 echo "$as_me: failed program was:" >&5
13678 sed 's/^/| /' conftest.$ac_ext >&5
13680 ac_cv_type_long_long_int=no
13682 rm -f conftest.$ac_objext conftest.$ac_ext
13684 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13685 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13687 echo "$as_me:$LINENO: checking size of long long int" >&5
13688 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13689 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13690 echo $ECHO_N "(cached) $ECHO_C" >&6
13692 if test "$ac_cv_type_long_long_int" = yes; then
13693 # The cast to unsigned long works around a bug in the HP C Compiler
13694 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13695 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13696 # This bug is HP SR number 8606223364.
13697 if test "$cross_compiling" = yes; then
13698 # Depending upon the size, compute the lo and hi bounds.
13699 cat >conftest.$ac_ext <<_ACEOF
13700 #line $LINENO "configure"
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h. */
13706 $ac_includes_default
13710 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13717 rm -f conftest.$ac_objext
13718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13719 (eval $ac_compile) 2>&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } &&
13723 { ac_try='test -s conftest.$ac_objext'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13731 cat >conftest.$ac_ext <<_ACEOF
13732 #line $LINENO "configure"
13735 cat confdefs.h >>conftest.$ac_ext
13736 cat >>conftest.$ac_ext <<_ACEOF
13737 /* end confdefs.h. */
13738 $ac_includes_default
13742 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13749 rm -f conftest.$ac_objext
13750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13751 (eval $ac_compile) 2>&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } &&
13755 { ac_try='test -s conftest.$ac_objext'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; }; then
13761 ac_hi=$ac_mid; break
13763 echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13766 ac_lo=`expr $ac_mid + 1`
13767 if test $ac_lo -le $ac_mid; then
13771 ac_mid=`expr 2 '*' $ac_mid + 1`
13773 rm -f conftest.$ac_objext conftest.$ac_ext
13776 echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13779 cat >conftest.$ac_ext <<_ACEOF
13780 #line $LINENO "configure"
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h. */
13786 $ac_includes_default
13790 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13797 rm -f conftest.$ac_objext
13798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13799 (eval $ac_compile) 2>&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
13803 { ac_try='test -s conftest.$ac_objext'
13804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805 (eval $ac_try) 2>&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; }; then
13811 cat >conftest.$ac_ext <<_ACEOF
13812 #line $LINENO "configure"
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h. */
13818 $ac_includes_default
13822 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13829 rm -f conftest.$ac_objext
13830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13831 (eval $ac_compile) 2>&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); } &&
13835 { ac_try='test -s conftest.$ac_objext'
13836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837 (eval $ac_try) 2>&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; }; then
13841 ac_lo=$ac_mid; break
13843 echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13846 ac_hi=`expr '(' $ac_mid ')' - 1`
13847 if test $ac_mid -le $ac_hi; then
13851 ac_mid=`expr 2 '*' $ac_mid`
13853 rm -f conftest.$ac_objext conftest.$ac_ext
13856 echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13861 rm -f conftest.$ac_objext conftest.$ac_ext
13863 rm -f conftest.$ac_objext conftest.$ac_ext
13864 # Binary search between lo and hi bounds.
13865 while test "x$ac_lo" != "x$ac_hi"; do
13866 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13867 cat >conftest.$ac_ext <<_ACEOF
13868 #line $LINENO "configure"
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h. */
13874 $ac_includes_default
13878 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13885 rm -f conftest.$ac_objext
13886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13887 (eval $ac_compile) 2>&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
13891 { ac_try='test -s conftest.$ac_objext'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; }; then
13899 echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13902 ac_lo=`expr '(' $ac_mid ')' + 1`
13904 rm -f conftest.$ac_objext conftest.$ac_ext
13907 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13908 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13909 See \`config.log' for more details." >&5
13910 echo "$as_me: error: cannot compute sizeof (long long int), 77
13911 See \`config.log' for more details." >&2;}
13912 { (exit 1); exit 1; }; } ;;
13915 if test "$cross_compiling" = yes; then
13916 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13917 See \`config.log' for more details." >&5
13918 echo "$as_me: error: cannot run test program while cross compiling
13919 See \`config.log' for more details." >&2;}
13920 { (exit 1); exit 1; }; }
13922 cat >conftest.$ac_ext <<_ACEOF
13923 #line $LINENO "configure"
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 $ac_includes_default
13930 long longval () { return (long) (sizeof (long long int)); }
13931 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13933 #include <stdlib.h>
13938 FILE *f = fopen ("conftest.val", "w");
13941 if (((long) (sizeof (long long int))) < 0)
13943 long i = longval ();
13944 if (i != ((long) (sizeof (long long int))))
13946 fprintf (f, "%ld\n", i);
13950 unsigned long i = ulongval ();
13951 if (i != ((long) (sizeof (long long int))))
13953 fprintf (f, "%lu\n", i);
13955 exit (ferror (f) || fclose (f) != 0);
13961 rm -f conftest$ac_exeext
13962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13963 (eval $ac_link) 2>&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; }; then
13972 ac_cv_sizeof_long_long_int=`cat conftest.val`
13974 echo "$as_me: program exited with status $ac_status" >&5
13975 echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13978 ( exit $ac_status )
13979 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13980 See \`config.log' for more details." >&5
13981 echo "$as_me: error: cannot compute sizeof (long long int), 77
13982 See \`config.log' for more details." >&2;}
13983 { (exit 1); exit 1; }; }
13985 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13990 ac_cv_sizeof_long_long_int=0
13993 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13994 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13995 cat >>confdefs.h <<_ACEOF
13996 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14000 echo "$as_me:$LINENO: checking for int *" >&5
14001 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14002 if test "${ac_cv_type_int_p+set}" = set; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14005 cat >conftest.$ac_ext <<_ACEOF
14006 #line $LINENO "configure"
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14012 $ac_includes_default
14018 if (sizeof (int *))
14024 rm -f conftest.$ac_objext
14025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14026 (eval $ac_compile) 2>&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } &&
14030 { ac_try='test -s conftest.$ac_objext'
14031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14032 (eval $ac_try) 2>&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; }; then
14036 ac_cv_type_int_p=yes
14038 echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14041 ac_cv_type_int_p=no
14043 rm -f conftest.$ac_objext conftest.$ac_ext
14045 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14046 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14048 echo "$as_me:$LINENO: checking size of int *" >&5
14049 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14050 if test "${ac_cv_sizeof_int_p+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14053 if test "$ac_cv_type_int_p" = yes; then
14054 # The cast to unsigned long works around a bug in the HP C Compiler
14055 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14056 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14057 # This bug is HP SR number 8606223364.
14058 if test "$cross_compiling" = yes; then
14059 # Depending upon the size, compute the lo and hi bounds.
14060 cat >conftest.$ac_ext <<_ACEOF
14061 #line $LINENO "configure"
14064 cat confdefs.h >>conftest.$ac_ext
14065 cat >>conftest.$ac_ext <<_ACEOF
14066 /* end confdefs.h. */
14067 $ac_includes_default
14071 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14078 rm -f conftest.$ac_objext
14079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14080 (eval $ac_compile) 2>&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } &&
14084 { ac_try='test -s conftest.$ac_objext'
14085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086 (eval $ac_try) 2>&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; }; then
14092 cat >conftest.$ac_ext <<_ACEOF
14093 #line $LINENO "configure"
14096 cat confdefs.h >>conftest.$ac_ext
14097 cat >>conftest.$ac_ext <<_ACEOF
14098 /* end confdefs.h. */
14099 $ac_includes_default
14103 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14110 rm -f conftest.$ac_objext
14111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14112 (eval $ac_compile) 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } &&
14116 { ac_try='test -s conftest.$ac_objext'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 ac_hi=$ac_mid; break
14124 echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14127 ac_lo=`expr $ac_mid + 1`
14128 if test $ac_lo -le $ac_mid; then
14132 ac_mid=`expr 2 '*' $ac_mid + 1`
14134 rm -f conftest.$ac_objext conftest.$ac_ext
14137 echo "$as_me: failed program was:" >&5
14138 sed 's/^/| /' conftest.$ac_ext >&5
14140 cat >conftest.$ac_ext <<_ACEOF
14141 #line $LINENO "configure"
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h. */
14147 $ac_includes_default
14151 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14158 rm -f conftest.$ac_objext
14159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14160 (eval $ac_compile) 2>&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } &&
14164 { ac_try='test -s conftest.$ac_objext'
14165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166 (eval $ac_try) 2>&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; }; then
14172 cat >conftest.$ac_ext <<_ACEOF
14173 #line $LINENO "configure"
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h. */
14179 $ac_includes_default
14183 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14190 rm -f conftest.$ac_objext
14191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14192 (eval $ac_compile) 2>&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } &&
14196 { ac_try='test -s conftest.$ac_objext'
14197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198 (eval $ac_try) 2>&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; }; then
14202 ac_lo=$ac_mid; break
14204 echo "$as_me: failed program was:" >&5
14205 sed 's/^/| /' conftest.$ac_ext >&5
14207 ac_hi=`expr '(' $ac_mid ')' - 1`
14208 if test $ac_mid -le $ac_hi; then
14212 ac_mid=`expr 2 '*' $ac_mid`
14214 rm -f conftest.$ac_objext conftest.$ac_ext
14217 echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14222 rm -f conftest.$ac_objext conftest.$ac_ext
14224 rm -f conftest.$ac_objext conftest.$ac_ext
14225 # Binary search between lo and hi bounds.
14226 while test "x$ac_lo" != "x$ac_hi"; do
14227 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14228 cat >conftest.$ac_ext <<_ACEOF
14229 #line $LINENO "configure"
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14235 $ac_includes_default
14239 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14246 rm -f conftest.$ac_objext
14247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14248 (eval $ac_compile) 2>&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } &&
14252 { ac_try='test -s conftest.$ac_objext'
14253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254 (eval $ac_try) 2>&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; }; then
14260 echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14263 ac_lo=`expr '(' $ac_mid ')' + 1`
14265 rm -f conftest.$ac_objext conftest.$ac_ext
14268 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14269 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14270 See \`config.log' for more details." >&5
14271 echo "$as_me: error: cannot compute sizeof (int *), 77
14272 See \`config.log' for more details." >&2;}
14273 { (exit 1); exit 1; }; } ;;
14276 if test "$cross_compiling" = yes; then
14277 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14278 See \`config.log' for more details." >&5
14279 echo "$as_me: error: cannot run test program while cross compiling
14280 See \`config.log' for more details." >&2;}
14281 { (exit 1); exit 1; }; }
14283 cat >conftest.$ac_ext <<_ACEOF
14284 #line $LINENO "configure"
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h. */
14290 $ac_includes_default
14291 long longval () { return (long) (sizeof (int *)); }
14292 unsigned long ulongval () { return (long) (sizeof (int *)); }
14294 #include <stdlib.h>
14299 FILE *f = fopen ("conftest.val", "w");
14302 if (((long) (sizeof (int *))) < 0)
14304 long i = longval ();
14305 if (i != ((long) (sizeof (int *))))
14307 fprintf (f, "%ld\n", i);
14311 unsigned long i = ulongval ();
14312 if (i != ((long) (sizeof (int *))))
14314 fprintf (f, "%lu\n", i);
14316 exit (ferror (f) || fclose (f) != 0);
14322 rm -f conftest$ac_exeext
14323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14324 (eval $ac_link) 2>&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
14333 ac_cv_sizeof_int_p=`cat conftest.val`
14335 echo "$as_me: program exited with status $ac_status" >&5
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14339 ( exit $ac_status )
14340 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14341 See \`config.log' for more details." >&5
14342 echo "$as_me: error: cannot compute sizeof (int *), 77
14343 See \`config.log' for more details." >&2;}
14344 { (exit 1); exit 1; }; }
14346 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14351 ac_cv_sizeof_int_p=0
14354 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14355 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14356 cat >>confdefs.h <<_ACEOF
14357 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14362 # Check for sys/types.h types
14363 echo "$as_me:$LINENO: checking for u_int type" >&5
14364 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14365 if test "${ac_cv_have_u_int+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14369 cat >conftest.$ac_ext <<_ACEOF
14370 #line $LINENO "configure"
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h. */
14376 #include <sys/types.h>
14385 rm -f conftest.$ac_objext
14386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14387 (eval $ac_compile) 2>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
14391 { ac_try='test -s conftest.$ac_objext'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; }; then
14397 ac_cv_have_u_int="yes"
14399 echo "$as_me: failed program was:" >&5
14400 sed 's/^/| /' conftest.$ac_ext >&5
14402 ac_cv_have_u_int="no"
14405 rm -f conftest.$ac_objext conftest.$ac_ext
14408 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14409 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14410 if test "x$ac_cv_have_u_int" = "xyes" ; then
14411 cat >>confdefs.h <<\_ACEOF
14412 #define HAVE_U_INT 1
14418 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14419 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14420 if test "${ac_cv_have_intmax_t+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14424 cat >conftest.$ac_ext <<_ACEOF
14425 #line $LINENO "configure"
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14431 #include <sys/types.h>
14440 rm -f conftest.$ac_objext
14441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14442 (eval $ac_compile) 2>&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } &&
14446 { ac_try='test -s conftest.$ac_objext'
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; }; then
14452 ac_cv_have_intmax_t="yes"
14454 echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14458 cat >conftest.$ac_ext <<_ACEOF
14459 #line $LINENO "configure"
14462 cat confdefs.h >>conftest.$ac_ext
14463 cat >>conftest.$ac_ext <<_ACEOF
14464 /* end confdefs.h. */
14465 #include <stdint.h>
14474 rm -f conftest.$ac_objext
14475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14476 (eval $ac_compile) 2>&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } &&
14480 { ac_try='test -s conftest.$ac_objext'
14481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; }; then
14486 ac_cv_have_intmax_t="yes"
14488 echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14491 ac_cv_have_intmax_t="no"
14494 rm -f conftest.$ac_objext conftest.$ac_ext
14498 rm -f conftest.$ac_objext conftest.$ac_ext
14502 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14503 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14504 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14505 cat >>confdefs.h <<\_ACEOF
14506 #define HAVE_INTMAX_T 1
14513 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14514 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14515 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14519 cat >conftest.$ac_ext <<_ACEOF
14520 #line $LINENO "configure"
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h. */
14526 #include <sys/types.h>
14530 u_intmax_t a; a = 1;
14535 rm -f conftest.$ac_objext
14536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14537 (eval $ac_compile) 2>&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } &&
14541 { ac_try='test -s conftest.$ac_objext'
14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543 (eval $ac_try) 2>&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); }; }; then
14547 ac_cv_have_u_intmax_t="yes"
14549 echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14553 cat >conftest.$ac_ext <<_ACEOF
14554 #line $LINENO "configure"
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h. */
14560 #include <stdint.h>
14564 u_intmax_t a; a = 1;
14569 rm -f conftest.$ac_objext
14570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14571 (eval $ac_compile) 2>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
14575 { ac_try='test -s conftest.$ac_objext'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
14581 ac_cv_have_u_intmax_t="yes"
14583 echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14586 ac_cv_have_u_intmax_t="no"
14589 rm -f conftest.$ac_objext conftest.$ac_ext
14593 rm -f conftest.$ac_objext conftest.$ac_ext
14596 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14597 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14598 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14599 cat >>confdefs.h <<\_ACEOF
14600 #define HAVE_U_INTMAX_T 1
14607 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14608 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14609 if test "${ac_cv_have_intxx_t+set}" = set; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14613 cat >conftest.$ac_ext <<_ACEOF
14614 #line $LINENO "configure"
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14620 #include <sys/types.h>
14624 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14629 rm -f conftest.$ac_objext
14630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14631 (eval $ac_compile) 2>&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); } &&
14635 { ac_try='test -s conftest.$ac_objext'
14636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637 (eval $ac_try) 2>&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; }; then
14641 ac_cv_have_intxx_t="yes"
14643 echo "$as_me: failed program was:" >&5
14644 sed 's/^/| /' conftest.$ac_ext >&5
14646 ac_cv_have_intxx_t="no"
14649 rm -f conftest.$ac_objext conftest.$ac_ext
14652 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14653 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14654 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14655 cat >>confdefs.h <<\_ACEOF
14656 #define HAVE_INTXX_T 1
14662 echo "$as_me:$LINENO: checking for int64_t type" >&5
14663 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14664 if test "${ac_cv_have_int64_t+set}" = set; then
14665 echo $ECHO_N "(cached) $ECHO_C" >&6
14668 cat >conftest.$ac_ext <<_ACEOF
14669 #line $LINENO "configure"
14672 cat confdefs.h >>conftest.$ac_ext
14673 cat >>conftest.$ac_ext <<_ACEOF
14674 /* end confdefs.h. */
14675 #include <sys/types.h>
14684 rm -f conftest.$ac_objext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686 (eval $ac_compile) 2>&5
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } &&
14690 { ac_try='test -s conftest.$ac_objext'
14691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692 (eval $ac_try) 2>&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); }; }; then
14696 ac_cv_have_int64_t="yes"
14698 echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14701 ac_cv_have_int64_t="no"
14704 rm -f conftest.$ac_objext conftest.$ac_ext
14707 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14708 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14709 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14710 cat >>confdefs.h <<\_ACEOF
14711 #define HAVE_INT64_T 1
14717 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14718 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14719 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14720 echo $ECHO_N "(cached) $ECHO_C" >&6
14723 cat >conftest.$ac_ext <<_ACEOF
14724 #line $LINENO "configure"
14727 cat confdefs.h >>conftest.$ac_ext
14728 cat >>conftest.$ac_ext <<_ACEOF
14729 /* end confdefs.h. */
14730 #include <sys/types.h>
14734 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14739 rm -f conftest.$ac_objext
14740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14741 (eval $ac_compile) 2>&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } &&
14745 { ac_try='test -s conftest.$ac_objext'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; }; then
14751 ac_cv_have_u_intxx_t="yes"
14753 echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14756 ac_cv_have_u_intxx_t="no"
14759 rm -f conftest.$ac_objext conftest.$ac_ext
14762 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14763 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14764 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14765 cat >>confdefs.h <<\_ACEOF
14766 #define HAVE_U_INTXX_T 1
14772 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14773 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14774 if test "${ac_cv_have_u_int64_t+set}" = set; then
14775 echo $ECHO_N "(cached) $ECHO_C" >&6
14778 cat >conftest.$ac_ext <<_ACEOF
14779 #line $LINENO "configure"
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14785 #include <sys/types.h>
14789 u_int64_t a; a = 1;
14794 rm -f conftest.$ac_objext
14795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14796 (eval $ac_compile) 2>&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } &&
14800 { ac_try='test -s conftest.$ac_objext'
14801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 (eval $ac_try) 2>&5
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; }; then
14806 ac_cv_have_u_int64_t="yes"
14808 echo "$as_me: failed program was:" >&5
14809 sed 's/^/| /' conftest.$ac_ext >&5
14811 ac_cv_have_u_int64_t="no"
14814 rm -f conftest.$ac_objext conftest.$ac_ext
14817 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14818 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14819 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14820 cat >>confdefs.h <<\_ACEOF
14821 #define HAVE_U_INT64_T 1
14827 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14828 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14830 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14831 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14832 cat >conftest.$ac_ext <<_ACEOF
14833 #line $LINENO "configure"
14836 cat confdefs.h >>conftest.$ac_ext
14837 cat >>conftest.$ac_ext <<_ACEOF
14838 /* end confdefs.h. */
14839 #include <sys/bitypes.h>
14843 int8_t a; int16_t b; int32_t c;
14844 u_int8_t e; u_int16_t f; u_int32_t g;
14845 a = b = c = e = f = g = 1;
14850 rm -f conftest.$ac_objext
14851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14852 (eval $ac_compile) 2>&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } &&
14856 { ac_try='test -s conftest.$ac_objext'
14857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14858 (eval $ac_try) 2>&5
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); }; }; then
14862 cat >>confdefs.h <<\_ACEOF
14863 #define HAVE_U_INTXX_T 1
14866 cat >>confdefs.h <<\_ACEOF
14867 #define HAVE_INTXX_T 1
14870 cat >>confdefs.h <<\_ACEOF
14871 #define HAVE_SYS_BITYPES_H 1
14874 echo "$as_me:$LINENO: result: yes" >&5
14875 echo "${ECHO_T}yes" >&6
14877 echo "$as_me: failed program was:" >&5
14878 sed 's/^/| /' conftest.$ac_ext >&5
14880 echo "$as_me:$LINENO: result: no" >&5
14881 echo "${ECHO_T}no" >&6
14884 rm -f conftest.$ac_objext conftest.$ac_ext
14887 if test -z "$have_u_intxx_t" ; then
14888 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14889 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14890 if test "${ac_cv_have_uintxx_t+set}" = set; then
14891 echo $ECHO_N "(cached) $ECHO_C" >&6
14894 cat >conftest.$ac_ext <<_ACEOF
14895 #line $LINENO "configure"
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h. */
14901 #include <sys/types.h>
14905 uint8_t a; uint16_t b;
14906 uint32_t c; a = b = c = 1;
14911 rm -f conftest.$ac_objext
14912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14913 (eval $ac_compile) 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } &&
14917 { ac_try='test -s conftest.$ac_objext'
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
14923 ac_cv_have_uintxx_t="yes"
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14928 ac_cv_have_uintxx_t="no"
14931 rm -f conftest.$ac_objext conftest.$ac_ext
14934 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14935 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14936 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14937 cat >>confdefs.h <<\_ACEOF
14938 #define HAVE_UINTXX_T 1
14974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14975 echo "$as_me:$LINENO: checking for $ac_func" >&5
14976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14977 if eval "test \"\${$as_ac_var+set}\" = set"; then
14978 echo $ECHO_N "(cached) $ECHO_C" >&6
14980 cat >conftest.$ac_ext <<_ACEOF
14981 #line $LINENO "configure"
14984 cat confdefs.h >>conftest.$ac_ext
14985 cat >>conftest.$ac_ext <<_ACEOF
14986 /* end confdefs.h. */
14987 /* System header to define __stub macros and hopefully few prototypes,
14988 which can conflict with char $ac_func (); below.
14989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14990 <limits.h> exists even on freestanding compilers. */
14992 # include <limits.h>
14994 # include <assert.h>
14996 /* Override any gcc2 internal prototype to avoid an error. */
15001 /* We use char because int might match the return type of a gcc2
15002 builtin and then its argument prototype would still apply. */
15004 /* The GNU C library defines this for functions which it implements
15005 to always fail with ENOSYS. Some functions are actually named
15006 something starting with __ and the normal name is an alias. */
15007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15010 char (*f) () = $ac_func;
15019 return f != $ac_func;
15024 rm -f conftest.$ac_objext conftest$ac_exeext
15025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15026 (eval $ac_link) 2>&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); } &&
15030 { ac_try='test -s conftest$ac_exeext'
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032 (eval $ac_try) 2>&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; }; then
15036 eval "$as_ac_var=yes"
15038 echo "$as_me: failed program was:" >&5
15039 sed 's/^/| /' conftest.$ac_ext >&5
15041 eval "$as_ac_var=no"
15043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15047 if test `eval echo '${'$as_ac_var'}'` = yes; then
15048 cat >>confdefs.h <<_ACEOF
15049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15053 echo 'configure: cannot find needed function.'; exit 1
15060 for ac_func in fchdir
15062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15063 echo "$as_me:$LINENO: checking for $ac_func" >&5
15064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15065 if eval "test \"\${$as_ac_var+set}\" = set"; then
15066 echo $ECHO_N "(cached) $ECHO_C" >&6
15068 cat >conftest.$ac_ext <<_ACEOF
15069 #line $LINENO "configure"
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h. */
15075 /* System header to define __stub macros and hopefully few prototypes,
15076 which can conflict with char $ac_func (); below.
15077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15078 <limits.h> exists even on freestanding compilers. */
15080 # include <limits.h>
15082 # include <assert.h>
15084 /* Override any gcc2 internal prototype to avoid an error. */
15089 /* We use char because int might match the return type of a gcc2
15090 builtin and then its argument prototype would still apply. */
15092 /* The GNU C library defines this for functions which it implements
15093 to always fail with ENOSYS. Some functions are actually named
15094 something starting with __ and the normal name is an alias. */
15095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15098 char (*f) () = $ac_func;
15107 return f != $ac_func;
15112 rm -f conftest.$ac_objext conftest$ac_exeext
15113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15114 (eval $ac_link) 2>&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } &&
15118 { ac_try='test -s conftest$ac_exeext'
15119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120 (eval $ac_try) 2>&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; }; then
15124 eval "$as_ac_var=yes"
15126 echo "$as_me: failed program was:" >&5
15127 sed 's/^/| /' conftest.$ac_ext >&5
15129 eval "$as_ac_var=no"
15131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15135 if test `eval echo '${'$as_ac_var'}'` = yes; then
15136 cat >>confdefs.h <<_ACEOF
15137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15139 cat >>confdefs.h <<\_ACEOF
15140 #define HAVE_FCHDIR 1
15147 for ac_func in strtoll
15149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15150 echo "$as_me:$LINENO: checking for $ac_func" >&5
15151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15152 if eval "test \"\${$as_ac_var+set}\" = set"; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 cat >conftest.$ac_ext <<_ACEOF
15156 #line $LINENO "configure"
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h. */
15162 /* System header to define __stub macros and hopefully few prototypes,
15163 which can conflict with char $ac_func (); below.
15164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15165 <limits.h> exists even on freestanding compilers. */
15167 # include <limits.h>
15169 # include <assert.h>
15171 /* Override any gcc2 internal prototype to avoid an error. */
15176 /* We use char because int might match the return type of a gcc2
15177 builtin and then its argument prototype would still apply. */
15179 /* The GNU C library defines this for functions which it implements
15180 to always fail with ENOSYS. Some functions are actually named
15181 something starting with __ and the normal name is an alias. */
15182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15185 char (*f) () = $ac_func;
15194 return f != $ac_func;
15199 rm -f conftest.$ac_objext conftest$ac_exeext
15200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15201 (eval $ac_link) 2>&5
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); } &&
15205 { ac_try='test -s conftest$ac_exeext'
15206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207 (eval $ac_try) 2>&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); }; }; then
15211 eval "$as_ac_var=yes"
15213 echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.$ac_ext >&5
15216 eval "$as_ac_var=no"
15218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15221 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15222 if test `eval echo '${'$as_ac_var'}'` = yes; then
15223 cat >>confdefs.h <<_ACEOF
15224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15226 cat >>confdefs.h <<\_ACEOF
15227 #define HAVE_STRTOLL 1
15235 for ac_func in chflags
15237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15238 echo "$as_me:$LINENO: checking for $ac_func" >&5
15239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15240 if eval "test \"\${$as_ac_var+set}\" = set"; then
15241 echo $ECHO_N "(cached) $ECHO_C" >&6
15243 cat >conftest.$ac_ext <<_ACEOF
15244 #line $LINENO "configure"
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15250 /* System header to define __stub macros and hopefully few prototypes,
15251 which can conflict with char $ac_func (); below.
15252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15253 <limits.h> exists even on freestanding compilers. */
15255 # include <limits.h>
15257 # include <assert.h>
15259 /* Override any gcc2 internal prototype to avoid an error. */
15264 /* We use char because int might match the return type of a gcc2
15265 builtin and then its argument prototype would still apply. */
15267 /* The GNU C library defines this for functions which it implements
15268 to always fail with ENOSYS. Some functions are actually named
15269 something starting with __ and the normal name is an alias. */
15270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15273 char (*f) () = $ac_func;
15282 return f != $ac_func;
15287 rm -f conftest.$ac_objext conftest$ac_exeext
15288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15289 (eval $ac_link) 2>&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } &&
15293 { ac_try='test -s conftest$ac_exeext'
15294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15295 (eval $ac_try) 2>&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); }; }; then
15299 eval "$as_ac_var=yes"
15301 echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15304 eval "$as_ac_var=no"
15306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15310 if test `eval echo '${'$as_ac_var'}'` = yes; then
15311 cat >>confdefs.h <<_ACEOF
15312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15323 for ac_func in snprintf vsnprintf gethostid getdomainname
15325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15326 echo "$as_me:$LINENO: checking for $ac_func" >&5
15327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15328 if eval "test \"\${$as_ac_var+set}\" = set"; then
15329 echo $ECHO_N "(cached) $ECHO_C" >&6
15331 cat >conftest.$ac_ext <<_ACEOF
15332 #line $LINENO "configure"
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h. */
15338 /* System header to define __stub macros and hopefully few prototypes,
15339 which can conflict with char $ac_func (); below.
15340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15341 <limits.h> exists even on freestanding compilers. */
15343 # include <limits.h>
15345 # include <assert.h>
15347 /* Override any gcc2 internal prototype to avoid an error. */
15352 /* We use char because int might match the return type of a gcc2
15353 builtin and then its argument prototype would still apply. */
15355 /* The GNU C library defines this for functions which it implements
15356 to always fail with ENOSYS. Some functions are actually named
15357 something starting with __ and the normal name is an alias. */
15358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15361 char (*f) () = $ac_func;
15370 return f != $ac_func;
15375 rm -f conftest.$ac_objext conftest$ac_exeext
15376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15377 (eval $ac_link) 2>&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } &&
15381 { ac_try='test -s conftest$ac_exeext'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; }; then
15387 eval "$as_ac_var=yes"
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 eval "$as_ac_var=no"
15394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15398 if test `eval echo '${'$as_ac_var'}'` = yes; then
15399 cat >>confdefs.h <<_ACEOF
15400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15411 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15414 echo "$as_me:$LINENO: checking for $ac_func" >&5
15415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15416 if eval "test \"\${$as_ac_var+set}\" = set"; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15419 cat >conftest.$ac_ext <<_ACEOF
15420 #line $LINENO "configure"
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 /* System header to define __stub macros and hopefully few prototypes,
15427 which can conflict with char $ac_func (); below.
15428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15429 <limits.h> exists even on freestanding compilers. */
15431 # include <limits.h>
15433 # include <assert.h>
15435 /* Override any gcc2 internal prototype to avoid an error. */
15440 /* We use char because int might match the return type of a gcc2
15441 builtin and then its argument prototype would still apply. */
15443 /* The GNU C library defines this for functions which it implements
15444 to always fail with ENOSYS. Some functions are actually named
15445 something starting with __ and the normal name is an alias. */
15446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15449 char (*f) () = $ac_func;
15458 return f != $ac_func;
15463 rm -f conftest.$ac_objext conftest$ac_exeext
15464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15465 (eval $ac_link) 2>&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); } &&
15469 { ac_try='test -s conftest$ac_exeext'
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; }; then
15475 eval "$as_ac_var=yes"
15477 echo "$as_me: failed program was:" >&5
15478 sed 's/^/| /' conftest.$ac_ext >&5
15480 eval "$as_ac_var=no"
15482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15486 if test `eval echo '${'$as_ac_var'}'` = yes; then
15487 cat >>confdefs.h <<_ACEOF
15488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15495 # If resolver functions are not in libc check for -lnsl or -lresolv.
15496 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15497 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15498 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15501 cat >conftest.$ac_ext <<_ACEOF
15502 #line $LINENO "configure"
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h. */
15508 /* System header to define __stub macros and hopefully few prototypes,
15509 which can conflict with char gethostbyname_r (); below.
15510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15511 <limits.h> exists even on freestanding compilers. */
15513 # include <limits.h>
15515 # include <assert.h>
15517 /* Override any gcc2 internal prototype to avoid an error. */
15522 /* We use char because int might match the return type of a gcc2
15523 builtin and then its argument prototype would still apply. */
15524 char gethostbyname_r ();
15525 /* The GNU C library defines this for functions which it implements
15526 to always fail with ENOSYS. Some functions are actually named
15527 something starting with __ and the normal name is an alias. */
15528 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15531 char (*f) () = gethostbyname_r;
15540 return f != gethostbyname_r;
15545 rm -f conftest.$ac_objext conftest$ac_exeext
15546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15547 (eval $ac_link) 2>&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); } &&
15551 { ac_try='test -s conftest$ac_exeext'
15552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553 (eval $ac_try) 2>&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; }; then
15557 ac_cv_func_gethostbyname_r=yes
15559 echo "$as_me: failed program was:" >&5
15560 sed 's/^/| /' conftest.$ac_ext >&5
15562 ac_cv_func_gethostbyname_r=no
15564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15566 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15567 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15568 if test $ac_cv_func_gethostbyname_r = yes; then
15569 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15570 echo "${ECHO_T}using libc's resolver" >&6
15573 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15574 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15575 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15576 echo $ECHO_N "(cached) $ECHO_C" >&6
15578 ac_check_lib_save_LIBS=$LIBS
15580 cat >conftest.$ac_ext <<_ACEOF
15581 #line $LINENO "configure"
15584 cat confdefs.h >>conftest.$ac_ext
15585 cat >>conftest.$ac_ext <<_ACEOF
15586 /* end confdefs.h. */
15588 /* Override any gcc2 internal prototype to avoid an error. */
15592 /* We use char because int might match the return type of a gcc2
15593 builtin and then its argument prototype would still apply. */
15594 char gethostbyname_r ();
15598 gethostbyname_r ();
15603 rm -f conftest.$ac_objext conftest$ac_exeext
15604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15605 (eval $ac_link) 2>&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); } &&
15609 { ac_try='test -s conftest$ac_exeext'
15610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15611 (eval $ac_try) 2>&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; }; then
15615 ac_cv_lib_nsl_gethostbyname_r=yes
15617 echo "$as_me: failed program was:" >&5
15618 sed 's/^/| /' conftest.$ac_ext >&5
15620 ac_cv_lib_nsl_gethostbyname_r=no
15622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15623 LIBS=$ac_check_lib_save_LIBS
15625 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15626 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15627 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15628 cat >>confdefs.h <<_ACEOF
15629 #define HAVE_LIBNSL 1
15637 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15638 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15639 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
15642 ac_check_lib_save_LIBS=$LIBS
15643 LIBS="-lresolv $LIBS"
15644 cat >conftest.$ac_ext <<_ACEOF
15645 #line $LINENO "configure"
15648 cat confdefs.h >>conftest.$ac_ext
15649 cat >>conftest.$ac_ext <<_ACEOF
15650 /* end confdefs.h. */
15652 /* Override any gcc2 internal prototype to avoid an error. */
15656 /* We use char because int might match the return type of a gcc2
15657 builtin and then its argument prototype would still apply. */
15658 char gethostbyname_r ();
15662 gethostbyname_r ();
15667 rm -f conftest.$ac_objext conftest$ac_exeext
15668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15669 (eval $ac_link) 2>&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } &&
15673 { ac_try='test -s conftest$ac_exeext'
15674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675 (eval $ac_try) 2>&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; }; then
15679 ac_cv_lib_resolv_gethostbyname_r=yes
15681 echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15684 ac_cv_lib_resolv_gethostbyname_r=no
15686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15687 LIBS=$ac_check_lib_save_LIBS
15689 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15690 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15691 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15692 cat >>confdefs.h <<_ACEOF
15693 #define HAVE_LIBRESOLV 1
15696 LIBS="-lresolv $LIBS"
15704 # Find where sockets are (especially for Solaris)
15705 echo "$as_me:$LINENO: checking for socket" >&5
15706 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15707 if test "${ac_cv_func_socket+set}" = set; then
15708 echo $ECHO_N "(cached) $ECHO_C" >&6
15710 cat >conftest.$ac_ext <<_ACEOF
15711 #line $LINENO "configure"
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15717 /* System header to define __stub macros and hopefully few prototypes,
15718 which can conflict with char socket (); below.
15719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15720 <limits.h> exists even on freestanding compilers. */
15722 # include <limits.h>
15724 # include <assert.h>
15726 /* Override any gcc2 internal prototype to avoid an error. */
15731 /* We use char because int might match the return type of a gcc2
15732 builtin and then its argument prototype would still apply. */
15734 /* The GNU C library defines this for functions which it implements
15735 to always fail with ENOSYS. Some functions are actually named
15736 something starting with __ and the normal name is an alias. */
15737 #if defined (__stub_socket) || defined (__stub___socket)
15740 char (*f) () = socket;
15749 return f != socket;
15754 rm -f conftest.$ac_objext conftest$ac_exeext
15755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15756 (eval $ac_link) 2>&5
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); } &&
15760 { ac_try='test -s conftest$ac_exeext'
15761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762 (eval $ac_try) 2>&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; }; then
15766 ac_cv_func_socket=yes
15768 echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15771 ac_cv_func_socket=no
15773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15775 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15776 echo "${ECHO_T}$ac_cv_func_socket" >&6
15777 if test $ac_cv_func_socket = yes; then
15778 echo "$as_me:$LINENO: result: using libc's socket" >&5
15779 echo "${ECHO_T}using libc's socket" >&6
15782 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15783 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15784 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15785 echo $ECHO_N "(cached) $ECHO_C" >&6
15787 ac_check_lib_save_LIBS=$LIBS
15788 LIBS="-lxnet $LIBS"
15789 cat >conftest.$ac_ext <<_ACEOF
15790 #line $LINENO "configure"
15793 cat confdefs.h >>conftest.$ac_ext
15794 cat >>conftest.$ac_ext <<_ACEOF
15795 /* end confdefs.h. */
15797 /* Override any gcc2 internal prototype to avoid an error. */
15801 /* We use char because int might match the return type of a gcc2
15802 builtin and then its argument prototype would still apply. */
15812 rm -f conftest.$ac_objext conftest$ac_exeext
15813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15814 (eval $ac_link) 2>&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } &&
15818 { ac_try='test -s conftest$ac_exeext'
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; }; then
15824 ac_cv_lib_xnet_socket=yes
15826 echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15829 ac_cv_lib_xnet_socket=no
15831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15832 LIBS=$ac_check_lib_save_LIBS
15834 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15835 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15836 if test $ac_cv_lib_xnet_socket = yes; then
15837 cat >>confdefs.h <<_ACEOF
15838 #define HAVE_LIBXNET 1
15841 LIBS="-lxnet $LIBS"
15846 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15847 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15848 if test "${ac_cv_lib_socket_socket+set}" = set; then
15849 echo $ECHO_N "(cached) $ECHO_C" >&6
15851 ac_check_lib_save_LIBS=$LIBS
15852 LIBS="-lsocket $LIBS"
15853 cat >conftest.$ac_ext <<_ACEOF
15854 #line $LINENO "configure"
15857 cat confdefs.h >>conftest.$ac_ext
15858 cat >>conftest.$ac_ext <<_ACEOF
15859 /* end confdefs.h. */
15861 /* Override any gcc2 internal prototype to avoid an error. */
15865 /* We use char because int might match the return type of a gcc2
15866 builtin and then its argument prototype would still apply. */
15876 rm -f conftest.$ac_objext conftest$ac_exeext
15877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15878 (eval $ac_link) 2>&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); } &&
15882 { ac_try='test -s conftest$ac_exeext'
15883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15884 (eval $ac_try) 2>&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); }; }; then
15888 ac_cv_lib_socket_socket=yes
15890 echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15893 ac_cv_lib_socket_socket=no
15895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15896 LIBS=$ac_check_lib_save_LIBS
15898 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15899 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15900 if test $ac_cv_lib_socket_socket = yes; then
15901 cat >>confdefs.h <<_ACEOF
15902 #define HAVE_LIBSOCKET 1
15905 LIBS="-lsocket $LIBS"
15910 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15911 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15912 if test "${ac_cv_lib_inet_socket+set}" = set; then
15913 echo $ECHO_N "(cached) $ECHO_C" >&6
15915 ac_check_lib_save_LIBS=$LIBS
15916 LIBS="-linet $LIBS"
15917 cat >conftest.$ac_ext <<_ACEOF
15918 #line $LINENO "configure"
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h. */
15925 /* Override any gcc2 internal prototype to avoid an error. */
15929 /* We use char because int might match the return type of a gcc2
15930 builtin and then its argument prototype would still apply. */
15940 rm -f conftest.$ac_objext conftest$ac_exeext
15941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15942 (eval $ac_link) 2>&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } &&
15946 { ac_try='test -s conftest$ac_exeext'
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; }; then
15952 ac_cv_lib_inet_socket=yes
15954 echo "$as_me: failed program was:" >&5
15955 sed 's/^/| /' conftest.$ac_ext >&5
15957 ac_cv_lib_inet_socket=no
15959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15960 LIBS=$ac_check_lib_save_LIBS
15962 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15963 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15964 if test $ac_cv_lib_inet_socket = yes; then
15965 cat >>confdefs.h <<_ACEOF
15966 #define HAVE_LIBINET 1
15969 LIBS="-linet $LIBS"
15977 for ac_func in inet_pton
15979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15980 echo "$as_me:$LINENO: checking for $ac_func" >&5
15981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15982 if eval "test \"\${$as_ac_var+set}\" = set"; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15985 cat >conftest.$ac_ext <<_ACEOF
15986 #line $LINENO "configure"
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h. */
15992 /* System header to define __stub macros and hopefully few prototypes,
15993 which can conflict with char $ac_func (); below.
15994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15995 <limits.h> exists even on freestanding compilers. */
15997 # include <limits.h>
15999 # include <assert.h>
16001 /* Override any gcc2 internal prototype to avoid an error. */
16006 /* We use char because int might match the return type of a gcc2
16007 builtin and then its argument prototype would still apply. */
16009 /* The GNU C library defines this for functions which it implements
16010 to always fail with ENOSYS. Some functions are actually named
16011 something starting with __ and the normal name is an alias. */
16012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16015 char (*f) () = $ac_func;
16024 return f != $ac_func;
16029 rm -f conftest.$ac_objext conftest$ac_exeext
16030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16031 (eval $ac_link) 2>&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } &&
16035 { ac_try='test -s conftest$ac_exeext'
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; }; then
16041 eval "$as_ac_var=yes"
16043 echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16046 eval "$as_ac_var=no"
16048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16052 if test `eval echo '${'$as_ac_var'}'` = yes; then
16053 cat >>confdefs.h <<_ACEOF
16054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16056 cat >>confdefs.h <<\_ACEOF
16057 #define HAVE_INET_PTON 1
16065 for ac_func in strftime
16067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16068 echo "$as_me:$LINENO: checking for $ac_func" >&5
16069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16070 if eval "test \"\${$as_ac_var+set}\" = set"; then
16071 echo $ECHO_N "(cached) $ECHO_C" >&6
16073 cat >conftest.$ac_ext <<_ACEOF
16074 #line $LINENO "configure"
16077 cat confdefs.h >>conftest.$ac_ext
16078 cat >>conftest.$ac_ext <<_ACEOF
16079 /* end confdefs.h. */
16080 /* System header to define __stub macros and hopefully few prototypes,
16081 which can conflict with char $ac_func (); below.
16082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16083 <limits.h> exists even on freestanding compilers. */
16085 # include <limits.h>
16087 # include <assert.h>
16089 /* Override any gcc2 internal prototype to avoid an error. */
16094 /* We use char because int might match the return type of a gcc2
16095 builtin and then its argument prototype would still apply. */
16097 /* The GNU C library defines this for functions which it implements
16098 to always fail with ENOSYS. Some functions are actually named
16099 something starting with __ and the normal name is an alias. */
16100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16103 char (*f) () = $ac_func;
16112 return f != $ac_func;
16117 rm -f conftest.$ac_objext conftest$ac_exeext
16118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16119 (eval $ac_link) 2>&5
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } &&
16123 { ac_try='test -s conftest$ac_exeext'
16124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16125 (eval $ac_try) 2>&5
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); }; }; then
16129 eval "$as_ac_var=yes"
16131 echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16134 eval "$as_ac_var=no"
16136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16140 if test `eval echo '${'$as_ac_var'}'` = yes; then
16141 cat >>confdefs.h <<_ACEOF
16142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16146 # strftime is in -lintl on SCO UNIX.
16147 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16148 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16149 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16150 echo $ECHO_N "(cached) $ECHO_C" >&6
16152 ac_check_lib_save_LIBS=$LIBS
16153 LIBS="-lintl $LIBS"
16154 cat >conftest.$ac_ext <<_ACEOF
16155 #line $LINENO "configure"
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h. */
16162 /* Override any gcc2 internal prototype to avoid an error. */
16166 /* We use char because int might match the return type of a gcc2
16167 builtin and then its argument prototype would still apply. */
16177 rm -f conftest.$ac_objext conftest$ac_exeext
16178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16179 (eval $ac_link) 2>&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } &&
16183 { ac_try='test -s conftest$ac_exeext'
16184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185 (eval $ac_try) 2>&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; }; then
16189 ac_cv_lib_intl_strftime=yes
16191 echo "$as_me: failed program was:" >&5
16192 sed 's/^/| /' conftest.$ac_ext >&5
16194 ac_cv_lib_intl_strftime=no
16196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16197 LIBS=$ac_check_lib_save_LIBS
16199 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16200 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16201 if test $ac_cv_lib_intl_strftime = yes; then
16202 cat >>confdefs.h <<\_ACEOF
16203 #define HAVE_STRFTIME 1
16206 LIBS="-lintl $LIBS"
16213 for ac_func in vprintf
16215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16216 echo "$as_me:$LINENO: checking for $ac_func" >&5
16217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16218 if eval "test \"\${$as_ac_var+set}\" = set"; then
16219 echo $ECHO_N "(cached) $ECHO_C" >&6
16221 cat >conftest.$ac_ext <<_ACEOF
16222 #line $LINENO "configure"
16225 cat confdefs.h >>conftest.$ac_ext
16226 cat >>conftest.$ac_ext <<_ACEOF
16227 /* end confdefs.h. */
16228 /* System header to define __stub macros and hopefully few prototypes,
16229 which can conflict with char $ac_func (); below.
16230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16231 <limits.h> exists even on freestanding compilers. */
16233 # include <limits.h>
16235 # include <assert.h>
16237 /* Override any gcc2 internal prototype to avoid an error. */
16242 /* We use char because int might match the return type of a gcc2
16243 builtin and then its argument prototype would still apply. */
16245 /* The GNU C library defines this for functions which it implements
16246 to always fail with ENOSYS. Some functions are actually named
16247 something starting with __ and the normal name is an alias. */
16248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16251 char (*f) () = $ac_func;
16260 return f != $ac_func;
16265 rm -f conftest.$ac_objext conftest$ac_exeext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16267 (eval $ac_link) 2>&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); } &&
16271 { ac_try='test -s conftest$ac_exeext'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277 eval "$as_ac_var=yes"
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16282 eval "$as_ac_var=no"
16284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16288 if test `eval echo '${'$as_ac_var'}'` = yes; then
16289 cat >>confdefs.h <<_ACEOF
16290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16293 echo "$as_me:$LINENO: checking for _doprnt" >&5
16294 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16295 if test "${ac_cv_func__doprnt+set}" = set; then
16296 echo $ECHO_N "(cached) $ECHO_C" >&6
16298 cat >conftest.$ac_ext <<_ACEOF
16299 #line $LINENO "configure"
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16305 /* System header to define __stub macros and hopefully few prototypes,
16306 which can conflict with char _doprnt (); below.
16307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16308 <limits.h> exists even on freestanding compilers. */
16310 # include <limits.h>
16312 # include <assert.h>
16314 /* Override any gcc2 internal prototype to avoid an error. */
16319 /* We use char because int might match the return type of a gcc2
16320 builtin and then its argument prototype would still apply. */
16322 /* The GNU C library defines this for functions which it implements
16323 to always fail with ENOSYS. Some functions are actually named
16324 something starting with __ and the normal name is an alias. */
16325 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16328 char (*f) () = _doprnt;
16337 return f != _doprnt;
16342 rm -f conftest.$ac_objext conftest$ac_exeext
16343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16344 (eval $ac_link) 2>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } &&
16348 { ac_try='test -s conftest$ac_exeext'
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; }; then
16354 ac_cv_func__doprnt=yes
16356 echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16359 ac_cv_func__doprnt=no
16361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16363 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16364 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16365 if test $ac_cv_func__doprnt = yes; then
16367 cat >>confdefs.h <<\_ACEOF
16368 #define HAVE_DOPRNT 1
16377 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16378 # for constant arguments. Useless!
16379 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16380 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16381 if test "${ac_cv_working_alloca_h+set}" = set; then
16382 echo $ECHO_N "(cached) $ECHO_C" >&6
16384 cat >conftest.$ac_ext <<_ACEOF
16385 #line $LINENO "configure"
16388 cat confdefs.h >>conftest.$ac_ext
16389 cat >>conftest.$ac_ext <<_ACEOF
16390 /* end confdefs.h. */
16391 #include <alloca.h>
16395 char *p = (char *) alloca (2 * sizeof (int));
16400 rm -f conftest.$ac_objext conftest$ac_exeext
16401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16402 (eval $ac_link) 2>&5
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); } &&
16406 { ac_try='test -s conftest$ac_exeext'
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16412 ac_cv_working_alloca_h=yes
16414 echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16417 ac_cv_working_alloca_h=no
16419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16421 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16422 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16423 if test $ac_cv_working_alloca_h = yes; then
16425 cat >>confdefs.h <<\_ACEOF
16426 #define HAVE_ALLOCA_H 1
16431 echo "$as_me:$LINENO: checking for alloca" >&5
16432 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16433 if test "${ac_cv_func_alloca_works+set}" = set; then
16434 echo $ECHO_N "(cached) $ECHO_C" >&6
16436 cat >conftest.$ac_ext <<_ACEOF
16437 #line $LINENO "configure"
16440 cat confdefs.h >>conftest.$ac_ext
16441 cat >>conftest.$ac_ext <<_ACEOF
16442 /* end confdefs.h. */
16444 # define alloca __builtin_alloca
16447 # include <malloc.h>
16448 # define alloca _alloca
16451 # include <alloca.h>
16456 # ifndef alloca /* predefined by HP cc +Olibcalls */
16467 char *p = (char *) alloca (1);
16472 rm -f conftest.$ac_objext conftest$ac_exeext
16473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16474 (eval $ac_link) 2>&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } &&
16478 { ac_try='test -s conftest$ac_exeext'
16479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480 (eval $ac_try) 2>&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); }; }; then
16484 ac_cv_func_alloca_works=yes
16486 echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16489 ac_cv_func_alloca_works=no
16491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16493 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16494 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16496 if test $ac_cv_func_alloca_works = yes; then
16498 cat >>confdefs.h <<\_ACEOF
16499 #define HAVE_ALLOCA 1
16503 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16504 # that cause trouble. Some versions do not even contain alloca or
16505 # contain a buggy version. If you still want to use their alloca,
16506 # use ar to extract alloca.o from them instead of compiling alloca.c.
16508 ALLOCA=alloca.$ac_objext
16510 cat >>confdefs.h <<\_ACEOF
16515 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16516 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16517 if test "${ac_cv_os_cray+set}" = set; then
16518 echo $ECHO_N "(cached) $ECHO_C" >&6
16520 cat >conftest.$ac_ext <<_ACEOF
16521 #line $LINENO "configure"
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16527 #if defined(CRAY) && ! defined(CRAY2)
16534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16535 $EGREP "webecray" >/dev/null 2>&1; then
16543 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16544 echo "${ECHO_T}$ac_cv_os_cray" >&6
16545 if test $ac_cv_os_cray = yes; then
16546 for ac_func in _getb67 GETB67 getb67; do
16547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16548 echo "$as_me:$LINENO: checking for $ac_func" >&5
16549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16550 if eval "test \"\${$as_ac_var+set}\" = set"; then
16551 echo $ECHO_N "(cached) $ECHO_C" >&6
16553 cat >conftest.$ac_ext <<_ACEOF
16554 #line $LINENO "configure"
16557 cat confdefs.h >>conftest.$ac_ext
16558 cat >>conftest.$ac_ext <<_ACEOF
16559 /* end confdefs.h. */
16560 /* System header to define __stub macros and hopefully few prototypes,
16561 which can conflict with char $ac_func (); below.
16562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16563 <limits.h> exists even on freestanding compilers. */
16565 # include <limits.h>
16567 # include <assert.h>
16569 /* Override any gcc2 internal prototype to avoid an error. */
16574 /* We use char because int might match the return type of a gcc2
16575 builtin and then its argument prototype would still apply. */
16577 /* The GNU C library defines this for functions which it implements
16578 to always fail with ENOSYS. Some functions are actually named
16579 something starting with __ and the normal name is an alias. */
16580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16583 char (*f) () = $ac_func;
16592 return f != $ac_func;
16597 rm -f conftest.$ac_objext conftest$ac_exeext
16598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16599 (eval $ac_link) 2>&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } &&
16603 { ac_try='test -s conftest$ac_exeext'
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; }; then
16609 eval "$as_ac_var=yes"
16611 echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.$ac_ext >&5
16614 eval "$as_ac_var=no"
16616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16620 if test `eval echo '${'$as_ac_var'}'` = yes; then
16622 cat >>confdefs.h <<_ACEOF
16623 #define CRAY_STACKSEG_END $ac_func
16632 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16633 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16634 if test "${ac_cv_c_stack_direction+set}" = set; then
16635 echo $ECHO_N "(cached) $ECHO_C" >&6
16637 if test "$cross_compiling" = yes; then
16638 ac_cv_c_stack_direction=0
16640 cat >conftest.$ac_ext <<_ACEOF
16641 #line $LINENO "configure"
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16648 find_stack_direction ()
16650 static char *addr = 0;
16655 return find_stack_direction ();
16658 return (&dummy > addr) ? 1 : -1;
16664 exit (find_stack_direction () < 0);
16667 rm -f conftest$ac_exeext
16668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16669 (eval $ac_link) 2>&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; }; then
16678 ac_cv_c_stack_direction=1
16680 echo "$as_me: program exited with status $ac_status" >&5
16681 echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16684 ( exit $ac_status )
16685 ac_cv_c_stack_direction=-1
16687 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16690 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16691 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16693 cat >>confdefs.h <<_ACEOF
16694 #define STACK_DIRECTION $ac_cv_c_stack_direction
16700 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16701 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16702 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16703 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16704 echo $ECHO_N "(cached) $ECHO_C" >&6
16706 ac_check_lib_save_LIBS=$LIBS
16708 cat >conftest.$ac_ext <<_ACEOF
16709 #line $LINENO "configure"
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h. */
16716 /* Override any gcc2 internal prototype to avoid an error. */
16720 /* We use char because int might match the return type of a gcc2
16721 builtin and then its argument prototype would still apply. */
16731 rm -f conftest.$ac_objext conftest$ac_exeext
16732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16733 (eval $ac_link) 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } &&
16737 { ac_try='test -s conftest$ac_exeext'
16738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739 (eval $ac_try) 2>&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; }; then
16743 ac_cv_lib_sun_getmntent=yes
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16748 ac_cv_lib_sun_getmntent=no
16750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16751 LIBS=$ac_check_lib_save_LIBS
16753 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16754 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16755 if test $ac_cv_lib_sun_getmntent = yes; then
16758 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16759 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16760 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16761 echo $ECHO_N "(cached) $ECHO_C" >&6
16763 ac_check_lib_save_LIBS=$LIBS
16765 cat >conftest.$ac_ext <<_ACEOF
16766 #line $LINENO "configure"
16769 cat confdefs.h >>conftest.$ac_ext
16770 cat >>conftest.$ac_ext <<_ACEOF
16771 /* end confdefs.h. */
16773 /* Override any gcc2 internal prototype to avoid an error. */
16777 /* We use char because int might match the return type of a gcc2
16778 builtin and then its argument prototype would still apply. */
16788 rm -f conftest.$ac_objext conftest$ac_exeext
16789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16790 (eval $ac_link) 2>&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
16794 { ac_try='test -s conftest$ac_exeext'
16795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796 (eval $ac_try) 2>&5
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; }; then
16800 ac_cv_lib_seq_getmntent=yes
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16805 ac_cv_lib_seq_getmntent=no
16807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16808 LIBS=$ac_check_lib_save_LIBS
16810 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16811 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16812 if test $ac_cv_lib_seq_getmntent = yes; then
16815 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16816 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16817 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16818 echo $ECHO_N "(cached) $ECHO_C" >&6
16820 ac_check_lib_save_LIBS=$LIBS
16822 cat >conftest.$ac_ext <<_ACEOF
16823 #line $LINENO "configure"
16826 cat confdefs.h >>conftest.$ac_ext
16827 cat >>conftest.$ac_ext <<_ACEOF
16828 /* end confdefs.h. */
16830 /* Override any gcc2 internal prototype to avoid an error. */
16834 /* We use char because int might match the return type of a gcc2
16835 builtin and then its argument prototype would still apply. */
16845 rm -f conftest.$ac_objext conftest$ac_exeext
16846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16847 (eval $ac_link) 2>&5
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); } &&
16851 { ac_try='test -s conftest$ac_exeext'
16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; }; then
16857 ac_cv_lib_gen_getmntent=yes
16859 echo "$as_me: failed program was:" >&5
16860 sed 's/^/| /' conftest.$ac_ext >&5
16862 ac_cv_lib_gen_getmntent=no
16864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16865 LIBS=$ac_check_lib_save_LIBS
16867 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16868 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16869 if test $ac_cv_lib_gen_getmntent = yes; then
16878 for ac_func in getmntent
16880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16881 echo "$as_me:$LINENO: checking for $ac_func" >&5
16882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16883 if eval "test \"\${$as_ac_var+set}\" = set"; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16886 cat >conftest.$ac_ext <<_ACEOF
16887 #line $LINENO "configure"
16890 cat confdefs.h >>conftest.$ac_ext
16891 cat >>conftest.$ac_ext <<_ACEOF
16892 /* end confdefs.h. */
16893 /* System header to define __stub macros and hopefully few prototypes,
16894 which can conflict with char $ac_func (); below.
16895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16896 <limits.h> exists even on freestanding compilers. */
16898 # include <limits.h>
16900 # include <assert.h>
16902 /* Override any gcc2 internal prototype to avoid an error. */
16907 /* We use char because int might match the return type of a gcc2
16908 builtin and then its argument prototype would still apply. */
16910 /* The GNU C library defines this for functions which it implements
16911 to always fail with ENOSYS. Some functions are actually named
16912 something starting with __ and the normal name is an alias. */
16913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16916 char (*f) () = $ac_func;
16925 return f != $ac_func;
16930 rm -f conftest.$ac_objext conftest$ac_exeext
16931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16932 (eval $ac_link) 2>&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } &&
16936 { ac_try='test -s conftest$ac_exeext'
16937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938 (eval $ac_try) 2>&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }; }; then
16942 eval "$as_ac_var=yes"
16944 echo "$as_me: failed program was:" >&5
16945 sed 's/^/| /' conftest.$ac_ext >&5
16947 eval "$as_ac_var=no"
16949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16953 if test `eval echo '${'$as_ac_var'}'` = yes; then
16954 cat >>confdefs.h <<_ACEOF
16955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16962 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16963 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16964 if test "${ac_cv_func_closedir_void+set}" = set; then
16965 echo $ECHO_N "(cached) $ECHO_C" >&6
16967 if test "$cross_compiling" = yes; then
16968 ac_cv_func_closedir_void=yes
16970 cat >conftest.$ac_ext <<_ACEOF
16971 #line $LINENO "configure"
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h. */
16977 $ac_includes_default
16978 #include <$ac_header_dirent>
16979 #ifndef __cplusplus
16986 exit (closedir (opendir (".")) != 0);
16991 rm -f conftest$ac_exeext
16992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16993 (eval $ac_link) 2>&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16998 (eval $ac_try) 2>&5
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); }; }; then
17002 ac_cv_func_closedir_void=no
17004 echo "$as_me: program exited with status $ac_status" >&5
17005 echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17008 ( exit $ac_status )
17009 ac_cv_func_closedir_void=yes
17011 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17014 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17015 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17016 if test $ac_cv_func_closedir_void = yes; then
17018 cat >>confdefs.h <<\_ACEOF
17019 #define CLOSEDIR_VOID 1
17024 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17025 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17026 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17027 echo $ECHO_N "(cached) $ECHO_C" >&6
17029 if test "$cross_compiling" = yes; then
17030 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17031 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17032 { (exit 1); exit 1; }; }
17034 cat >conftest.$ac_ext <<_ACEOF
17035 #line $LINENO "configure"
17038 cat confdefs.h >>conftest.$ac_ext
17039 cat >>conftest.$ac_ext <<_ACEOF
17040 /* end confdefs.h. */
17042 # include <unistd.h>
17048 /* If this system has a BSD-style setpgrp which takes arguments,
17049 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17050 exit successfully. */
17051 exit (setpgrp (1,1) == -1 ? 0 : 1);
17056 rm -f conftest$ac_exeext
17057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17058 (eval $ac_link) 2>&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063 (eval $ac_try) 2>&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; }; then
17067 ac_cv_func_setpgrp_void=no
17069 echo "$as_me: program exited with status $ac_status" >&5
17070 echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.$ac_ext >&5
17073 ( exit $ac_status )
17074 ac_cv_func_setpgrp_void=yes
17076 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17079 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17080 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17081 if test $ac_cv_func_setpgrp_void = yes; then
17083 cat >>confdefs.h <<\_ACEOF
17084 #define SETPGRP_VOID 1
17088 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17089 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17090 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17091 echo $ECHO_N "(cached) $ECHO_C" >&6
17093 # Some versions of Solaris, SCO, and the GNU C Library
17094 # have a broken or incompatible fnmatch.
17095 # So we run a test program. If we are cross-compiling, take no chance.
17096 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17097 if test "$cross_compiling" = yes; then
17098 ac_cv_func_fnmatch_works=cross
17100 cat >conftest.$ac_ext <<_ACEOF
17101 #line $LINENO "configure"
17104 cat confdefs.h >>conftest.$ac_ext
17105 cat >>conftest.$ac_ext <<_ACEOF
17106 /* end confdefs.h. */
17107 #include <fnmatch.h>
17108 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17109 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17115 (!(y ("a*", "abc", 0)
17116 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17117 && y ("a\\\\bc", "abc", 0)
17118 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17119 && y ("*x", ".x", 0)
17120 && n ("*x", ".x", FNM_PERIOD)
17126 rm -f conftest$ac_exeext
17127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17128 (eval $ac_link) 2>&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133 (eval $ac_try) 2>&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; }; then
17137 ac_cv_func_fnmatch_works=yes
17139 echo "$as_me: program exited with status $ac_status" >&5
17140 echo "$as_me: failed program was:" >&5
17141 sed 's/^/| /' conftest.$ac_ext >&5
17143 ( exit $ac_status )
17144 ac_cv_func_fnmatch_works=no
17146 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17149 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17150 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17151 if test $ac_cv_func_fnmatch_works = yes; then
17153 cat >>confdefs.h <<\_ACEOF
17154 #define HAVE_FNMATCH 1
17163 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17164 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17165 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17168 ac_check_lib_save_LIBS=$LIBS
17169 LIBS="-lxpg4 $LIBS"
17170 cat >conftest.$ac_ext <<_ACEOF
17171 #line $LINENO "configure"
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h. */
17178 /* Override any gcc2 internal prototype to avoid an error. */
17182 /* We use char because int might match the return type of a gcc2
17183 builtin and then its argument prototype would still apply. */
17193 rm -f conftest.$ac_objext conftest$ac_exeext
17194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17195 (eval $ac_link) 2>&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); } &&
17199 { ac_try='test -s conftest$ac_exeext'
17200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201 (eval $ac_try) 2>&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; }; then
17205 ac_cv_lib_xpg4_setlocale=yes
17207 echo "$as_me: failed program was:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17210 ac_cv_lib_xpg4_setlocale=no
17212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17213 LIBS=$ac_check_lib_save_LIBS
17215 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17216 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17217 if test $ac_cv_lib_xpg4_setlocale = yes; then
17218 LIBS="$LIBS -lxpg4"
17224 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17225 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17226 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17227 echo $ECHO_N "(cached) $ECHO_C" >&6
17229 ac_check_lib_save_LIBS=$LIBS
17231 cat >conftest.$ac_ext <<_ACEOF
17232 #line $LINENO "configure"
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h. */
17239 /* Override any gcc2 internal prototype to avoid an error. */
17243 /* We use char because int might match the return type of a gcc2
17244 builtin and then its argument prototype would still apply. */
17254 rm -f conftest.$ac_objext conftest$ac_exeext
17255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17256 (eval $ac_link) 2>&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } &&
17260 { ac_try='test -s conftest$ac_exeext'
17261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17262 (eval $ac_try) 2>&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; }; then
17266 ac_cv_lib_sun_getpwnam=yes
17268 echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17271 ac_cv_lib_sun_getpwnam=no
17273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17274 LIBS=$ac_check_lib_save_LIBS
17276 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17277 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17278 if test $ac_cv_lib_sun_getpwnam = yes; then
17279 cat >>confdefs.h <<_ACEOF
17280 #define HAVE_LIBSUN 1
17289 for ac_header in zlib.h
17291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17293 echo "$as_me:$LINENO: checking for $ac_header" >&5
17294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17296 echo $ECHO_N "(cached) $ECHO_C" >&6
17298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17301 # Is the header compilable?
17302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17304 cat >conftest.$ac_ext <<_ACEOF
17305 #line $LINENO "configure"
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17311 $ac_includes_default
17312 #include <$ac_header>
17314 rm -f conftest.$ac_objext
17315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17316 (eval $ac_compile) 2>&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try='test -s conftest.$ac_objext'
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; }; then
17326 ac_header_compiler=yes
17328 echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17331 ac_header_compiler=no
17333 rm -f conftest.$ac_objext conftest.$ac_ext
17334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17335 echo "${ECHO_T}$ac_header_compiler" >&6
17337 # Is the header present?
17338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17340 cat >conftest.$ac_ext <<_ACEOF
17341 #line $LINENO "configure"
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h. */
17347 #include <$ac_header>
17349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17352 grep -v '^ *+' conftest.er1 >conftest.err
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } >/dev/null; then
17357 if test -s conftest.err; then
17358 ac_cpp_err=$ac_c_preproc_warn_flag
17365 if test -z "$ac_cpp_err"; then
17366 ac_header_preproc=yes
17368 echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17371 ac_header_preproc=no
17373 rm -f conftest.err conftest.$ac_ext
17374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17375 echo "${ECHO_T}$ac_header_preproc" >&6
17377 # So? What about this header?
17378 case $ac_header_compiler:$ac_header_preproc in
17380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17386 ## ------------------------------------ ##
17387 ## Report this to bug-autoconf@gnu.org. ##
17388 ## ------------------------------------ ##
17391 sed "s/^/$as_me: WARNING: /" >&2
17394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17402 ## ------------------------------------ ##
17403 ## Report this to bug-autoconf@gnu.org. ##
17404 ## ------------------------------------ ##
17407 sed "s/^/$as_me: WARNING: /" >&2
17410 echo "$as_me:$LINENO: checking for $ac_header" >&5
17411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17415 eval "$as_ac_Header=$ac_header_preproc"
17417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17422 cat >>confdefs.h <<_ACEOF
17423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17430 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17431 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17432 if test "${ac_cv_lib_z_deflate+set}" = set; then
17433 echo $ECHO_N "(cached) $ECHO_C" >&6
17435 ac_check_lib_save_LIBS=$LIBS
17437 cat >conftest.$ac_ext <<_ACEOF
17438 #line $LINENO "configure"
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17445 /* Override any gcc2 internal prototype to avoid an error. */
17449 /* We use char because int might match the return type of a gcc2
17450 builtin and then its argument prototype would still apply. */
17460 rm -f conftest.$ac_objext conftest$ac_exeext
17461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17462 (eval $ac_link) 2>&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); } &&
17466 { ac_try='test -s conftest$ac_exeext'
17467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17468 (eval $ac_try) 2>&5
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); }; }; then
17472 ac_cv_lib_z_deflate=yes
17474 echo "$as_me: failed program was:" >&5
17475 sed 's/^/| /' conftest.$ac_ext >&5
17477 ac_cv_lib_z_deflate=no
17479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17480 LIBS=$ac_check_lib_save_LIBS
17482 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17483 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17484 if test $ac_cv_lib_z_deflate = yes; then
17489 if test x$FDLIBS = x-lz; then
17490 cat >>confdefs.h <<\_ACEOF
17491 #define HAVE_LIBZ 1
17498 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17499 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17500 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17501 echo $ECHO_N "(cached) $ECHO_C" >&6
17503 ac_check_lib_save_LIBS=$LIBS
17504 LIBS="-lpthread $LIBS"
17505 cat >conftest.$ac_ext <<_ACEOF
17506 #line $LINENO "configure"
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h. */
17513 /* Override any gcc2 internal prototype to avoid an error. */
17517 /* We use char because int might match the return type of a gcc2
17518 builtin and then its argument prototype would still apply. */
17519 char pthread_create ();
17528 rm -f conftest.$ac_objext conftest$ac_exeext
17529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17530 (eval $ac_link) 2>&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } &&
17534 { ac_try='test -s conftest$ac_exeext'
17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536 (eval $ac_try) 2>&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; }; then
17540 ac_cv_lib_pthread_pthread_create=yes
17542 echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17545 ac_cv_lib_pthread_pthread_create=no
17547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17548 LIBS=$ac_check_lib_save_LIBS
17550 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17551 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17552 if test $ac_cv_lib_pthread_pthread_create = yes; then
17553 PTHREAD_LIB="-lpthread"
17555 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17556 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17557 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17560 ac_check_lib_save_LIBS=$LIBS
17561 LIBS="-lpthreads $LIBS"
17562 cat >conftest.$ac_ext <<_ACEOF
17563 #line $LINENO "configure"
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h. */
17570 /* Override any gcc2 internal prototype to avoid an error. */
17574 /* We use char because int might match the return type of a gcc2
17575 builtin and then its argument prototype would still apply. */
17576 char pthread_create ();
17585 rm -f conftest.$ac_objext conftest$ac_exeext
17586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17587 (eval $ac_link) 2>&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } &&
17591 { ac_try='test -s conftest$ac_exeext'
17592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17593 (eval $ac_try) 2>&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; }; then
17597 ac_cv_lib_pthreads_pthread_create=yes
17599 echo "$as_me: failed program was:" >&5
17600 sed 's/^/| /' conftest.$ac_ext >&5
17602 ac_cv_lib_pthreads_pthread_create=no
17604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17605 LIBS=$ac_check_lib_save_LIBS
17607 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17608 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17609 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17610 PTHREAD_LIB="-lpthreads"
17612 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17613 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17614 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17615 echo $ECHO_N "(cached) $ECHO_C" >&6
17617 ac_check_lib_save_LIBS=$LIBS
17619 cat >conftest.$ac_ext <<_ACEOF
17620 #line $LINENO "configure"
17623 cat confdefs.h >>conftest.$ac_ext
17624 cat >>conftest.$ac_ext <<_ACEOF
17625 /* end confdefs.h. */
17627 /* Override any gcc2 internal prototype to avoid an error. */
17631 /* We use char because int might match the return type of a gcc2
17632 builtin and then its argument prototype would still apply. */
17633 char pthread_create ();
17642 rm -f conftest.$ac_objext conftest$ac_exeext
17643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17644 (eval $ac_link) 2>&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); } &&
17648 { ac_try='test -s conftest$ac_exeext'
17649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17650 (eval $ac_try) 2>&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; }; then
17654 ac_cv_lib_c_r_pthread_create=yes
17656 echo "$as_me: failed program was:" >&5
17657 sed 's/^/| /' conftest.$ac_ext >&5
17659 ac_cv_lib_c_r_pthread_create=no
17661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17662 LIBS=$ac_check_lib_save_LIBS
17664 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17665 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17666 if test $ac_cv_lib_c_r_pthread_create = yes; then
17667 PTHREAD_LIB="-lc_r"
17669 echo "$as_me:$LINENO: checking for pthread_create" >&5
17670 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17671 if test "${ac_cv_func_pthread_create+set}" = set; then
17672 echo $ECHO_N "(cached) $ECHO_C" >&6
17674 cat >conftest.$ac_ext <<_ACEOF
17675 #line $LINENO "configure"
17678 cat confdefs.h >>conftest.$ac_ext
17679 cat >>conftest.$ac_ext <<_ACEOF
17680 /* end confdefs.h. */
17681 /* System header to define __stub macros and hopefully few prototypes,
17682 which can conflict with char pthread_create (); below.
17683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17684 <limits.h> exists even on freestanding compilers. */
17686 # include <limits.h>
17688 # include <assert.h>
17690 /* Override any gcc2 internal prototype to avoid an error. */
17695 /* We use char because int might match the return type of a gcc2
17696 builtin and then its argument prototype would still apply. */
17697 char pthread_create ();
17698 /* The GNU C library defines this for functions which it implements
17699 to always fail with ENOSYS. Some functions are actually named
17700 something starting with __ and the normal name is an alias. */
17701 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17704 char (*f) () = pthread_create;
17713 return f != pthread_create;
17718 rm -f conftest.$ac_objext conftest$ac_exeext
17719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17720 (eval $ac_link) 2>&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); } &&
17724 { ac_try='test -s conftest$ac_exeext'
17725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726 (eval $ac_try) 2>&5
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; }; then
17730 ac_cv_func_pthread_create=yes
17732 echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17735 ac_cv_func_pthread_create=no
17737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17739 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17740 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17753 cat >>confdefs.h <<\_ACEOF
17759 CFLAGS=${CFLAGS--O}
17760 LDFLAGS=${LDFLAGS--O}
17761 DB_LIBS="${SQL_LFLAGS}"
17763 CPPFLAGS="$CPPFLAGS"
17788 # Finally we set appropriate distribution specific
17789 # variables and defaults
17791 # PFILES are platform specific files
17792 PFILES="platforms/Makefile"
17795 hostname=`uname -n`
17796 case "$DISTNAME" in
17799 PSCMD="ps -e -o pid,comm"
17800 PFILES="${PFILES} \
17801 platforms/aix/Makefile"
17802 TAPEDRIVE="/dev/rmt0.1"
17806 PTHREAD_LIB="-lpthread -lexc"
17807 if test "${CC}" = "gcc" ; then
17814 TAPEDRIVE="/dev/nrmt0"
17817 DISTVER=`uname -a |awk '{print $3}'`
17818 TAPEDRIVE="/dev/nrmt0"
17819 PTHREAD_LIB="-pthread"
17820 CFLAGS="${CFLAGS} -pthread"
17821 PSCMD="ps -x -o pid,command"
17824 PFILES="${PFILES} \
17825 platforms/bsdi/Makefile \
17826 platforms/bsdi/bacula-fd \
17827 platforms/bsdi/bacula-sd \
17828 platforms/bsdi/bacula-dir"
17829 hostname=`hostname -s`
17830 largefile_support="yes"
17833 DISTVER=`uname -a |awk '{print $3}'`
17834 TAPEDRIVE="/dev/nrst0"
17836 WCFLAGS="-mwindows"
17837 WLDFLAGS="-mwindows"
17841 TAPEDRIVE="/dev/nst0"
17842 PSCMD="ps -e -o pid,command"
17843 hostname=`hostname -s`
17844 PFILES="${PFILES} \
17845 platforms/darwin/Makefile"
17848 DISTVER=`cat /etc/debian_version`
17849 TAPEDRIVE="/dev/nrst0"
17850 PSCMD="ps -e -o pid,command"
17851 hostname=`hostname -s`
17854 DISTVER=`uname -a |awk '{print $3}'`
17855 VER=`echo $DISTVER | cut -c 1`
17856 if test x$VER = x4 ; then
17857 PTHREAD_LIB="-pthread"
17858 CFLAGS="${CFLAGS} -pthread"
17862 TAPEDRIVE="/dev/nrsa0"
17863 PSCMD="ps -x -o pid,command"
17864 PFILES="${PFILES} \
17865 platforms/freebsd/Makefile \
17866 platforms/freebsd/bacula-fd \
17867 platforms/freebsd/bacula-sd \
17868 platforms/freebsd/bacula-dir"
17869 hostname=`hostname -s`
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 \
17941 hostname=`hostname -s`
17944 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17945 TAPEDRIVE="/dev/nst0"
17946 PSCMD="ps -e -o pid,command"
17947 PFILES="${PFILES} \
17948 platforms/gentoo/Makefile \
17949 platforms/gentoo/bacula-fd \
17950 platforms/gentoo/bacula-sd \
17951 platforms/gentoo/bacula-dir"
17952 hostname=`hostname -s`
17956 DISTVER=`cat /etc/slackware-version`
17957 TAPEDRIVE="/dev/nst0"
17958 PSCMD="ps -e -o pid,command"
17959 hostname=`hostname -s`
17963 TAPEDRIVE="/dev/rmt/0cbn"
17964 PSCMD="ps -e -o pid,comm"
17965 PFILES="${PFILES} \
17966 platforms/solaris/Makefile \
17967 platforms/solaris/bacula-fd \
17968 platforms/solaris/bacula-sd \
17969 platforms/solaris/bacula-dir"
17970 if test x$DISTVER = x5.6 ; then
17971 cat >>confdefs.h <<\_ACEOF
17972 #define HAVE_OLD_SOCKOPT 1
17978 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17980 TAPEDRIVE="/dev/nst0"
17981 PSCMD="ps -e -o pid,command"
17982 hostname=`hostname -s`
17983 PFILES="${PFILES} \
17984 platforms/suse/Makefile \
17985 platforms/suse/bacula-fd \
17986 platforms/suse/bacula-sd \
17987 platforms/suse/bacula-dir"
17992 TAPEDRIVE="/dev/nst0"
17993 PSCMD="ps -e -o pid,command"
17994 hostname=`hostname -s`
17995 PFILES="${PFILES} \
17996 platforms/suse/Makefile \
17997 platforms/suse/bacula-fd \
17998 platforms/suse/bacula-sd \
17999 platforms/suse/bacula-dir"
18003 TAPEDRIVE="/dev/nst0"
18006 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18012 LIBS="$PTHREAD_LIB $LIBS"
18014 cat >>confdefs.h <<_ACEOF
18018 cat >>confdefs.h <<_ACEOF
18028 MCOMMON=./autoconf/Make.common
18031 if test "x${subsysdir}" = "x${sbindir}" ; then
18034 echo "You have set both --sbindir and --with-subsys-dir"
18035 echo " equal to: ${subsysdir} "
18036 echo "This is not permitted. Please reconfigure."
18038 echo "Aborting configuration ..."
18044 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"
18045 ac_config_commands="$ac_config_commands default"
18046 cat >confcache <<\_ACEOF
18047 # This file is a shell script that caches the results of configure
18048 # tests run on this system so they can be shared between configure
18049 # scripts and configure runs, see configure's option --config-cache.
18050 # It is not useful on other systems. If it contains results you don't
18051 # want to keep, you may remove or edit it.
18053 # config.status only pays attention to the cache file if you give it
18054 # the --recheck option to rerun configure.
18056 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18057 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18058 # following values.
18062 # The following way of writing the cache mishandles newlines in values,
18063 # but we know of no workaround that is simple, portable, and efficient.
18064 # So, don't put newlines in cache variables' values.
18065 # Ultrix sh set writes to stderr and can't be redirected directly,
18066 # and sets the high bit in the cache file unless we assign to the vars.
18069 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18071 # `set' does not quote correctly, so add quotes (double-quote
18072 # substitution turns \\\\ into \\, and sed turns \\ into \).
18075 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18078 # `set' quotes correctly as required by POSIX, so do not add quotes.
18080 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18087 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18089 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18091 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18092 if test -w $cache_file; then
18093 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18094 cat confcache >$cache_file
18096 echo "not updating unwritable cache $cache_file"
18101 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18102 # Let make expand exec_prefix.
18103 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18105 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18106 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18107 # trailing colons and then remove the whole line if VPATH becomes empty
18108 # (actually we leave an empty line to preserve line numbers).
18109 if test "x$srcdir" = x.; then
18110 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18111 s/:*\$(srcdir):*/:/;
18112 s/:*\${srcdir}:*/:/;
18114 s/^\([^=]*=[ ]*\):*/\1/;
18120 DEFS=-DHAVE_CONFIG_H
18124 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18125 # 1. Remove the extension, and $U if already installed.
18126 ac_i=`echo "$ac_i" |
18127 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18129 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18130 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18132 LIBOBJS=$ac_libobjs
18134 LTLIBOBJS=$ac_ltlibobjs
18138 : ${CONFIG_STATUS=./config.status}
18139 ac_clean_files_save=$ac_clean_files
18140 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18141 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18142 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18143 cat >$CONFIG_STATUS <<_ACEOF
18145 # Generated by $as_me.
18146 # Run this file to recreate the current configuration.
18147 # Compiler output produced by configure, useful for debugging
18148 # configure, is in config.log if it exists.
18151 ac_cs_recheck=false
18153 SHELL=\${CONFIG_SHELL-$SHELL}
18156 cat >>$CONFIG_STATUS <<\_ACEOF
18157 ## --------------------- ##
18158 ## M4sh Initialization. ##
18159 ## --------------------- ##
18161 # Be Bourne compatible
18162 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18165 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18166 # is contrary to our usage. Disable this feature.
18167 alias -g '${1+"$@"}'='"$@"'
18168 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18172 # Support unset when possible.
18173 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18180 # Work around bugs in pre-3.0 UWIN ksh.
18181 $as_unset ENV MAIL MAILPATH
18188 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18189 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18190 LC_TELEPHONE LC_TIME
18192 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18193 eval $as_var=C; export $as_var
18199 # Required to use basename.
18200 if expr a : '\(a\)' >/dev/null 2>&1; then
18206 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18207 as_basename=basename
18213 # Name of the executable.
18214 as_me=`$as_basename "$0" ||
18215 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18216 X"$0" : 'X\(//\)$' \| \
18217 X"$0" : 'X\(/\)$' \| \
18218 . : '\(.\)' 2>/dev/null ||
18220 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18221 /^X\/\(\/\/\)$/{ s//\1/; q; }
18222 /^X\/\(\/\).*/{ s//\1/; q; }
18226 # PATH needs CR, and LINENO needs CR and PATH.
18227 # Avoid depending upon Character Ranges.
18228 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18229 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18230 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18231 as_cr_digits='0123456789'
18232 as_cr_alnum=$as_cr_Letters$as_cr_digits
18234 # The user is always right.
18235 if test "${PATH_SEPARATOR+set}" != set; then
18236 echo "#! /bin/sh" >conf$$.sh
18237 echo "exit 0" >>conf$$.sh
18239 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18248 as_lineno_1=$LINENO
18249 as_lineno_2=$LINENO
18250 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18251 test "x$as_lineno_1" != "x$as_lineno_2" &&
18252 test "x$as_lineno_3" = "x$as_lineno_2" || {
18253 # Find who we are. Look in the path if we contain no path at all
18256 *[\\/]* ) as_myself=$0 ;;
18257 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18258 for as_dir in $PATH
18261 test -z "$as_dir" && as_dir=.
18262 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18267 # We did not find ourselves, most probably we were run as `sh COMMAND'
18268 # in which case we are not to be found in the path.
18269 if test "x$as_myself" = x; then
18272 if test ! -f "$as_myself"; then
18273 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18274 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18275 { (exit 1); exit 1; }; }
18277 case $CONFIG_SHELL in
18279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18280 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18283 test -z "$as_dir" && as_dir=.
18284 for as_base in sh bash ksh sh5; do
18287 if ("$as_dir/$as_base" -c '
18288 as_lineno_1=$LINENO
18289 as_lineno_2=$LINENO
18290 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18291 test "x$as_lineno_1" != "x$as_lineno_2" &&
18292 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18293 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18294 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18295 CONFIG_SHELL=$as_dir/$as_base
18296 export CONFIG_SHELL
18297 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18305 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18306 # uniformly replaced by the line number. The first 'sed' inserts a
18307 # line-number line before each line; the second 'sed' does the real
18308 # work. The second script uses 'N' to pair each line-number line
18309 # with the numbered line, and appends trailing '-' during
18310 # substitution so that $LINENO is not a special case at line end.
18311 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18312 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18313 sed '=' <$as_myself |
18318 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18321 s,^['$as_cr_digits']*\n,,
18322 ' >$as_me.lineno &&
18323 chmod +x $as_me.lineno ||
18324 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18325 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18326 { (exit 1); exit 1; }; }
18328 # Don't try to exec as it changes $[0], causing all sort of problems
18329 # (the dirname of $[0] is not the place where we might find the
18330 # original and so on. Autoconf is especially sensible to this).
18332 # Exit status is that of the last command.
18337 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18338 *c*,-n*) ECHO_N= ECHO_C='
18340 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18341 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18344 if expr a : '\(a\)' >/dev/null 2>&1; then
18350 rm -f conf$$ conf$$.exe conf$$.file
18352 if ln -s conf$$.file conf$$ 2>/dev/null; then
18353 # We could just check for DJGPP; but this test a) works b) is more generic
18354 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18355 if test -f conf$$.exe; then
18356 # Don't use ln at all; we don't have any links
18361 elif ln conf$$.file conf$$ 2>/dev/null; then
18366 rm -f conf$$ conf$$.exe conf$$.file
18368 if mkdir -p . 2>/dev/null; then
18374 as_executable_p="test -f"
18376 # Sed expression to map a string onto a valid CPP name.
18377 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18379 # Sed expression to map a string onto a valid variable name.
18380 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18384 # We need space, tab and new line, in precisely that order.
18394 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18395 # report actual input values of CONFIG_FILES etc. instead of their
18396 # values after options handling. Logging --version etc. is OK.
18400 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18401 ## Running $as_me. ##
18406 This file was extended by $as_me, which was
18407 generated by GNU Autoconf 2.57. Invocation command line was
18409 CONFIG_FILES = $CONFIG_FILES
18410 CONFIG_HEADERS = $CONFIG_HEADERS
18411 CONFIG_LINKS = $CONFIG_LINKS
18412 CONFIG_COMMANDS = $CONFIG_COMMANDS
18416 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18420 # Files that config.status was made for.
18421 if test -n "$ac_config_files"; then
18422 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18425 if test -n "$ac_config_headers"; then
18426 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18429 if test -n "$ac_config_links"; then
18430 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18433 if test -n "$ac_config_commands"; then
18434 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18437 cat >>$CONFIG_STATUS <<\_ACEOF
18440 \`$as_me' instantiates files from templates according to the
18441 current configuration.
18443 Usage: $0 [OPTIONS] [FILE]...
18445 -h, --help print this help, then exit
18446 -V, --version print version number, then exit
18447 -q, --quiet do not print progress messages
18448 -d, --debug don't remove temporary files
18449 --recheck update $as_me by reconfiguring in the same conditions
18450 --file=FILE[:TEMPLATE]
18451 instantiate the configuration file FILE
18452 --header=FILE[:TEMPLATE]
18453 instantiate the configuration header FILE
18455 Configuration files:
18458 Configuration headers:
18461 Configuration commands:
18464 Report bugs to <bug-autoconf@gnu.org>."
18467 cat >>$CONFIG_STATUS <<_ACEOF
18470 configured by $0, generated by GNU Autoconf 2.57,
18471 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18473 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18474 Free Software Foundation, Inc.
18475 This config.status script is free software; the Free Software Foundation
18476 gives unlimited permission to copy, distribute and modify it."
18481 cat >>$CONFIG_STATUS <<\_ACEOF
18482 # If no file are specified by the user, then we need to provide default
18483 # value. By we need to know if files were specified by the user.
18489 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18490 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18498 *) # This is not an option, so the user has probably given explicit
18501 ac_need_defaults=false;;
18505 # Handling of the options.
18507 cat >>$CONFIG_STATUS <<\_ACEOF
18508 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18510 --version | --vers* | -V )
18511 echo "$ac_cs_version"; exit 0 ;;
18513 # Conflict between --help and --header
18514 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18515 Try \`$0 --help' for more information." >&5
18516 echo "$as_me: error: ambiguous option: $1
18517 Try \`$0 --help' for more information." >&2;}
18518 { (exit 1); exit 1; }; };;
18519 --help | --hel | -h )
18520 echo "$ac_cs_usage"; exit 0 ;;
18521 --debug | --d* | -d )
18523 --file | --fil | --fi | --f )
18525 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18526 ac_need_defaults=false;;
18527 --header | --heade | --head | --hea )
18529 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18530 ac_need_defaults=false;;
18531 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18532 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18535 # This is an error.
18536 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18537 Try \`$0 --help' for more information." >&5
18538 echo "$as_me: error: unrecognized option: $1
18539 Try \`$0 --help' for more information." >&2;}
18540 { (exit 1); exit 1; }; } ;;
18542 *) ac_config_targets="$ac_config_targets $1" ;;
18548 ac_configure_extra_args=
18550 if $ac_cs_silent; then
18552 ac_configure_extra_args="$ac_configure_extra_args --silent"
18556 cat >>$CONFIG_STATUS <<_ACEOF
18557 if \$ac_cs_recheck; then
18558 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18559 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18568 cat >>$CONFIG_STATUS <<\_ACEOF
18569 for ac_config_target in $ac_config_targets
18571 case "$ac_config_target" in
18572 # Handling of arguments.
18573 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18574 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18575 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18576 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18577 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18578 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18579 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18580 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18581 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18582 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18583 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18584 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18585 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18586 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18587 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18588 "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18589 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18590 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18591 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18592 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18593 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18594 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18595 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18596 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18597 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18598 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18599 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18600 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18601 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18602 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18603 "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18604 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18605 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18606 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18607 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18608 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18609 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18610 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18611 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18612 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18613 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18614 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18615 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18616 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18617 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18618 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18619 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18620 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18621 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18622 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18623 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18624 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18625 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18626 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18627 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18628 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18629 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18630 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18631 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18632 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18633 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18634 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18635 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18636 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18637 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18638 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18639 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18640 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18641 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18642 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18643 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18644 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18645 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18646 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18647 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18648 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18649 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18650 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18651 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18652 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18653 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18654 { (exit 1); exit 1; }; };;
18658 # If the user did not use the arguments to specify the items to instantiate,
18659 # then the envvar interface is used. Set only those that are not.
18660 # We use the long form for the default assignment because of an extremely
18661 # bizarre bug on SunOS 4.1.3.
18662 if $ac_need_defaults; then
18663 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18664 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18665 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18668 # Have a temporary directory for convenience. Make it in the build tree
18669 # simply because there is no reason to put it here, and in addition,
18670 # creating and moving files from /tmp can sometimes cause problems.
18671 # Create a temporary directory, and hook for its removal unless debugging.
18674 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18675 trap '{ (exit 1); exit 1; }' 1 2 13 15
18678 # Create a (secure) tmp directory for tmp files.
18681 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18682 test -n "$tmp" && test -d "$tmp"
18685 tmp=./confstat$$-$RANDOM
18686 (umask 077 && mkdir $tmp)
18689 echo "$me: cannot create a temporary directory in ." >&2
18690 { (exit 1); exit 1; }
18695 cat >>$CONFIG_STATUS <<_ACEOF
18698 # CONFIG_FILES section.
18701 # No need to generate the scripts if there are no CONFIG_FILES.
18702 # This happens for instance when ./config.status config.h
18703 if test -n "\$CONFIG_FILES"; then
18704 # Protect against being on the right side of a sed subst in config.status.
18705 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18706 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18707 s,@SHELL@,$SHELL,;t t
18708 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18709 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18710 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18711 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18712 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18713 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18714 s,@exec_prefix@,$exec_prefix,;t t
18715 s,@prefix@,$prefix,;t t
18716 s,@program_transform_name@,$program_transform_name,;t t
18717 s,@bindir@,$bindir,;t t
18718 s,@sbindir@,$sbindir,;t t
18719 s,@libexecdir@,$libexecdir,;t t
18720 s,@datadir@,$datadir,;t t
18721 s,@sysconfdir@,$sysconfdir,;t t
18722 s,@sharedstatedir@,$sharedstatedir,;t t
18723 s,@localstatedir@,$localstatedir,;t t
18724 s,@libdir@,$libdir,;t t
18725 s,@includedir@,$includedir,;t t
18726 s,@oldincludedir@,$oldincludedir,;t t
18727 s,@infodir@,$infodir,;t t
18728 s,@mandir@,$mandir,;t t
18729 s,@build_alias@,$build_alias,;t t
18730 s,@host_alias@,$host_alias,;t t
18731 s,@target_alias@,$target_alias,;t t
18732 s,@DEFS@,$DEFS,;t t
18733 s,@ECHO_C@,$ECHO_C,;t t
18734 s,@ECHO_N@,$ECHO_N,;t t
18735 s,@ECHO_T@,$ECHO_T,;t t
18736 s,@LIBS@,$LIBS,;t t
18737 s,@BUILD_DIR@,$BUILD_DIR,;t t
18738 s,@TRUEPRG@,$TRUEPRG,;t t
18739 s,@FALSEPRG@,$FALSEPRG,;t t
18740 s,@build@,$build,;t t
18741 s,@build_cpu@,$build_cpu,;t t
18742 s,@build_vendor@,$build_vendor,;t t
18743 s,@build_os@,$build_os,;t t
18744 s,@host@,$host,;t t
18745 s,@host_cpu@,$host_cpu,;t t
18746 s,@host_vendor@,$host_vendor,;t t
18747 s,@host_os@,$host_os,;t t
18748 s,@VERSION@,$VERSION,;t t
18749 s,@DATE@,$DATE,;t t
18750 s,@LSMDATE@,$LSMDATE,;t t
18752 s,@CFLAGS@,$CFLAGS,;t t
18753 s,@LDFLAGS@,$LDFLAGS,;t t
18754 s,@CPPFLAGS@,$CPPFLAGS,;t t
18755 s,@ac_ct_CC@,$ac_ct_CC,;t t
18756 s,@EXEEXT@,$EXEEXT,;t t
18757 s,@OBJEXT@,$OBJEXT,;t t
18759 s,@CXXFLAGS@,$CXXFLAGS,;t t
18760 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18762 s,@EGREP@,$EGREP,;t t
18763 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18764 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18765 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18766 s,@RANLIB@,$RANLIB,;t t
18767 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18773 s,@ECHO@,$ECHO,;t t
18777 s,@OPENSSL@,$OPENSSL,;t t
18779 s,@PKGCONFIG@,$PKGCONFIG,;t t
18780 s,@ARFLAGS@,$ARFLAGS,;t t
18781 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18782 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18783 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18784 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18785 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18786 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18787 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18788 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18789 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18790 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18791 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18792 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18793 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18794 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18795 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18796 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18797 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18798 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18799 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18800 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18801 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18802 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18803 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18804 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18805 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18806 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18807 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18808 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18809 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18810 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18811 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18812 s,@MSGFMT@,$MSGFMT,;t t
18813 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18814 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18815 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18816 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18817 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18818 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18819 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18820 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18821 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18822 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18823 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18824 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18825 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18826 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18827 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18828 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18829 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18830 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18831 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18832 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18833 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18834 s,@GNOME_DIR@,$GNOME_DIR,;t t
18835 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18836 s,@STATIC_FD@,$STATIC_FD,;t t
18837 s,@STATIC_SD@,$STATIC_SD,;t t
18838 s,@STATIC_DIR@,$STATIC_DIR,;t t
18839 s,@STATIC_CONS@,$STATIC_CONS,;t t
18840 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
18841 s,@ALL_DIRS@,$ALL_DIRS,;t t
18842 s,@CONS_INC@,$CONS_INC,;t t
18843 s,@CONS_OBJ@,$CONS_OBJ,;t t
18844 s,@CONS_SRC@,$CONS_SRC,;t t
18845 s,@CONS_LIBS@,$CONS_LIBS,;t t
18846 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18847 s,@READLINE_SRC@,$READLINE_SRC,;t t
18848 s,@working_dir@,$working_dir,;t t
18849 s,@scriptdir@,$scriptdir,;t t
18850 s,@dump_email@,$dump_email,;t t
18851 s,@job_email@,$job_email,;t t
18852 s,@smtp_host@,$smtp_host,;t t
18853 s,@piddir@,$piddir,;t t
18854 s,@subsysdir@,$subsysdir,;t t
18855 s,@baseport@,$baseport,;t t
18856 s,@dir_port@,$dir_port,;t t
18857 s,@fd_port@,$fd_port,;t t
18858 s,@sd_port@,$sd_port,;t t
18859 s,@dir_password@,$dir_password,;t t
18860 s,@fd_password@,$fd_password,;t t
18861 s,@sd_password@,$sd_password,;t t
18862 s,@dir_user@,$dir_user,;t t
18863 s,@dir_group@,$dir_group,;t t
18864 s,@sd_user@,$sd_user,;t t
18865 s,@sd_group@,$sd_group,;t t
18866 s,@fd_user@,$fd_user,;t t
18867 s,@fd_group@,$fd_group,;t t
18868 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18869 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18870 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18871 s,@cats@,$cats,;t t
18872 s,@DB_NAME@,$DB_NAME,;t t
18873 s,@GETCONF@,$GETCONF,;t t
18874 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18875 s,@X_CFLAGS@,$X_CFLAGS,;t t
18876 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18877 s,@X_LIBS@,$X_LIBS,;t t
18878 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18879 s,@LIBOBJS@,$LIBOBJS,;t t
18880 s,@ALLOCA@,$ALLOCA,;t t
18881 s,@FDLIBS@,$FDLIBS,;t t
18882 s,@DEBUG@,$DEBUG,;t t
18883 s,@DINCLUDE@,$DINCLUDE,;t t
18884 s,@DLIB@,$DLIB,;t t
18885 s,@DB_LIBS@,$DB_LIBS,;t t
18886 s,@WCFLAGS@,$WCFLAGS,;t t
18887 s,@WLDFLAGS@,$WLDFLAGS,;t t
18888 s,@OBJLIST@,$OBJLIST,;t t
18889 s,@hostname@,$hostname,;t t
18890 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18891 s,@PSCMD@,$PSCMD,;t t
18892 s,@WIN32@,$WIN32,;t t
18893 s,@DISTNAME@,$DISTNAME,;t t
18894 s,@DISTVER@,$DISTVER,;t t
18895 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18896 /@MCOMMON@/r $MCOMMON
18902 cat >>$CONFIG_STATUS <<\_ACEOF
18903 # Split the substitutions into bite-sized pieces for seds with
18904 # small command number limits, like on Digital OSF/1 and HP-UX.
18905 ac_max_sed_lines=48
18906 ac_sed_frag=1 # Number of current file.
18907 ac_beg=1 # First line for current file.
18908 ac_end=$ac_max_sed_lines # Line after last line for current file.
18911 while $ac_more_lines; do
18912 if test $ac_beg -gt 1; then
18913 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18915 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18917 if test ! -s $tmp/subs.frag; then
18918 ac_more_lines=false
18920 # The purpose of the label and of the branching condition is to
18921 # speed up the sed processing (if there are no `@' at all, there
18922 # is no need to browse any of the substitutions).
18923 # These are the two extra sed commands mentioned above.
18925 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18926 if test -z "$ac_sed_cmds"; then
18927 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18929 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18931 ac_sed_frag=`expr $ac_sed_frag + 1`
18933 ac_end=`expr $ac_end + $ac_max_sed_lines`
18936 if test -z "$ac_sed_cmds"; then
18939 fi # test -n "$CONFIG_FILES"
18942 cat >>$CONFIG_STATUS <<\_ACEOF
18943 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18944 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18946 - | *:- | *:-:* ) # input from stdin
18948 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18949 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18950 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18951 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18952 * ) ac_file_in=$ac_file.in ;;
18955 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18956 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18957 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18958 X"$ac_file" : 'X\(//\)[^/]' \| \
18959 X"$ac_file" : 'X\(//\)$' \| \
18960 X"$ac_file" : 'X\(/\)' \| \
18961 . : '\(.\)' 2>/dev/null ||
18963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18964 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18965 /^X\(\/\/\)$/{ s//\1/; q; }
18966 /^X\(\/\).*/{ s//\1/; q; }
18968 { if $as_mkdir_p; then
18973 while test ! -d "$as_dir"; do
18974 as_dirs="$as_dir $as_dirs"
18975 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18976 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18977 X"$as_dir" : 'X\(//\)[^/]' \| \
18978 X"$as_dir" : 'X\(//\)$' \| \
18979 X"$as_dir" : 'X\(/\)' \| \
18980 . : '\(.\)' 2>/dev/null ||
18982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18983 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18984 /^X\(\/\/\)$/{ s//\1/; q; }
18985 /^X\(\/\).*/{ s//\1/; q; }
18988 test ! -n "$as_dirs" || mkdir $as_dirs
18989 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18990 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18991 { (exit 1); exit 1; }; }; }
18995 if test "$ac_dir" != .; then
18996 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18997 # A "../" for each directory in $ac_dir_suffix.
18998 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19000 ac_dir_suffix= ac_top_builddir=
19004 .) # No --srcdir option. We are building in place.
19006 if test -z "$ac_top_builddir"; then
19009 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19011 [\\/]* | ?:[\\/]* ) # Absolute path.
19012 ac_srcdir=$srcdir$ac_dir_suffix;
19013 ac_top_srcdir=$srcdir ;;
19014 *) # Relative path.
19015 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19016 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19018 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19020 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19021 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19022 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19023 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19027 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19028 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19031 if test x"$ac_file" != x-; then
19032 { echo "$as_me:$LINENO: creating $ac_file" >&5
19033 echo "$as_me: creating $ac_file" >&6;}
19036 # Let's still pretend it is `configure' which instantiates (i.e., don't
19037 # use $as_me), people would be surprised to read:
19038 # /* config.h. Generated by config.status. */
19039 if test x"$ac_file" = x-; then
19042 configure_input="$ac_file. "
19044 configure_input=$configure_input"Generated from `echo $ac_file_in |
19045 sed 's,.*/,,'` by configure."
19047 # First look for the input files in the build tree, otherwise in the
19049 ac_file_inputs=`IFS=:
19050 for f in $ac_file_in; do
19052 -) echo $tmp/stdin ;;
19054 # Absolute (can't be DOS-style, as IFS=:)
19055 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19056 echo "$as_me: error: cannot find input file: $f" >&2;}
19057 { (exit 1); exit 1; }; }
19060 if test -f "$f"; then
19063 elif test -f "$srcdir/$f"; then
19068 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19069 echo "$as_me: error: cannot find input file: $f" >&2;}
19070 { (exit 1); exit 1; }; }
19073 done` || { (exit 1); exit 1; }
19075 cat >>$CONFIG_STATUS <<_ACEOF
19079 cat >>$CONFIG_STATUS <<\_ACEOF
19081 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19082 s,@configure_input@,$configure_input,;t t
19083 s,@srcdir@,$ac_srcdir,;t t
19084 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19085 s,@top_srcdir@,$ac_top_srcdir,;t t
19086 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19087 s,@builddir@,$ac_builddir,;t t
19088 s,@abs_builddir@,$ac_abs_builddir,;t t
19089 s,@top_builddir@,$ac_top_builddir,;t t
19090 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19091 s,@INSTALL@,$ac_INSTALL,;t t
19092 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19094 if test x"$ac_file" != x-; then
19095 mv $tmp/out $ac_file
19103 cat >>$CONFIG_STATUS <<\_ACEOF
19106 # CONFIG_HEADER section.
19109 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19110 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19112 # ac_d sets the value in "#define NAME VALUE" lines.
19113 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19114 ac_dB='[ ].*$,\1#\2'
19117 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19118 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19119 ac_uB='$,\1#\2define\3'
19123 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19124 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19126 - | *:- | *:-:* ) # input from stdin
19128 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19129 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19130 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19131 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19132 * ) ac_file_in=$ac_file.in ;;
19135 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19136 echo "$as_me: creating $ac_file" >&6;}
19138 # First look for the input files in the build tree, otherwise in the
19140 ac_file_inputs=`IFS=:
19141 for f in $ac_file_in; do
19143 -) echo $tmp/stdin ;;
19145 # Absolute (can't be DOS-style, as IFS=:)
19146 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19147 echo "$as_me: error: cannot find input file: $f" >&2;}
19148 { (exit 1); exit 1; }; }
19151 if test -f "$f"; then
19154 elif test -f "$srcdir/$f"; then
19159 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19160 echo "$as_me: error: cannot find input file: $f" >&2;}
19161 { (exit 1); exit 1; }; }
19164 done` || { (exit 1); exit 1; }
19165 # Remove the trailing spaces.
19166 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19170 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19171 # `conftest.undefs', that substitutes the proper values into
19172 # config.h.in to produce config.h. The first handles `#define'
19173 # templates, and the second `#undef' templates.
19174 # And first: Protect against being on the right side of a sed subst in
19175 # config.status. Protect against being in an unquoted here document
19176 # in config.status.
19177 rm -f conftest.defines conftest.undefs
19178 # Using a here document instead of a string reduces the quoting nightmare.
19179 # Putting comments in sed scripts is not portable.
19181 # `end' is used to avoid that the second main sed command (meant for
19182 # 0-ary CPP macros) applies to n-ary macro definitions.
19183 # See the Autoconf documentation for `clear'.
19184 cat >confdef2sed.sed <<\_ACEOF
19189 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19191 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19194 # If some macros were called several times there might be several times
19195 # the same #defines, which is useless. Nevertheless, we may not want to
19196 # sort them, since we want the *last* AC-DEFINE to be honored.
19197 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19198 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19199 rm -f confdef2sed.sed
19201 # This sed command replaces #undef with comments. This is necessary, for
19202 # example, in the case of _POSIX_SOURCE, which is predefined and required
19203 # on some systems where configure will not decide to define it.
19204 cat >>conftest.undefs <<\_ACEOF
19205 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19208 # Break up conftest.defines because some shells have a limit on the size
19209 # of here documents, and old seds have small limits too (100 cmds).
19210 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19211 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19212 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19213 echo ' :' >>$CONFIG_STATUS
19214 rm -f conftest.tail
19215 while grep . conftest.defines >/dev/null
19217 # Write a limited-size here document to $tmp/defines.sed.
19218 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19219 # Speed up: don't consider the non `#define' lines.
19220 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19221 # Work around the forget-to-reset-the-flag bug.
19222 echo 't clr' >>$CONFIG_STATUS
19223 echo ': clr' >>$CONFIG_STATUS
19224 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19226 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19228 mv $tmp/out $tmp/in
19230 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19231 rm -f conftest.defines
19232 mv conftest.tail conftest.defines
19234 rm -f conftest.defines
19235 echo ' fi # grep' >>$CONFIG_STATUS
19236 echo >>$CONFIG_STATUS
19238 # Break up conftest.undefs because some shells have a limit on the size
19239 # of here documents, and old seds have small limits too (100 cmds).
19240 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19241 rm -f conftest.tail
19242 while grep . conftest.undefs >/dev/null
19244 # Write a limited-size here document to $tmp/undefs.sed.
19245 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19246 # Speed up: don't consider the non `#undef'
19247 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19248 # Work around the forget-to-reset-the-flag bug.
19249 echo 't clr' >>$CONFIG_STATUS
19250 echo ': clr' >>$CONFIG_STATUS
19251 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19253 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19255 mv $tmp/out $tmp/in
19257 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19258 rm -f conftest.undefs
19259 mv conftest.tail conftest.undefs
19261 rm -f conftest.undefs
19263 cat >>$CONFIG_STATUS <<\_ACEOF
19264 # Let's still pretend it is `configure' which instantiates (i.e., don't
19265 # use $as_me), people would be surprised to read:
19266 # /* config.h. Generated by config.status. */
19267 if test x"$ac_file" = x-; then
19268 echo "/* Generated by configure. */" >$tmp/config.h
19270 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19272 cat $tmp/in >>$tmp/config.h
19274 if test x"$ac_file" != x-; then
19275 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19276 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19277 echo "$as_me: $ac_file is unchanged" >&6;}
19279 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19280 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19281 X"$ac_file" : 'X\(//\)[^/]' \| \
19282 X"$ac_file" : 'X\(//\)$' \| \
19283 X"$ac_file" : 'X\(/\)' \| \
19284 . : '\(.\)' 2>/dev/null ||
19286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19287 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19288 /^X\(\/\/\)$/{ s//\1/; q; }
19289 /^X\(\/\).*/{ s//\1/; q; }
19291 { if $as_mkdir_p; then
19296 while test ! -d "$as_dir"; do
19297 as_dirs="$as_dir $as_dirs"
19298 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19300 X"$as_dir" : 'X\(//\)[^/]' \| \
19301 X"$as_dir" : 'X\(//\)$' \| \
19302 X"$as_dir" : 'X\(/\)' \| \
19303 . : '\(.\)' 2>/dev/null ||
19305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19306 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19307 /^X\(\/\/\)$/{ s//\1/; q; }
19308 /^X\(\/\).*/{ s//\1/; q; }
19311 test ! -n "$as_dirs" || mkdir $as_dirs
19312 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19313 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19314 { (exit 1); exit 1; }; }; }
19317 mv $tmp/config.h $ac_file
19321 rm -f $tmp/config.h
19325 cat >>$CONFIG_STATUS <<\_ACEOF
19328 # CONFIG_COMMANDS section.
19330 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19331 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19332 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19333 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19334 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19335 X"$ac_dest" : 'X\(//\)[^/]' \| \
19336 X"$ac_dest" : 'X\(//\)$' \| \
19337 X"$ac_dest" : 'X\(/\)' \| \
19338 . : '\(.\)' 2>/dev/null ||
19340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19342 /^X\(\/\/\)$/{ s//\1/; q; }
19343 /^X\(\/\).*/{ s//\1/; q; }
19347 if test "$ac_dir" != .; then
19348 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19349 # A "../" for each directory in $ac_dir_suffix.
19350 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19352 ac_dir_suffix= ac_top_builddir=
19356 .) # No --srcdir option. We are building in place.
19358 if test -z "$ac_top_builddir"; then
19361 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19363 [\\/]* | ?:[\\/]* ) # Absolute path.
19364 ac_srcdir=$srcdir$ac_dir_suffix;
19365 ac_top_srcdir=$srcdir ;;
19366 *) # Relative path.
19367 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19368 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19370 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19372 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19373 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19374 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19375 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19378 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19379 echo "$as_me: executing $ac_dest commands" >&6;}
19381 default ) (echo "Doing make of dependencies"; make depend;)
19387 cat >>$CONFIG_STATUS <<\_ACEOF
19389 { (exit 0); exit 0; }
19391 chmod +x $CONFIG_STATUS
19392 ac_clean_files=$ac_clean_files_save
19395 # configure is writing to config.log, and then calls config.status.
19396 # config.status does its own redirection, appending to config.log.
19397 # Unfortunately, on DOS this fails, as config.log is still kept open
19398 # by configure, so config.status won't be able to write to it; its
19399 # output is simply discarded. So we exec the FD to /dev/null,
19400 # effectively closing config.log, so it can be properly (re)opened and
19401 # appended to by config.status. When coming back to configure, we
19402 # need to make the FD available again.
19403 if test "$no_create" != yes; then
19405 ac_config_status_args=
19406 test "$silent" = yes &&
19407 ac_config_status_args="$ac_config_status_args --quiet"
19409 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19411 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19412 # would make configure fail if this is the last instruction.
19413 $ac_cs_success || { (exit 1); exit 1; }
19418 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19419 chmod 755 bconsole gconsole mtx-changer devel_bacula
19424 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
19425 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
19427 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
19428 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
19430 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
19431 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
19433 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
19434 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
19436 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
19437 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
19439 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19440 chmod 755 $c/sqlite
19443 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19444 largefile_support="yes"
19448 # A whole lot of hand springs to get the compiler version.
19449 # This is because gcc changed the output in version 3.0
19451 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19452 if test "x${CCVERSION}" = "x" ; then
19453 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19455 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19456 if test x"${CXXVERSION}" = x ; then
19457 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19460 if test "x${subsysdir}" = "x${sbindir}" ; then
19463 echo "You have set --sbindir and --with-subsys-dir"
19464 echo " both equal to: ${subsysdir} "
19465 echo " This is not permitted. Please reconfigure."
19466 echo "Aborting configuration ..."
19473 Configuration on `date`:
19475 Host: $host -- ${DISTNAME} ${DISTVER}
19476 Bacula version: ${VERSION} (${DATE})
19477 Source code location: ${srcdir}
19478 Install binaries: ${sbindir}
19479 Install config files: ${sysconfdir}
19480 Scripts directory: ${scriptdir}
19481 Working directory: ${working_dir}
19482 PID directory: ${piddir}
19483 Subsys directory: ${subsysdir}
19484 C Compiler: ${CC} ${CCVERSION}
19485 C++ Compiler: ${CXX} ${CXXVERSION}
19486 Compiler flags: ${WCFLAGS} ${CFLAGS}
19487 Linker flags: ${WLDFLAGS} ${LDFLAGS}
19489 Statically Linked Tools: ${support_static_tools}
19490 Statically Linked FD: ${support_static_fd}
19491 Statically Linked SD: ${support_static_sd}
19492 Statically Linked DIR: ${support_static_dir}
19493 Statically Linked CONS: ${support_static_cons}
19494 Database type: ${db_name}
19495 Database lib: ${DB_LIBS}
19497 Job Output Email: ${job_email}
19498 Traceback Email: ${dump_email}
19499 SMTP Host Address: ${smtp_host}
19501 Director Port: ${dir_port}
19502 File daemon Port: ${fd_port}
19503 Storage daemon Port: ${sd_port}
19505 Director User: ${dir_user}
19506 Director Group: ${dir_group}
19507 Storage Daemon User: ${sd_user}
19508 Storage DaemonGroup: ${sd_group}
19509 File Daemon User: ${fd_user}
19510 File Daemon Group: ${fd_group}
19512 SQL binaries Directory ${SQL_BINDIR}
19514 Large file support: $largefile_support
19515 Bacula conio support: ${got_conio} ${CONS_LIBS}
19516 readline support: ${got_readline} ${PRTREADLINE_SRC}
19517 TCP Wrappers support: ${TCPW_MSG}
19518 ZLIB support: ${have_zlib}
19519 enable-smartalloc: ${support_smartalloc}
19520 enable-gnome: ${support_gnome} ${gnome_version}
19521 client-only: ${build_client_only}
19528 # cweb support: ${got_cweb} ${CWEB_SRC}
19529 # gmp support: ${got_gmp} ${GMP_SRC}