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 ALL_DIRS CONS_INC 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 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-readline disable readline support enabled
868 --disable-largefile omit support for large files
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-gnome-includes Specify location of GNOME headers
874 --with-gnome-libs Specify location of GNOME libs
875 --with-gnome Specify prefix for GNOME files
876 --with-readline=DIR specify readline library directory
877 --with-tcp-wrappers=DIR enable tcpwrappers support
878 --with-working-dir=PATH specify path of Bacula working directory
879 --with-scriptdir=PATH specify path of Bacula scripts directory
880 --with-dump-email=EMAIL dump email address
881 --with-job-email=EMAIL job output email address
882 --with-smtp-host=HOST SMTP mail host address
883 --with-pid-dir=PATH specify location of Bacula pid files
884 --with-subsys-dir=PATH specify location of Bacula subsys file
885 --with-baseport=PORT specify base port address for daemons
886 --with-dir-password=PASSWORD specify Director's password
887 --with-fd-password=PASSWORD specify Client's password
888 --with-sd-password=PASSWORD specify Storage daemon's password
890 Which DBMS do you want to use (please select only one):
891 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
892 install directory, default is to search through
893 a number of common places for the MySQL files.
895 Which DBMS do you want to use (please select only one):
896 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
897 install directory, default is to search through
898 a number of common places for the MySQL files.
900 Which DBMS do you want to use (please select only one):
901 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
902 install directory, default is to search through
903 a number of common places for the SQLite files.
904 --with-x use the X Window System
906 Some influential environment variables:
907 CC C compiler command
908 CFLAGS C compiler flags
909 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
910 nonstandard directory <lib dir>
911 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
912 headers in a nonstandard directory <include dir>
913 CXX C++ compiler command
914 CXXFLAGS C++ compiler flags
917 Use these variables to override the choices made by `configure' or to help
918 it to find libraries and programs with nonstandard names/locations.
923 if test "$ac_init_help" = "recursive"; then
924 # If there are subdirs, report their specific --help.
926 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
927 test -d $ac_dir || continue
930 if test "$ac_dir" != .; then
931 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
932 # A "../" for each directory in $ac_dir_suffix.
933 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
935 ac_dir_suffix= ac_top_builddir=
939 .) # No --srcdir option. We are building in place.
941 if test -z "$ac_top_builddir"; then
944 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
946 [\\/]* | ?:[\\/]* ) # Absolute path.
947 ac_srcdir=$srcdir$ac_dir_suffix;
948 ac_top_srcdir=$srcdir ;;
950 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
951 ac_top_srcdir=$ac_top_builddir$srcdir ;;
953 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
955 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
956 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
957 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
958 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
983 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
984 Free Software Foundation, Inc.
985 This configure script is free software; the Free Software Foundation
986 gives unlimited permission to copy, distribute and modify it.
992 This file contains any messages produced by compilers while
993 running configure, to aid debugging if configure makes a mistake.
995 It was created by $as_me, which was
996 generated by GNU Autoconf 2.57. Invocation command line was
1007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1046 # Keep a trace of the command line.
1047 # Strip out --no-create and --no-recursion so they do not pile up.
1048 # Strip out --silent because we don't want to record it for future runs.
1049 # Also quote any args containing shell meta-characters.
1050 # Make two passes to allow for proper duplicate-argument suppression.
1055 ac_must_keep_next=false
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1084 -* ) ac_must_keep_next=true ;;
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097 # When interrupted or exit'd, cleanup temporary files, and complete
1098 # config.log. We remove comments because anyway the quotes in there
1099 # would cause problems or look ugly.
1100 # WARNING: Be sure not to use single quotes in there, as some shells,
1101 # such as our DU 5.0 friend, will then `close' the trap.
1102 trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1108 ## ---------------- ##
1109 ## Cache variables. ##
1110 ## ---------------- ##
1113 # The following way of writing the cache mishandles newlines in values,
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131 ## ----------------- ##
1132 ## Output variables. ##
1133 ## ----------------- ##
1136 for ac_var in $ac_subst_vars
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1143 if test -n "$ac_subst_files"; then
1150 for ac_var in $ac_subst_files
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1158 if test -s confdefs.h; then
1165 sed "/^$/d" confdefs.h | sort
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1172 rm -f core core.* *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1176 for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1182 rm -rf conftest* confdefs.h
1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1186 # Predefined preprocessor variables.
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_NAME "$PACKAGE_NAME"
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_STRING "$PACKAGE_STRING"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1213 # Let the site file select an alternate cache file if it wants to.
1214 # Prefer explicitly selected file to automatically selected ones.
1215 if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1222 for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225 echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1231 if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236 echo "$as_me: loading cache $cache_file" >&6;}
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244 echo "$as_me: creating cache $cache_file" >&6;}
1248 # Check that the precious variables saved in the cache have kept the same
1250 ac_cache_corrupted=false
1251 for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272 echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274 echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1291 if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1329 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1330 if test -f $ac_dir/install-sh; then
1332 ac_install_sh="$ac_aux_dir/install-sh -c"
1334 elif test -f $ac_dir/install.sh; then
1336 ac_install_sh="$ac_aux_dir/install.sh -c"
1338 elif test -f $ac_dir/shtool; then
1340 ac_install_sh="$ac_aux_dir/shtool install -c"
1344 if test -z "$ac_aux_dir"; then
1345 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1346 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1347 { (exit 1); exit 1; }; }
1349 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1350 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1351 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1353 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1361 # Extract the first word of "$ac_prog", so it can be a program name with args.
1362 set dummy $ac_prog; ac_word=$2
1363 echo "$as_me:$LINENO: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1377 test -z "$as_dir" && as_dir=.
1378 for ac_exec_ext in '' $ac_executable_extensions; do
1379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1380 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1390 TRUEPRG=$ac_cv_path_TRUEPRG
1392 if test -n "$TRUEPRG"; then
1393 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1394 echo "${ECHO_T}$TRUEPRG" >&6
1396 echo "$as_me:$LINENO: result: no" >&5
1397 echo "${ECHO_T}no" >&6
1400 test -n "$TRUEPRG" && break
1402 test -n "$TRUEPRG" || TRUEPRG=":"
1404 for ac_prog in false
1406 # Extract the first word of "$ac_prog", so it can be a program name with args.
1407 set dummy $ac_prog; ac_word=$2
1408 echo "$as_me:$LINENO: checking for $ac_word" >&5
1409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1410 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1415 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1422 test -z "$as_dir" && as_dir=.
1423 for ac_exec_ext in '' $ac_executable_extensions; do
1424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1425 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1435 FALSEPRG=$ac_cv_path_FALSEPRG
1437 if test -n "$FALSEPRG"; then
1438 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1439 echo "${ECHO_T}$FALSEPRG" >&6
1441 echo "$as_me:$LINENO: result: no" >&5
1442 echo "${ECHO_T}no" >&6
1445 test -n "$FALSEPRG" && break
1447 test -n "$FALSEPRG" || FALSEPRG=":"
1450 # Make sure we can run config.sub.
1451 $ac_config_sub sun4 >/dev/null 2>&1 ||
1452 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1453 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1454 { (exit 1); exit 1; }; }
1456 echo "$as_me:$LINENO: checking build system type" >&5
1457 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1458 if test "${ac_cv_build+set}" = set; then
1459 echo $ECHO_N "(cached) $ECHO_C" >&6
1461 ac_cv_build_alias=$build_alias
1462 test -z "$ac_cv_build_alias" &&
1463 ac_cv_build_alias=`$ac_config_guess`
1464 test -z "$ac_cv_build_alias" &&
1465 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1466 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1467 { (exit 1); exit 1; }; }
1468 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1471 { (exit 1); exit 1; }; }
1474 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1475 echo "${ECHO_T}$ac_cv_build" >&6
1477 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1482 echo "$as_me:$LINENO: checking host system type" >&5
1483 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1484 if test "${ac_cv_host+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 ac_cv_host_alias=$host_alias
1488 test -z "$ac_cv_host_alias" &&
1489 ac_cv_host_alias=$ac_cv_build_alias
1490 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1493 { (exit 1); exit 1; }; }
1496 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1497 echo "${ECHO_T}$ac_cv_host" >&6
1499 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1505 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1506 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1507 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1508 echo "configuring for bacula $VERSION ($DATE)"
1513 ac_cpp='$CPP $CPPFLAGS'
1514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1517 if test -n "$ac_tool_prefix"; then
1518 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1519 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 if test -n "$CC"; then
1526 ac_cv_prog_CC="$CC" # Let the user override the test.
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545 if test -n "$CC"; then
1546 echo "$as_me:$LINENO: result: $CC" >&5
1547 echo "${ECHO_T}$CC" >&6
1549 echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1554 if test -z "$ac_cv_prog_CC"; then
1556 # Extract the first word of "gcc", so it can be a program name with args.
1557 set dummy gcc; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 if test -n "$ac_ct_CC"; then
1564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 test -z "$as_dir" && as_dir=.
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_ac_ct_CC="gcc"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583 if test -n "$ac_ct_CC"; then
1584 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1585 echo "${ECHO_T}$ac_ct_CC" >&6
1587 echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1596 if test -z "$CC"; then
1597 if test -n "$ac_tool_prefix"; then
1598 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1599 set dummy ${ac_tool_prefix}cc; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 test -z "$as_dir" && as_dir=.
1613 for ac_exec_ext in '' $ac_executable_extensions; do
1614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615 ac_cv_prog_CC="${ac_tool_prefix}cc"
1616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 if test -n "$CC"; then
1626 echo "$as_me:$LINENO: result: $CC" >&5
1627 echo "${ECHO_T}$CC" >&6
1629 echo "$as_me:$LINENO: result: no" >&5
1630 echo "${ECHO_T}no" >&6
1634 if test -z "$ac_cv_prog_CC"; then
1636 # Extract the first word of "cc", so it can be a program name with args.
1637 set dummy cc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 if test -n "$ac_ct_CC"; then
1644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 ac_cv_prog_ac_ct_CC="cc"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1663 if test -n "$ac_ct_CC"; then
1664 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1665 echo "${ECHO_T}$ac_ct_CC" >&6
1667 echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1677 if test -z "$CC"; then
1678 # Extract the first word of "cc", so it can be a program name with args.
1679 set dummy cc; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_CC+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1685 if test -n "$CC"; then
1686 ac_cv_prog_CC="$CC" # Let the user override the test.
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693 test -z "$as_dir" && as_dir=.
1694 for ac_exec_ext in '' $ac_executable_extensions; do
1695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1697 ac_prog_rejected=yes
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 if test $ac_prog_rejected = yes; then
1708 # We found a bogon in the path, so make sure we never use it.
1709 set dummy $ac_cv_prog_CC
1711 if test $# != 0; then
1712 # We chose a different compiler from the bogus one.
1713 # However, it has the same basename, so the bogon will be chosen
1714 # first if we set CC to just the basename; use the full file name.
1716 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1722 if test -n "$CC"; then
1723 echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1731 if test -z "$CC"; then
1732 if test -n "$ac_tool_prefix"; then
1735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1737 echo "$as_me:$LINENO: checking for $ac_word" >&5
1738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1739 if test "${ac_cv_prog_CC+set}" = set; then
1740 echo $ECHO_N "(cached) $ECHO_C" >&6
1742 if test -n "$CC"; then
1743 ac_cv_prog_CC="$CC" # Let the user override the test.
1745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 test -z "$as_dir" && as_dir=.
1750 for ac_exec_ext in '' $ac_executable_extensions; do
1751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1752 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762 if test -n "$CC"; then
1763 echo "$as_me:$LINENO: result: $CC" >&5
1764 echo "${ECHO_T}$CC" >&6
1766 echo "$as_me:$LINENO: result: no" >&5
1767 echo "${ECHO_T}no" >&6
1770 test -n "$CC" && break
1773 if test -z "$CC"; then
1777 # Extract the first word of "$ac_prog", so it can be a program name with args.
1778 set dummy $ac_prog; ac_word=$2
1779 echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1784 if test -n "$ac_ct_CC"; then
1785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791 test -z "$as_dir" && as_dir=.
1792 for ac_exec_ext in '' $ac_executable_extensions; do
1793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794 ac_cv_prog_ac_ct_CC="$ac_prog"
1795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1804 if test -n "$ac_ct_CC"; then
1805 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1806 echo "${ECHO_T}$ac_ct_CC" >&6
1808 echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1812 test -n "$ac_ct_CC" && break
1821 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1822 See \`config.log' for more details." >&5
1823 echo "$as_me: error: no acceptable C compiler found in \$PATH
1824 See \`config.log' for more details." >&2;}
1825 { (exit 1); exit 1; }; }
1827 # Provide some information about the compiler.
1828 echo "$as_me:$LINENO:" \
1829 "checking for C compiler version" >&5
1830 ac_compiler=`set X $ac_compile; echo $2`
1831 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1832 (eval $ac_compiler --version </dev/null >&5) 2>&5
1834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835 (exit $ac_status); }
1836 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1837 (eval $ac_compiler -v </dev/null >&5) 2>&5
1839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840 (exit $ac_status); }
1841 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1842 (eval $ac_compiler -V </dev/null >&5) 2>&5
1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845 (exit $ac_status); }
1847 cat >conftest.$ac_ext <<_ACEOF
1848 #line $LINENO "configure"
1851 cat confdefs.h >>conftest.$ac_ext
1852 cat >>conftest.$ac_ext <<_ACEOF
1853 /* end confdefs.h. */
1863 ac_clean_files_save=$ac_clean_files
1864 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1865 # Try to create an executable without -o first, disregard a.out.
1866 # It will help us diagnose broken compilers, and finding out an intuition
1868 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1869 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1870 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1871 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1872 (eval $ac_link_default) 2>&5
1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875 (exit $ac_status); }; then
1876 # Find the output, starting from the most likely. This scheme is
1877 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1880 # Be careful to initialize this variable, since it used to be cached.
1881 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1883 # b.out is created by i960 compilers.
1884 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1886 test -f "$ac_file" || continue
1888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1891 # This is the source file.
1894 # We found the default executable, but exeext='' is most
1898 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1899 # FIXME: I believe we export ac_cv_exeext for Libtool,
1900 # but it would be cool to find out if it's true. Does anybody
1901 # maintain Libtool? --akim.
1909 echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1912 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1913 See \`config.log' for more details." >&5
1914 echo "$as_me: error: C compiler cannot create executables
1915 See \`config.log' for more details." >&2;}
1916 { (exit 77); exit 77; }; }
1919 ac_exeext=$ac_cv_exeext
1920 echo "$as_me:$LINENO: result: $ac_file" >&5
1921 echo "${ECHO_T}$ac_file" >&6
1923 # Check the compiler produces executables we can run. If not, either
1924 # the compiler is broken, or we cross compile.
1925 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1926 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1927 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1928 # If not cross compiling, check that we can run a simple program.
1929 if test "$cross_compiling" != yes; then
1930 if { ac_try='./$ac_file'
1931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }; }; then
1938 if test "$cross_compiling" = maybe; then
1941 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1942 If you meant to cross compile, use \`--host'.
1943 See \`config.log' for more details." >&5
1944 echo "$as_me: error: cannot run C compiled programs.
1945 If you meant to cross compile, use \`--host'.
1946 See \`config.log' for more details." >&2;}
1947 { (exit 1); exit 1; }; }
1951 echo "$as_me:$LINENO: result: yes" >&5
1952 echo "${ECHO_T}yes" >&6
1954 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1955 ac_clean_files=$ac_clean_files_save
1956 # Check the compiler produces executables we can run. If not, either
1957 # the compiler is broken, or we cross compile.
1958 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1959 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1960 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1961 echo "${ECHO_T}$cross_compiling" >&6
1963 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1964 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1966 (eval $ac_link) 2>&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; then
1970 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1971 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1972 # work properly (i.e., refer to `conftest.exe'), while it won't with
1974 for ac_file in conftest.exe conftest conftest.*; do
1975 test -f "$ac_file" || continue
1977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1978 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1985 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1986 See \`config.log' for more details." >&5
1987 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1988 See \`config.log' for more details." >&2;}
1989 { (exit 1); exit 1; }; }
1992 rm -f conftest$ac_cv_exeext
1993 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1994 echo "${ECHO_T}$ac_cv_exeext" >&6
1996 rm -f conftest.$ac_ext
1997 EXEEXT=$ac_cv_exeext
1999 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2000 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2001 if test "${ac_cv_objext+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 cat >conftest.$ac_ext <<_ACEOF
2005 #line $LINENO "configure"
2008 cat confdefs.h >>conftest.$ac_ext
2009 cat >>conftest.$ac_ext <<_ACEOF
2010 /* end confdefs.h. */
2020 rm -f conftest.o conftest.obj
2021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2022 (eval $ac_compile) 2>&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }; then
2026 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2029 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2034 echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2037 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2038 See \`config.log' for more details." >&5
2039 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2040 See \`config.log' for more details." >&2;}
2041 { (exit 1); exit 1; }; }
2044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2046 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2047 echo "${ECHO_T}$ac_cv_objext" >&6
2048 OBJEXT=$ac_cv_objext
2050 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2051 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2052 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2055 cat >conftest.$ac_ext <<_ACEOF
2056 #line $LINENO "configure"
2059 cat confdefs.h >>conftest.$ac_ext
2060 cat >>conftest.$ac_ext <<_ACEOF
2061 /* end confdefs.h. */
2074 rm -f conftest.$ac_objext
2075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2076 (eval $ac_compile) 2>&5
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); } &&
2080 { ac_try='test -s conftest.$ac_objext'
2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }; }; then
2088 echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.$ac_ext >&5
2093 rm -f conftest.$ac_objext conftest.$ac_ext
2094 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2097 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2098 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2099 GCC=`test $ac_compiler_gnu = yes && echo yes`
2100 ac_test_CFLAGS=${CFLAGS+set}
2101 ac_save_CFLAGS=$CFLAGS
2103 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2104 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2105 if test "${ac_cv_prog_cc_g+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 cat >conftest.$ac_ext <<_ACEOF
2109 #line $LINENO "configure"
2112 cat confdefs.h >>conftest.$ac_ext
2113 cat >>conftest.$ac_ext <<_ACEOF
2114 /* end confdefs.h. */
2124 rm -f conftest.$ac_objext
2125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2126 (eval $ac_compile) 2>&5
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); } &&
2130 { ac_try='test -s conftest.$ac_objext'
2131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }; }; then
2138 echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2143 rm -f conftest.$ac_objext conftest.$ac_ext
2145 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2146 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2147 if test "$ac_test_CFLAGS" = set; then
2148 CFLAGS=$ac_save_CFLAGS
2149 elif test $ac_cv_prog_cc_g = yes; then
2150 if test "$GCC" = yes; then
2156 if test "$GCC" = yes; then
2162 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2163 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2164 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 ac_cv_prog_cc_stdc=no
2169 cat >conftest.$ac_ext <<_ACEOF
2170 #line $LINENO "configure"
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h. */
2178 #include <sys/types.h>
2179 #include <sys/stat.h>
2180 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2181 struct buf { int x; };
2182 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2183 static char *e (p, i)
2189 static char *f (char * (*g) (char **, int), char **p, ...)
2194 s = g (p, va_arg (v,int));
2198 int test (int i, double x);
2199 struct s1 {int (*f) (int a);};
2200 struct s2 {int (*f) (double a);};
2201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2207 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2212 # Don't try gcc -ansi; that turns off useful extensions and
2213 # breaks some systems' header files.
2214 # AIX -qlanglvl=ansi
2215 # Ultrix and OSF/1 -std1
2216 # HP-UX 10.20 and later -Ae
2217 # HP-UX older versions -Aa -D_HPUX_SOURCE
2218 # SVR4 -Xc -D__EXTENSIONS__
2219 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2221 CC="$ac_save_CC $ac_arg"
2222 rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224 (eval $ac_compile) 2>&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
2228 { ac_try='test -s conftest.$ac_objext'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; }; then
2234 ac_cv_prog_cc_stdc=$ac_arg
2237 echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2241 rm -f conftest.$ac_objext
2243 rm -f conftest.$ac_ext conftest.$ac_objext
2248 case "x$ac_cv_prog_cc_stdc" in
2250 echo "$as_me:$LINENO: result: none needed" >&5
2251 echo "${ECHO_T}none needed" >&6 ;;
2253 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2254 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2255 CC="$CC $ac_cv_prog_cc_stdc" ;;
2258 # Some people use a C++ compiler to compile C. Since we use `exit',
2259 # in C++ we need to declare it. In case someone uses the same compiler
2260 # for both compiling C and C++ we need to have the C++ compiler decide
2261 # the declaration of exit, since it's the most demanding environment.
2262 cat >conftest.$ac_ext <<_ACEOF
2267 rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269 (eval $ac_compile) 2>&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); } &&
2273 { ac_try='test -s conftest.$ac_objext'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2279 for ac_declaration in \
2281 '#include <stdlib.h>' \
2282 'extern "C" void std::exit (int) throw (); using std::exit;' \
2283 'extern "C" void std::exit (int); using std::exit;' \
2284 'extern "C" void exit (int) throw ();' \
2285 'extern "C" void exit (int);' \
2288 cat >conftest.$ac_ext <<_ACEOF
2289 #line $LINENO "configure"
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); } &&
2311 { ac_try='test -s conftest.$ac_objext'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; }; then
2319 echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2324 rm -f conftest.$ac_objext conftest.$ac_ext
2325 cat >conftest.$ac_ext <<_ACEOF
2326 #line $LINENO "configure"
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h. */
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); } &&
2347 { ac_try='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2355 echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2359 rm -f conftest.$ac_objext conftest.$ac_ext
2362 if test -n "$ac_declaration"; then
2363 echo '#ifdef __cplusplus' >>confdefs.h
2364 echo $ac_declaration >>confdefs.h
2365 echo '#endif' >>confdefs.h
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2373 rm -f conftest.$ac_objext conftest.$ac_ext
2375 ac_cpp='$CPP $CPPFLAGS'
2376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2381 ac_cpp='$CXXCPP $CPPFLAGS'
2382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2385 if test -n "$ac_tool_prefix"; then
2386 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2390 echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2392 if test "${ac_cv_prog_CXX+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 if test -n "$CXX"; then
2396 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 test -z "$as_dir" && as_dir=.
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2405 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 if test -n "$CXX"; then
2416 echo "$as_me:$LINENO: result: $CXX" >&5
2417 echo "${ECHO_T}$CXX" >&6
2419 echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6
2423 test -n "$CXX" && break
2426 if test -z "$CXX"; then
2428 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2430 # Extract the first word of "$ac_prog", so it can be a program name with args.
2431 set dummy $ac_prog; ac_word=$2
2432 echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 if test -n "$ac_ct_CXX"; then
2438 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447 ac_cv_prog_ac_ct_CXX="$ac_prog"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2457 if test -n "$ac_ct_CXX"; then
2458 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2459 echo "${ECHO_T}$ac_ct_CXX" >&6
2461 echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2465 test -n "$ac_ct_CXX" && break
2467 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2473 # Provide some information about the compiler.
2474 echo "$as_me:$LINENO:" \
2475 "checking for C++ compiler version" >&5
2476 ac_compiler=`set X $ac_compile; echo $2`
2477 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2478 (eval $ac_compiler --version </dev/null >&5) 2>&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }
2482 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2483 (eval $ac_compiler -v </dev/null >&5) 2>&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }
2487 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2488 (eval $ac_compiler -V </dev/null >&5) 2>&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }
2493 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2494 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2495 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 cat >conftest.$ac_ext <<_ACEOF
2499 #line $LINENO "configure"
2502 cat confdefs.h >>conftest.$ac_ext
2503 cat >>conftest.$ac_ext <<_ACEOF
2504 /* end confdefs.h. */
2517 rm -f conftest.$ac_objext
2518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519 (eval $ac_compile) 2>&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try='test -s conftest.$ac_objext'
2524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; }; then
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2536 rm -f conftest.$ac_objext conftest.$ac_ext
2537 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2540 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2541 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2542 GXX=`test $ac_compiler_gnu = yes && echo yes`
2543 ac_test_CXXFLAGS=${CXXFLAGS+set}
2544 ac_save_CXXFLAGS=$CXXFLAGS
2546 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2547 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2548 if test "${ac_cv_prog_cxx_g+set}" = set; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 cat >conftest.$ac_ext <<_ACEOF
2552 #line $LINENO "configure"
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h. */
2567 rm -f conftest.$ac_objext
2568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569 (eval $ac_compile) 2>&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try='test -s conftest.$ac_objext'
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; }; then
2579 ac_cv_prog_cxx_g=yes
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2586 rm -f conftest.$ac_objext conftest.$ac_ext
2588 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2589 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2590 if test "$ac_test_CXXFLAGS" = set; then
2591 CXXFLAGS=$ac_save_CXXFLAGS
2592 elif test $ac_cv_prog_cxx_g = yes; then
2593 if test "$GXX" = yes; then
2599 if test "$GXX" = yes; then
2605 for ac_declaration in \
2607 '#include <stdlib.h>' \
2608 'extern "C" void std::exit (int) throw (); using std::exit;' \
2609 'extern "C" void std::exit (int); using std::exit;' \
2610 'extern "C" void exit (int) throw ();' \
2611 'extern "C" void exit (int);' \
2614 cat >conftest.$ac_ext <<_ACEOF
2615 #line $LINENO "configure"
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h. */
2631 rm -f conftest.$ac_objext
2632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633 (eval $ac_compile) 2>&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } &&
2637 { ac_try='test -s conftest.$ac_objext'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
2645 echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2650 rm -f conftest.$ac_objext conftest.$ac_ext
2651 cat >conftest.$ac_ext <<_ACEOF
2652 #line $LINENO "configure"
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h. */
2667 rm -f conftest.$ac_objext
2668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2669 (eval $ac_compile) 2>&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); } &&
2673 { ac_try='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2681 echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2685 rm -f conftest.$ac_objext conftest.$ac_ext
2688 if test -n "$ac_declaration"; then
2689 echo '#ifdef __cplusplus' >>confdefs.h
2690 echo $ac_declaration >>confdefs.h
2691 echo '#endif' >>confdefs.h
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700 if test "x$CC" != xcc; then
2701 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2702 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2704 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2705 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2707 set dummy $CC; ac_cc=`echo $2 |
2708 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2709 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 cat >conftest.$ac_ext <<_ACEOF
2713 #line $LINENO "configure"
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2728 # Make sure it works both with $CC and with simple cc.
2729 # We do the test twice because some compilers refuse to overwrite an
2730 # existing .o file with -o, though they will create one.
2731 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2732 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } &&
2737 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); };
2743 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2744 if test "x$CC" != xcc; then
2745 # Test first that cc exists at all.
2746 if { ac_try='cc -c conftest.$ac_ext >&5'
2747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; }; then
2752 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2753 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
2758 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); };
2767 # cc exists but doesn't like -o.
2768 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2773 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2778 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2779 echo "$as_me:$LINENO: result: yes" >&5
2780 echo "${ECHO_T}yes" >&6
2782 echo "$as_me:$LINENO: result: no" >&5
2783 echo "${ECHO_T}no" >&6
2785 cat >>confdefs.h <<\_ACEOF
2786 #define NO_MINUS_C_MINUS_O 1
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2797 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2798 # On Suns, sometimes $CPP names a directory.
2799 if test -n "$CPP" && test -d "$CPP"; then
2802 if test -z "$CPP"; then
2803 if test "${ac_cv_prog_CPP+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 # Double quotes because CPP needs to be expanded
2807 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2810 for ac_c_preproc_warn_flag in '' yes
2812 # Use a header file that comes with gcc, so configuring glibc
2813 # with a fresh cross-compiler works.
2814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2815 # <limits.h> exists even on freestanding compilers.
2816 # On the NeXT, cc -E runs the code through the compiler's parser,
2817 # not just through cpp. "Syntax error" is here to catch this case.
2818 cat >conftest.$ac_ext <<_ACEOF
2819 #line $LINENO "configure"
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2826 # include <limits.h>
2828 # include <assert.h>
2832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2835 grep -v '^ *+' conftest.er1 >conftest.err
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } >/dev/null; then
2840 if test -s conftest.err; then
2841 ac_cpp_err=$ac_c_preproc_warn_flag
2848 if test -z "$ac_cpp_err"; then
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2854 # Broken: fails on valid input.
2857 rm -f conftest.err conftest.$ac_ext
2859 # OK, works on sane cases. Now check whether non-existent headers
2860 # can be detected and how.
2861 cat >conftest.$ac_ext <<_ACEOF
2862 #line $LINENO "configure"
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2868 #include <ac_nonexistent.h>
2870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2873 grep -v '^ *+' conftest.er1 >conftest.err
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } >/dev/null; then
2878 if test -s conftest.err; then
2879 ac_cpp_err=$ac_c_preproc_warn_flag
2886 if test -z "$ac_cpp_err"; then
2887 # Broken: success on invalid input.
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2893 # Passes both tests.
2897 rm -f conftest.err conftest.$ac_ext
2900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2901 rm -f conftest.err conftest.$ac_ext
2902 if $ac_preproc_ok; then
2914 echo "$as_me:$LINENO: result: $CPP" >&5
2915 echo "${ECHO_T}$CPP" >&6
2917 for ac_c_preproc_warn_flag in '' yes
2919 # Use a header file that comes with gcc, so configuring glibc
2920 # with a fresh cross-compiler works.
2921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922 # <limits.h> exists even on freestanding compilers.
2923 # On the NeXT, cc -E runs the code through the compiler's parser,
2924 # not just through cpp. "Syntax error" is here to catch this case.
2925 cat >conftest.$ac_ext <<_ACEOF
2926 #line $LINENO "configure"
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2933 # include <limits.h>
2935 # include <assert.h>
2939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2942 grep -v '^ *+' conftest.er1 >conftest.err
2944 cat conftest.err >&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); } >/dev/null; then
2947 if test -s conftest.err; then
2948 ac_cpp_err=$ac_c_preproc_warn_flag
2955 if test -z "$ac_cpp_err"; then
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 # Broken: fails on valid input.
2964 rm -f conftest.err conftest.$ac_ext
2966 # OK, works on sane cases. Now check whether non-existent headers
2967 # can be detected and how.
2968 cat >conftest.$ac_ext <<_ACEOF
2969 #line $LINENO "configure"
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2975 #include <ac_nonexistent.h>
2977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2980 grep -v '^ *+' conftest.er1 >conftest.err
2982 cat conftest.err >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } >/dev/null; then
2985 if test -s conftest.err; then
2986 ac_cpp_err=$ac_c_preproc_warn_flag
2993 if test -z "$ac_cpp_err"; then
2994 # Broken: success on invalid input.
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 # Passes both tests.
3004 rm -f conftest.err conftest.$ac_ext
3007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3008 rm -f conftest.err conftest.$ac_ext
3009 if $ac_preproc_ok; then
3012 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3013 See \`config.log' for more details." >&5
3014 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3015 See \`config.log' for more details." >&2;}
3016 { (exit 1); exit 1; }; }
3020 ac_cpp='$CPP $CPPFLAGS'
3021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026 echo "$as_me:$LINENO: checking for egrep" >&5
3027 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3028 if test "${ac_cv_prog_egrep+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3032 then ac_cv_prog_egrep='grep -E'
3033 else ac_cv_prog_egrep='egrep'
3036 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3037 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3038 EGREP=$ac_cv_prog_egrep
3041 if test $ac_cv_c_compiler_gnu = yes; then
3042 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3043 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3044 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 ac_pattern="Autoconf.*'x'"
3048 cat >conftest.$ac_ext <<_ACEOF
3049 #line $LINENO "configure"
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3059 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3060 ac_cv_prog_gcc_traditional=yes
3062 ac_cv_prog_gcc_traditional=no
3067 if test $ac_cv_prog_gcc_traditional = no; then
3068 cat >conftest.$ac_ext <<_ACEOF
3069 #line $LINENO "configure"
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h. */
3078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3079 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3080 ac_cv_prog_gcc_traditional=yes
3086 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3087 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3088 if test $ac_cv_prog_gcc_traditional = yes; then
3089 CC="$CC -traditional"
3095 cat >>confdefs.h <<\_ACEOF
3101 # Find a good install program. We prefer a C program (faster),
3102 # so one script is as good as another. But avoid the broken or
3103 # incompatible versions:
3104 # SysV /etc/install, /usr/sbin/install
3105 # SunOS /usr/etc/install
3106 # IRIX /sbin/install
3108 # AmigaOS /C/install, which installs bootblocks on floppy discs
3109 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3112 # ./install, which can be erroneously created by make from ./install.sh.
3113 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3114 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3115 if test -z "$INSTALL"; then
3116 if test "${ac_cv_path_install+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 test -z "$as_dir" && as_dir=.
3124 # Account for people who put trailing slashes in PATH elements.
3126 ./ | .// | /cC/* | \
3127 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3130 # OSF1 and SCO ODT 3.0 have their own names for install.
3131 # Don't use installbsd from OSF since it installs stuff as root
3133 for ac_prog in ginstall scoinst install; do
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3136 if test $ac_prog = install &&
3137 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3138 # AIX install. It has an incompatible calling convention.
3140 elif test $ac_prog = install &&
3141 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3142 # program-specific install script used by HP pwplus--don't use.
3145 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3157 if test "${ac_cv_path_install+set}" = set; then
3158 INSTALL=$ac_cv_path_install
3160 # As a last resort, use the slow shell script. We don't cache a
3161 # path for INSTALL within a source directory, because that will
3162 # break other packages using the cache if that directory is
3163 # removed, or if the path is relative.
3164 INSTALL=$ac_install_sh
3167 echo "$as_me:$LINENO: result: $INSTALL" >&5
3168 echo "${ECHO_T}$INSTALL" >&6
3170 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3171 # It thinks the first close brace ends the variable substitution.
3172 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3174 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3176 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3178 if test -n "$ac_tool_prefix"; then
3179 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3180 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3181 echo "$as_me:$LINENO: checking for $ac_word" >&5
3182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3183 if test "${ac_cv_prog_RANLIB+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 if test -n "$RANLIB"; then
3187 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 RANLIB=$ac_cv_prog_RANLIB
3206 if test -n "$RANLIB"; then
3207 echo "$as_me:$LINENO: result: $RANLIB" >&5
3208 echo "${ECHO_T}$RANLIB" >&6
3210 echo "$as_me:$LINENO: result: no" >&5
3211 echo "${ECHO_T}no" >&6
3215 if test -z "$ac_cv_prog_RANLIB"; then
3216 ac_ct_RANLIB=$RANLIB
3217 # Extract the first word of "ranlib", so it can be a program name with args.
3218 set dummy ranlib; ac_word=$2
3219 echo "$as_me:$LINENO: checking for $ac_word" >&5
3220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3221 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 if test -n "$ac_ct_RANLIB"; then
3225 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234 ac_cv_prog_ac_ct_RANLIB="ranlib"
3235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3244 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3245 if test -n "$ac_ct_RANLIB"; then
3246 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3247 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3249 echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3253 RANLIB=$ac_ct_RANLIB
3255 RANLIB="$ac_cv_prog_RANLIB"
3258 # Extract the first word of "mv", so it can be a program name with args.
3259 set dummy mv; ac_word=$2
3260 echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262 if test "${ac_cv_path_MV+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3290 if test -n "$MV"; then
3291 echo "$as_me:$LINENO: result: $MV" >&5
3292 echo "${ECHO_T}$MV" >&6
3294 echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3298 # Extract the first word of "rm", so it can be a program name with args.
3299 set dummy rm; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_path_RM+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3330 if test -n "$RM"; then
3331 echo "$as_me:$LINENO: result: $RM" >&5
3332 echo "${ECHO_T}$RM" >&6
3334 echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6
3338 # Extract the first word of "cp", so it can be a program name with args.
3339 set dummy cp; ac_word=$2
3340 echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_path_CP+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3370 if test -n "$CP"; then
3371 echo "$as_me:$LINENO: result: $CP" >&5
3372 echo "${ECHO_T}$CP" >&6
3374 echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3378 # Extract the first word of "sed", so it can be a program name with args.
3379 set dummy sed; ac_word=$2
3380 echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382 if test "${ac_cv_path_SED+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3410 if test -n "$SED"; then
3411 echo "$as_me:$LINENO: result: $SED" >&5
3412 echo "${ECHO_T}$SED" >&6
3414 echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3418 # Extract the first word of "awk", so it can be a program name with args.
3419 set dummy awk; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_path_AWK+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3450 if test -n "$AWK"; then
3451 echo "$as_me:$LINENO: result: $AWK" >&5
3452 echo "${ECHO_T}$AWK" >&6
3454 echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3458 # Extract the first word of "echo", so it can be a program name with args.
3459 set dummy echo; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_ECHO+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3488 ECHO=$ac_cv_path_ECHO
3490 if test -n "$ECHO"; then
3491 echo "$as_me:$LINENO: result: $ECHO" >&5
3492 echo "${ECHO_T}$ECHO" >&6
3494 echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3498 # Extract the first word of "cmp", so it can be a program name with args.
3499 set dummy cmp; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_path_CMP+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3530 if test -n "$CMP"; then
3531 echo "$as_me:$LINENO: result: $CMP" >&5
3532 echo "${ECHO_T}$CMP" >&6
3534 echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3538 # Extract the first word of "tbl", so it can be a program name with args.
3539 set dummy tbl; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_path_TBL+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3570 if test -n "$TBL"; then
3571 echo "$as_me:$LINENO: result: $TBL" >&5
3572 echo "${ECHO_T}$TBL" >&6
3574 echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3578 # Extract the first word of "ar", so it can be a program name with args.
3579 set dummy ar; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_path_AR+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3610 if test -n "$AR"; then
3611 echo "$as_me:$LINENO: result: $AR" >&5
3612 echo "${ECHO_T}$AR" >&6
3614 echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3618 # Extract the first word of "ranlib", so it can be a program name with args.
3619 set dummy ranlib; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_path_RANLIB+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3648 RANLIB=$ac_cv_path_RANLIB
3650 if test -n "$RANLIB"; then
3651 echo "$as_me:$LINENO: result: $RANLIB" >&5
3652 echo "${ECHO_T}$RANLIB" >&6
3654 echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3658 # Extract the first word of "openssl", so it can be a program name with args.
3659 set dummy openssl; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_path_OPENSSL+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3688 OPENSSL=$ac_cv_path_OPENSSL
3690 if test -n "$OPENSSL"; then
3691 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3692 echo "${ECHO_T}$OPENSSL" >&6
3694 echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3698 # Extract the first word of "mtx", so it can be a program name with args.
3699 set dummy mtx; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_path_MTX+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3730 if test -n "$MTX"; then
3731 echo "$as_me:$LINENO: result: $MTX" >&5
3732 echo "${ECHO_T}$MTX" >&6
3734 echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3738 # Extract the first word of "pkg-config", so it can be a program name with args.
3739 set dummy pkg-config; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3768 PKGCONFIG=$ac_cv_path_PKGCONFIG
3770 if test -n "$PKGCONFIG"; then
3771 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3772 echo "${ECHO_T}$PKGCONFIG" >&6
3774 echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3779 test -n "$ARFLAG" || ARFLAGS="cr"
3792 echo "$as_me:$LINENO: checking for Operating System" >&5
3793 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3796 *cygwin* ) CYGWIN=yes;;
3800 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3806 HAVE_SUN_OS_FALSE='#'
3808 HAVE_SUN_OS_TRUE='#'
3811 cat >>confdefs.h <<\_ACEOF
3812 #define HAVE_SUN_OS 1
3820 HAVE_SUN_OS_FALSE='#'
3822 HAVE_SUN_OS_TRUE='#'
3827 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3833 HAVE_OSF1_OS_FALSE='#'
3835 HAVE_OSF1_OS_TRUE='#'
3838 cat >>confdefs.h <<\_ACEOF
3839 #define HAVE_OSF1_OS 1
3847 HAVE_OSF1_OS_FALSE='#'
3849 HAVE_OSF1_OS_TRUE='#'
3854 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3860 HAVE_AIX_OS_FALSE='#'
3862 HAVE_AIX_OS_TRUE='#'
3865 cat >>confdefs.h <<\_ACEOF
3866 #define HAVE_AIX_OS 1
3874 HAVE_AIX_OS_FALSE='#'
3876 HAVE_AIX_OS_TRUE='#'
3881 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3887 HAVE_HPUX_OS_FALSE='#'
3889 HAVE_HPUX_OS_TRUE='#'
3892 cat >>confdefs.h <<\_ACEOF
3893 #define HAVE_HPUX_OS 1
3901 HAVE_HPUX_OS_FALSE='#'
3903 HAVE_HPUX_OS_TRUE='#'
3908 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3914 HAVE_LINUX_OS_FALSE='#'
3916 HAVE_LINUX_OS_TRUE='#'
3917 HAVE_LINUX_OS_FALSE=
3919 cat >>confdefs.h <<\_ACEOF
3920 #define HAVE_LINUX_OS 1
3928 HAVE_LINUX_OS_FALSE='#'
3930 HAVE_LINUX_OS_TRUE='#'
3931 HAVE_LINUX_OS_FALSE=
3935 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3940 HAVE_FREEBSD_OS_TRUE=
3941 HAVE_FREEBSD_OS_FALSE='#'
3943 HAVE_FREEBSD_OS_TRUE='#'
3944 HAVE_FREEBSD_OS_FALSE=
3946 cat >>confdefs.h <<\_ACEOF
3947 #define HAVE_FREEBSD_OS 1
3954 HAVE_FREEBSD_OS_TRUE=
3955 HAVE_FREEBSD_OS_FALSE='#'
3957 HAVE_FREEBSD_OS_TRUE='#'
3958 HAVE_FREEBSD_OS_FALSE=
3962 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3967 HAVE_NETBSD_OS_TRUE=
3968 HAVE_NETBSD_OS_FALSE='#'
3970 HAVE_NETBSD_OS_TRUE='#'
3971 HAVE_NETBSD_OS_FALSE=
3973 cat >>confdefs.h <<\_ACEOF
3974 #define HAVE_NETBSD_OS 1
3981 HAVE_NETBSD_OS_TRUE=
3982 HAVE_NETBSD_OS_FALSE='#'
3984 HAVE_NETBSD_OS_TRUE='#'
3985 HAVE_NETBSD_OS_FALSE=
3989 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3994 HAVE_OPENBSD_OS_TRUE=
3995 HAVE_OPENBSD_OS_FALSE='#'
3997 HAVE_OPENBSD_OS_TRUE='#'
3998 HAVE_OPENBSD_OS_FALSE=
4000 cat >>confdefs.h <<\_ACEOF
4001 #define HAVE_OPENBSD_OS 1
4008 HAVE_OPENBSD_OS_TRUE=
4009 HAVE_OPENBSD_OS_FALSE='#'
4011 HAVE_OPENBSD_OS_TRUE='#'
4012 HAVE_OPENBSD_OS_FALSE=
4016 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4022 HAVE_BSDI_OS_FALSE='#'
4024 HAVE_BSDI_OS_TRUE='#'
4027 cat >>confdefs.h <<\_ACEOF
4028 #define HAVE_BSDI_OS 1
4036 HAVE_BSDI_OS_FALSE='#'
4038 HAVE_BSDI_OS_TRUE='#'
4043 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4049 HAVE_SGI_OS_FALSE='#'
4051 HAVE_SGI_OS_TRUE='#'
4054 cat >>confdefs.h <<\_ACEOF
4055 #define HAVE_SGI_OS 1
4063 HAVE_SGI_OS_FALSE='#'
4065 HAVE_SGI_OS_TRUE='#'
4070 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4076 HAVE_IRIX_OS_FALSE='#'
4078 HAVE_IRIX_OS_TRUE='#'
4081 cat >>confdefs.h <<\_ACEOF
4082 #define HAVE_IRIX_OS 1
4090 HAVE_IRIX_OS_FALSE='#'
4092 HAVE_IRIX_OS_TRUE='#'
4097 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4102 HAVE_DARWIN_OS_TRUE=
4103 HAVE_DARWIN_OS_FALSE='#'
4105 HAVE_DARWIN_OS_TRUE='#'
4106 HAVE_DARWIN_OS_FALSE=
4108 cat >>confdefs.h <<\_ACEOF
4109 #define HAVE_DARWIN_OS 1
4116 HAVE_DARWIN_OS_TRUE=
4117 HAVE_DARWIN_OS_FALSE='#'
4119 HAVE_DARWIN_OS_TRUE='#'
4120 HAVE_DARWIN_OS_FALSE=
4124 echo "$as_me:$LINENO: result: \" \"" >&5
4125 echo "${ECHO_T}\" \"" >&6
4128 # -----------------------------------------------------------
4129 # ----------------------------------------------------------
4130 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4131 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4132 if test "x$DISTNAME" != "x"
4134 echo "distname set to $DISTNAME"
4135 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4138 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4141 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4162 elif test -f /etc/SuSE-release
4165 elif test -d /etc/SuSEconfig
4168 elif test -f /etc/mandrake-release
4171 elif test -f /etc/redhat-release
4174 elif test -f /etc/gentoo-release
4177 elif test -f /etc/debian_version
4180 elif test -f /etc/slackware-version
4183 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4186 elif test -f /etc/engarde-version
4189 elif test "$CYGWIN" = yes
4192 cat >>confdefs.h <<\_ACEOF
4193 #define HAVE_CYGWIN 1
4199 echo "$as_me:$LINENO: result: \" \"" >&5
4200 echo "${ECHO_T}\" \"" >&6
4203 # -----------------------------------------------------------
4204 # ----------------------------------------------------------
4209 INSIDE_GNOME_COMMON_TRUE=
4210 INSIDE_GNOME_COMMON_FALSE='#'
4212 INSIDE_GNOME_COMMON_TRUE='#'
4213 INSIDE_GNOME_COMMON_FALSE=
4216 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4218 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4221 # ------------------------------------------------------------------
4222 # If the user has not set --prefix, we set our default to nothing.
4223 # In this case, if the user has not set --sysconfdir, we set it
4224 # to the package default of /etc/bacula. If either --prefix or
4225 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4226 # ------------------------------------------------------------------
4227 if test x${prefix} = xNONE ; then
4228 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4229 sysconfdir=/etc/bacula
4233 sysconfdir=`eval echo ${sysconfdir}`
4235 # -------------------------------------------------------------------------
4236 # If the user has not set --exec-prefix, we default to ${prefix}
4237 # -------------------------------------------------------------------------
4238 if test x${exec_prefix} = xNONE ; then
4239 exec_prefix=${prefix}
4242 # ------------------------------------------------------------------
4243 # If the user has not set --sbindir, we set our default as /sbin
4244 # ------------------------------------------------------------------
4245 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4246 sbindir=${exec_prefix}/sbin
4248 sbindir=`eval echo ${sbindir}`
4250 # ------------------------------------------------------------------
4251 # All list of languages for which a translation exist. Each
4252 # language is separated by a space.
4253 # ------------------------------------------------------------------
4256 for ac_prog in msgfmt
4258 # Extract the first word of "$ac_prog", so it can be a program name with args.
4259 set dummy $ac_prog; ac_word=$2
4260 echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_path_MSGFMT+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 MSGFMT=$ac_cv_path_MSGFMT
4289 if test -n "$MSGFMT"; then
4290 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4291 echo "${ECHO_T}$MSGFMT" >&6
4293 echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6
4297 test -n "$MSGFMT" && break
4299 test -n "$MSGFMT" || MSGFMT="no"
4301 if test "$MSGFMT" = "no"
4303 echo 'msgfmt program not found, disabling NLS !'
4305 USE_INCLUDED_LIBINTL=no
4313 support_smartalloc=yes
4314 support_readline=yes
4316 support_static_tools=no
4317 support_static_fd=no
4318 support_static_sd=no
4319 support_static_dir=no
4320 support_static_cons=no
4321 build_client_only=no
4327 # -------------------------------------------
4328 # gnome (default off)
4329 # -------------------------------------------
4330 # Check whether --enable-gnome or --disable-gnome was given.
4331 if test "${enable_gnome+set}" = set; then
4332 enableval="$enable_gnome"
4333 if test x$enableval = xyes; then
4339 if test x$support_gnome = xyes; then
4340 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4342 if test $pkg = 0; then
4343 GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4344 GNOMEUI_LIBS=`pkg-config --libs-only-other libgnomeui-2.0`
4345 GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4346 GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4351 GNOME_DIR=src/gnome-console
4364 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4365 if test "${with_gnome_includes+set}" = set; then
4366 withval="$with_gnome_includes"
4368 CFLAGS="$CFLAGS -I$withval"
4373 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4374 if test "${with_gnome_libs+set}" = set; then
4375 withval="$with_gnome_libs"
4377 LDFLAGS="$LDFLAGS -L$withval"
4378 gnome_prefix=$withval
4383 # Check whether --with-gnome or --without-gnome was given.
4384 if test "${with_gnome+set}" = set; then
4385 withval="$with_gnome"
4386 if test x$withval = xyes; then
4390 if test "x$withval" = xno; then
4394 LDFLAGS="$LDFLAGS -L$withval/lib"
4395 CFLAGS="$CFLAGS -I$withval/include"
4396 gnome_prefix=$withval/lib
4403 if test "x$want_gnome" = xyes; then
4405 # Extract the first word of "gnome-config", so it can be a program name with args.
4406 set dummy gnome-config; ac_word=$2
4407 echo "$as_me:$LINENO: checking for $ac_word" >&5
4408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4409 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 case $GNOME_CONFIG in
4414 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4424 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4435 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4437 if test -n "$GNOME_CONFIG"; then
4438 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4439 echo "${ECHO_T}$GNOME_CONFIG" >&6
4441 echo "$as_me:$LINENO: result: no" >&5
4442 echo "${ECHO_T}no" >&6
4445 if test "$GNOME_CONFIG" = "no"; then
4446 no_gnome_config="yes"
4448 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4449 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4450 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4451 echo "$as_me:$LINENO: result: yes" >&5
4452 echo "${ECHO_T}yes" >&6
4455 # Extract the first word of "orbit-config", so it can be a program name with args.
4456 set dummy orbit-config; ac_word=$2
4457 echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4459 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 case $ORBIT_CONFIG in
4464 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4474 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4485 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4487 if test -n "$ORBIT_CONFIG"; then
4488 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4489 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4491 echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6
4495 # Extract the first word of "orbit-idl", so it can be a program name with args.
4496 set dummy orbit-idl; ac_word=$2
4497 echo "$as_me:$LINENO: checking for $ac_word" >&5
4498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4499 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4525 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4527 if test -n "$ORBIT_IDL"; then
4528 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4529 echo "${ECHO_T}$ORBIT_IDL" >&6
4531 echo "$as_me:$LINENO: result: no" >&5
4532 echo "${ECHO_T}no" >&6
4535 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4536 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4537 if test "${gnome_cv_orbit_found+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4542 gnome_cv_orbit_found=no
4544 gnome_cv_orbit_found=yes
4548 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4549 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4552 if test x$gnome_cv_orbit_found = xyes; then
4554 HAVE_ORBIT_FALSE='#'
4559 if test x$gnome_cv_orbit_found = xyes; then
4561 ORBIT_CFLAGS=`orbit-config --cflags client server`
4562 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4566 if test xfail = xfailure; then
4567 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4568 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4569 { (exit 1); exit 1; }; }
4573 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4574 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4575 if test "${gnome_cv_gnorba_found+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 gnome_cv_gnorba_found=no
4580 if test x$gnome_cv_orbit_found = xyes; then
4581 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4582 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4583 if test -n "$GNORBA_LIBS"; then
4584 gnome_cv_gnorba_found=yes
4589 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4590 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4593 if test x$gnome_cv_gnorba_found = xyes; then
4595 HAVE_GNORBA_FALSE='#'
4597 HAVE_GNORBA_TRUE='#'
4600 if test x$gnome_cv_orbit_found = xyes; then
4602 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4603 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4607 if test xfail = xfailure; then
4608 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4609 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4610 { (exit 1); exit 1; }; }
4614 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4615 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4616 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4617 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4618 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4619 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4620 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4623 echo "$as_me:$LINENO: result: no" >&5
4624 echo "${ECHO_T}no" >&6
4625 no_gnome_config="yes"
4629 if test x$exec_prefix = xNONE; then
4630 if test x$prefix = xNONE; then
4631 gnome_prefix=$ac_default_prefix/lib
4633 gnome_prefix=$prefix/lib
4636 gnome_prefix=`eval echo \`echo $libdir\``
4639 if test "$no_gnome_config" = "yes"; then
4640 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4641 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4642 if test -f $gnome_prefix/gnomeConf.sh; then
4643 echo "$as_me:$LINENO: result: found" >&5
4644 echo "${ECHO_T}found" >&6
4645 echo "loading gnome configuration from" \
4646 "$gnome_prefix/gnomeConf.sh"
4647 . $gnome_prefix/gnomeConf.sh
4650 echo "$as_me:$LINENO: result: not found" >&5
4651 echo "${ECHO_T}not found" >&6
4652 if test xfail = xfail; then
4653 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4654 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4655 { (exit 1); exit 1; }; }
4664 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4665 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4669 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4670 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4671 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4674 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4675 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4676 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4679 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4680 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4681 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4683 echo "$as_me:$LINENO: result: unknown library" >&5
4684 echo "${ECHO_T}unknown library" >&6
4686 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4687 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4692 GNOME_DIR=src/gnome-console
4698 # -------------------------------------------
4699 # smartalloc (default off)
4700 # -------------------------------------------
4701 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4702 if test "${enable_smartalloc+set}" = set; then
4703 enableval="$enable_smartalloc"
4704 if test x$enableval = xno; then
4705 support_smartalloc=no
4709 if test x$support_smartalloc = xyes; then
4710 cat >>confdefs.h <<\_ACEOF
4711 #define SMARTALLOC 1
4716 # -------------------------------------------
4717 # static-tools (default off)
4718 # -------------------------------------------
4719 # Check whether --enable-static-tools or --disable-static-tools was given.
4720 if test "${enable_static_tools+set}" = set; then
4721 enableval="$enable_static_tools"
4722 if test x$enableval = xyes; then
4723 support_static_tools=yes
4728 if test x$support_static_tools = xyes; then
4729 TTOOL_LDFLAGS="-static"
4733 # -------------------------------------------
4734 # static-fd (default off)
4735 # -------------------------------------------
4736 # Check whether --enable-static-fd or --disable-static-fd was given.
4737 if test "${enable_static_fd+set}" = set; then
4738 enableval="$enable_static_fd"
4739 if test x$enableval = xyes; then
4740 support_static_fd=yes
4745 if test x$support_static_fd = xyes; then
4746 STATIC_FD="static-bacula-fd"
4750 # -------------------------------------------
4751 # static-sd (default off)
4752 # -------------------------------------------
4753 # Check whether --enable-static-sd or --disable-static-sd was given.
4754 if test "${enable_static_sd+set}" = set; then
4755 enableval="$enable_static_sd"
4756 if test x$enableval = xyes; then
4757 support_static_sd=yes
4762 if test x$support_static_sd = xyes; then
4763 STATIC_SD="static-bacula-sd"
4767 # -------------------------------------------
4768 # static-dir (default off)
4769 # -------------------------------------------
4770 # Check whether --enable-static-dir or --disable-static-dir was given.
4771 if test "${enable_static_dir+set}" = set; then
4772 enableval="$enable_static_dir"
4773 if test x$enableval = xyes; then
4774 support_static_dir=yes
4779 if test x$support_static_dir = xyes; then
4780 STATIC_DIR="static-bacula-dir"
4784 # -------------------------------------------
4785 # static-cons (default off)
4786 # -------------------------------------------
4787 # Check whether --enable-static-cons or --disable-static-cons was given.
4788 if test "${enable_static_cons+set}" = set; then
4789 enableval="$enable_static_cons"
4790 if test x$enableval = xyes; then
4791 support_static_cons=yes
4796 if test x$support_static_cons = xyes; then
4797 STATIC_CONS="static-console"
4801 # -------------------------------------------
4802 # client_only (default off)
4803 # -------------------------------------------
4804 # Check whether --enable-client-only or --disable-client-only was given.
4805 if test "${enable_client_only+set}" = set; then
4806 enableval="$enable_client_only"
4807 if test x$enableval = xyes; then
4808 build_client_only=yes
4811 if test x$build_client_only = xno; then
4818 # ---------------------------------------------------
4819 # Check for readline support/directory (default on)
4820 # ---------------------------------------------------
4821 # this allows you to turn it completely off
4822 # Check whether --enable-readline or --disable-readline was given.
4823 if test "${enable_readline+set}" = set; then
4824 enableval="$enable_readline"
4825 if test x$enableval = xno; then
4832 if test x$support_readline = xyes; then
4833 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4834 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4835 if test "${ac_cv_header_stdc+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 cat >conftest.$ac_ext <<_ACEOF
4839 #line $LINENO "configure"
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h. */
4858 rm -f conftest.$ac_objext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860 (eval $ac_compile) 2>&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try='test -s conftest.$ac_objext'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; }; then
4870 ac_cv_header_stdc=yes
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4875 ac_cv_header_stdc=no
4877 rm -f conftest.$ac_objext conftest.$ac_ext
4879 if test $ac_cv_header_stdc = yes; then
4880 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4881 cat >conftest.$ac_ext <<_ACEOF
4882 #line $LINENO "configure"
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4892 $EGREP "memchr" >/dev/null 2>&1; then
4895 ac_cv_header_stdc=no
4901 if test $ac_cv_header_stdc = yes; then
4902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4903 cat >conftest.$ac_ext <<_ACEOF
4904 #line $LINENO "configure"
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4914 $EGREP "free" >/dev/null 2>&1; then
4917 ac_cv_header_stdc=no
4923 if test $ac_cv_header_stdc = yes; then
4924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4925 if test "$cross_compiling" = yes; then
4928 cat >conftest.$ac_ext <<_ACEOF
4929 #line $LINENO "configure"
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4936 #if ((' ' & 0x0FF) == 0x020)
4937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4940 # define ISLOWER(c) \
4941 (('a' <= (c) && (c) <= 'i') \
4942 || ('j' <= (c) && (c) <= 'r') \
4943 || ('s' <= (c) && (c) <= 'z'))
4944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4952 for (i = 0; i < 256; i++)
4953 if (XOR (islower (i), ISLOWER (i))
4954 || toupper (i) != TOUPPER (i))
4959 rm -f conftest$ac_exeext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4961 (eval $ac_link) 2>&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; }; then
4972 echo "$as_me: program exited with status $ac_status" >&5
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4977 ac_cv_header_stdc=no
4979 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4983 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4984 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4985 if test $ac_cv_header_stdc = yes; then
4987 cat >>confdefs.h <<\_ACEOF
4988 #define STDC_HEADERS 1
4993 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5003 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5004 inttypes.h stdint.h unistd.h
5006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5007 echo "$as_me:$LINENO: checking for $ac_header" >&5
5008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 cat >conftest.$ac_ext <<_ACEOF
5013 #line $LINENO "configure"
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5019 $ac_includes_default
5021 #include <$ac_header>
5023 rm -f conftest.$ac_objext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025 (eval $ac_compile) 2>&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } &&
5029 { ac_try='test -s conftest.$ac_objext'
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; }; then
5035 eval "$as_ac_Header=yes"
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5040 eval "$as_ac_Header=no"
5042 rm -f conftest.$ac_objext conftest.$ac_ext
5044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5047 cat >>confdefs.h <<_ACEOF
5048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5057 # Check whether --with-readline or --without-readline was given.
5058 if test "${with_readline+set}" = set; then
5059 withval="$with_readline"
5061 case "$with_readline" in
5064 if test "$with_readline" != "yes"; then
5065 CONS_INC="-I${with_readline}"
5066 CONS_LDFLAGS="-L$with_readline"
5068 with_readline="/usr/include/readline"
5070 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5072 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5073 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5080 # Is the header compilable?
5081 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5082 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5083 cat >conftest.$ac_ext <<_ACEOF
5084 #line $LINENO "configure"
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5090 $ac_includes_default
5091 #include <${with_readline}/readline.h>
5093 rm -f conftest.$ac_objext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095 (eval $ac_compile) 2>&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } &&
5099 { ac_try='test -s conftest.$ac_objext'
5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; }; then
5105 ac_header_compiler=yes
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5110 ac_header_compiler=no
5112 rm -f conftest.$ac_objext conftest.$ac_ext
5113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5114 echo "${ECHO_T}$ac_header_compiler" >&6
5116 # Is the header present?
5117 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5118 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5119 cat >conftest.$ac_ext <<_ACEOF
5120 #line $LINENO "configure"
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h. */
5126 #include <${with_readline}/readline.h>
5128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5131 grep -v '^ *+' conftest.er1 >conftest.err
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } >/dev/null; then
5136 if test -s conftest.err; then
5137 ac_cpp_err=$ac_c_preproc_warn_flag
5144 if test -z "$ac_cpp_err"; then
5145 ac_header_preproc=yes
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5150 ac_header_preproc=no
5152 rm -f conftest.err conftest.$ac_ext
5153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5154 echo "${ECHO_T}$ac_header_preproc" >&6
5156 # So? What about this header?
5157 case $ac_header_compiler:$ac_header_preproc in
5159 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5160 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5162 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5165 ## ------------------------------------ ##
5166 ## Report this to bug-autoconf@gnu.org. ##
5167 ## ------------------------------------ ##
5170 sed "s/^/$as_me: WARNING: /" >&2
5173 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5174 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5175 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5176 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5177 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5178 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5181 ## ------------------------------------ ##
5182 ## Report this to bug-autoconf@gnu.org. ##
5183 ## ------------------------------------ ##
5186 sed "s/^/$as_me: WARNING: /" >&2
5189 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5190 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 eval "$as_ac_Header=$ac_header_preproc"
5196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5201 cat >>confdefs.h <<\_ACEOF
5202 #define HAVE_READLINE 1
5205 CONS_LIBS="-lreadline -ltermcap"
5209 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5210 echo "$as_me: error: *** readline library missing" >&2;}
5211 { (exit 1); exit 1; }; }
5222 # check for standard readline library
5223 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5224 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5225 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5226 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5230 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5232 # Is the header compilable?
5233 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5234 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5235 cat >conftest.$ac_ext <<_ACEOF
5236 #line $LINENO "configure"
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5242 $ac_includes_default
5243 #include </usr/include/readline/readline.h>
5245 rm -f conftest.$ac_objext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5247 (eval $ac_compile) 2>&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } &&
5251 { ac_try='test -s conftest.$ac_objext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 ac_header_compiler=yes
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5262 ac_header_compiler=no
5264 rm -f conftest.$ac_objext conftest.$ac_ext
5265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5266 echo "${ECHO_T}$ac_header_compiler" >&6
5268 # Is the header present?
5269 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5270 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5271 cat >conftest.$ac_ext <<_ACEOF
5272 #line $LINENO "configure"
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 #include </usr/include/readline/readline.h>
5280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5283 grep -v '^ *+' conftest.er1 >conftest.err
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } >/dev/null; then
5288 if test -s conftest.err; then
5289 ac_cpp_err=$ac_c_preproc_warn_flag
5296 if test -z "$ac_cpp_err"; then
5297 ac_header_preproc=yes
5299 echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5302 ac_header_preproc=no
5304 rm -f conftest.err conftest.$ac_ext
5305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5306 echo "${ECHO_T}$ac_header_preproc" >&6
5308 # So? What about this header?
5309 case $ac_header_compiler:$ac_header_preproc in
5311 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5312 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5313 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5314 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5317 ## ------------------------------------ ##
5318 ## Report this to bug-autoconf@gnu.org. ##
5319 ## ------------------------------------ ##
5322 sed "s/^/$as_me: WARNING: /" >&2
5325 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5326 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5327 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5328 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5329 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5330 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5333 ## ------------------------------------ ##
5334 ## Report this to bug-autoconf@gnu.org. ##
5335 ## ------------------------------------ ##
5338 sed "s/^/$as_me: WARNING: /" >&2
5341 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5342 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5343 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5348 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5349 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5352 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5353 cat >>confdefs.h <<\_ACEOF
5354 #define HAVE_READLINE 1
5358 CONS_INC="-I/usr/include/readline"
5359 CONS_LIBS="-lreadline -ltermcap"
5363 # Did not find standard library, so try Bacula's default
5364 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5366 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5367 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5374 # Is the header compilable?
5375 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5376 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5377 cat >conftest.$ac_ext <<_ACEOF
5378 #line $LINENO "configure"
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384 $ac_includes_default
5385 #include <${TOP_DIR}/depkgs/readline/readline.h>
5387 rm -f conftest.$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389 (eval $ac_compile) 2>&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } &&
5393 { ac_try='test -s conftest.$ac_objext'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; }; then
5399 ac_header_compiler=yes
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5404 ac_header_compiler=no
5406 rm -f conftest.$ac_objext conftest.$ac_ext
5407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5408 echo "${ECHO_T}$ac_header_compiler" >&6
5410 # Is the header present?
5411 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5412 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5413 cat >conftest.$ac_ext <<_ACEOF
5414 #line $LINENO "configure"
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5420 #include <${TOP_DIR}/depkgs/readline/readline.h>
5422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5425 grep -v '^ *+' conftest.er1 >conftest.err
5427 cat conftest.err >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } >/dev/null; then
5430 if test -s conftest.err; then
5431 ac_cpp_err=$ac_c_preproc_warn_flag
5438 if test -z "$ac_cpp_err"; then
5439 ac_header_preproc=yes
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5444 ac_header_preproc=no
5446 rm -f conftest.err conftest.$ac_ext
5447 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5448 echo "${ECHO_T}$ac_header_preproc" >&6
5450 # So? What about this header?
5451 case $ac_header_compiler:$ac_header_preproc in
5453 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5454 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5455 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5456 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5459 ## ------------------------------------ ##
5460 ## Report this to bug-autoconf@gnu.org. ##
5461 ## ------------------------------------ ##
5464 sed "s/^/$as_me: WARNING: /" >&2
5467 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5468 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5469 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5470 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5471 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5472 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5475 ## ------------------------------------ ##
5476 ## Report this to bug-autoconf@gnu.org. ##
5477 ## ------------------------------------ ##
5480 sed "s/^/$as_me: WARNING: /" >&2
5483 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5484 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 eval "$as_ac_Header=$ac_header_preproc"
5490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5495 cat >>confdefs.h <<\_ACEOF
5496 #define HAVE_READLINE 1
5500 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5501 CONS_LIBS="-lreadline -lhistory -ltermcap"
5502 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5503 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5506 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5507 echo "$as_me: error: *** readline library missing" >&2;}
5508 { (exit 1); exit 1; }; }
5528 # Minimal stuff for readline Makefile configuration
5532 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5533 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5534 if test "${ac_cv_header_stat_broken+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 cat >conftest.$ac_ext <<_ACEOF
5538 #line $LINENO "configure"
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5544 #include <sys/types.h>
5545 #include <sys/stat.h>
5547 #if defined(S_ISBLK) && defined(S_IFDIR)
5548 # if S_ISBLK (S_IFDIR)
5553 #if defined(S_ISBLK) && defined(S_IFCHR)
5554 # if S_ISBLK (S_IFCHR)
5559 #if defined(S_ISLNK) && defined(S_IFREG)
5560 # if S_ISLNK (S_IFREG)
5565 #if defined(S_ISSOCK) && defined(S_IFREG)
5566 # if S_ISSOCK (S_IFREG)
5572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5573 $EGREP "You lose" >/dev/null 2>&1; then
5574 ac_cv_header_stat_broken=yes
5576 ac_cv_header_stat_broken=no
5581 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5582 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5583 if test $ac_cv_header_stat_broken = yes; then
5585 cat >>confdefs.h <<\_ACEOF
5586 #define STAT_MACROS_BROKEN 1
5597 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5598 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5599 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5600 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 cat >conftest.$ac_ext <<_ACEOF
5605 #line $LINENO "configure"
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5611 #include <sys/types.h>
5623 rm -f conftest.$ac_objext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625 (eval $ac_compile) 2>&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } &&
5629 { ac_try='test -s conftest.$ac_objext'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5635 eval "$as_ac_Header=yes"
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 eval "$as_ac_Header=no"
5642 rm -f conftest.$ac_objext conftest.$ac_ext
5644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5647 cat >>confdefs.h <<_ACEOF
5648 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5651 ac_header_dirent=$ac_hdr; break
5655 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5656 if test $ac_header_dirent = dirent.h; then
5657 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5658 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5659 if test "${ac_cv_search_opendir+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 ac_func_search_save_LIBS=$LIBS
5663 ac_cv_search_opendir=no
5664 cat >conftest.$ac_ext <<_ACEOF
5665 #line $LINENO "configure"
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h. */
5672 /* Override any gcc2 internal prototype to avoid an error. */
5676 /* We use char because int might match the return type of a gcc2
5677 builtin and then its argument prototype would still apply. */
5687 rm -f conftest.$ac_objext conftest$ac_exeext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5689 (eval $ac_link) 2>&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } &&
5693 { ac_try='test -s conftest$ac_exeext'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5699 ac_cv_search_opendir="none required"
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5706 if test "$ac_cv_search_opendir" = no; then
5707 for ac_lib in dir; do
5708 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5709 cat >conftest.$ac_ext <<_ACEOF
5710 #line $LINENO "configure"
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5717 /* Override any gcc2 internal prototype to avoid an error. */
5721 /* We use char because int might match the return type of a gcc2
5722 builtin and then its argument prototype would still apply. */
5732 rm -f conftest.$ac_objext conftest$ac_exeext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734 (eval $ac_link) 2>&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } &&
5738 { ac_try='test -s conftest$ac_exeext'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5744 ac_cv_search_opendir="-l$ac_lib"
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5754 LIBS=$ac_func_search_save_LIBS
5756 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5757 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5758 if test "$ac_cv_search_opendir" != no; then
5759 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5764 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5765 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5766 if test "${ac_cv_search_opendir+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 ac_func_search_save_LIBS=$LIBS
5770 ac_cv_search_opendir=no
5771 cat >conftest.$ac_ext <<_ACEOF
5772 #line $LINENO "configure"
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5779 /* Override any gcc2 internal prototype to avoid an error. */
5783 /* We use char because int might match the return type of a gcc2
5784 builtin and then its argument prototype would still apply. */
5794 rm -f conftest.$ac_objext conftest$ac_exeext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5796 (eval $ac_link) 2>&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } &&
5800 { ac_try='test -s conftest$ac_exeext'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5806 ac_cv_search_opendir="none required"
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5813 if test "$ac_cv_search_opendir" = no; then
5815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5816 cat >conftest.$ac_ext <<_ACEOF
5817 #line $LINENO "configure"
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h. */
5824 /* Override any gcc2 internal prototype to avoid an error. */
5828 /* We use char because int might match the return type of a gcc2
5829 builtin and then its argument prototype would still apply. */
5839 rm -f conftest.$ac_objext conftest$ac_exeext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5841 (eval $ac_link) 2>&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -s conftest$ac_exeext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 ac_cv_search_opendir="-l$ac_lib"
5854 echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5861 LIBS=$ac_func_search_save_LIBS
5863 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5864 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5865 if test "$ac_cv_search_opendir" != no; then
5866 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5881 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
5883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5884 echo "$as_me:$LINENO: checking for $ac_func" >&5
5885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5886 if eval "test \"\${$as_ac_var+set}\" = set"; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 cat >conftest.$ac_ext <<_ACEOF
5890 #line $LINENO "configure"
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5896 /* System header to define __stub macros and hopefully few prototypes,
5897 which can conflict with char $ac_func (); below.
5898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5899 <limits.h> exists even on freestanding compilers. */
5901 # include <limits.h>
5903 # include <assert.h>
5905 /* Override any gcc2 internal prototype to avoid an error. */
5910 /* We use char because int might match the return type of a gcc2
5911 builtin and then its argument prototype would still apply. */
5913 /* The GNU C library defines this for functions which it implements
5914 to always fail with ENOSYS. Some functions are actually named
5915 something starting with __ and the normal name is an alias. */
5916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5919 char (*f) () = $ac_func;
5928 return f != $ac_func;
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935 (eval $ac_link) 2>&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } &&
5939 { ac_try='test -s conftest$ac_exeext'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5945 eval "$as_ac_var=yes"
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5950 eval "$as_ac_var=no"
5952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5956 if test `eval echo '${'$as_ac_var'}'` = yes; then
5957 cat >>confdefs.h <<_ACEOF
5958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5965 for ac_func in nanosleep
5967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5968 echo "$as_me:$LINENO: checking for $ac_func" >&5
5969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5970 if eval "test \"\${$as_ac_var+set}\" = set"; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 cat >conftest.$ac_ext <<_ACEOF
5974 #line $LINENO "configure"
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 /* System header to define __stub macros and hopefully few prototypes,
5981 which can conflict with char $ac_func (); below.
5982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5983 <limits.h> exists even on freestanding compilers. */
5985 # include <limits.h>
5987 # include <assert.h>
5989 /* Override any gcc2 internal prototype to avoid an error. */
5994 /* We use char because int might match the return type of a gcc2
5995 builtin and then its argument prototype would still apply. */
5997 /* The GNU C library defines this for functions which it implements
5998 to always fail with ENOSYS. Some functions are actually named
5999 something starting with __ and the normal name is an alias. */
6000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6003 char (*f) () = $ac_func;
6012 return f != $ac_func;
6017 rm -f conftest.$ac_objext conftest$ac_exeext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019 (eval $ac_link) 2>&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -s conftest$ac_exeext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 eval "$as_ac_var=yes"
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 eval "$as_ac_var=no"
6036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6039 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6040 if test `eval echo '${'$as_ac_var'}'` = yes; then
6041 cat >>confdefs.h <<_ACEOF
6042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6050 for ac_header in varargs.h
6052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6054 echo "$as_me:$LINENO: checking for $ac_header" >&5
6055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6062 # Is the header compilable?
6063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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. */
6072 $ac_includes_default
6073 #include <$ac_header>
6075 rm -f conftest.$ac_objext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077 (eval $ac_compile) 2>&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } &&
6081 { ac_try='test -s conftest.$ac_objext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_header_compiler=yes
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6092 ac_header_compiler=no
6094 rm -f conftest.$ac_objext conftest.$ac_ext
6095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6096 echo "${ECHO_T}$ac_header_compiler" >&6
6098 # Is the header present?
6099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6101 cat >conftest.$ac_ext <<_ACEOF
6102 #line $LINENO "configure"
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 #include <$ac_header>
6110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6113 grep -v '^ *+' conftest.er1 >conftest.err
6115 cat conftest.err >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } >/dev/null; then
6118 if test -s conftest.err; then
6119 ac_cpp_err=$ac_c_preproc_warn_flag
6126 if test -z "$ac_cpp_err"; then
6127 ac_header_preproc=yes
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6132 ac_header_preproc=no
6134 rm -f conftest.err conftest.$ac_ext
6135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6136 echo "${ECHO_T}$ac_header_preproc" >&6
6138 # So? What about this header?
6139 case $ac_header_compiler:$ac_header_preproc in
6141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6147 ## ------------------------------------ ##
6148 ## Report this to bug-autoconf@gnu.org. ##
6149 ## ------------------------------------ ##
6152 sed "s/^/$as_me: WARNING: /" >&2
6155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6163 ## ------------------------------------ ##
6164 ## Report this to bug-autoconf@gnu.org. ##
6165 ## ------------------------------------ ##
6168 sed "s/^/$as_me: WARNING: /" >&2
6171 echo "$as_me:$LINENO: checking for $ac_header" >&5
6172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 eval "$as_ac_Header=$ac_header_preproc"
6178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6183 cat >>confdefs.h <<_ACEOF
6184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6192 # End of readline stuff
6193 # -----------------------------------------------------------------------
6196 # ---------------------------------------------------
6197 # Check for GMP support/directory
6198 # ---------------------------------------------------
6202 # [ --with-gmp[=DIR] Specify gmp library directory],
6204 # case "$with_gmp" in
6207 # if test "$with_gmp" != "yes"; then
6208 # GMP_INC="-I$with_gmp"
6210 # GMP_LDFLAGS="-L$with_gmp"
6212 # with_gmp="/usr/include"
6214 # AC_CHECK_HEADER($with_gmp/gmp.h,
6215 # [ AC_MSG_RESULT(yes)
6216 # AC_DEFINE(HAVE_GMP)
6220 # [ AC_MSG_ERROR([*** gmp library missing])
6226 # # check for standard gmp library
6227 # AC_CHECK_HEADER(/usr/include/gmp.h,
6228 # [ AC_MSG_RESULT(yes)
6229 # AC_DEFINE(HAVE_GMP)
6234 # # Did not find standard library, so use our own
6235 # AC_MSG_RESULT(yes)
6236 # AC_DEFINE(HAVE_GMP)
6239 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6241 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6242 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6248 #AC_SUBST(GMP_LDFLAGS)
6252 # -----------------------------------------------------------------------
6255 # ---------------------------------------------------
6256 # Check for CWEB support/directory
6257 # ---------------------------------------------------
6262 # [ --with-cweb[=DIR] Specify cweb library directory],
6264 # case "$with_cweb" in
6267 # if test "$with_cweb" != "yes"; then
6268 # CWEB_INC="-I$with_cweb"
6269 # CWEB_LIBS="-lcweb"
6270 # CWEB_LDFLAGS="-L$with_cweb"
6272 # with_cweb="/usr/include"
6274 # AC_CHECK_HEADER($with_cweb/cweb.h,
6275 # [ AC_MSG_RESULT(yes)
6276 # AC_DEFINE(HAVE_CWEB)
6277 # CWEB_LIBS="-lcweb"
6280 # [ AC_MSG_ERROR([*** cweb library missing])
6286 # # check for standard cweb library
6287 # AC_CHECK_HEADER(/usr/include/cweb.h,
6288 # [ AC_MSG_RESULT(yes)
6289 # AC_DEFINE(HAVE_CWEB)
6292 # CWEB_LIBS="-lcweb"
6294 # # Did not find starndard library, so use our own
6295 # AC_MSG_RESULT(yes)
6296 # AC_DEFINE(HAVE_CWEB)
6299 # CWEB=${TOP_DIR}/depkgs/cweb
6300 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6301 # CWEB_LIBS="-lcweb"
6302 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6303 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6309 #AC_SUBST(CWEB_LIBS)
6310 #AC_SUBST(CWEB_LDFLAGS)
6314 # -----------------------------------------------------------------------
6318 # -----------------------------------------------------------
6319 # Check whether user wants TCP wrappers support (default off)
6320 # -----------------------------------------------------------
6323 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6324 if test "${with_tcp_wrappers+set}" = set; then
6325 withval="$with_tcp_wrappers"
6327 if test "x$withval" != "xno" ; then
6329 LIBS="$LIBS -lwrap -lnsl"
6330 echo "$as_me:$LINENO: checking for libwrap" >&5
6331 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6332 cat >conftest.$ac_ext <<_ACEOF
6333 #line $LINENO "configure"
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6340 int deny_severity = 0;
6341 int allow_severity = 0;
6342 struct request_info *req;
6351 rm -f conftest.$ac_objext conftest$ac_exeext
6352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6353 (eval $ac_link) 2>&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } &&
6357 { ac_try='test -s conftest$ac_exeext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6364 echo "$as_me:$LINENO: result: yes" >&5
6365 echo "${ECHO_T}yes" >&6
6366 cat >>confdefs.h <<\_ACEOF
6367 #define HAVE_LIBWRAP 1
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6376 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6377 echo "$as_me: error: *** libwrap missing" >&2;}
6378 { (exit 1); exit 1; }; }
6381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6387 # ------------------------------------------
6388 # Where to place working dir
6389 # ------------------------------------------
6390 working_dir=`eval echo ${sysconfdir}/working`
6392 # Check whether --with-working-dir or --without-working-dir was given.
6393 if test "${with_working_dir+set}" = set; then
6394 withval="$with_working_dir"
6396 if test "x$withval" != "xno" ; then
6397 working_dir=$withval
6406 # ------------------------------------------
6407 # Where to place scriptdir (script files)
6408 # ------------------------------------------
6409 scriptdir=`eval echo ${sysconfdir}`
6411 # Check whether --with-scriptdir or --without-scriptdir was given.
6412 if test "${with_scriptdir+set}" = set; then
6413 withval="$with_scriptdir"
6415 if test "x$withval" != "xno" ; then
6425 # ------------------------------------------
6426 # Where to send dump email
6427 # ------------------------------------------
6428 dump_email=root@localhost
6430 # Check whether --with-dump-email or --without-dump-email was given.
6431 if test "${with_dump_email+set}" = set; then
6432 withval="$with_dump_email"
6434 if test "x$withval" != "xno" ; then
6443 # ------------------------------------------
6444 # Where to send job email
6445 # ------------------------------------------
6446 job_email=root@localhost
6448 # Check whether --with-job-email or --without-job-email was given.
6449 if test "${with_job_email+set}" = set; then
6450 withval="$with_job_email"
6452 if test "x$withval" != "xno" ; then
6461 # ------------------------------------------
6462 # Where to find smtp host
6463 # ------------------------------------------
6466 # Check whether --with-smtp_host or --without-smtp_host was given.
6467 if test "${with_smtp_host+set}" = set; then
6468 withval="$with_smtp_host"
6470 if test "x$withval" != "xno" ; then
6480 # ------------------------------------
6481 # Where to place pid files
6482 # ------------------------------------
6485 # Check whether --with-pid-dir or --without-pid-dir was given.
6486 if test "${with_pid_dir+set}" = set; then
6487 withval="$with_pid_dir"
6489 if test "x$withval" != "xno" ; then
6496 cat >>confdefs.h <<_ACEOF
6497 #define _PATH_BACULA_PIDDIR "$piddir"
6503 # ------------------------------------
6504 # Where to place subsys "lock file"
6505 # ------------------------------------
6506 subsysdir=/var/run/subsys
6508 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6509 if test "${with_subsys_dir+set}" = set; then
6510 withval="$with_subsys_dir"
6512 if test "x$withval" != "xno" ; then
6523 # ------------------------------------
6524 # Where to start assigning ports
6525 # ------------------------------------
6528 # Check whether --with-baseport or --without-baseport was given.
6529 if test "${with_baseport+set}" = set; then
6530 withval="$with_baseport"
6532 if test "x$withval" != "xno" ; then
6540 dir_port=`expr $baseport`
6541 fd_port=`expr $baseport + 1`
6542 sd_port=`expr $fd_port + 1`
6549 # ------------------------------------------
6550 # Generate passwords
6551 # ------------------------------------------
6554 # Check whether --with-dir-password or --without-dir-password was given.
6555 if test "${with_dir_password+set}" = set; then
6556 withval="$with_dir_password"
6558 if test "x$withval" != "xno" ; then
6559 dir_password=$withval
6565 if test "x$dir_password" = "x" ; then
6566 if test "x$OPENSSL" = "xnone" ; then
6567 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6568 key=`autoconf/randpass 33`
6570 key=`openssl rand -base64 33`
6577 # Check whether --with-fd-password or --without-fd-password was given.
6578 if test "${with_fd_password+set}" = set; then
6579 withval="$with_fd_password"
6581 if test "x$withval" != "xno" ; then
6582 fd_password=$withval
6588 if test "x$fd_password" = "x" ; then
6589 if test "x$OPENSSL" = "xnone" ; then
6590 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6591 key=`autoconf/randpass 37`
6593 key=`openssl rand -base64 33`
6600 # Check whether --with-sd-password or --without-sd-password was given.
6601 if test "${with_sd_password+set}" = set; then
6602 withval="$with_sd_password"
6604 if test "x$withval" != "xno" ; then
6605 sd_password=$withval
6611 if test "x$sd_password" = "x" ; then
6612 if test "x$OPENSSL" = "xnone" ; then
6613 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6614 key=`autoconf/randpass 41`
6616 key=`openssl rand -base64 33`
6629 # ------------------------------------------------
6630 # Bacula check for various SQL database engines
6631 # ------------------------------------------------
6634 echo "$as_me:$LINENO: checking for MySQL support" >&5
6635 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
6637 # Check whether --with-mysql or --without-mysql was given.
6638 if test "${with_mysql+set}" = set; then
6639 withval="$with_mysql"
6641 if test "$withval" != "no"; then
6642 if test "$withval" = "yes"; then
6643 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6644 MYSQL_INCDIR=/usr/local/mysql/include/mysql
6645 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6646 MYSQL_BINDIR=/usr/local/mysql/bin
6647 elif test -f /usr/include/mysql/mysql.h; then
6648 MYSQL_INCDIR=/usr/include/mysql
6649 MYSQL_LIBDIR=/usr/lib/mysql
6650 MYSQL_BINDIR=/usr/bin
6651 elif test -f /usr/include/mysql.h; then
6652 MYSQL_INCDIR=/usr/include
6653 MYSQL_LIBDIR=/usr/lib
6654 MYSQL_BINDIR=/usr/bin
6655 elif test -f /usr/local/include/mysql/mysql.h; then
6656 MYSQL_INCDIR=/usr/local/include/mysql
6657 MYSQL_LIBDIR=/usr/local/lib/mysql
6658 MYSQL_BINDIR=/usr/local/bin
6659 elif test -f /usr/local/include/mysql.h; then
6660 MYSQL_INCDIR=/usr/local/include
6661 MYSQL_LIBDIR=/usr/local/lib
6662 MYSQL_BINDIR=/usr/local/bin
6664 echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6
6666 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6667 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6668 { (exit 1); exit 1; }; }
6671 if test -f $withval/include/mysql/mysql.h; then
6672 MYSQL_INCDIR=$withval/include/mysql
6673 MYSQL_LIBDIR=$withval/lib/mysql
6674 MYSQL_BINDIR=$withval/bin
6675 elif test -f $withval/include/mysql.h; then
6676 MYSQL_INCDIR=$withval/include
6677 MYSQL_LIBDIR=$withval/lib
6678 MYSQL_BINDIR=$withval/bin
6680 echo "$as_me:$LINENO: result: no" >&5
6681 echo "${ECHO_T}no" >&6
6682 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6683 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6684 { (exit 1); exit 1; }; }
6687 SQL_INCLUDE=-I$MYSQL_INCDIR
6688 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
6689 SQL_BINDIR=$MYSQL_BINDIR
6691 cat >>confdefs.h <<\_ACEOF
6692 #define HAVE_MYSQL 1
6695 echo "$as_me:$LINENO: result: yes" >&5
6696 echo "${ECHO_T}yes" >&6
6703 echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6
6709 echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6
6715 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
6716 if test "${with_embedded_mysql+set}" = set; then
6717 withval="$with_embedded_mysql"
6719 if test "$withval" != "no"; then
6720 if test "$withval" = "yes"; then
6721 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6722 MYSQL_INCDIR=/usr/local/mysql/include/mysql
6723 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6724 MYSQL_BINDIR=/usr/local/mysql/bin
6725 elif test -f /usr/include/mysql/mysql.h; then
6726 MYSQL_INCDIR=/usr/include/mysql
6727 MYSQL_LIBDIR=/usr/lib/mysql
6728 MYSQL_BINDIR=/usr/bin
6729 elif test -f /usr/include/mysql.h; then
6730 MYSQL_INCDIR=/usr/include
6731 MYSQL_LIBDIR=/usr/lib
6732 MYSQL_BINDIR=/usr/bin
6733 elif test -f /usr/local/include/mysql/mysql.h; then
6734 MYSQL_INCDIR=/usr/local/include/mysql
6735 MYSQL_LIBDIR=/usr/local/lib/mysql
6736 MYSQL_BINDIR=/usr/local/bin
6737 elif test -f /usr/local/include/mysql.h; then
6738 MYSQL_INCDIR=/usr/local/include
6739 MYSQL_LIBDIR=/usr/local/lib
6740 MYSQL_BINDIR=/usr/local/bin
6742 echo "$as_me:$LINENO: result: no" >&5
6743 echo "${ECHO_T}no" >&6
6744 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6745 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6746 { (exit 1); exit 1; }; }
6749 if test -f $withval/include/mysql/mysql.h; then
6750 MYSQL_INCDIR=$withval/include/mysql
6751 MYSQL_LIBDIR=$withval/lib/mysql
6752 MYSQL_BINDIR=$withval/bin
6753 elif test -f $withval/include/mysql.h; then
6754 MYSQL_INCDIR=$withval/include
6755 MYSQL_LIBDIR=$withval/lib
6756 MYSQL_BINDIR=$withval/bin
6758 echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6
6760 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6761 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6762 { (exit 1); exit 1; }; }
6765 SQL_INCLUDE=-I$MYSQL_INCDIR
6766 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
6767 SQL_BINDIR=$MYSQL_BINDIR
6769 cat >>confdefs.h <<\_ACEOF
6770 #define HAVE_MYSQL 1
6773 cat >>confdefs.h <<\_ACEOF
6774 #define HAVE_EMBEDDED_MYSQL 1
6777 echo "$as_me:$LINENO: result: yes" >&5
6778 echo "${ECHO_T}yes" >&6
6785 echo "$as_me:$LINENO: result: no" >&5
6786 echo "${ECHO_T}no" >&6
6791 echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6
6804 # ------------------------------------------------
6805 # Bacula check for various SQL database engines
6806 # ------------------------------------------------
6809 echo "$as_me:$LINENO: checking for SQLite support" >&5
6810 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
6812 # Check whether --with-sqlite or --without-sqlite was given.
6813 if test "${with_sqlite+set}" = set; then
6814 withval="$with_sqlite"
6816 if test "$withval" != "no"; then
6817 if test "$withval" = "yes"; then
6818 if test -f /usr/local/include/sqlite.h; then
6819 SQLITE_INCDIR=/usr/local/include
6820 SQLITE_LIBDIR=/usr/local/lib
6821 SQLITE_BINDIR=/usr/local/bin
6822 elif test -f /usr/include/sqlite.h; then
6823 SQLITE_INCDIR=/usr/include
6824 SQLITE_LIBDIR=/usr/lib
6825 SQLITE_BINDIR=/usr/bin
6827 echo "$as_me:$LINENO: result: no" >&5
6828 echo "${ECHO_T}no" >&6
6829 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
6830 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
6831 { (exit 1); exit 1; }; }
6834 if test -f $withval/sqlite.h; then
6835 SQLITE_INCDIR=$withval
6836 SQLITE_LIBDIR=$withval
6837 SQLITE_BINDIR=$withval
6839 echo "$as_me:$LINENO: result: no" >&5
6840 echo "${ECHO_T}no" >&6
6841 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
6842 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
6843 { (exit 1); exit 1; }; }
6846 SQL_INCLUDE=-I$SQLITE_INCDIR
6847 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
6848 SQL_BINDIR=$SQLITE_BINDIR
6850 cat >>confdefs.h <<\_ACEOF
6851 #define HAVE_SQLITE 1
6854 echo "$as_me:$LINENO: result: yes" >&5
6855 echo "${ECHO_T}yes" >&6
6862 echo "$as_me:$LINENO: result: no" >&5
6863 echo "${ECHO_T}no" >&6
6868 echo "$as_me:$LINENO: result: no" >&5
6869 echo "${ECHO_T}no" >&6
6881 cat >>confdefs.h <<\_ACEOF
6882 #define PROTOTYPES 1
6886 if test -z "$CFLAGS"; then
6887 if test -z "$CCOPTS"; then
6896 largefile_support="no"
6898 # Check whether --enable-largefile or --disable-largefile was given.
6899 if test "${enable_largefile+set}" = set; then
6900 enableval="$enable_largefile"
6903 if test "$enable_largefile" != no; then
6904 if test -n "$ac_tool_prefix"; then
6905 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
6906 set dummy ${ac_tool_prefix}getconf; ac_word=$2
6907 echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6909 if test "${ac_cv_prog_GETCONF+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 if test -n "$GETCONF"; then
6913 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6922 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
6923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 GETCONF=$ac_cv_prog_GETCONF
6932 if test -n "$GETCONF"; then
6933 echo "$as_me:$LINENO: result: $GETCONF" >&5
6934 echo "${ECHO_T}$GETCONF" >&6
6936 echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6
6941 if test -z "$ac_cv_prog_GETCONF"; then
6942 ac_ct_GETCONF=$GETCONF
6943 # Extract the first word of "getconf", so it can be a program name with args.
6944 set dummy getconf; ac_word=$2
6945 echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6947 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6950 if test -n "$ac_ct_GETCONF"; then
6951 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6960 ac_cv_prog_ac_ct_GETCONF="getconf"
6961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
6970 if test -n "$ac_ct_GETCONF"; then
6971 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
6972 echo "${ECHO_T}$ac_ct_GETCONF" >&6
6974 echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6
6978 GETCONF=$ac_ct_GETCONF
6980 GETCONF="$ac_cv_prog_GETCONF"
6983 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
6984 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
6985 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
6989 ac_cv_sys_largefile_CFLAGS=no
6991 # IRIX 6.2 and later require cc -n32.
6992 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
6993 if test "$GCC" != yes; then
6994 ac_cv_sys_largefile_CFLAGS=-n32
6997 CC="$CC $ac_cv_sys_largefile_CFLAGS"
6998 cat >conftest.$ac_ext <<_ACEOF
6999 #line $LINENO "configure"
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7014 rm -f conftest.$ac_objext conftest$ac_exeext
7015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7016 (eval $ac_link) 2>&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try='test -s conftest$ac_exeext'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; }; then
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7031 ac_cv_sys_largefile_CFLAGS=no
7033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7038 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7039 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7040 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7041 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7042 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7046 ac_cv_sys_largefile_LDFLAGS=no
7050 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7051 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7052 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7053 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7054 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7058 ac_cv_sys_largefile_LIBS=no
7062 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7063 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7065 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7068 -D_FILE_OFFSET_BITS=*) ;;
7069 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7070 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7076 '') CPPFLAGS="$ac_flag" ;;
7077 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7085 '') CFLAGS="$ac_flag" ;;
7086 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7091 case "$ac_cv_sys_largefile_LDFLAGS" in
7095 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7096 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7099 case "$ac_cv_sys_largefile_LIBS" in
7103 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7104 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7107 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7108 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7109 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 ac_cv_sys_file_offset_bits=no
7114 # HP-UX 10.20 and later
7115 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7116 ac_cv_sys_file_offset_bits=64 ;;
7118 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7120 -D_FILE_OFFSET_BITS)
7121 ac_cv_sys_file_offset_bits=1 ;;
7122 -D_FILE_OFFSET_BITS=*)
7123 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7128 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7129 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7130 if test "$ac_cv_sys_file_offset_bits" != no; then
7132 cat >>confdefs.h <<_ACEOF
7133 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7137 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7138 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7139 if test "${ac_cv_sys_largefile_source+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 ac_cv_sys_largefile_source=no
7144 # HP-UX 10.20 and later
7145 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7146 ac_cv_sys_largefile_source=1 ;;
7148 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7150 -D_LARGEFILE_SOURCE)
7151 ac_cv_sys_largefile_source=1 ;;
7152 -D_LARGEFILE_SOURCE=*)
7153 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7158 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7159 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7160 if test "$ac_cv_sys_largefile_source" != no; then
7162 cat >>confdefs.h <<_ACEOF
7163 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7167 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7168 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7169 if test "${ac_cv_sys_large_files+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 ac_cv_sys_large_files=no
7175 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7176 ac_cv_sys_large_files=1 ;;
7178 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7181 ac_cv_sys_large_files=1 ;;
7183 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7188 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7189 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7190 if test "$ac_cv_sys_large_files" != no; then
7192 cat >>confdefs.h <<_ACEOF
7193 #define _LARGE_FILES $ac_cv_sys_large_files
7201 echo "$as_me:$LINENO: checking for X" >&5
7202 echo $ECHO_N "checking for X... $ECHO_C" >&6
7205 # Check whether --with-x or --without-x was given.
7206 if test "${with_x+set}" = set; then
7210 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7211 if test "x$with_x" = xno; then
7212 # The user explicitly disabled X.
7215 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7216 # Both variables are already set.
7219 if test "${ac_cv_have_x+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 # One or both of the vars are not set, and there is no cached value.
7223 ac_x_includes=no ac_x_libraries=no
7225 if mkdir conftest.dir; then
7227 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7228 cat >Imakefile <<'_ACEOF'
7230 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7232 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7233 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7234 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7235 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7236 for ac_extension in a so sl; do
7237 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7238 test -f $ac_im_libdir/libX11.$ac_extension; then
7239 ac_im_usrlibdir=$ac_im_libdir; break
7242 # Screen out bogus values from the imake configuration. They are
7243 # bogus both because they are the default anyway, and because
7244 # using them would break gcc on systems where it needs fixed includes.
7245 case $ac_im_incroot in
7247 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7249 case $ac_im_usrlibdir in
7251 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7258 # Standard set of common directories for X headers.
7259 # Check X11 before X11Rn because it is often a symlink to the current release.
7271 /usr/local/X11/include
7272 /usr/local/X11R6/include
7273 /usr/local/X11R5/include
7274 /usr/local/X11R4/include
7276 /usr/local/include/X11
7277 /usr/local/include/X11R6
7278 /usr/local/include/X11R5
7279 /usr/local/include/X11R4
7283 /usr/XFree86/include/X11
7287 /usr/unsupported/include
7289 /usr/local/x11r5/include
7290 /usr/lpp/Xamples/include
7292 /usr/openwin/include
7293 /usr/openwin/share/include'
7295 if test "$ac_x_includes" = no; then
7296 # Guess where to find include files, by looking for Intrinsic.h.
7297 # First, try using that file with no special directory specified.
7298 cat >conftest.$ac_ext <<_ACEOF
7299 #line $LINENO "configure"
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7305 #include <X11/Intrinsic.h>
7307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7310 grep -v '^ *+' conftest.er1 >conftest.err
7312 cat conftest.err >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } >/dev/null; then
7315 if test -s conftest.err; then
7316 ac_cpp_err=$ac_c_preproc_warn_flag
7323 if test -z "$ac_cpp_err"; then
7324 # We can compile using X headers with no special include directory.
7327 echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7330 for ac_dir in $ac_x_header_dirs; do
7331 if test -r "$ac_dir/X11/Intrinsic.h"; then
7332 ac_x_includes=$ac_dir
7337 rm -f conftest.err conftest.$ac_ext
7338 fi # $ac_x_includes = no
7340 if test "$ac_x_libraries" = no; then
7341 # Check for the libraries.
7342 # See if we find them without any special options.
7343 # Don't add to $LIBS permanently.
7346 cat >conftest.$ac_ext <<_ACEOF
7347 #line $LINENO "configure"
7350 cat confdefs.h >>conftest.$ac_ext
7351 cat >>conftest.$ac_ext <<_ACEOF
7352 /* end confdefs.h. */
7353 #include <X11/Intrinsic.h>
7362 rm -f conftest.$ac_objext conftest$ac_exeext
7363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7364 (eval $ac_link) 2>&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } &&
7368 { ac_try='test -s conftest$ac_exeext'
7369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); }; }; then
7375 # We can link X programs with no special library path.
7378 echo "$as_me: failed program was:" >&5
7379 sed 's/^/| /' conftest.$ac_ext >&5
7382 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7384 # Don't even attempt the hair of trying to link an X program!
7385 for ac_extension in a so sl; do
7386 if test -r $ac_dir/libXt.$ac_extension; then
7387 ac_x_libraries=$ac_dir
7393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7394 fi # $ac_x_libraries = no
7396 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7397 # Didn't find X anywhere. Cache the known absence of X.
7398 ac_cv_have_x="have_x=no"
7400 # Record where we found X for the cache.
7401 ac_cv_have_x="have_x=yes \
7402 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7407 eval "$ac_cv_have_x"
7410 if test "$have_x" != yes; then
7411 echo "$as_me:$LINENO: result: $have_x" >&5
7412 echo "${ECHO_T}$have_x" >&6
7415 # If each of the values was on the command line, it overrides each guess.
7416 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7417 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7418 # Update the cache value to reflect the command line values.
7419 ac_cv_have_x="have_x=yes \
7420 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7421 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7422 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7425 if test "$no_x" = yes; then
7426 # Not all programs may use this symbol, but it does not hurt to define it.
7428 cat >>confdefs.h <<\_ACEOF
7429 #define X_DISPLAY_MISSING 1
7432 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7434 if test -n "$x_includes"; then
7435 X_CFLAGS="$X_CFLAGS -I$x_includes"
7438 # It would also be nice to do this for all -L options, not just this one.
7439 if test -n "$x_libraries"; then
7440 X_LIBS="$X_LIBS -L$x_libraries"
7441 # For Solaris; some versions of Sun CC require a space after -R and
7442 # others require no space. Words are not sufficient . . . .
7443 case `(uname -sr) 2>/dev/null` in
7445 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7446 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7447 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7448 cat >conftest.$ac_ext <<_ACEOF
7449 #line $LINENO "configure"
7452 cat confdefs.h >>conftest.$ac_ext
7453 cat >>conftest.$ac_ext <<_ACEOF
7454 /* end confdefs.h. */
7464 rm -f conftest.$ac_objext conftest$ac_exeext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7466 (eval $ac_link) 2>&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try='test -s conftest$ac_exeext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7484 if test $ac_R_nospace = yes; then
7485 echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6
7487 X_LIBS="$X_LIBS -R$x_libraries"
7489 LIBS="$ac_xsave_LIBS -R $x_libraries"
7490 cat >conftest.$ac_ext <<_ACEOF
7491 #line $LINENO "configure"
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h. */
7506 rm -f conftest.$ac_objext conftest$ac_exeext
7507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7508 (eval $ac_link) 2>&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } &&
7512 { ac_try='test -s conftest$ac_exeext'
7513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); }; }; then
7520 echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7526 if test $ac_R_space = yes; then
7527 echo "$as_me:$LINENO: result: yes" >&5
7528 echo "${ECHO_T}yes" >&6
7529 X_LIBS="$X_LIBS -R $x_libraries"
7531 echo "$as_me:$LINENO: result: neither works" >&5
7532 echo "${ECHO_T}neither works" >&6
7539 # Check for system-dependent libraries X programs must link with.
7540 # Do this before checking for the system-independent R6 libraries
7541 # (-lICE), since we may need -lsocket or whatever for X linking.
7543 if test "$ISC" = yes; then
7544 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7546 # Martyn Johnson says this is needed for Ultrix, if the X
7547 # libraries were built with DECnet support. And Karl Berry says
7548 # the Alpha needs dnet_stub (dnet does not exist).
7549 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7550 cat >conftest.$ac_ext <<_ACEOF
7551 #line $LINENO "configure"
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7558 /* Override any gcc2 internal prototype to avoid an error. */
7562 /* We use char because int might match the return type of a gcc2
7563 builtin and then its argument prototype would still apply. */
7564 char XOpenDisplay ();
7573 rm -f conftest.$ac_objext conftest$ac_exeext
7574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7575 (eval $ac_link) 2>&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } &&
7579 { ac_try='test -s conftest$ac_exeext'
7580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }; }; then
7587 echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7590 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7591 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7592 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 ac_check_lib_save_LIBS=$LIBS
7597 cat >conftest.$ac_ext <<_ACEOF
7598 #line $LINENO "configure"
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7605 /* Override any gcc2 internal prototype to avoid an error. */
7609 /* We use char because int might match the return type of a gcc2
7610 builtin and then its argument prototype would still apply. */
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7622 (eval $ac_link) 2>&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } &&
7626 { ac_try='test -s conftest$ac_exeext'
7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; }; then
7632 ac_cv_lib_dnet_dnet_ntoa=yes
7634 echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7637 ac_cv_lib_dnet_dnet_ntoa=no
7639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7640 LIBS=$ac_check_lib_save_LIBS
7642 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7643 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7644 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7645 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7648 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7649 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7650 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7651 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 ac_check_lib_save_LIBS=$LIBS
7655 LIBS="-ldnet_stub $LIBS"
7656 cat >conftest.$ac_ext <<_ACEOF
7657 #line $LINENO "configure"
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7664 /* Override any gcc2 internal prototype to avoid an error. */
7668 /* We use char because int might match the return type of a gcc2
7669 builtin and then its argument prototype would still apply. */
7679 rm -f conftest.$ac_objext conftest$ac_exeext
7680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7681 (eval $ac_link) 2>&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } &&
7685 { ac_try='test -s conftest$ac_exeext'
7686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; }; then
7691 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7693 echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7696 ac_cv_lib_dnet_stub_dnet_ntoa=no
7698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7699 LIBS=$ac_check_lib_save_LIBS
7701 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7702 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7703 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7704 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7710 LIBS="$ac_xsave_LIBS"
7712 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7713 # to get the SysV transport functions.
7714 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7716 # The nsl library prevents programs from opening the X display
7717 # on Irix 5.2, according to T.E. Dickey.
7718 # The functions gethostbyname, getservbyname, and inet_addr are
7719 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7720 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7721 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7722 if test "${ac_cv_func_gethostbyname+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 cat >conftest.$ac_ext <<_ACEOF
7726 #line $LINENO "configure"
7729 cat confdefs.h >>conftest.$ac_ext
7730 cat >>conftest.$ac_ext <<_ACEOF
7731 /* end confdefs.h. */
7732 /* System header to define __stub macros and hopefully few prototypes,
7733 which can conflict with char gethostbyname (); below.
7734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7735 <limits.h> exists even on freestanding compilers. */
7737 # include <limits.h>
7739 # include <assert.h>
7741 /* Override any gcc2 internal prototype to avoid an error. */
7746 /* We use char because int might match the return type of a gcc2
7747 builtin and then its argument prototype would still apply. */
7748 char gethostbyname ();
7749 /* The GNU C library defines this for functions which it implements
7750 to always fail with ENOSYS. Some functions are actually named
7751 something starting with __ and the normal name is an alias. */
7752 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7755 char (*f) () = gethostbyname;
7764 return f != gethostbyname;
7769 rm -f conftest.$ac_objext conftest$ac_exeext
7770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7771 (eval $ac_link) 2>&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } &&
7775 { ac_try='test -s conftest$ac_exeext'
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7781 ac_cv_func_gethostbyname=yes
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7786 ac_cv_func_gethostbyname=no
7788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7790 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7791 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7793 if test $ac_cv_func_gethostbyname = no; then
7794 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7795 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7796 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 ac_check_lib_save_LIBS=$LIBS
7801 cat >conftest.$ac_ext <<_ACEOF
7802 #line $LINENO "configure"
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7809 /* Override any gcc2 internal prototype to avoid an error. */
7813 /* We use char because int might match the return type of a gcc2
7814 builtin and then its argument prototype would still apply. */
7815 char gethostbyname ();
7824 rm -f conftest.$ac_objext conftest$ac_exeext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7826 (eval $ac_link) 2>&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } &&
7830 { ac_try='test -s conftest$ac_exeext'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
7836 ac_cv_lib_nsl_gethostbyname=yes
7838 echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.$ac_ext >&5
7841 ac_cv_lib_nsl_gethostbyname=no
7843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7844 LIBS=$ac_check_lib_save_LIBS
7846 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7847 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7848 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7849 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7852 if test $ac_cv_lib_nsl_gethostbyname = no; then
7853 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7854 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7855 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7858 ac_check_lib_save_LIBS=$LIBS
7860 cat >conftest.$ac_ext <<_ACEOF
7861 #line $LINENO "configure"
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7868 /* Override any gcc2 internal prototype to avoid an error. */
7872 /* We use char because int might match the return type of a gcc2
7873 builtin and then its argument prototype would still apply. */
7874 char gethostbyname ();
7883 rm -f conftest.$ac_objext conftest$ac_exeext
7884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7885 (eval $ac_link) 2>&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } &&
7889 { ac_try='test -s conftest$ac_exeext'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7895 ac_cv_lib_bsd_gethostbyname=yes
7897 echo "$as_me: failed program was:" >&5
7898 sed 's/^/| /' conftest.$ac_ext >&5
7900 ac_cv_lib_bsd_gethostbyname=no
7902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7903 LIBS=$ac_check_lib_save_LIBS
7905 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7906 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7907 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7908 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7914 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7915 # socket/setsockopt and other routines are undefined under SCO ODT
7916 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7917 # on later versions), says Simon Leinen: it contains gethostby*
7918 # variants that don't use the name server (or something). -lsocket
7919 # must be given before -lnsl if both are needed. We assume that
7920 # if connect needs -lnsl, so does gethostbyname.
7921 echo "$as_me:$LINENO: checking for connect" >&5
7922 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7923 if test "${ac_cv_func_connect+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 cat >conftest.$ac_ext <<_ACEOF
7927 #line $LINENO "configure"
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h. */
7933 /* System header to define __stub macros and hopefully few prototypes,
7934 which can conflict with char connect (); below.
7935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7936 <limits.h> exists even on freestanding compilers. */
7938 # include <limits.h>
7940 # include <assert.h>
7942 /* Override any gcc2 internal prototype to avoid an error. */
7947 /* We use char because int might match the return type of a gcc2
7948 builtin and then its argument prototype would still apply. */
7950 /* The GNU C library defines this for functions which it implements
7951 to always fail with ENOSYS. Some functions are actually named
7952 something starting with __ and the normal name is an alias. */
7953 #if defined (__stub_connect) || defined (__stub___connect)
7956 char (*f) () = connect;
7965 return f != connect;
7970 rm -f conftest.$ac_objext conftest$ac_exeext
7971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7972 (eval $ac_link) 2>&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } &&
7976 { ac_try='test -s conftest$ac_exeext'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
7982 ac_cv_func_connect=yes
7984 echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7987 ac_cv_func_connect=no
7989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7991 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7992 echo "${ECHO_T}$ac_cv_func_connect" >&6
7994 if test $ac_cv_func_connect = no; then
7995 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7996 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7997 if test "${ac_cv_lib_socket_connect+set}" = set; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
8000 ac_check_lib_save_LIBS=$LIBS
8001 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8002 cat >conftest.$ac_ext <<_ACEOF
8003 #line $LINENO "configure"
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h. */
8010 /* Override any gcc2 internal prototype to avoid an error. */
8014 /* We use char because int might match the return type of a gcc2
8015 builtin and then its argument prototype would still apply. */
8025 rm -f conftest.$ac_objext conftest$ac_exeext
8026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8027 (eval $ac_link) 2>&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } &&
8031 { ac_try='test -s conftest$ac_exeext'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
8037 ac_cv_lib_socket_connect=yes
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8042 ac_cv_lib_socket_connect=no
8044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8045 LIBS=$ac_check_lib_save_LIBS
8047 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8048 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8049 if test $ac_cv_lib_socket_connect = yes; then
8050 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8055 # Guillermo Gomez says -lposix is necessary on A/UX.
8056 echo "$as_me:$LINENO: checking for remove" >&5
8057 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8058 if test "${ac_cv_func_remove+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 cat >conftest.$ac_ext <<_ACEOF
8062 #line $LINENO "configure"
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 /* System header to define __stub macros and hopefully few prototypes,
8069 which can conflict with char remove (); below.
8070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8071 <limits.h> exists even on freestanding compilers. */
8073 # include <limits.h>
8075 # include <assert.h>
8077 /* Override any gcc2 internal prototype to avoid an error. */
8082 /* We use char because int might match the return type of a gcc2
8083 builtin and then its argument prototype would still apply. */
8085 /* The GNU C library defines this for functions which it implements
8086 to always fail with ENOSYS. Some functions are actually named
8087 something starting with __ and the normal name is an alias. */
8088 #if defined (__stub_remove) || defined (__stub___remove)
8091 char (*f) () = remove;
8105 rm -f conftest.$ac_objext conftest$ac_exeext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107 (eval $ac_link) 2>&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try='test -s conftest$ac_exeext'
8112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; }; then
8117 ac_cv_func_remove=yes
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8122 ac_cv_func_remove=no
8124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8126 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8127 echo "${ECHO_T}$ac_cv_func_remove" >&6
8129 if test $ac_cv_func_remove = no; then
8130 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8131 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8132 if test "${ac_cv_lib_posix_remove+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8135 ac_check_lib_save_LIBS=$LIBS
8136 LIBS="-lposix $LIBS"
8137 cat >conftest.$ac_ext <<_ACEOF
8138 #line $LINENO "configure"
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8145 /* Override any gcc2 internal prototype to avoid an error. */
8149 /* We use char because int might match the return type of a gcc2
8150 builtin and then its argument prototype would still apply. */
8160 rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162 (eval $ac_link) 2>&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
8166 { ac_try='test -s conftest$ac_exeext'
8167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
8172 ac_cv_lib_posix_remove=yes
8174 echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8177 ac_cv_lib_posix_remove=no
8179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8180 LIBS=$ac_check_lib_save_LIBS
8182 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8183 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8184 if test $ac_cv_lib_posix_remove = yes; then
8185 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8190 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8191 echo "$as_me:$LINENO: checking for shmat" >&5
8192 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8193 if test "${ac_cv_func_shmat+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 cat >conftest.$ac_ext <<_ACEOF
8197 #line $LINENO "configure"
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h. */
8203 /* System header to define __stub macros and hopefully few prototypes,
8204 which can conflict with char shmat (); below.
8205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8206 <limits.h> exists even on freestanding compilers. */
8208 # include <limits.h>
8210 # include <assert.h>
8212 /* Override any gcc2 internal prototype to avoid an error. */
8217 /* We use char because int might match the return type of a gcc2
8218 builtin and then its argument prototype would still apply. */
8220 /* The GNU C library defines this for functions which it implements
8221 to always fail with ENOSYS. Some functions are actually named
8222 something starting with __ and the normal name is an alias. */
8223 #if defined (__stub_shmat) || defined (__stub___shmat)
8226 char (*f) () = shmat;
8240 rm -f conftest.$ac_objext conftest$ac_exeext
8241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8242 (eval $ac_link) 2>&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } &&
8246 { ac_try='test -s conftest$ac_exeext'
8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; }; then
8252 ac_cv_func_shmat=yes
8254 echo "$as_me: failed program was:" >&5
8255 sed 's/^/| /' conftest.$ac_ext >&5
8259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8261 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8262 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8264 if test $ac_cv_func_shmat = no; then
8265 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8266 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8267 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 ac_check_lib_save_LIBS=$LIBS
8272 cat >conftest.$ac_ext <<_ACEOF
8273 #line $LINENO "configure"
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h. */
8280 /* Override any gcc2 internal prototype to avoid an error. */
8284 /* We use char because int might match the return type of a gcc2
8285 builtin and then its argument prototype would still apply. */
8295 rm -f conftest.$ac_objext conftest$ac_exeext
8296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8297 (eval $ac_link) 2>&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } &&
8301 { ac_try='test -s conftest$ac_exeext'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307 ac_cv_lib_ipc_shmat=yes
8309 echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8312 ac_cv_lib_ipc_shmat=no
8314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8315 LIBS=$ac_check_lib_save_LIBS
8317 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8318 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8319 if test $ac_cv_lib_ipc_shmat = yes; then
8320 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8326 # Check for libraries that X11R6 Xt/Xaw programs need.
8327 ac_save_LDFLAGS=$LDFLAGS
8328 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8329 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8330 # check for ICE first), but we must link in the order -lSM -lICE or
8331 # we get undefined symbols. So assume we have SM if we have ICE.
8332 # These have to be linked with before -lX11, unlike the other
8333 # libraries we check for below, so use a different variable.
8334 # John Interrante, Karl Berry
8335 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8336 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8337 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8340 ac_check_lib_save_LIBS=$LIBS
8341 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8342 cat >conftest.$ac_ext <<_ACEOF
8343 #line $LINENO "configure"
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8350 /* Override any gcc2 internal prototype to avoid an error. */
8354 /* We use char because int might match the return type of a gcc2
8355 builtin and then its argument prototype would still apply. */
8356 char IceConnectionNumber ();
8360 IceConnectionNumber ();
8365 rm -f conftest.$ac_objext conftest$ac_exeext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8367 (eval $ac_link) 2>&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try='test -s conftest$ac_exeext'
8372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 ac_cv_lib_ICE_IceConnectionNumber=yes
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 ac_cv_lib_ICE_IceConnectionNumber=no
8384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8385 LIBS=$ac_check_lib_save_LIBS
8387 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8388 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8389 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8390 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8393 LDFLAGS=$ac_save_LDFLAGS
8445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8447 echo "$as_me:$LINENO: checking for $ac_header" >&5
8448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
8452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8455 # Is the header compilable?
8456 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8458 cat >conftest.$ac_ext <<_ACEOF
8459 #line $LINENO "configure"
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h. */
8465 $ac_includes_default
8466 #include <$ac_header>
8468 rm -f conftest.$ac_objext
8469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8470 (eval $ac_compile) 2>&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } &&
8474 { ac_try='test -s conftest.$ac_objext'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; }; then
8480 ac_header_compiler=yes
8482 echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8485 ac_header_compiler=no
8487 rm -f conftest.$ac_objext conftest.$ac_ext
8488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8489 echo "${ECHO_T}$ac_header_compiler" >&6
8491 # Is the header present?
8492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8494 cat >conftest.$ac_ext <<_ACEOF
8495 #line $LINENO "configure"
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8501 #include <$ac_header>
8503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8506 grep -v '^ *+' conftest.er1 >conftest.err
8508 cat conftest.err >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } >/dev/null; then
8511 if test -s conftest.err; then
8512 ac_cpp_err=$ac_c_preproc_warn_flag
8519 if test -z "$ac_cpp_err"; then
8520 ac_header_preproc=yes
8522 echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8525 ac_header_preproc=no
8527 rm -f conftest.err conftest.$ac_ext
8528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8529 echo "${ECHO_T}$ac_header_preproc" >&6
8531 # So? What about this header?
8532 case $ac_header_compiler:$ac_header_preproc in
8534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8540 ## ------------------------------------ ##
8541 ## Report this to bug-autoconf@gnu.org. ##
8542 ## ------------------------------------ ##
8545 sed "s/^/$as_me: WARNING: /" >&2
8548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8556 ## ------------------------------------ ##
8557 ## Report this to bug-autoconf@gnu.org. ##
8558 ## ------------------------------------ ##
8561 sed "s/^/$as_me: WARNING: /" >&2
8564 echo "$as_me:$LINENO: checking for $ac_header" >&5
8565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8569 eval "$as_ac_Header=$ac_header_preproc"
8571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8576 cat >>confdefs.h <<_ACEOF
8577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8584 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8585 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8586 if test "${ac_cv_header_stdc+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 cat >conftest.$ac_ext <<_ACEOF
8590 #line $LINENO "configure"
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8609 rm -f conftest.$ac_objext
8610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8611 (eval $ac_compile) 2>&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try='test -s conftest.$ac_objext'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8621 ac_cv_header_stdc=yes
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8626 ac_cv_header_stdc=no
8628 rm -f conftest.$ac_objext conftest.$ac_ext
8630 if test $ac_cv_header_stdc = yes; then
8631 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8632 cat >conftest.$ac_ext <<_ACEOF
8633 #line $LINENO "configure"
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8643 $EGREP "memchr" >/dev/null 2>&1; then
8646 ac_cv_header_stdc=no
8652 if test $ac_cv_header_stdc = yes; then
8653 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8654 cat >conftest.$ac_ext <<_ACEOF
8655 #line $LINENO "configure"
8658 cat confdefs.h >>conftest.$ac_ext
8659 cat >>conftest.$ac_ext <<_ACEOF
8660 /* end confdefs.h. */
8664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8665 $EGREP "free" >/dev/null 2>&1; then
8668 ac_cv_header_stdc=no
8674 if test $ac_cv_header_stdc = yes; then
8675 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8676 if test "$cross_compiling" = yes; then
8679 cat >conftest.$ac_ext <<_ACEOF
8680 #line $LINENO "configure"
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8687 #if ((' ' & 0x0FF) == 0x020)
8688 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8689 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8691 # define ISLOWER(c) \
8692 (('a' <= (c) && (c) <= 'i') \
8693 || ('j' <= (c) && (c) <= 'r') \
8694 || ('s' <= (c) && (c) <= 'z'))
8695 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8698 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8703 for (i = 0; i < 256; i++)
8704 if (XOR (islower (i), ISLOWER (i))
8705 || toupper (i) != TOUPPER (i))
8710 rm -f conftest$ac_exeext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712 (eval $ac_link) 2>&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); }; }; then
8723 echo "$as_me: program exited with status $ac_status" >&5
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8728 ac_cv_header_stdc=no
8730 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8734 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8735 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8736 if test $ac_cv_header_stdc = yes; then
8738 cat >>confdefs.h <<\_ACEOF
8739 #define STDC_HEADERS 1
8744 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
8745 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
8746 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8749 cat >conftest.$ac_ext <<_ACEOF
8750 #line $LINENO "configure"
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h. */
8756 #include <sys/types.h>
8760 return makedev(0, 0);
8765 rm -f conftest.$ac_objext conftest$ac_exeext
8766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8767 (eval $ac_link) 2>&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } &&
8771 { ac_try='test -s conftest$ac_exeext'
8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; }; then
8777 ac_cv_header_sys_types_h_makedev=yes
8779 echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8782 ac_cv_header_sys_types_h_makedev=no
8784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8787 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
8788 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
8790 if test $ac_cv_header_sys_types_h_makedev = no; then
8791 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8792 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8793 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8794 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8798 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8800 # Is the header compilable?
8801 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
8802 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
8803 cat >conftest.$ac_ext <<_ACEOF
8804 #line $LINENO "configure"
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8810 $ac_includes_default
8811 #include <sys/mkdev.h>
8813 rm -f conftest.$ac_objext
8814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8815 (eval $ac_compile) 2>&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); } &&
8819 { ac_try='test -s conftest.$ac_objext'
8820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; }; then
8825 ac_header_compiler=yes
8827 echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.$ac_ext >&5
8830 ac_header_compiler=no
8832 rm -f conftest.$ac_objext conftest.$ac_ext
8833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8834 echo "${ECHO_T}$ac_header_compiler" >&6
8836 # Is the header present?
8837 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
8838 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
8839 cat >conftest.$ac_ext <<_ACEOF
8840 #line $LINENO "configure"
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8846 #include <sys/mkdev.h>
8848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8851 grep -v '^ *+' conftest.er1 >conftest.err
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } >/dev/null; then
8856 if test -s conftest.err; then
8857 ac_cpp_err=$ac_c_preproc_warn_flag
8864 if test -z "$ac_cpp_err"; then
8865 ac_header_preproc=yes
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8870 ac_header_preproc=no
8872 rm -f conftest.err conftest.$ac_ext
8873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8874 echo "${ECHO_T}$ac_header_preproc" >&6
8876 # So? What about this header?
8877 case $ac_header_compiler:$ac_header_preproc in
8879 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
8880 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8881 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
8882 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
8885 ## ------------------------------------ ##
8886 ## Report this to bug-autoconf@gnu.org. ##
8887 ## ------------------------------------ ##
8890 sed "s/^/$as_me: WARNING: /" >&2
8893 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
8894 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
8895 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
8896 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
8897 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
8898 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
8901 ## ------------------------------------ ##
8902 ## Report this to bug-autoconf@gnu.org. ##
8903 ## ------------------------------------ ##
8906 sed "s/^/$as_me: WARNING: /" >&2
8909 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8910 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8911 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
8914 ac_cv_header_sys_mkdev_h=$ac_header_preproc
8916 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8917 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8920 if test $ac_cv_header_sys_mkdev_h = yes; then
8922 cat >>confdefs.h <<\_ACEOF
8923 #define MAJOR_IN_MKDEV 1
8930 if test $ac_cv_header_sys_mkdev_h = no; then
8931 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8932 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
8933 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
8934 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8937 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
8938 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
8940 # Is the header compilable?
8941 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
8942 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
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. */
8950 $ac_includes_default
8951 #include <sys/sysmacros.h>
8953 rm -f conftest.$ac_objext
8954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8955 (eval $ac_compile) 2>&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } &&
8959 { ac_try='test -s conftest.$ac_objext'
8960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); }; }; then
8965 ac_header_compiler=yes
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8970 ac_header_compiler=no
8972 rm -f conftest.$ac_objext conftest.$ac_ext
8973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8974 echo "${ECHO_T}$ac_header_compiler" >&6
8976 # Is the header present?
8977 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
8978 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
8979 cat >conftest.$ac_ext <<_ACEOF
8980 #line $LINENO "configure"
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8986 #include <sys/sysmacros.h>
8988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8991 grep -v '^ *+' conftest.er1 >conftest.err
8993 cat conftest.err >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); } >/dev/null; then
8996 if test -s conftest.err; then
8997 ac_cpp_err=$ac_c_preproc_warn_flag
9004 if test -z "$ac_cpp_err"; then
9005 ac_header_preproc=yes
9007 echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9010 ac_header_preproc=no
9012 rm -f conftest.err conftest.$ac_ext
9013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9014 echo "${ECHO_T}$ac_header_preproc" >&6
9016 # So? What about this header?
9017 case $ac_header_compiler:$ac_header_preproc in
9019 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9020 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9021 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9022 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9025 ## ------------------------------------ ##
9026 ## Report this to bug-autoconf@gnu.org. ##
9027 ## ------------------------------------ ##
9030 sed "s/^/$as_me: WARNING: /" >&2
9033 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9034 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9035 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9036 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9037 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9038 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9041 ## ------------------------------------ ##
9042 ## Report this to bug-autoconf@gnu.org. ##
9043 ## ------------------------------------ ##
9046 sed "s/^/$as_me: WARNING: /" >&2
9049 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9050 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9051 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9054 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9056 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9057 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9060 if test $ac_cv_header_sys_sysmacros_h = yes; then
9062 cat >>confdefs.h <<\_ACEOF
9063 #define MAJOR_IN_SYSMACROS 1
9078 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9079 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9080 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9081 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 cat >conftest.$ac_ext <<_ACEOF
9086 #line $LINENO "configure"
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9092 #include <sys/types.h>
9104 rm -f conftest.$ac_objext
9105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9106 (eval $ac_compile) 2>&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); } &&
9110 { ac_try='test -s conftest.$ac_objext'
9111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; }; then
9116 eval "$as_ac_Header=yes"
9118 echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.$ac_ext >&5
9121 eval "$as_ac_Header=no"
9123 rm -f conftest.$ac_objext conftest.$ac_ext
9125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9128 cat >>confdefs.h <<_ACEOF
9129 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9132 ac_header_dirent=$ac_hdr; break
9136 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9137 if test $ac_header_dirent = dirent.h; then
9138 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9139 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9140 if test "${ac_cv_search_opendir+set}" = set; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
9143 ac_func_search_save_LIBS=$LIBS
9144 ac_cv_search_opendir=no
9145 cat >conftest.$ac_ext <<_ACEOF
9146 #line $LINENO "configure"
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9153 /* Override any gcc2 internal prototype to avoid an error. */
9157 /* We use char because int might match the return type of a gcc2
9158 builtin and then its argument prototype would still apply. */
9168 rm -f conftest.$ac_objext conftest$ac_exeext
9169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9170 (eval $ac_link) 2>&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); } &&
9174 { ac_try='test -s conftest$ac_exeext'
9175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); }; }; then
9180 ac_cv_search_opendir="none required"
9182 echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9187 if test "$ac_cv_search_opendir" = no; then
9188 for ac_lib in dir; do
9189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
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. */
9198 /* Override any gcc2 internal prototype to avoid an error. */
9202 /* We use char because int might match the return type of a gcc2
9203 builtin and then its argument prototype would still apply. */
9213 rm -f conftest.$ac_objext conftest$ac_exeext
9214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9215 (eval $ac_link) 2>&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
9219 { ac_try='test -s conftest$ac_exeext'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 ac_cv_search_opendir="-l$ac_lib"
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9235 LIBS=$ac_func_search_save_LIBS
9237 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9238 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9239 if test "$ac_cv_search_opendir" != no; then
9240 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9245 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9246 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9247 if test "${ac_cv_search_opendir+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9250 ac_func_search_save_LIBS=$LIBS
9251 ac_cv_search_opendir=no
9252 cat >conftest.$ac_ext <<_ACEOF
9253 #line $LINENO "configure"
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h. */
9260 /* Override any gcc2 internal prototype to avoid an error. */
9264 /* We use char because int might match the return type of a gcc2
9265 builtin and then its argument prototype would still apply. */
9275 rm -f conftest.$ac_objext conftest$ac_exeext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9277 (eval $ac_link) 2>&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } &&
9281 { ac_try='test -s conftest$ac_exeext'
9282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); }; }; then
9287 ac_cv_search_opendir="none required"
9289 echo "$as_me: failed program was:" >&5
9290 sed 's/^/| /' conftest.$ac_ext >&5
9293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9294 if test "$ac_cv_search_opendir" = no; then
9296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9297 cat >conftest.$ac_ext <<_ACEOF
9298 #line $LINENO "configure"
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9305 /* Override any gcc2 internal prototype to avoid an error. */
9309 /* We use char because int might match the return type of a gcc2
9310 builtin and then its argument prototype would still apply. */
9320 rm -f conftest.$ac_objext conftest$ac_exeext
9321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9322 (eval $ac_link) 2>&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } &&
9326 { ac_try='test -s conftest$ac_exeext'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; }; then
9332 ac_cv_search_opendir="-l$ac_lib"
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9342 LIBS=$ac_func_search_save_LIBS
9344 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9345 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9346 if test "$ac_cv_search_opendir" != no; then
9347 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9353 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9354 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9355 if test "${ac_cv_header_stat_broken+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9358 cat >conftest.$ac_ext <<_ACEOF
9359 #line $LINENO "configure"
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9365 #include <sys/types.h>
9366 #include <sys/stat.h>
9368 #if defined(S_ISBLK) && defined(S_IFDIR)
9369 # if S_ISBLK (S_IFDIR)
9374 #if defined(S_ISBLK) && defined(S_IFCHR)
9375 # if S_ISBLK (S_IFCHR)
9380 #if defined(S_ISLNK) && defined(S_IFREG)
9381 # if S_ISLNK (S_IFREG)
9386 #if defined(S_ISSOCK) && defined(S_IFREG)
9387 # if S_ISSOCK (S_IFREG)
9393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9394 $EGREP "You lose" >/dev/null 2>&1; then
9395 ac_cv_header_stat_broken=yes
9397 ac_cv_header_stat_broken=no
9402 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9403 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
9404 if test $ac_cv_header_stat_broken = yes; then
9406 cat >>confdefs.h <<\_ACEOF
9407 #define STAT_MACROS_BROKEN 1
9412 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9413 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9414 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9417 cat >conftest.$ac_ext <<_ACEOF
9418 #line $LINENO "configure"
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9424 #include <sys/types.h>
9425 #include <sys/wait.h>
9427 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9430 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9438 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9443 rm -f conftest.$ac_objext
9444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9445 (eval $ac_compile) 2>&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } &&
9449 { ac_try='test -s conftest.$ac_objext'
9450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); }; }; then
9455 ac_cv_header_sys_wait_h=yes
9457 echo "$as_me: failed program was:" >&5
9458 sed 's/^/| /' conftest.$ac_ext >&5
9460 ac_cv_header_sys_wait_h=no
9462 rm -f conftest.$ac_objext conftest.$ac_ext
9464 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9465 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9466 if test $ac_cv_header_sys_wait_h = yes; then
9468 cat >>confdefs.h <<\_ACEOF
9469 #define HAVE_SYS_WAIT_H 1
9474 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9475 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9476 if test "${ac_cv_header_time+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 cat >conftest.$ac_ext <<_ACEOF
9480 #line $LINENO "configure"
9483 cat confdefs.h >>conftest.$ac_ext
9484 cat >>conftest.$ac_ext <<_ACEOF
9485 /* end confdefs.h. */
9486 #include <sys/types.h>
9487 #include <sys/time.h>
9493 if ((struct tm *) 0)
9499 rm -f conftest.$ac_objext
9500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9501 (eval $ac_compile) 2>&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } &&
9505 { ac_try='test -s conftest.$ac_objext'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; }; then
9511 ac_cv_header_time=yes
9513 echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9516 ac_cv_header_time=no
9518 rm -f conftest.$ac_objext conftest.$ac_ext
9520 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9521 echo "${ECHO_T}$ac_cv_header_time" >&6
9522 if test $ac_cv_header_time = yes; then
9524 cat >>confdefs.h <<\_ACEOF
9525 #define TIME_WITH_SYS_TIME 1
9531 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9532 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
9533 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 cat >conftest.$ac_ext <<_ACEOF
9537 #line $LINENO "configure"
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9543 $ac_includes_default
9547 static struct stat ac_aggr;
9548 if (ac_aggr.st_blksize)
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_cv_member_struct_stat_st_blksize=yes
9568 echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9571 cat >conftest.$ac_ext <<_ACEOF
9572 #line $LINENO "configure"
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9578 $ac_includes_default
9582 static struct stat ac_aggr;
9583 if (sizeof ac_aggr.st_blksize)
9589 rm -f conftest.$ac_objext
9590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9591 (eval $ac_compile) 2>&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); } &&
9595 { ac_try='test -s conftest.$ac_objext'
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; }; then
9601 ac_cv_member_struct_stat_st_blksize=yes
9603 echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9606 ac_cv_member_struct_stat_st_blksize=no
9608 rm -f conftest.$ac_objext conftest.$ac_ext
9610 rm -f conftest.$ac_objext conftest.$ac_ext
9612 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
9613 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
9614 if test $ac_cv_member_struct_stat_st_blksize = yes; then
9616 cat >>confdefs.h <<_ACEOF
9617 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9621 cat >>confdefs.h <<\_ACEOF
9622 #define HAVE_ST_BLKSIZE 1
9628 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
9629 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
9630 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 cat >conftest.$ac_ext <<_ACEOF
9634 #line $LINENO "configure"
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9640 $ac_includes_default
9644 static struct stat ac_aggr;
9645 if (ac_aggr.st_blocks)
9651 rm -f conftest.$ac_objext
9652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9653 (eval $ac_compile) 2>&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } &&
9657 { ac_try='test -s conftest.$ac_objext'
9658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); }; }; then
9663 ac_cv_member_struct_stat_st_blocks=yes
9665 echo "$as_me: failed program was:" >&5
9666 sed 's/^/| /' conftest.$ac_ext >&5
9668 cat >conftest.$ac_ext <<_ACEOF
9669 #line $LINENO "configure"
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h. */
9675 $ac_includes_default
9679 static struct stat ac_aggr;
9680 if (sizeof ac_aggr.st_blocks)
9686 rm -f conftest.$ac_objext
9687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9688 (eval $ac_compile) 2>&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try='test -s conftest.$ac_objext'
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; }; then
9698 ac_cv_member_struct_stat_st_blocks=yes
9700 echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9703 ac_cv_member_struct_stat_st_blocks=no
9705 rm -f conftest.$ac_objext conftest.$ac_ext
9707 rm -f conftest.$ac_objext conftest.$ac_ext
9709 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
9710 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
9711 if test $ac_cv_member_struct_stat_st_blocks = yes; then
9713 cat >>confdefs.h <<_ACEOF
9714 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9718 cat >>confdefs.h <<\_ACEOF
9719 #define HAVE_ST_BLOCKS 1
9723 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
9727 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9728 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9729 if test "${ac_cv_struct_tm+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 cat >conftest.$ac_ext <<_ACEOF
9733 #line $LINENO "configure"
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h. */
9739 #include <sys/types.h>
9745 struct tm *tp; tp->tm_sec;
9750 rm -f conftest.$ac_objext
9751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9752 (eval $ac_compile) 2>&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
9756 { ac_try='test -s conftest.$ac_objext'
9757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; }; then
9762 ac_cv_struct_tm=time.h
9764 echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9767 ac_cv_struct_tm=sys/time.h
9769 rm -f conftest.$ac_objext conftest.$ac_ext
9771 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9772 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9773 if test $ac_cv_struct_tm = sys/time.h; then
9775 cat >>confdefs.h <<\_ACEOF
9776 #define TM_IN_SYS_TIME 1
9781 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9782 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9783 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 cat >conftest.$ac_ext <<_ACEOF
9787 #line $LINENO "configure"
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 #include <sys/types.h>
9794 #include <$ac_cv_struct_tm>
9800 static struct tm ac_aggr;
9801 if (ac_aggr.tm_zone)
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809 (eval $ac_compile) 2>&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } &&
9813 { ac_try='test -s conftest.$ac_objext'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; }; then
9819 ac_cv_member_struct_tm_tm_zone=yes
9821 echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9824 cat >conftest.$ac_ext <<_ACEOF
9825 #line $LINENO "configure"
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 #include <sys/types.h>
9832 #include <$ac_cv_struct_tm>
9838 static struct tm ac_aggr;
9839 if (sizeof ac_aggr.tm_zone)
9845 rm -f conftest.$ac_objext
9846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9847 (eval $ac_compile) 2>&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } &&
9851 { ac_try='test -s conftest.$ac_objext'
9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; }; then
9857 ac_cv_member_struct_tm_tm_zone=yes
9859 echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9862 ac_cv_member_struct_tm_tm_zone=no
9864 rm -f conftest.$ac_objext conftest.$ac_ext
9866 rm -f conftest.$ac_objext conftest.$ac_ext
9868 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9869 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9870 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9872 cat >>confdefs.h <<_ACEOF
9873 #define HAVE_STRUCT_TM_TM_ZONE 1
9879 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9881 cat >>confdefs.h <<\_ACEOF
9882 #define HAVE_TM_ZONE 1
9886 echo "$as_me:$LINENO: checking for tzname" >&5
9887 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9888 if test "${ac_cv_var_tzname+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 cat >conftest.$ac_ext <<_ACEOF
9892 #line $LINENO "configure"
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9899 #ifndef tzname /* For SGI. */
9900 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9911 rm -f conftest.$ac_objext conftest$ac_exeext
9912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9913 (eval $ac_link) 2>&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } &&
9917 { ac_try='test -s conftest$ac_exeext'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 ac_cv_var_tzname=yes
9925 echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9932 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9933 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9934 if test $ac_cv_var_tzname = yes; then
9936 cat >>confdefs.h <<\_ACEOF
9937 #define HAVE_TZNAME 1
9944 echo "$as_me:$LINENO: checking for utime.h" >&5
9945 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
9946 if test "${ba_cv_header_utime_h+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 cat >conftest.$ac_ext <<_ACEOF
9950 #line $LINENO "configure"
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h. */
9957 #include <sys/types.h>
9967 rm -f conftest.$ac_objext
9968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9969 (eval $ac_compile) 2>&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try='test -s conftest.$ac_objext'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 ba_cv_header_utime_h=yes
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9984 ba_cv_header_utime_h=no
9986 rm -f conftest.$ac_objext conftest.$ac_ext
9988 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
9989 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
9990 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
9991 #define HAVE_UTIME_H 1
9995 echo "$as_me:$LINENO: checking for socklen_t" >&5
9996 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
9997 if test "${ba_cv_header_socklen_t+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 cat >conftest.$ac_ext <<_ACEOF
10001 #line $LINENO "configure"
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h. */
10008 #include <sys/types.h>
10009 #include <sys/socket.h>
10018 rm -f conftest.$ac_objext
10019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10020 (eval $ac_compile) 2>&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } &&
10024 { ac_try='test -s conftest.$ac_objext'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; }; then
10030 ba_cv_header_socklen_t=yes
10032 echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10035 ba_cv_header_socklen_t=no
10037 rm -f conftest.$ac_objext conftest.$ac_ext
10039 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10040 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10041 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10042 #define HAVE_SOCKLEN_T 1
10046 echo "$as_me:$LINENO: checking for bigendian" >&5
10047 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10048 if test "${ba_cv_bigendian+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 if test "$cross_compiling" = yes; then
10054 cat >conftest.$ac_ext <<_ACEOF
10055 #line $LINENO "configure"
10058 cat confdefs.h >>conftest.$ac_ext
10059 cat >>conftest.$ac_ext <<_ACEOF
10060 /* end confdefs.h. */
10061 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10063 rm -f conftest$ac_exeext
10064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10065 (eval $ac_link) 2>&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
10074 ba_cv_bigendian=yes
10076 echo "$as_me: program exited with status $ac_status" >&5
10077 echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10080 ( exit $ac_status )
10083 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10086 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10087 echo "${ECHO_T}$ba_cv_bigendian" >&6
10088 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10089 #define HAVE_BIGENDIAN 1
10094 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10095 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10096 if test "${ac_cv_c_const+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10099 cat >conftest.$ac_ext <<_ACEOF
10100 #line $LINENO "configure"
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h. */
10110 /* FIXME: Include the comments suggested by Paul. */
10111 #ifndef __cplusplus
10112 /* Ultrix mips cc rejects this. */
10113 typedef int charset[2];
10115 /* SunOS 4.1.1 cc rejects this. */
10116 char const *const *ccp;
10118 /* NEC SVR4.0.2 mips cc rejects this. */
10119 struct point {int x, y;};
10120 static struct point const zero = {0,0};
10121 /* AIX XL C 1.02.0.0 rejects this.
10122 It does not let you subtract one const X* pointer from another in
10123 an arm of an if-expression whose if-part is not a constant
10125 const char *g = "string";
10126 ccp = &g + (g ? g-g : 0);
10127 /* HPUX 7.0 cc rejects these. */
10130 ccp = (char const *const *) p;
10131 { /* SCO 3.2v4 cc rejects this. */
10133 char const *s = 0 ? (char *) 0 : (char const *) 0;
10137 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10138 int x[] = {25, 17};
10139 const int *foo = &x[0];
10142 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10143 typedef const int *iptr;
10147 { /* AIX XL C 1.02.0.0 rejects this saying
10148 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10149 struct s { int j; const int *ap[3]; };
10150 struct s *b; b->j = 5;
10152 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10153 const int foo = 10;
10161 rm -f conftest.$ac_objext
10162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10163 (eval $ac_compile) 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } &&
10167 { ac_try='test -s conftest.$ac_objext'
10168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169 (eval $ac_try) 2>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; }; then
10175 echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10180 rm -f conftest.$ac_objext conftest.$ac_ext
10182 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10183 echo "${ECHO_T}$ac_cv_c_const" >&6
10184 if test $ac_cv_c_const = no; then
10186 cat >>confdefs.h <<\_ACEOF
10194 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10195 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10197 # The order of these tests is important.
10198 cat >conftest.$ac_ext <<_ACEOF
10199 #line $LINENO "configure"
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h. */
10205 #include <sys/statvfs.h>
10206 #include <sys/fstyp.h>
10208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10211 grep -v '^ *+' conftest.er1 >conftest.err
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } >/dev/null; then
10216 if test -s conftest.err; then
10217 ac_cpp_err=$ac_c_preproc_warn_flag
10224 if test -z "$ac_cpp_err"; then
10225 cat >>confdefs.h <<\_ACEOF
10226 #define FSTYPE_STATVFS 1
10230 echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10235 rm -f conftest.err conftest.$ac_ext
10236 if test $fstype = no; then
10237 cat >conftest.$ac_ext <<_ACEOF
10238 #line $LINENO "configure"
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10244 #include <sys/statfs.h>
10245 #include <sys/fstyp.h>
10247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10250 grep -v '^ *+' conftest.er1 >conftest.err
10252 cat conftest.err >&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } >/dev/null; then
10255 if test -s conftest.err; then
10256 ac_cpp_err=$ac_c_preproc_warn_flag
10263 if test -z "$ac_cpp_err"; then
10264 cat >>confdefs.h <<\_ACEOF
10265 #define FSTYPE_USG_STATFS 1
10269 echo "$as_me: failed program was:" >&5
10270 sed 's/^/| /' conftest.$ac_ext >&5
10274 rm -f conftest.err conftest.$ac_ext
10276 if test $fstype = no; then
10277 cat >conftest.$ac_ext <<_ACEOF
10278 #line $LINENO "configure"
10281 cat confdefs.h >>conftest.$ac_ext
10282 cat >>conftest.$ac_ext <<_ACEOF
10283 /* end confdefs.h. */
10284 #include <sys/statfs.h>
10285 #include <sys/vmount.h>
10287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10290 grep -v '^ *+' conftest.er1 >conftest.err
10292 cat conftest.err >&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } >/dev/null; then
10295 if test -s conftest.err; then
10296 ac_cpp_err=$ac_c_preproc_warn_flag
10303 if test -z "$ac_cpp_err"; then
10304 cat >>confdefs.h <<\_ACEOF
10305 #define FSTYPE_AIX_STATFS 1
10309 echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10314 rm -f conftest.err conftest.$ac_ext
10316 if test $fstype = no; then
10317 cat >conftest.$ac_ext <<_ACEOF
10318 #line $LINENO "configure"
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 #include <mntent.h>
10326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10329 grep -v '^ *+' conftest.er1 >conftest.err
10331 cat conftest.err >&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } >/dev/null; then
10334 if test -s conftest.err; then
10335 ac_cpp_err=$ac_c_preproc_warn_flag
10342 if test -z "$ac_cpp_err"; then
10343 cat >>confdefs.h <<\_ACEOF
10344 #define FSTYPE_MNTENT 1
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10353 rm -f conftest.err conftest.$ac_ext
10355 if test $fstype = no; then
10356 cat >conftest.$ac_ext <<_ACEOF
10357 #line $LINENO "configure"
10360 cat confdefs.h >>conftest.$ac_ext
10361 cat >>conftest.$ac_ext <<_ACEOF
10362 /* end confdefs.h. */
10363 #include <sys/mount.h>
10366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10367 $EGREP "f_type;" >/dev/null 2>&1; then
10368 cat >>confdefs.h <<\_ACEOF
10369 #define FSTYPE_STATFS 1
10376 if test $fstype = no; then
10377 cat >conftest.$ac_ext <<_ACEOF
10378 #line $LINENO "configure"
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10384 #include <sys/mount.h>
10385 #include <sys/fs_types.h>
10387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10390 grep -v '^ *+' conftest.er1 >conftest.err
10392 cat conftest.err >&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } >/dev/null; then
10395 if test -s conftest.err; then
10396 ac_cpp_err=$ac_c_preproc_warn_flag
10403 if test -z "$ac_cpp_err"; then
10404 cat >>confdefs.h <<\_ACEOF
10405 #define FSTYPE_GETMNT 1
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10414 rm -f conftest.err conftest.$ac_ext
10416 echo "$as_me:$LINENO: result: $fstype" >&5
10417 echo "${ECHO_T}$fstype" >&6
10419 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10420 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10421 if test "${ac_cv_type_signal+set}" = set; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10424 cat >conftest.$ac_ext <<_ACEOF
10425 #line $LINENO "configure"
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h. */
10431 #include <sys/types.h>
10432 #include <signal.h>
10437 extern "C" void (*signal (int, void (*)(int)))(int);
10439 void (*signal ()) ();
10450 rm -f conftest.$ac_objext
10451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10452 (eval $ac_compile) 2>&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } &&
10456 { ac_try='test -s conftest.$ac_objext'
10457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10458 (eval $ac_try) 2>&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); }; }; then
10462 ac_cv_type_signal=void
10464 echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.$ac_ext >&5
10467 ac_cv_type_signal=int
10469 rm -f conftest.$ac_objext conftest.$ac_ext
10471 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10472 echo "${ECHO_T}$ac_cv_type_signal" >&6
10474 cat >>confdefs.h <<_ACEOF
10475 #define RETSIGTYPE $ac_cv_type_signal
10480 echo "$as_me:$LINENO: checking for type of signal functions" >&5
10481 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
10482 if test "${bash_cv_signal_vintage+set}" = set; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 cat >conftest.$ac_ext <<_ACEOF
10487 #line $LINENO "configure"
10490 cat confdefs.h >>conftest.$ac_ext
10491 cat >>conftest.$ac_ext <<_ACEOF
10492 /* end confdefs.h. */
10493 #include <signal.h>
10499 struct sigaction sa;
10500 sigemptyset(&ss); sigsuspend(&ss);
10501 sigaction(SIGINT, &sa, (struct sigaction *) 0);
10502 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
10508 rm -f conftest.$ac_objext conftest$ac_exeext
10509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10510 (eval $ac_link) 2>&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } &&
10514 { ac_try='test -s conftest$ac_exeext'
10515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516 (eval $ac_try) 2>&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); }; }; then
10520 bash_cv_signal_vintage=posix
10522 echo "$as_me: failed program was:" >&5
10523 sed 's/^/| /' conftest.$ac_ext >&5
10526 cat >conftest.$ac_ext <<_ACEOF
10527 #line $LINENO "configure"
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 #include <signal.h>
10538 int mask = sigmask(SIGINT);
10539 sigsetmask(mask); sigblock(mask); sigpause(mask);
10545 rm -f conftest.$ac_objext conftest$ac_exeext
10546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10547 (eval $ac_link) 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } &&
10551 { ac_try='test -s conftest$ac_exeext'
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; }; then
10557 bash_cv_signal_vintage=4.2bsd
10559 echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10563 cat >conftest.$ac_ext <<_ACEOF
10564 #line $LINENO "configure"
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10571 #include <signal.h>
10572 RETSIGTYPE foo() { }
10577 int mask = sigmask(SIGINT);
10578 sigset(SIGINT, foo); sigrelse(SIGINT);
10579 sighold(SIGINT); sigpause(SIGINT);
10585 rm -f conftest.$ac_objext conftest$ac_exeext
10586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10587 (eval $ac_link) 2>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } &&
10591 { ac_try='test -s conftest$ac_exeext'
10592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593 (eval $ac_try) 2>&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }; }; then
10597 bash_cv_signal_vintage=svr3
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10602 bash_cv_signal_vintage=v7
10605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10615 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
10616 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
10617 if test "$bash_cv_signal_vintage" = posix; then
10618 cat >>confdefs.h <<\_ACEOF
10619 #define HAVE_POSIX_SIGNALS 1
10622 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
10623 cat >>confdefs.h <<\_ACEOF
10624 #define HAVE_BSD_SIGNALS 1
10627 elif test "$bash_cv_signal_vintage" = svr3; then
10628 cat >>confdefs.h <<\_ACEOF
10629 #define HAVE_USG_SIGHOLD 1
10634 echo "$as_me:$LINENO: checking for mode_t" >&5
10635 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10636 if test "${ac_cv_type_mode_t+set}" = set; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10639 cat >conftest.$ac_ext <<_ACEOF
10640 #line $LINENO "configure"
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10646 $ac_includes_default
10652 if (sizeof (mode_t))
10658 rm -f conftest.$ac_objext
10659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10660 (eval $ac_compile) 2>&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -s conftest.$ac_objext'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; }; then
10670 ac_cv_type_mode_t=yes
10672 echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10675 ac_cv_type_mode_t=no
10677 rm -f conftest.$ac_objext conftest.$ac_ext
10679 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10680 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10681 if test $ac_cv_type_mode_t = yes; then
10685 cat >>confdefs.h <<_ACEOF
10691 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10692 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10693 if test "${ac_cv_type_uid_t+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 cat >conftest.$ac_ext <<_ACEOF
10697 #line $LINENO "configure"
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703 #include <sys/types.h>
10706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10707 $EGREP "uid_t" >/dev/null 2>&1; then
10708 ac_cv_type_uid_t=yes
10710 ac_cv_type_uid_t=no
10715 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10716 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10717 if test $ac_cv_type_uid_t = no; then
10719 cat >>confdefs.h <<\_ACEOF
10724 cat >>confdefs.h <<\_ACEOF
10730 echo "$as_me:$LINENO: checking for size_t" >&5
10731 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10732 if test "${ac_cv_type_size_t+set}" = set; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 cat >conftest.$ac_ext <<_ACEOF
10736 #line $LINENO "configure"
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10742 $ac_includes_default
10748 if (sizeof (size_t))
10754 rm -f conftest.$ac_objext
10755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10756 (eval $ac_compile) 2>&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } &&
10760 { ac_try='test -s conftest.$ac_objext'
10761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10762 (eval $ac_try) 2>&5
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); }; }; then
10766 ac_cv_type_size_t=yes
10768 echo "$as_me: failed program was:" >&5
10769 sed 's/^/| /' conftest.$ac_ext >&5
10771 ac_cv_type_size_t=no
10773 rm -f conftest.$ac_objext conftest.$ac_ext
10775 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10776 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10777 if test $ac_cv_type_size_t = yes; then
10781 cat >>confdefs.h <<_ACEOF
10782 #define size_t unsigned
10787 echo "$as_me:$LINENO: checking for pid_t" >&5
10788 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10789 if test "${ac_cv_type_pid_t+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 cat >conftest.$ac_ext <<_ACEOF
10793 #line $LINENO "configure"
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h. */
10799 $ac_includes_default
10805 if (sizeof (pid_t))
10811 rm -f conftest.$ac_objext
10812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10813 (eval $ac_compile) 2>&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } &&
10817 { ac_try='test -s conftest.$ac_objext'
10818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819 (eval $ac_try) 2>&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; }; then
10823 ac_cv_type_pid_t=yes
10825 echo "$as_me: failed program was:" >&5
10826 sed 's/^/| /' conftest.$ac_ext >&5
10828 ac_cv_type_pid_t=no
10830 rm -f conftest.$ac_objext conftest.$ac_ext
10832 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10833 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10834 if test $ac_cv_type_pid_t = yes; then
10838 cat >>confdefs.h <<_ACEOF
10844 echo "$as_me:$LINENO: checking for off_t" >&5
10845 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10846 if test "${ac_cv_type_off_t+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10849 cat >conftest.$ac_ext <<_ACEOF
10850 #line $LINENO "configure"
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h. */
10856 $ac_includes_default
10862 if (sizeof (off_t))
10868 rm -f conftest.$ac_objext
10869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10870 (eval $ac_compile) 2>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } &&
10874 { ac_try='test -s conftest.$ac_objext'
10875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876 (eval $ac_try) 2>&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }; }; then
10880 ac_cv_type_off_t=yes
10882 echo "$as_me: failed program was:" >&5
10883 sed 's/^/| /' conftest.$ac_ext >&5
10885 ac_cv_type_off_t=no
10887 rm -f conftest.$ac_objext conftest.$ac_ext
10889 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10890 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10891 if test $ac_cv_type_off_t = yes; then
10895 cat >>confdefs.h <<_ACEOF
10901 echo "$as_me:$LINENO: checking for ino_t" >&5
10902 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
10903 if test "${ac_cv_type_ino_t+set}" = set; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 cat >conftest.$ac_ext <<_ACEOF
10907 #line $LINENO "configure"
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10913 $ac_includes_default
10919 if (sizeof (ino_t))
10925 rm -f conftest.$ac_objext
10926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10927 (eval $ac_compile) 2>&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } &&
10931 { ac_try='test -s conftest.$ac_objext'
10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933 (eval $ac_try) 2>&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; }; then
10937 ac_cv_type_ino_t=yes
10939 echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10942 ac_cv_type_ino_t=no
10944 rm -f conftest.$ac_objext conftest.$ac_ext
10946 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
10947 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
10948 if test $ac_cv_type_ino_t = yes; then
10952 cat >>confdefs.h <<_ACEOF
10953 #define ino_t unsigned long
10958 echo "$as_me:$LINENO: checking for dev_t" >&5
10959 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
10960 if test "${ac_cv_type_dev_t+set}" = set; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 cat >conftest.$ac_ext <<_ACEOF
10964 #line $LINENO "configure"
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970 $ac_includes_default
10976 if (sizeof (dev_t))
10982 rm -f conftest.$ac_objext
10983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10984 (eval $ac_compile) 2>&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } &&
10988 { ac_try='test -s conftest.$ac_objext'
10989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990 (eval $ac_try) 2>&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; }; then
10994 ac_cv_type_dev_t=yes
10996 echo "$as_me: failed program was:" >&5
10997 sed 's/^/| /' conftest.$ac_ext >&5
10999 ac_cv_type_dev_t=no
11001 rm -f conftest.$ac_objext conftest.$ac_ext
11003 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11004 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11005 if test $ac_cv_type_dev_t = yes; then
11009 cat >>confdefs.h <<_ACEOF
11010 #define dev_t unsigned long
11015 echo "$as_me:$LINENO: checking for daddr_t" >&5
11016 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11017 if test "${ac_cv_type_daddr_t+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11020 cat >conftest.$ac_ext <<_ACEOF
11021 #line $LINENO "configure"
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027 $ac_includes_default
11033 if (sizeof (daddr_t))
11039 rm -f conftest.$ac_objext
11040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11041 (eval $ac_compile) 2>&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } &&
11045 { ac_try='test -s conftest.$ac_objext'
11046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047 (eval $ac_try) 2>&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; }; then
11051 ac_cv_type_daddr_t=yes
11053 echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11056 ac_cv_type_daddr_t=no
11058 rm -f conftest.$ac_objext conftest.$ac_ext
11060 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11061 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11062 if test $ac_cv_type_daddr_t = yes; then
11066 cat >>confdefs.h <<_ACEOF
11067 #define daddr_t long
11072 echo "$as_me:$LINENO: checking for major_t" >&5
11073 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11074 if test "${ac_cv_type_major_t+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 cat >conftest.$ac_ext <<_ACEOF
11078 #line $LINENO "configure"
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11084 $ac_includes_default
11090 if (sizeof (major_t))
11096 rm -f conftest.$ac_objext
11097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11098 (eval $ac_compile) 2>&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } &&
11102 { ac_try='test -s conftest.$ac_objext'
11103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104 (eval $ac_try) 2>&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; }; then
11108 ac_cv_type_major_t=yes
11110 echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11113 ac_cv_type_major_t=no
11115 rm -f conftest.$ac_objext conftest.$ac_ext
11117 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11118 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11119 if test $ac_cv_type_major_t = yes; then
11123 cat >>confdefs.h <<_ACEOF
11124 #define major_t int
11129 echo "$as_me:$LINENO: checking for minor_t" >&5
11130 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11131 if test "${ac_cv_type_minor_t+set}" = set; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11134 cat >conftest.$ac_ext <<_ACEOF
11135 #line $LINENO "configure"
11138 cat confdefs.h >>conftest.$ac_ext
11139 cat >>conftest.$ac_ext <<_ACEOF
11140 /* end confdefs.h. */
11141 $ac_includes_default
11147 if (sizeof (minor_t))
11153 rm -f conftest.$ac_objext
11154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11155 (eval $ac_compile) 2>&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } &&
11159 { ac_try='test -s conftest.$ac_objext'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 ac_cv_type_minor_t=yes
11167 echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11170 ac_cv_type_minor_t=no
11172 rm -f conftest.$ac_objext conftest.$ac_ext
11174 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11175 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11176 if test $ac_cv_type_minor_t = yes; then
11180 cat >>confdefs.h <<_ACEOF
11181 #define minor_t int
11186 echo "$as_me:$LINENO: checking for ssize_t" >&5
11187 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11188 if test "${ac_cv_type_ssize_t+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11191 cat >conftest.$ac_ext <<_ACEOF
11192 #line $LINENO "configure"
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11198 $ac_includes_default
11204 if (sizeof (ssize_t))
11210 rm -f conftest.$ac_objext
11211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11212 (eval $ac_compile) 2>&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); } &&
11216 { ac_try='test -s conftest.$ac_objext'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
11222 ac_cv_type_ssize_t=yes
11224 echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11227 ac_cv_type_ssize_t=no
11229 rm -f conftest.$ac_objext conftest.$ac_ext
11231 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11232 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11233 if test $ac_cv_type_ssize_t = yes; then
11237 cat >>confdefs.h <<_ACEOF
11238 #define ssize_t int
11243 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11244 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11245 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11248 cat >conftest.$ac_ext <<_ACEOF
11249 #line $LINENO "configure"
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 $ac_includes_default
11259 static struct stat ac_aggr;
11260 if (ac_aggr.st_blocks)
11266 rm -f conftest.$ac_objext
11267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11268 (eval $ac_compile) 2>&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } &&
11272 { ac_try='test -s conftest.$ac_objext'
11273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274 (eval $ac_try) 2>&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; }; then
11278 ac_cv_member_struct_stat_st_blocks=yes
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11283 cat >conftest.$ac_ext <<_ACEOF
11284 #line $LINENO "configure"
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11290 $ac_includes_default
11294 static struct stat ac_aggr;
11295 if (sizeof ac_aggr.st_blocks)
11301 rm -f conftest.$ac_objext
11302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11303 (eval $ac_compile) 2>&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } &&
11307 { ac_try='test -s conftest.$ac_objext'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
11313 ac_cv_member_struct_stat_st_blocks=yes
11315 echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11318 ac_cv_member_struct_stat_st_blocks=no
11320 rm -f conftest.$ac_objext conftest.$ac_ext
11322 rm -f conftest.$ac_objext conftest.$ac_ext
11324 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11325 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11326 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11328 cat >>confdefs.h <<_ACEOF
11329 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11333 cat >>confdefs.h <<\_ACEOF
11334 #define HAVE_ST_BLOCKS 1
11338 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11343 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11344 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11345 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 cat >conftest.$ac_ext <<_ACEOF
11349 #line $LINENO "configure"
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11355 $ac_includes_default
11359 static struct stat ac_aggr;
11360 if (ac_aggr.st_rdev)
11366 rm -f conftest.$ac_objext
11367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11368 (eval $ac_compile) 2>&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } &&
11372 { ac_try='test -s conftest.$ac_objext'
11373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374 (eval $ac_try) 2>&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; }; then
11378 ac_cv_member_struct_stat_st_rdev=yes
11380 echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.$ac_ext >&5
11383 cat >conftest.$ac_ext <<_ACEOF
11384 #line $LINENO "configure"
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 $ac_includes_default
11394 static struct stat ac_aggr;
11395 if (sizeof ac_aggr.st_rdev)
11401 rm -f conftest.$ac_objext
11402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11403 (eval $ac_compile) 2>&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); } &&
11407 { ac_try='test -s conftest.$ac_objext'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; }; then
11413 ac_cv_member_struct_stat_st_rdev=yes
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11418 ac_cv_member_struct_stat_st_rdev=no
11420 rm -f conftest.$ac_objext conftest.$ac_ext
11422 rm -f conftest.$ac_objext conftest.$ac_ext
11424 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
11425 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
11426 if test $ac_cv_member_struct_stat_st_rdev = yes; then
11428 cat >>confdefs.h <<_ACEOF
11429 #define HAVE_STRUCT_STAT_ST_RDEV 1
11433 cat >>confdefs.h <<\_ACEOF
11434 #define HAVE_ST_RDEV 1
11440 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11441 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11442 if test "${ac_cv_struct_tm+set}" = set; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11445 cat >conftest.$ac_ext <<_ACEOF
11446 #line $LINENO "configure"
11449 cat confdefs.h >>conftest.$ac_ext
11450 cat >>conftest.$ac_ext <<_ACEOF
11451 /* end confdefs.h. */
11452 #include <sys/types.h>
11458 struct tm *tp; tp->tm_sec;
11463 rm -f conftest.$ac_objext
11464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11465 (eval $ac_compile) 2>&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } &&
11469 { ac_try='test -s conftest.$ac_objext'
11470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471 (eval $ac_try) 2>&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; }; then
11475 ac_cv_struct_tm=time.h
11477 echo "$as_me: failed program was:" >&5
11478 sed 's/^/| /' conftest.$ac_ext >&5
11480 ac_cv_struct_tm=sys/time.h
11482 rm -f conftest.$ac_objext conftest.$ac_ext
11484 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11485 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11486 if test $ac_cv_struct_tm = sys/time.h; then
11488 cat >>confdefs.h <<\_ACEOF
11489 #define TM_IN_SYS_TIME 1
11494 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11495 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11496 if test "${ac_cv_c_const+set}" = set; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
11499 cat >conftest.$ac_ext <<_ACEOF
11500 #line $LINENO "configure"
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11510 /* FIXME: Include the comments suggested by Paul. */
11511 #ifndef __cplusplus
11512 /* Ultrix mips cc rejects this. */
11513 typedef int charset[2];
11515 /* SunOS 4.1.1 cc rejects this. */
11516 char const *const *ccp;
11518 /* NEC SVR4.0.2 mips cc rejects this. */
11519 struct point {int x, y;};
11520 static struct point const zero = {0,0};
11521 /* AIX XL C 1.02.0.0 rejects this.
11522 It does not let you subtract one const X* pointer from another in
11523 an arm of an if-expression whose if-part is not a constant
11525 const char *g = "string";
11526 ccp = &g + (g ? g-g : 0);
11527 /* HPUX 7.0 cc rejects these. */
11530 ccp = (char const *const *) p;
11531 { /* SCO 3.2v4 cc rejects this. */
11533 char const *s = 0 ? (char *) 0 : (char const *) 0;
11537 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11538 int x[] = {25, 17};
11539 const int *foo = &x[0];
11542 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11543 typedef const int *iptr;
11547 { /* AIX XL C 1.02.0.0 rejects this saying
11548 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11549 struct s { int j; const int *ap[3]; };
11550 struct s *b; b->j = 5;
11552 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11553 const int foo = 10;
11561 rm -f conftest.$ac_objext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11563 (eval $ac_compile) 2>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try='test -s conftest.$ac_objext'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; }; then
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11580 rm -f conftest.$ac_objext conftest.$ac_ext
11582 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11583 echo "${ECHO_T}$ac_cv_c_const" >&6
11584 if test $ac_cv_c_const = no; then
11586 cat >>confdefs.h <<\_ACEOF
11594 echo "$as_me:$LINENO: checking for char" >&5
11595 echo $ECHO_N "checking for char... $ECHO_C" >&6
11596 if test "${ac_cv_type_char+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 cat >conftest.$ac_ext <<_ACEOF
11600 #line $LINENO "configure"
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11606 $ac_includes_default
11618 rm -f conftest.$ac_objext
11619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11620 (eval $ac_compile) 2>&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
11624 { ac_try='test -s conftest.$ac_objext'
11625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626 (eval $ac_try) 2>&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; }; then
11630 ac_cv_type_char=yes
11632 echo "$as_me: failed program was:" >&5
11633 sed 's/^/| /' conftest.$ac_ext >&5
11637 rm -f conftest.$ac_objext conftest.$ac_ext
11639 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11640 echo "${ECHO_T}$ac_cv_type_char" >&6
11642 echo "$as_me:$LINENO: checking size of char" >&5
11643 echo $ECHO_N "checking size of char... $ECHO_C" >&6
11644 if test "${ac_cv_sizeof_char+set}" = set; then
11645 echo $ECHO_N "(cached) $ECHO_C" >&6
11647 if test "$ac_cv_type_char" = yes; then
11648 # The cast to unsigned long works around a bug in the HP C Compiler
11649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11650 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11651 # This bug is HP SR number 8606223364.
11652 if test "$cross_compiling" = yes; then
11653 # Depending upon the size, compute the lo and hi bounds.
11654 cat >conftest.$ac_ext <<_ACEOF
11655 #line $LINENO "configure"
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h. */
11661 $ac_includes_default
11665 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11672 rm -f conftest.$ac_objext
11673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11674 (eval $ac_compile) 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } &&
11678 { ac_try='test -s conftest.$ac_objext'
11679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680 (eval $ac_try) 2>&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; }; then
11686 cat >conftest.$ac_ext <<_ACEOF
11687 #line $LINENO "configure"
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h. */
11693 $ac_includes_default
11697 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11704 rm -f conftest.$ac_objext
11705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11706 (eval $ac_compile) 2>&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } &&
11710 { ac_try='test -s conftest.$ac_objext'
11711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; }; then
11716 ac_hi=$ac_mid; break
11718 echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11721 ac_lo=`expr $ac_mid + 1`
11722 if test $ac_lo -le $ac_mid; then
11726 ac_mid=`expr 2 '*' $ac_mid + 1`
11728 rm -f conftest.$ac_objext conftest.$ac_ext
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11734 cat >conftest.$ac_ext <<_ACEOF
11735 #line $LINENO "configure"
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11741 $ac_includes_default
11745 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11752 rm -f conftest.$ac_objext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11754 (eval $ac_compile) 2>&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } &&
11758 { ac_try='test -s conftest.$ac_objext'
11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760 (eval $ac_try) 2>&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }; then
11766 cat >conftest.$ac_ext <<_ACEOF
11767 #line $LINENO "configure"
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h. */
11773 $ac_includes_default
11777 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11784 rm -f conftest.$ac_objext
11785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11786 (eval $ac_compile) 2>&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } &&
11790 { ac_try='test -s conftest.$ac_objext'
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11796 ac_lo=$ac_mid; break
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11801 ac_hi=`expr '(' $ac_mid ')' - 1`
11802 if test $ac_mid -le $ac_hi; then
11806 ac_mid=`expr 2 '*' $ac_mid`
11808 rm -f conftest.$ac_objext conftest.$ac_ext
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11816 rm -f conftest.$ac_objext conftest.$ac_ext
11818 rm -f conftest.$ac_objext conftest.$ac_ext
11819 # Binary search between lo and hi bounds.
11820 while test "x$ac_lo" != "x$ac_hi"; do
11821 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11822 cat >conftest.$ac_ext <<_ACEOF
11823 #line $LINENO "configure"
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h. */
11829 $ac_includes_default
11833 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11840 rm -f conftest.$ac_objext
11841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11842 (eval $ac_compile) 2>&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } &&
11846 { ac_try='test -s conftest.$ac_objext'
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; }; then
11854 echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11857 ac_lo=`expr '(' $ac_mid ')' + 1`
11859 rm -f conftest.$ac_objext conftest.$ac_ext
11862 ?*) ac_cv_sizeof_char=$ac_lo;;
11863 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11864 See \`config.log' for more details." >&5
11865 echo "$as_me: error: cannot compute sizeof (char), 77
11866 See \`config.log' for more details." >&2;}
11867 { (exit 1); exit 1; }; } ;;
11870 if test "$cross_compiling" = yes; then
11871 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11872 See \`config.log' for more details." >&5
11873 echo "$as_me: error: cannot run test program while cross compiling
11874 See \`config.log' for more details." >&2;}
11875 { (exit 1); exit 1; }; }
11877 cat >conftest.$ac_ext <<_ACEOF
11878 #line $LINENO "configure"
11881 cat confdefs.h >>conftest.$ac_ext
11882 cat >>conftest.$ac_ext <<_ACEOF
11883 /* end confdefs.h. */
11884 $ac_includes_default
11885 long longval () { return (long) (sizeof (char)); }
11886 unsigned long ulongval () { return (long) (sizeof (char)); }
11888 #include <stdlib.h>
11893 FILE *f = fopen ("conftest.val", "w");
11896 if (((long) (sizeof (char))) < 0)
11898 long i = longval ();
11899 if (i != ((long) (sizeof (char))))
11901 fprintf (f, "%ld\n", i);
11905 unsigned long i = ulongval ();
11906 if (i != ((long) (sizeof (char))))
11908 fprintf (f, "%lu\n", i);
11910 exit (ferror (f) || fclose (f) != 0);
11916 rm -f conftest$ac_exeext
11917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11918 (eval $ac_link) 2>&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923 (eval $ac_try) 2>&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; }; then
11927 ac_cv_sizeof_char=`cat conftest.val`
11929 echo "$as_me: program exited with status $ac_status" >&5
11930 echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11933 ( exit $ac_status )
11934 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11935 See \`config.log' for more details." >&5
11936 echo "$as_me: error: cannot compute sizeof (char), 77
11937 See \`config.log' for more details." >&2;}
11938 { (exit 1); exit 1; }; }
11940 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11945 ac_cv_sizeof_char=0
11948 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11949 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11950 cat >>confdefs.h <<_ACEOF
11951 #define SIZEOF_CHAR $ac_cv_sizeof_char
11955 echo "$as_me:$LINENO: checking for short int" >&5
11956 echo $ECHO_N "checking for short int... $ECHO_C" >&6
11957 if test "${ac_cv_type_short_int+set}" = set; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
11960 cat >conftest.$ac_ext <<_ACEOF
11961 #line $LINENO "configure"
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11967 $ac_includes_default
11971 if ((short int *) 0)
11973 if (sizeof (short int))
11979 rm -f conftest.$ac_objext
11980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11981 (eval $ac_compile) 2>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } &&
11985 { ac_try='test -s conftest.$ac_objext'
11986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987 (eval $ac_try) 2>&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; }; then
11991 ac_cv_type_short_int=yes
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 ac_cv_type_short_int=no
11998 rm -f conftest.$ac_objext conftest.$ac_ext
12000 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12001 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12003 echo "$as_me:$LINENO: checking size of short int" >&5
12004 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12005 if test "${ac_cv_sizeof_short_int+set}" = set; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 if test "$ac_cv_type_short_int" = yes; then
12009 # The cast to unsigned long works around a bug in the HP C Compiler
12010 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12011 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12012 # This bug is HP SR number 8606223364.
12013 if test "$cross_compiling" = yes; then
12014 # Depending upon the size, compute the lo and hi bounds.
12015 cat >conftest.$ac_ext <<_ACEOF
12016 #line $LINENO "configure"
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h. */
12022 $ac_includes_default
12026 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12033 rm -f conftest.$ac_objext
12034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12035 (eval $ac_compile) 2>&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } &&
12039 { ac_try='test -s conftest.$ac_objext'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12047 cat >conftest.$ac_ext <<_ACEOF
12048 #line $LINENO "configure"
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h. */
12054 $ac_includes_default
12058 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12065 rm -f conftest.$ac_objext
12066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12067 (eval $ac_compile) 2>&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } &&
12071 { ac_try='test -s conftest.$ac_objext'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; }; then
12077 ac_hi=$ac_mid; break
12079 echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12082 ac_lo=`expr $ac_mid + 1`
12083 if test $ac_lo -le $ac_mid; then
12087 ac_mid=`expr 2 '*' $ac_mid + 1`
12089 rm -f conftest.$ac_objext conftest.$ac_ext
12092 echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12095 cat >conftest.$ac_ext <<_ACEOF
12096 #line $LINENO "configure"
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12102 $ac_includes_default
12106 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12113 rm -f conftest.$ac_objext
12114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12115 (eval $ac_compile) 2>&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
12119 { ac_try='test -s conftest.$ac_objext'
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
12127 cat >conftest.$ac_ext <<_ACEOF
12128 #line $LINENO "configure"
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12134 $ac_includes_default
12138 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12145 rm -f conftest.$ac_objext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12147 (eval $ac_compile) 2>&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } &&
12151 { ac_try='test -s conftest.$ac_objext'
12152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153 (eval $ac_try) 2>&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12157 ac_lo=$ac_mid; break
12159 echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12162 ac_hi=`expr '(' $ac_mid ')' - 1`
12163 if test $ac_mid -le $ac_hi; then
12167 ac_mid=`expr 2 '*' $ac_mid`
12169 rm -f conftest.$ac_objext conftest.$ac_ext
12172 echo "$as_me: failed program was:" >&5
12173 sed 's/^/| /' conftest.$ac_ext >&5
12177 rm -f conftest.$ac_objext conftest.$ac_ext
12179 rm -f conftest.$ac_objext conftest.$ac_ext
12180 # Binary search between lo and hi bounds.
12181 while test "x$ac_lo" != "x$ac_hi"; do
12182 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12183 cat >conftest.$ac_ext <<_ACEOF
12184 #line $LINENO "configure"
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h. */
12190 $ac_includes_default
12194 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12201 rm -f conftest.$ac_objext
12202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12203 (eval $ac_compile) 2>&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } &&
12207 { ac_try='test -s conftest.$ac_objext'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; }; then
12215 echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12218 ac_lo=`expr '(' $ac_mid ')' + 1`
12220 rm -f conftest.$ac_objext conftest.$ac_ext
12223 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12224 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12225 See \`config.log' for more details." >&5
12226 echo "$as_me: error: cannot compute sizeof (short int), 77
12227 See \`config.log' for more details." >&2;}
12228 { (exit 1); exit 1; }; } ;;
12231 if test "$cross_compiling" = yes; then
12232 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12233 See \`config.log' for more details." >&5
12234 echo "$as_me: error: cannot run test program while cross compiling
12235 See \`config.log' for more details." >&2;}
12236 { (exit 1); exit 1; }; }
12238 cat >conftest.$ac_ext <<_ACEOF
12239 #line $LINENO "configure"
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245 $ac_includes_default
12246 long longval () { return (long) (sizeof (short int)); }
12247 unsigned long ulongval () { return (long) (sizeof (short int)); }
12249 #include <stdlib.h>
12254 FILE *f = fopen ("conftest.val", "w");
12257 if (((long) (sizeof (short int))) < 0)
12259 long i = longval ();
12260 if (i != ((long) (sizeof (short int))))
12262 fprintf (f, "%ld\n", i);
12266 unsigned long i = ulongval ();
12267 if (i != ((long) (sizeof (short int))))
12269 fprintf (f, "%lu\n", i);
12271 exit (ferror (f) || fclose (f) != 0);
12277 rm -f conftest$ac_exeext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12279 (eval $ac_link) 2>&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
12288 ac_cv_sizeof_short_int=`cat conftest.val`
12290 echo "$as_me: program exited with status $ac_status" >&5
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12294 ( exit $ac_status )
12295 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12296 See \`config.log' for more details." >&5
12297 echo "$as_me: error: cannot compute sizeof (short int), 77
12298 See \`config.log' for more details." >&2;}
12299 { (exit 1); exit 1; }; }
12301 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12306 ac_cv_sizeof_short_int=0
12309 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12310 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12311 cat >>confdefs.h <<_ACEOF
12312 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12316 echo "$as_me:$LINENO: checking for int" >&5
12317 echo $ECHO_N "checking for int... $ECHO_C" >&6
12318 if test "${ac_cv_type_int+set}" = set; then
12319 echo $ECHO_N "(cached) $ECHO_C" >&6
12321 cat >conftest.$ac_ext <<_ACEOF
12322 #line $LINENO "configure"
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12328 $ac_includes_default
12340 rm -f conftest.$ac_objext
12341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12342 (eval $ac_compile) 2>&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } &&
12346 { ac_try='test -s conftest.$ac_objext'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; }; then
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12359 rm -f conftest.$ac_objext conftest.$ac_ext
12361 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12362 echo "${ECHO_T}$ac_cv_type_int" >&6
12364 echo "$as_me:$LINENO: checking size of int" >&5
12365 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12366 if test "${ac_cv_sizeof_int+set}" = set; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12369 if test "$ac_cv_type_int" = yes; then
12370 # The cast to unsigned long works around a bug in the HP C Compiler
12371 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12372 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12373 # This bug is HP SR number 8606223364.
12374 if test "$cross_compiling" = yes; then
12375 # Depending upon the size, compute the lo and hi bounds.
12376 cat >conftest.$ac_ext <<_ACEOF
12377 #line $LINENO "configure"
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12383 $ac_includes_default
12387 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12394 rm -f conftest.$ac_objext
12395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12396 (eval $ac_compile) 2>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } &&
12400 { ac_try='test -s conftest.$ac_objext'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12408 cat >conftest.$ac_ext <<_ACEOF
12409 #line $LINENO "configure"
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12415 $ac_includes_default
12419 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12426 rm -f conftest.$ac_objext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12428 (eval $ac_compile) 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } &&
12432 { ac_try='test -s conftest.$ac_objext'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 ac_hi=$ac_mid; break
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 ac_lo=`expr $ac_mid + 1`
12444 if test $ac_lo -le $ac_mid; then
12448 ac_mid=`expr 2 '*' $ac_mid + 1`
12450 rm -f conftest.$ac_objext conftest.$ac_ext
12453 echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12456 cat >conftest.$ac_ext <<_ACEOF
12457 #line $LINENO "configure"
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12463 $ac_includes_default
12467 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12474 rm -f conftest.$ac_objext
12475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476 (eval $ac_compile) 2>&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } &&
12480 { ac_try='test -s conftest.$ac_objext'
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; }; then
12488 cat >conftest.$ac_ext <<_ACEOF
12489 #line $LINENO "configure"
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12495 $ac_includes_default
12499 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12506 rm -f conftest.$ac_objext
12507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12508 (eval $ac_compile) 2>&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); } &&
12512 { ac_try='test -s conftest.$ac_objext'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; }; then
12518 ac_lo=$ac_mid; break
12520 echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12523 ac_hi=`expr '(' $ac_mid ')' - 1`
12524 if test $ac_mid -le $ac_hi; then
12528 ac_mid=`expr 2 '*' $ac_mid`
12530 rm -f conftest.$ac_objext conftest.$ac_ext
12533 echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12538 rm -f conftest.$ac_objext conftest.$ac_ext
12540 rm -f conftest.$ac_objext conftest.$ac_ext
12541 # Binary search between lo and hi bounds.
12542 while test "x$ac_lo" != "x$ac_hi"; do
12543 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12544 cat >conftest.$ac_ext <<_ACEOF
12545 #line $LINENO "configure"
12548 cat confdefs.h >>conftest.$ac_ext
12549 cat >>conftest.$ac_ext <<_ACEOF
12550 /* end confdefs.h. */
12551 $ac_includes_default
12555 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12562 rm -f conftest.$ac_objext
12563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12564 (eval $ac_compile) 2>&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } &&
12568 { ac_try='test -s conftest.$ac_objext'
12569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570 (eval $ac_try) 2>&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; }; then
12576 echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12579 ac_lo=`expr '(' $ac_mid ')' + 1`
12581 rm -f conftest.$ac_objext conftest.$ac_ext
12584 ?*) ac_cv_sizeof_int=$ac_lo;;
12585 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12586 See \`config.log' for more details." >&5
12587 echo "$as_me: error: cannot compute sizeof (int), 77
12588 See \`config.log' for more details." >&2;}
12589 { (exit 1); exit 1; }; } ;;
12592 if test "$cross_compiling" = yes; then
12593 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12594 See \`config.log' for more details." >&5
12595 echo "$as_me: error: cannot run test program while cross compiling
12596 See \`config.log' for more details." >&2;}
12597 { (exit 1); exit 1; }; }
12599 cat >conftest.$ac_ext <<_ACEOF
12600 #line $LINENO "configure"
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h. */
12606 $ac_includes_default
12607 long longval () { return (long) (sizeof (int)); }
12608 unsigned long ulongval () { return (long) (sizeof (int)); }
12610 #include <stdlib.h>
12615 FILE *f = fopen ("conftest.val", "w");
12618 if (((long) (sizeof (int))) < 0)
12620 long i = longval ();
12621 if (i != ((long) (sizeof (int))))
12623 fprintf (f, "%ld\n", i);
12627 unsigned long i = ulongval ();
12628 if (i != ((long) (sizeof (int))))
12630 fprintf (f, "%lu\n", i);
12632 exit (ferror (f) || fclose (f) != 0);
12638 rm -f conftest$ac_exeext
12639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12640 (eval $ac_link) 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12645 (eval $ac_try) 2>&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; }; then
12649 ac_cv_sizeof_int=`cat conftest.val`
12651 echo "$as_me: program exited with status $ac_status" >&5
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12655 ( exit $ac_status )
12656 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12657 See \`config.log' for more details." >&5
12658 echo "$as_me: error: cannot compute sizeof (int), 77
12659 See \`config.log' for more details." >&2;}
12660 { (exit 1); exit 1; }; }
12662 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12670 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12671 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12672 cat >>confdefs.h <<_ACEOF
12673 #define SIZEOF_INT $ac_cv_sizeof_int
12677 echo "$as_me:$LINENO: checking for long int" >&5
12678 echo $ECHO_N "checking for long int... $ECHO_C" >&6
12679 if test "${ac_cv_type_long_int+set}" = set; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 cat >conftest.$ac_ext <<_ACEOF
12683 #line $LINENO "configure"
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h. */
12689 $ac_includes_default
12693 if ((long int *) 0)
12695 if (sizeof (long int))
12701 rm -f conftest.$ac_objext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12703 (eval $ac_compile) 2>&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } &&
12707 { ac_try='test -s conftest.$ac_objext'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 ac_cv_type_long_int=yes
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12718 ac_cv_type_long_int=no
12720 rm -f conftest.$ac_objext conftest.$ac_ext
12722 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
12723 echo "${ECHO_T}$ac_cv_type_long_int" >&6
12725 echo "$as_me:$LINENO: checking size of long int" >&5
12726 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
12727 if test "${ac_cv_sizeof_long_int+set}" = set; then
12728 echo $ECHO_N "(cached) $ECHO_C" >&6
12730 if test "$ac_cv_type_long_int" = yes; then
12731 # The cast to unsigned long works around a bug in the HP C Compiler
12732 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12733 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12734 # This bug is HP SR number 8606223364.
12735 if test "$cross_compiling" = yes; then
12736 # Depending upon the size, compute the lo and hi bounds.
12737 cat >conftest.$ac_ext <<_ACEOF
12738 #line $LINENO "configure"
12741 cat confdefs.h >>conftest.$ac_ext
12742 cat >>conftest.$ac_ext <<_ACEOF
12743 /* end confdefs.h. */
12744 $ac_includes_default
12748 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
12755 rm -f conftest.$ac_objext
12756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12757 (eval $ac_compile) 2>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } &&
12761 { ac_try='test -s conftest.$ac_objext'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12769 cat >conftest.$ac_ext <<_ACEOF
12770 #line $LINENO "configure"
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12776 $ac_includes_default
12780 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
12787 rm -f conftest.$ac_objext
12788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12789 (eval $ac_compile) 2>&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } &&
12793 { ac_try='test -s conftest.$ac_objext'
12794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795 (eval $ac_try) 2>&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; }; then
12799 ac_hi=$ac_mid; break
12801 echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12804 ac_lo=`expr $ac_mid + 1`
12805 if test $ac_lo -le $ac_mid; then
12809 ac_mid=`expr 2 '*' $ac_mid + 1`
12811 rm -f conftest.$ac_objext conftest.$ac_ext
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12817 cat >conftest.$ac_ext <<_ACEOF
12818 #line $LINENO "configure"
12821 cat confdefs.h >>conftest.$ac_ext
12822 cat >>conftest.$ac_ext <<_ACEOF
12823 /* end confdefs.h. */
12824 $ac_includes_default
12828 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
12835 rm -f conftest.$ac_objext
12836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12837 (eval $ac_compile) 2>&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try='test -s conftest.$ac_objext'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; }; then
12849 cat >conftest.$ac_ext <<_ACEOF
12850 #line $LINENO "configure"
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12856 $ac_includes_default
12860 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
12867 rm -f conftest.$ac_objext
12868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12869 (eval $ac_compile) 2>&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -s conftest.$ac_objext'
12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; }; then
12879 ac_lo=$ac_mid; break
12881 echo "$as_me: failed program was:" >&5
12882 sed 's/^/| /' conftest.$ac_ext >&5
12884 ac_hi=`expr '(' $ac_mid ')' - 1`
12885 if test $ac_mid -le $ac_hi; then
12889 ac_mid=`expr 2 '*' $ac_mid`
12891 rm -f conftest.$ac_objext conftest.$ac_ext
12894 echo "$as_me: failed program was:" >&5
12895 sed 's/^/| /' conftest.$ac_ext >&5
12899 rm -f conftest.$ac_objext conftest.$ac_ext
12901 rm -f conftest.$ac_objext conftest.$ac_ext
12902 # Binary search between lo and hi bounds.
12903 while test "x$ac_lo" != "x$ac_hi"; do
12904 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12905 cat >conftest.$ac_ext <<_ACEOF
12906 #line $LINENO "configure"
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h. */
12912 $ac_includes_default
12916 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
12923 rm -f conftest.$ac_objext
12924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12925 (eval $ac_compile) 2>&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } &&
12929 { ac_try='test -s conftest.$ac_objext'
12930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931 (eval $ac_try) 2>&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; }; then
12937 echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12940 ac_lo=`expr '(' $ac_mid ')' + 1`
12942 rm -f conftest.$ac_objext conftest.$ac_ext
12945 ?*) ac_cv_sizeof_long_int=$ac_lo;;
12946 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
12947 See \`config.log' for more details." >&5
12948 echo "$as_me: error: cannot compute sizeof (long int), 77
12949 See \`config.log' for more details." >&2;}
12950 { (exit 1); exit 1; }; } ;;
12953 if test "$cross_compiling" = yes; then
12954 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12955 See \`config.log' for more details." >&5
12956 echo "$as_me: error: cannot run test program while cross compiling
12957 See \`config.log' for more details." >&2;}
12958 { (exit 1); exit 1; }; }
12960 cat >conftest.$ac_ext <<_ACEOF
12961 #line $LINENO "configure"
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h. */
12967 $ac_includes_default
12968 long longval () { return (long) (sizeof (long int)); }
12969 unsigned long ulongval () { return (long) (sizeof (long int)); }
12971 #include <stdlib.h>
12976 FILE *f = fopen ("conftest.val", "w");
12979 if (((long) (sizeof (long int))) < 0)
12981 long i = longval ();
12982 if (i != ((long) (sizeof (long int))))
12984 fprintf (f, "%ld\n", i);
12988 unsigned long i = ulongval ();
12989 if (i != ((long) (sizeof (long int))))
12991 fprintf (f, "%lu\n", i);
12993 exit (ferror (f) || fclose (f) != 0);
12999 rm -f conftest$ac_exeext
13000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13001 (eval $ac_link) 2>&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; }; then
13010 ac_cv_sizeof_long_int=`cat conftest.val`
13012 echo "$as_me: program exited with status $ac_status" >&5
13013 echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13016 ( exit $ac_status )
13017 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13018 See \`config.log' for more details." >&5
13019 echo "$as_me: error: cannot compute sizeof (long int), 77
13020 See \`config.log' for more details." >&2;}
13021 { (exit 1); exit 1; }; }
13023 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13028 ac_cv_sizeof_long_int=0
13031 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13032 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13033 cat >>confdefs.h <<_ACEOF
13034 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13038 echo "$as_me:$LINENO: checking for long long int" >&5
13039 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13040 if test "${ac_cv_type_long_long_int+set}" = set; then
13041 echo $ECHO_N "(cached) $ECHO_C" >&6
13043 cat >conftest.$ac_ext <<_ACEOF
13044 #line $LINENO "configure"
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h. */
13050 $ac_includes_default
13054 if ((long long int *) 0)
13056 if (sizeof (long long int))
13062 rm -f conftest.$ac_objext
13063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13064 (eval $ac_compile) 2>&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } &&
13068 { ac_try='test -s conftest.$ac_objext'
13069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070 (eval $ac_try) 2>&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; }; then
13074 ac_cv_type_long_long_int=yes
13076 echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13079 ac_cv_type_long_long_int=no
13081 rm -f conftest.$ac_objext conftest.$ac_ext
13083 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13084 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13086 echo "$as_me:$LINENO: checking size of long long int" >&5
13087 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13088 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13091 if test "$ac_cv_type_long_long_int" = yes; then
13092 # The cast to unsigned long works around a bug in the HP C Compiler
13093 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13094 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13095 # This bug is HP SR number 8606223364.
13096 if test "$cross_compiling" = yes; then
13097 # Depending upon the size, compute the lo and hi bounds.
13098 cat >conftest.$ac_ext <<_ACEOF
13099 #line $LINENO "configure"
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h. */
13105 $ac_includes_default
13109 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13116 rm -f conftest.$ac_objext
13117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13118 (eval $ac_compile) 2>&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } &&
13122 { ac_try='test -s conftest.$ac_objext'
13123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124 (eval $ac_try) 2>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; }; then
13130 cat >conftest.$ac_ext <<_ACEOF
13131 #line $LINENO "configure"
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h. */
13137 $ac_includes_default
13141 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13148 rm -f conftest.$ac_objext
13149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13150 (eval $ac_compile) 2>&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } &&
13154 { ac_try='test -s conftest.$ac_objext'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13160 ac_hi=$ac_mid; break
13162 echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13165 ac_lo=`expr $ac_mid + 1`
13166 if test $ac_lo -le $ac_mid; then
13170 ac_mid=`expr 2 '*' $ac_mid + 1`
13172 rm -f conftest.$ac_objext conftest.$ac_ext
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13178 cat >conftest.$ac_ext <<_ACEOF
13179 #line $LINENO "configure"
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13185 $ac_includes_default
13189 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13196 rm -f conftest.$ac_objext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13198 (eval $ac_compile) 2>&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } &&
13202 { ac_try='test -s conftest.$ac_objext'
13203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
13210 cat >conftest.$ac_ext <<_ACEOF
13211 #line $LINENO "configure"
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h. */
13217 $ac_includes_default
13221 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13228 rm -f conftest.$ac_objext
13229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13230 (eval $ac_compile) 2>&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } &&
13234 { ac_try='test -s conftest.$ac_objext'
13235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13236 (eval $ac_try) 2>&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); }; }; then
13240 ac_lo=$ac_mid; break
13242 echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13245 ac_hi=`expr '(' $ac_mid ')' - 1`
13246 if test $ac_mid -le $ac_hi; then
13250 ac_mid=`expr 2 '*' $ac_mid`
13252 rm -f conftest.$ac_objext conftest.$ac_ext
13255 echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13260 rm -f conftest.$ac_objext conftest.$ac_ext
13262 rm -f conftest.$ac_objext conftest.$ac_ext
13263 # Binary search between lo and hi bounds.
13264 while test "x$ac_lo" != "x$ac_hi"; do
13265 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13266 cat >conftest.$ac_ext <<_ACEOF
13267 #line $LINENO "configure"
13270 cat confdefs.h >>conftest.$ac_ext
13271 cat >>conftest.$ac_ext <<_ACEOF
13272 /* end confdefs.h. */
13273 $ac_includes_default
13277 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13284 rm -f conftest.$ac_objext
13285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13286 (eval $ac_compile) 2>&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); } &&
13290 { ac_try='test -s conftest.$ac_objext'
13291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292 (eval $ac_try) 2>&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; }; then
13298 echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.$ac_ext >&5
13301 ac_lo=`expr '(' $ac_mid ')' + 1`
13303 rm -f conftest.$ac_objext conftest.$ac_ext
13306 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13307 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13308 See \`config.log' for more details." >&5
13309 echo "$as_me: error: cannot compute sizeof (long long int), 77
13310 See \`config.log' for more details." >&2;}
13311 { (exit 1); exit 1; }; } ;;
13314 if test "$cross_compiling" = yes; then
13315 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13316 See \`config.log' for more details." >&5
13317 echo "$as_me: error: cannot run test program while cross compiling
13318 See \`config.log' for more details." >&2;}
13319 { (exit 1); exit 1; }; }
13321 cat >conftest.$ac_ext <<_ACEOF
13322 #line $LINENO "configure"
13325 cat confdefs.h >>conftest.$ac_ext
13326 cat >>conftest.$ac_ext <<_ACEOF
13327 /* end confdefs.h. */
13328 $ac_includes_default
13329 long longval () { return (long) (sizeof (long long int)); }
13330 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13332 #include <stdlib.h>
13337 FILE *f = fopen ("conftest.val", "w");
13340 if (((long) (sizeof (long long int))) < 0)
13342 long i = longval ();
13343 if (i != ((long) (sizeof (long long int))))
13345 fprintf (f, "%ld\n", i);
13349 unsigned long i = ulongval ();
13350 if (i != ((long) (sizeof (long long int))))
13352 fprintf (f, "%lu\n", i);
13354 exit (ferror (f) || fclose (f) != 0);
13360 rm -f conftest$ac_exeext
13361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13362 (eval $ac_link) 2>&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13371 ac_cv_sizeof_long_long_int=`cat conftest.val`
13373 echo "$as_me: program exited with status $ac_status" >&5
13374 echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13377 ( exit $ac_status )
13378 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13379 See \`config.log' for more details." >&5
13380 echo "$as_me: error: cannot compute sizeof (long long int), 77
13381 See \`config.log' for more details." >&2;}
13382 { (exit 1); exit 1; }; }
13384 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13389 ac_cv_sizeof_long_long_int=0
13392 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13393 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13394 cat >>confdefs.h <<_ACEOF
13395 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13399 echo "$as_me:$LINENO: checking for int *" >&5
13400 echo $ECHO_N "checking for int *... $ECHO_C" >&6
13401 if test "${ac_cv_type_int_p+set}" = set; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 cat >conftest.$ac_ext <<_ACEOF
13405 #line $LINENO "configure"
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13411 $ac_includes_default
13417 if (sizeof (int *))
13423 rm -f conftest.$ac_objext
13424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13425 (eval $ac_compile) 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } &&
13429 { ac_try='test -s conftest.$ac_objext'
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435 ac_cv_type_int_p=yes
13437 echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13440 ac_cv_type_int_p=no
13442 rm -f conftest.$ac_objext conftest.$ac_ext
13444 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13445 echo "${ECHO_T}$ac_cv_type_int_p" >&6
13447 echo "$as_me:$LINENO: checking size of int *" >&5
13448 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13449 if test "${ac_cv_sizeof_int_p+set}" = set; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13452 if test "$ac_cv_type_int_p" = yes; then
13453 # The cast to unsigned long works around a bug in the HP C Compiler
13454 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13455 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13456 # This bug is HP SR number 8606223364.
13457 if test "$cross_compiling" = yes; then
13458 # Depending upon the size, compute the lo and hi bounds.
13459 cat >conftest.$ac_ext <<_ACEOF
13460 #line $LINENO "configure"
13463 cat confdefs.h >>conftest.$ac_ext
13464 cat >>conftest.$ac_ext <<_ACEOF
13465 /* end confdefs.h. */
13466 $ac_includes_default
13470 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13477 rm -f conftest.$ac_objext
13478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13479 (eval $ac_compile) 2>&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -s conftest.$ac_objext'
13484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485 (eval $ac_try) 2>&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; }; then
13491 cat >conftest.$ac_ext <<_ACEOF
13492 #line $LINENO "configure"
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13498 $ac_includes_default
13502 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13509 rm -f conftest.$ac_objext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13511 (eval $ac_compile) 2>&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } &&
13515 { ac_try='test -s conftest.$ac_objext'
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; }; then
13521 ac_hi=$ac_mid; break
13523 echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13526 ac_lo=`expr $ac_mid + 1`
13527 if test $ac_lo -le $ac_mid; then
13531 ac_mid=`expr 2 '*' $ac_mid + 1`
13533 rm -f conftest.$ac_objext conftest.$ac_ext
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 cat >conftest.$ac_ext <<_ACEOF
13540 #line $LINENO "configure"
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13546 $ac_includes_default
13550 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13557 rm -f conftest.$ac_objext
13558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13559 (eval $ac_compile) 2>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } &&
13563 { ac_try='test -s conftest.$ac_objext'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; }; then
13571 cat >conftest.$ac_ext <<_ACEOF
13572 #line $LINENO "configure"
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13578 $ac_includes_default
13582 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13589 rm -f conftest.$ac_objext
13590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13591 (eval $ac_compile) 2>&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } &&
13595 { ac_try='test -s conftest.$ac_objext'
13596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597 (eval $ac_try) 2>&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; }; then
13601 ac_lo=$ac_mid; break
13603 echo "$as_me: failed program was:" >&5
13604 sed 's/^/| /' conftest.$ac_ext >&5
13606 ac_hi=`expr '(' $ac_mid ')' - 1`
13607 if test $ac_mid -le $ac_hi; then
13611 ac_mid=`expr 2 '*' $ac_mid`
13613 rm -f conftest.$ac_objext conftest.$ac_ext
13616 echo "$as_me: failed program was:" >&5
13617 sed 's/^/| /' conftest.$ac_ext >&5
13621 rm -f conftest.$ac_objext conftest.$ac_ext
13623 rm -f conftest.$ac_objext conftest.$ac_ext
13624 # Binary search between lo and hi bounds.
13625 while test "x$ac_lo" != "x$ac_hi"; do
13626 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13627 cat >conftest.$ac_ext <<_ACEOF
13628 #line $LINENO "configure"
13631 cat confdefs.h >>conftest.$ac_ext
13632 cat >>conftest.$ac_ext <<_ACEOF
13633 /* end confdefs.h. */
13634 $ac_includes_default
13638 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13645 rm -f conftest.$ac_objext
13646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13647 (eval $ac_compile) 2>&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } &&
13651 { ac_try='test -s conftest.$ac_objext'
13652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; }; then
13659 echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13662 ac_lo=`expr '(' $ac_mid ')' + 1`
13664 rm -f conftest.$ac_objext conftest.$ac_ext
13667 ?*) ac_cv_sizeof_int_p=$ac_lo;;
13668 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13669 See \`config.log' for more details." >&5
13670 echo "$as_me: error: cannot compute sizeof (int *), 77
13671 See \`config.log' for more details." >&2;}
13672 { (exit 1); exit 1; }; } ;;
13675 if test "$cross_compiling" = yes; then
13676 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13677 See \`config.log' for more details." >&5
13678 echo "$as_me: error: cannot run test program while cross compiling
13679 See \`config.log' for more details." >&2;}
13680 { (exit 1); exit 1; }; }
13682 cat >conftest.$ac_ext <<_ACEOF
13683 #line $LINENO "configure"
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h. */
13689 $ac_includes_default
13690 long longval () { return (long) (sizeof (int *)); }
13691 unsigned long ulongval () { return (long) (sizeof (int *)); }
13693 #include <stdlib.h>
13698 FILE *f = fopen ("conftest.val", "w");
13701 if (((long) (sizeof (int *))) < 0)
13703 long i = longval ();
13704 if (i != ((long) (sizeof (int *))))
13706 fprintf (f, "%ld\n", i);
13710 unsigned long i = ulongval ();
13711 if (i != ((long) (sizeof (int *))))
13713 fprintf (f, "%lu\n", i);
13715 exit (ferror (f) || fclose (f) != 0);
13721 rm -f conftest$ac_exeext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13723 (eval $ac_link) 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }; then
13732 ac_cv_sizeof_int_p=`cat conftest.val`
13734 echo "$as_me: program exited with status $ac_status" >&5
13735 echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13738 ( exit $ac_status )
13739 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13740 See \`config.log' for more details." >&5
13741 echo "$as_me: error: cannot compute sizeof (int *), 77
13742 See \`config.log' for more details." >&2;}
13743 { (exit 1); exit 1; }; }
13745 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13750 ac_cv_sizeof_int_p=0
13753 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
13754 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
13755 cat >>confdefs.h <<_ACEOF
13756 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
13761 # Check for sys/types.h types
13762 echo "$as_me:$LINENO: checking for u_int type" >&5
13763 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
13764 if test "${ac_cv_have_u_int+set}" = set; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
13768 cat >conftest.$ac_ext <<_ACEOF
13769 #line $LINENO "configure"
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13775 #include <sys/types.h>
13784 rm -f conftest.$ac_objext
13785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13786 (eval $ac_compile) 2>&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } &&
13790 { ac_try='test -s conftest.$ac_objext'
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796 ac_cv_have_u_int="yes"
13798 echo "$as_me: failed program was:" >&5
13799 sed 's/^/| /' conftest.$ac_ext >&5
13801 ac_cv_have_u_int="no"
13804 rm -f conftest.$ac_objext conftest.$ac_ext
13807 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
13808 echo "${ECHO_T}$ac_cv_have_u_int" >&6
13809 if test "x$ac_cv_have_u_int" = "xyes" ; then
13810 cat >>confdefs.h <<\_ACEOF
13811 #define HAVE_U_INT 1
13817 echo "$as_me:$LINENO: checking for intmax_t type" >&5
13818 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
13819 if test "${ac_cv_have_intmax_t+set}" = set; then
13820 echo $ECHO_N "(cached) $ECHO_C" >&6
13823 cat >conftest.$ac_ext <<_ACEOF
13824 #line $LINENO "configure"
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h. */
13830 #include <sys/types.h>
13839 rm -f conftest.$ac_objext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13841 (eval $ac_compile) 2>&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } &&
13845 { ac_try='test -s conftest.$ac_objext'
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; }; then
13851 ac_cv_have_intmax_t="yes"
13853 echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.$ac_ext >&5
13857 cat >conftest.$ac_ext <<_ACEOF
13858 #line $LINENO "configure"
13861 cat confdefs.h >>conftest.$ac_ext
13862 cat >>conftest.$ac_ext <<_ACEOF
13863 /* end confdefs.h. */
13864 #include <stdint.h>
13873 rm -f conftest.$ac_objext
13874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13875 (eval $ac_compile) 2>&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } &&
13879 { ac_try='test -s conftest.$ac_objext'
13880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881 (eval $ac_try) 2>&5
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; }; then
13885 ac_cv_have_intmax_t="yes"
13887 echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13890 ac_cv_have_intmax_t="no"
13893 rm -f conftest.$ac_objext conftest.$ac_ext
13897 rm -f conftest.$ac_objext conftest.$ac_ext
13901 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
13902 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
13903 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
13904 cat >>confdefs.h <<\_ACEOF
13905 #define HAVE_INTMAX_T 1
13912 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
13913 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
13914 if test "${ac_cv_have_u_intmax_t+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13918 cat >conftest.$ac_ext <<_ACEOF
13919 #line $LINENO "configure"
13922 cat confdefs.h >>conftest.$ac_ext
13923 cat >>conftest.$ac_ext <<_ACEOF
13924 /* end confdefs.h. */
13925 #include <sys/types.h>
13929 u_intmax_t a; a = 1;
13934 rm -f conftest.$ac_objext
13935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936 (eval $ac_compile) 2>&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); } &&
13940 { ac_try='test -s conftest.$ac_objext'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; then
13946 ac_cv_have_u_intmax_t="yes"
13948 echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13952 cat >conftest.$ac_ext <<_ACEOF
13953 #line $LINENO "configure"
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h. */
13959 #include <stdint.h>
13963 u_intmax_t a; a = 1;
13968 rm -f conftest.$ac_objext
13969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13970 (eval $ac_compile) 2>&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); } &&
13974 { ac_try='test -s conftest.$ac_objext'
13975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976 (eval $ac_try) 2>&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); }; }; then
13980 ac_cv_have_u_intmax_t="yes"
13982 echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13985 ac_cv_have_u_intmax_t="no"
13988 rm -f conftest.$ac_objext conftest.$ac_ext
13992 rm -f conftest.$ac_objext conftest.$ac_ext
13995 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
13996 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
13997 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
13998 cat >>confdefs.h <<\_ACEOF
13999 #define HAVE_U_INTMAX_T 1
14006 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14007 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14008 if test "${ac_cv_have_intxx_t+set}" = set; then
14009 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 cat >conftest.$ac_ext <<_ACEOF
14013 #line $LINENO "configure"
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h. */
14019 #include <sys/types.h>
14023 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14028 rm -f conftest.$ac_objext
14029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14030 (eval $ac_compile) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } &&
14034 { ac_try='test -s conftest.$ac_objext'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 ac_cv_have_intxx_t="yes"
14042 echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14045 ac_cv_have_intxx_t="no"
14048 rm -f conftest.$ac_objext conftest.$ac_ext
14051 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14052 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14053 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14054 cat >>confdefs.h <<\_ACEOF
14055 #define HAVE_INTXX_T 1
14061 echo "$as_me:$LINENO: checking for int64_t type" >&5
14062 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14063 if test "${ac_cv_have_int64_t+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 cat >conftest.$ac_ext <<_ACEOF
14068 #line $LINENO "configure"
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14074 #include <sys/types.h>
14083 rm -f conftest.$ac_objext
14084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14085 (eval $ac_compile) 2>&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); } &&
14089 { ac_try='test -s conftest.$ac_objext'
14090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091 (eval $ac_try) 2>&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; }; then
14095 ac_cv_have_int64_t="yes"
14097 echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14100 ac_cv_have_int64_t="no"
14103 rm -f conftest.$ac_objext conftest.$ac_ext
14106 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14107 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14108 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14109 cat >>confdefs.h <<\_ACEOF
14110 #define HAVE_INT64_T 1
14116 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14117 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14118 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14119 echo $ECHO_N "(cached) $ECHO_C" >&6
14122 cat >conftest.$ac_ext <<_ACEOF
14123 #line $LINENO "configure"
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14129 #include <sys/types.h>
14133 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14138 rm -f conftest.$ac_objext
14139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14140 (eval $ac_compile) 2>&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); } &&
14144 { ac_try='test -s conftest.$ac_objext'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }; then
14150 ac_cv_have_u_intxx_t="yes"
14152 echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14155 ac_cv_have_u_intxx_t="no"
14158 rm -f conftest.$ac_objext conftest.$ac_ext
14161 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14162 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14163 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14164 cat >>confdefs.h <<\_ACEOF
14165 #define HAVE_U_INTXX_T 1
14171 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14172 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14173 if test "${ac_cv_have_u_int64_t+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14177 cat >conftest.$ac_ext <<_ACEOF
14178 #line $LINENO "configure"
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h. */
14184 #include <sys/types.h>
14188 u_int64_t a; a = 1;
14193 rm -f conftest.$ac_objext
14194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195 (eval $ac_compile) 2>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
14199 { ac_try='test -s conftest.$ac_objext'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; }; then
14205 ac_cv_have_u_int64_t="yes"
14207 echo "$as_me: failed program was:" >&5
14208 sed 's/^/| /' conftest.$ac_ext >&5
14210 ac_cv_have_u_int64_t="no"
14213 rm -f conftest.$ac_objext conftest.$ac_ext
14216 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14217 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14218 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14219 cat >>confdefs.h <<\_ACEOF
14220 #define HAVE_U_INT64_T 1
14226 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14227 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14229 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14230 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14231 cat >conftest.$ac_ext <<_ACEOF
14232 #line $LINENO "configure"
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14238 #include <sys/bitypes.h>
14242 int8_t a; int16_t b; int32_t c;
14243 u_int8_t e; u_int16_t f; u_int32_t g;
14244 a = b = c = e = f = g = 1;
14249 rm -f conftest.$ac_objext
14250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14251 (eval $ac_compile) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } &&
14255 { ac_try='test -s conftest.$ac_objext'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261 cat >>confdefs.h <<\_ACEOF
14262 #define HAVE_U_INTXX_T 1
14265 cat >>confdefs.h <<\_ACEOF
14266 #define HAVE_INTXX_T 1
14269 cat >>confdefs.h <<\_ACEOF
14270 #define HAVE_SYS_BITYPES_H 1
14273 echo "$as_me:$LINENO: result: yes" >&5
14274 echo "${ECHO_T}yes" >&6
14276 echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14279 echo "$as_me:$LINENO: result: no" >&5
14280 echo "${ECHO_T}no" >&6
14283 rm -f conftest.$ac_objext conftest.$ac_ext
14286 if test -z "$have_u_intxx_t" ; then
14287 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14288 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14289 if test "${ac_cv_have_uintxx_t+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14293 cat >conftest.$ac_ext <<_ACEOF
14294 #line $LINENO "configure"
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14300 #include <sys/types.h>
14304 uint8_t a; uint16_t b;
14305 uint32_t c; a = b = c = 1;
14310 rm -f conftest.$ac_objext
14311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14312 (eval $ac_compile) 2>&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } &&
14316 { ac_try='test -s conftest.$ac_objext'
14317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318 (eval $ac_try) 2>&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; }; then
14322 ac_cv_have_uintxx_t="yes"
14324 echo "$as_me: failed program was:" >&5
14325 sed 's/^/| /' conftest.$ac_ext >&5
14327 ac_cv_have_uintxx_t="no"
14330 rm -f conftest.$ac_objext conftest.$ac_ext
14333 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14334 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14335 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14336 cat >>confdefs.h <<\_ACEOF
14337 #define HAVE_UINTXX_T 1
14373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14374 echo "$as_me:$LINENO: checking for $ac_func" >&5
14375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14376 if eval "test \"\${$as_ac_var+set}\" = set"; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14379 cat >conftest.$ac_ext <<_ACEOF
14380 #line $LINENO "configure"
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14386 /* System header to define __stub macros and hopefully few prototypes,
14387 which can conflict with char $ac_func (); below.
14388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14389 <limits.h> exists even on freestanding compilers. */
14391 # include <limits.h>
14393 # include <assert.h>
14395 /* Override any gcc2 internal prototype to avoid an error. */
14400 /* We use char because int might match the return type of a gcc2
14401 builtin and then its argument prototype would still apply. */
14403 /* The GNU C library defines this for functions which it implements
14404 to always fail with ENOSYS. Some functions are actually named
14405 something starting with __ and the normal name is an alias. */
14406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14409 char (*f) () = $ac_func;
14418 return f != $ac_func;
14423 rm -f conftest.$ac_objext conftest$ac_exeext
14424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14425 (eval $ac_link) 2>&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); } &&
14429 { ac_try='test -s conftest$ac_exeext'
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; }; then
14435 eval "$as_ac_var=yes"
14437 echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14440 eval "$as_ac_var=no"
14442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14446 if test `eval echo '${'$as_ac_var'}'` = yes; then
14447 cat >>confdefs.h <<_ACEOF
14448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14452 echo 'configure: cannot find needed function.'; exit 1
14459 for ac_func in fchdir
14461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14462 echo "$as_me:$LINENO: checking for $ac_func" >&5
14463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14464 if eval "test \"\${$as_ac_var+set}\" = set"; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14467 cat >conftest.$ac_ext <<_ACEOF
14468 #line $LINENO "configure"
14471 cat confdefs.h >>conftest.$ac_ext
14472 cat >>conftest.$ac_ext <<_ACEOF
14473 /* end confdefs.h. */
14474 /* System header to define __stub macros and hopefully few prototypes,
14475 which can conflict with char $ac_func (); below.
14476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14477 <limits.h> exists even on freestanding compilers. */
14479 # include <limits.h>
14481 # include <assert.h>
14483 /* Override any gcc2 internal prototype to avoid an error. */
14488 /* We use char because int might match the return type of a gcc2
14489 builtin and then its argument prototype would still apply. */
14491 /* The GNU C library defines this for functions which it implements
14492 to always fail with ENOSYS. Some functions are actually named
14493 something starting with __ and the normal name is an alias. */
14494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14497 char (*f) () = $ac_func;
14506 return f != $ac_func;
14511 rm -f conftest.$ac_objext conftest$ac_exeext
14512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14513 (eval $ac_link) 2>&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); } &&
14517 { ac_try='test -s conftest$ac_exeext'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; }; then
14523 eval "$as_ac_var=yes"
14525 echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14528 eval "$as_ac_var=no"
14530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14534 if test `eval echo '${'$as_ac_var'}'` = yes; then
14535 cat >>confdefs.h <<_ACEOF
14536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14538 cat >>confdefs.h <<\_ACEOF
14539 #define HAVE_FCHDIR 1
14546 for ac_func in strtoll
14548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14549 echo "$as_me:$LINENO: checking for $ac_func" >&5
14550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14551 if eval "test \"\${$as_ac_var+set}\" = set"; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
14554 cat >conftest.$ac_ext <<_ACEOF
14555 #line $LINENO "configure"
14558 cat confdefs.h >>conftest.$ac_ext
14559 cat >>conftest.$ac_ext <<_ACEOF
14560 /* end confdefs.h. */
14561 /* System header to define __stub macros and hopefully few prototypes,
14562 which can conflict with char $ac_func (); below.
14563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14564 <limits.h> exists even on freestanding compilers. */
14566 # include <limits.h>
14568 # include <assert.h>
14570 /* Override any gcc2 internal prototype to avoid an error. */
14575 /* We use char because int might match the return type of a gcc2
14576 builtin and then its argument prototype would still apply. */
14578 /* The GNU C library defines this for functions which it implements
14579 to always fail with ENOSYS. Some functions are actually named
14580 something starting with __ and the normal name is an alias. */
14581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14584 char (*f) () = $ac_func;
14593 return f != $ac_func;
14598 rm -f conftest.$ac_objext conftest$ac_exeext
14599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14600 (eval $ac_link) 2>&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } &&
14604 { ac_try='test -s conftest$ac_exeext'
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 eval "$as_ac_var=yes"
14612 echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.$ac_ext >&5
14615 eval "$as_ac_var=no"
14617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14621 if test `eval echo '${'$as_ac_var'}'` = yes; then
14622 cat >>confdefs.h <<_ACEOF
14623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14625 cat >>confdefs.h <<\_ACEOF
14626 #define HAVE_STRTOLL 1
14634 for ac_func in chflags
14636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14637 echo "$as_me:$LINENO: checking for $ac_func" >&5
14638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14639 if eval "test \"\${$as_ac_var+set}\" = set"; then
14640 echo $ECHO_N "(cached) $ECHO_C" >&6
14642 cat >conftest.$ac_ext <<_ACEOF
14643 #line $LINENO "configure"
14646 cat confdefs.h >>conftest.$ac_ext
14647 cat >>conftest.$ac_ext <<_ACEOF
14648 /* end confdefs.h. */
14649 /* System header to define __stub macros and hopefully few prototypes,
14650 which can conflict with char $ac_func (); below.
14651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14652 <limits.h> exists even on freestanding compilers. */
14654 # include <limits.h>
14656 # include <assert.h>
14658 /* Override any gcc2 internal prototype to avoid an error. */
14663 /* We use char because int might match the return type of a gcc2
14664 builtin and then its argument prototype would still apply. */
14666 /* The GNU C library defines this for functions which it implements
14667 to always fail with ENOSYS. Some functions are actually named
14668 something starting with __ and the normal name is an alias. */
14669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14672 char (*f) () = $ac_func;
14681 return f != $ac_func;
14686 rm -f conftest.$ac_objext conftest$ac_exeext
14687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14688 (eval $ac_link) 2>&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } &&
14692 { ac_try='test -s conftest$ac_exeext'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; }; then
14698 eval "$as_ac_var=yes"
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14703 eval "$as_ac_var=no"
14705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14709 if test `eval echo '${'$as_ac_var'}'` = yes; then
14710 cat >>confdefs.h <<_ACEOF
14711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14722 for ac_func in snprintf vsnprintf gethostid getdomainname
14724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14725 echo "$as_me:$LINENO: checking for $ac_func" >&5
14726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14727 if eval "test \"\${$as_ac_var+set}\" = set"; then
14728 echo $ECHO_N "(cached) $ECHO_C" >&6
14730 cat >conftest.$ac_ext <<_ACEOF
14731 #line $LINENO "configure"
14734 cat confdefs.h >>conftest.$ac_ext
14735 cat >>conftest.$ac_ext <<_ACEOF
14736 /* end confdefs.h. */
14737 /* System header to define __stub macros and hopefully few prototypes,
14738 which can conflict with char $ac_func (); below.
14739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14740 <limits.h> exists even on freestanding compilers. */
14742 # include <limits.h>
14744 # include <assert.h>
14746 /* Override any gcc2 internal prototype to avoid an error. */
14751 /* We use char because int might match the return type of a gcc2
14752 builtin and then its argument prototype would still apply. */
14754 /* The GNU C library defines this for functions which it implements
14755 to always fail with ENOSYS. Some functions are actually named
14756 something starting with __ and the normal name is an alias. */
14757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14760 char (*f) () = $ac_func;
14769 return f != $ac_func;
14774 rm -f conftest.$ac_objext conftest$ac_exeext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14776 (eval $ac_link) 2>&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } &&
14780 { ac_try='test -s conftest$ac_exeext'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }; then
14786 eval "$as_ac_var=yes"
14788 echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14791 eval "$as_ac_var=no"
14793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14797 if test `eval echo '${'$as_ac_var'}'` = yes; then
14798 cat >>confdefs.h <<_ACEOF
14799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14810 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
14812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14813 echo "$as_me:$LINENO: checking for $ac_func" >&5
14814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14815 if eval "test \"\${$as_ac_var+set}\" = set"; then
14816 echo $ECHO_N "(cached) $ECHO_C" >&6
14818 cat >conftest.$ac_ext <<_ACEOF
14819 #line $LINENO "configure"
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14825 /* System header to define __stub macros and hopefully few prototypes,
14826 which can conflict with char $ac_func (); below.
14827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14828 <limits.h> exists even on freestanding compilers. */
14830 # include <limits.h>
14832 # include <assert.h>
14834 /* Override any gcc2 internal prototype to avoid an error. */
14839 /* We use char because int might match the return type of a gcc2
14840 builtin and then its argument prototype would still apply. */
14842 /* The GNU C library defines this for functions which it implements
14843 to always fail with ENOSYS. Some functions are actually named
14844 something starting with __ and the normal name is an alias. */
14845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14848 char (*f) () = $ac_func;
14857 return f != $ac_func;
14862 rm -f conftest.$ac_objext conftest$ac_exeext
14863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14864 (eval $ac_link) 2>&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } &&
14868 { ac_try='test -s conftest$ac_exeext'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; }; then
14874 eval "$as_ac_var=yes"
14876 echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14879 eval "$as_ac_var=no"
14881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14885 if test `eval echo '${'$as_ac_var'}'` = yes; then
14886 cat >>confdefs.h <<_ACEOF
14887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14894 # If resolver functions are not in libc check for -lnsl or -lresolv.
14895 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
14896 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
14897 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14900 cat >conftest.$ac_ext <<_ACEOF
14901 #line $LINENO "configure"
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14907 /* System header to define __stub macros and hopefully few prototypes,
14908 which can conflict with char gethostbyname_r (); below.
14909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14910 <limits.h> exists even on freestanding compilers. */
14912 # include <limits.h>
14914 # include <assert.h>
14916 /* Override any gcc2 internal prototype to avoid an error. */
14921 /* We use char because int might match the return type of a gcc2
14922 builtin and then its argument prototype would still apply. */
14923 char gethostbyname_r ();
14924 /* The GNU C library defines this for functions which it implements
14925 to always fail with ENOSYS. Some functions are actually named
14926 something starting with __ and the normal name is an alias. */
14927 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
14930 char (*f) () = gethostbyname_r;
14939 return f != gethostbyname_r;
14944 rm -f conftest.$ac_objext conftest$ac_exeext
14945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14946 (eval $ac_link) 2>&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } &&
14950 { ac_try='test -s conftest$ac_exeext'
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; }; then
14956 ac_cv_func_gethostbyname_r=yes
14958 echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14961 ac_cv_func_gethostbyname_r=no
14963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14965 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
14966 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
14967 if test $ac_cv_func_gethostbyname_r = yes; then
14968 echo "$as_me:$LINENO: result: using libc's resolver" >&5
14969 echo "${ECHO_T}using libc's resolver" >&6
14972 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
14973 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
14974 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14977 ac_check_lib_save_LIBS=$LIBS
14979 cat >conftest.$ac_ext <<_ACEOF
14980 #line $LINENO "configure"
14983 cat confdefs.h >>conftest.$ac_ext
14984 cat >>conftest.$ac_ext <<_ACEOF
14985 /* end confdefs.h. */
14987 /* Override any gcc2 internal prototype to avoid an error. */
14991 /* We use char because int might match the return type of a gcc2
14992 builtin and then its argument prototype would still apply. */
14993 char gethostbyname_r ();
14997 gethostbyname_r ();
15002 rm -f conftest.$ac_objext conftest$ac_exeext
15003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15004 (eval $ac_link) 2>&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } &&
15008 { ac_try='test -s conftest$ac_exeext'
15009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010 (eval $ac_try) 2>&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; }; then
15014 ac_cv_lib_nsl_gethostbyname_r=yes
15016 echo "$as_me: failed program was:" >&5
15017 sed 's/^/| /' conftest.$ac_ext >&5
15019 ac_cv_lib_nsl_gethostbyname_r=no
15021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15022 LIBS=$ac_check_lib_save_LIBS
15024 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15025 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15026 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15027 cat >>confdefs.h <<_ACEOF
15028 #define HAVE_LIBNSL 1
15036 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15037 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15038 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15039 echo $ECHO_N "(cached) $ECHO_C" >&6
15041 ac_check_lib_save_LIBS=$LIBS
15042 LIBS="-lresolv $LIBS"
15043 cat >conftest.$ac_ext <<_ACEOF
15044 #line $LINENO "configure"
15047 cat confdefs.h >>conftest.$ac_ext
15048 cat >>conftest.$ac_ext <<_ACEOF
15049 /* end confdefs.h. */
15051 /* Override any gcc2 internal prototype to avoid an error. */
15055 /* We use char because int might match the return type of a gcc2
15056 builtin and then its argument prototype would still apply. */
15057 char gethostbyname_r ();
15061 gethostbyname_r ();
15066 rm -f conftest.$ac_objext conftest$ac_exeext
15067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15068 (eval $ac_link) 2>&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); } &&
15072 { ac_try='test -s conftest$ac_exeext'
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15078 ac_cv_lib_resolv_gethostbyname_r=yes
15080 echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15083 ac_cv_lib_resolv_gethostbyname_r=no
15085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15086 LIBS=$ac_check_lib_save_LIBS
15088 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15089 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15090 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15091 cat >>confdefs.h <<_ACEOF
15092 #define HAVE_LIBRESOLV 1
15095 LIBS="-lresolv $LIBS"
15103 # Find where sockets are (especially for Solaris)
15104 echo "$as_me:$LINENO: checking for socket" >&5
15105 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15106 if test "${ac_cv_func_socket+set}" = set; then
15107 echo $ECHO_N "(cached) $ECHO_C" >&6
15109 cat >conftest.$ac_ext <<_ACEOF
15110 #line $LINENO "configure"
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h. */
15116 /* System header to define __stub macros and hopefully few prototypes,
15117 which can conflict with char socket (); below.
15118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15119 <limits.h> exists even on freestanding compilers. */
15121 # include <limits.h>
15123 # include <assert.h>
15125 /* Override any gcc2 internal prototype to avoid an error. */
15130 /* We use char because int might match the return type of a gcc2
15131 builtin and then its argument prototype would still apply. */
15133 /* The GNU C library defines this for functions which it implements
15134 to always fail with ENOSYS. Some functions are actually named
15135 something starting with __ and the normal name is an alias. */
15136 #if defined (__stub_socket) || defined (__stub___socket)
15139 char (*f) () = socket;
15148 return f != socket;
15153 rm -f conftest.$ac_objext conftest$ac_exeext
15154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15155 (eval $ac_link) 2>&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } &&
15159 { ac_try='test -s conftest$ac_exeext'
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; }; then
15165 ac_cv_func_socket=yes
15167 echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15170 ac_cv_func_socket=no
15172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15174 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15175 echo "${ECHO_T}$ac_cv_func_socket" >&6
15176 if test $ac_cv_func_socket = yes; then
15177 echo "$as_me:$LINENO: result: using libc's socket" >&5
15178 echo "${ECHO_T}using libc's socket" >&6
15181 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15182 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15183 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15184 echo $ECHO_N "(cached) $ECHO_C" >&6
15186 ac_check_lib_save_LIBS=$LIBS
15187 LIBS="-lxnet $LIBS"
15188 cat >conftest.$ac_ext <<_ACEOF
15189 #line $LINENO "configure"
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h. */
15196 /* Override any gcc2 internal prototype to avoid an error. */
15200 /* We use char because int might match the return type of a gcc2
15201 builtin and then its argument prototype would still apply. */
15211 rm -f conftest.$ac_objext conftest$ac_exeext
15212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15213 (eval $ac_link) 2>&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } &&
15217 { ac_try='test -s conftest$ac_exeext'
15218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15219 (eval $ac_try) 2>&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); }; }; then
15223 ac_cv_lib_xnet_socket=yes
15225 echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15228 ac_cv_lib_xnet_socket=no
15230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15231 LIBS=$ac_check_lib_save_LIBS
15233 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15234 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15235 if test $ac_cv_lib_xnet_socket = yes; then
15236 cat >>confdefs.h <<_ACEOF
15237 #define HAVE_LIBXNET 1
15240 LIBS="-lxnet $LIBS"
15245 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15246 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15247 if test "${ac_cv_lib_socket_socket+set}" = set; then
15248 echo $ECHO_N "(cached) $ECHO_C" >&6
15250 ac_check_lib_save_LIBS=$LIBS
15251 LIBS="-lsocket $LIBS"
15252 cat >conftest.$ac_ext <<_ACEOF
15253 #line $LINENO "configure"
15256 cat confdefs.h >>conftest.$ac_ext
15257 cat >>conftest.$ac_ext <<_ACEOF
15258 /* end confdefs.h. */
15260 /* 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. */
15275 rm -f conftest.$ac_objext conftest$ac_exeext
15276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15277 (eval $ac_link) 2>&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); } &&
15281 { ac_try='test -s conftest$ac_exeext'
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; }; then
15287 ac_cv_lib_socket_socket=yes
15289 echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15292 ac_cv_lib_socket_socket=no
15294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15295 LIBS=$ac_check_lib_save_LIBS
15297 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15298 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15299 if test $ac_cv_lib_socket_socket = yes; then
15300 cat >>confdefs.h <<_ACEOF
15301 #define HAVE_LIBSOCKET 1
15304 LIBS="-lsocket $LIBS"
15309 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15310 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15311 if test "${ac_cv_lib_inet_socket+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15314 ac_check_lib_save_LIBS=$LIBS
15315 LIBS="-linet $LIBS"
15316 cat >conftest.$ac_ext <<_ACEOF
15317 #line $LINENO "configure"
15320 cat confdefs.h >>conftest.$ac_ext
15321 cat >>conftest.$ac_ext <<_ACEOF
15322 /* end confdefs.h. */
15324 /* Override any gcc2 internal prototype to avoid an error. */
15328 /* We use char because int might match the return type of a gcc2
15329 builtin and then its argument prototype would still apply. */
15339 rm -f conftest.$ac_objext conftest$ac_exeext
15340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15341 (eval $ac_link) 2>&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } &&
15345 { ac_try='test -s conftest$ac_exeext'
15346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347 (eval $ac_try) 2>&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; }; then
15351 ac_cv_lib_inet_socket=yes
15353 echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.$ac_ext >&5
15356 ac_cv_lib_inet_socket=no
15358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15359 LIBS=$ac_check_lib_save_LIBS
15361 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15362 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15363 if test $ac_cv_lib_inet_socket = yes; then
15364 cat >>confdefs.h <<_ACEOF
15365 #define HAVE_LIBINET 1
15368 LIBS="-linet $LIBS"
15376 for ac_func in inet_pton
15378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15379 echo "$as_me:$LINENO: checking for $ac_func" >&5
15380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15381 if eval "test \"\${$as_ac_var+set}\" = set"; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15384 cat >conftest.$ac_ext <<_ACEOF
15385 #line $LINENO "configure"
15388 cat confdefs.h >>conftest.$ac_ext
15389 cat >>conftest.$ac_ext <<_ACEOF
15390 /* end confdefs.h. */
15391 /* System header to define __stub macros and hopefully few prototypes,
15392 which can conflict with char $ac_func (); below.
15393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15394 <limits.h> exists even on freestanding compilers. */
15396 # include <limits.h>
15398 # include <assert.h>
15400 /* Override any gcc2 internal prototype to avoid an error. */
15405 /* We use char because int might match the return type of a gcc2
15406 builtin and then its argument prototype would still apply. */
15408 /* The GNU C library defines this for functions which it implements
15409 to always fail with ENOSYS. Some functions are actually named
15410 something starting with __ and the normal name is an alias. */
15411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15414 char (*f) () = $ac_func;
15423 return f != $ac_func;
15428 rm -f conftest.$ac_objext conftest$ac_exeext
15429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15430 (eval $ac_link) 2>&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } &&
15434 { ac_try='test -s conftest$ac_exeext'
15435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436 (eval $ac_try) 2>&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; }; then
15440 eval "$as_ac_var=yes"
15442 echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15445 eval "$as_ac_var=no"
15447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15451 if test `eval echo '${'$as_ac_var'}'` = yes; then
15452 cat >>confdefs.h <<_ACEOF
15453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15455 cat >>confdefs.h <<\_ACEOF
15456 #define HAVE_INET_PTON 1
15464 for ac_func in strftime
15466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15467 echo "$as_me:$LINENO: checking for $ac_func" >&5
15468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15469 if eval "test \"\${$as_ac_var+set}\" = set"; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15472 cat >conftest.$ac_ext <<_ACEOF
15473 #line $LINENO "configure"
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h. */
15479 /* System header to define __stub macros and hopefully few prototypes,
15480 which can conflict with char $ac_func (); below.
15481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15482 <limits.h> exists even on freestanding compilers. */
15484 # include <limits.h>
15486 # include <assert.h>
15488 /* Override any gcc2 internal prototype to avoid an error. */
15493 /* We use char because int might match the return type of a gcc2
15494 builtin and then its argument prototype would still apply. */
15496 /* The GNU C library defines this for functions which it implements
15497 to always fail with ENOSYS. Some functions are actually named
15498 something starting with __ and the normal name is an alias. */
15499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15502 char (*f) () = $ac_func;
15511 return f != $ac_func;
15516 rm -f conftest.$ac_objext conftest$ac_exeext
15517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15518 (eval $ac_link) 2>&5
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); } &&
15522 { ac_try='test -s conftest$ac_exeext'
15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15528 eval "$as_ac_var=yes"
15530 echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15533 eval "$as_ac_var=no"
15535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15539 if test `eval echo '${'$as_ac_var'}'` = yes; then
15540 cat >>confdefs.h <<_ACEOF
15541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15545 # strftime is in -lintl on SCO UNIX.
15546 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15547 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
15548 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 ac_check_lib_save_LIBS=$LIBS
15552 LIBS="-lintl $LIBS"
15553 cat >conftest.$ac_ext <<_ACEOF
15554 #line $LINENO "configure"
15557 cat confdefs.h >>conftest.$ac_ext
15558 cat >>conftest.$ac_ext <<_ACEOF
15559 /* end confdefs.h. */
15561 /* Override any gcc2 internal prototype to avoid an error. */
15565 /* We use char because int might match the return type of a gcc2
15566 builtin and then its argument prototype would still apply. */
15576 rm -f conftest.$ac_objext conftest$ac_exeext
15577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15578 (eval $ac_link) 2>&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } &&
15582 { ac_try='test -s conftest$ac_exeext'
15583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584 (eval $ac_try) 2>&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); }; }; then
15588 ac_cv_lib_intl_strftime=yes
15590 echo "$as_me: failed program was:" >&5
15591 sed 's/^/| /' conftest.$ac_ext >&5
15593 ac_cv_lib_intl_strftime=no
15595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15596 LIBS=$ac_check_lib_save_LIBS
15598 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15599 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
15600 if test $ac_cv_lib_intl_strftime = yes; then
15601 cat >>confdefs.h <<\_ACEOF
15602 #define HAVE_STRFTIME 1
15605 LIBS="-lintl $LIBS"
15612 for ac_func in vprintf
15614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15615 echo "$as_me:$LINENO: checking for $ac_func" >&5
15616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15617 if eval "test \"\${$as_ac_var+set}\" = set"; then
15618 echo $ECHO_N "(cached) $ECHO_C" >&6
15620 cat >conftest.$ac_ext <<_ACEOF
15621 #line $LINENO "configure"
15624 cat confdefs.h >>conftest.$ac_ext
15625 cat >>conftest.$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15627 /* System header to define __stub macros and hopefully few prototypes,
15628 which can conflict with char $ac_func (); below.
15629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15630 <limits.h> exists even on freestanding compilers. */
15632 # include <limits.h>
15634 # include <assert.h>
15636 /* Override any gcc2 internal prototype to avoid an error. */
15641 /* We use char because int might match the return type of a gcc2
15642 builtin and then its argument prototype would still apply. */
15644 /* The GNU C library defines this for functions which it implements
15645 to always fail with ENOSYS. Some functions are actually named
15646 something starting with __ and the normal name is an alias. */
15647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15650 char (*f) () = $ac_func;
15659 return f != $ac_func;
15664 rm -f conftest.$ac_objext conftest$ac_exeext
15665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15666 (eval $ac_link) 2>&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } &&
15670 { ac_try='test -s conftest$ac_exeext'
15671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672 (eval $ac_try) 2>&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; }; then
15676 eval "$as_ac_var=yes"
15678 echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15681 eval "$as_ac_var=no"
15683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15687 if test `eval echo '${'$as_ac_var'}'` = yes; then
15688 cat >>confdefs.h <<_ACEOF
15689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15692 echo "$as_me:$LINENO: checking for _doprnt" >&5
15693 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
15694 if test "${ac_cv_func__doprnt+set}" = set; then
15695 echo $ECHO_N "(cached) $ECHO_C" >&6
15697 cat >conftest.$ac_ext <<_ACEOF
15698 #line $LINENO "configure"
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h. */
15704 /* System header to define __stub macros and hopefully few prototypes,
15705 which can conflict with char _doprnt (); below.
15706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15707 <limits.h> exists even on freestanding compilers. */
15709 # include <limits.h>
15711 # include <assert.h>
15713 /* Override any gcc2 internal prototype to avoid an error. */
15718 /* We use char because int might match the return type of a gcc2
15719 builtin and then its argument prototype would still apply. */
15721 /* The GNU C library defines this for functions which it implements
15722 to always fail with ENOSYS. Some functions are actually named
15723 something starting with __ and the normal name is an alias. */
15724 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15727 char (*f) () = _doprnt;
15736 return f != _doprnt;
15741 rm -f conftest.$ac_objext conftest$ac_exeext
15742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15743 (eval $ac_link) 2>&5
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); } &&
15747 { ac_try='test -s conftest$ac_exeext'
15748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749 (eval $ac_try) 2>&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; }; then
15753 ac_cv_func__doprnt=yes
15755 echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15758 ac_cv_func__doprnt=no
15760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15762 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15763 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
15764 if test $ac_cv_func__doprnt = yes; then
15766 cat >>confdefs.h <<\_ACEOF
15767 #define HAVE_DOPRNT 1
15776 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15777 # for constant arguments. Useless!
15778 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15779 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15780 if test "${ac_cv_working_alloca_h+set}" = set; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15783 cat >conftest.$ac_ext <<_ACEOF
15784 #line $LINENO "configure"
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 #include <alloca.h>
15794 char *p = (char *) alloca (2 * sizeof (int));
15799 rm -f conftest.$ac_objext conftest$ac_exeext
15800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15801 (eval $ac_link) 2>&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } &&
15805 { ac_try='test -s conftest$ac_exeext'
15806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807 (eval $ac_try) 2>&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; }; then
15811 ac_cv_working_alloca_h=yes
15813 echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15816 ac_cv_working_alloca_h=no
15818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15820 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15821 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15822 if test $ac_cv_working_alloca_h = yes; then
15824 cat >>confdefs.h <<\_ACEOF
15825 #define HAVE_ALLOCA_H 1
15830 echo "$as_me:$LINENO: checking for alloca" >&5
15831 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15832 if test "${ac_cv_func_alloca_works+set}" = set; then
15833 echo $ECHO_N "(cached) $ECHO_C" >&6
15835 cat >conftest.$ac_ext <<_ACEOF
15836 #line $LINENO "configure"
15839 cat confdefs.h >>conftest.$ac_ext
15840 cat >>conftest.$ac_ext <<_ACEOF
15841 /* end confdefs.h. */
15843 # define alloca __builtin_alloca
15846 # include <malloc.h>
15847 # define alloca _alloca
15850 # include <alloca.h>
15855 # ifndef alloca /* predefined by HP cc +Olibcalls */
15866 char *p = (char *) alloca (1);
15871 rm -f conftest.$ac_objext conftest$ac_exeext
15872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15873 (eval $ac_link) 2>&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } &&
15877 { ac_try='test -s conftest$ac_exeext'
15878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879 (eval $ac_try) 2>&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); }; }; then
15883 ac_cv_func_alloca_works=yes
15885 echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15888 ac_cv_func_alloca_works=no
15890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15892 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15893 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15895 if test $ac_cv_func_alloca_works = yes; then
15897 cat >>confdefs.h <<\_ACEOF
15898 #define HAVE_ALLOCA 1
15902 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15903 # that cause trouble. Some versions do not even contain alloca or
15904 # contain a buggy version. If you still want to use their alloca,
15905 # use ar to extract alloca.o from them instead of compiling alloca.c.
15907 ALLOCA=alloca.$ac_objext
15909 cat >>confdefs.h <<\_ACEOF
15914 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15915 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15916 if test "${ac_cv_os_cray+set}" = set; then
15917 echo $ECHO_N "(cached) $ECHO_C" >&6
15919 cat >conftest.$ac_ext <<_ACEOF
15920 #line $LINENO "configure"
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h. */
15926 #if defined(CRAY) && ! defined(CRAY2)
15933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15934 $EGREP "webecray" >/dev/null 2>&1; then
15942 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15943 echo "${ECHO_T}$ac_cv_os_cray" >&6
15944 if test $ac_cv_os_cray = yes; then
15945 for ac_func in _getb67 GETB67 getb67; do
15946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15947 echo "$as_me:$LINENO: checking for $ac_func" >&5
15948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15949 if eval "test \"\${$as_ac_var+set}\" = set"; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15952 cat >conftest.$ac_ext <<_ACEOF
15953 #line $LINENO "configure"
15956 cat confdefs.h >>conftest.$ac_ext
15957 cat >>conftest.$ac_ext <<_ACEOF
15958 /* end confdefs.h. */
15959 /* System header to define __stub macros and hopefully few prototypes,
15960 which can conflict with char $ac_func (); below.
15961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15962 <limits.h> exists even on freestanding compilers. */
15964 # include <limits.h>
15966 # include <assert.h>
15968 /* Override any gcc2 internal prototype to avoid an error. */
15973 /* We use char because int might match the return type of a gcc2
15974 builtin and then its argument prototype would still apply. */
15976 /* The GNU C library defines this for functions which it implements
15977 to always fail with ENOSYS. Some functions are actually named
15978 something starting with __ and the normal name is an alias. */
15979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15982 char (*f) () = $ac_func;
15991 return f != $ac_func;
15996 rm -f conftest.$ac_objext conftest$ac_exeext
15997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15998 (eval $ac_link) 2>&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } &&
16002 { ac_try='test -s conftest$ac_exeext'
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; }; then
16008 eval "$as_ac_var=yes"
16010 echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16013 eval "$as_ac_var=no"
16015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16019 if test `eval echo '${'$as_ac_var'}'` = yes; then
16021 cat >>confdefs.h <<_ACEOF
16022 #define CRAY_STACKSEG_END $ac_func
16031 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16032 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16033 if test "${ac_cv_c_stack_direction+set}" = set; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16036 if test "$cross_compiling" = yes; then
16037 ac_cv_c_stack_direction=0
16039 cat >conftest.$ac_ext <<_ACEOF
16040 #line $LINENO "configure"
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h. */
16047 find_stack_direction ()
16049 static char *addr = 0;
16054 return find_stack_direction ();
16057 return (&dummy > addr) ? 1 : -1;
16063 exit (find_stack_direction () < 0);
16066 rm -f conftest$ac_exeext
16067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16068 (eval $ac_link) 2>&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073 (eval $ac_try) 2>&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; }; then
16077 ac_cv_c_stack_direction=1
16079 echo "$as_me: program exited with status $ac_status" >&5
16080 echo "$as_me: failed program was:" >&5
16081 sed 's/^/| /' conftest.$ac_ext >&5
16083 ( exit $ac_status )
16084 ac_cv_c_stack_direction=-1
16086 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16089 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16090 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16092 cat >>confdefs.h <<_ACEOF
16093 #define STACK_DIRECTION $ac_cv_c_stack_direction
16099 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16100 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16101 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16102 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16103 echo $ECHO_N "(cached) $ECHO_C" >&6
16105 ac_check_lib_save_LIBS=$LIBS
16107 cat >conftest.$ac_ext <<_ACEOF
16108 #line $LINENO "configure"
16111 cat confdefs.h >>conftest.$ac_ext
16112 cat >>conftest.$ac_ext <<_ACEOF
16113 /* end confdefs.h. */
16115 /* Override any gcc2 internal prototype to avoid an error. */
16119 /* We use char because int might match the return type of a gcc2
16120 builtin and then its argument prototype would still apply. */
16130 rm -f conftest.$ac_objext conftest$ac_exeext
16131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16132 (eval $ac_link) 2>&5
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); } &&
16136 { ac_try='test -s conftest$ac_exeext'
16137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138 (eval $ac_try) 2>&5
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; }; then
16142 ac_cv_lib_sun_getmntent=yes
16144 echo "$as_me: failed program was:" >&5
16145 sed 's/^/| /' conftest.$ac_ext >&5
16147 ac_cv_lib_sun_getmntent=no
16149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16150 LIBS=$ac_check_lib_save_LIBS
16152 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16153 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16154 if test $ac_cv_lib_sun_getmntent = yes; then
16157 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16158 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16159 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16160 echo $ECHO_N "(cached) $ECHO_C" >&6
16162 ac_check_lib_save_LIBS=$LIBS
16164 cat >conftest.$ac_ext <<_ACEOF
16165 #line $LINENO "configure"
16168 cat confdefs.h >>conftest.$ac_ext
16169 cat >>conftest.$ac_ext <<_ACEOF
16170 /* end confdefs.h. */
16172 /* Override any gcc2 internal prototype to avoid an error. */
16176 /* We use char because int might match the return type of a gcc2
16177 builtin and then its argument prototype would still apply. */
16187 rm -f conftest.$ac_objext conftest$ac_exeext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16189 (eval $ac_link) 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); } &&
16193 { ac_try='test -s conftest$ac_exeext'
16194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195 (eval $ac_try) 2>&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; }; then
16199 ac_cv_lib_seq_getmntent=yes
16201 echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16204 ac_cv_lib_seq_getmntent=no
16206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16207 LIBS=$ac_check_lib_save_LIBS
16209 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16210 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16211 if test $ac_cv_lib_seq_getmntent = yes; then
16214 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16215 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16216 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16217 echo $ECHO_N "(cached) $ECHO_C" >&6
16219 ac_check_lib_save_LIBS=$LIBS
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. */
16229 /* Override any gcc2 internal prototype to avoid an error. */
16233 /* We use char because int might match the return type of a gcc2
16234 builtin and then its argument prototype would still apply. */
16244 rm -f conftest.$ac_objext conftest$ac_exeext
16245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16246 (eval $ac_link) 2>&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } &&
16250 { ac_try='test -s conftest$ac_exeext'
16251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252 (eval $ac_try) 2>&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; }; then
16256 ac_cv_lib_gen_getmntent=yes
16258 echo "$as_me: failed program was:" >&5
16259 sed 's/^/| /' conftest.$ac_ext >&5
16261 ac_cv_lib_gen_getmntent=no
16263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16264 LIBS=$ac_check_lib_save_LIBS
16266 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16267 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16268 if test $ac_cv_lib_gen_getmntent = yes; then
16277 for ac_func in getmntent
16279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16280 echo "$as_me:$LINENO: checking for $ac_func" >&5
16281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16282 if eval "test \"\${$as_ac_var+set}\" = set"; then
16283 echo $ECHO_N "(cached) $ECHO_C" >&6
16285 cat >conftest.$ac_ext <<_ACEOF
16286 #line $LINENO "configure"
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h. */
16292 /* System header to define __stub macros and hopefully few prototypes,
16293 which can conflict with char $ac_func (); below.
16294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16295 <limits.h> exists even on freestanding compilers. */
16297 # include <limits.h>
16299 # include <assert.h>
16301 /* Override any gcc2 internal prototype to avoid an error. */
16306 /* We use char because int might match the return type of a gcc2
16307 builtin and then its argument prototype would still apply. */
16309 /* The GNU C library defines this for functions which it implements
16310 to always fail with ENOSYS. Some functions are actually named
16311 something starting with __ and the normal name is an alias. */
16312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16315 char (*f) () = $ac_func;
16324 return f != $ac_func;
16329 rm -f conftest.$ac_objext conftest$ac_exeext
16330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16331 (eval $ac_link) 2>&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } &&
16335 { ac_try='test -s conftest$ac_exeext'
16336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16337 (eval $ac_try) 2>&5
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); }; }; then
16341 eval "$as_ac_var=yes"
16343 echo "$as_me: failed program was:" >&5
16344 sed 's/^/| /' conftest.$ac_ext >&5
16346 eval "$as_ac_var=no"
16348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16352 if test `eval echo '${'$as_ac_var'}'` = yes; then
16353 cat >>confdefs.h <<_ACEOF
16354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16361 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16362 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16363 if test "${ac_cv_func_closedir_void+set}" = set; then
16364 echo $ECHO_N "(cached) $ECHO_C" >&6
16366 if test "$cross_compiling" = yes; then
16367 ac_cv_func_closedir_void=yes
16369 cat >conftest.$ac_ext <<_ACEOF
16370 #line $LINENO "configure"
16373 cat confdefs.h >>conftest.$ac_ext
16374 cat >>conftest.$ac_ext <<_ACEOF
16375 /* end confdefs.h. */
16376 $ac_includes_default
16377 #include <$ac_header_dirent>
16378 #ifndef __cplusplus
16385 exit (closedir (opendir (".")) != 0);
16390 rm -f conftest$ac_exeext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16392 (eval $ac_link) 2>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397 (eval $ac_try) 2>&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; }; then
16401 ac_cv_func_closedir_void=no
16403 echo "$as_me: program exited with status $ac_status" >&5
16404 echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16407 ( exit $ac_status )
16408 ac_cv_func_closedir_void=yes
16410 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16413 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
16414 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
16415 if test $ac_cv_func_closedir_void = yes; then
16417 cat >>confdefs.h <<\_ACEOF
16418 #define CLOSEDIR_VOID 1
16423 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16424 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16425 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16426 echo $ECHO_N "(cached) $ECHO_C" >&6
16428 if test "$cross_compiling" = yes; then
16429 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16430 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16431 { (exit 1); exit 1; }; }
16433 cat >conftest.$ac_ext <<_ACEOF
16434 #line $LINENO "configure"
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h. */
16441 # include <unistd.h>
16447 /* If this system has a BSD-style setpgrp which takes arguments,
16448 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16449 exit successfully. */
16450 exit (setpgrp (1,1) == -1 ? 0 : 1);
16455 rm -f conftest$ac_exeext
16456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16457 (eval $ac_link) 2>&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462 (eval $ac_try) 2>&5
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }; }; then
16466 ac_cv_func_setpgrp_void=no
16468 echo "$as_me: program exited with status $ac_status" >&5
16469 echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16472 ( exit $ac_status )
16473 ac_cv_func_setpgrp_void=yes
16475 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16478 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16479 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16480 if test $ac_cv_func_setpgrp_void = yes; then
16482 cat >>confdefs.h <<\_ACEOF
16483 #define SETPGRP_VOID 1
16487 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
16488 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
16489 if test "${ac_cv_func_fnmatch_works+set}" = set; then
16490 echo $ECHO_N "(cached) $ECHO_C" >&6
16492 # Some versions of Solaris, SCO, and the GNU C Library
16493 # have a broken or incompatible fnmatch.
16494 # So we run a test program. If we are cross-compiling, take no chance.
16495 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
16496 if test "$cross_compiling" = yes; then
16497 ac_cv_func_fnmatch_works=cross
16499 cat >conftest.$ac_ext <<_ACEOF
16500 #line $LINENO "configure"
16503 cat confdefs.h >>conftest.$ac_ext
16504 cat >>conftest.$ac_ext <<_ACEOF
16505 /* end confdefs.h. */
16506 #include <fnmatch.h>
16507 # define y(a, b, c) (fnmatch (a, b, c) == 0)
16508 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
16514 (!(y ("a*", "abc", 0)
16515 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
16516 && y ("a\\\\bc", "abc", 0)
16517 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
16518 && y ("*x", ".x", 0)
16519 && n ("*x", ".x", FNM_PERIOD)
16525 rm -f conftest$ac_exeext
16526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16527 (eval $ac_link) 2>&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532 (eval $ac_try) 2>&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; }; then
16536 ac_cv_func_fnmatch_works=yes
16538 echo "$as_me: program exited with status $ac_status" >&5
16539 echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16542 ( exit $ac_status )
16543 ac_cv_func_fnmatch_works=no
16545 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16548 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
16549 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
16550 if test $ac_cv_func_fnmatch_works = yes; then
16552 cat >>confdefs.h <<\_ACEOF
16553 #define HAVE_FNMATCH 1
16562 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16563 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16564 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16567 ac_check_lib_save_LIBS=$LIBS
16568 LIBS="-lxpg4 $LIBS"
16569 cat >conftest.$ac_ext <<_ACEOF
16570 #line $LINENO "configure"
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16577 /* Override any gcc2 internal prototype to avoid an error. */
16581 /* We use char because int might match the return type of a gcc2
16582 builtin and then its argument prototype would still apply. */
16592 rm -f conftest.$ac_objext conftest$ac_exeext
16593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16594 (eval $ac_link) 2>&5
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); } &&
16598 { ac_try='test -s conftest$ac_exeext'
16599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; }; then
16604 ac_cv_lib_xpg4_setlocale=yes
16606 echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16609 ac_cv_lib_xpg4_setlocale=no
16611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16612 LIBS=$ac_check_lib_save_LIBS
16614 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
16615 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16616 if test $ac_cv_lib_xpg4_setlocale = yes; then
16617 LIBS="$LIBS -lxpg4"
16623 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
16624 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
16625 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
16626 echo $ECHO_N "(cached) $ECHO_C" >&6
16628 ac_check_lib_save_LIBS=$LIBS
16630 cat >conftest.$ac_ext <<_ACEOF
16631 #line $LINENO "configure"
16634 cat confdefs.h >>conftest.$ac_ext
16635 cat >>conftest.$ac_ext <<_ACEOF
16636 /* end confdefs.h. */
16638 /* Override any gcc2 internal prototype to avoid an error. */
16642 /* We use char because int might match the return type of a gcc2
16643 builtin and then its argument prototype would still apply. */
16653 rm -f conftest.$ac_objext conftest$ac_exeext
16654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16655 (eval $ac_link) 2>&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); } &&
16659 { ac_try='test -s conftest$ac_exeext'
16660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661 (eval $ac_try) 2>&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; }; then
16665 ac_cv_lib_sun_getpwnam=yes
16667 echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16670 ac_cv_lib_sun_getpwnam=no
16672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16673 LIBS=$ac_check_lib_save_LIBS
16675 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
16676 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
16677 if test $ac_cv_lib_sun_getpwnam = yes; then
16678 cat >>confdefs.h <<_ACEOF
16679 #define HAVE_LIBSUN 1
16688 for ac_header in zlib.h
16690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16692 echo "$as_me:$LINENO: checking for $ac_header" >&5
16693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16695 echo $ECHO_N "(cached) $ECHO_C" >&6
16697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16700 # Is the header compilable?
16701 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16703 cat >conftest.$ac_ext <<_ACEOF
16704 #line $LINENO "configure"
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16710 $ac_includes_default
16711 #include <$ac_header>
16713 rm -f conftest.$ac_objext
16714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16715 (eval $ac_compile) 2>&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
16719 { ac_try='test -s conftest.$ac_objext'
16720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721 (eval $ac_try) 2>&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; }; then
16725 ac_header_compiler=yes
16727 echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16730 ac_header_compiler=no
16732 rm -f conftest.$ac_objext conftest.$ac_ext
16733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16734 echo "${ECHO_T}$ac_header_compiler" >&6
16736 # Is the header present?
16737 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16739 cat >conftest.$ac_ext <<_ACEOF
16740 #line $LINENO "configure"
16743 cat confdefs.h >>conftest.$ac_ext
16744 cat >>conftest.$ac_ext <<_ACEOF
16745 /* end confdefs.h. */
16746 #include <$ac_header>
16748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16751 grep -v '^ *+' conftest.er1 >conftest.err
16753 cat conftest.err >&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); } >/dev/null; then
16756 if test -s conftest.err; then
16757 ac_cpp_err=$ac_c_preproc_warn_flag
16764 if test -z "$ac_cpp_err"; then
16765 ac_header_preproc=yes
16767 echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.$ac_ext >&5
16770 ac_header_preproc=no
16772 rm -f conftest.err conftest.$ac_ext
16773 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16774 echo "${ECHO_T}$ac_header_preproc" >&6
16776 # So? What about this header?
16777 case $ac_header_compiler:$ac_header_preproc in
16779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16785 ## ------------------------------------ ##
16786 ## Report this to bug-autoconf@gnu.org. ##
16787 ## ------------------------------------ ##
16790 sed "s/^/$as_me: WARNING: /" >&2
16793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16801 ## ------------------------------------ ##
16802 ## Report this to bug-autoconf@gnu.org. ##
16803 ## ------------------------------------ ##
16806 sed "s/^/$as_me: WARNING: /" >&2
16809 echo "$as_me:$LINENO: checking for $ac_header" >&5
16810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16814 eval "$as_ac_Header=$ac_header_preproc"
16816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16821 cat >>confdefs.h <<_ACEOF
16822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16829 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
16830 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
16831 if test "${ac_cv_lib_z_deflate+set}" = set; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16834 ac_check_lib_save_LIBS=$LIBS
16836 cat >conftest.$ac_ext <<_ACEOF
16837 #line $LINENO "configure"
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h. */
16844 /* Override any gcc2 internal prototype to avoid an error. */
16848 /* We use char because int might match the return type of a gcc2
16849 builtin and then its argument prototype would still apply. */
16859 rm -f conftest.$ac_objext conftest$ac_exeext
16860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16861 (eval $ac_link) 2>&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -s conftest$ac_exeext'
16866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867 (eval $ac_try) 2>&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }; }; then
16871 ac_cv_lib_z_deflate=yes
16873 echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.$ac_ext >&5
16876 ac_cv_lib_z_deflate=no
16878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16879 LIBS=$ac_check_lib_save_LIBS
16881 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
16882 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
16883 if test $ac_cv_lib_z_deflate = yes; then
16888 if test x$FDLIBS = x-lz; then
16889 cat >>confdefs.h <<\_ACEOF
16890 #define HAVE_LIBZ 1
16897 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16898 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
16899 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
16900 echo $ECHO_N "(cached) $ECHO_C" >&6
16902 ac_check_lib_save_LIBS=$LIBS
16903 LIBS="-lpthread $LIBS"
16904 cat >conftest.$ac_ext <<_ACEOF
16905 #line $LINENO "configure"
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16912 /* Override any gcc2 internal prototype to avoid an error. */
16916 /* We use char because int might match the return type of a gcc2
16917 builtin and then its argument prototype would still apply. */
16918 char pthread_create ();
16927 rm -f conftest.$ac_objext conftest$ac_exeext
16928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16929 (eval $ac_link) 2>&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } &&
16933 { ac_try='test -s conftest$ac_exeext'
16934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935 (eval $ac_try) 2>&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); }; }; then
16939 ac_cv_lib_pthread_pthread_create=yes
16941 echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16944 ac_cv_lib_pthread_pthread_create=no
16946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16947 LIBS=$ac_check_lib_save_LIBS
16949 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
16950 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
16951 if test $ac_cv_lib_pthread_pthread_create = yes; then
16952 PTHREAD_LIB="-lpthread"
16954 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
16955 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
16956 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
16957 echo $ECHO_N "(cached) $ECHO_C" >&6
16959 ac_check_lib_save_LIBS=$LIBS
16960 LIBS="-lpthreads $LIBS"
16961 cat >conftest.$ac_ext <<_ACEOF
16962 #line $LINENO "configure"
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h. */
16969 /* Override any gcc2 internal prototype to avoid an error. */
16973 /* We use char because int might match the return type of a gcc2
16974 builtin and then its argument prototype would still apply. */
16975 char pthread_create ();
16984 rm -f conftest.$ac_objext conftest$ac_exeext
16985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16986 (eval $ac_link) 2>&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } &&
16990 { ac_try='test -s conftest$ac_exeext'
16991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992 (eval $ac_try) 2>&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); }; }; then
16996 ac_cv_lib_pthreads_pthread_create=yes
16998 echo "$as_me: failed program was:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17001 ac_cv_lib_pthreads_pthread_create=no
17003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17004 LIBS=$ac_check_lib_save_LIBS
17006 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17007 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17008 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17009 PTHREAD_LIB="-lpthreads"
17011 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17012 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17013 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17016 ac_check_lib_save_LIBS=$LIBS
17018 cat >conftest.$ac_ext <<_ACEOF
17019 #line $LINENO "configure"
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17026 /* Override any gcc2 internal prototype to avoid an error. */
17030 /* We use char because int might match the return type of a gcc2
17031 builtin and then its argument prototype would still apply. */
17032 char pthread_create ();
17041 rm -f conftest.$ac_objext conftest$ac_exeext
17042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17043 (eval $ac_link) 2>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } &&
17047 { ac_try='test -s conftest$ac_exeext'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; }; then
17053 ac_cv_lib_c_r_pthread_create=yes
17055 echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17058 ac_cv_lib_c_r_pthread_create=no
17060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17061 LIBS=$ac_check_lib_save_LIBS
17063 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17064 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17065 if test $ac_cv_lib_c_r_pthread_create = yes; then
17066 PTHREAD_LIB="-lc_r"
17068 echo "$as_me:$LINENO: checking for pthread_create" >&5
17069 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17070 if test "${ac_cv_func_pthread_create+set}" = set; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17073 cat >conftest.$ac_ext <<_ACEOF
17074 #line $LINENO "configure"
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17080 /* System header to define __stub macros and hopefully few prototypes,
17081 which can conflict with char pthread_create (); below.
17082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17083 <limits.h> exists even on freestanding compilers. */
17085 # include <limits.h>
17087 # include <assert.h>
17089 /* Override any gcc2 internal prototype to avoid an error. */
17094 /* We use char because int might match the return type of a gcc2
17095 builtin and then its argument prototype would still apply. */
17096 char pthread_create ();
17097 /* The GNU C library defines this for functions which it implements
17098 to always fail with ENOSYS. Some functions are actually named
17099 something starting with __ and the normal name is an alias. */
17100 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17103 char (*f) () = pthread_create;
17112 return f != pthread_create;
17117 rm -f conftest.$ac_objext conftest$ac_exeext
17118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17119 (eval $ac_link) 2>&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); } &&
17123 { ac_try='test -s conftest$ac_exeext'
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; }; then
17129 ac_cv_func_pthread_create=yes
17131 echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17134 ac_cv_func_pthread_create=no
17136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17138 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17139 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17152 cat >>confdefs.h <<\_ACEOF
17158 CFLAGS=${CFLAGS--O}
17159 LDFLAGS=${LDFLAGS--O}
17160 DB_LIBS="${SQL_LFLAGS}"
17162 CPPFLAGS="$CPPFLAGS"
17187 # Finally we set appropriate distribution specific
17188 # variables and defaults
17190 # PFILES are platform specific files
17191 PFILES="platforms/Makefile"
17194 hostname=`uname -n`
17195 case "$DISTNAME" in
17198 PSCMD="ps -e -o pid,comm"
17199 PFILES="${PFILES} \
17200 platforms/aix/Makefile"
17201 TAPEDRIVE="/dev/rmt0.1"
17205 PTHREAD_LIB="-lpthread -lexc"
17206 if test "${CC}" = "gcc" ; then
17213 TAPEDRIVE="/dev/nrmt0"
17216 DISTVER=`uname -a |awk '{print $3}'`
17217 TAPEDRIVE="/dev/nrmt0"
17218 PTHREAD_LIB="-pthread"
17219 CFLAGS="${CFLAGS} -pthread"
17220 PSCMD="ps -x -o pid,command"
17223 PFILES="${PFILES} \
17224 platforms/bsdi/Makefile \
17225 platforms/bsdi/bacula-fd \
17226 platforms/bsdi/bacula-sd \
17227 platforms/bsdi/bacula-dir"
17228 hostname=`hostname -s`
17229 largefile_support="yes"
17232 DISTVER=`uname -a |awk '{print $3}'`
17233 TAPEDRIVE="/dev/nrst0"
17235 WCFLAGS="-mwindows"
17236 WLDFLAGS="-mwindows"
17240 TAPEDRIVE="/dev/nst0"
17241 PSCMD="ps -e -o pid,command"
17242 hostname=`hostname -s`
17243 PFILES="${PFILES} \
17244 platforms/darwin/Makefile"
17247 DISTVER=`cat /etc/debian_version`
17248 TAPEDRIVE="/dev/nrst0"
17249 PSCMD="ps -e -o pid,command"
17250 hostname=`hostname -s`
17253 DISTVER=`uname -a |awk '{print $3}'`
17254 VER=`echo $DISTVER | cut -c 1`
17255 if test x$VER = x4 ; then
17256 PTHREAD_LIB="-pthread"
17257 CFLAGS="${CFLAGS} -pthread"
17261 TAPEDRIVE="/dev/nrsa0"
17262 PSCMD="ps -x -o pid,command"
17263 PFILES="${PFILES} \
17264 platforms/freebsd/Makefile \
17265 platforms/freebsd/bacula-fd \
17266 platforms/freebsd/bacula-sd \
17267 platforms/freebsd/bacula-dir"
17268 hostname=`hostname -s`
17269 largefile_support="yes"
17273 TAPEDRIVE="/dev/rmt/0hnb"
17277 TAPEDRIVE="/dev/rmt/0cbn"
17278 PSCMD="ps -e -o pid,comm"
17279 PFILES="${PFILES} \
17280 platforms/irix/Makefile \
17281 platforms/irix/bacula-fd \
17282 platforms/irix/bacula-sd \
17283 platforms/irix/bacula-dir"
17286 DISTVER=`uname -a |awk '{print $3}'`
17289 TAPEDRIVE="/dev/nrst0"
17290 PSCMD="ps -a -o pid,command"
17291 PTHREAD_LIB="-pthread"
17292 CFLAGS="${CFLAGS} -pthread"
17295 DISTVER=`uname -a |awk '{print $3}'`
17298 TAPEDRIVE="/dev/nrst0"
17299 PSCMD="ps -a -o pid,command"
17300 PTHREAD_LIB="-pthread"
17301 CFLAGS="${CFLAGS} -pthread"
17302 PFILES="${PFILES} \
17303 platforms/openbsd/Makefile \
17304 platforms/openbsd/bacula-fd \
17305 platforms/openbsd/bacula-sd \
17306 platforms/openbsd/bacula-dir"
17309 DISTVER=`cat /etc/redhat-release | grep release |\
17311 TAPEDRIVE="/dev/nst0"
17312 PSCMD="ps -e -o pid,command"
17313 PFILES="${PFILES} \
17314 platforms/redhat/Makefile \
17315 platforms/redhat/bacula-fd \
17316 platforms/redhat/bacula-sd \
17317 platforms/redhat/bacula-dir \
17318 platforms/redhat/bacula.spec \
17320 hostname=`hostname -s`
17323 DISTVER=`cat /etc/mandrake-release | grep release |\
17325 TAPEDRIVE="/dev/nst0"
17326 PSCMD="ps -e -o pid,command"
17327 PFILES="${PFILES} \
17328 platforms/mandrake/Makefile \
17329 platforms/mandrake/bacula-fd \
17330 platforms/mandrake/bacula-sd \
17331 platforms/mandrake/bacula-dir \
17332 platforms/mandrake/bacula.spec \
17334 hostname=`hostname -s`
17337 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17338 TAPEDRIVE="/dev/nst0"
17339 PSCMD="ps -e -o pid,command"
17340 PFILES="${PFILES} \
17341 platforms/gentoo/Makefile \
17342 platforms/gentoo/bacula-fd \
17343 platforms/gentoo/bacula-sd \
17344 platforms/gentoo/bacula-dir"
17345 hostname=`hostname -s`
17349 DISTVER=`cat /etc/slackware-version`
17350 TAPEDRIVE="/dev/nst0"
17351 PSCMD="ps -e -o pid,command"
17352 hostname=`hostname -s`
17356 TAPEDRIVE="/dev/rmt/0cbn"
17357 PSCMD="ps -e -o pid,comm"
17358 PFILES="${PFILES} \
17359 platforms/solaris/Makefile \
17360 platforms/solaris/bacula-fd \
17361 platforms/solaris/bacula-sd \
17362 platforms/solaris/bacula-dir"
17363 if test x$DISTVER = x5.6 ; then
17364 cat >>confdefs.h <<\_ACEOF
17365 #define HAVE_OLD_SOCKOPT 1
17371 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17373 TAPEDRIVE="/dev/nst0"
17374 PSCMD="ps -e -o pid,command"
17375 hostname=`hostname -s`
17380 TAPEDRIVE="/dev/nst0"
17381 PSCMD="ps -e -o pid,command"
17382 hostname=`hostname -s`
17386 TAPEDRIVE="/dev/nst0"
17389 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
17395 LIBS="$PTHREAD_LIB $LIBS"
17397 cat >>confdefs.h <<_ACEOF
17401 cat >>confdefs.h <<_ACEOF
17411 MCOMMON=./autoconf/Make.common
17414 if test "x${subsysdir}" = "x${sbindir}" ; then
17417 echo "You have set both --sbindir and --with-subsys-dir"
17418 echo " equal to: ${subsysdir} "
17419 echo "This is not permitted. Please reconfigure."
17421 echo "Aborting configuration ..."
17427 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/console scripts/gconsole scripts/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/console.conf src/gnome-console/Makefile src/gnome-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/alter_mysql_tables src/cats/make_mysql_tables src/cats/drop_mysql_tables src/cats/create_mysql_database src/cats/grant_mysql_privileges src/cats/alter_sqlite_tables src/cats/make_sqlite_tables src/cats/drop_sqlite_tables src/cats/create_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/make_bdb_tables src/cats/drop_bdb_tables src/cats/make_bacula_tables src/cats/drop_bacula_tables src/findlib/Makefile src/tools/Makefile $PFILES"
17428 ac_config_commands="$ac_config_commands default"
17429 cat >confcache <<\_ACEOF
17430 # This file is a shell script that caches the results of configure
17431 # tests run on this system so they can be shared between configure
17432 # scripts and configure runs, see configure's option --config-cache.
17433 # It is not useful on other systems. If it contains results you don't
17434 # want to keep, you may remove or edit it.
17436 # config.status only pays attention to the cache file if you give it
17437 # the --recheck option to rerun configure.
17439 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17440 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17441 # following values.
17445 # The following way of writing the cache mishandles newlines in values,
17446 # but we know of no workaround that is simple, portable, and efficient.
17447 # So, don't put newlines in cache variables' values.
17448 # Ultrix sh set writes to stderr and can't be redirected directly,
17449 # and sets the high bit in the cache file unless we assign to the vars.
17452 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17454 # `set' does not quote correctly, so add quotes (double-quote
17455 # substitution turns \\\\ into \\, and sed turns \\ into \).
17458 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17461 # `set' quotes correctly as required by POSIX, so do not add quotes.
17463 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17470 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17472 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17474 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17475 if test -w $cache_file; then
17476 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17477 cat confcache >$cache_file
17479 echo "not updating unwritable cache $cache_file"
17484 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17485 # Let make expand exec_prefix.
17486 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17488 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17489 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17490 # trailing colons and then remove the whole line if VPATH becomes empty
17491 # (actually we leave an empty line to preserve line numbers).
17492 if test "x$srcdir" = x.; then
17493 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17494 s/:*\$(srcdir):*/:/;
17495 s/:*\${srcdir}:*/:/;
17497 s/^\([^=]*=[ ]*\):*/\1/;
17503 DEFS=-DHAVE_CONFIG_H
17507 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17508 # 1. Remove the extension, and $U if already installed.
17509 ac_i=`echo "$ac_i" |
17510 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17512 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17513 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17515 LIBOBJS=$ac_libobjs
17517 LTLIBOBJS=$ac_ltlibobjs
17521 : ${CONFIG_STATUS=./config.status}
17522 ac_clean_files_save=$ac_clean_files
17523 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17524 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17525 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17526 cat >$CONFIG_STATUS <<_ACEOF
17528 # Generated by $as_me.
17529 # Run this file to recreate the current configuration.
17530 # Compiler output produced by configure, useful for debugging
17531 # configure, is in config.log if it exists.
17534 ac_cs_recheck=false
17536 SHELL=\${CONFIG_SHELL-$SHELL}
17539 cat >>$CONFIG_STATUS <<\_ACEOF
17540 ## --------------------- ##
17541 ## M4sh Initialization. ##
17542 ## --------------------- ##
17544 # Be Bourne compatible
17545 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17548 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17549 # is contrary to our usage. Disable this feature.
17550 alias -g '${1+"$@"}'='"$@"'
17551 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17555 # Support unset when possible.
17556 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17563 # Work around bugs in pre-3.0 UWIN ksh.
17564 $as_unset ENV MAIL MAILPATH
17571 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17572 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17573 LC_TELEPHONE LC_TIME
17575 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17576 eval $as_var=C; export $as_var
17582 # Required to use basename.
17583 if expr a : '\(a\)' >/dev/null 2>&1; then
17589 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17590 as_basename=basename
17596 # Name of the executable.
17597 as_me=`$as_basename "$0" ||
17598 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17599 X"$0" : 'X\(//\)$' \| \
17600 X"$0" : 'X\(/\)$' \| \
17601 . : '\(.\)' 2>/dev/null ||
17603 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17604 /^X\/\(\/\/\)$/{ s//\1/; q; }
17605 /^X\/\(\/\).*/{ s//\1/; q; }
17609 # PATH needs CR, and LINENO needs CR and PATH.
17610 # Avoid depending upon Character Ranges.
17611 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17612 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17613 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17614 as_cr_digits='0123456789'
17615 as_cr_alnum=$as_cr_Letters$as_cr_digits
17617 # The user is always right.
17618 if test "${PATH_SEPARATOR+set}" != set; then
17619 echo "#! /bin/sh" >conf$$.sh
17620 echo "exit 0" >>conf$$.sh
17622 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17631 as_lineno_1=$LINENO
17632 as_lineno_2=$LINENO
17633 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17634 test "x$as_lineno_1" != "x$as_lineno_2" &&
17635 test "x$as_lineno_3" = "x$as_lineno_2" || {
17636 # Find who we are. Look in the path if we contain no path at all
17639 *[\\/]* ) as_myself=$0 ;;
17640 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17641 for as_dir in $PATH
17644 test -z "$as_dir" && as_dir=.
17645 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17650 # We did not find ourselves, most probably we were run as `sh COMMAND'
17651 # in which case we are not to be found in the path.
17652 if test "x$as_myself" = x; then
17655 if test ! -f "$as_myself"; then
17656 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17657 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17658 { (exit 1); exit 1; }; }
17660 case $CONFIG_SHELL in
17662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17663 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17666 test -z "$as_dir" && as_dir=.
17667 for as_base in sh bash ksh sh5; do
17670 if ("$as_dir/$as_base" -c '
17671 as_lineno_1=$LINENO
17672 as_lineno_2=$LINENO
17673 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17674 test "x$as_lineno_1" != "x$as_lineno_2" &&
17675 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17676 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17677 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17678 CONFIG_SHELL=$as_dir/$as_base
17679 export CONFIG_SHELL
17680 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17688 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17689 # uniformly replaced by the line number. The first 'sed' inserts a
17690 # line-number line before each line; the second 'sed' does the real
17691 # work. The second script uses 'N' to pair each line-number line
17692 # with the numbered line, and appends trailing '-' during
17693 # substitution so that $LINENO is not a special case at line end.
17694 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17695 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17696 sed '=' <$as_myself |
17701 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17704 s,^['$as_cr_digits']*\n,,
17705 ' >$as_me.lineno &&
17706 chmod +x $as_me.lineno ||
17707 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17708 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17709 { (exit 1); exit 1; }; }
17711 # Don't try to exec as it changes $[0], causing all sort of problems
17712 # (the dirname of $[0] is not the place where we might find the
17713 # original and so on. Autoconf is especially sensible to this).
17715 # Exit status is that of the last command.
17720 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17721 *c*,-n*) ECHO_N= ECHO_C='
17723 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17724 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17727 if expr a : '\(a\)' >/dev/null 2>&1; then
17733 rm -f conf$$ conf$$.exe conf$$.file
17735 if ln -s conf$$.file conf$$ 2>/dev/null; then
17736 # We could just check for DJGPP; but this test a) works b) is more generic
17737 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17738 if test -f conf$$.exe; then
17739 # Don't use ln at all; we don't have any links
17744 elif ln conf$$.file conf$$ 2>/dev/null; then
17749 rm -f conf$$ conf$$.exe conf$$.file
17751 if mkdir -p . 2>/dev/null; then
17757 as_executable_p="test -f"
17759 # Sed expression to map a string onto a valid CPP name.
17760 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17762 # Sed expression to map a string onto a valid variable name.
17763 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17767 # We need space, tab and new line, in precisely that order.
17777 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17778 # report actual input values of CONFIG_FILES etc. instead of their
17779 # values after options handling. Logging --version etc. is OK.
17783 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17784 ## Running $as_me. ##
17789 This file was extended by $as_me, which was
17790 generated by GNU Autoconf 2.57. Invocation command line was
17792 CONFIG_FILES = $CONFIG_FILES
17793 CONFIG_HEADERS = $CONFIG_HEADERS
17794 CONFIG_LINKS = $CONFIG_LINKS
17795 CONFIG_COMMANDS = $CONFIG_COMMANDS
17799 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17803 # Files that config.status was made for.
17804 if test -n "$ac_config_files"; then
17805 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17808 if test -n "$ac_config_headers"; then
17809 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17812 if test -n "$ac_config_links"; then
17813 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17816 if test -n "$ac_config_commands"; then
17817 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17820 cat >>$CONFIG_STATUS <<\_ACEOF
17823 \`$as_me' instantiates files from templates according to the
17824 current configuration.
17826 Usage: $0 [OPTIONS] [FILE]...
17828 -h, --help print this help, then exit
17829 -V, --version print version number, then exit
17830 -q, --quiet do not print progress messages
17831 -d, --debug don't remove temporary files
17832 --recheck update $as_me by reconfiguring in the same conditions
17833 --file=FILE[:TEMPLATE]
17834 instantiate the configuration file FILE
17835 --header=FILE[:TEMPLATE]
17836 instantiate the configuration header FILE
17838 Configuration files:
17841 Configuration headers:
17844 Configuration commands:
17847 Report bugs to <bug-autoconf@gnu.org>."
17850 cat >>$CONFIG_STATUS <<_ACEOF
17853 configured by $0, generated by GNU Autoconf 2.57,
17854 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17856 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17857 Free Software Foundation, Inc.
17858 This config.status script is free software; the Free Software Foundation
17859 gives unlimited permission to copy, distribute and modify it."
17864 cat >>$CONFIG_STATUS <<\_ACEOF
17865 # If no file are specified by the user, then we need to provide default
17866 # value. By we need to know if files were specified by the user.
17872 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17873 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17881 *) # This is not an option, so the user has probably given explicit
17884 ac_need_defaults=false;;
17888 # Handling of the options.
17890 cat >>$CONFIG_STATUS <<\_ACEOF
17891 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17893 --version | --vers* | -V )
17894 echo "$ac_cs_version"; exit 0 ;;
17896 # Conflict between --help and --header
17897 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17898 Try \`$0 --help' for more information." >&5
17899 echo "$as_me: error: ambiguous option: $1
17900 Try \`$0 --help' for more information." >&2;}
17901 { (exit 1); exit 1; }; };;
17902 --help | --hel | -h )
17903 echo "$ac_cs_usage"; exit 0 ;;
17904 --debug | --d* | -d )
17906 --file | --fil | --fi | --f )
17908 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17909 ac_need_defaults=false;;
17910 --header | --heade | --head | --hea )
17912 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17913 ac_need_defaults=false;;
17914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17915 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17918 # This is an error.
17919 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17920 Try \`$0 --help' for more information." >&5
17921 echo "$as_me: error: unrecognized option: $1
17922 Try \`$0 --help' for more information." >&2;}
17923 { (exit 1); exit 1; }; } ;;
17925 *) ac_config_targets="$ac_config_targets $1" ;;
17931 ac_configure_extra_args=
17933 if $ac_cs_silent; then
17935 ac_configure_extra_args="$ac_configure_extra_args --silent"
17939 cat >>$CONFIG_STATUS <<_ACEOF
17940 if \$ac_cs_recheck; then
17941 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17942 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17951 cat >>$CONFIG_STATUS <<\_ACEOF
17952 for ac_config_target in $ac_config_targets
17954 case "$ac_config_target" in
17955 # Handling of arguments.
17956 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17957 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17958 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
17959 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
17960 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
17961 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
17962 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
17963 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
17964 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
17965 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
17966 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
17967 "scripts/console" ) CONFIG_FILES="$CONFIG_FILES scripts/console" ;;
17968 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
17969 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
17970 "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
17971 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
17972 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
17973 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
17974 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
17975 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
17976 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17977 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17978 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
17979 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
17980 "src/console/console.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/console.conf" ;;
17981 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
17982 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
17983 "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
17984 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
17985 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
17986 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
17987 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
17988 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
17989 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
17990 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
17991 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
17992 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
17993 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
17994 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
17995 "src/cats/alter_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/alter_mysql_tables" ;;
17996 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
17997 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
17998 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
17999 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18000 "src/cats/alter_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/alter_sqlite_tables" ;;
18001 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18002 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18003 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18004 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18005 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18006 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18007 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18008 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18009 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18010 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18011 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18012 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18013 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18014 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18015 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18016 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18017 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18018 { (exit 1); exit 1; }; };;
18022 # If the user did not use the arguments to specify the items to instantiate,
18023 # then the envvar interface is used. Set only those that are not.
18024 # We use the long form for the default assignment because of an extremely
18025 # bizarre bug on SunOS 4.1.3.
18026 if $ac_need_defaults; then
18027 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18028 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18029 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18032 # Have a temporary directory for convenience. Make it in the build tree
18033 # simply because there is no reason to put it here, and in addition,
18034 # creating and moving files from /tmp can sometimes cause problems.
18035 # Create a temporary directory, and hook for its removal unless debugging.
18038 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18039 trap '{ (exit 1); exit 1; }' 1 2 13 15
18042 # Create a (secure) tmp directory for tmp files.
18045 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18046 test -n "$tmp" && test -d "$tmp"
18049 tmp=./confstat$$-$RANDOM
18050 (umask 077 && mkdir $tmp)
18053 echo "$me: cannot create a temporary directory in ." >&2
18054 { (exit 1); exit 1; }
18059 cat >>$CONFIG_STATUS <<_ACEOF
18062 # CONFIG_FILES section.
18065 # No need to generate the scripts if there are no CONFIG_FILES.
18066 # This happens for instance when ./config.status config.h
18067 if test -n "\$CONFIG_FILES"; then
18068 # Protect against being on the right side of a sed subst in config.status.
18069 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18070 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18071 s,@SHELL@,$SHELL,;t t
18072 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18073 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18074 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18075 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18076 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18077 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18078 s,@exec_prefix@,$exec_prefix,;t t
18079 s,@prefix@,$prefix,;t t
18080 s,@program_transform_name@,$program_transform_name,;t t
18081 s,@bindir@,$bindir,;t t
18082 s,@sbindir@,$sbindir,;t t
18083 s,@libexecdir@,$libexecdir,;t t
18084 s,@datadir@,$datadir,;t t
18085 s,@sysconfdir@,$sysconfdir,;t t
18086 s,@sharedstatedir@,$sharedstatedir,;t t
18087 s,@localstatedir@,$localstatedir,;t t
18088 s,@libdir@,$libdir,;t t
18089 s,@includedir@,$includedir,;t t
18090 s,@oldincludedir@,$oldincludedir,;t t
18091 s,@infodir@,$infodir,;t t
18092 s,@mandir@,$mandir,;t t
18093 s,@build_alias@,$build_alias,;t t
18094 s,@host_alias@,$host_alias,;t t
18095 s,@target_alias@,$target_alias,;t t
18096 s,@DEFS@,$DEFS,;t t
18097 s,@ECHO_C@,$ECHO_C,;t t
18098 s,@ECHO_N@,$ECHO_N,;t t
18099 s,@ECHO_T@,$ECHO_T,;t t
18100 s,@LIBS@,$LIBS,;t t
18101 s,@BUILD_DIR@,$BUILD_DIR,;t t
18102 s,@TRUEPRG@,$TRUEPRG,;t t
18103 s,@FALSEPRG@,$FALSEPRG,;t t
18104 s,@build@,$build,;t t
18105 s,@build_cpu@,$build_cpu,;t t
18106 s,@build_vendor@,$build_vendor,;t t
18107 s,@build_os@,$build_os,;t t
18108 s,@host@,$host,;t t
18109 s,@host_cpu@,$host_cpu,;t t
18110 s,@host_vendor@,$host_vendor,;t t
18111 s,@host_os@,$host_os,;t t
18112 s,@VERSION@,$VERSION,;t t
18113 s,@DATE@,$DATE,;t t
18114 s,@LSMDATE@,$LSMDATE,;t t
18116 s,@CFLAGS@,$CFLAGS,;t t
18117 s,@LDFLAGS@,$LDFLAGS,;t t
18118 s,@CPPFLAGS@,$CPPFLAGS,;t t
18119 s,@ac_ct_CC@,$ac_ct_CC,;t t
18120 s,@EXEEXT@,$EXEEXT,;t t
18121 s,@OBJEXT@,$OBJEXT,;t t
18123 s,@CXXFLAGS@,$CXXFLAGS,;t t
18124 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18126 s,@EGREP@,$EGREP,;t t
18127 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18128 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18129 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18130 s,@RANLIB@,$RANLIB,;t t
18131 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18137 s,@ECHO@,$ECHO,;t t
18141 s,@OPENSSL@,$OPENSSL,;t t
18143 s,@PKGCONFIG@,$PKGCONFIG,;t t
18144 s,@ARFLAGS@,$ARFLAGS,;t t
18145 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18146 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18147 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18148 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18149 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18150 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18151 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18152 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18153 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18154 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18155 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18156 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18157 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18158 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18159 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18160 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18161 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18162 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18163 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18164 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18165 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18166 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18167 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18168 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18169 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18170 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18171 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18172 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18173 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18174 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18175 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18176 s,@MSGFMT@,$MSGFMT,;t t
18177 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18178 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18179 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18180 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18181 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18182 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18183 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18184 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18185 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18186 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18187 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18188 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18189 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18190 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18191 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18192 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18193 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18194 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18195 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18196 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18197 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18198 s,@GNOME_DIR@,$GNOME_DIR,;t t
18199 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18200 s,@STATIC_FD@,$STATIC_FD,;t t
18201 s,@STATIC_SD@,$STATIC_SD,;t t
18202 s,@STATIC_DIR@,$STATIC_DIR,;t t
18203 s,@STATIC_CONS@,$STATIC_CONS,;t t
18204 s,@ALL_DIRS@,$ALL_DIRS,;t t
18205 s,@CONS_INC@,$CONS_INC,;t t
18206 s,@CONS_LIBS@,$CONS_LIBS,;t t
18207 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18208 s,@READLINE_SRC@,$READLINE_SRC,;t t
18209 s,@working_dir@,$working_dir,;t t
18210 s,@scriptdir@,$scriptdir,;t t
18211 s,@dump_email@,$dump_email,;t t
18212 s,@job_email@,$job_email,;t t
18213 s,@smtp_host@,$smtp_host,;t t
18214 s,@piddir@,$piddir,;t t
18215 s,@subsysdir@,$subsysdir,;t t
18216 s,@baseport@,$baseport,;t t
18217 s,@dir_port@,$dir_port,;t t
18218 s,@fd_port@,$fd_port,;t t
18219 s,@sd_port@,$sd_port,;t t
18220 s,@dir_password@,$dir_password,;t t
18221 s,@fd_password@,$fd_password,;t t
18222 s,@sd_password@,$sd_password,;t t
18223 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18224 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18225 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18226 s,@cats@,$cats,;t t
18227 s,@DB_NAME@,$DB_NAME,;t t
18228 s,@GETCONF@,$GETCONF,;t t
18229 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18230 s,@X_CFLAGS@,$X_CFLAGS,;t t
18231 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18232 s,@X_LIBS@,$X_LIBS,;t t
18233 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18234 s,@LIBOBJS@,$LIBOBJS,;t t
18235 s,@ALLOCA@,$ALLOCA,;t t
18236 s,@FDLIBS@,$FDLIBS,;t t
18237 s,@DEBUG@,$DEBUG,;t t
18238 s,@DINCLUDE@,$DINCLUDE,;t t
18239 s,@DLIB@,$DLIB,;t t
18240 s,@DB_LIBS@,$DB_LIBS,;t t
18241 s,@WCFLAGS@,$WCFLAGS,;t t
18242 s,@WLDFLAGS@,$WLDFLAGS,;t t
18243 s,@OBJLIST@,$OBJLIST,;t t
18244 s,@hostname@,$hostname,;t t
18245 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18246 s,@PSCMD@,$PSCMD,;t t
18247 s,@WIN32@,$WIN32,;t t
18248 s,@DISTNAME@,$DISTNAME,;t t
18249 s,@DISTVER@,$DISTVER,;t t
18250 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18251 /@MCOMMON@/r $MCOMMON
18257 cat >>$CONFIG_STATUS <<\_ACEOF
18258 # Split the substitutions into bite-sized pieces for seds with
18259 # small command number limits, like on Digital OSF/1 and HP-UX.
18260 ac_max_sed_lines=48
18261 ac_sed_frag=1 # Number of current file.
18262 ac_beg=1 # First line for current file.
18263 ac_end=$ac_max_sed_lines # Line after last line for current file.
18266 while $ac_more_lines; do
18267 if test $ac_beg -gt 1; then
18268 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18270 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18272 if test ! -s $tmp/subs.frag; then
18273 ac_more_lines=false
18275 # The purpose of the label and of the branching condition is to
18276 # speed up the sed processing (if there are no `@' at all, there
18277 # is no need to browse any of the substitutions).
18278 # These are the two extra sed commands mentioned above.
18280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18281 if test -z "$ac_sed_cmds"; then
18282 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18284 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18286 ac_sed_frag=`expr $ac_sed_frag + 1`
18288 ac_end=`expr $ac_end + $ac_max_sed_lines`
18291 if test -z "$ac_sed_cmds"; then
18294 fi # test -n "$CONFIG_FILES"
18297 cat >>$CONFIG_STATUS <<\_ACEOF
18298 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18299 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18301 - | *:- | *:-:* ) # input from stdin
18303 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18304 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18305 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18306 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18307 * ) ac_file_in=$ac_file.in ;;
18310 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18311 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18312 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18313 X"$ac_file" : 'X\(//\)[^/]' \| \
18314 X"$ac_file" : 'X\(//\)$' \| \
18315 X"$ac_file" : 'X\(/\)' \| \
18316 . : '\(.\)' 2>/dev/null ||
18318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18319 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18320 /^X\(\/\/\)$/{ s//\1/; q; }
18321 /^X\(\/\).*/{ s//\1/; q; }
18323 { if $as_mkdir_p; then
18328 while test ! -d "$as_dir"; do
18329 as_dirs="$as_dir $as_dirs"
18330 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18332 X"$as_dir" : 'X\(//\)[^/]' \| \
18333 X"$as_dir" : 'X\(//\)$' \| \
18334 X"$as_dir" : 'X\(/\)' \| \
18335 . : '\(.\)' 2>/dev/null ||
18337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18338 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18339 /^X\(\/\/\)$/{ s//\1/; q; }
18340 /^X\(\/\).*/{ s//\1/; q; }
18343 test ! -n "$as_dirs" || mkdir $as_dirs
18344 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18345 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18346 { (exit 1); exit 1; }; }; }
18350 if test "$ac_dir" != .; then
18351 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18352 # A "../" for each directory in $ac_dir_suffix.
18353 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18355 ac_dir_suffix= ac_top_builddir=
18359 .) # No --srcdir option. We are building in place.
18361 if test -z "$ac_top_builddir"; then
18364 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18366 [\\/]* | ?:[\\/]* ) # Absolute path.
18367 ac_srcdir=$srcdir$ac_dir_suffix;
18368 ac_top_srcdir=$srcdir ;;
18369 *) # Relative path.
18370 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18371 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18373 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18375 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18376 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18377 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18378 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18382 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18383 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18386 if test x"$ac_file" != x-; then
18387 { echo "$as_me:$LINENO: creating $ac_file" >&5
18388 echo "$as_me: creating $ac_file" >&6;}
18391 # Let's still pretend it is `configure' which instantiates (i.e., don't
18392 # use $as_me), people would be surprised to read:
18393 # /* config.h. Generated by config.status. */
18394 if test x"$ac_file" = x-; then
18397 configure_input="$ac_file. "
18399 configure_input=$configure_input"Generated from `echo $ac_file_in |
18400 sed 's,.*/,,'` by configure."
18402 # First look for the input files in the build tree, otherwise in the
18404 ac_file_inputs=`IFS=:
18405 for f in $ac_file_in; do
18407 -) echo $tmp/stdin ;;
18409 # Absolute (can't be DOS-style, as IFS=:)
18410 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18411 echo "$as_me: error: cannot find input file: $f" >&2;}
18412 { (exit 1); exit 1; }; }
18415 if test -f "$f"; then
18418 elif test -f "$srcdir/$f"; then
18423 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18424 echo "$as_me: error: cannot find input file: $f" >&2;}
18425 { (exit 1); exit 1; }; }
18428 done` || { (exit 1); exit 1; }
18430 cat >>$CONFIG_STATUS <<_ACEOF
18434 cat >>$CONFIG_STATUS <<\_ACEOF
18436 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18437 s,@configure_input@,$configure_input,;t t
18438 s,@srcdir@,$ac_srcdir,;t t
18439 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18440 s,@top_srcdir@,$ac_top_srcdir,;t t
18441 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18442 s,@builddir@,$ac_builddir,;t t
18443 s,@abs_builddir@,$ac_abs_builddir,;t t
18444 s,@top_builddir@,$ac_top_builddir,;t t
18445 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18446 s,@INSTALL@,$ac_INSTALL,;t t
18447 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18449 if test x"$ac_file" != x-; then
18450 mv $tmp/out $ac_file
18458 cat >>$CONFIG_STATUS <<\_ACEOF
18461 # CONFIG_HEADER section.
18464 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18465 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18467 # ac_d sets the value in "#define NAME VALUE" lines.
18468 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18469 ac_dB='[ ].*$,\1#\2'
18472 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18473 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18474 ac_uB='$,\1#\2define\3'
18478 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18479 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18481 - | *:- | *:-:* ) # input from stdin
18483 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18484 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18485 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18486 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18487 * ) ac_file_in=$ac_file.in ;;
18490 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18491 echo "$as_me: creating $ac_file" >&6;}
18493 # First look for the input files in the build tree, otherwise in the
18495 ac_file_inputs=`IFS=:
18496 for f in $ac_file_in; do
18498 -) echo $tmp/stdin ;;
18500 # Absolute (can't be DOS-style, as IFS=:)
18501 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18502 echo "$as_me: error: cannot find input file: $f" >&2;}
18503 { (exit 1); exit 1; }; }
18506 if test -f "$f"; then
18509 elif test -f "$srcdir/$f"; then
18514 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18515 echo "$as_me: error: cannot find input file: $f" >&2;}
18516 { (exit 1); exit 1; }; }
18519 done` || { (exit 1); exit 1; }
18520 # Remove the trailing spaces.
18521 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18525 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18526 # `conftest.undefs', that substitutes the proper values into
18527 # config.h.in to produce config.h. The first handles `#define'
18528 # templates, and the second `#undef' templates.
18529 # And first: Protect against being on the right side of a sed subst in
18530 # config.status. Protect against being in an unquoted here document
18531 # in config.status.
18532 rm -f conftest.defines conftest.undefs
18533 # Using a here document instead of a string reduces the quoting nightmare.
18534 # Putting comments in sed scripts is not portable.
18536 # `end' is used to avoid that the second main sed command (meant for
18537 # 0-ary CPP macros) applies to n-ary macro definitions.
18538 # See the Autoconf documentation for `clear'.
18539 cat >confdef2sed.sed <<\_ACEOF
18544 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18546 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18549 # If some macros were called several times there might be several times
18550 # the same #defines, which is useless. Nevertheless, we may not want to
18551 # sort them, since we want the *last* AC-DEFINE to be honored.
18552 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18553 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18554 rm -f confdef2sed.sed
18556 # This sed command replaces #undef with comments. This is necessary, for
18557 # example, in the case of _POSIX_SOURCE, which is predefined and required
18558 # on some systems where configure will not decide to define it.
18559 cat >>conftest.undefs <<\_ACEOF
18560 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18563 # Break up conftest.defines because some shells have a limit on the size
18564 # of here documents, and old seds have small limits too (100 cmds).
18565 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18566 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18567 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18568 echo ' :' >>$CONFIG_STATUS
18569 rm -f conftest.tail
18570 while grep . conftest.defines >/dev/null
18572 # Write a limited-size here document to $tmp/defines.sed.
18573 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18574 # Speed up: don't consider the non `#define' lines.
18575 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18576 # Work around the forget-to-reset-the-flag bug.
18577 echo 't clr' >>$CONFIG_STATUS
18578 echo ': clr' >>$CONFIG_STATUS
18579 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18581 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18583 mv $tmp/out $tmp/in
18585 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18586 rm -f conftest.defines
18587 mv conftest.tail conftest.defines
18589 rm -f conftest.defines
18590 echo ' fi # grep' >>$CONFIG_STATUS
18591 echo >>$CONFIG_STATUS
18593 # Break up conftest.undefs because some shells have a limit on the size
18594 # of here documents, and old seds have small limits too (100 cmds).
18595 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18596 rm -f conftest.tail
18597 while grep . conftest.undefs >/dev/null
18599 # Write a limited-size here document to $tmp/undefs.sed.
18600 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18601 # Speed up: don't consider the non `#undef'
18602 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18603 # Work around the forget-to-reset-the-flag bug.
18604 echo 't clr' >>$CONFIG_STATUS
18605 echo ': clr' >>$CONFIG_STATUS
18606 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18608 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18610 mv $tmp/out $tmp/in
18612 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18613 rm -f conftest.undefs
18614 mv conftest.tail conftest.undefs
18616 rm -f conftest.undefs
18618 cat >>$CONFIG_STATUS <<\_ACEOF
18619 # Let's still pretend it is `configure' which instantiates (i.e., don't
18620 # use $as_me), people would be surprised to read:
18621 # /* config.h. Generated by config.status. */
18622 if test x"$ac_file" = x-; then
18623 echo "/* Generated by configure. */" >$tmp/config.h
18625 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18627 cat $tmp/in >>$tmp/config.h
18629 if test x"$ac_file" != x-; then
18630 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18631 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18632 echo "$as_me: $ac_file is unchanged" >&6;}
18634 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18636 X"$ac_file" : 'X\(//\)[^/]' \| \
18637 X"$ac_file" : 'X\(//\)$' \| \
18638 X"$ac_file" : 'X\(/\)' \| \
18639 . : '\(.\)' 2>/dev/null ||
18641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18642 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18643 /^X\(\/\/\)$/{ s//\1/; q; }
18644 /^X\(\/\).*/{ s//\1/; q; }
18646 { if $as_mkdir_p; then
18651 while test ! -d "$as_dir"; do
18652 as_dirs="$as_dir $as_dirs"
18653 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18654 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18655 X"$as_dir" : 'X\(//\)[^/]' \| \
18656 X"$as_dir" : 'X\(//\)$' \| \
18657 X"$as_dir" : 'X\(/\)' \| \
18658 . : '\(.\)' 2>/dev/null ||
18660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18661 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18662 /^X\(\/\/\)$/{ s//\1/; q; }
18663 /^X\(\/\).*/{ s//\1/; q; }
18666 test ! -n "$as_dirs" || mkdir $as_dirs
18667 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18668 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18669 { (exit 1); exit 1; }; }; }
18672 mv $tmp/config.h $ac_file
18676 rm -f $tmp/config.h
18680 cat >>$CONFIG_STATUS <<\_ACEOF
18683 # CONFIG_COMMANDS section.
18685 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18686 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18687 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18688 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18689 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18690 X"$ac_dest" : 'X\(//\)[^/]' \| \
18691 X"$ac_dest" : 'X\(//\)$' \| \
18692 X"$ac_dest" : 'X\(/\)' \| \
18693 . : '\(.\)' 2>/dev/null ||
18695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18696 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18697 /^X\(\/\/\)$/{ s//\1/; q; }
18698 /^X\(\/\).*/{ s//\1/; q; }
18702 if test "$ac_dir" != .; then
18703 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18704 # A "../" for each directory in $ac_dir_suffix.
18705 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18707 ac_dir_suffix= ac_top_builddir=
18711 .) # No --srcdir option. We are building in place.
18713 if test -z "$ac_top_builddir"; then
18716 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18718 [\\/]* | ?:[\\/]* ) # Absolute path.
18719 ac_srcdir=$srcdir$ac_dir_suffix;
18720 ac_top_srcdir=$srcdir ;;
18721 *) # Relative path.
18722 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18723 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18725 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18727 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18728 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18729 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18730 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18733 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18734 echo "$as_me: executing $ac_dest commands" >&6;}
18736 default ) (echo "Doing make of dependencies"; make depend;)
18742 cat >>$CONFIG_STATUS <<\_ACEOF
18744 { (exit 0); exit 0; }
18746 chmod +x $CONFIG_STATUS
18747 ac_clean_files=$ac_clean_files_save
18750 # configure is writing to config.log, and then calls config.status.
18751 # config.status does its own redirection, appending to config.log.
18752 # Unfortunately, on DOS this fails, as config.log is still kept open
18753 # by configure, so config.status won't be able to write to it; its
18754 # output is simply discarded. So we exec the FD to /dev/null,
18755 # effectively closing config.log, so it can be properly (re)opened and
18756 # appended to by config.status. When coming back to configure, we
18757 # need to make the FD available again.
18758 if test "$no_create" != yes; then
18760 ac_config_status_args=
18761 test "$silent" = yes &&
18762 ac_config_status_args="$ac_config_status_args --quiet"
18764 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18766 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18767 # would make configure fail if this is the last instruction.
18768 $ac_cs_success || { (exit 1); exit 1; }
18773 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
18774 chmod 755 console gconsole mtx-changer
18776 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
18777 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
18778 chmod 755 src/cats/create_mysql_database
18779 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
18780 chmod 755 src/cats/alter_mysql_tables
18781 chmod 755 src/cats/grant_mysql_privileges
18782 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
18783 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
18784 chmod 755 src/cats/create_sqlite_database
18785 chmod 755 src/cats/alter_sqlite_tables
18786 chmod 755 src/cats/sqlite
18787 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
18788 chmod 755 src/cats/create_bdb_database
18790 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
18791 largefile_support="yes"
18795 # A whole lot of hand springs to get the compiler version.
18796 # This is because gcc changed the output in version 3.0
18798 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18799 if test "x${CCVERSION}" = "x" ; then
18800 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18802 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18803 if test x"${CXXVERSION}" = x ; then
18804 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18807 if test "x${subsysdir}" = "x${sbindir}" ; then
18810 echo "You have set --sbindir and --with-subsys-dir"
18811 echo " both equal to: ${subsysdir} "
18812 echo " This is not permitted. Please reconfigure."
18813 echo "Aborting configuration ..."
18820 Configuration on `date`:
18822 Host: $host -- ${DISTNAME} ${DISTVER}
18823 Bacula version: ${VERSION} (${DATE})
18824 Source code location: ${srcdir}
18825 Install binaries: ${sbindir}
18826 Install config files: ${sysconfdir}
18827 Scripts directory: ${scriptdir}
18828 Working directory: ${working_dir}
18829 PID directory: ${piddir}
18830 Subsys directory: ${subsysdir}
18831 C Compiler: ${CC} ${CCVERSION}
18832 C++ Compiler: ${CXX} ${CXXVERSION}
18833 Compiler flags: ${WCFLAGS} ${CFLAGS}
18834 Linker flags: ${WLDFLAGS} ${LDFLAGS}
18836 Statically Linked Tools: ${support_static_tools}
18837 Statically Linked FD: ${support_static_fd}
18838 Statically Linked SD: ${support_static_sd}
18839 Statically Linked DIR: ${support_static_dir}
18840 Statically Linked CONS: ${support_static_cons}
18841 Database type: ${db_name}
18842 Database lib: ${DB_LIBS}
18844 Job Output Email: ${job_email}
18845 Traceback Email: ${dump_email}
18846 SMTP Host Address: ${smtp_host}
18847 Director Port ${dir_port}
18848 File daemon Port ${fd_port}
18849 Storage daemon Port ${sd_port}
18850 SQL binaries Directory ${SQL_BINDIR}
18852 Large file support: $largefile_support
18853 readline support: ${got_readline} ${PRTREADLINE_SRC}
18854 TCP Wrappers support: ${TCPW_MSG}
18855 ZLIB support: ${have_zlib}
18856 enable-smartalloc: ${support_smartalloc}
18857 enable-gnome: ${support_gnome}
18858 client-only: ${build_client_only}
18865 # cweb support: ${got_cweb} ${CWEB_SRC}
18866 # gmp support: ${got_gmp} ${GMP_SRC}