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_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures this package to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --x-includes=DIR X include files are in DIR
843 --x-libraries=DIR X library files are in DIR
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 if test -n "$ac_init_help"; then
856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
858 --enable-gnome enable build of gnome-console GUI disabled
859 --enable-smartalloc enable smartalloc debugging support disabled
860 --enable-static-tools enable static tape tools disabled
861 --enable-static-fd enable static File daemon disabled
862 --enable-static-sd enable static Storage daemon disabled
863 --enable-static-dir enable static Director disabled
864 --enable-static-cons enable static Console disabled
865 --enable-client-only build client (File daemon) only disabled
866 --disable-conio disable conio support enabled
868 --disable-readline disable readline support disable
870 --disable-largefile omit support for large files
873 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
874 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
875 --with-gnome-includes Specify location of GNOME headers
876 --with-gnome-libs Specify location of GNOME libs
877 --with-gnome Specify prefix for GNOME files
878 --with-readline=DIR specify readline library directory
879 --with-tcp-wrappers=DIR enable tcpwrappers support
880 --with-working-dir=PATH specify path of Bacula working directory
881 --with-scriptdir=PATH specify path of Bacula scripts directory
882 --with-dump-email=EMAIL dump email address
883 --with-job-email=EMAIL job output email address
884 --with-smtp-host=HOST SMTP mail host address
885 --with-pid-dir=PATH specify location of Bacula pid files
886 --with-subsys-dir=PATH specify location of Bacula subsys file
887 --with-baseport=PORT specify base port address for daemons
888 --with-dir-password=PASSWORD specify Director's password
889 --with-fd-password=PASSWORD specify Client's password
890 --with-sd-password=PASSWORD specify Storage daemon's password
891 --with-dir-user=USER specify user for Director daemon
892 --with-dir-group=GROUP specify group for Director daemon
893 --with-sd-user=USER specify user for Storage daemon
894 --with-sd-group=GROUP specify group for Storage daemon
895 --with-fd-user=USER specify user for File daemon
896 --with-fd-group=GROUP specify group for File daemon
898 Which DBMS do you want to use (please select only one):
899 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
900 install directory, default is to search through
901 a number of common places for the MySQL files.
903 Which DBMS do you want to use (please select only one):
904 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
905 install directory, default is to search through
906 a number of common places for the MySQL files.
908 Which DBMS do you want to use (please select only one):
909 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
910 install directory, default is to search through
911 a number of common places for the SQLite files.
912 --with-x use the X Window System
914 Some influential environment variables:
915 CC C compiler command
916 CFLAGS C compiler flags
917 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
918 nonstandard directory <lib dir>
919 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
920 headers in a nonstandard directory <include dir>
921 CXX C++ compiler command
922 CXXFLAGS C++ compiler flags
925 Use these variables to override the choices made by `configure' or to help
926 it to find libraries and programs with nonstandard names/locations.
931 if test "$ac_init_help" = "recursive"; then
932 # If there are subdirs, report their specific --help.
934 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
935 test -d $ac_dir || continue
938 if test "$ac_dir" != .; then
939 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
940 # A "../" for each directory in $ac_dir_suffix.
941 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
943 ac_dir_suffix= ac_top_builddir=
947 .) # No --srcdir option. We are building in place.
949 if test -z "$ac_top_builddir"; then
952 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
954 [\\/]* | ?:[\\/]* ) # Absolute path.
955 ac_srcdir=$srcdir$ac_dir_suffix;
956 ac_top_srcdir=$srcdir ;;
958 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
959 ac_top_srcdir=$ac_top_builddir$srcdir ;;
961 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
963 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
964 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
965 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
966 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
969 # Check for guested configure; otherwise get Cygnus style configure.
970 if test -f $ac_srcdir/configure.gnu; then
972 $SHELL $ac_srcdir/configure.gnu --help=recursive
973 elif test -f $ac_srcdir/configure; then
975 $SHELL $ac_srcdir/configure --help=recursive
976 elif test -f $ac_srcdir/configure.ac ||
977 test -f $ac_srcdir/configure.in; then
981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
991 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
992 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1003 It was created by $as_me, which was
1004 generated by GNU Autoconf 2.57. Invocation command line was
1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1024 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1025 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1028 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1029 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1030 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1063 ac_must_keep_next=false
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092 -* ) ac_must_keep_next=true ;;
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close' the trap.
1110 trap 'exit_status=$?
1111 # Save into config.log some information that might help in debugging.
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1121 # The following way of writing the cache mishandles newlines in values,
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1144 for ac_var in $ac_subst_vars
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -n "$ac_subst_files"; then
1158 for ac_var in $ac_subst_files
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1166 if test -s confdefs.h; then
1173 sed "/^$/d" confdefs.h | sort
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1180 rm -f core core.* *.core &&
1181 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's/^/| /' "$ac_site_file" >&5
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1256 # Check that the precious variables saved in the cache have kept the same
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1337 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1338 if test -f $ac_dir/install-sh; then
1340 ac_install_sh="$ac_aux_dir/install-sh -c"
1342 elif test -f $ac_dir/install.sh; then
1344 ac_install_sh="$ac_aux_dir/install.sh -c"
1346 elif test -f $ac_dir/shtool; then
1348 ac_install_sh="$ac_aux_dir/shtool install -c"
1352 if test -z "$ac_aux_dir"; then
1353 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1354 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1355 { (exit 1); exit 1; }; }
1357 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1358 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1359 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1361 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1369 # Extract the first word of "$ac_prog", so it can be a program name with args.
1370 set dummy $ac_prog; ac_word=$2
1371 echo "$as_me:$LINENO: checking for $ac_word" >&5
1372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1373 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1374 echo $ECHO_N "(cached) $ECHO_C" >&6
1378 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385 test -z "$as_dir" && as_dir=.
1386 for ac_exec_ext in '' $ac_executable_extensions; do
1387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1388 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1398 TRUEPRG=$ac_cv_path_TRUEPRG
1400 if test -n "$TRUEPRG"; then
1401 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1402 echo "${ECHO_T}$TRUEPRG" >&6
1404 echo "$as_me:$LINENO: result: no" >&5
1405 echo "${ECHO_T}no" >&6
1408 test -n "$TRUEPRG" && break
1410 test -n "$TRUEPRG" || TRUEPRG=":"
1412 for ac_prog in false
1414 # Extract the first word of "$ac_prog", so it can be a program name with args.
1415 set dummy $ac_prog; ac_word=$2
1416 echo "$as_me:$LINENO: checking for $ac_word" >&5
1417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1423 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430 test -z "$as_dir" && as_dir=.
1431 for ac_exec_ext in '' $ac_executable_extensions; do
1432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1443 FALSEPRG=$ac_cv_path_FALSEPRG
1445 if test -n "$FALSEPRG"; then
1446 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1447 echo "${ECHO_T}$FALSEPRG" >&6
1449 echo "$as_me:$LINENO: result: no" >&5
1450 echo "${ECHO_T}no" >&6
1453 test -n "$FALSEPRG" && break
1455 test -n "$FALSEPRG" || FALSEPRG=":"
1458 # Make sure we can run config.sub.
1459 $ac_config_sub sun4 >/dev/null 2>&1 ||
1460 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1461 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1462 { (exit 1); exit 1; }; }
1464 echo "$as_me:$LINENO: checking build system type" >&5
1465 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1466 if test "${ac_cv_build+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 ac_cv_build_alias=$build_alias
1470 test -z "$ac_cv_build_alias" &&
1471 ac_cv_build_alias=`$ac_config_guess`
1472 test -z "$ac_cv_build_alias" &&
1473 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1474 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1475 { (exit 1); exit 1; }; }
1476 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1477 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1478 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1479 { (exit 1); exit 1; }; }
1482 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1483 echo "${ECHO_T}$ac_cv_build" >&6
1485 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1486 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1487 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1490 echo "$as_me:$LINENO: checking host system type" >&5
1491 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1492 if test "${ac_cv_host+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 ac_cv_host_alias=$host_alias
1496 test -z "$ac_cv_host_alias" &&
1497 ac_cv_host_alias=$ac_cv_build_alias
1498 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1499 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1500 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1501 { (exit 1); exit 1; }; }
1504 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1505 echo "${ECHO_T}$ac_cv_host" >&6
1507 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1508 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1509 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1513 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1514 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1515 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1516 echo "configuring for bacula $VERSION ($DATE)"
1521 ac_cpp='$CPP $CPPFLAGS'
1522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1525 if test -n "$ac_tool_prefix"; then
1526 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1527 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 if test -n "$CC"; then
1534 ac_cv_prog_CC="$CC" # Let the user override the test.
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 test -z "$as_dir" && as_dir=.
1541 for ac_exec_ext in '' $ac_executable_extensions; do
1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1553 if test -n "$CC"; then
1554 echo "$as_me:$LINENO: result: $CC" >&5
1555 echo "${ECHO_T}$CC" >&6
1557 echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1562 if test -z "$ac_cv_prog_CC"; then
1564 # Extract the first word of "gcc", so it can be a program name with args.
1565 set dummy gcc; ac_word=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 if test -n "$ac_ct_CC"; then
1572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 test -z "$as_dir" && as_dir=.
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581 ac_cv_prog_ac_ct_CC="gcc"
1582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1591 if test -n "$ac_ct_CC"; then
1592 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1593 echo "${ECHO_T}$ac_ct_CC" >&6
1595 echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1604 if test -z "$CC"; then
1605 if test -n "$ac_tool_prefix"; then
1606 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1607 set dummy ${ac_tool_prefix}cc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1613 if test -n "$CC"; then
1614 ac_cv_prog_CC="$CC" # Let the user override the test.
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 test -z "$as_dir" && as_dir=.
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623 ac_cv_prog_CC="${ac_tool_prefix}cc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633 if test -n "$CC"; then
1634 echo "$as_me:$LINENO: result: $CC" >&5
1635 echo "${ECHO_T}$CC" >&6
1637 echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1642 if test -z "$ac_cv_prog_CC"; then
1644 # Extract the first word of "cc", so it can be a program name with args.
1645 set dummy cc; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 if test -n "$ac_ct_CC"; then
1652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 test -z "$as_dir" && as_dir=.
1659 for ac_exec_ext in '' $ac_executable_extensions; do
1660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661 ac_cv_prog_ac_ct_CC="cc"
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671 if test -n "$ac_ct_CC"; then
1672 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673 echo "${ECHO_T}$ac_ct_CC" >&6
1675 echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1685 if test -z "$CC"; then
1686 # Extract the first word of "cc", so it can be a program name with args.
1687 set dummy cc; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_CC+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1693 if test -n "$CC"; then
1694 ac_cv_prog_CC="$CC" # Let the user override the test.
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 test -z "$as_dir" && as_dir=.
1702 for ac_exec_ext in '' $ac_executable_extensions; do
1703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1705 ac_prog_rejected=yes
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 if test $ac_prog_rejected = yes; then
1716 # We found a bogon in the path, so make sure we never use it.
1717 set dummy $ac_cv_prog_CC
1719 if test $# != 0; then
1720 # We chose a different compiler from the bogus one.
1721 # However, it has the same basename, so the bogon will be chosen
1722 # first if we set CC to just the basename; use the full file name.
1724 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1730 if test -n "$CC"; then
1731 echo "$as_me:$LINENO: result: $CC" >&5
1732 echo "${ECHO_T}$CC" >&6
1734 echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1739 if test -z "$CC"; then
1740 if test -n "$ac_tool_prefix"; then
1743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_CC+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1750 if test -n "$CC"; then
1751 ac_cv_prog_CC="$CC" # Let the user override the test.
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 test -z "$as_dir" && as_dir=.
1758 for ac_exec_ext in '' $ac_executable_extensions; do
1759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770 if test -n "$CC"; then
1771 echo "$as_me:$LINENO: result: $CC" >&5
1772 echo "${ECHO_T}$CC" >&6
1774 echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1778 test -n "$CC" && break
1781 if test -z "$CC"; then
1785 # Extract the first word of "$ac_prog", so it can be a program name with args.
1786 set dummy $ac_prog; ac_word=$2
1787 echo "$as_me:$LINENO: checking for $ac_word" >&5
1788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1790 echo $ECHO_N "(cached) $ECHO_C" >&6
1792 if test -n "$ac_ct_CC"; then
1793 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 test -z "$as_dir" && as_dir=.
1800 for ac_exec_ext in '' $ac_executable_extensions; do
1801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1802 ac_cv_prog_ac_ct_CC="$ac_prog"
1803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1812 if test -n "$ac_ct_CC"; then
1813 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1814 echo "${ECHO_T}$ac_ct_CC" >&6
1816 echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1820 test -n "$ac_ct_CC" && break
1829 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: no acceptable C compiler found in \$PATH
1832 See \`config.log' for more details." >&2;}
1833 { (exit 1); exit 1; }; }
1835 # Provide some information about the compiler.
1836 echo "$as_me:$LINENO:" \
1837 "checking for C compiler version" >&5
1838 ac_compiler=`set X $ac_compile; echo $2`
1839 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1840 (eval $ac_compiler --version </dev/null >&5) 2>&5
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); }
1844 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1845 (eval $ac_compiler -v </dev/null >&5) 2>&5
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }
1849 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1850 (eval $ac_compiler -V </dev/null >&5) 2>&5
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }
1855 cat >conftest.$ac_ext <<_ACEOF
1856 #line $LINENO "configure"
1859 cat confdefs.h >>conftest.$ac_ext
1860 cat >>conftest.$ac_ext <<_ACEOF
1861 /* end confdefs.h. */
1871 ac_clean_files_save=$ac_clean_files
1872 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1873 # Try to create an executable without -o first, disregard a.out.
1874 # It will help us diagnose broken compilers, and finding out an intuition
1876 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1877 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1878 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1879 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1880 (eval $ac_link_default) 2>&5
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }; then
1884 # Find the output, starting from the most likely. This scheme is
1885 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1888 # Be careful to initialize this variable, since it used to be cached.
1889 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1891 # b.out is created by i960 compilers.
1892 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1894 test -f "$ac_file" || continue
1896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1899 # This is the source file.
1902 # We found the default executable, but exeext='' is most
1906 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1907 # FIXME: I believe we export ac_cv_exeext for Libtool,
1908 # but it would be cool to find out if it's true. Does anybody
1909 # maintain Libtool? --akim.
1917 echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1920 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&5
1922 echo "$as_me: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&2;}
1924 { (exit 77); exit 77; }; }
1927 ac_exeext=$ac_cv_exeext
1928 echo "$as_me:$LINENO: result: $ac_file" >&5
1929 echo "${ECHO_T}$ac_file" >&6
1931 # Check the compiler produces executables we can run. If not, either
1932 # the compiler is broken, or we cross compile.
1933 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1934 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1935 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1936 # If not cross compiling, check that we can run a simple program.
1937 if test "$cross_compiling" != yes; then
1938 if { ac_try='./$ac_file'
1939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; }; then
1946 if test "$cross_compiling" = maybe; then
1949 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1950 If you meant to cross compile, use \`--host'.
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: cannot run C compiled programs.
1953 If you meant to cross compile, use \`--host'.
1954 See \`config.log' for more details." >&2;}
1955 { (exit 1); exit 1; }; }
1959 echo "$as_me:$LINENO: result: yes" >&5
1960 echo "${ECHO_T}yes" >&6
1962 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1963 ac_clean_files=$ac_clean_files_save
1964 # Check the compiler produces executables we can run. If not, either
1965 # the compiler is broken, or we cross compile.
1966 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1967 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1968 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1969 echo "${ECHO_T}$cross_compiling" >&6
1971 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1972 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1974 (eval $ac_link) 2>&5
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }; then
1978 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1979 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1980 # work properly (i.e., refer to `conftest.exe'), while it won't with
1982 for ac_file in conftest.exe conftest conftest.*; do
1983 test -f "$ac_file" || continue
1985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1986 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1993 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&5
1995 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&2;}
1997 { (exit 1); exit 1; }; }
2000 rm -f conftest$ac_cv_exeext
2001 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2002 echo "${ECHO_T}$ac_cv_exeext" >&6
2004 rm -f conftest.$ac_ext
2005 EXEEXT=$ac_cv_exeext
2007 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2008 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2009 if test "${ac_cv_objext+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 cat >conftest.$ac_ext <<_ACEOF
2013 #line $LINENO "configure"
2016 cat confdefs.h >>conftest.$ac_ext
2017 cat >>conftest.$ac_ext <<_ACEOF
2018 /* end confdefs.h. */
2028 rm -f conftest.o conftest.obj
2029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2030 (eval $ac_compile) 2>&5
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }; then
2034 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2037 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2042 echo "$as_me: failed program was:" >&5
2043 sed 's/^/| /' conftest.$ac_ext >&5
2045 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2046 See \`config.log' for more details." >&5
2047 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2048 See \`config.log' for more details." >&2;}
2049 { (exit 1); exit 1; }; }
2052 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2054 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2055 echo "${ECHO_T}$ac_cv_objext" >&6
2056 OBJEXT=$ac_cv_objext
2058 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2059 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2060 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 cat >conftest.$ac_ext <<_ACEOF
2064 #line $LINENO "configure"
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h. */
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084 (eval $ac_compile) 2>&5
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); } &&
2088 { ac_try='test -s conftest.$ac_objext'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; }; then
2096 echo "$as_me: failed program was:" >&5
2097 sed 's/^/| /' conftest.$ac_ext >&5
2101 rm -f conftest.$ac_objext conftest.$ac_ext
2102 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2105 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2106 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2107 GCC=`test $ac_compiler_gnu = yes && echo yes`
2108 ac_test_CFLAGS=${CFLAGS+set}
2109 ac_save_CFLAGS=$CFLAGS
2111 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2112 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2113 if test "${ac_cv_prog_cc_g+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 cat >conftest.$ac_ext <<_ACEOF
2117 #line $LINENO "configure"
2120 cat confdefs.h >>conftest.$ac_ext
2121 cat >>conftest.$ac_ext <<_ACEOF
2122 /* end confdefs.h. */
2132 rm -f conftest.$ac_objext
2133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2134 (eval $ac_compile) 2>&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); } &&
2138 { ac_try='test -s conftest.$ac_objext'
2139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }; }; then
2146 echo "$as_me: failed program was:" >&5
2147 sed 's/^/| /' conftest.$ac_ext >&5
2151 rm -f conftest.$ac_objext conftest.$ac_ext
2153 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2154 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2155 if test "$ac_test_CFLAGS" = set; then
2156 CFLAGS=$ac_save_CFLAGS
2157 elif test $ac_cv_prog_cc_g = yes; then
2158 if test "$GCC" = yes; then
2164 if test "$GCC" = yes; then
2170 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2171 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2172 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 ac_cv_prog_cc_stdc=no
2177 cat >conftest.$ac_ext <<_ACEOF
2178 #line $LINENO "configure"
2181 cat confdefs.h >>conftest.$ac_ext
2182 cat >>conftest.$ac_ext <<_ACEOF
2183 /* end confdefs.h. */
2186 #include <sys/types.h>
2187 #include <sys/stat.h>
2188 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2189 struct buf { int x; };
2190 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2191 static char *e (p, i)
2197 static char *f (char * (*g) (char **, int), char **p, ...)
2202 s = g (p, va_arg (v,int));
2206 int test (int i, double x);
2207 struct s1 {int (*f) (int a);};
2208 struct s2 {int (*f) (double a);};
2209 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2215 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2220 # Don't try gcc -ansi; that turns off useful extensions and
2221 # breaks some systems' header files.
2222 # AIX -qlanglvl=ansi
2223 # Ultrix and OSF/1 -std1
2224 # HP-UX 10.20 and later -Ae
2225 # HP-UX older versions -Aa -D_HPUX_SOURCE
2226 # SVR4 -Xc -D__EXTENSIONS__
2227 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2229 CC="$ac_save_CC $ac_arg"
2230 rm -f conftest.$ac_objext
2231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232 (eval $ac_compile) 2>&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 ac_cv_prog_cc_stdc=$ac_arg
2245 echo "$as_me: failed program was:" >&5
2246 sed 's/^/| /' conftest.$ac_ext >&5
2249 rm -f conftest.$ac_objext
2251 rm -f conftest.$ac_ext conftest.$ac_objext
2256 case "x$ac_cv_prog_cc_stdc" in
2258 echo "$as_me:$LINENO: result: none needed" >&5
2259 echo "${ECHO_T}none needed" >&6 ;;
2261 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2262 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2263 CC="$CC $ac_cv_prog_cc_stdc" ;;
2266 # Some people use a C++ compiler to compile C. Since we use `exit',
2267 # in C++ we need to declare it. In case someone uses the same compiler
2268 # for both compiling C and C++ we need to have the C++ compiler decide
2269 # the declaration of exit, since it's the most demanding environment.
2270 cat >conftest.$ac_ext <<_ACEOF
2275 rm -f conftest.$ac_objext
2276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277 (eval $ac_compile) 2>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
2281 { ac_try='test -s conftest.$ac_objext'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2287 for ac_declaration in \
2289 '#include <stdlib.h>' \
2290 'extern "C" void std::exit (int) throw (); using std::exit;' \
2291 'extern "C" void std::exit (int); using std::exit;' \
2292 'extern "C" void exit (int) throw ();' \
2293 'extern "C" void exit (int);' \
2296 cat >conftest.$ac_ext <<_ACEOF
2297 #line $LINENO "configure"
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h. */
2313 rm -f conftest.$ac_objext
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 (eval $ac_compile) 2>&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try='test -s conftest.$ac_objext'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2332 rm -f conftest.$ac_objext conftest.$ac_ext
2333 cat >conftest.$ac_ext <<_ACEOF
2334 #line $LINENO "configure"
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2349 rm -f conftest.$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } &&
2355 { ac_try='test -s conftest.$ac_objext'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2363 echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2367 rm -f conftest.$ac_objext conftest.$ac_ext
2370 if test -n "$ac_declaration"; then
2371 echo '#ifdef __cplusplus' >>confdefs.h
2372 echo $ac_declaration >>confdefs.h
2373 echo '#endif' >>confdefs.h
2377 echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2381 rm -f conftest.$ac_objext conftest.$ac_ext
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2389 ac_cpp='$CXXCPP $CPPFLAGS'
2390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2393 if test -n "$ac_tool_prefix"; then
2394 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2398 echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400 if test "${ac_cv_prog_CXX+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 if test -n "$CXX"; then
2404 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 if test -n "$CXX"; then
2424 echo "$as_me:$LINENO: result: $CXX" >&5
2425 echo "${ECHO_T}$CXX" >&6
2427 echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6
2431 test -n "$CXX" && break
2434 if test -z "$CXX"; then
2436 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2438 # Extract the first word of "$ac_prog", so it can be a program name with args.
2439 set dummy $ac_prog; ac_word=$2
2440 echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2442 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 if test -n "$ac_ct_CXX"; then
2446 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455 ac_cv_prog_ac_ct_CXX="$ac_prog"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2465 if test -n "$ac_ct_CXX"; then
2466 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2467 echo "${ECHO_T}$ac_ct_CXX" >&6
2469 echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6
2473 test -n "$ac_ct_CXX" && break
2475 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2481 # Provide some information about the compiler.
2482 echo "$as_me:$LINENO:" \
2483 "checking for C++ compiler version" >&5
2484 ac_compiler=`set X $ac_compile; echo $2`
2485 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2486 (eval $ac_compiler --version </dev/null >&5) 2>&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }
2490 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2491 (eval $ac_compiler -v </dev/null >&5) 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }
2495 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2496 (eval $ac_compiler -V </dev/null >&5) 2>&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }
2501 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2502 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2503 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 cat >conftest.$ac_ext <<_ACEOF
2507 #line $LINENO "configure"
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); } &&
2531 { ac_try='test -s conftest.$ac_objext'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2544 rm -f conftest.$ac_objext conftest.$ac_ext
2545 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2548 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2549 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2550 GXX=`test $ac_compiler_gnu = yes && echo yes`
2551 ac_test_CXXFLAGS=${CXXFLAGS+set}
2552 ac_save_CXXFLAGS=$CXXFLAGS
2554 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2555 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2556 if test "${ac_cv_prog_cxx_g+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 cat >conftest.$ac_ext <<_ACEOF
2560 #line $LINENO "configure"
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h. */
2575 rm -f conftest.$ac_objext
2576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2577 (eval $ac_compile) 2>&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2587 ac_cv_prog_cxx_g=yes
2589 echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2594 rm -f conftest.$ac_objext conftest.$ac_ext
2596 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2597 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2598 if test "$ac_test_CXXFLAGS" = set; then
2599 CXXFLAGS=$ac_save_CXXFLAGS
2600 elif test $ac_cv_prog_cxx_g = yes; then
2601 if test "$GXX" = yes; then
2607 if test "$GXX" = yes; then
2613 for ac_declaration in \
2615 '#include <stdlib.h>' \
2616 'extern "C" void std::exit (int) throw (); using std::exit;' \
2617 'extern "C" void std::exit (int); using std::exit;' \
2618 'extern "C" void exit (int) throw ();' \
2619 'extern "C" void exit (int);' \
2622 cat >conftest.$ac_ext <<_ACEOF
2623 #line $LINENO "configure"
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2639 rm -f conftest.$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641 (eval $ac_compile) 2>&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try='test -s conftest.$ac_objext'
2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; }; then
2653 echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2658 rm -f conftest.$ac_objext conftest.$ac_ext
2659 cat >conftest.$ac_ext <<_ACEOF
2660 #line $LINENO "configure"
2663 cat confdefs.h >>conftest.$ac_ext
2664 cat >>conftest.$ac_ext <<_ACEOF
2665 /* end confdefs.h. */
2675 rm -f conftest.$ac_objext
2676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2677 (eval $ac_compile) 2>&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try='test -s conftest.$ac_objext'
2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; }; then
2689 echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2693 rm -f conftest.$ac_objext conftest.$ac_ext
2696 if test -n "$ac_declaration"; then
2697 echo '#ifdef __cplusplus' >>confdefs.h
2698 echo $ac_declaration >>confdefs.h
2699 echo '#endif' >>confdefs.h
2703 ac_cpp='$CPP $CPPFLAGS'
2704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2708 if test "x$CC" != xcc; then
2709 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2710 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2712 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2713 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2715 set dummy $CC; ac_cc=`echo $2 |
2716 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2717 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 cat >conftest.$ac_ext <<_ACEOF
2721 #line $LINENO "configure"
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2736 # Make sure it works both with $CC and with simple cc.
2737 # We do the test twice because some compilers refuse to overwrite an
2738 # existing .o file with -o, though they will create one.
2739 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2740 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } &&
2745 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); };
2751 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2752 if test "x$CC" != xcc; then
2753 # Test first that cc exists at all.
2754 if { ac_try='cc -c conftest.$ac_ext >&5'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; }; then
2760 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2761 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); };
2775 # cc exists but doesn't like -o.
2776 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2781 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2786 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2787 echo "$as_me:$LINENO: result: yes" >&5
2788 echo "${ECHO_T}yes" >&6
2790 echo "$as_me:$LINENO: result: no" >&5
2791 echo "${ECHO_T}no" >&6
2793 cat >>confdefs.h <<\_ACEOF
2794 #define NO_MINUS_C_MINUS_O 1
2800 ac_cpp='$CPP $CPPFLAGS'
2801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2805 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2806 # On Suns, sometimes $CPP names a directory.
2807 if test -n "$CPP" && test -d "$CPP"; then
2810 if test -z "$CPP"; then
2811 if test "${ac_cv_prog_CPP+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2814 # Double quotes because CPP needs to be expanded
2815 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2818 for ac_c_preproc_warn_flag in '' yes
2820 # Use a header file that comes with gcc, so configuring glibc
2821 # with a fresh cross-compiler works.
2822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2823 # <limits.h> exists even on freestanding compilers.
2824 # On the NeXT, cc -E runs the code through the compiler's parser,
2825 # not just through cpp. "Syntax error" is here to catch this case.
2826 cat >conftest.$ac_ext <<_ACEOF
2827 #line $LINENO "configure"
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h. */
2834 # include <limits.h>
2836 # include <assert.h>
2840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2843 grep -v '^ *+' conftest.er1 >conftest.err
2845 cat conftest.err >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } >/dev/null; then
2848 if test -s conftest.err; then
2849 ac_cpp_err=$ac_c_preproc_warn_flag
2856 if test -z "$ac_cpp_err"; then
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2862 # Broken: fails on valid input.
2865 rm -f conftest.err conftest.$ac_ext
2867 # OK, works on sane cases. Now check whether non-existent headers
2868 # can be detected and how.
2869 cat >conftest.$ac_ext <<_ACEOF
2870 #line $LINENO "configure"
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2876 #include <ac_nonexistent.h>
2878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2881 grep -v '^ *+' conftest.er1 >conftest.err
2883 cat conftest.err >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } >/dev/null; then
2886 if test -s conftest.err; then
2887 ac_cpp_err=$ac_c_preproc_warn_flag
2894 if test -z "$ac_cpp_err"; then
2895 # Broken: success on invalid input.
2898 echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2901 # Passes both tests.
2905 rm -f conftest.err conftest.$ac_ext
2908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2909 rm -f conftest.err conftest.$ac_ext
2910 if $ac_preproc_ok; then
2922 echo "$as_me:$LINENO: result: $CPP" >&5
2923 echo "${ECHO_T}$CPP" >&6
2925 for ac_c_preproc_warn_flag in '' yes
2927 # Use a header file that comes with gcc, so configuring glibc
2928 # with a fresh cross-compiler works.
2929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2930 # <limits.h> exists even on freestanding compilers.
2931 # On the NeXT, cc -E runs the code through the compiler's parser,
2932 # not just through cpp. "Syntax error" is here to catch this case.
2933 cat >conftest.$ac_ext <<_ACEOF
2934 #line $LINENO "configure"
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h. */
2941 # include <limits.h>
2943 # include <assert.h>
2947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950 grep -v '^ *+' conftest.er1 >conftest.err
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } >/dev/null; then
2955 if test -s conftest.err; then
2956 ac_cpp_err=$ac_c_preproc_warn_flag
2963 if test -z "$ac_cpp_err"; then
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2969 # Broken: fails on valid input.
2972 rm -f conftest.err conftest.$ac_ext
2974 # OK, works on sane cases. Now check whether non-existent headers
2975 # can be detected and how.
2976 cat >conftest.$ac_ext <<_ACEOF
2977 #line $LINENO "configure"
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2983 #include <ac_nonexistent.h>
2985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2988 grep -v '^ *+' conftest.er1 >conftest.err
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } >/dev/null; then
2993 if test -s conftest.err; then
2994 ac_cpp_err=$ac_c_preproc_warn_flag
3001 if test -z "$ac_cpp_err"; then
3002 # Broken: success on invalid input.
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3008 # Passes both tests.
3012 rm -f conftest.err conftest.$ac_ext
3015 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3016 rm -f conftest.err conftest.$ac_ext
3017 if $ac_preproc_ok; then
3020 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3021 See \`config.log' for more details." >&5
3022 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3023 See \`config.log' for more details." >&2;}
3024 { (exit 1); exit 1; }; }
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3034 echo "$as_me:$LINENO: checking for egrep" >&5
3035 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3036 if test "${ac_cv_prog_egrep+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3040 then ac_cv_prog_egrep='grep -E'
3041 else ac_cv_prog_egrep='egrep'
3044 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3045 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3046 EGREP=$ac_cv_prog_egrep
3049 if test $ac_cv_c_compiler_gnu = yes; then
3050 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3051 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3052 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 ac_pattern="Autoconf.*'x'"
3056 cat >conftest.$ac_ext <<_ACEOF
3057 #line $LINENO "configure"
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3067 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3068 ac_cv_prog_gcc_traditional=yes
3070 ac_cv_prog_gcc_traditional=no
3075 if test $ac_cv_prog_gcc_traditional = no; then
3076 cat >conftest.$ac_ext <<_ACEOF
3077 #line $LINENO "configure"
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3087 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3088 ac_cv_prog_gcc_traditional=yes
3094 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3095 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3096 if test $ac_cv_prog_gcc_traditional = yes; then
3097 CC="$CC -traditional"
3103 cat >>confdefs.h <<\_ACEOF
3109 # Find a good install program. We prefer a C program (faster),
3110 # so one script is as good as another. But avoid the broken or
3111 # incompatible versions:
3112 # SysV /etc/install, /usr/sbin/install
3113 # SunOS /usr/etc/install
3114 # IRIX /sbin/install
3116 # AmigaOS /C/install, which installs bootblocks on floppy discs
3117 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3118 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3119 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3120 # ./install, which can be erroneously created by make from ./install.sh.
3121 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3122 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3123 if test -z "$INSTALL"; then
3124 if test "${ac_cv_path_install+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 test -z "$as_dir" && as_dir=.
3132 # Account for people who put trailing slashes in PATH elements.
3134 ./ | .// | /cC/* | \
3135 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3138 # OSF1 and SCO ODT 3.0 have their own names for install.
3139 # Don't use installbsd from OSF since it installs stuff as root
3141 for ac_prog in ginstall scoinst install; do
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3144 if test $ac_prog = install &&
3145 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3146 # AIX install. It has an incompatible calling convention.
3148 elif test $ac_prog = install &&
3149 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3150 # program-specific install script used by HP pwplus--don't use.
3153 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3165 if test "${ac_cv_path_install+set}" = set; then
3166 INSTALL=$ac_cv_path_install
3168 # As a last resort, use the slow shell script. We don't cache a
3169 # path for INSTALL within a source directory, because that will
3170 # break other packages using the cache if that directory is
3171 # removed, or if the path is relative.
3172 INSTALL=$ac_install_sh
3175 echo "$as_me:$LINENO: result: $INSTALL" >&5
3176 echo "${ECHO_T}$INSTALL" >&6
3178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3179 # It thinks the first close brace ends the variable substitution.
3180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3182 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3184 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3186 if test -n "$ac_tool_prefix"; then
3187 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3188 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3189 echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191 if test "${ac_cv_prog_RANLIB+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 if test -n "$RANLIB"; then
3195 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 RANLIB=$ac_cv_prog_RANLIB
3214 if test -n "$RANLIB"; then
3215 echo "$as_me:$LINENO: result: $RANLIB" >&5
3216 echo "${ECHO_T}$RANLIB" >&6
3218 echo "$as_me:$LINENO: result: no" >&5
3219 echo "${ECHO_T}no" >&6
3223 if test -z "$ac_cv_prog_RANLIB"; then
3224 ac_ct_RANLIB=$RANLIB
3225 # Extract the first word of "ranlib", so it can be a program name with args.
3226 set dummy ranlib; ac_word=$2
3227 echo "$as_me:$LINENO: checking for $ac_word" >&5
3228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3229 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 if test -n "$ac_ct_RANLIB"; then
3233 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3242 ac_cv_prog_ac_ct_RANLIB="ranlib"
3243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3249 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3252 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3253 if test -n "$ac_ct_RANLIB"; then
3254 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3255 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3257 echo "$as_me:$LINENO: result: no" >&5
3258 echo "${ECHO_T}no" >&6
3261 RANLIB=$ac_ct_RANLIB
3263 RANLIB="$ac_cv_prog_RANLIB"
3266 # Extract the first word of "mv", so it can be a program name with args.
3267 set dummy mv; ac_word=$2
3268 echo "$as_me:$LINENO: checking for $ac_word" >&5
3269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3270 if test "${ac_cv_path_MV+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3285 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3298 if test -n "$MV"; then
3299 echo "$as_me:$LINENO: result: $MV" >&5
3300 echo "${ECHO_T}$MV" >&6
3302 echo "$as_me:$LINENO: result: no" >&5
3303 echo "${ECHO_T}no" >&6
3306 # Extract the first word of "rm", so it can be a program name with args.
3307 set dummy rm; ac_word=$2
3308 echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3310 if test "${ac_cv_path_RM+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3338 if test -n "$RM"; then
3339 echo "$as_me:$LINENO: result: $RM" >&5
3340 echo "${ECHO_T}$RM" >&6
3342 echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6
3346 # Extract the first word of "cp", so it can be a program name with args.
3347 set dummy cp; ac_word=$2
3348 echo "$as_me:$LINENO: checking for $ac_word" >&5
3349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3350 if test "${ac_cv_path_CP+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3378 if test -n "$CP"; then
3379 echo "$as_me:$LINENO: result: $CP" >&5
3380 echo "${ECHO_T}$CP" >&6
3382 echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3386 # Extract the first word of "sed", so it can be a program name with args.
3387 set dummy sed; ac_word=$2
3388 echo "$as_me:$LINENO: checking for $ac_word" >&5
3389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3390 if test "${ac_cv_path_SED+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3418 if test -n "$SED"; then
3419 echo "$as_me:$LINENO: result: $SED" >&5
3420 echo "${ECHO_T}$SED" >&6
3422 echo "$as_me:$LINENO: result: no" >&5
3423 echo "${ECHO_T}no" >&6
3426 # Extract the first word of "awk", so it can be a program name with args.
3427 set dummy awk; ac_word=$2
3428 echo "$as_me:$LINENO: checking for $ac_word" >&5
3429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3430 if test "${ac_cv_path_AWK+set}" = set; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3445 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3458 if test -n "$AWK"; then
3459 echo "$as_me:$LINENO: result: $AWK" >&5
3460 echo "${ECHO_T}$AWK" >&6
3462 echo "$as_me:$LINENO: result: no" >&5
3463 echo "${ECHO_T}no" >&6
3466 # Extract the first word of "echo", so it can be a program name with args.
3467 set dummy echo; ac_word=$2
3468 echo "$as_me:$LINENO: checking for $ac_word" >&5
3469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3470 if test "${ac_cv_path_ECHO+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3485 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3496 ECHO=$ac_cv_path_ECHO
3498 if test -n "$ECHO"; then
3499 echo "$as_me:$LINENO: result: $ECHO" >&5
3500 echo "${ECHO_T}$ECHO" >&6
3502 echo "$as_me:$LINENO: result: no" >&5
3503 echo "${ECHO_T}no" >&6
3506 # Extract the first word of "cmp", so it can be a program name with args.
3507 set dummy cmp; ac_word=$2
3508 echo "$as_me:$LINENO: checking for $ac_word" >&5
3509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3510 if test "${ac_cv_path_CMP+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3538 if test -n "$CMP"; then
3539 echo "$as_me:$LINENO: result: $CMP" >&5
3540 echo "${ECHO_T}$CMP" >&6
3542 echo "$as_me:$LINENO: result: no" >&5
3543 echo "${ECHO_T}no" >&6
3546 # Extract the first word of "tbl", so it can be a program name with args.
3547 set dummy tbl; ac_word=$2
3548 echo "$as_me:$LINENO: checking for $ac_word" >&5
3549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3550 if test "${ac_cv_path_TBL+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 test -z "$as_dir" && as_dir=.
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3578 if test -n "$TBL"; then
3579 echo "$as_me:$LINENO: result: $TBL" >&5
3580 echo "${ECHO_T}$TBL" >&6
3582 echo "$as_me:$LINENO: result: no" >&5
3583 echo "${ECHO_T}no" >&6
3586 # Extract the first word of "ar", so it can be a program name with args.
3587 set dummy ar; ac_word=$2
3588 echo "$as_me:$LINENO: checking for $ac_word" >&5
3589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3590 if test "${ac_cv_path_AR+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3612 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3618 if test -n "$AR"; then
3619 echo "$as_me:$LINENO: result: $AR" >&5
3620 echo "${ECHO_T}$AR" >&6
3622 echo "$as_me:$LINENO: result: no" >&5
3623 echo "${ECHO_T}no" >&6
3626 # Extract the first word of "ranlib", so it can be a program name with args.
3627 set dummy ranlib; ac_word=$2
3628 echo "$as_me:$LINENO: checking for $ac_word" >&5
3629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3630 if test "${ac_cv_path_RANLIB+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3645 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3656 RANLIB=$ac_cv_path_RANLIB
3658 if test -n "$RANLIB"; then
3659 echo "$as_me:$LINENO: result: $RANLIB" >&5
3660 echo "${ECHO_T}$RANLIB" >&6
3662 echo "$as_me:$LINENO: result: no" >&5
3663 echo "${ECHO_T}no" >&6
3666 # Extract the first word of "openssl", so it can be a program name with args.
3667 set dummy openssl; ac_word=$2
3668 echo "$as_me:$LINENO: checking for $ac_word" >&5
3669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3670 if test "${ac_cv_path_OPENSSL+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3685 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3696 OPENSSL=$ac_cv_path_OPENSSL
3698 if test -n "$OPENSSL"; then
3699 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3700 echo "${ECHO_T}$OPENSSL" >&6
3702 echo "$as_me:$LINENO: result: no" >&5
3703 echo "${ECHO_T}no" >&6
3706 # Extract the first word of "mtx", so it can be a program name with args.
3707 set dummy mtx; ac_word=$2
3708 echo "$as_me:$LINENO: checking for $ac_word" >&5
3709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3710 if test "${ac_cv_path_MTX+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 test -z "$as_dir" && as_dir=.
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3725 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3738 if test -n "$MTX"; then
3739 echo "$as_me:$LINENO: result: $MTX" >&5
3740 echo "${ECHO_T}$MTX" >&6
3742 echo "$as_me:$LINENO: result: no" >&5
3743 echo "${ECHO_T}no" >&6
3746 # Extract the first word of "pkg-config", so it can be a program name with args.
3747 set dummy pkg-config; ac_word=$2
3748 echo "$as_me:$LINENO: checking for $ac_word" >&5
3749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3750 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 test -z "$as_dir" && as_dir=.
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3765 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3776 PKGCONFIG=$ac_cv_path_PKGCONFIG
3778 if test -n "$PKGCONFIG"; then
3779 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3780 echo "${ECHO_T}$PKGCONFIG" >&6
3782 echo "$as_me:$LINENO: result: no" >&5
3783 echo "${ECHO_T}no" >&6
3787 test -n "$ARFLAG" || ARFLAGS="cr"
3800 echo "$as_me:$LINENO: checking for Operating System" >&5
3801 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3804 *cygwin* ) CYGWIN=yes;;
3808 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3814 HAVE_SUN_OS_FALSE='#'
3816 HAVE_SUN_OS_TRUE='#'
3819 cat >>confdefs.h <<\_ACEOF
3820 #define HAVE_SUN_OS 1
3828 HAVE_SUN_OS_FALSE='#'
3830 HAVE_SUN_OS_TRUE='#'
3835 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3841 HAVE_OSF1_OS_FALSE='#'
3843 HAVE_OSF1_OS_TRUE='#'
3846 cat >>confdefs.h <<\_ACEOF
3847 #define HAVE_OSF1_OS 1
3855 HAVE_OSF1_OS_FALSE='#'
3857 HAVE_OSF1_OS_TRUE='#'
3862 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3868 HAVE_AIX_OS_FALSE='#'
3870 HAVE_AIX_OS_TRUE='#'
3873 cat >>confdefs.h <<\_ACEOF
3874 #define HAVE_AIX_OS 1
3882 HAVE_AIX_OS_FALSE='#'
3884 HAVE_AIX_OS_TRUE='#'
3889 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3895 HAVE_HPUX_OS_FALSE='#'
3897 HAVE_HPUX_OS_TRUE='#'
3900 cat >>confdefs.h <<\_ACEOF
3901 #define HAVE_HPUX_OS 1
3909 HAVE_HPUX_OS_FALSE='#'
3911 HAVE_HPUX_OS_TRUE='#'
3916 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3922 HAVE_LINUX_OS_FALSE='#'
3924 HAVE_LINUX_OS_TRUE='#'
3925 HAVE_LINUX_OS_FALSE=
3927 cat >>confdefs.h <<\_ACEOF
3928 #define HAVE_LINUX_OS 1
3936 HAVE_LINUX_OS_FALSE='#'
3938 HAVE_LINUX_OS_TRUE='#'
3939 HAVE_LINUX_OS_FALSE=
3943 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3948 HAVE_FREEBSD_OS_TRUE=
3949 HAVE_FREEBSD_OS_FALSE='#'
3951 HAVE_FREEBSD_OS_TRUE='#'
3952 HAVE_FREEBSD_OS_FALSE=
3954 cat >>confdefs.h <<\_ACEOF
3955 #define HAVE_FREEBSD_OS 1
3962 HAVE_FREEBSD_OS_TRUE=
3963 HAVE_FREEBSD_OS_FALSE='#'
3965 HAVE_FREEBSD_OS_TRUE='#'
3966 HAVE_FREEBSD_OS_FALSE=
3970 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3975 HAVE_NETBSD_OS_TRUE=
3976 HAVE_NETBSD_OS_FALSE='#'
3978 HAVE_NETBSD_OS_TRUE='#'
3979 HAVE_NETBSD_OS_FALSE=
3981 cat >>confdefs.h <<\_ACEOF
3982 #define HAVE_NETBSD_OS 1
3989 HAVE_NETBSD_OS_TRUE=
3990 HAVE_NETBSD_OS_FALSE='#'
3992 HAVE_NETBSD_OS_TRUE='#'
3993 HAVE_NETBSD_OS_FALSE=
3997 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4002 HAVE_OPENBSD_OS_TRUE=
4003 HAVE_OPENBSD_OS_FALSE='#'
4005 HAVE_OPENBSD_OS_TRUE='#'
4006 HAVE_OPENBSD_OS_FALSE=
4008 cat >>confdefs.h <<\_ACEOF
4009 #define HAVE_OPENBSD_OS 1
4016 HAVE_OPENBSD_OS_TRUE=
4017 HAVE_OPENBSD_OS_FALSE='#'
4019 HAVE_OPENBSD_OS_TRUE='#'
4020 HAVE_OPENBSD_OS_FALSE=
4024 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4030 HAVE_BSDI_OS_FALSE='#'
4032 HAVE_BSDI_OS_TRUE='#'
4035 cat >>confdefs.h <<\_ACEOF
4036 #define HAVE_BSDI_OS 1
4044 HAVE_BSDI_OS_FALSE='#'
4046 HAVE_BSDI_OS_TRUE='#'
4051 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4057 HAVE_SGI_OS_FALSE='#'
4059 HAVE_SGI_OS_TRUE='#'
4062 cat >>confdefs.h <<\_ACEOF
4063 #define HAVE_SGI_OS 1
4071 HAVE_SGI_OS_FALSE='#'
4073 HAVE_SGI_OS_TRUE='#'
4078 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4084 HAVE_IRIX_OS_FALSE='#'
4086 HAVE_IRIX_OS_TRUE='#'
4089 cat >>confdefs.h <<\_ACEOF
4090 #define HAVE_IRIX_OS 1
4098 HAVE_IRIX_OS_FALSE='#'
4100 HAVE_IRIX_OS_TRUE='#'
4105 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4110 HAVE_DARWIN_OS_TRUE=
4111 HAVE_DARWIN_OS_FALSE='#'
4113 HAVE_DARWIN_OS_TRUE='#'
4114 HAVE_DARWIN_OS_FALSE=
4116 cat >>confdefs.h <<\_ACEOF
4117 #define HAVE_DARWIN_OS 1
4124 HAVE_DARWIN_OS_TRUE=
4125 HAVE_DARWIN_OS_FALSE='#'
4127 HAVE_DARWIN_OS_TRUE='#'
4128 HAVE_DARWIN_OS_FALSE=
4132 echo "$as_me:$LINENO: result: \" \"" >&5
4133 echo "${ECHO_T}\" \"" >&6
4136 # -----------------------------------------------------------
4137 # ----------------------------------------------------------
4138 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4139 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4140 if test "x$DISTNAME" != "x"
4142 echo "distname set to $DISTNAME"
4143 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4146 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4149 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4152 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4155 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4158 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4161 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4164 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4167 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4170 elif test -f /etc/SuSE-release
4173 elif test -d /etc/SuSEconfig
4176 elif test -f /etc/mandrake-release
4179 elif test -f /etc/redhat-release
4182 elif test -f /etc/gentoo-release
4185 elif test -f /etc/debian_version
4188 elif test -f /etc/slackware-version
4191 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4194 elif test -f /etc/engarde-version
4197 elif test "$CYGWIN" = yes
4200 cat >>confdefs.h <<\_ACEOF
4201 #define HAVE_CYGWIN 1
4207 echo "$as_me:$LINENO: result: \" \"" >&5
4208 echo "${ECHO_T}\" \"" >&6
4211 # -----------------------------------------------------------
4212 # ----------------------------------------------------------
4217 INSIDE_GNOME_COMMON_TRUE=
4218 INSIDE_GNOME_COMMON_FALSE='#'
4220 INSIDE_GNOME_COMMON_TRUE='#'
4221 INSIDE_GNOME_COMMON_FALSE=
4224 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4226 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4229 # ------------------------------------------------------------------
4230 # If the user has not set --prefix, we set our default to nothing.
4231 # In this case, if the user has not set --sysconfdir, we set it
4232 # to the package default of /etc/bacula. If either --prefix or
4233 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4234 # ------------------------------------------------------------------
4235 if test x${prefix} = xNONE ; then
4236 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4237 sysconfdir=/etc/bacula
4241 sysconfdir=`eval echo ${sysconfdir}`
4243 # -------------------------------------------------------------------------
4244 # If the user has not set --exec-prefix, we default to ${prefix}
4245 # -------------------------------------------------------------------------
4246 if test x${exec_prefix} = xNONE ; then
4247 exec_prefix=${prefix}
4250 # ------------------------------------------------------------------
4251 # If the user has not set --sbindir, we set our default as /sbin
4252 # ------------------------------------------------------------------
4253 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4254 sbindir=${exec_prefix}/sbin
4256 sbindir=`eval echo ${sbindir}`
4258 # ------------------------------------------------------------------
4259 # All list of languages for which a translation exist. Each
4260 # language is separated by a space.
4261 # ------------------------------------------------------------------
4264 for ac_prog in msgfmt
4266 # Extract the first word of "$ac_prog", so it can be a program name with args.
4267 set dummy $ac_prog; ac_word=$2
4268 echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4270 if test "${ac_cv_path_MSGFMT+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 MSGFMT=$ac_cv_path_MSGFMT
4297 if test -n "$MSGFMT"; then
4298 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4299 echo "${ECHO_T}$MSGFMT" >&6
4301 echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4305 test -n "$MSGFMT" && break
4307 test -n "$MSGFMT" || MSGFMT="no"
4309 if test "$MSGFMT" = "no"
4311 echo 'msgfmt program not found, disabling NLS !'
4313 USE_INCLUDED_LIBINTL=no
4321 support_postgresql=no
4322 support_smartalloc=yes
4327 support_static_tools=no
4328 support_static_fd=no
4329 support_static_sd=no
4330 support_static_dir=no
4331 support_static_cons=no
4332 build_client_only=no
4338 # -------------------------------------------
4339 # gnome (default off)
4340 # -------------------------------------------
4341 # Check whether --enable-gnome or --disable-gnome was given.
4342 if test "${enable_gnome+set}" = set; then
4343 enableval="$enable_gnome"
4344 if test x$enableval = xyes; then
4350 if test x$support_gnome = xyes; then
4351 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4353 if test $pkg = 0; then
4354 GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4355 GNOMEUI_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4356 GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4357 GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4362 GNOME_DIR=src/gnome2-console
4363 gnome_version="Version 2.x"
4376 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4377 if test "${with_gnome_includes+set}" = set; then
4378 withval="$with_gnome_includes"
4380 CFLAGS="$CFLAGS -I$withval"
4385 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4386 if test "${with_gnome_libs+set}" = set; then
4387 withval="$with_gnome_libs"
4389 LDFLAGS="$LDFLAGS -L$withval"
4390 gnome_prefix=$withval
4395 # Check whether --with-gnome or --without-gnome was given.
4396 if test "${with_gnome+set}" = set; then
4397 withval="$with_gnome"
4398 if test x$withval = xyes; then
4402 if test "x$withval" = xno; then
4406 LDFLAGS="$LDFLAGS -L$withval/lib"
4407 CFLAGS="$CFLAGS -I$withval/include"
4408 gnome_prefix=$withval/lib
4415 if test "x$want_gnome" = xyes; then
4417 # Extract the first word of "gnome-config", so it can be a program name with args.
4418 set dummy gnome-config; ac_word=$2
4419 echo "$as_me:$LINENO: checking for $ac_word" >&5
4420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4421 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 case $GNOME_CONFIG in
4426 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4436 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4447 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4449 if test -n "$GNOME_CONFIG"; then
4450 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4451 echo "${ECHO_T}$GNOME_CONFIG" >&6
4453 echo "$as_me:$LINENO: result: no" >&5
4454 echo "${ECHO_T}no" >&6
4457 if test "$GNOME_CONFIG" = "no"; then
4458 no_gnome_config="yes"
4460 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4461 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4462 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4463 echo "$as_me:$LINENO: result: yes" >&5
4464 echo "${ECHO_T}yes" >&6
4467 # Extract the first word of "orbit-config", so it can be a program name with args.
4468 set dummy orbit-config; ac_word=$2
4469 echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 case $ORBIT_CONFIG in
4476 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4486 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4497 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4499 if test -n "$ORBIT_CONFIG"; then
4500 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4501 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4503 echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6
4507 # Extract the first word of "orbit-idl", so it can be a program name with args.
4508 set dummy orbit-idl; ac_word=$2
4509 echo "$as_me:$LINENO: checking for $ac_word" >&5
4510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4511 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4537 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4539 if test -n "$ORBIT_IDL"; then
4540 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4541 echo "${ECHO_T}$ORBIT_IDL" >&6
4543 echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6
4547 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4548 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4549 if test "${gnome_cv_orbit_found+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4554 gnome_cv_orbit_found=no
4556 gnome_cv_orbit_found=yes
4560 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4561 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4564 if test x$gnome_cv_orbit_found = xyes; then
4566 HAVE_ORBIT_FALSE='#'
4571 if test x$gnome_cv_orbit_found = xyes; then
4573 ORBIT_CFLAGS=`orbit-config --cflags client server`
4574 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4578 if test xfail = xfailure; then
4579 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4580 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4581 { (exit 1); exit 1; }; }
4585 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4586 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4587 if test "${gnome_cv_gnorba_found+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 gnome_cv_gnorba_found=no
4592 if test x$gnome_cv_orbit_found = xyes; then
4593 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4594 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4595 if test -n "$GNORBA_LIBS"; then
4596 gnome_cv_gnorba_found=yes
4601 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4602 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4605 if test x$gnome_cv_gnorba_found = xyes; then
4607 HAVE_GNORBA_FALSE='#'
4609 HAVE_GNORBA_TRUE='#'
4612 if test x$gnome_cv_orbit_found = xyes; then
4614 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4615 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4619 if test xfail = xfailure; then
4620 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4621 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4622 { (exit 1); exit 1; }; }
4626 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4627 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4628 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4629 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4630 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4631 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4632 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4635 echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6
4637 no_gnome_config="yes"
4641 if test x$exec_prefix = xNONE; then
4642 if test x$prefix = xNONE; then
4643 gnome_prefix=$ac_default_prefix/lib
4645 gnome_prefix=$prefix/lib
4648 gnome_prefix=`eval echo \`echo $libdir\``
4651 if test "$no_gnome_config" = "yes"; then
4652 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4653 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4654 if test -f $gnome_prefix/gnomeConf.sh; then
4655 echo "$as_me:$LINENO: result: found" >&5
4656 echo "${ECHO_T}found" >&6
4657 echo "loading gnome configuration from" \
4658 "$gnome_prefix/gnomeConf.sh"
4659 . $gnome_prefix/gnomeConf.sh
4662 echo "$as_me:$LINENO: result: not found" >&5
4663 echo "${ECHO_T}not found" >&6
4664 if test xfail = xfail; then
4665 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4666 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4667 { (exit 1); exit 1; }; }
4676 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4677 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4681 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4682 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4683 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4686 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4687 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4688 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4691 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4692 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4693 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4695 echo "$as_me:$LINENO: result: unknown library" >&5
4696 echo "${ECHO_T}unknown library" >&6
4698 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4699 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4704 GNOME_DIR=src/gnome-console
4705 gnome_version="Version 1.4"
4711 # -------------------------------------------
4712 # smartalloc (default off)
4713 # -------------------------------------------
4714 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4715 if test "${enable_smartalloc+set}" = set; then
4716 enableval="$enable_smartalloc"
4717 if test x$enableval = xno; then
4718 support_smartalloc=no
4722 if test x$support_smartalloc = xyes; then
4723 cat >>confdefs.h <<\_ACEOF
4724 #define SMARTALLOC 1
4729 # -------------------------------------------
4730 # static-tools (default off)
4731 # -------------------------------------------
4732 # Check whether --enable-static-tools or --disable-static-tools was given.
4733 if test "${enable_static_tools+set}" = set; then
4734 enableval="$enable_static_tools"
4735 if test x$enableval = xyes; then
4736 support_static_tools=yes
4741 if test x$support_static_tools = xyes; then
4742 TTOOL_LDFLAGS="-static"
4746 # -------------------------------------------
4747 # static-fd (default off)
4748 # -------------------------------------------
4749 # Check whether --enable-static-fd or --disable-static-fd was given.
4750 if test "${enable_static_fd+set}" = set; then
4751 enableval="$enable_static_fd"
4752 if test x$enableval = xyes; then
4753 support_static_fd=yes
4758 if test x$support_static_fd = xyes; then
4759 STATIC_FD="static-bacula-fd"
4763 # -------------------------------------------
4764 # static-sd (default off)
4765 # -------------------------------------------
4766 # Check whether --enable-static-sd or --disable-static-sd was given.
4767 if test "${enable_static_sd+set}" = set; then
4768 enableval="$enable_static_sd"
4769 if test x$enableval = xyes; then
4770 support_static_sd=yes
4775 if test x$support_static_sd = xyes; then
4776 STATIC_SD="static-bacula-sd"
4780 # -------------------------------------------
4781 # static-dir (default off)
4782 # -------------------------------------------
4783 # Check whether --enable-static-dir or --disable-static-dir was given.
4784 if test "${enable_static_dir+set}" = set; then
4785 enableval="$enable_static_dir"
4786 if test x$enableval = xyes; then
4787 support_static_dir=yes
4792 if test x$support_static_dir = xyes; then
4793 STATIC_DIR="static-bacula-dir"
4797 # -------------------------------------------
4798 # static-cons (default off)
4799 # -------------------------------------------
4800 # Check whether --enable-static-cons or --disable-static-cons was given.
4801 if test "${enable_static_cons+set}" = set; then
4802 enableval="$enable_static_cons"
4803 if test x$enableval = xyes; then
4804 support_static_cons=yes
4809 if test x$support_static_cons = xyes; then
4810 STATIC_CONS="static-bconsole"
4814 # -------------------------------------------
4815 # client_only (default off)
4816 # -------------------------------------------
4817 # Check whether --enable-client-only or --disable-client-only was given.
4818 if test "${enable_client_only+set}" = set; then
4819 enableval="$enable_client_only"
4820 if test x$enableval = xyes; then
4821 build_client_only=yes
4824 if test x$build_client_only = xno; then
4831 # ---------------------------------------------------
4832 # Check for conio (Bacula readline substitute)(
4833 # ---------------------------------------------------
4834 # this allows you to turn it completely off
4835 # Check whether --enable-conio or --disable-conio was given.
4836 if test "${enable_conio+set}" = set; then
4837 enableval="$enable_conio"
4838 if test x$enableval = xno; then
4844 if test x$support_conio = xyes; then
4848 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4849 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4850 if test "${ac_cv_header_stdc+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 cat >conftest.$ac_ext <<_ACEOF
4854 #line $LINENO "configure"
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4873 rm -f conftest.$ac_objext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4875 (eval $ac_compile) 2>&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } &&
4879 { ac_try='test -s conftest.$ac_objext'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; }; then
4885 ac_cv_header_stdc=yes
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4890 ac_cv_header_stdc=no
4892 rm -f conftest.$ac_objext conftest.$ac_ext
4894 if test $ac_cv_header_stdc = yes; then
4895 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4896 cat >conftest.$ac_ext <<_ACEOF
4897 #line $LINENO "configure"
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4907 $EGREP "memchr" >/dev/null 2>&1; then
4910 ac_cv_header_stdc=no
4916 if test $ac_cv_header_stdc = yes; then
4917 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4918 cat >conftest.$ac_ext <<_ACEOF
4919 #line $LINENO "configure"
4922 cat confdefs.h >>conftest.$ac_ext
4923 cat >>conftest.$ac_ext <<_ACEOF
4924 /* end confdefs.h. */
4928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4929 $EGREP "free" >/dev/null 2>&1; then
4932 ac_cv_header_stdc=no
4938 if test $ac_cv_header_stdc = yes; then
4939 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4940 if test "$cross_compiling" = yes; then
4943 cat >conftest.$ac_ext <<_ACEOF
4944 #line $LINENO "configure"
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h. */
4951 #if ((' ' & 0x0FF) == 0x020)
4952 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4953 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4955 # define ISLOWER(c) \
4956 (('a' <= (c) && (c) <= 'i') \
4957 || ('j' <= (c) && (c) <= 'r') \
4958 || ('s' <= (c) && (c) <= 'z'))
4959 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4962 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4967 for (i = 0; i < 256; i++)
4968 if (XOR (islower (i), ISLOWER (i))
4969 || toupper (i) != TOUPPER (i))
4974 rm -f conftest$ac_exeext
4975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4976 (eval $ac_link) 2>&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; }; then
4987 echo "$as_me: program exited with status $ac_status" >&5
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4992 ac_cv_header_stdc=no
4994 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4998 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4999 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5000 if test $ac_cv_header_stdc = yes; then
5002 cat >>confdefs.h <<\_ACEOF
5003 #define STDC_HEADERS 1
5008 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5018 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5019 inttypes.h stdint.h unistd.h
5021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5022 echo "$as_me:$LINENO: checking for $ac_header" >&5
5023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 cat >conftest.$ac_ext <<_ACEOF
5028 #line $LINENO "configure"
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5034 $ac_includes_default
5036 #include <$ac_header>
5038 rm -f conftest.$ac_objext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040 (eval $ac_compile) 2>&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } &&
5044 { ac_try='test -s conftest.$ac_objext'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5050 eval "$as_ac_Header=yes"
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5055 eval "$as_ac_Header=no"
5057 rm -f conftest.$ac_objext conftest.$ac_ext
5059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5062 cat >>confdefs.h <<_ACEOF
5063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5072 for ac_header in termcap.h
5074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5076 echo "$as_me:$LINENO: checking for $ac_header" >&5
5077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5084 # Is the header compilable?
5085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5087 cat >conftest.$ac_ext <<_ACEOF
5088 #line $LINENO "configure"
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5094 $ac_includes_default
5095 #include <$ac_header>
5097 rm -f conftest.$ac_objext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5099 (eval $ac_compile) 2>&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5103 { ac_try='test -s conftest.$ac_objext'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5109 ac_header_compiler=yes
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5114 ac_header_compiler=no
5116 rm -f conftest.$ac_objext conftest.$ac_ext
5117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5118 echo "${ECHO_T}$ac_header_compiler" >&6
5120 # Is the header present?
5121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5123 cat >conftest.$ac_ext <<_ACEOF
5124 #line $LINENO "configure"
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h. */
5130 #include <$ac_header>
5132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5135 grep -v '^ *+' conftest.er1 >conftest.err
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } >/dev/null; then
5140 if test -s conftest.err; then
5141 ac_cpp_err=$ac_c_preproc_warn_flag
5148 if test -z "$ac_cpp_err"; then
5149 ac_header_preproc=yes
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5154 ac_header_preproc=no
5156 rm -f conftest.err conftest.$ac_ext
5157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5158 echo "${ECHO_T}$ac_header_preproc" >&6
5160 # So? What about this header?
5161 case $ac_header_compiler:$ac_header_preproc in
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5169 ## ------------------------------------ ##
5170 ## Report this to bug-autoconf@gnu.org. ##
5171 ## ------------------------------------ ##
5174 sed "s/^/$as_me: WARNING: /" >&2
5177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5185 ## ------------------------------------ ##
5186 ## Report this to bug-autoconf@gnu.org. ##
5187 ## ------------------------------------ ##
5190 sed "s/^/$as_me: WARNING: /" >&2
5193 echo "$as_me:$LINENO: checking for $ac_header" >&5
5194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 eval "$as_ac_Header=$ac_header_preproc"
5200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5205 cat >>confdefs.h <<_ACEOF
5206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5213 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5214 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5215 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 ac_check_lib_save_LIBS=$LIBS
5219 LIBS="-ltermcap $LIBS"
5220 cat >conftest.$ac_ext <<_ACEOF
5221 #line $LINENO "configure"
5224 cat confdefs.h >>conftest.$ac_ext
5225 cat >>conftest.$ac_ext <<_ACEOF
5226 /* end confdefs.h. */
5228 /* Override any gcc2 internal prototype to avoid an error. */
5232 /* We use char because int might match the return type of a gcc2
5233 builtin and then its argument prototype would still apply. */
5243 rm -f conftest.$ac_objext conftest$ac_exeext
5244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5245 (eval $ac_link) 2>&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } &&
5249 { ac_try='test -s conftest$ac_exeext'
5250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }; }; then
5255 ac_cv_lib_termcap_tgetent=yes
5257 echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5260 ac_cv_lib_termcap_tgetent=no
5262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5263 LIBS=$ac_check_lib_save_LIBS
5265 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5266 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5267 if test $ac_cv_lib_termcap_tgetent = yes; then
5268 CONS_LIBS="-ltermcap"
5273 cat >>confdefs.h <<\_ACEOF
5274 #define HAVE_CONIO 1
5280 # ---------------------------------------------------
5281 # Check for readline support/directory (default off)
5282 # ---------------------------------------------------
5283 # this allows you to turn it completely off
5284 # Check whether --enable-readline or --disable-readline was given.
5285 if test "${enable_readline+set}" = set; then
5286 enableval="$enable_readline"
5287 if test x$enableval = xno; then
5294 if test x$support_readline = xyes; then
5296 # Check whether --with-readline or --without-readline was given.
5297 if test "${with_readline+set}" = set; then
5298 withval="$with_readline"
5300 case "$with_readline" in
5303 if test "$with_readline" != "yes"; then
5304 CONS_INC="-I${with_readline}"
5305 CONS_LDFLAGS="-L$with_readline"
5307 with_readline="/usr/include/readline"
5309 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5311 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5312 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5319 # Is the header compilable?
5320 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5321 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5322 cat >conftest.$ac_ext <<_ACEOF
5323 #line $LINENO "configure"
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 $ac_includes_default
5330 #include <${with_readline}/readline.h>
5332 rm -f conftest.$ac_objext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334 (eval $ac_compile) 2>&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -s conftest.$ac_objext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 ac_header_compiler=yes
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5349 ac_header_compiler=no
5351 rm -f conftest.$ac_objext conftest.$ac_ext
5352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5353 echo "${ECHO_T}$ac_header_compiler" >&6
5355 # Is the header present?
5356 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5357 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5358 cat >conftest.$ac_ext <<_ACEOF
5359 #line $LINENO "configure"
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 #include <${with_readline}/readline.h>
5367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5370 grep -v '^ *+' conftest.er1 >conftest.err
5372 cat conftest.err >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); } >/dev/null; then
5375 if test -s conftest.err; then
5376 ac_cpp_err=$ac_c_preproc_warn_flag
5383 if test -z "$ac_cpp_err"; then
5384 ac_header_preproc=yes
5386 echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5389 ac_header_preproc=no
5391 rm -f conftest.err conftest.$ac_ext
5392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5393 echo "${ECHO_T}$ac_header_preproc" >&6
5395 # So? What about this header?
5396 case $ac_header_compiler:$ac_header_preproc in
5398 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5399 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5400 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5401 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5404 ## ------------------------------------ ##
5405 ## Report this to bug-autoconf@gnu.org. ##
5406 ## ------------------------------------ ##
5409 sed "s/^/$as_me: WARNING: /" >&2
5412 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5413 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5415 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5417 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5420 ## ------------------------------------ ##
5421 ## Report this to bug-autoconf@gnu.org. ##
5422 ## ------------------------------------ ##
5425 sed "s/^/$as_me: WARNING: /" >&2
5428 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5429 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5433 eval "$as_ac_Header=$ac_header_preproc"
5435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5440 cat >>confdefs.h <<\_ACEOF
5441 #define HAVE_READLINE 1
5444 CONS_LIBS="-lreadline -ltermcap"
5448 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5449 echo "$as_me: error: *** readline library missing" >&2;}
5450 { (exit 1); exit 1; }; }
5461 # check for standard readline library
5462 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5463 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5464 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5465 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5469 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5471 # Is the header compilable?
5472 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5473 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5474 cat >conftest.$ac_ext <<_ACEOF
5475 #line $LINENO "configure"
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 $ac_includes_default
5482 #include </usr/include/readline/readline.h>
5484 rm -f conftest.$ac_objext
5485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5486 (eval $ac_compile) 2>&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
5490 { ac_try='test -s conftest.$ac_objext'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; }; then
5496 ac_header_compiler=yes
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5501 ac_header_compiler=no
5503 rm -f conftest.$ac_objext conftest.$ac_ext
5504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5505 echo "${ECHO_T}$ac_header_compiler" >&6
5507 # Is the header present?
5508 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5509 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5510 cat >conftest.$ac_ext <<_ACEOF
5511 #line $LINENO "configure"
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5517 #include </usr/include/readline/readline.h>
5519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5522 grep -v '^ *+' conftest.er1 >conftest.err
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } >/dev/null; then
5527 if test -s conftest.err; then
5528 ac_cpp_err=$ac_c_preproc_warn_flag
5535 if test -z "$ac_cpp_err"; then
5536 ac_header_preproc=yes
5538 echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5541 ac_header_preproc=no
5543 rm -f conftest.err conftest.$ac_ext
5544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5545 echo "${ECHO_T}$ac_header_preproc" >&6
5547 # So? What about this header?
5548 case $ac_header_compiler:$ac_header_preproc in
5550 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5551 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5552 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5553 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5556 ## ------------------------------------ ##
5557 ## Report this to bug-autoconf@gnu.org. ##
5558 ## ------------------------------------ ##
5561 sed "s/^/$as_me: WARNING: /" >&2
5564 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5565 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5566 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5567 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5568 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5569 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5572 ## ------------------------------------ ##
5573 ## Report this to bug-autoconf@gnu.org. ##
5574 ## ------------------------------------ ##
5577 sed "s/^/$as_me: WARNING: /" >&2
5580 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5581 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5582 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5585 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5587 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5588 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5591 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5592 cat >>confdefs.h <<\_ACEOF
5593 #define HAVE_READLINE 1
5597 CONS_INC="-I/usr/include/readline"
5598 CONS_LIBS="-lreadline -ltermcap"
5602 # Did not find standard library, so try Bacula's default
5603 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5605 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5606 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5613 # Is the header compilable?
5614 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5615 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5616 cat >conftest.$ac_ext <<_ACEOF
5617 #line $LINENO "configure"
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623 $ac_includes_default
5624 #include <${TOP_DIR}/depkgs/readline/readline.h>
5626 rm -f conftest.$ac_objext
5627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5628 (eval $ac_compile) 2>&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } &&
5632 { ac_try='test -s conftest.$ac_objext'
5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; }; then
5638 ac_header_compiler=yes
5640 echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.$ac_ext >&5
5643 ac_header_compiler=no
5645 rm -f conftest.$ac_objext conftest.$ac_ext
5646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5647 echo "${ECHO_T}$ac_header_compiler" >&6
5649 # Is the header present?
5650 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5651 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5652 cat >conftest.$ac_ext <<_ACEOF
5653 #line $LINENO "configure"
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5659 #include <${TOP_DIR}/depkgs/readline/readline.h>
5661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5664 grep -v '^ *+' conftest.er1 >conftest.err
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } >/dev/null; then
5669 if test -s conftest.err; then
5670 ac_cpp_err=$ac_c_preproc_warn_flag
5677 if test -z "$ac_cpp_err"; then
5678 ac_header_preproc=yes
5680 echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5683 ac_header_preproc=no
5685 rm -f conftest.err conftest.$ac_ext
5686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5687 echo "${ECHO_T}$ac_header_preproc" >&6
5689 # So? What about this header?
5690 case $ac_header_compiler:$ac_header_preproc in
5692 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5693 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5694 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5695 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5698 ## ------------------------------------ ##
5699 ## Report this to bug-autoconf@gnu.org. ##
5700 ## ------------------------------------ ##
5703 sed "s/^/$as_me: WARNING: /" >&2
5706 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5707 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5708 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5709 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5711 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5714 ## ------------------------------------ ##
5715 ## Report this to bug-autoconf@gnu.org. ##
5716 ## ------------------------------------ ##
5719 sed "s/^/$as_me: WARNING: /" >&2
5722 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5723 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 eval "$as_ac_Header=$ac_header_preproc"
5729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5734 cat >>confdefs.h <<\_ACEOF
5735 #define HAVE_READLINE 1
5739 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5740 CONS_LIBS="-lreadline -lhistory -ltermcap"
5741 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5742 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5745 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5746 echo "$as_me: error: *** readline library missing" >&2;}
5747 { (exit 1); exit 1; }; }
5772 # Minimal stuff for readline Makefile configuration
5776 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5777 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5778 if test "${ac_cv_header_stat_broken+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 cat >conftest.$ac_ext <<_ACEOF
5782 #line $LINENO "configure"
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 #include <sys/types.h>
5789 #include <sys/stat.h>
5791 #if defined(S_ISBLK) && defined(S_IFDIR)
5792 # if S_ISBLK (S_IFDIR)
5797 #if defined(S_ISBLK) && defined(S_IFCHR)
5798 # if S_ISBLK (S_IFCHR)
5803 #if defined(S_ISLNK) && defined(S_IFREG)
5804 # if S_ISLNK (S_IFREG)
5809 #if defined(S_ISSOCK) && defined(S_IFREG)
5810 # if S_ISSOCK (S_IFREG)
5816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5817 $EGREP "You lose" >/dev/null 2>&1; then
5818 ac_cv_header_stat_broken=yes
5820 ac_cv_header_stat_broken=no
5825 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5826 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5827 if test $ac_cv_header_stat_broken = yes; then
5829 cat >>confdefs.h <<\_ACEOF
5830 #define STAT_MACROS_BROKEN 1
5841 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5842 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5843 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5844 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 cat >conftest.$ac_ext <<_ACEOF
5849 #line $LINENO "configure"
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5855 #include <sys/types.h>
5867 rm -f conftest.$ac_objext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5869 (eval $ac_compile) 2>&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -s conftest.$ac_objext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 eval "$as_ac_Header=yes"
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5884 eval "$as_ac_Header=no"
5886 rm -f conftest.$ac_objext conftest.$ac_ext
5888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5891 cat >>confdefs.h <<_ACEOF
5892 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5895 ac_header_dirent=$ac_hdr; break
5899 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5900 if test $ac_header_dirent = dirent.h; then
5901 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5902 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5903 if test "${ac_cv_search_opendir+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 ac_func_search_save_LIBS=$LIBS
5907 ac_cv_search_opendir=no
5908 cat >conftest.$ac_ext <<_ACEOF
5909 #line $LINENO "configure"
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5916 /* Override any gcc2 internal prototype to avoid an error. */
5920 /* We use char because int might match the return type of a gcc2
5921 builtin and then its argument prototype would still apply. */
5931 rm -f conftest.$ac_objext conftest$ac_exeext
5932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5933 (eval $ac_link) 2>&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -s conftest$ac_exeext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 ac_cv_search_opendir="none required"
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5950 if test "$ac_cv_search_opendir" = no; then
5951 for ac_lib in dir; do
5952 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5953 cat >conftest.$ac_ext <<_ACEOF
5954 #line $LINENO "configure"
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5961 /* Override any gcc2 internal prototype to avoid an error. */
5965 /* We use char because int might match the return type of a gcc2
5966 builtin and then its argument prototype would still apply. */
5976 rm -f conftest.$ac_objext conftest$ac_exeext
5977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5978 (eval $ac_link) 2>&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } &&
5982 { ac_try='test -s conftest$ac_exeext'
5983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; }; then
5988 ac_cv_search_opendir="-l$ac_lib"
5991 echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5998 LIBS=$ac_func_search_save_LIBS
6000 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6001 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6002 if test "$ac_cv_search_opendir" != no; then
6003 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6008 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6009 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6010 if test "${ac_cv_search_opendir+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 ac_func_search_save_LIBS=$LIBS
6014 ac_cv_search_opendir=no
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6023 /* Override any gcc2 internal prototype to avoid an error. */
6027 /* We use char because int might match the return type of a gcc2
6028 builtin and then its argument prototype would still apply. */
6038 rm -f conftest.$ac_objext conftest$ac_exeext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6040 (eval $ac_link) 2>&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try='test -s conftest$ac_exeext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 ac_cv_search_opendir="none required"
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6057 if test "$ac_cv_search_opendir" = no; then
6059 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6060 cat >conftest.$ac_ext <<_ACEOF
6061 #line $LINENO "configure"
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6068 /* Override any gcc2 internal prototype to avoid an error. */
6072 /* We use char because int might match the return type of a gcc2
6073 builtin and then its argument prototype would still apply. */
6083 rm -f conftest.$ac_objext conftest$ac_exeext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6085 (eval $ac_link) 2>&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try='test -s conftest$ac_exeext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_cv_search_opendir="-l$ac_lib"
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6105 LIBS=$ac_func_search_save_LIBS
6107 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6108 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6109 if test "$ac_cv_search_opendir" != no; then
6110 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6125 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6128 echo "$as_me:$LINENO: checking for $ac_func" >&5
6129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6130 if eval "test \"\${$as_ac_var+set}\" = set"; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 cat >conftest.$ac_ext <<_ACEOF
6134 #line $LINENO "configure"
6137 cat confdefs.h >>conftest.$ac_ext
6138 cat >>conftest.$ac_ext <<_ACEOF
6139 /* end confdefs.h. */
6140 /* System header to define __stub macros and hopefully few prototypes,
6141 which can conflict with char $ac_func (); below.
6142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6143 <limits.h> exists even on freestanding compilers. */
6145 # include <limits.h>
6147 # include <assert.h>
6149 /* Override any gcc2 internal prototype to avoid an error. */
6154 /* We use char because int might match the return type of a gcc2
6155 builtin and then its argument prototype would still apply. */
6157 /* The GNU C library defines this for functions which it implements
6158 to always fail with ENOSYS. Some functions are actually named
6159 something starting with __ and the normal name is an alias. */
6160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6163 char (*f) () = $ac_func;
6172 return f != $ac_func;
6177 rm -f conftest.$ac_objext conftest$ac_exeext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6179 (eval $ac_link) 2>&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try='test -s conftest$ac_exeext'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; }; then
6189 eval "$as_ac_var=yes"
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6194 eval "$as_ac_var=no"
6196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6200 if test `eval echo '${'$as_ac_var'}'` = yes; then
6201 cat >>confdefs.h <<_ACEOF
6202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6209 for ac_func in nanosleep
6211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6212 echo "$as_me:$LINENO: checking for $ac_func" >&5
6213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6214 if eval "test \"\${$as_ac_var+set}\" = set"; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 cat >conftest.$ac_ext <<_ACEOF
6218 #line $LINENO "configure"
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 /* System header to define __stub macros and hopefully few prototypes,
6225 which can conflict with char $ac_func (); below.
6226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6227 <limits.h> exists even on freestanding compilers. */
6229 # include <limits.h>
6231 # include <assert.h>
6233 /* Override any gcc2 internal prototype to avoid an error. */
6238 /* We use char because int might match the return type of a gcc2
6239 builtin and then its argument prototype would still apply. */
6241 /* The GNU C library defines this for functions which it implements
6242 to always fail with ENOSYS. Some functions are actually named
6243 something starting with __ and the normal name is an alias. */
6244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6247 char (*f) () = $ac_func;
6256 return f != $ac_func;
6261 rm -f conftest.$ac_objext conftest$ac_exeext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6263 (eval $ac_link) 2>&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } &&
6267 { ac_try='test -s conftest$ac_exeext'
6268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; }; then
6273 eval "$as_ac_var=yes"
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 eval "$as_ac_var=no"
6280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6284 if test `eval echo '${'$as_ac_var'}'` = yes; then
6285 cat >>confdefs.h <<_ACEOF
6286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6294 for ac_header in varargs.h
6296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6298 echo "$as_me:$LINENO: checking for $ac_header" >&5
6299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6306 # Is the header compilable?
6307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6309 cat >conftest.$ac_ext <<_ACEOF
6310 #line $LINENO "configure"
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6316 $ac_includes_default
6317 #include <$ac_header>
6319 rm -f conftest.$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321 (eval $ac_compile) 2>&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } &&
6325 { ac_try='test -s conftest.$ac_objext'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; }; then
6331 ac_header_compiler=yes
6333 echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6336 ac_header_compiler=no
6338 rm -f conftest.$ac_objext conftest.$ac_ext
6339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6340 echo "${ECHO_T}$ac_header_compiler" >&6
6342 # Is the header present?
6343 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6345 cat >conftest.$ac_ext <<_ACEOF
6346 #line $LINENO "configure"
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6352 #include <$ac_header>
6354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6357 grep -v '^ *+' conftest.er1 >conftest.err
6359 cat conftest.err >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } >/dev/null; then
6362 if test -s conftest.err; then
6363 ac_cpp_err=$ac_c_preproc_warn_flag
6370 if test -z "$ac_cpp_err"; then
6371 ac_header_preproc=yes
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6376 ac_header_preproc=no
6378 rm -f conftest.err conftest.$ac_ext
6379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6380 echo "${ECHO_T}$ac_header_preproc" >&6
6382 # So? What about this header?
6383 case $ac_header_compiler:$ac_header_preproc in
6385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6391 ## ------------------------------------ ##
6392 ## Report this to bug-autoconf@gnu.org. ##
6393 ## ------------------------------------ ##
6396 sed "s/^/$as_me: WARNING: /" >&2
6399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6407 ## ------------------------------------ ##
6408 ## Report this to bug-autoconf@gnu.org. ##
6409 ## ------------------------------------ ##
6412 sed "s/^/$as_me: WARNING: /" >&2
6415 echo "$as_me:$LINENO: checking for $ac_header" >&5
6416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 eval "$as_ac_Header=$ac_header_preproc"
6422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6427 cat >>confdefs.h <<_ACEOF
6428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6436 # End of readline/conio stuff
6437 # -----------------------------------------------------------------------
6440 # ---------------------------------------------------
6441 # Check for GMP support/directory
6442 # ---------------------------------------------------
6446 # [ --with-gmp[=DIR] Specify gmp library directory],
6448 # case "$with_gmp" in
6451 # if test "$with_gmp" != "yes"; then
6452 # GMP_INC="-I$with_gmp"
6454 # GMP_LDFLAGS="-L$with_gmp"
6456 # with_gmp="/usr/include"
6458 # AC_CHECK_HEADER($with_gmp/gmp.h,
6459 # [ AC_MSG_RESULT(yes)
6460 # AC_DEFINE(HAVE_GMP)
6464 # [ AC_MSG_ERROR([*** gmp library missing])
6470 # # check for standard gmp library
6471 # AC_CHECK_HEADER(/usr/include/gmp.h,
6472 # [ AC_MSG_RESULT(yes)
6473 # AC_DEFINE(HAVE_GMP)
6478 # # Did not find standard library, so use our own
6479 # AC_MSG_RESULT(yes)
6480 # AC_DEFINE(HAVE_GMP)
6483 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6485 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6486 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6492 #AC_SUBST(GMP_LDFLAGS)
6496 # -----------------------------------------------------------------------
6499 # ---------------------------------------------------
6500 # Check for CWEB support/directory
6501 # ---------------------------------------------------
6506 # [ --with-cweb[=DIR] Specify cweb library directory],
6508 # case "$with_cweb" in
6511 # if test "$with_cweb" != "yes"; then
6512 # CWEB_INC="-I$with_cweb"
6513 # CWEB_LIBS="-lcweb"
6514 # CWEB_LDFLAGS="-L$with_cweb"
6516 # with_cweb="/usr/include"
6518 # AC_CHECK_HEADER($with_cweb/cweb.h,
6519 # [ AC_MSG_RESULT(yes)
6520 # AC_DEFINE(HAVE_CWEB)
6521 # CWEB_LIBS="-lcweb"
6524 # [ AC_MSG_ERROR([*** cweb library missing])
6530 # # check for standard cweb library
6531 # AC_CHECK_HEADER(/usr/include/cweb.h,
6532 # [ AC_MSG_RESULT(yes)
6533 # AC_DEFINE(HAVE_CWEB)
6536 # CWEB_LIBS="-lcweb"
6538 # # Did not find starndard library, so use our own
6539 # AC_MSG_RESULT(yes)
6540 # AC_DEFINE(HAVE_CWEB)
6543 # CWEB=${TOP_DIR}/depkgs/cweb
6544 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6545 # CWEB_LIBS="-lcweb"
6546 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6547 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6553 #AC_SUBST(CWEB_LIBS)
6554 #AC_SUBST(CWEB_LDFLAGS)
6558 # -----------------------------------------------------------------------
6562 # -----------------------------------------------------------
6563 # Check whether user wants TCP wrappers support (default off)
6564 # -----------------------------------------------------------
6567 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6568 if test "${with_tcp_wrappers+set}" = set; then
6569 withval="$with_tcp_wrappers"
6571 if test "x$withval" != "xno" ; then
6573 LIBS="$saved_LIBS -lwrap"
6574 echo "$as_me:$LINENO: checking for libwrap" >&5
6575 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6576 cat >conftest.$ac_ext <<_ACEOF
6577 #line $LINENO "configure"
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6584 int deny_severity = 0;
6585 int allow_severity = 0;
6586 struct request_info *req;
6595 rm -f conftest.$ac_objext conftest$ac_exeext
6596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6597 (eval $ac_link) 2>&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } &&
6601 { ac_try='test -s conftest$ac_exeext'
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
6608 echo "$as_me:$LINENO: result: yes" >&5
6609 echo "${ECHO_T}yes" >&6
6610 cat >>confdefs.h <<\_ACEOF
6611 #define HAVE_LIBWRAP 1
6617 echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6621 LIBS="$saved_LIBS -lwrap -lnsl"
6622 cat >conftest.$ac_ext <<_ACEOF
6623 #line $LINENO "configure"
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h. */
6630 int deny_severity = 0;
6631 int allow_severity = 0;
6632 struct request_info *req;
6641 rm -f conftest.$ac_objext conftest$ac_exeext
6642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6643 (eval $ac_link) 2>&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } &&
6647 { ac_try='test -s conftest$ac_exeext'
6648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); }; }; then
6654 echo "$as_me:$LINENO: result: yes" >&5
6655 echo "${ECHO_T}yes" >&6
6656 cat >>confdefs.h <<\_ACEOF
6657 #define HAVE_LIBWRAP 1
6663 echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6666 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6667 echo "$as_me: error: *** libwrap missing" >&2;}
6668 { (exit 1); exit 1; }; }
6671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6680 # ------------------------------------------
6681 # Where to place working dir
6682 # ------------------------------------------
6683 working_dir=`eval echo ${sysconfdir}/working`
6685 # Check whether --with-working-dir or --without-working-dir was given.
6686 if test "${with_working_dir+set}" = set; then
6687 withval="$with_working_dir"
6689 if test "x$withval" != "xno" ; then
6690 working_dir=$withval
6699 # ------------------------------------------
6700 # Where to place scriptdir (script files)
6701 # ------------------------------------------
6702 scriptdir=`eval echo ${sysconfdir}`
6704 # Check whether --with-scriptdir or --without-scriptdir was given.
6705 if test "${with_scriptdir+set}" = set; then
6706 withval="$with_scriptdir"
6708 if test "x$withval" != "xno" ; then
6718 # ------------------------------------------
6719 # Where to send dump email
6720 # ------------------------------------------
6721 dump_email=root@localhost
6723 # Check whether --with-dump-email or --without-dump-email was given.
6724 if test "${with_dump_email+set}" = set; then
6725 withval="$with_dump_email"
6727 if test "x$withval" != "xno" ; then
6736 # ------------------------------------------
6737 # Where to send job email
6738 # ------------------------------------------
6739 job_email=root@localhost
6741 # Check whether --with-job-email or --without-job-email was given.
6742 if test "${with_job_email+set}" = set; then
6743 withval="$with_job_email"
6745 if test "x$withval" != "xno" ; then
6754 # ------------------------------------------
6755 # Where to find smtp host
6756 # ------------------------------------------
6759 # Check whether --with-smtp_host or --without-smtp_host was given.
6760 if test "${with_smtp_host+set}" = set; then
6761 withval="$with_smtp_host"
6763 if test "x$withval" != "xno" ; then
6773 # ------------------------------------
6774 # Where to place pid files
6775 # ------------------------------------
6778 # Check whether --with-pid-dir or --without-pid-dir was given.
6779 if test "${with_pid_dir+set}" = set; then
6780 withval="$with_pid_dir"
6782 if test "x$withval" != "xno" ; then
6789 cat >>confdefs.h <<_ACEOF
6790 #define _PATH_BACULA_PIDDIR "$piddir"
6796 # ------------------------------------
6797 # Where to place subsys "lock file"
6798 # ------------------------------------
6799 subsysdir=/var/run/subsys
6801 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6802 if test "${with_subsys_dir+set}" = set; then
6803 withval="$with_subsys_dir"
6805 if test "x$withval" != "xno" ; then
6816 # ------------------------------------
6817 # Where to start assigning ports
6818 # ------------------------------------
6821 # Check whether --with-baseport or --without-baseport was given.
6822 if test "${with_baseport+set}" = set; then
6823 withval="$with_baseport"
6825 if test "x$withval" != "xno" ; then
6833 dir_port=`expr $baseport`
6834 fd_port=`expr $baseport + 1`
6835 sd_port=`expr $fd_port + 1`
6842 # ------------------------------------------
6843 # Generate passwords
6844 # ------------------------------------------
6847 # Check whether --with-dir-password or --without-dir-password was given.
6848 if test "${with_dir_password+set}" = set; then
6849 withval="$with_dir_password"
6851 if test "x$withval" != "xno" ; then
6852 dir_password=$withval
6858 if test "x$dir_password" = "x" ; then
6859 if test "x$OPENSSL" = "xnone" ; then
6860 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6861 key=`autoconf/randpass 33`
6863 key=`openssl rand -base64 33`
6870 # Check whether --with-fd-password or --without-fd-password was given.
6871 if test "${with_fd_password+set}" = set; then
6872 withval="$with_fd_password"
6874 if test "x$withval" != "xno" ; then
6875 fd_password=$withval
6881 if test "x$fd_password" = "x" ; then
6882 if test "x$OPENSSL" = "xnone" ; then
6883 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6884 key=`autoconf/randpass 37`
6886 key=`openssl rand -base64 33`
6893 # Check whether --with-sd-password or --without-sd-password was given.
6894 if test "${with_sd_password+set}" = set; then
6895 withval="$with_sd_password"
6897 if test "x$withval" != "xno" ; then
6898 sd_password=$withval
6904 if test "x$sd_password" = "x" ; then
6905 if test "x$OPENSSL" = "xnone" ; then
6906 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6907 key=`autoconf/randpass 41`
6909 key=`openssl rand -base64 33`
6921 # Handle users and groups for each daemon
6925 # Check whether --with-dir_user or --without-dir_user was given.
6926 if test "${with_dir_user+set}" = set; then
6927 withval="$with_dir_user"
6929 if test "x$withval" != "x" ; then
6938 # Check whether --with-dir_group or --without-dir_group was given.
6939 if test "${with_dir_group+set}" = set; then
6940 withval="$with_dir_group"
6942 if test "x$withval" != "x" ; then
6951 # Check whether --with-sd_user or --without-sd_user was given.
6952 if test "${with_sd_user+set}" = set; then
6953 withval="$with_sd_user"
6955 if test "x$withval" != "x" ; then
6964 # Check whether --with-sd_group or --without-sd_group was given.
6965 if test "${with_sd_group+set}" = set; then
6966 withval="$with_sd_group"
6968 if test "x$withval" != "x" ; then
6977 # Check whether --with-fd_user or --without-fd_user was given.
6978 if test "${with_fd_user+set}" = set; then
6979 withval="$with_fd_user"
6981 if test "x$withval" != "x" ; then
6990 # Check whether --with-fd_group or --without-fd_group was given.
6991 if test "${with_fd_group+set}" = set; then
6992 withval="$with_fd_group"
6994 if test "x$withval" != "x" ; then
7011 # ------------------------------------------------
7012 # Bacula check for various SQL database engines
7013 # ------------------------------------------------
7014 BA_CHECK_POSTGRESQL_DB
7018 echo "$as_me:$LINENO: checking for MySQL support" >&5
7019 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7021 # Check whether --with-mysql or --without-mysql was given.
7022 if test "${with_mysql+set}" = set; then
7023 withval="$with_mysql"
7025 if test "$withval" != "no"; then
7026 if test "$withval" = "yes"; then
7027 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7028 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7029 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7030 MYSQL_BINDIR=/usr/local/mysql/bin
7031 elif test -f /usr/include/mysql/mysql.h; then
7032 MYSQL_INCDIR=/usr/include/mysql
7033 MYSQL_LIBDIR=/usr/lib/mysql
7034 MYSQL_BINDIR=/usr/bin
7035 elif test -f /usr/include/mysql.h; then
7036 MYSQL_INCDIR=/usr/include
7037 MYSQL_LIBDIR=/usr/lib
7038 MYSQL_BINDIR=/usr/bin
7039 elif test -f /usr/local/include/mysql/mysql.h; then
7040 MYSQL_INCDIR=/usr/local/include/mysql
7041 MYSQL_LIBDIR=/usr/local/lib/mysql
7042 MYSQL_BINDIR=/usr/local/bin
7043 elif test -f /usr/local/include/mysql.h; then
7044 MYSQL_INCDIR=/usr/local/include
7045 MYSQL_LIBDIR=/usr/local/lib
7046 MYSQL_BINDIR=/usr/local/bin
7048 echo "$as_me:$LINENO: result: no" >&5
7049 echo "${ECHO_T}no" >&6
7050 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7051 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7052 { (exit 1); exit 1; }; }
7055 if test -f $withval/include/mysql/mysql.h; then
7056 MYSQL_INCDIR=$withval/include/mysql
7057 MYSQL_LIBDIR=$withval/lib/mysql
7058 MYSQL_BINDIR=$withval/bin
7059 elif test -f $withval/include/mysql.h; then
7060 MYSQL_INCDIR=$withval/include
7061 MYSQL_LIBDIR=$withval/lib
7062 MYSQL_BINDIR=$withval/bin
7064 echo "$as_me:$LINENO: result: no" >&5
7065 echo "${ECHO_T}no" >&6
7066 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7067 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7068 { (exit 1); exit 1; }; }
7071 SQL_INCLUDE=-I$MYSQL_INCDIR
7072 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7073 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7074 cat >>confdefs.h <<\_ACEOF
7075 #define HAVE_THREAD_SAFE_MYSQL 1
7079 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7081 SQL_BINDIR=$MYSQL_BINDIR
7083 cat >>confdefs.h <<\_ACEOF
7084 #define HAVE_MYSQL 1
7087 echo "$as_me:$LINENO: result: yes" >&5
7088 echo "${ECHO_T}yes" >&6
7095 echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6
7101 echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6
7107 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7108 if test "${with_embedded_mysql+set}" = set; then
7109 withval="$with_embedded_mysql"
7111 if test "$withval" != "no"; then
7112 if test "$withval" = "yes"; then
7113 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7114 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7115 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7116 MYSQL_BINDIR=/usr/local/mysql/bin
7117 elif test -f /usr/include/mysql/mysql.h; then
7118 MYSQL_INCDIR=/usr/include/mysql
7119 MYSQL_LIBDIR=/usr/lib/mysql
7120 MYSQL_BINDIR=/usr/bin
7121 elif test -f /usr/include/mysql.h; then
7122 MYSQL_INCDIR=/usr/include
7123 MYSQL_LIBDIR=/usr/lib
7124 MYSQL_BINDIR=/usr/bin
7125 elif test -f /usr/local/include/mysql/mysql.h; then
7126 MYSQL_INCDIR=/usr/local/include/mysql
7127 MYSQL_LIBDIR=/usr/local/lib/mysql
7128 MYSQL_BINDIR=/usr/local/bin
7129 elif test -f /usr/local/include/mysql.h; then
7130 MYSQL_INCDIR=/usr/local/include
7131 MYSQL_LIBDIR=/usr/local/lib
7132 MYSQL_BINDIR=/usr/local/bin
7134 echo "$as_me:$LINENO: result: no" >&5
7135 echo "${ECHO_T}no" >&6
7136 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7137 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7138 { (exit 1); exit 1; }; }
7141 if test -f $withval/include/mysql/mysql.h; then
7142 MYSQL_INCDIR=$withval/include/mysql
7143 MYSQL_LIBDIR=$withval/lib/mysql
7144 MYSQL_BINDIR=$withval/bin
7145 elif test -f $withval/include/mysql.h; then
7146 MYSQL_INCDIR=$withval/include
7147 MYSQL_LIBDIR=$withval/lib
7148 MYSQL_BINDIR=$withval/bin
7150 echo "$as_me:$LINENO: result: no" >&5
7151 echo "${ECHO_T}no" >&6
7152 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7153 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7154 { (exit 1); exit 1; }; }
7157 SQL_INCLUDE=-I$MYSQL_INCDIR
7158 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7159 SQL_BINDIR=$MYSQL_BINDIR
7161 cat >>confdefs.h <<\_ACEOF
7162 #define HAVE_MYSQL 1
7165 cat >>confdefs.h <<\_ACEOF
7166 #define HAVE_EMBEDDED_MYSQL 1
7169 echo "$as_me:$LINENO: result: yes" >&5
7170 echo "${ECHO_T}yes" >&6
7177 echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6
7183 echo "$as_me:$LINENO: result: no" >&5
7184 echo "${ECHO_T}no" >&6
7197 echo "$as_me:$LINENO: checking for SQLite support" >&5
7198 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7200 # Check whether --with-sqlite or --without-sqlite was given.
7201 if test "${with_sqlite+set}" = set; then
7202 withval="$with_sqlite"
7204 if test "$withval" != "no"; then
7205 if test "$withval" = "yes"; then
7206 if test -f /usr/local/include/sqlite.h; then
7207 SQLITE_INCDIR=/usr/local/include
7208 SQLITE_LIBDIR=/usr/local/lib
7209 SQLITE_BINDIR=/usr/local/bin
7210 elif test -f /usr/include/sqlite.h; then
7211 SQLITE_INCDIR=/usr/include
7212 SQLITE_LIBDIR=/usr/lib
7213 SQLITE_BINDIR=/usr/bin
7215 echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6
7217 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7218 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7219 { (exit 1); exit 1; }; }
7222 if test -f $withval/sqlite.h; then
7223 SQLITE_INCDIR=$withval
7224 SQLITE_LIBDIR=$withval
7225 SQLITE_BINDIR=$withval
7227 echo "$as_me:$LINENO: result: no" >&5
7228 echo "${ECHO_T}no" >&6
7229 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7230 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7231 { (exit 1); exit 1; }; }
7234 SQL_INCLUDE=-I$SQLITE_INCDIR
7235 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7236 SQL_BINDIR=$SQLITE_BINDIR
7238 cat >>confdefs.h <<\_ACEOF
7239 #define HAVE_SQLITE 1
7242 echo "$as_me:$LINENO: result: yes" >&5
7243 echo "${ECHO_T}yes" >&6
7250 echo "$as_me:$LINENO: result: no" >&5
7251 echo "${ECHO_T}no" >&6
7256 echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6
7269 cat >>confdefs.h <<\_ACEOF
7270 #define PROTOTYPES 1
7274 if test -z "$CFLAGS"; then
7275 if test -z "$CCOPTS"; then
7284 largefile_support="no"
7286 # Check whether --enable-largefile or --disable-largefile was given.
7287 if test "${enable_largefile+set}" = set; then
7288 enableval="$enable_largefile"
7291 if test "$enable_largefile" != no; then
7292 if test -n "$ac_tool_prefix"; then
7293 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7294 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7295 echo "$as_me:$LINENO: checking for $ac_word" >&5
7296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7297 if test "${ac_cv_prog_GETCONF+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 if test -n "$GETCONF"; then
7301 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7310 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 GETCONF=$ac_cv_prog_GETCONF
7320 if test -n "$GETCONF"; then
7321 echo "$as_me:$LINENO: result: $GETCONF" >&5
7322 echo "${ECHO_T}$GETCONF" >&6
7324 echo "$as_me:$LINENO: result: no" >&5
7325 echo "${ECHO_T}no" >&6
7329 if test -z "$ac_cv_prog_GETCONF"; then
7330 ac_ct_GETCONF=$GETCONF
7331 # Extract the first word of "getconf", so it can be a program name with args.
7332 set dummy getconf; ac_word=$2
7333 echo "$as_me:$LINENO: checking for $ac_word" >&5
7334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7335 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 if test -n "$ac_ct_GETCONF"; then
7339 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348 ac_cv_prog_ac_ct_GETCONF="getconf"
7349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7358 if test -n "$ac_ct_GETCONF"; then
7359 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7360 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7362 echo "$as_me:$LINENO: result: no" >&5
7363 echo "${ECHO_T}no" >&6
7366 GETCONF=$ac_ct_GETCONF
7368 GETCONF="$ac_cv_prog_GETCONF"
7371 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7372 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7373 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7377 ac_cv_sys_largefile_CFLAGS=no
7379 # IRIX 6.2 and later require cc -n32.
7380 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7381 if test "$GCC" != yes; then
7382 ac_cv_sys_largefile_CFLAGS=-n32
7385 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7386 cat >conftest.$ac_ext <<_ACEOF
7387 #line $LINENO "configure"
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7402 rm -f conftest.$ac_objext conftest$ac_exeext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7404 (eval $ac_link) 2>&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } &&
7408 { ac_try='test -s conftest$ac_exeext'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; }; then
7416 echo "$as_me: failed program was:" >&5
7417 sed 's/^/| /' conftest.$ac_ext >&5
7419 ac_cv_sys_largefile_CFLAGS=no
7421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7426 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7427 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7428 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7429 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7430 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7434 ac_cv_sys_largefile_LDFLAGS=no
7438 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7439 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7440 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7441 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7442 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7446 ac_cv_sys_largefile_LIBS=no
7450 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7451 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7453 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7456 -D_FILE_OFFSET_BITS=*) ;;
7457 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7458 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7464 '') CPPFLAGS="$ac_flag" ;;
7465 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7473 '') CFLAGS="$ac_flag" ;;
7474 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7479 case "$ac_cv_sys_largefile_LDFLAGS" in
7483 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7484 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7487 case "$ac_cv_sys_largefile_LIBS" in
7491 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7492 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7495 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7496 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7497 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 ac_cv_sys_file_offset_bits=no
7502 # HP-UX 10.20 and later
7503 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7504 ac_cv_sys_file_offset_bits=64 ;;
7506 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7508 -D_FILE_OFFSET_BITS)
7509 ac_cv_sys_file_offset_bits=1 ;;
7510 -D_FILE_OFFSET_BITS=*)
7511 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7516 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7517 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7518 if test "$ac_cv_sys_file_offset_bits" != no; then
7520 cat >>confdefs.h <<_ACEOF
7521 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7525 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7526 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7527 if test "${ac_cv_sys_largefile_source+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 ac_cv_sys_largefile_source=no
7532 # HP-UX 10.20 and later
7533 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7534 ac_cv_sys_largefile_source=1 ;;
7536 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7538 -D_LARGEFILE_SOURCE)
7539 ac_cv_sys_largefile_source=1 ;;
7540 -D_LARGEFILE_SOURCE=*)
7541 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7546 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7547 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7548 if test "$ac_cv_sys_largefile_source" != no; then
7550 cat >>confdefs.h <<_ACEOF
7551 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7555 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7556 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7557 if test "${ac_cv_sys_large_files+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 ac_cv_sys_large_files=no
7563 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7564 ac_cv_sys_large_files=1 ;;
7566 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7569 ac_cv_sys_large_files=1 ;;
7571 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7576 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7577 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7578 if test "$ac_cv_sys_large_files" != no; then
7580 cat >>confdefs.h <<_ACEOF
7581 #define _LARGE_FILES $ac_cv_sys_large_files
7589 echo "$as_me:$LINENO: checking for X" >&5
7590 echo $ECHO_N "checking for X... $ECHO_C" >&6
7593 # Check whether --with-x or --without-x was given.
7594 if test "${with_x+set}" = set; then
7598 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7599 if test "x$with_x" = xno; then
7600 # The user explicitly disabled X.
7603 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7604 # Both variables are already set.
7607 if test "${ac_cv_have_x+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 # One or both of the vars are not set, and there is no cached value.
7611 ac_x_includes=no ac_x_libraries=no
7613 if mkdir conftest.dir; then
7615 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7616 cat >Imakefile <<'_ACEOF'
7618 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7620 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7621 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7622 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7623 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7624 for ac_extension in a so sl; do
7625 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7626 test -f $ac_im_libdir/libX11.$ac_extension; then
7627 ac_im_usrlibdir=$ac_im_libdir; break
7630 # Screen out bogus values from the imake configuration. They are
7631 # bogus both because they are the default anyway, and because
7632 # using them would break gcc on systems where it needs fixed includes.
7633 case $ac_im_incroot in
7635 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7637 case $ac_im_usrlibdir in
7639 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7646 # Standard set of common directories for X headers.
7647 # Check X11 before X11Rn because it is often a symlink to the current release.
7659 /usr/local/X11/include
7660 /usr/local/X11R6/include
7661 /usr/local/X11R5/include
7662 /usr/local/X11R4/include
7664 /usr/local/include/X11
7665 /usr/local/include/X11R6
7666 /usr/local/include/X11R5
7667 /usr/local/include/X11R4
7671 /usr/XFree86/include/X11
7675 /usr/unsupported/include
7677 /usr/local/x11r5/include
7678 /usr/lpp/Xamples/include
7680 /usr/openwin/include
7681 /usr/openwin/share/include'
7683 if test "$ac_x_includes" = no; then
7684 # Guess where to find include files, by looking for Intrinsic.h.
7685 # First, try using that file with no special directory specified.
7686 cat >conftest.$ac_ext <<_ACEOF
7687 #line $LINENO "configure"
7690 cat confdefs.h >>conftest.$ac_ext
7691 cat >>conftest.$ac_ext <<_ACEOF
7692 /* end confdefs.h. */
7693 #include <X11/Intrinsic.h>
7695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7698 grep -v '^ *+' conftest.er1 >conftest.err
7700 cat conftest.err >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } >/dev/null; then
7703 if test -s conftest.err; then
7704 ac_cpp_err=$ac_c_preproc_warn_flag
7711 if test -z "$ac_cpp_err"; then
7712 # We can compile using X headers with no special include directory.
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7718 for ac_dir in $ac_x_header_dirs; do
7719 if test -r "$ac_dir/X11/Intrinsic.h"; then
7720 ac_x_includes=$ac_dir
7725 rm -f conftest.err conftest.$ac_ext
7726 fi # $ac_x_includes = no
7728 if test "$ac_x_libraries" = no; then
7729 # Check for the libraries.
7730 # See if we find them without any special options.
7731 # Don't add to $LIBS permanently.
7734 cat >conftest.$ac_ext <<_ACEOF
7735 #line $LINENO "configure"
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h. */
7741 #include <X11/Intrinsic.h>
7750 rm -f conftest.$ac_objext conftest$ac_exeext
7751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7752 (eval $ac_link) 2>&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } &&
7756 { ac_try='test -s conftest$ac_exeext'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7763 # We can link X programs with no special library path.
7766 echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7770 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7772 # Don't even attempt the hair of trying to link an X program!
7773 for ac_extension in a so sl; do
7774 if test -r $ac_dir/libXt.$ac_extension; then
7775 ac_x_libraries=$ac_dir
7781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7782 fi # $ac_x_libraries = no
7784 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7785 # Didn't find X anywhere. Cache the known absence of X.
7786 ac_cv_have_x="have_x=no"
7788 # Record where we found X for the cache.
7789 ac_cv_have_x="have_x=yes \
7790 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7795 eval "$ac_cv_have_x"
7798 if test "$have_x" != yes; then
7799 echo "$as_me:$LINENO: result: $have_x" >&5
7800 echo "${ECHO_T}$have_x" >&6
7803 # If each of the values was on the command line, it overrides each guess.
7804 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7805 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7806 # Update the cache value to reflect the command line values.
7807 ac_cv_have_x="have_x=yes \
7808 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7809 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7810 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7813 if test "$no_x" = yes; then
7814 # Not all programs may use this symbol, but it does not hurt to define it.
7816 cat >>confdefs.h <<\_ACEOF
7817 #define X_DISPLAY_MISSING 1
7820 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7822 if test -n "$x_includes"; then
7823 X_CFLAGS="$X_CFLAGS -I$x_includes"
7826 # It would also be nice to do this for all -L options, not just this one.
7827 if test -n "$x_libraries"; then
7828 X_LIBS="$X_LIBS -L$x_libraries"
7829 # For Solaris; some versions of Sun CC require a space after -R and
7830 # others require no space. Words are not sufficient . . . .
7831 case `(uname -sr) 2>/dev/null` in
7833 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7834 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7835 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7836 cat >conftest.$ac_ext <<_ACEOF
7837 #line $LINENO "configure"
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7852 rm -f conftest.$ac_objext conftest$ac_exeext
7853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7854 (eval $ac_link) 2>&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); } &&
7858 { ac_try='test -s conftest$ac_exeext'
7859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; }; then
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7872 if test $ac_R_nospace = yes; then
7873 echo "$as_me:$LINENO: result: no" >&5
7874 echo "${ECHO_T}no" >&6
7875 X_LIBS="$X_LIBS -R$x_libraries"
7877 LIBS="$ac_xsave_LIBS -R $x_libraries"
7878 cat >conftest.$ac_ext <<_ACEOF
7879 #line $LINENO "configure"
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7894 rm -f conftest.$ac_objext conftest$ac_exeext
7895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7896 (eval $ac_link) 2>&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); } &&
7900 { ac_try='test -s conftest$ac_exeext'
7901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); }; }; then
7908 echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7914 if test $ac_R_space = yes; then
7915 echo "$as_me:$LINENO: result: yes" >&5
7916 echo "${ECHO_T}yes" >&6
7917 X_LIBS="$X_LIBS -R $x_libraries"
7919 echo "$as_me:$LINENO: result: neither works" >&5
7920 echo "${ECHO_T}neither works" >&6
7927 # Check for system-dependent libraries X programs must link with.
7928 # Do this before checking for the system-independent R6 libraries
7929 # (-lICE), since we may need -lsocket or whatever for X linking.
7931 if test "$ISC" = yes; then
7932 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7934 # Martyn Johnson says this is needed for Ultrix, if the X
7935 # libraries were built with DECnet support. And Karl Berry says
7936 # the Alpha needs dnet_stub (dnet does not exist).
7937 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7938 cat >conftest.$ac_ext <<_ACEOF
7939 #line $LINENO "configure"
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7946 /* Override any gcc2 internal prototype to avoid an error. */
7950 /* We use char because int might match the return type of a gcc2
7951 builtin and then its argument prototype would still apply. */
7952 char XOpenDisplay ();
7961 rm -f conftest.$ac_objext conftest$ac_exeext
7962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7963 (eval $ac_link) 2>&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } &&
7967 { ac_try='test -s conftest$ac_exeext'
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; }; then
7975 echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7978 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7979 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7980 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 ac_check_lib_save_LIBS=$LIBS
7985 cat >conftest.$ac_ext <<_ACEOF
7986 #line $LINENO "configure"
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7993 /* Override any gcc2 internal prototype to avoid an error. */
7997 /* We use char because int might match the return type of a gcc2
7998 builtin and then its argument prototype would still apply. */
8008 rm -f conftest.$ac_objext conftest$ac_exeext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8010 (eval $ac_link) 2>&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } &&
8014 { ac_try='test -s conftest$ac_exeext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 ac_cv_lib_dnet_dnet_ntoa=yes
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8025 ac_cv_lib_dnet_dnet_ntoa=no
8027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8028 LIBS=$ac_check_lib_save_LIBS
8030 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8031 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8032 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8033 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8036 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8037 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8038 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8039 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 ac_check_lib_save_LIBS=$LIBS
8043 LIBS="-ldnet_stub $LIBS"
8044 cat >conftest.$ac_ext <<_ACEOF
8045 #line $LINENO "configure"
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8052 /* Override any gcc2 internal prototype to avoid an error. */
8056 /* We use char because int might match the return type of a gcc2
8057 builtin and then its argument prototype would still apply. */
8067 rm -f conftest.$ac_objext conftest$ac_exeext
8068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8069 (eval $ac_link) 2>&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } &&
8073 { ac_try='test -s conftest$ac_exeext'
8074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; }; then
8079 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8081 echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8084 ac_cv_lib_dnet_stub_dnet_ntoa=no
8086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8087 LIBS=$ac_check_lib_save_LIBS
8089 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8090 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8091 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8092 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8098 LIBS="$ac_xsave_LIBS"
8100 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8101 # to get the SysV transport functions.
8102 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8104 # The nsl library prevents programs from opening the X display
8105 # on Irix 5.2, according to T.E. Dickey.
8106 # The functions gethostbyname, getservbyname, and inet_addr are
8107 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8108 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8109 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8110 if test "${ac_cv_func_gethostbyname+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 cat >conftest.$ac_ext <<_ACEOF
8114 #line $LINENO "configure"
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h. */
8120 /* System header to define __stub macros and hopefully few prototypes,
8121 which can conflict with char gethostbyname (); below.
8122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8123 <limits.h> exists even on freestanding compilers. */
8125 # include <limits.h>
8127 # include <assert.h>
8129 /* Override any gcc2 internal prototype to avoid an error. */
8134 /* We use char because int might match the return type of a gcc2
8135 builtin and then its argument prototype would still apply. */
8136 char gethostbyname ();
8137 /* The GNU C library defines this for functions which it implements
8138 to always fail with ENOSYS. Some functions are actually named
8139 something starting with __ and the normal name is an alias. */
8140 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8143 char (*f) () = gethostbyname;
8152 return f != gethostbyname;
8157 rm -f conftest.$ac_objext conftest$ac_exeext
8158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8159 (eval $ac_link) 2>&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } &&
8163 { ac_try='test -s conftest$ac_exeext'
8164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); }; }; then
8169 ac_cv_func_gethostbyname=yes
8171 echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8174 ac_cv_func_gethostbyname=no
8176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8178 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8179 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8181 if test $ac_cv_func_gethostbyname = no; then
8182 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8183 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8184 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8187 ac_check_lib_save_LIBS=$LIBS
8189 cat >conftest.$ac_ext <<_ACEOF
8190 #line $LINENO "configure"
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8197 /* Override any gcc2 internal prototype to avoid an error. */
8201 /* We use char because int might match the return type of a gcc2
8202 builtin and then its argument prototype would still apply. */
8203 char gethostbyname ();
8212 rm -f conftest.$ac_objext conftest$ac_exeext
8213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8214 (eval $ac_link) 2>&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } &&
8218 { ac_try='test -s conftest$ac_exeext'
8219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; }; then
8224 ac_cv_lib_nsl_gethostbyname=yes
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8229 ac_cv_lib_nsl_gethostbyname=no
8231 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8232 LIBS=$ac_check_lib_save_LIBS
8234 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8235 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8236 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8237 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8240 if test $ac_cv_lib_nsl_gethostbyname = no; then
8241 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8242 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8243 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8246 ac_check_lib_save_LIBS=$LIBS
8248 cat >conftest.$ac_ext <<_ACEOF
8249 #line $LINENO "configure"
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8256 /* Override any gcc2 internal prototype to avoid an error. */
8260 /* We use char because int might match the return type of a gcc2
8261 builtin and then its argument prototype would still apply. */
8262 char gethostbyname ();
8271 rm -f conftest.$ac_objext conftest$ac_exeext
8272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8273 (eval $ac_link) 2>&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } &&
8277 { ac_try='test -s conftest$ac_exeext'
8278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8283 ac_cv_lib_bsd_gethostbyname=yes
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8288 ac_cv_lib_bsd_gethostbyname=no
8290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8291 LIBS=$ac_check_lib_save_LIBS
8293 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8294 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8295 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8296 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8302 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8303 # socket/setsockopt and other routines are undefined under SCO ODT
8304 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8305 # on later versions), says Simon Leinen: it contains gethostby*
8306 # variants that don't use the name server (or something). -lsocket
8307 # must be given before -lnsl if both are needed. We assume that
8308 # if connect needs -lnsl, so does gethostbyname.
8309 echo "$as_me:$LINENO: checking for connect" >&5
8310 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8311 if test "${ac_cv_func_connect+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 cat >conftest.$ac_ext <<_ACEOF
8315 #line $LINENO "configure"
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h. */
8321 /* System header to define __stub macros and hopefully few prototypes,
8322 which can conflict with char connect (); below.
8323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8324 <limits.h> exists even on freestanding compilers. */
8326 # include <limits.h>
8328 # include <assert.h>
8330 /* Override any gcc2 internal prototype to avoid an error. */
8335 /* We use char because int might match the return type of a gcc2
8336 builtin and then its argument prototype would still apply. */
8338 /* The GNU C library defines this for functions which it implements
8339 to always fail with ENOSYS. Some functions are actually named
8340 something starting with __ and the normal name is an alias. */
8341 #if defined (__stub_connect) || defined (__stub___connect)
8344 char (*f) () = connect;
8353 return f != connect;
8358 rm -f conftest.$ac_objext conftest$ac_exeext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8360 (eval $ac_link) 2>&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } &&
8364 { ac_try='test -s conftest$ac_exeext'
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; }; then
8370 ac_cv_func_connect=yes
8372 echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8375 ac_cv_func_connect=no
8377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8379 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8380 echo "${ECHO_T}$ac_cv_func_connect" >&6
8382 if test $ac_cv_func_connect = no; then
8383 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8384 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8385 if test "${ac_cv_lib_socket_connect+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 ac_check_lib_save_LIBS=$LIBS
8389 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8390 cat >conftest.$ac_ext <<_ACEOF
8391 #line $LINENO "configure"
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8398 /* Override any gcc2 internal prototype to avoid an error. */
8402 /* We use char because int might match the return type of a gcc2
8403 builtin and then its argument prototype would still apply. */
8413 rm -f conftest.$ac_objext conftest$ac_exeext
8414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8415 (eval $ac_link) 2>&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } &&
8419 { ac_try='test -s conftest$ac_exeext'
8420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; }; then
8425 ac_cv_lib_socket_connect=yes
8427 echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8430 ac_cv_lib_socket_connect=no
8432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8433 LIBS=$ac_check_lib_save_LIBS
8435 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8436 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8437 if test $ac_cv_lib_socket_connect = yes; then
8438 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8443 # Guillermo Gomez says -lposix is necessary on A/UX.
8444 echo "$as_me:$LINENO: checking for remove" >&5
8445 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8446 if test "${ac_cv_func_remove+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 cat >conftest.$ac_ext <<_ACEOF
8450 #line $LINENO "configure"
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456 /* System header to define __stub macros and hopefully few prototypes,
8457 which can conflict with char remove (); below.
8458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8459 <limits.h> exists even on freestanding compilers. */
8461 # include <limits.h>
8463 # include <assert.h>
8465 /* Override any gcc2 internal prototype to avoid an error. */
8470 /* We use char because int might match the return type of a gcc2
8471 builtin and then its argument prototype would still apply. */
8473 /* The GNU C library defines this for functions which it implements
8474 to always fail with ENOSYS. Some functions are actually named
8475 something starting with __ and the normal name is an alias. */
8476 #if defined (__stub_remove) || defined (__stub___remove)
8479 char (*f) () = remove;
8493 rm -f conftest.$ac_objext conftest$ac_exeext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8495 (eval $ac_link) 2>&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try='test -s conftest$ac_exeext'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; }; then
8505 ac_cv_func_remove=yes
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8510 ac_cv_func_remove=no
8512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8514 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8515 echo "${ECHO_T}$ac_cv_func_remove" >&6
8517 if test $ac_cv_func_remove = no; then
8518 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8519 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8520 if test "${ac_cv_lib_posix_remove+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 ac_check_lib_save_LIBS=$LIBS
8524 LIBS="-lposix $LIBS"
8525 cat >conftest.$ac_ext <<_ACEOF
8526 #line $LINENO "configure"
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8533 /* Override any gcc2 internal prototype to avoid an error. */
8537 /* We use char because int might match the return type of a gcc2
8538 builtin and then its argument prototype would still apply. */
8548 rm -f conftest.$ac_objext conftest$ac_exeext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550 (eval $ac_link) 2>&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -s conftest$ac_exeext'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
8560 ac_cv_lib_posix_remove=yes
8562 echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8565 ac_cv_lib_posix_remove=no
8567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8568 LIBS=$ac_check_lib_save_LIBS
8570 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8571 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8572 if test $ac_cv_lib_posix_remove = yes; then
8573 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8578 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8579 echo "$as_me:$LINENO: checking for shmat" >&5
8580 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8581 if test "${ac_cv_func_shmat+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 cat >conftest.$ac_ext <<_ACEOF
8585 #line $LINENO "configure"
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8591 /* System header to define __stub macros and hopefully few prototypes,
8592 which can conflict with char shmat (); below.
8593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8594 <limits.h> exists even on freestanding compilers. */
8596 # include <limits.h>
8598 # include <assert.h>
8600 /* Override any gcc2 internal prototype to avoid an error. */
8605 /* We use char because int might match the return type of a gcc2
8606 builtin and then its argument prototype would still apply. */
8608 /* The GNU C library defines this for functions which it implements
8609 to always fail with ENOSYS. Some functions are actually named
8610 something starting with __ and the normal name is an alias. */
8611 #if defined (__stub_shmat) || defined (__stub___shmat)
8614 char (*f) () = shmat;
8628 rm -f conftest.$ac_objext conftest$ac_exeext
8629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8630 (eval $ac_link) 2>&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } &&
8634 { ac_try='test -s conftest$ac_exeext'
8635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); }; }; then
8640 ac_cv_func_shmat=yes
8642 echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8649 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8650 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8652 if test $ac_cv_func_shmat = no; then
8653 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8654 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8655 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 ac_check_lib_save_LIBS=$LIBS
8660 cat >conftest.$ac_ext <<_ACEOF
8661 #line $LINENO "configure"
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8668 /* Override any gcc2 internal prototype to avoid an error. */
8672 /* We use char because int might match the return type of a gcc2
8673 builtin and then its argument prototype would still apply. */
8683 rm -f conftest.$ac_objext conftest$ac_exeext
8684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8685 (eval $ac_link) 2>&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } &&
8689 { ac_try='test -s conftest$ac_exeext'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; }; then
8695 ac_cv_lib_ipc_shmat=yes
8697 echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8700 ac_cv_lib_ipc_shmat=no
8702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8703 LIBS=$ac_check_lib_save_LIBS
8705 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8706 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8707 if test $ac_cv_lib_ipc_shmat = yes; then
8708 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8714 # Check for libraries that X11R6 Xt/Xaw programs need.
8715 ac_save_LDFLAGS=$LDFLAGS
8716 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8717 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8718 # check for ICE first), but we must link in the order -lSM -lICE or
8719 # we get undefined symbols. So assume we have SM if we have ICE.
8720 # These have to be linked with before -lX11, unlike the other
8721 # libraries we check for below, so use a different variable.
8722 # John Interrante, Karl Berry
8723 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8724 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8725 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 ac_check_lib_save_LIBS=$LIBS
8729 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8730 cat >conftest.$ac_ext <<_ACEOF
8731 #line $LINENO "configure"
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h. */
8738 /* Override any gcc2 internal prototype to avoid an error. */
8742 /* We use char because int might match the return type of a gcc2
8743 builtin and then its argument prototype would still apply. */
8744 char IceConnectionNumber ();
8748 IceConnectionNumber ();
8753 rm -f conftest.$ac_objext conftest$ac_exeext
8754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8755 (eval $ac_link) 2>&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } &&
8759 { ac_try='test -s conftest$ac_exeext'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; }; then
8765 ac_cv_lib_ICE_IceConnectionNumber=yes
8767 echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8770 ac_cv_lib_ICE_IceConnectionNumber=no
8772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8773 LIBS=$ac_check_lib_save_LIBS
8775 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8776 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8777 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8778 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8781 LDFLAGS=$ac_save_LDFLAGS
8833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8835 echo "$as_me:$LINENO: checking for $ac_header" >&5
8836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8843 # Is the header compilable?
8844 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8846 cat >conftest.$ac_ext <<_ACEOF
8847 #line $LINENO "configure"
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h. */
8853 $ac_includes_default
8854 #include <$ac_header>
8856 rm -f conftest.$ac_objext
8857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8858 (eval $ac_compile) 2>&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); } &&
8862 { ac_try='test -s conftest.$ac_objext'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; }; then
8868 ac_header_compiler=yes
8870 echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8873 ac_header_compiler=no
8875 rm -f conftest.$ac_objext conftest.$ac_ext
8876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8877 echo "${ECHO_T}$ac_header_compiler" >&6
8879 # Is the header present?
8880 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8882 cat >conftest.$ac_ext <<_ACEOF
8883 #line $LINENO "configure"
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8889 #include <$ac_header>
8891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8894 grep -v '^ *+' conftest.er1 >conftest.err
8896 cat conftest.err >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } >/dev/null; then
8899 if test -s conftest.err; then
8900 ac_cpp_err=$ac_c_preproc_warn_flag
8907 if test -z "$ac_cpp_err"; then
8908 ac_header_preproc=yes
8910 echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8913 ac_header_preproc=no
8915 rm -f conftest.err conftest.$ac_ext
8916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8917 echo "${ECHO_T}$ac_header_preproc" >&6
8919 # So? What about this header?
8920 case $ac_header_compiler:$ac_header_preproc in
8922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8928 ## ------------------------------------ ##
8929 ## Report this to bug-autoconf@gnu.org. ##
8930 ## ------------------------------------ ##
8933 sed "s/^/$as_me: WARNING: /" >&2
8936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8939 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8944 ## ------------------------------------ ##
8945 ## Report this to bug-autoconf@gnu.org. ##
8946 ## ------------------------------------ ##
8949 sed "s/^/$as_me: WARNING: /" >&2
8952 echo "$as_me:$LINENO: checking for $ac_header" >&5
8953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
8957 eval "$as_ac_Header=$ac_header_preproc"
8959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8964 cat >>confdefs.h <<_ACEOF
8965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8972 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8973 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8974 if test "${ac_cv_header_stdc+set}" = set; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
8977 cat >conftest.$ac_ext <<_ACEOF
8978 #line $LINENO "configure"
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8997 rm -f conftest.$ac_objext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8999 (eval $ac_compile) 2>&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } &&
9003 { ac_try='test -s conftest.$ac_objext'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; }; then
9009 ac_cv_header_stdc=yes
9011 echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9014 ac_cv_header_stdc=no
9016 rm -f conftest.$ac_objext conftest.$ac_ext
9018 if test $ac_cv_header_stdc = yes; then
9019 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9020 cat >conftest.$ac_ext <<_ACEOF
9021 #line $LINENO "configure"
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h. */
9030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9031 $EGREP "memchr" >/dev/null 2>&1; then
9034 ac_cv_header_stdc=no
9040 if test $ac_cv_header_stdc = yes; then
9041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9042 cat >conftest.$ac_ext <<_ACEOF
9043 #line $LINENO "configure"
9046 cat confdefs.h >>conftest.$ac_ext
9047 cat >>conftest.$ac_ext <<_ACEOF
9048 /* end confdefs.h. */
9052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9053 $EGREP "free" >/dev/null 2>&1; then
9056 ac_cv_header_stdc=no
9062 if test $ac_cv_header_stdc = yes; then
9063 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9064 if test "$cross_compiling" = yes; then
9067 cat >conftest.$ac_ext <<_ACEOF
9068 #line $LINENO "configure"
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9075 #if ((' ' & 0x0FF) == 0x020)
9076 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9077 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9079 # define ISLOWER(c) \
9080 (('a' <= (c) && (c) <= 'i') \
9081 || ('j' <= (c) && (c) <= 'r') \
9082 || ('s' <= (c) && (c) <= 'z'))
9083 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9086 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9091 for (i = 0; i < 256; i++)
9092 if (XOR (islower (i), ISLOWER (i))
9093 || toupper (i) != TOUPPER (i))
9098 rm -f conftest$ac_exeext
9099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9100 (eval $ac_link) 2>&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9111 echo "$as_me: program exited with status $ac_status" >&5
9112 echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9116 ac_cv_header_stdc=no
9118 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9122 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9123 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9124 if test $ac_cv_header_stdc = yes; then
9126 cat >>confdefs.h <<\_ACEOF
9127 #define STDC_HEADERS 1
9132 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9133 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9134 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
9137 cat >conftest.$ac_ext <<_ACEOF
9138 #line $LINENO "configure"
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9144 #include <sys/types.h>
9148 return makedev(0, 0);
9153 rm -f conftest.$ac_objext conftest$ac_exeext
9154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9155 (eval $ac_link) 2>&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } &&
9159 { ac_try='test -s conftest$ac_exeext'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; }; then
9165 ac_cv_header_sys_types_h_makedev=yes
9167 echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.$ac_ext >&5
9170 ac_cv_header_sys_types_h_makedev=no
9172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9175 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9176 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9178 if test $ac_cv_header_sys_types_h_makedev = no; then
9179 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9180 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9181 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9182 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
9185 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9186 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9188 # Is the header compilable?
9189 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9190 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9191 cat >conftest.$ac_ext <<_ACEOF
9192 #line $LINENO "configure"
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9198 $ac_includes_default
9199 #include <sys/mkdev.h>
9201 rm -f conftest.$ac_objext
9202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9203 (eval $ac_compile) 2>&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } &&
9207 { ac_try='test -s conftest.$ac_objext'
9208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; }; then
9213 ac_header_compiler=yes
9215 echo "$as_me: failed program was:" >&5
9216 sed 's/^/| /' conftest.$ac_ext >&5
9218 ac_header_compiler=no
9220 rm -f conftest.$ac_objext conftest.$ac_ext
9221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9222 echo "${ECHO_T}$ac_header_compiler" >&6
9224 # Is the header present?
9225 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9226 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9227 cat >conftest.$ac_ext <<_ACEOF
9228 #line $LINENO "configure"
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h. */
9234 #include <sys/mkdev.h>
9236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9239 grep -v '^ *+' conftest.er1 >conftest.err
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } >/dev/null; then
9244 if test -s conftest.err; then
9245 ac_cpp_err=$ac_c_preproc_warn_flag
9252 if test -z "$ac_cpp_err"; then
9253 ac_header_preproc=yes
9255 echo "$as_me: failed program was:" >&5
9256 sed 's/^/| /' conftest.$ac_ext >&5
9258 ac_header_preproc=no
9260 rm -f conftest.err conftest.$ac_ext
9261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9262 echo "${ECHO_T}$ac_header_preproc" >&6
9264 # So? What about this header?
9265 case $ac_header_compiler:$ac_header_preproc in
9267 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9268 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9269 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9270 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9273 ## ------------------------------------ ##
9274 ## Report this to bug-autoconf@gnu.org. ##
9275 ## ------------------------------------ ##
9278 sed "s/^/$as_me: WARNING: /" >&2
9281 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9282 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9283 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9284 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9285 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9286 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9289 ## ------------------------------------ ##
9290 ## Report this to bug-autoconf@gnu.org. ##
9291 ## ------------------------------------ ##
9294 sed "s/^/$as_me: WARNING: /" >&2
9297 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9298 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9299 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9302 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9304 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9305 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9308 if test $ac_cv_header_sys_mkdev_h = yes; then
9310 cat >>confdefs.h <<\_ACEOF
9311 #define MAJOR_IN_MKDEV 1
9318 if test $ac_cv_header_sys_mkdev_h = no; then
9319 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9320 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9321 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9322 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9326 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9328 # Is the header compilable?
9329 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9330 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9331 cat >conftest.$ac_ext <<_ACEOF
9332 #line $LINENO "configure"
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9338 $ac_includes_default
9339 #include <sys/sysmacros.h>
9341 rm -f conftest.$ac_objext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9343 (eval $ac_compile) 2>&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
9347 { ac_try='test -s conftest.$ac_objext'
9348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); }; }; then
9353 ac_header_compiler=yes
9355 echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9358 ac_header_compiler=no
9360 rm -f conftest.$ac_objext conftest.$ac_ext
9361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9362 echo "${ECHO_T}$ac_header_compiler" >&6
9364 # Is the header present?
9365 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9366 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9367 cat >conftest.$ac_ext <<_ACEOF
9368 #line $LINENO "configure"
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h. */
9374 #include <sys/sysmacros.h>
9376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9379 grep -v '^ *+' conftest.er1 >conftest.err
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } >/dev/null; then
9384 if test -s conftest.err; then
9385 ac_cpp_err=$ac_c_preproc_warn_flag
9392 if test -z "$ac_cpp_err"; then
9393 ac_header_preproc=yes
9395 echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9398 ac_header_preproc=no
9400 rm -f conftest.err conftest.$ac_ext
9401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9402 echo "${ECHO_T}$ac_header_preproc" >&6
9404 # So? What about this header?
9405 case $ac_header_compiler:$ac_header_preproc in
9407 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9408 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9410 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9413 ## ------------------------------------ ##
9414 ## Report this to bug-autoconf@gnu.org. ##
9415 ## ------------------------------------ ##
9418 sed "s/^/$as_me: WARNING: /" >&2
9421 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9422 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9423 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9424 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9425 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9426 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9429 ## ------------------------------------ ##
9430 ## Report this to bug-autoconf@gnu.org. ##
9431 ## ------------------------------------ ##
9434 sed "s/^/$as_me: WARNING: /" >&2
9437 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9438 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9439 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9444 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9445 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9448 if test $ac_cv_header_sys_sysmacros_h = yes; then
9450 cat >>confdefs.h <<\_ACEOF
9451 #define MAJOR_IN_SYSMACROS 1
9466 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9467 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9468 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9469 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 cat >conftest.$ac_ext <<_ACEOF
9474 #line $LINENO "configure"
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9480 #include <sys/types.h>
9492 rm -f conftest.$ac_objext
9493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9494 (eval $ac_compile) 2>&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); } &&
9498 { ac_try='test -s conftest.$ac_objext'
9499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; }; then
9504 eval "$as_ac_Header=yes"
9506 echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9509 eval "$as_ac_Header=no"
9511 rm -f conftest.$ac_objext conftest.$ac_ext
9513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9516 cat >>confdefs.h <<_ACEOF
9517 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9520 ac_header_dirent=$ac_hdr; break
9524 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9525 if test $ac_header_dirent = dirent.h; then
9526 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9527 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9528 if test "${ac_cv_search_opendir+set}" = set; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
9531 ac_func_search_save_LIBS=$LIBS
9532 ac_cv_search_opendir=no
9533 cat >conftest.$ac_ext <<_ACEOF
9534 #line $LINENO "configure"
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h. */
9541 /* Override any gcc2 internal prototype to avoid an error. */
9545 /* We use char because int might match the return type of a gcc2
9546 builtin and then its argument prototype would still apply. */
9556 rm -f conftest.$ac_objext conftest$ac_exeext
9557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9558 (eval $ac_link) 2>&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } &&
9562 { ac_try='test -s conftest$ac_exeext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 ac_cv_search_opendir="none required"
9570 echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9575 if test "$ac_cv_search_opendir" = no; then
9576 for ac_lib in dir; do
9577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9578 cat >conftest.$ac_ext <<_ACEOF
9579 #line $LINENO "configure"
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9586 /* Override any gcc2 internal prototype to avoid an error. */
9590 /* We use char because int might match the return type of a gcc2
9591 builtin and then its argument prototype would still apply. */
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9603 (eval $ac_link) 2>&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } &&
9607 { ac_try='test -s conftest$ac_exeext'
9608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); }; }; then
9613 ac_cv_search_opendir="-l$ac_lib"
9616 echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9623 LIBS=$ac_func_search_save_LIBS
9625 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9626 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9627 if test "$ac_cv_search_opendir" != no; then
9628 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9633 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9634 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9635 if test "${ac_cv_search_opendir+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 ac_func_search_save_LIBS=$LIBS
9639 ac_cv_search_opendir=no
9640 cat >conftest.$ac_ext <<_ACEOF
9641 #line $LINENO "configure"
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h. */
9648 /* Override any gcc2 internal prototype to avoid an error. */
9652 /* We use char because int might match the return type of a gcc2
9653 builtin and then its argument prototype would still apply. */
9663 rm -f conftest.$ac_objext conftest$ac_exeext
9664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9665 (eval $ac_link) 2>&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } &&
9669 { ac_try='test -s conftest$ac_exeext'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; }; then
9675 ac_cv_search_opendir="none required"
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9682 if test "$ac_cv_search_opendir" = no; then
9684 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9685 cat >conftest.$ac_ext <<_ACEOF
9686 #line $LINENO "configure"
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h. */
9693 /* Override any gcc2 internal prototype to avoid an error. */
9697 /* We use char because int might match the return type of a gcc2
9698 builtin and then its argument prototype would still apply. */
9708 rm -f conftest.$ac_objext conftest$ac_exeext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9710 (eval $ac_link) 2>&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } &&
9714 { ac_try='test -s conftest$ac_exeext'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; }; then
9720 ac_cv_search_opendir="-l$ac_lib"
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9730 LIBS=$ac_func_search_save_LIBS
9732 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9733 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9734 if test "$ac_cv_search_opendir" != no; then
9735 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9741 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9742 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9743 if test "${ac_cv_header_stat_broken+set}" = set; then
9744 echo $ECHO_N "(cached) $ECHO_C" >&6
9746 cat >conftest.$ac_ext <<_ACEOF
9747 #line $LINENO "configure"
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9753 #include <sys/types.h>
9754 #include <sys/stat.h>
9756 #if defined(S_ISBLK) && defined(S_IFDIR)
9757 # if S_ISBLK (S_IFDIR)
9762 #if defined(S_ISBLK) && defined(S_IFCHR)
9763 # if S_ISBLK (S_IFCHR)
9768 #if defined(S_ISLNK) && defined(S_IFREG)
9769 # if S_ISLNK (S_IFREG)
9774 #if defined(S_ISSOCK) && defined(S_IFREG)
9775 # if S_ISSOCK (S_IFREG)
9781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9782 $EGREP "You lose" >/dev/null 2>&1; then
9783 ac_cv_header_stat_broken=yes
9785 ac_cv_header_stat_broken=no
9790 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9791 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
9792 if test $ac_cv_header_stat_broken = yes; then
9794 cat >>confdefs.h <<\_ACEOF
9795 #define STAT_MACROS_BROKEN 1
9800 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9801 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9802 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 cat >conftest.$ac_ext <<_ACEOF
9806 #line $LINENO "configure"
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9812 #include <sys/types.h>
9813 #include <sys/wait.h>
9815 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9818 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9826 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9831 rm -f conftest.$ac_objext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9833 (eval $ac_compile) 2>&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } &&
9837 { ac_try='test -s conftest.$ac_objext'
9838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; }; then
9843 ac_cv_header_sys_wait_h=yes
9845 echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9848 ac_cv_header_sys_wait_h=no
9850 rm -f conftest.$ac_objext conftest.$ac_ext
9852 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9853 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9854 if test $ac_cv_header_sys_wait_h = yes; then
9856 cat >>confdefs.h <<\_ACEOF
9857 #define HAVE_SYS_WAIT_H 1
9862 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9863 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9864 if test "${ac_cv_header_time+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 cat >conftest.$ac_ext <<_ACEOF
9868 #line $LINENO "configure"
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 #include <sys/types.h>
9875 #include <sys/time.h>
9881 if ((struct tm *) 0)
9887 rm -f conftest.$ac_objext
9888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9889 (eval $ac_compile) 2>&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } &&
9893 { ac_try='test -s conftest.$ac_objext'
9894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; }; then
9899 ac_cv_header_time=yes
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9904 ac_cv_header_time=no
9906 rm -f conftest.$ac_objext conftest.$ac_ext
9908 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9909 echo "${ECHO_T}$ac_cv_header_time" >&6
9910 if test $ac_cv_header_time = yes; then
9912 cat >>confdefs.h <<\_ACEOF
9913 #define TIME_WITH_SYS_TIME 1
9919 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9920 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
9921 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 cat >conftest.$ac_ext <<_ACEOF
9925 #line $LINENO "configure"
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9931 $ac_includes_default
9935 static struct stat ac_aggr;
9936 if (ac_aggr.st_blksize)
9942 rm -f conftest.$ac_objext
9943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9944 (eval $ac_compile) 2>&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); } &&
9948 { ac_try='test -s conftest.$ac_objext'
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; }; then
9954 ac_cv_member_struct_stat_st_blksize=yes
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9959 cat >conftest.$ac_ext <<_ACEOF
9960 #line $LINENO "configure"
9963 cat confdefs.h >>conftest.$ac_ext
9964 cat >>conftest.$ac_ext <<_ACEOF
9965 /* end confdefs.h. */
9966 $ac_includes_default
9970 static struct stat ac_aggr;
9971 if (sizeof ac_aggr.st_blksize)
9977 rm -f conftest.$ac_objext
9978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9979 (eval $ac_compile) 2>&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } &&
9983 { ac_try='test -s conftest.$ac_objext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 ac_cv_member_struct_stat_st_blksize=yes
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9994 ac_cv_member_struct_stat_st_blksize=no
9996 rm -f conftest.$ac_objext conftest.$ac_ext
9998 rm -f conftest.$ac_objext conftest.$ac_ext
10000 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10001 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10002 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10004 cat >>confdefs.h <<_ACEOF
10005 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10009 cat >>confdefs.h <<\_ACEOF
10010 #define HAVE_ST_BLKSIZE 1
10016 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10017 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10018 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 cat >conftest.$ac_ext <<_ACEOF
10022 #line $LINENO "configure"
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10028 $ac_includes_default
10032 static struct stat ac_aggr;
10033 if (ac_aggr.st_blocks)
10039 rm -f conftest.$ac_objext
10040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10041 (eval $ac_compile) 2>&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } &&
10045 { ac_try='test -s conftest.$ac_objext'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10051 ac_cv_member_struct_stat_st_blocks=yes
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10056 cat >conftest.$ac_ext <<_ACEOF
10057 #line $LINENO "configure"
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10063 $ac_includes_default
10067 static struct stat ac_aggr;
10068 if (sizeof ac_aggr.st_blocks)
10074 rm -f conftest.$ac_objext
10075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10076 (eval $ac_compile) 2>&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } &&
10080 { ac_try='test -s conftest.$ac_objext'
10081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082 (eval $ac_try) 2>&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; }; then
10086 ac_cv_member_struct_stat_st_blocks=yes
10088 echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10091 ac_cv_member_struct_stat_st_blocks=no
10093 rm -f conftest.$ac_objext conftest.$ac_ext
10095 rm -f conftest.$ac_objext conftest.$ac_ext
10097 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10098 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10099 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10101 cat >>confdefs.h <<_ACEOF
10102 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10106 cat >>confdefs.h <<\_ACEOF
10107 #define HAVE_ST_BLOCKS 1
10111 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10115 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10116 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10117 if test "${ac_cv_struct_tm+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 cat >conftest.$ac_ext <<_ACEOF
10121 #line $LINENO "configure"
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 #include <sys/types.h>
10133 struct tm *tp; tp->tm_sec;
10138 rm -f conftest.$ac_objext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10140 (eval $ac_compile) 2>&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -s conftest.$ac_objext'
10145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146 (eval $ac_try) 2>&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; }; then
10150 ac_cv_struct_tm=time.h
10152 echo "$as_me: failed program was:" >&5
10153 sed 's/^/| /' conftest.$ac_ext >&5
10155 ac_cv_struct_tm=sys/time.h
10157 rm -f conftest.$ac_objext conftest.$ac_ext
10159 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10160 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10161 if test $ac_cv_struct_tm = sys/time.h; then
10163 cat >>confdefs.h <<\_ACEOF
10164 #define TM_IN_SYS_TIME 1
10169 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10170 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10171 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10174 cat >conftest.$ac_ext <<_ACEOF
10175 #line $LINENO "configure"
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h. */
10181 #include <sys/types.h>
10182 #include <$ac_cv_struct_tm>
10188 static struct tm ac_aggr;
10189 if (ac_aggr.tm_zone)
10195 rm -f conftest.$ac_objext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10197 (eval $ac_compile) 2>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try='test -s conftest.$ac_objext'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10207 ac_cv_member_struct_tm_tm_zone=yes
10209 echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10212 cat >conftest.$ac_ext <<_ACEOF
10213 #line $LINENO "configure"
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h. */
10219 #include <sys/types.h>
10220 #include <$ac_cv_struct_tm>
10226 static struct tm ac_aggr;
10227 if (sizeof ac_aggr.tm_zone)
10233 rm -f conftest.$ac_objext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10235 (eval $ac_compile) 2>&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); } &&
10239 { ac_try='test -s conftest.$ac_objext'
10240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241 (eval $ac_try) 2>&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; }; then
10245 ac_cv_member_struct_tm_tm_zone=yes
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10250 ac_cv_member_struct_tm_tm_zone=no
10252 rm -f conftest.$ac_objext conftest.$ac_ext
10254 rm -f conftest.$ac_objext conftest.$ac_ext
10256 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10257 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10258 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10260 cat >>confdefs.h <<_ACEOF
10261 #define HAVE_STRUCT_TM_TM_ZONE 1
10267 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10269 cat >>confdefs.h <<\_ACEOF
10270 #define HAVE_TM_ZONE 1
10274 echo "$as_me:$LINENO: checking for tzname" >&5
10275 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10276 if test "${ac_cv_var_tzname+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 cat >conftest.$ac_ext <<_ACEOF
10280 #line $LINENO "configure"
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h. */
10287 #ifndef tzname /* For SGI. */
10288 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10299 rm -f conftest.$ac_objext conftest$ac_exeext
10300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10301 (eval $ac_link) 2>&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } &&
10305 { ac_try='test -s conftest$ac_exeext'
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; }; then
10311 ac_cv_var_tzname=yes
10313 echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
10316 ac_cv_var_tzname=no
10318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10320 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10321 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10322 if test $ac_cv_var_tzname = yes; then
10324 cat >>confdefs.h <<\_ACEOF
10325 #define HAVE_TZNAME 1
10332 echo "$as_me:$LINENO: checking for utime.h" >&5
10333 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10334 if test "${ba_cv_header_utime_h+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 cat >conftest.$ac_ext <<_ACEOF
10338 #line $LINENO "configure"
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h. */
10345 #include <sys/types.h>
10355 rm -f conftest.$ac_objext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357 (eval $ac_compile) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } &&
10361 { ac_try='test -s conftest.$ac_objext'
10362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; }; then
10367 ba_cv_header_utime_h=yes
10369 echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10372 ba_cv_header_utime_h=no
10374 rm -f conftest.$ac_objext conftest.$ac_ext
10376 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10377 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10378 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10379 #define HAVE_UTIME_H 1
10383 echo "$as_me:$LINENO: checking for socklen_t" >&5
10384 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10385 if test "${ba_cv_header_socklen_t+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 cat >conftest.$ac_ext <<_ACEOF
10389 #line $LINENO "configure"
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10396 #include <sys/types.h>
10397 #include <sys/socket.h>
10406 rm -f conftest.$ac_objext
10407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10408 (eval $ac_compile) 2>&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } &&
10412 { ac_try='test -s conftest.$ac_objext'
10413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414 (eval $ac_try) 2>&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }; }; then
10418 ba_cv_header_socklen_t=yes
10420 echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10423 ba_cv_header_socklen_t=no
10425 rm -f conftest.$ac_objext conftest.$ac_ext
10427 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10428 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10429 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10430 #define HAVE_SOCKLEN_T 1
10434 echo "$as_me:$LINENO: checking for bigendian" >&5
10435 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10436 if test "${ba_cv_bigendian+set}" = set; then
10437 echo $ECHO_N "(cached) $ECHO_C" >&6
10439 if test "$cross_compiling" = yes; then
10442 cat >conftest.$ac_ext <<_ACEOF
10443 #line $LINENO "configure"
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10449 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10451 rm -f conftest$ac_exeext
10452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10453 (eval $ac_link) 2>&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 ba_cv_bigendian=yes
10464 echo "$as_me: program exited with status $ac_status" >&5
10465 echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10468 ( exit $ac_status )
10471 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10474 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10475 echo "${ECHO_T}$ba_cv_bigendian" >&6
10476 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10477 #define HAVE_BIGENDIAN 1
10482 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10483 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10484 if test "${ac_cv_c_const+set}" = set; then
10485 echo $ECHO_N "(cached) $ECHO_C" >&6
10487 cat >conftest.$ac_ext <<_ACEOF
10488 #line $LINENO "configure"
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10498 /* FIXME: Include the comments suggested by Paul. */
10499 #ifndef __cplusplus
10500 /* Ultrix mips cc rejects this. */
10501 typedef int charset[2];
10503 /* SunOS 4.1.1 cc rejects this. */
10504 char const *const *ccp;
10506 /* NEC SVR4.0.2 mips cc rejects this. */
10507 struct point {int x, y;};
10508 static struct point const zero = {0,0};
10509 /* AIX XL C 1.02.0.0 rejects this.
10510 It does not let you subtract one const X* pointer from another in
10511 an arm of an if-expression whose if-part is not a constant
10513 const char *g = "string";
10514 ccp = &g + (g ? g-g : 0);
10515 /* HPUX 7.0 cc rejects these. */
10518 ccp = (char const *const *) p;
10519 { /* SCO 3.2v4 cc rejects this. */
10521 char const *s = 0 ? (char *) 0 : (char const *) 0;
10525 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10526 int x[] = {25, 17};
10527 const int *foo = &x[0];
10530 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10531 typedef const int *iptr;
10535 { /* AIX XL C 1.02.0.0 rejects this saying
10536 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10537 struct s { int j; const int *ap[3]; };
10538 struct s *b; b->j = 5;
10540 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10541 const int foo = 10;
10549 rm -f conftest.$ac_objext
10550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10551 (eval $ac_compile) 2>&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } &&
10555 { ac_try='test -s conftest.$ac_objext'
10556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557 (eval $ac_try) 2>&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; }; then
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10568 rm -f conftest.$ac_objext conftest.$ac_ext
10570 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10571 echo "${ECHO_T}$ac_cv_c_const" >&6
10572 if test $ac_cv_c_const = no; then
10574 cat >>confdefs.h <<\_ACEOF
10582 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10583 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10585 # The order of these tests is important.
10586 cat >conftest.$ac_ext <<_ACEOF
10587 #line $LINENO "configure"
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10593 #include <sys/statvfs.h>
10594 #include <sys/fstyp.h>
10596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10599 grep -v '^ *+' conftest.er1 >conftest.err
10601 cat conftest.err >&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } >/dev/null; then
10604 if test -s conftest.err; then
10605 ac_cpp_err=$ac_c_preproc_warn_flag
10612 if test -z "$ac_cpp_err"; then
10613 cat >>confdefs.h <<\_ACEOF
10614 #define FSTYPE_STATVFS 1
10618 echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10623 rm -f conftest.err conftest.$ac_ext
10624 if test $fstype = no; then
10625 cat >conftest.$ac_ext <<_ACEOF
10626 #line $LINENO "configure"
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10632 #include <sys/statfs.h>
10633 #include <sys/fstyp.h>
10635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10638 grep -v '^ *+' conftest.er1 >conftest.err
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } >/dev/null; then
10643 if test -s conftest.err; then
10644 ac_cpp_err=$ac_c_preproc_warn_flag
10651 if test -z "$ac_cpp_err"; then
10652 cat >>confdefs.h <<\_ACEOF
10653 #define FSTYPE_USG_STATFS 1
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10662 rm -f conftest.err conftest.$ac_ext
10664 if test $fstype = no; then
10665 cat >conftest.$ac_ext <<_ACEOF
10666 #line $LINENO "configure"
10669 cat confdefs.h >>conftest.$ac_ext
10670 cat >>conftest.$ac_ext <<_ACEOF
10671 /* end confdefs.h. */
10672 #include <sys/statfs.h>
10673 #include <sys/vmount.h>
10675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10678 grep -v '^ *+' conftest.er1 >conftest.err
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } >/dev/null; then
10683 if test -s conftest.err; then
10684 ac_cpp_err=$ac_c_preproc_warn_flag
10691 if test -z "$ac_cpp_err"; then
10692 cat >>confdefs.h <<\_ACEOF
10693 #define FSTYPE_AIX_STATFS 1
10697 echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10702 rm -f conftest.err conftest.$ac_ext
10704 if test $fstype = no; then
10705 cat >conftest.$ac_ext <<_ACEOF
10706 #line $LINENO "configure"
10709 cat confdefs.h >>conftest.$ac_ext
10710 cat >>conftest.$ac_ext <<_ACEOF
10711 /* end confdefs.h. */
10712 #include <mntent.h>
10714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10717 grep -v '^ *+' conftest.er1 >conftest.err
10719 cat conftest.err >&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); } >/dev/null; then
10722 if test -s conftest.err; then
10723 ac_cpp_err=$ac_c_preproc_warn_flag
10730 if test -z "$ac_cpp_err"; then
10731 cat >>confdefs.h <<\_ACEOF
10732 #define FSTYPE_MNTENT 1
10736 echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10741 rm -f conftest.err conftest.$ac_ext
10743 if test $fstype = no; then
10744 cat >conftest.$ac_ext <<_ACEOF
10745 #line $LINENO "configure"
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h. */
10751 #include <sys/mount.h>
10754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10755 $EGREP "f_type;" >/dev/null 2>&1; then
10756 cat >>confdefs.h <<\_ACEOF
10757 #define FSTYPE_STATFS 1
10764 if test $fstype = no; then
10765 cat >conftest.$ac_ext <<_ACEOF
10766 #line $LINENO "configure"
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h. */
10772 #include <sys/mount.h>
10773 #include <sys/fs_types.h>
10775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10778 grep -v '^ *+' conftest.er1 >conftest.err
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } >/dev/null; then
10783 if test -s conftest.err; then
10784 ac_cpp_err=$ac_c_preproc_warn_flag
10791 if test -z "$ac_cpp_err"; then
10792 cat >>confdefs.h <<\_ACEOF
10793 #define FSTYPE_GETMNT 1
10797 echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10802 rm -f conftest.err conftest.$ac_ext
10804 echo "$as_me:$LINENO: result: $fstype" >&5
10805 echo "${ECHO_T}$fstype" >&6
10807 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10808 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10809 if test "${ac_cv_type_signal+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10812 cat >conftest.$ac_ext <<_ACEOF
10813 #line $LINENO "configure"
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 #include <sys/types.h>
10820 #include <signal.h>
10825 extern "C" void (*signal (int, void (*)(int)))(int);
10827 void (*signal ()) ();
10838 rm -f conftest.$ac_objext
10839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10840 (eval $ac_compile) 2>&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
10844 { ac_try='test -s conftest.$ac_objext'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; }; then
10850 ac_cv_type_signal=void
10852 echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10855 ac_cv_type_signal=int
10857 rm -f conftest.$ac_objext conftest.$ac_ext
10859 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10860 echo "${ECHO_T}$ac_cv_type_signal" >&6
10862 cat >>confdefs.h <<_ACEOF
10863 #define RETSIGTYPE $ac_cv_type_signal
10868 echo "$as_me:$LINENO: checking for type of signal functions" >&5
10869 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
10870 if test "${bash_cv_signal_vintage+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10874 cat >conftest.$ac_ext <<_ACEOF
10875 #line $LINENO "configure"
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10881 #include <signal.h>
10887 struct sigaction sa;
10888 sigemptyset(&ss); sigsuspend(&ss);
10889 sigaction(SIGINT, &sa, (struct sigaction *) 0);
10890 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
10896 rm -f conftest.$ac_objext conftest$ac_exeext
10897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10898 (eval $ac_link) 2>&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } &&
10902 { ac_try='test -s conftest$ac_exeext'
10903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904 (eval $ac_try) 2>&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; }; then
10908 bash_cv_signal_vintage=posix
10910 echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10914 cat >conftest.$ac_ext <<_ACEOF
10915 #line $LINENO "configure"
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10921 #include <signal.h>
10926 int mask = sigmask(SIGINT);
10927 sigsetmask(mask); sigblock(mask); sigpause(mask);
10933 rm -f conftest.$ac_objext conftest$ac_exeext
10934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10935 (eval $ac_link) 2>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } &&
10939 { ac_try='test -s conftest$ac_exeext'
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; }; then
10945 bash_cv_signal_vintage=4.2bsd
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10951 cat >conftest.$ac_ext <<_ACEOF
10952 #line $LINENO "configure"
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h. */
10959 #include <signal.h>
10960 RETSIGTYPE foo() { }
10965 int mask = sigmask(SIGINT);
10966 sigset(SIGINT, foo); sigrelse(SIGINT);
10967 sighold(SIGINT); sigpause(SIGINT);
10973 rm -f conftest.$ac_objext conftest$ac_exeext
10974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10975 (eval $ac_link) 2>&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } &&
10979 { ac_try='test -s conftest$ac_exeext'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 bash_cv_signal_vintage=svr3
10987 echo "$as_me: failed program was:" >&5
10988 sed 's/^/| /' conftest.$ac_ext >&5
10990 bash_cv_signal_vintage=v7
10993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11003 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11004 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11005 if test "$bash_cv_signal_vintage" = posix; then
11006 cat >>confdefs.h <<\_ACEOF
11007 #define HAVE_POSIX_SIGNALS 1
11010 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11011 cat >>confdefs.h <<\_ACEOF
11012 #define HAVE_BSD_SIGNALS 1
11015 elif test "$bash_cv_signal_vintage" = svr3; then
11016 cat >>confdefs.h <<\_ACEOF
11017 #define HAVE_USG_SIGHOLD 1
11022 echo "$as_me:$LINENO: checking for mode_t" >&5
11023 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11024 if test "${ac_cv_type_mode_t+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11027 cat >conftest.$ac_ext <<_ACEOF
11028 #line $LINENO "configure"
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h. */
11034 $ac_includes_default
11040 if (sizeof (mode_t))
11046 rm -f conftest.$ac_objext
11047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11048 (eval $ac_compile) 2>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } &&
11052 { ac_try='test -s conftest.$ac_objext'
11053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11054 (eval $ac_try) 2>&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }; }; then
11058 ac_cv_type_mode_t=yes
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11063 ac_cv_type_mode_t=no
11065 rm -f conftest.$ac_objext conftest.$ac_ext
11067 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11068 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11069 if test $ac_cv_type_mode_t = yes; then
11073 cat >>confdefs.h <<_ACEOF
11079 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11080 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11081 if test "${ac_cv_type_uid_t+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 cat >conftest.$ac_ext <<_ACEOF
11085 #line $LINENO "configure"
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11091 #include <sys/types.h>
11094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11095 $EGREP "uid_t" >/dev/null 2>&1; then
11096 ac_cv_type_uid_t=yes
11098 ac_cv_type_uid_t=no
11103 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11104 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11105 if test $ac_cv_type_uid_t = no; then
11107 cat >>confdefs.h <<\_ACEOF
11112 cat >>confdefs.h <<\_ACEOF
11118 echo "$as_me:$LINENO: checking for size_t" >&5
11119 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11120 if test "${ac_cv_type_size_t+set}" = set; then
11121 echo $ECHO_N "(cached) $ECHO_C" >&6
11123 cat >conftest.$ac_ext <<_ACEOF
11124 #line $LINENO "configure"
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h. */
11130 $ac_includes_default
11136 if (sizeof (size_t))
11142 rm -f conftest.$ac_objext
11143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11144 (eval $ac_compile) 2>&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } &&
11148 { ac_try='test -s conftest.$ac_objext'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; }; then
11154 ac_cv_type_size_t=yes
11156 echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11159 ac_cv_type_size_t=no
11161 rm -f conftest.$ac_objext conftest.$ac_ext
11163 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11164 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11165 if test $ac_cv_type_size_t = yes; then
11169 cat >>confdefs.h <<_ACEOF
11170 #define size_t unsigned
11175 echo "$as_me:$LINENO: checking for pid_t" >&5
11176 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11177 if test "${ac_cv_type_pid_t+set}" = set; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 cat >conftest.$ac_ext <<_ACEOF
11181 #line $LINENO "configure"
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h. */
11187 $ac_includes_default
11193 if (sizeof (pid_t))
11199 rm -f conftest.$ac_objext
11200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11201 (eval $ac_compile) 2>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } &&
11205 { ac_try='test -s conftest.$ac_objext'
11206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11207 (eval $ac_try) 2>&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); }; }; then
11211 ac_cv_type_pid_t=yes
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11216 ac_cv_type_pid_t=no
11218 rm -f conftest.$ac_objext conftest.$ac_ext
11220 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11221 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11222 if test $ac_cv_type_pid_t = yes; then
11226 cat >>confdefs.h <<_ACEOF
11232 echo "$as_me:$LINENO: checking for off_t" >&5
11233 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11234 if test "${ac_cv_type_off_t+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 cat >conftest.$ac_ext <<_ACEOF
11238 #line $LINENO "configure"
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h. */
11244 $ac_includes_default
11250 if (sizeof (off_t))
11256 rm -f conftest.$ac_objext
11257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11258 (eval $ac_compile) 2>&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } &&
11262 { ac_try='test -s conftest.$ac_objext'
11263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11264 (eval $ac_try) 2>&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); }; }; then
11268 ac_cv_type_off_t=yes
11270 echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11273 ac_cv_type_off_t=no
11275 rm -f conftest.$ac_objext conftest.$ac_ext
11277 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11278 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11279 if test $ac_cv_type_off_t = yes; then
11283 cat >>confdefs.h <<_ACEOF
11289 echo "$as_me:$LINENO: checking for ino_t" >&5
11290 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11291 if test "${ac_cv_type_ino_t+set}" = set; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11294 cat >conftest.$ac_ext <<_ACEOF
11295 #line $LINENO "configure"
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11301 $ac_includes_default
11307 if (sizeof (ino_t))
11313 rm -f conftest.$ac_objext
11314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11315 (eval $ac_compile) 2>&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } &&
11319 { ac_try='test -s conftest.$ac_objext'
11320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321 (eval $ac_try) 2>&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
11325 ac_cv_type_ino_t=yes
11327 echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11330 ac_cv_type_ino_t=no
11332 rm -f conftest.$ac_objext conftest.$ac_ext
11334 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11335 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11336 if test $ac_cv_type_ino_t = yes; then
11340 cat >>confdefs.h <<_ACEOF
11341 #define ino_t unsigned long
11346 echo "$as_me:$LINENO: checking for dev_t" >&5
11347 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11348 if test "${ac_cv_type_dev_t+set}" = set; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11351 cat >conftest.$ac_ext <<_ACEOF
11352 #line $LINENO "configure"
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h. */
11358 $ac_includes_default
11364 if (sizeof (dev_t))
11370 rm -f conftest.$ac_objext
11371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11372 (eval $ac_compile) 2>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } &&
11376 { ac_try='test -s conftest.$ac_objext'
11377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378 (eval $ac_try) 2>&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; }; then
11382 ac_cv_type_dev_t=yes
11384 echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.$ac_ext >&5
11387 ac_cv_type_dev_t=no
11389 rm -f conftest.$ac_objext conftest.$ac_ext
11391 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11392 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11393 if test $ac_cv_type_dev_t = yes; then
11397 cat >>confdefs.h <<_ACEOF
11398 #define dev_t unsigned long
11403 echo "$as_me:$LINENO: checking for daddr_t" >&5
11404 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11405 if test "${ac_cv_type_daddr_t+set}" = set; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11408 cat >conftest.$ac_ext <<_ACEOF
11409 #line $LINENO "configure"
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h. */
11415 $ac_includes_default
11421 if (sizeof (daddr_t))
11427 rm -f conftest.$ac_objext
11428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11429 (eval $ac_compile) 2>&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } &&
11433 { ac_try='test -s conftest.$ac_objext'
11434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435 (eval $ac_try) 2>&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; }; then
11439 ac_cv_type_daddr_t=yes
11441 echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.$ac_ext >&5
11444 ac_cv_type_daddr_t=no
11446 rm -f conftest.$ac_objext conftest.$ac_ext
11448 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11449 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11450 if test $ac_cv_type_daddr_t = yes; then
11454 cat >>confdefs.h <<_ACEOF
11455 #define daddr_t long
11460 echo "$as_me:$LINENO: checking for major_t" >&5
11461 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11462 if test "${ac_cv_type_major_t+set}" = set; then
11463 echo $ECHO_N "(cached) $ECHO_C" >&6
11465 cat >conftest.$ac_ext <<_ACEOF
11466 #line $LINENO "configure"
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11472 $ac_includes_default
11478 if (sizeof (major_t))
11484 rm -f conftest.$ac_objext
11485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11486 (eval $ac_compile) 2>&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
11490 { ac_try='test -s conftest.$ac_objext'
11491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492 (eval $ac_try) 2>&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; }; then
11496 ac_cv_type_major_t=yes
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11501 ac_cv_type_major_t=no
11503 rm -f conftest.$ac_objext conftest.$ac_ext
11505 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11506 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11507 if test $ac_cv_type_major_t = yes; then
11511 cat >>confdefs.h <<_ACEOF
11512 #define major_t int
11517 echo "$as_me:$LINENO: checking for minor_t" >&5
11518 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11519 if test "${ac_cv_type_minor_t+set}" = set; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11522 cat >conftest.$ac_ext <<_ACEOF
11523 #line $LINENO "configure"
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11529 $ac_includes_default
11535 if (sizeof (minor_t))
11541 rm -f conftest.$ac_objext
11542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11543 (eval $ac_compile) 2>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } &&
11547 { ac_try='test -s conftest.$ac_objext'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; }; then
11553 ac_cv_type_minor_t=yes
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11558 ac_cv_type_minor_t=no
11560 rm -f conftest.$ac_objext conftest.$ac_ext
11562 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11563 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11564 if test $ac_cv_type_minor_t = yes; then
11568 cat >>confdefs.h <<_ACEOF
11569 #define minor_t int
11574 echo "$as_me:$LINENO: checking for ssize_t" >&5
11575 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11576 if test "${ac_cv_type_ssize_t+set}" = set; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11579 cat >conftest.$ac_ext <<_ACEOF
11580 #line $LINENO "configure"
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h. */
11586 $ac_includes_default
11592 if (sizeof (ssize_t))
11598 rm -f conftest.$ac_objext
11599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11600 (eval $ac_compile) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); } &&
11604 { ac_try='test -s conftest.$ac_objext'
11605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606 (eval $ac_try) 2>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; }; then
11610 ac_cv_type_ssize_t=yes
11612 echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11615 ac_cv_type_ssize_t=no
11617 rm -f conftest.$ac_objext conftest.$ac_ext
11619 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11620 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11621 if test $ac_cv_type_ssize_t = yes; then
11625 cat >>confdefs.h <<_ACEOF
11626 #define ssize_t int
11631 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11632 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11633 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11636 cat >conftest.$ac_ext <<_ACEOF
11637 #line $LINENO "configure"
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h. */
11643 $ac_includes_default
11647 static struct stat ac_aggr;
11648 if (ac_aggr.st_blocks)
11654 rm -f conftest.$ac_objext
11655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11656 (eval $ac_compile) 2>&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } &&
11660 { ac_try='test -s conftest.$ac_objext'
11661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662 (eval $ac_try) 2>&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; }; then
11666 ac_cv_member_struct_stat_st_blocks=yes
11668 echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11671 cat >conftest.$ac_ext <<_ACEOF
11672 #line $LINENO "configure"
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h. */
11678 $ac_includes_default
11682 static struct stat ac_aggr;
11683 if (sizeof ac_aggr.st_blocks)
11689 rm -f conftest.$ac_objext
11690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11691 (eval $ac_compile) 2>&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } &&
11695 { ac_try='test -s conftest.$ac_objext'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; }; then
11701 ac_cv_member_struct_stat_st_blocks=yes
11703 echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11706 ac_cv_member_struct_stat_st_blocks=no
11708 rm -f conftest.$ac_objext conftest.$ac_ext
11710 rm -f conftest.$ac_objext conftest.$ac_ext
11712 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11713 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11714 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11716 cat >>confdefs.h <<_ACEOF
11717 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11721 cat >>confdefs.h <<\_ACEOF
11722 #define HAVE_ST_BLOCKS 1
11726 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11731 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11732 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11733 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 cat >conftest.$ac_ext <<_ACEOF
11737 #line $LINENO "configure"
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11743 $ac_includes_default
11747 static struct stat ac_aggr;
11748 if (ac_aggr.st_rdev)
11754 rm -f conftest.$ac_objext
11755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11756 (eval $ac_compile) 2>&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); } &&
11760 { ac_try='test -s conftest.$ac_objext'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11766 ac_cv_member_struct_stat_st_rdev=yes
11768 echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11771 cat >conftest.$ac_ext <<_ACEOF
11772 #line $LINENO "configure"
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h. */
11778 $ac_includes_default
11782 static struct stat ac_aggr;
11783 if (sizeof ac_aggr.st_rdev)
11789 rm -f conftest.$ac_objext
11790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11791 (eval $ac_compile) 2>&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } &&
11795 { ac_try='test -s conftest.$ac_objext'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
11801 ac_cv_member_struct_stat_st_rdev=yes
11803 echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11806 ac_cv_member_struct_stat_st_rdev=no
11808 rm -f conftest.$ac_objext conftest.$ac_ext
11810 rm -f conftest.$ac_objext conftest.$ac_ext
11812 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
11813 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
11814 if test $ac_cv_member_struct_stat_st_rdev = yes; then
11816 cat >>confdefs.h <<_ACEOF
11817 #define HAVE_STRUCT_STAT_ST_RDEV 1
11821 cat >>confdefs.h <<\_ACEOF
11822 #define HAVE_ST_RDEV 1
11828 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11829 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11830 if test "${ac_cv_struct_tm+set}" = set; then
11831 echo $ECHO_N "(cached) $ECHO_C" >&6
11833 cat >conftest.$ac_ext <<_ACEOF
11834 #line $LINENO "configure"
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 #include <sys/types.h>
11846 struct tm *tp; tp->tm_sec;
11851 rm -f conftest.$ac_objext
11852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11853 (eval $ac_compile) 2>&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } &&
11857 { ac_try='test -s conftest.$ac_objext'
11858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11859 (eval $ac_try) 2>&5
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); }; }; then
11863 ac_cv_struct_tm=time.h
11865 echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11868 ac_cv_struct_tm=sys/time.h
11870 rm -f conftest.$ac_objext conftest.$ac_ext
11872 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11873 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11874 if test $ac_cv_struct_tm = sys/time.h; then
11876 cat >>confdefs.h <<\_ACEOF
11877 #define TM_IN_SYS_TIME 1
11882 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11883 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11884 if test "${ac_cv_c_const+set}" = set; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11887 cat >conftest.$ac_ext <<_ACEOF
11888 #line $LINENO "configure"
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h. */
11898 /* FIXME: Include the comments suggested by Paul. */
11899 #ifndef __cplusplus
11900 /* Ultrix mips cc rejects this. */
11901 typedef int charset[2];
11903 /* SunOS 4.1.1 cc rejects this. */
11904 char const *const *ccp;
11906 /* NEC SVR4.0.2 mips cc rejects this. */
11907 struct point {int x, y;};
11908 static struct point const zero = {0,0};
11909 /* AIX XL C 1.02.0.0 rejects this.
11910 It does not let you subtract one const X* pointer from another in
11911 an arm of an if-expression whose if-part is not a constant
11913 const char *g = "string";
11914 ccp = &g + (g ? g-g : 0);
11915 /* HPUX 7.0 cc rejects these. */
11918 ccp = (char const *const *) p;
11919 { /* SCO 3.2v4 cc rejects this. */
11921 char const *s = 0 ? (char *) 0 : (char const *) 0;
11925 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11926 int x[] = {25, 17};
11927 const int *foo = &x[0];
11930 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11931 typedef const int *iptr;
11935 { /* AIX XL C 1.02.0.0 rejects this saying
11936 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11937 struct s { int j; const int *ap[3]; };
11938 struct s *b; b->j = 5;
11940 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11941 const int foo = 10;
11949 rm -f conftest.$ac_objext
11950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11951 (eval $ac_compile) 2>&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } &&
11955 { ac_try='test -s conftest.$ac_objext'
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11968 rm -f conftest.$ac_objext conftest.$ac_ext
11970 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11971 echo "${ECHO_T}$ac_cv_c_const" >&6
11972 if test $ac_cv_c_const = no; then
11974 cat >>confdefs.h <<\_ACEOF
11982 echo "$as_me:$LINENO: checking for char" >&5
11983 echo $ECHO_N "checking for char... $ECHO_C" >&6
11984 if test "${ac_cv_type_char+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 cat >conftest.$ac_ext <<_ACEOF
11988 #line $LINENO "configure"
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11994 $ac_includes_default
12006 rm -f conftest.$ac_objext
12007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12008 (eval $ac_compile) 2>&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } &&
12012 { ac_try='test -s conftest.$ac_objext'
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; }; then
12018 ac_cv_type_char=yes
12020 echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12025 rm -f conftest.$ac_objext conftest.$ac_ext
12027 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12028 echo "${ECHO_T}$ac_cv_type_char" >&6
12030 echo "$as_me:$LINENO: checking size of char" >&5
12031 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12032 if test "${ac_cv_sizeof_char+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 if test "$ac_cv_type_char" = yes; then
12036 # The cast to unsigned long works around a bug in the HP C Compiler
12037 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12038 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12039 # This bug is HP SR number 8606223364.
12040 if test "$cross_compiling" = yes; then
12041 # Depending upon the size, compute the lo and hi bounds.
12042 cat >conftest.$ac_ext <<_ACEOF
12043 #line $LINENO "configure"
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049 $ac_includes_default
12053 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12060 rm -f conftest.$ac_objext
12061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12062 (eval $ac_compile) 2>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } &&
12066 { ac_try='test -s conftest.$ac_objext'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; }; then
12074 cat >conftest.$ac_ext <<_ACEOF
12075 #line $LINENO "configure"
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h. */
12081 $ac_includes_default
12085 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12092 rm -f conftest.$ac_objext
12093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12094 (eval $ac_compile) 2>&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } &&
12098 { ac_try='test -s conftest.$ac_objext'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 ac_hi=$ac_mid; break
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12109 ac_lo=`expr $ac_mid + 1`
12110 if test $ac_lo -le $ac_mid; then
12114 ac_mid=`expr 2 '*' $ac_mid + 1`
12116 rm -f conftest.$ac_objext conftest.$ac_ext
12119 echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12122 cat >conftest.$ac_ext <<_ACEOF
12123 #line $LINENO "configure"
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12129 $ac_includes_default
12133 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12140 rm -f conftest.$ac_objext
12141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12142 (eval $ac_compile) 2>&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); } &&
12146 { ac_try='test -s conftest.$ac_objext'
12147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148 (eval $ac_try) 2>&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); }; }; then
12154 cat >conftest.$ac_ext <<_ACEOF
12155 #line $LINENO "configure"
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12161 $ac_includes_default
12165 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12172 rm -f conftest.$ac_objext
12173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12174 (eval $ac_compile) 2>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } &&
12178 { ac_try='test -s conftest.$ac_objext'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 ac_lo=$ac_mid; break
12186 echo "$as_me: failed program was:" >&5
12187 sed 's/^/| /' conftest.$ac_ext >&5
12189 ac_hi=`expr '(' $ac_mid ')' - 1`
12190 if test $ac_mid -le $ac_hi; then
12194 ac_mid=`expr 2 '*' $ac_mid`
12196 rm -f conftest.$ac_objext conftest.$ac_ext
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12204 rm -f conftest.$ac_objext conftest.$ac_ext
12206 rm -f conftest.$ac_objext conftest.$ac_ext
12207 # Binary search between lo and hi bounds.
12208 while test "x$ac_lo" != "x$ac_hi"; do
12209 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12210 cat >conftest.$ac_ext <<_ACEOF
12211 #line $LINENO "configure"
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12217 $ac_includes_default
12221 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12228 rm -f conftest.$ac_objext
12229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12230 (eval $ac_compile) 2>&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); } &&
12234 { ac_try='test -s conftest.$ac_objext'
12235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236 (eval $ac_try) 2>&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; }; then
12242 echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12245 ac_lo=`expr '(' $ac_mid ')' + 1`
12247 rm -f conftest.$ac_objext conftest.$ac_ext
12250 ?*) ac_cv_sizeof_char=$ac_lo;;
12251 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12252 See \`config.log' for more details." >&5
12253 echo "$as_me: error: cannot compute sizeof (char), 77
12254 See \`config.log' for more details." >&2;}
12255 { (exit 1); exit 1; }; } ;;
12258 if test "$cross_compiling" = yes; then
12259 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12260 See \`config.log' for more details." >&5
12261 echo "$as_me: error: cannot run test program while cross compiling
12262 See \`config.log' for more details." >&2;}
12263 { (exit 1); exit 1; }; }
12265 cat >conftest.$ac_ext <<_ACEOF
12266 #line $LINENO "configure"
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12272 $ac_includes_default
12273 long longval () { return (long) (sizeof (char)); }
12274 unsigned long ulongval () { return (long) (sizeof (char)); }
12276 #include <stdlib.h>
12281 FILE *f = fopen ("conftest.val", "w");
12284 if (((long) (sizeof (char))) < 0)
12286 long i = longval ();
12287 if (i != ((long) (sizeof (char))))
12289 fprintf (f, "%ld\n", i);
12293 unsigned long i = ulongval ();
12294 if (i != ((long) (sizeof (char))))
12296 fprintf (f, "%lu\n", i);
12298 exit (ferror (f) || fclose (f) != 0);
12304 rm -f conftest$ac_exeext
12305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12306 (eval $ac_link) 2>&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; }; then
12315 ac_cv_sizeof_char=`cat conftest.val`
12317 echo "$as_me: program exited with status $ac_status" >&5
12318 echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12321 ( exit $ac_status )
12322 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12323 See \`config.log' for more details." >&5
12324 echo "$as_me: error: cannot compute sizeof (char), 77
12325 See \`config.log' for more details." >&2;}
12326 { (exit 1); exit 1; }; }
12328 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12333 ac_cv_sizeof_char=0
12336 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12337 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12338 cat >>confdefs.h <<_ACEOF
12339 #define SIZEOF_CHAR $ac_cv_sizeof_char
12343 echo "$as_me:$LINENO: checking for short int" >&5
12344 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12345 if test "${ac_cv_type_short_int+set}" = set; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12348 cat >conftest.$ac_ext <<_ACEOF
12349 #line $LINENO "configure"
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h. */
12355 $ac_includes_default
12359 if ((short int *) 0)
12361 if (sizeof (short int))
12367 rm -f conftest.$ac_objext
12368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12369 (eval $ac_compile) 2>&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); } &&
12373 { ac_try='test -s conftest.$ac_objext'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; }; then
12379 ac_cv_type_short_int=yes
12381 echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12384 ac_cv_type_short_int=no
12386 rm -f conftest.$ac_objext conftest.$ac_ext
12388 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12389 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12391 echo "$as_me:$LINENO: checking size of short int" >&5
12392 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12393 if test "${ac_cv_sizeof_short_int+set}" = set; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12396 if test "$ac_cv_type_short_int" = yes; then
12397 # The cast to unsigned long works around a bug in the HP C Compiler
12398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12399 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12400 # This bug is HP SR number 8606223364.
12401 if test "$cross_compiling" = yes; then
12402 # Depending upon the size, compute the lo and hi bounds.
12403 cat >conftest.$ac_ext <<_ACEOF
12404 #line $LINENO "configure"
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12410 $ac_includes_default
12414 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12421 rm -f conftest.$ac_objext
12422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12423 (eval $ac_compile) 2>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try='test -s conftest.$ac_objext'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; }; then
12435 cat >conftest.$ac_ext <<_ACEOF
12436 #line $LINENO "configure"
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h. */
12442 $ac_includes_default
12446 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12453 rm -f conftest.$ac_objext
12454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12455 (eval $ac_compile) 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); } &&
12459 { ac_try='test -s conftest.$ac_objext'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; }; then
12465 ac_hi=$ac_mid; break
12467 echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12470 ac_lo=`expr $ac_mid + 1`
12471 if test $ac_lo -le $ac_mid; then
12475 ac_mid=`expr 2 '*' $ac_mid + 1`
12477 rm -f conftest.$ac_objext conftest.$ac_ext
12480 echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12483 cat >conftest.$ac_ext <<_ACEOF
12484 #line $LINENO "configure"
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12490 $ac_includes_default
12494 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12501 rm -f conftest.$ac_objext
12502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12503 (eval $ac_compile) 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); } &&
12507 { ac_try='test -s conftest.$ac_objext'
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; }; then
12515 cat >conftest.$ac_ext <<_ACEOF
12516 #line $LINENO "configure"
12519 cat confdefs.h >>conftest.$ac_ext
12520 cat >>conftest.$ac_ext <<_ACEOF
12521 /* end confdefs.h. */
12522 $ac_includes_default
12526 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12533 rm -f conftest.$ac_objext
12534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12535 (eval $ac_compile) 2>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
12539 { ac_try='test -s conftest.$ac_objext'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545 ac_lo=$ac_mid; break
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12550 ac_hi=`expr '(' $ac_mid ')' - 1`
12551 if test $ac_mid -le $ac_hi; then
12555 ac_mid=`expr 2 '*' $ac_mid`
12557 rm -f conftest.$ac_objext conftest.$ac_ext
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12565 rm -f conftest.$ac_objext conftest.$ac_ext
12567 rm -f conftest.$ac_objext conftest.$ac_ext
12568 # Binary search between lo and hi bounds.
12569 while test "x$ac_lo" != "x$ac_hi"; do
12570 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12571 cat >conftest.$ac_ext <<_ACEOF
12572 #line $LINENO "configure"
12575 cat confdefs.h >>conftest.$ac_ext
12576 cat >>conftest.$ac_ext <<_ACEOF
12577 /* end confdefs.h. */
12578 $ac_includes_default
12582 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12589 rm -f conftest.$ac_objext
12590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12591 (eval $ac_compile) 2>&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } &&
12595 { ac_try='test -s conftest.$ac_objext'
12596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597 (eval $ac_try) 2>&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; }; then
12603 echo "$as_me: failed program was:" >&5
12604 sed 's/^/| /' conftest.$ac_ext >&5
12606 ac_lo=`expr '(' $ac_mid ')' + 1`
12608 rm -f conftest.$ac_objext conftest.$ac_ext
12611 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12612 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12613 See \`config.log' for more details." >&5
12614 echo "$as_me: error: cannot compute sizeof (short int), 77
12615 See \`config.log' for more details." >&2;}
12616 { (exit 1); exit 1; }; } ;;
12619 if test "$cross_compiling" = yes; then
12620 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12621 See \`config.log' for more details." >&5
12622 echo "$as_me: error: cannot run test program while cross compiling
12623 See \`config.log' for more details." >&2;}
12624 { (exit 1); exit 1; }; }
12626 cat >conftest.$ac_ext <<_ACEOF
12627 #line $LINENO "configure"
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h. */
12633 $ac_includes_default
12634 long longval () { return (long) (sizeof (short int)); }
12635 unsigned long ulongval () { return (long) (sizeof (short int)); }
12637 #include <stdlib.h>
12642 FILE *f = fopen ("conftest.val", "w");
12645 if (((long) (sizeof (short int))) < 0)
12647 long i = longval ();
12648 if (i != ((long) (sizeof (short int))))
12650 fprintf (f, "%ld\n", i);
12654 unsigned long i = ulongval ();
12655 if (i != ((long) (sizeof (short int))))
12657 fprintf (f, "%lu\n", i);
12659 exit (ferror (f) || fclose (f) != 0);
12665 rm -f conftest$ac_exeext
12666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12667 (eval $ac_link) 2>&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; }; then
12676 ac_cv_sizeof_short_int=`cat conftest.val`
12678 echo "$as_me: program exited with status $ac_status" >&5
12679 echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.$ac_ext >&5
12682 ( exit $ac_status )
12683 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12684 See \`config.log' for more details." >&5
12685 echo "$as_me: error: cannot compute sizeof (short int), 77
12686 See \`config.log' for more details." >&2;}
12687 { (exit 1); exit 1; }; }
12689 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12694 ac_cv_sizeof_short_int=0
12697 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12698 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12699 cat >>confdefs.h <<_ACEOF
12700 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12704 echo "$as_me:$LINENO: checking for int" >&5
12705 echo $ECHO_N "checking for int... $ECHO_C" >&6
12706 if test "${ac_cv_type_int+set}" = set; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12709 cat >conftest.$ac_ext <<_ACEOF
12710 #line $LINENO "configure"
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h. */
12716 $ac_includes_default
12728 rm -f conftest.$ac_objext
12729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12730 (eval $ac_compile) 2>&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); } &&
12734 { ac_try='test -s conftest.$ac_objext'
12735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; }; then
12742 echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12747 rm -f conftest.$ac_objext conftest.$ac_ext
12749 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12750 echo "${ECHO_T}$ac_cv_type_int" >&6
12752 echo "$as_me:$LINENO: checking size of int" >&5
12753 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12754 if test "${ac_cv_sizeof_int+set}" = set; then
12755 echo $ECHO_N "(cached) $ECHO_C" >&6
12757 if test "$ac_cv_type_int" = yes; then
12758 # The cast to unsigned long works around a bug in the HP C Compiler
12759 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12760 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12761 # This bug is HP SR number 8606223364.
12762 if test "$cross_compiling" = yes; then
12763 # Depending upon the size, compute the lo and hi bounds.
12764 cat >conftest.$ac_ext <<_ACEOF
12765 #line $LINENO "configure"
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h. */
12771 $ac_includes_default
12775 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12782 rm -f conftest.$ac_objext
12783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12784 (eval $ac_compile) 2>&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
12788 { ac_try='test -s conftest.$ac_objext'
12789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790 (eval $ac_try) 2>&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; }; then
12796 cat >conftest.$ac_ext <<_ACEOF
12797 #line $LINENO "configure"
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12803 $ac_includes_default
12807 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12814 rm -f conftest.$ac_objext
12815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12816 (eval $ac_compile) 2>&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } &&
12820 { ac_try='test -s conftest.$ac_objext'
12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; }; then
12826 ac_hi=$ac_mid; break
12828 echo "$as_me: failed program was:" >&5
12829 sed 's/^/| /' conftest.$ac_ext >&5
12831 ac_lo=`expr $ac_mid + 1`
12832 if test $ac_lo -le $ac_mid; then
12836 ac_mid=`expr 2 '*' $ac_mid + 1`
12838 rm -f conftest.$ac_objext conftest.$ac_ext
12841 echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12844 cat >conftest.$ac_ext <<_ACEOF
12845 #line $LINENO "configure"
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12851 $ac_includes_default
12855 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12862 rm -f conftest.$ac_objext
12863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12864 (eval $ac_compile) 2>&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); } &&
12868 { ac_try='test -s conftest.$ac_objext'
12869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12870 (eval $ac_try) 2>&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); }; }; then
12876 cat >conftest.$ac_ext <<_ACEOF
12877 #line $LINENO "configure"
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h. */
12883 $ac_includes_default
12887 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12894 rm -f conftest.$ac_objext
12895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12896 (eval $ac_compile) 2>&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } &&
12900 { ac_try='test -s conftest.$ac_objext'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; }; then
12906 ac_lo=$ac_mid; break
12908 echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12911 ac_hi=`expr '(' $ac_mid ')' - 1`
12912 if test $ac_mid -le $ac_hi; then
12916 ac_mid=`expr 2 '*' $ac_mid`
12918 rm -f conftest.$ac_objext conftest.$ac_ext
12921 echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12926 rm -f conftest.$ac_objext conftest.$ac_ext
12928 rm -f conftest.$ac_objext conftest.$ac_ext
12929 # Binary search between lo and hi bounds.
12930 while test "x$ac_lo" != "x$ac_hi"; do
12931 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12932 cat >conftest.$ac_ext <<_ACEOF
12933 #line $LINENO "configure"
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h. */
12939 $ac_includes_default
12943 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12950 rm -f conftest.$ac_objext
12951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12952 (eval $ac_compile) 2>&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); } &&
12956 { ac_try='test -s conftest.$ac_objext'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12964 echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12967 ac_lo=`expr '(' $ac_mid ')' + 1`
12969 rm -f conftest.$ac_objext conftest.$ac_ext
12972 ?*) ac_cv_sizeof_int=$ac_lo;;
12973 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12974 See \`config.log' for more details." >&5
12975 echo "$as_me: error: cannot compute sizeof (int), 77
12976 See \`config.log' for more details." >&2;}
12977 { (exit 1); exit 1; }; } ;;
12980 if test "$cross_compiling" = yes; then
12981 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12982 See \`config.log' for more details." >&5
12983 echo "$as_me: error: cannot run test program while cross compiling
12984 See \`config.log' for more details." >&2;}
12985 { (exit 1); exit 1; }; }
12987 cat >conftest.$ac_ext <<_ACEOF
12988 #line $LINENO "configure"
12991 cat confdefs.h >>conftest.$ac_ext
12992 cat >>conftest.$ac_ext <<_ACEOF
12993 /* end confdefs.h. */
12994 $ac_includes_default
12995 long longval () { return (long) (sizeof (int)); }
12996 unsigned long ulongval () { return (long) (sizeof (int)); }
12998 #include <stdlib.h>
13003 FILE *f = fopen ("conftest.val", "w");
13006 if (((long) (sizeof (int))) < 0)
13008 long i = longval ();
13009 if (i != ((long) (sizeof (int))))
13011 fprintf (f, "%ld\n", i);
13015 unsigned long i = ulongval ();
13016 if (i != ((long) (sizeof (int))))
13018 fprintf (f, "%lu\n", i);
13020 exit (ferror (f) || fclose (f) != 0);
13026 rm -f conftest$ac_exeext
13027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13028 (eval $ac_link) 2>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; }; then
13037 ac_cv_sizeof_int=`cat conftest.val`
13039 echo "$as_me: program exited with status $ac_status" >&5
13040 echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13043 ( exit $ac_status )
13044 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13045 See \`config.log' for more details." >&5
13046 echo "$as_me: error: cannot compute sizeof (int), 77
13047 See \`config.log' for more details." >&2;}
13048 { (exit 1); exit 1; }; }
13050 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13058 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13059 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13060 cat >>confdefs.h <<_ACEOF
13061 #define SIZEOF_INT $ac_cv_sizeof_int
13065 echo "$as_me:$LINENO: checking for long int" >&5
13066 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13067 if test "${ac_cv_type_long_int+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 cat >conftest.$ac_ext <<_ACEOF
13071 #line $LINENO "configure"
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13077 $ac_includes_default
13081 if ((long int *) 0)
13083 if (sizeof (long int))
13089 rm -f conftest.$ac_objext
13090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13091 (eval $ac_compile) 2>&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } &&
13095 { ac_try='test -s conftest.$ac_objext'
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
13101 ac_cv_type_long_int=yes
13103 echo "$as_me: failed program was:" >&5
13104 sed 's/^/| /' conftest.$ac_ext >&5
13106 ac_cv_type_long_int=no
13108 rm -f conftest.$ac_objext conftest.$ac_ext
13110 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13111 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13113 echo "$as_me:$LINENO: checking size of long int" >&5
13114 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13115 if test "${ac_cv_sizeof_long_int+set}" = set; then
13116 echo $ECHO_N "(cached) $ECHO_C" >&6
13118 if test "$ac_cv_type_long_int" = yes; then
13119 # The cast to unsigned long works around a bug in the HP C Compiler
13120 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13121 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13122 # This bug is HP SR number 8606223364.
13123 if test "$cross_compiling" = yes; then
13124 # Depending upon the size, compute the lo and hi bounds.
13125 cat >conftest.$ac_ext <<_ACEOF
13126 #line $LINENO "configure"
13129 cat confdefs.h >>conftest.$ac_ext
13130 cat >>conftest.$ac_ext <<_ACEOF
13131 /* end confdefs.h. */
13132 $ac_includes_default
13136 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13143 rm -f conftest.$ac_objext
13144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13145 (eval $ac_compile) 2>&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
13149 { ac_try='test -s conftest.$ac_objext'
13150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151 (eval $ac_try) 2>&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; }; then
13157 cat >conftest.$ac_ext <<_ACEOF
13158 #line $LINENO "configure"
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h. */
13164 $ac_includes_default
13168 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13175 rm -f conftest.$ac_objext
13176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13177 (eval $ac_compile) 2>&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } &&
13181 { ac_try='test -s conftest.$ac_objext'
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; }; then
13187 ac_hi=$ac_mid; break
13189 echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13192 ac_lo=`expr $ac_mid + 1`
13193 if test $ac_lo -le $ac_mid; then
13197 ac_mid=`expr 2 '*' $ac_mid + 1`
13199 rm -f conftest.$ac_objext conftest.$ac_ext
13202 echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13205 cat >conftest.$ac_ext <<_ACEOF
13206 #line $LINENO "configure"
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h. */
13212 $ac_includes_default
13216 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13223 rm -f conftest.$ac_objext
13224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13225 (eval $ac_compile) 2>&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); } &&
13229 { ac_try='test -s conftest.$ac_objext'
13230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13231 (eval $ac_try) 2>&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); }; }; then
13237 cat >conftest.$ac_ext <<_ACEOF
13238 #line $LINENO "configure"
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h. */
13244 $ac_includes_default
13248 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13255 rm -f conftest.$ac_objext
13256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13257 (eval $ac_compile) 2>&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } &&
13261 { ac_try='test -s conftest.$ac_objext'
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13267 ac_lo=$ac_mid; break
13269 echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13272 ac_hi=`expr '(' $ac_mid ')' - 1`
13273 if test $ac_mid -le $ac_hi; then
13277 ac_mid=`expr 2 '*' $ac_mid`
13279 rm -f conftest.$ac_objext conftest.$ac_ext
13282 echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13287 rm -f conftest.$ac_objext conftest.$ac_ext
13289 rm -f conftest.$ac_objext conftest.$ac_ext
13290 # Binary search between lo and hi bounds.
13291 while test "x$ac_lo" != "x$ac_hi"; do
13292 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13293 cat >conftest.$ac_ext <<_ACEOF
13294 #line $LINENO "configure"
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h. */
13300 $ac_includes_default
13304 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13311 rm -f conftest.$ac_objext
13312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13313 (eval $ac_compile) 2>&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
13317 { ac_try='test -s conftest.$ac_objext'
13318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; }; then
13325 echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13328 ac_lo=`expr '(' $ac_mid ')' + 1`
13330 rm -f conftest.$ac_objext conftest.$ac_ext
13333 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13334 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13335 See \`config.log' for more details." >&5
13336 echo "$as_me: error: cannot compute sizeof (long int), 77
13337 See \`config.log' for more details." >&2;}
13338 { (exit 1); exit 1; }; } ;;
13341 if test "$cross_compiling" = yes; then
13342 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13343 See \`config.log' for more details." >&5
13344 echo "$as_me: error: cannot run test program while cross compiling
13345 See \`config.log' for more details." >&2;}
13346 { (exit 1); exit 1; }; }
13348 cat >conftest.$ac_ext <<_ACEOF
13349 #line $LINENO "configure"
13352 cat confdefs.h >>conftest.$ac_ext
13353 cat >>conftest.$ac_ext <<_ACEOF
13354 /* end confdefs.h. */
13355 $ac_includes_default
13356 long longval () { return (long) (sizeof (long int)); }
13357 unsigned long ulongval () { return (long) (sizeof (long int)); }
13359 #include <stdlib.h>
13364 FILE *f = fopen ("conftest.val", "w");
13367 if (((long) (sizeof (long int))) < 0)
13369 long i = longval ();
13370 if (i != ((long) (sizeof (long int))))
13372 fprintf (f, "%ld\n", i);
13376 unsigned long i = ulongval ();
13377 if (i != ((long) (sizeof (long int))))
13379 fprintf (f, "%lu\n", i);
13381 exit (ferror (f) || fclose (f) != 0);
13387 rm -f conftest$ac_exeext
13388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13389 (eval $ac_link) 2>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394 (eval $ac_try) 2>&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; }; then
13398 ac_cv_sizeof_long_int=`cat conftest.val`
13400 echo "$as_me: program exited with status $ac_status" >&5
13401 echo "$as_me: failed program was:" >&5
13402 sed 's/^/| /' conftest.$ac_ext >&5
13404 ( exit $ac_status )
13405 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13406 See \`config.log' for more details." >&5
13407 echo "$as_me: error: cannot compute sizeof (long int), 77
13408 See \`config.log' for more details." >&2;}
13409 { (exit 1); exit 1; }; }
13411 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13416 ac_cv_sizeof_long_int=0
13419 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13420 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13421 cat >>confdefs.h <<_ACEOF
13422 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13426 echo "$as_me:$LINENO: checking for long long int" >&5
13427 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13428 if test "${ac_cv_type_long_long_int+set}" = set; then
13429 echo $ECHO_N "(cached) $ECHO_C" >&6
13431 cat >conftest.$ac_ext <<_ACEOF
13432 #line $LINENO "configure"
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13438 $ac_includes_default
13442 if ((long long int *) 0)
13444 if (sizeof (long long int))
13450 rm -f conftest.$ac_objext
13451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13452 (eval $ac_compile) 2>&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } &&
13456 { ac_try='test -s conftest.$ac_objext'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462 ac_cv_type_long_long_int=yes
13464 echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13467 ac_cv_type_long_long_int=no
13469 rm -f conftest.$ac_objext conftest.$ac_ext
13471 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13472 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13474 echo "$as_me:$LINENO: checking size of long long int" >&5
13475 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13476 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13479 if test "$ac_cv_type_long_long_int" = yes; then
13480 # The cast to unsigned long works around a bug in the HP C Compiler
13481 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13482 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13483 # This bug is HP SR number 8606223364.
13484 if test "$cross_compiling" = yes; then
13485 # Depending upon the size, compute the lo and hi bounds.
13486 cat >conftest.$ac_ext <<_ACEOF
13487 #line $LINENO "configure"
13490 cat confdefs.h >>conftest.$ac_ext
13491 cat >>conftest.$ac_ext <<_ACEOF
13492 /* end confdefs.h. */
13493 $ac_includes_default
13497 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13504 rm -f conftest.$ac_objext
13505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13506 (eval $ac_compile) 2>&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } &&
13510 { ac_try='test -s conftest.$ac_objext'
13511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
13518 cat >conftest.$ac_ext <<_ACEOF
13519 #line $LINENO "configure"
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h. */
13525 $ac_includes_default
13529 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13536 rm -f conftest.$ac_objext
13537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13538 (eval $ac_compile) 2>&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
13542 { ac_try='test -s conftest.$ac_objext'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; }; then
13548 ac_hi=$ac_mid; break
13550 echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13553 ac_lo=`expr $ac_mid + 1`
13554 if test $ac_lo -le $ac_mid; then
13558 ac_mid=`expr 2 '*' $ac_mid + 1`
13560 rm -f conftest.$ac_objext conftest.$ac_ext
13563 echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13566 cat >conftest.$ac_ext <<_ACEOF
13567 #line $LINENO "configure"
13570 cat confdefs.h >>conftest.$ac_ext
13571 cat >>conftest.$ac_ext <<_ACEOF
13572 /* end confdefs.h. */
13573 $ac_includes_default
13577 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13584 rm -f conftest.$ac_objext
13585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13586 (eval $ac_compile) 2>&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } &&
13590 { ac_try='test -s conftest.$ac_objext'
13591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; }; then
13598 cat >conftest.$ac_ext <<_ACEOF
13599 #line $LINENO "configure"
13602 cat confdefs.h >>conftest.$ac_ext
13603 cat >>conftest.$ac_ext <<_ACEOF
13604 /* end confdefs.h. */
13605 $ac_includes_default
13609 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13616 rm -f conftest.$ac_objext
13617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13618 (eval $ac_compile) 2>&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } &&
13622 { ac_try='test -s conftest.$ac_objext'
13623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13624 (eval $ac_try) 2>&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }; }; then
13628 ac_lo=$ac_mid; break
13630 echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.$ac_ext >&5
13633 ac_hi=`expr '(' $ac_mid ')' - 1`
13634 if test $ac_mid -le $ac_hi; then
13638 ac_mid=`expr 2 '*' $ac_mid`
13640 rm -f conftest.$ac_objext conftest.$ac_ext
13643 echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13648 rm -f conftest.$ac_objext conftest.$ac_ext
13650 rm -f conftest.$ac_objext conftest.$ac_ext
13651 # Binary search between lo and hi bounds.
13652 while test "x$ac_lo" != "x$ac_hi"; do
13653 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13654 cat >conftest.$ac_ext <<_ACEOF
13655 #line $LINENO "configure"
13658 cat confdefs.h >>conftest.$ac_ext
13659 cat >>conftest.$ac_ext <<_ACEOF
13660 /* end confdefs.h. */
13661 $ac_includes_default
13665 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13672 rm -f conftest.$ac_objext
13673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13674 (eval $ac_compile) 2>&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); } &&
13678 { ac_try='test -s conftest.$ac_objext'
13679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; }; then
13686 echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13689 ac_lo=`expr '(' $ac_mid ')' + 1`
13691 rm -f conftest.$ac_objext conftest.$ac_ext
13694 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13695 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13696 See \`config.log' for more details." >&5
13697 echo "$as_me: error: cannot compute sizeof (long long int), 77
13698 See \`config.log' for more details." >&2;}
13699 { (exit 1); exit 1; }; } ;;
13702 if test "$cross_compiling" = yes; then
13703 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13704 See \`config.log' for more details." >&5
13705 echo "$as_me: error: cannot run test program while cross compiling
13706 See \`config.log' for more details." >&2;}
13707 { (exit 1); exit 1; }; }
13709 cat >conftest.$ac_ext <<_ACEOF
13710 #line $LINENO "configure"
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13716 $ac_includes_default
13717 long longval () { return (long) (sizeof (long long int)); }
13718 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13720 #include <stdlib.h>
13725 FILE *f = fopen ("conftest.val", "w");
13728 if (((long) (sizeof (long long int))) < 0)
13730 long i = longval ();
13731 if (i != ((long) (sizeof (long long int))))
13733 fprintf (f, "%ld\n", i);
13737 unsigned long i = ulongval ();
13738 if (i != ((long) (sizeof (long long int))))
13740 fprintf (f, "%lu\n", i);
13742 exit (ferror (f) || fclose (f) != 0);
13748 rm -f conftest$ac_exeext
13749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13750 (eval $ac_link) 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755 (eval $ac_try) 2>&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; }; then
13759 ac_cv_sizeof_long_long_int=`cat conftest.val`
13761 echo "$as_me: program exited with status $ac_status" >&5
13762 echo "$as_me: failed program was:" >&5
13763 sed 's/^/| /' conftest.$ac_ext >&5
13765 ( exit $ac_status )
13766 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13767 See \`config.log' for more details." >&5
13768 echo "$as_me: error: cannot compute sizeof (long long int), 77
13769 See \`config.log' for more details." >&2;}
13770 { (exit 1); exit 1; }; }
13772 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13777 ac_cv_sizeof_long_long_int=0
13780 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13781 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13782 cat >>confdefs.h <<_ACEOF
13783 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13787 echo "$as_me:$LINENO: checking for int *" >&5
13788 echo $ECHO_N "checking for int *... $ECHO_C" >&6
13789 if test "${ac_cv_type_int_p+set}" = set; then
13790 echo $ECHO_N "(cached) $ECHO_C" >&6
13792 cat >conftest.$ac_ext <<_ACEOF
13793 #line $LINENO "configure"
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13799 $ac_includes_default
13805 if (sizeof (int *))
13811 rm -f conftest.$ac_objext
13812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13813 (eval $ac_compile) 2>&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); } &&
13817 { ac_try='test -s conftest.$ac_objext'
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }; then
13823 ac_cv_type_int_p=yes
13825 echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13828 ac_cv_type_int_p=no
13830 rm -f conftest.$ac_objext conftest.$ac_ext
13832 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13833 echo "${ECHO_T}$ac_cv_type_int_p" >&6
13835 echo "$as_me:$LINENO: checking size of int *" >&5
13836 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13837 if test "${ac_cv_sizeof_int_p+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
13840 if test "$ac_cv_type_int_p" = yes; then
13841 # The cast to unsigned long works around a bug in the HP C Compiler
13842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13844 # This bug is HP SR number 8606223364.
13845 if test "$cross_compiling" = yes; then
13846 # Depending upon the size, compute the lo and hi bounds.
13847 cat >conftest.$ac_ext <<_ACEOF
13848 #line $LINENO "configure"
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13854 $ac_includes_default
13858 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13865 rm -f conftest.$ac_objext
13866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13867 (eval $ac_compile) 2>&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } &&
13871 { ac_try='test -s conftest.$ac_objext'
13872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873 (eval $ac_try) 2>&5
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); }; }; then
13879 cat >conftest.$ac_ext <<_ACEOF
13880 #line $LINENO "configure"
13883 cat confdefs.h >>conftest.$ac_ext
13884 cat >>conftest.$ac_ext <<_ACEOF
13885 /* end confdefs.h. */
13886 $ac_includes_default
13890 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13897 rm -f conftest.$ac_objext
13898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13899 (eval $ac_compile) 2>&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); } &&
13903 { ac_try='test -s conftest.$ac_objext'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }; then
13909 ac_hi=$ac_mid; break
13911 echo "$as_me: failed program was:" >&5
13912 sed 's/^/| /' conftest.$ac_ext >&5
13914 ac_lo=`expr $ac_mid + 1`
13915 if test $ac_lo -le $ac_mid; then
13919 ac_mid=`expr 2 '*' $ac_mid + 1`
13921 rm -f conftest.$ac_objext conftest.$ac_ext
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13927 cat >conftest.$ac_ext <<_ACEOF
13928 #line $LINENO "configure"
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h. */
13934 $ac_includes_default
13938 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13945 rm -f conftest.$ac_objext
13946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13947 (eval $ac_compile) 2>&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } &&
13951 { ac_try='test -s conftest.$ac_objext'
13952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953 (eval $ac_try) 2>&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; }; then
13959 cat >conftest.$ac_ext <<_ACEOF
13960 #line $LINENO "configure"
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13966 $ac_includes_default
13970 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13977 rm -f conftest.$ac_objext
13978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13979 (eval $ac_compile) 2>&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); } &&
13983 { ac_try='test -s conftest.$ac_objext'
13984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985 (eval $ac_try) 2>&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }; }; then
13989 ac_lo=$ac_mid; break
13991 echo "$as_me: failed program was:" >&5
13992 sed 's/^/| /' conftest.$ac_ext >&5
13994 ac_hi=`expr '(' $ac_mid ')' - 1`
13995 if test $ac_mid -le $ac_hi; then
13999 ac_mid=`expr 2 '*' $ac_mid`
14001 rm -f conftest.$ac_objext conftest.$ac_ext
14004 echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.$ac_ext >&5
14009 rm -f conftest.$ac_objext conftest.$ac_ext
14011 rm -f conftest.$ac_objext conftest.$ac_ext
14012 # Binary search between lo and hi bounds.
14013 while test "x$ac_lo" != "x$ac_hi"; do
14014 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14015 cat >conftest.$ac_ext <<_ACEOF
14016 #line $LINENO "configure"
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h. */
14022 $ac_includes_default
14026 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14033 rm -f conftest.$ac_objext
14034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14035 (eval $ac_compile) 2>&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } &&
14039 { ac_try='test -s conftest.$ac_objext'
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; }; then
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14050 ac_lo=`expr '(' $ac_mid ')' + 1`
14052 rm -f conftest.$ac_objext conftest.$ac_ext
14055 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14056 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14057 See \`config.log' for more details." >&5
14058 echo "$as_me: error: cannot compute sizeof (int *), 77
14059 See \`config.log' for more details." >&2;}
14060 { (exit 1); exit 1; }; } ;;
14063 if test "$cross_compiling" = yes; then
14064 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14065 See \`config.log' for more details." >&5
14066 echo "$as_me: error: cannot run test program while cross compiling
14067 See \`config.log' for more details." >&2;}
14068 { (exit 1); exit 1; }; }
14070 cat >conftest.$ac_ext <<_ACEOF
14071 #line $LINENO "configure"
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h. */
14077 $ac_includes_default
14078 long longval () { return (long) (sizeof (int *)); }
14079 unsigned long ulongval () { return (long) (sizeof (int *)); }
14081 #include <stdlib.h>
14086 FILE *f = fopen ("conftest.val", "w");
14089 if (((long) (sizeof (int *))) < 0)
14091 long i = longval ();
14092 if (i != ((long) (sizeof (int *))))
14094 fprintf (f, "%ld\n", i);
14098 unsigned long i = ulongval ();
14099 if (i != ((long) (sizeof (int *))))
14101 fprintf (f, "%lu\n", i);
14103 exit (ferror (f) || fclose (f) != 0);
14109 rm -f conftest$ac_exeext
14110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14111 (eval $ac_link) 2>&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; }; then
14120 ac_cv_sizeof_int_p=`cat conftest.val`
14122 echo "$as_me: program exited with status $ac_status" >&5
14123 echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.$ac_ext >&5
14126 ( exit $ac_status )
14127 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14128 See \`config.log' for more details." >&5
14129 echo "$as_me: error: cannot compute sizeof (int *), 77
14130 See \`config.log' for more details." >&2;}
14131 { (exit 1); exit 1; }; }
14133 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14138 ac_cv_sizeof_int_p=0
14141 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14142 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14143 cat >>confdefs.h <<_ACEOF
14144 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14149 # Check for sys/types.h types
14150 echo "$as_me:$LINENO: checking for u_int type" >&5
14151 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14152 if test "${ac_cv_have_u_int+set}" = set; then
14153 echo $ECHO_N "(cached) $ECHO_C" >&6
14156 cat >conftest.$ac_ext <<_ACEOF
14157 #line $LINENO "configure"
14160 cat confdefs.h >>conftest.$ac_ext
14161 cat >>conftest.$ac_ext <<_ACEOF
14162 /* end confdefs.h. */
14163 #include <sys/types.h>
14172 rm -f conftest.$ac_objext
14173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14174 (eval $ac_compile) 2>&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } &&
14178 { ac_try='test -s conftest.$ac_objext'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; }; then
14184 ac_cv_have_u_int="yes"
14186 echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14189 ac_cv_have_u_int="no"
14192 rm -f conftest.$ac_objext conftest.$ac_ext
14195 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14196 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14197 if test "x$ac_cv_have_u_int" = "xyes" ; then
14198 cat >>confdefs.h <<\_ACEOF
14199 #define HAVE_U_INT 1
14205 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14206 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14207 if test "${ac_cv_have_intmax_t+set}" = set; then
14208 echo $ECHO_N "(cached) $ECHO_C" >&6
14211 cat >conftest.$ac_ext <<_ACEOF
14212 #line $LINENO "configure"
14215 cat confdefs.h >>conftest.$ac_ext
14216 cat >>conftest.$ac_ext <<_ACEOF
14217 /* end confdefs.h. */
14218 #include <sys/types.h>
14227 rm -f conftest.$ac_objext
14228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14229 (eval $ac_compile) 2>&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); } &&
14233 { ac_try='test -s conftest.$ac_objext'
14234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235 (eval $ac_try) 2>&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); }; }; then
14239 ac_cv_have_intmax_t="yes"
14241 echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.$ac_ext >&5
14245 cat >conftest.$ac_ext <<_ACEOF
14246 #line $LINENO "configure"
14249 cat confdefs.h >>conftest.$ac_ext
14250 cat >>conftest.$ac_ext <<_ACEOF
14251 /* end confdefs.h. */
14252 #include <stdint.h>
14261 rm -f conftest.$ac_objext
14262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14263 (eval $ac_compile) 2>&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } &&
14267 { ac_try='test -s conftest.$ac_objext'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; }; then
14273 ac_cv_have_intmax_t="yes"
14275 echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.$ac_ext >&5
14278 ac_cv_have_intmax_t="no"
14281 rm -f conftest.$ac_objext conftest.$ac_ext
14285 rm -f conftest.$ac_objext conftest.$ac_ext
14289 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14290 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14291 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14292 cat >>confdefs.h <<\_ACEOF
14293 #define HAVE_INTMAX_T 1
14300 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14301 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14302 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 cat >conftest.$ac_ext <<_ACEOF
14307 #line $LINENO "configure"
14310 cat confdefs.h >>conftest.$ac_ext
14311 cat >>conftest.$ac_ext <<_ACEOF
14312 /* end confdefs.h. */
14313 #include <sys/types.h>
14317 u_intmax_t a; a = 1;
14322 rm -f conftest.$ac_objext
14323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14324 (eval $ac_compile) 2>&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -s conftest.$ac_objext'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14334 ac_cv_have_u_intmax_t="yes"
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14340 cat >conftest.$ac_ext <<_ACEOF
14341 #line $LINENO "configure"
14344 cat confdefs.h >>conftest.$ac_ext
14345 cat >>conftest.$ac_ext <<_ACEOF
14346 /* end confdefs.h. */
14347 #include <stdint.h>
14351 u_intmax_t a; a = 1;
14356 rm -f conftest.$ac_objext
14357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14358 (eval $ac_compile) 2>&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } &&
14362 { ac_try='test -s conftest.$ac_objext'
14363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364 (eval $ac_try) 2>&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; }; then
14368 ac_cv_have_u_intmax_t="yes"
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14373 ac_cv_have_u_intmax_t="no"
14376 rm -f conftest.$ac_objext conftest.$ac_ext
14380 rm -f conftest.$ac_objext conftest.$ac_ext
14383 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14384 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14385 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14386 cat >>confdefs.h <<\_ACEOF
14387 #define HAVE_U_INTMAX_T 1
14394 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14395 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14396 if test "${ac_cv_have_intxx_t+set}" = set; then
14397 echo $ECHO_N "(cached) $ECHO_C" >&6
14400 cat >conftest.$ac_ext <<_ACEOF
14401 #line $LINENO "configure"
14404 cat confdefs.h >>conftest.$ac_ext
14405 cat >>conftest.$ac_ext <<_ACEOF
14406 /* end confdefs.h. */
14407 #include <sys/types.h>
14411 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14416 rm -f conftest.$ac_objext
14417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14418 (eval $ac_compile) 2>&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); } &&
14422 { ac_try='test -s conftest.$ac_objext'
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; }; then
14428 ac_cv_have_intxx_t="yes"
14430 echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.$ac_ext >&5
14433 ac_cv_have_intxx_t="no"
14436 rm -f conftest.$ac_objext conftest.$ac_ext
14439 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14440 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14441 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14442 cat >>confdefs.h <<\_ACEOF
14443 #define HAVE_INTXX_T 1
14449 echo "$as_me:$LINENO: checking for int64_t type" >&5
14450 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14451 if test "${ac_cv_have_int64_t+set}" = set; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14455 cat >conftest.$ac_ext <<_ACEOF
14456 #line $LINENO "configure"
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h. */
14462 #include <sys/types.h>
14471 rm -f conftest.$ac_objext
14472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14473 (eval $ac_compile) 2>&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); } &&
14477 { ac_try='test -s conftest.$ac_objext'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; }; then
14483 ac_cv_have_int64_t="yes"
14485 echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.$ac_ext >&5
14488 ac_cv_have_int64_t="no"
14491 rm -f conftest.$ac_objext conftest.$ac_ext
14494 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14495 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14496 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14497 cat >>confdefs.h <<\_ACEOF
14498 #define HAVE_INT64_T 1
14504 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14505 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14506 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14510 cat >conftest.$ac_ext <<_ACEOF
14511 #line $LINENO "configure"
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h. */
14517 #include <sys/types.h>
14521 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14526 rm -f conftest.$ac_objext
14527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14528 (eval $ac_compile) 2>&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
14532 { ac_try='test -s conftest.$ac_objext'
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; }; then
14538 ac_cv_have_u_intxx_t="yes"
14540 echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14543 ac_cv_have_u_intxx_t="no"
14546 rm -f conftest.$ac_objext conftest.$ac_ext
14549 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14550 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14551 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14552 cat >>confdefs.h <<\_ACEOF
14553 #define HAVE_U_INTXX_T 1
14559 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14560 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14561 if test "${ac_cv_have_u_int64_t+set}" = set; then
14562 echo $ECHO_N "(cached) $ECHO_C" >&6
14565 cat >conftest.$ac_ext <<_ACEOF
14566 #line $LINENO "configure"
14569 cat confdefs.h >>conftest.$ac_ext
14570 cat >>conftest.$ac_ext <<_ACEOF
14571 /* end confdefs.h. */
14572 #include <sys/types.h>
14576 u_int64_t a; a = 1;
14581 rm -f conftest.$ac_objext
14582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14583 (eval $ac_compile) 2>&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } &&
14587 { ac_try='test -s conftest.$ac_objext'
14588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14589 (eval $ac_try) 2>&5
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); }; }; then
14593 ac_cv_have_u_int64_t="yes"
14595 echo "$as_me: failed program was:" >&5
14596 sed 's/^/| /' conftest.$ac_ext >&5
14598 ac_cv_have_u_int64_t="no"
14601 rm -f conftest.$ac_objext conftest.$ac_ext
14604 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14605 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14606 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14607 cat >>confdefs.h <<\_ACEOF
14608 #define HAVE_U_INT64_T 1
14614 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14615 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14617 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14618 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14619 cat >conftest.$ac_ext <<_ACEOF
14620 #line $LINENO "configure"
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h. */
14626 #include <sys/bitypes.h>
14630 int8_t a; int16_t b; int32_t c;
14631 u_int8_t e; u_int16_t f; u_int32_t g;
14632 a = b = c = e = f = g = 1;
14637 rm -f conftest.$ac_objext
14638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14639 (eval $ac_compile) 2>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); } &&
14643 { ac_try='test -s conftest.$ac_objext'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }; then
14649 cat >>confdefs.h <<\_ACEOF
14650 #define HAVE_U_INTXX_T 1
14653 cat >>confdefs.h <<\_ACEOF
14654 #define HAVE_INTXX_T 1
14657 cat >>confdefs.h <<\_ACEOF
14658 #define HAVE_SYS_BITYPES_H 1
14661 echo "$as_me:$LINENO: result: yes" >&5
14662 echo "${ECHO_T}yes" >&6
14664 echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14667 echo "$as_me:$LINENO: result: no" >&5
14668 echo "${ECHO_T}no" >&6
14671 rm -f conftest.$ac_objext conftest.$ac_ext
14674 if test -z "$have_u_intxx_t" ; then
14675 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14676 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14677 if test "${ac_cv_have_uintxx_t+set}" = set; then
14678 echo $ECHO_N "(cached) $ECHO_C" >&6
14681 cat >conftest.$ac_ext <<_ACEOF
14682 #line $LINENO "configure"
14685 cat confdefs.h >>conftest.$ac_ext
14686 cat >>conftest.$ac_ext <<_ACEOF
14687 /* end confdefs.h. */
14688 #include <sys/types.h>
14692 uint8_t a; uint16_t b;
14693 uint32_t c; a = b = c = 1;
14698 rm -f conftest.$ac_objext
14699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14700 (eval $ac_compile) 2>&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } &&
14704 { ac_try='test -s conftest.$ac_objext'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; }; then
14710 ac_cv_have_uintxx_t="yes"
14712 echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14715 ac_cv_have_uintxx_t="no"
14718 rm -f conftest.$ac_objext conftest.$ac_ext
14721 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14722 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14723 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14724 cat >>confdefs.h <<\_ACEOF
14725 #define HAVE_UINTXX_T 1
14761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14762 echo "$as_me:$LINENO: checking for $ac_func" >&5
14763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14764 if eval "test \"\${$as_ac_var+set}\" = set"; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14767 cat >conftest.$ac_ext <<_ACEOF
14768 #line $LINENO "configure"
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h. */
14774 /* System header to define __stub macros and hopefully few prototypes,
14775 which can conflict with char $ac_func (); below.
14776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14777 <limits.h> exists even on freestanding compilers. */
14779 # include <limits.h>
14781 # include <assert.h>
14783 /* Override any gcc2 internal prototype to avoid an error. */
14788 /* We use char because int might match the return type of a gcc2
14789 builtin and then its argument prototype would still apply. */
14791 /* The GNU C library defines this for functions which it implements
14792 to always fail with ENOSYS. Some functions are actually named
14793 something starting with __ and the normal name is an alias. */
14794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14797 char (*f) () = $ac_func;
14806 return f != $ac_func;
14811 rm -f conftest.$ac_objext conftest$ac_exeext
14812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14813 (eval $ac_link) 2>&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); } &&
14817 { ac_try='test -s conftest$ac_exeext'
14818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819 (eval $ac_try) 2>&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; }; then
14823 eval "$as_ac_var=yes"
14825 echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14828 eval "$as_ac_var=no"
14830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14834 if test `eval echo '${'$as_ac_var'}'` = yes; then
14835 cat >>confdefs.h <<_ACEOF
14836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14840 echo 'configure: cannot find needed function.'; exit 1
14847 for ac_func in fchdir
14849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14850 echo "$as_me:$LINENO: checking for $ac_func" >&5
14851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14852 if eval "test \"\${$as_ac_var+set}\" = set"; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14855 cat >conftest.$ac_ext <<_ACEOF
14856 #line $LINENO "configure"
14859 cat confdefs.h >>conftest.$ac_ext
14860 cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h. */
14862 /* System header to define __stub macros and hopefully few prototypes,
14863 which can conflict with char $ac_func (); below.
14864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14865 <limits.h> exists even on freestanding compilers. */
14867 # include <limits.h>
14869 # include <assert.h>
14871 /* Override any gcc2 internal prototype to avoid an error. */
14876 /* We use char because int might match the return type of a gcc2
14877 builtin and then its argument prototype would still apply. */
14879 /* The GNU C library defines this for functions which it implements
14880 to always fail with ENOSYS. Some functions are actually named
14881 something starting with __ and the normal name is an alias. */
14882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14885 char (*f) () = $ac_func;
14894 return f != $ac_func;
14899 rm -f conftest.$ac_objext conftest$ac_exeext
14900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14901 (eval $ac_link) 2>&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); } &&
14905 { ac_try='test -s conftest$ac_exeext'
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; }; then
14911 eval "$as_ac_var=yes"
14913 echo "$as_me: failed program was:" >&5
14914 sed 's/^/| /' conftest.$ac_ext >&5
14916 eval "$as_ac_var=no"
14918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14922 if test `eval echo '${'$as_ac_var'}'` = yes; then
14923 cat >>confdefs.h <<_ACEOF
14924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14926 cat >>confdefs.h <<\_ACEOF
14927 #define HAVE_FCHDIR 1
14934 for ac_func in strtoll
14936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14937 echo "$as_me:$LINENO: checking for $ac_func" >&5
14938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14939 if eval "test \"\${$as_ac_var+set}\" = set"; then
14940 echo $ECHO_N "(cached) $ECHO_C" >&6
14942 cat >conftest.$ac_ext <<_ACEOF
14943 #line $LINENO "configure"
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h. */
14949 /* System header to define __stub macros and hopefully few prototypes,
14950 which can conflict with char $ac_func (); below.
14951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14952 <limits.h> exists even on freestanding compilers. */
14954 # include <limits.h>
14956 # include <assert.h>
14958 /* Override any gcc2 internal prototype to avoid an error. */
14963 /* We use char because int might match the return type of a gcc2
14964 builtin and then its argument prototype would still apply. */
14966 /* The GNU C library defines this for functions which it implements
14967 to always fail with ENOSYS. Some functions are actually named
14968 something starting with __ and the normal name is an alias. */
14969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14972 char (*f) () = $ac_func;
14981 return f != $ac_func;
14986 rm -f conftest.$ac_objext conftest$ac_exeext
14987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14988 (eval $ac_link) 2>&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } &&
14992 { ac_try='test -s conftest$ac_exeext'
14993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994 (eval $ac_try) 2>&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; }; then
14998 eval "$as_ac_var=yes"
15000 echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15003 eval "$as_ac_var=no"
15005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15009 if test `eval echo '${'$as_ac_var'}'` = yes; then
15010 cat >>confdefs.h <<_ACEOF
15011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15013 cat >>confdefs.h <<\_ACEOF
15014 #define HAVE_STRTOLL 1
15022 for ac_func in chflags
15024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15025 echo "$as_me:$LINENO: checking for $ac_func" >&5
15026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15027 if eval "test \"\${$as_ac_var+set}\" = set"; then
15028 echo $ECHO_N "(cached) $ECHO_C" >&6
15030 cat >conftest.$ac_ext <<_ACEOF
15031 #line $LINENO "configure"
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h. */
15037 /* System header to define __stub macros and hopefully few prototypes,
15038 which can conflict with char $ac_func (); below.
15039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15040 <limits.h> exists even on freestanding compilers. */
15042 # include <limits.h>
15044 # include <assert.h>
15046 /* Override any gcc2 internal prototype to avoid an error. */
15051 /* We use char because int might match the return type of a gcc2
15052 builtin and then its argument prototype would still apply. */
15054 /* The GNU C library defines this for functions which it implements
15055 to always fail with ENOSYS. Some functions are actually named
15056 something starting with __ and the normal name is an alias. */
15057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15060 char (*f) () = $ac_func;
15069 return f != $ac_func;
15074 rm -f conftest.$ac_objext conftest$ac_exeext
15075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15076 (eval $ac_link) 2>&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } &&
15080 { ac_try='test -s conftest$ac_exeext'
15081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082 (eval $ac_try) 2>&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }; }; then
15086 eval "$as_ac_var=yes"
15088 echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15091 eval "$as_ac_var=no"
15093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15096 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15097 if test `eval echo '${'$as_ac_var'}'` = yes; then
15098 cat >>confdefs.h <<_ACEOF
15099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15110 for ac_func in snprintf vsnprintf gethostid getdomainname
15112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15113 echo "$as_me:$LINENO: checking for $ac_func" >&5
15114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15115 if eval "test \"\${$as_ac_var+set}\" = set"; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
15118 cat >conftest.$ac_ext <<_ACEOF
15119 #line $LINENO "configure"
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h. */
15125 /* System header to define __stub macros and hopefully few prototypes,
15126 which can conflict with char $ac_func (); below.
15127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15128 <limits.h> exists even on freestanding compilers. */
15130 # include <limits.h>
15132 # include <assert.h>
15134 /* Override any gcc2 internal prototype to avoid an error. */
15139 /* We use char because int might match the return type of a gcc2
15140 builtin and then its argument prototype would still apply. */
15142 /* The GNU C library defines this for functions which it implements
15143 to always fail with ENOSYS. Some functions are actually named
15144 something starting with __ and the normal name is an alias. */
15145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15148 char (*f) () = $ac_func;
15157 return f != $ac_func;
15162 rm -f conftest.$ac_objext conftest$ac_exeext
15163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15164 (eval $ac_link) 2>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } &&
15168 { ac_try='test -s conftest$ac_exeext'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15174 eval "$as_ac_var=yes"
15176 echo "$as_me: failed program was:" >&5
15177 sed 's/^/| /' conftest.$ac_ext >&5
15179 eval "$as_ac_var=no"
15181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15185 if test `eval echo '${'$as_ac_var'}'` = yes; then
15186 cat >>confdefs.h <<_ACEOF
15187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15198 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15201 echo "$as_me:$LINENO: checking for $ac_func" >&5
15202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15203 if eval "test \"\${$as_ac_var+set}\" = set"; then
15204 echo $ECHO_N "(cached) $ECHO_C" >&6
15206 cat >conftest.$ac_ext <<_ACEOF
15207 #line $LINENO "configure"
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 /* System header to define __stub macros and hopefully few prototypes,
15214 which can conflict with char $ac_func (); below.
15215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15216 <limits.h> exists even on freestanding compilers. */
15218 # include <limits.h>
15220 # include <assert.h>
15222 /* Override any gcc2 internal prototype to avoid an error. */
15227 /* We use char because int might match the return type of a gcc2
15228 builtin and then its argument prototype would still apply. */
15230 /* The GNU C library defines this for functions which it implements
15231 to always fail with ENOSYS. Some functions are actually named
15232 something starting with __ and the normal name is an alias. */
15233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15236 char (*f) () = $ac_func;
15245 return f != $ac_func;
15250 rm -f conftest.$ac_objext conftest$ac_exeext
15251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15252 (eval $ac_link) 2>&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } &&
15256 { ac_try='test -s conftest$ac_exeext'
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; }; then
15262 eval "$as_ac_var=yes"
15264 echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.$ac_ext >&5
15267 eval "$as_ac_var=no"
15269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15273 if test `eval echo '${'$as_ac_var'}'` = yes; then
15274 cat >>confdefs.h <<_ACEOF
15275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15282 # If resolver functions are not in libc check for -lnsl or -lresolv.
15283 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15284 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15285 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15288 cat >conftest.$ac_ext <<_ACEOF
15289 #line $LINENO "configure"
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15295 /* System header to define __stub macros and hopefully few prototypes,
15296 which can conflict with char gethostbyname_r (); below.
15297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15298 <limits.h> exists even on freestanding compilers. */
15300 # include <limits.h>
15302 # include <assert.h>
15304 /* Override any gcc2 internal prototype to avoid an error. */
15309 /* We use char because int might match the return type of a gcc2
15310 builtin and then its argument prototype would still apply. */
15311 char gethostbyname_r ();
15312 /* The GNU C library defines this for functions which it implements
15313 to always fail with ENOSYS. Some functions are actually named
15314 something starting with __ and the normal name is an alias. */
15315 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15318 char (*f) () = gethostbyname_r;
15327 return f != gethostbyname_r;
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15334 (eval $ac_link) 2>&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
15338 { ac_try='test -s conftest$ac_exeext'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; }; then
15344 ac_cv_func_gethostbyname_r=yes
15346 echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15349 ac_cv_func_gethostbyname_r=no
15351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15353 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15354 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15355 if test $ac_cv_func_gethostbyname_r = yes; then
15356 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15357 echo "${ECHO_T}using libc's resolver" >&6
15360 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15361 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15362 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15363 echo $ECHO_N "(cached) $ECHO_C" >&6
15365 ac_check_lib_save_LIBS=$LIBS
15367 cat >conftest.$ac_ext <<_ACEOF
15368 #line $LINENO "configure"
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h. */
15375 /* Override any gcc2 internal prototype to avoid an error. */
15379 /* We use char because int might match the return type of a gcc2
15380 builtin and then its argument prototype would still apply. */
15381 char gethostbyname_r ();
15385 gethostbyname_r ();
15390 rm -f conftest.$ac_objext conftest$ac_exeext
15391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15392 (eval $ac_link) 2>&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); } &&
15396 { ac_try='test -s conftest$ac_exeext'
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; }; then
15402 ac_cv_lib_nsl_gethostbyname_r=yes
15404 echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15407 ac_cv_lib_nsl_gethostbyname_r=no
15409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15410 LIBS=$ac_check_lib_save_LIBS
15412 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15413 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15414 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15415 cat >>confdefs.h <<_ACEOF
15416 #define HAVE_LIBNSL 1
15424 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15425 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15426 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
15429 ac_check_lib_save_LIBS=$LIBS
15430 LIBS="-lresolv $LIBS"
15431 cat >conftest.$ac_ext <<_ACEOF
15432 #line $LINENO "configure"
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h. */
15439 /* Override any gcc2 internal prototype to avoid an error. */
15443 /* We use char because int might match the return type of a gcc2
15444 builtin and then its argument prototype would still apply. */
15445 char gethostbyname_r ();
15449 gethostbyname_r ();
15454 rm -f conftest.$ac_objext conftest$ac_exeext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15456 (eval $ac_link) 2>&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } &&
15460 { ac_try='test -s conftest$ac_exeext'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; }; then
15466 ac_cv_lib_resolv_gethostbyname_r=yes
15468 echo "$as_me: failed program was:" >&5
15469 sed 's/^/| /' conftest.$ac_ext >&5
15471 ac_cv_lib_resolv_gethostbyname_r=no
15473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15474 LIBS=$ac_check_lib_save_LIBS
15476 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15477 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15478 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15479 cat >>confdefs.h <<_ACEOF
15480 #define HAVE_LIBRESOLV 1
15483 LIBS="-lresolv $LIBS"
15491 # Find where sockets are (especially for Solaris)
15492 echo "$as_me:$LINENO: checking for socket" >&5
15493 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15494 if test "${ac_cv_func_socket+set}" = set; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15497 cat >conftest.$ac_ext <<_ACEOF
15498 #line $LINENO "configure"
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h. */
15504 /* System header to define __stub macros and hopefully few prototypes,
15505 which can conflict with char socket (); below.
15506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15507 <limits.h> exists even on freestanding compilers. */
15509 # include <limits.h>
15511 # include <assert.h>
15513 /* Override any gcc2 internal prototype to avoid an error. */
15518 /* We use char because int might match the return type of a gcc2
15519 builtin and then its argument prototype would still apply. */
15521 /* The GNU C library defines this for functions which it implements
15522 to always fail with ENOSYS. Some functions are actually named
15523 something starting with __ and the normal name is an alias. */
15524 #if defined (__stub_socket) || defined (__stub___socket)
15527 char (*f) () = socket;
15536 return f != socket;
15541 rm -f conftest.$ac_objext conftest$ac_exeext
15542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15543 (eval $ac_link) 2>&5
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); } &&
15547 { ac_try='test -s conftest$ac_exeext'
15548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549 (eval $ac_try) 2>&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; }; then
15553 ac_cv_func_socket=yes
15555 echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15558 ac_cv_func_socket=no
15560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15562 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15563 echo "${ECHO_T}$ac_cv_func_socket" >&6
15564 if test $ac_cv_func_socket = yes; then
15565 echo "$as_me:$LINENO: result: using libc's socket" >&5
15566 echo "${ECHO_T}using libc's socket" >&6
15569 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15570 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15571 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15574 ac_check_lib_save_LIBS=$LIBS
15575 LIBS="-lxnet $LIBS"
15576 cat >conftest.$ac_ext <<_ACEOF
15577 #line $LINENO "configure"
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15584 /* Override any gcc2 internal prototype to avoid an error. */
15588 /* We use char because int might match the return type of a gcc2
15589 builtin and then its argument prototype would still apply. */
15599 rm -f conftest.$ac_objext conftest$ac_exeext
15600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15601 (eval $ac_link) 2>&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); } &&
15605 { ac_try='test -s conftest$ac_exeext'
15606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
15611 ac_cv_lib_xnet_socket=yes
15613 echo "$as_me: failed program was:" >&5
15614 sed 's/^/| /' conftest.$ac_ext >&5
15616 ac_cv_lib_xnet_socket=no
15618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15619 LIBS=$ac_check_lib_save_LIBS
15621 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15622 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15623 if test $ac_cv_lib_xnet_socket = yes; then
15624 cat >>confdefs.h <<_ACEOF
15625 #define HAVE_LIBXNET 1
15628 LIBS="-lxnet $LIBS"
15633 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15634 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15635 if test "${ac_cv_lib_socket_socket+set}" = set; then
15636 echo $ECHO_N "(cached) $ECHO_C" >&6
15638 ac_check_lib_save_LIBS=$LIBS
15639 LIBS="-lsocket $LIBS"
15640 cat >conftest.$ac_ext <<_ACEOF
15641 #line $LINENO "configure"
15644 cat confdefs.h >>conftest.$ac_ext
15645 cat >>conftest.$ac_ext <<_ACEOF
15646 /* end confdefs.h. */
15648 /* Override any gcc2 internal prototype to avoid an error. */
15652 /* We use char because int might match the return type of a gcc2
15653 builtin and then its argument prototype would still apply. */
15663 rm -f conftest.$ac_objext conftest$ac_exeext
15664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15665 (eval $ac_link) 2>&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } &&
15669 { ac_try='test -s conftest$ac_exeext'
15670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671 (eval $ac_try) 2>&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15675 ac_cv_lib_socket_socket=yes
15677 echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15680 ac_cv_lib_socket_socket=no
15682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15683 LIBS=$ac_check_lib_save_LIBS
15685 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15686 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15687 if test $ac_cv_lib_socket_socket = yes; then
15688 cat >>confdefs.h <<_ACEOF
15689 #define HAVE_LIBSOCKET 1
15692 LIBS="-lsocket $LIBS"
15697 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15698 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15699 if test "${ac_cv_lib_inet_socket+set}" = set; then
15700 echo $ECHO_N "(cached) $ECHO_C" >&6
15702 ac_check_lib_save_LIBS=$LIBS
15703 LIBS="-linet $LIBS"
15704 cat >conftest.$ac_ext <<_ACEOF
15705 #line $LINENO "configure"
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h. */
15712 /* Override any gcc2 internal prototype to avoid an error. */
15716 /* We use char because int might match the return type of a gcc2
15717 builtin and then its argument prototype would still apply. */
15727 rm -f conftest.$ac_objext conftest$ac_exeext
15728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15729 (eval $ac_link) 2>&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); } &&
15733 { ac_try='test -s conftest$ac_exeext'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }; then
15739 ac_cv_lib_inet_socket=yes
15741 echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15744 ac_cv_lib_inet_socket=no
15746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15747 LIBS=$ac_check_lib_save_LIBS
15749 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15750 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15751 if test $ac_cv_lib_inet_socket = yes; then
15752 cat >>confdefs.h <<_ACEOF
15753 #define HAVE_LIBINET 1
15756 LIBS="-linet $LIBS"
15764 for ac_func in inet_pton
15766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15767 echo "$as_me:$LINENO: checking for $ac_func" >&5
15768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15769 if eval "test \"\${$as_ac_var+set}\" = set"; then
15770 echo $ECHO_N "(cached) $ECHO_C" >&6
15772 cat >conftest.$ac_ext <<_ACEOF
15773 #line $LINENO "configure"
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h. */
15779 /* System header to define __stub macros and hopefully few prototypes,
15780 which can conflict with char $ac_func (); below.
15781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15782 <limits.h> exists even on freestanding compilers. */
15784 # include <limits.h>
15786 # include <assert.h>
15788 /* Override any gcc2 internal prototype to avoid an error. */
15793 /* We use char because int might match the return type of a gcc2
15794 builtin and then its argument prototype would still apply. */
15796 /* The GNU C library defines this for functions which it implements
15797 to always fail with ENOSYS. Some functions are actually named
15798 something starting with __ and the normal name is an alias. */
15799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15802 char (*f) () = $ac_func;
15811 return f != $ac_func;
15816 rm -f conftest.$ac_objext conftest$ac_exeext
15817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15818 (eval $ac_link) 2>&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } &&
15822 { ac_try='test -s conftest$ac_exeext'
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; }; then
15828 eval "$as_ac_var=yes"
15830 echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15833 eval "$as_ac_var=no"
15835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15839 if test `eval echo '${'$as_ac_var'}'` = yes; then
15840 cat >>confdefs.h <<_ACEOF
15841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15843 cat >>confdefs.h <<\_ACEOF
15844 #define HAVE_INET_PTON 1
15852 for ac_func in strftime
15854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15855 echo "$as_me:$LINENO: checking for $ac_func" >&5
15856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15857 if eval "test \"\${$as_ac_var+set}\" = set"; then
15858 echo $ECHO_N "(cached) $ECHO_C" >&6
15860 cat >conftest.$ac_ext <<_ACEOF
15861 #line $LINENO "configure"
15864 cat confdefs.h >>conftest.$ac_ext
15865 cat >>conftest.$ac_ext <<_ACEOF
15866 /* end confdefs.h. */
15867 /* System header to define __stub macros and hopefully few prototypes,
15868 which can conflict with char $ac_func (); below.
15869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15870 <limits.h> exists even on freestanding compilers. */
15872 # include <limits.h>
15874 # include <assert.h>
15876 /* Override any gcc2 internal prototype to avoid an error. */
15881 /* We use char because int might match the return type of a gcc2
15882 builtin and then its argument prototype would still apply. */
15884 /* The GNU C library defines this for functions which it implements
15885 to always fail with ENOSYS. Some functions are actually named
15886 something starting with __ and the normal name is an alias. */
15887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15890 char (*f) () = $ac_func;
15899 return f != $ac_func;
15904 rm -f conftest.$ac_objext conftest$ac_exeext
15905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15906 (eval $ac_link) 2>&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } &&
15910 { ac_try='test -s conftest$ac_exeext'
15911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912 (eval $ac_try) 2>&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); }; }; then
15916 eval "$as_ac_var=yes"
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15921 eval "$as_ac_var=no"
15923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15927 if test `eval echo '${'$as_ac_var'}'` = yes; then
15928 cat >>confdefs.h <<_ACEOF
15929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15933 # strftime is in -lintl on SCO UNIX.
15934 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15935 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
15936 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15937 echo $ECHO_N "(cached) $ECHO_C" >&6
15939 ac_check_lib_save_LIBS=$LIBS
15940 LIBS="-lintl $LIBS"
15941 cat >conftest.$ac_ext <<_ACEOF
15942 #line $LINENO "configure"
15945 cat confdefs.h >>conftest.$ac_ext
15946 cat >>conftest.$ac_ext <<_ACEOF
15947 /* end confdefs.h. */
15949 /* Override any gcc2 internal prototype to avoid an error. */
15953 /* We use char because int might match the return type of a gcc2
15954 builtin and then its argument prototype would still apply. */
15964 rm -f conftest.$ac_objext conftest$ac_exeext
15965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15966 (eval $ac_link) 2>&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); } &&
15970 { ac_try='test -s conftest$ac_exeext'
15971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15972 (eval $ac_try) 2>&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); }; }; then
15976 ac_cv_lib_intl_strftime=yes
15978 echo "$as_me: failed program was:" >&5
15979 sed 's/^/| /' conftest.$ac_ext >&5
15981 ac_cv_lib_intl_strftime=no
15983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15984 LIBS=$ac_check_lib_save_LIBS
15986 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15987 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
15988 if test $ac_cv_lib_intl_strftime = yes; then
15989 cat >>confdefs.h <<\_ACEOF
15990 #define HAVE_STRFTIME 1
15993 LIBS="-lintl $LIBS"
16000 for ac_func in vprintf
16002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16003 echo "$as_me:$LINENO: checking for $ac_func" >&5
16004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16005 if eval "test \"\${$as_ac_var+set}\" = set"; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 cat >conftest.$ac_ext <<_ACEOF
16009 #line $LINENO "configure"
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h. */
16015 /* System header to define __stub macros and hopefully few prototypes,
16016 which can conflict with char $ac_func (); below.
16017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16018 <limits.h> exists even on freestanding compilers. */
16020 # include <limits.h>
16022 # include <assert.h>
16024 /* Override any gcc2 internal prototype to avoid an error. */
16029 /* We use char because int might match the return type of a gcc2
16030 builtin and then its argument prototype would still apply. */
16032 /* The GNU C library defines this for functions which it implements
16033 to always fail with ENOSYS. Some functions are actually named
16034 something starting with __ and the normal name is an alias. */
16035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16038 char (*f) () = $ac_func;
16047 return f != $ac_func;
16052 rm -f conftest.$ac_objext conftest$ac_exeext
16053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16054 (eval $ac_link) 2>&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); } &&
16058 { ac_try='test -s conftest$ac_exeext'
16059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16060 (eval $ac_try) 2>&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); }; }; then
16064 eval "$as_ac_var=yes"
16066 echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16069 eval "$as_ac_var=no"
16071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16075 if test `eval echo '${'$as_ac_var'}'` = yes; then
16076 cat >>confdefs.h <<_ACEOF
16077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16080 echo "$as_me:$LINENO: checking for _doprnt" >&5
16081 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16082 if test "${ac_cv_func__doprnt+set}" = set; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16085 cat >conftest.$ac_ext <<_ACEOF
16086 #line $LINENO "configure"
16089 cat confdefs.h >>conftest.$ac_ext
16090 cat >>conftest.$ac_ext <<_ACEOF
16091 /* end confdefs.h. */
16092 /* System header to define __stub macros and hopefully few prototypes,
16093 which can conflict with char _doprnt (); below.
16094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16095 <limits.h> exists even on freestanding compilers. */
16097 # include <limits.h>
16099 # include <assert.h>
16101 /* Override any gcc2 internal prototype to avoid an error. */
16106 /* We use char because int might match the return type of a gcc2
16107 builtin and then its argument prototype would still apply. */
16109 /* The GNU C library defines this for functions which it implements
16110 to always fail with ENOSYS. Some functions are actually named
16111 something starting with __ and the normal name is an alias. */
16112 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16115 char (*f) () = _doprnt;
16124 return f != _doprnt;
16129 rm -f conftest.$ac_objext conftest$ac_exeext
16130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16131 (eval $ac_link) 2>&5
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); } &&
16135 { ac_try='test -s conftest$ac_exeext'
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 ac_cv_func__doprnt=yes
16143 echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16146 ac_cv_func__doprnt=no
16148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16150 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16151 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16152 if test $ac_cv_func__doprnt = yes; then
16154 cat >>confdefs.h <<\_ACEOF
16155 #define HAVE_DOPRNT 1
16164 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16165 # for constant arguments. Useless!
16166 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16167 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16168 if test "${ac_cv_working_alloca_h+set}" = set; then
16169 echo $ECHO_N "(cached) $ECHO_C" >&6
16171 cat >conftest.$ac_ext <<_ACEOF
16172 #line $LINENO "configure"
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16178 #include <alloca.h>
16182 char *p = (char *) alloca (2 * sizeof (int));
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_working_alloca_h=yes
16201 echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16204 ac_cv_working_alloca_h=no
16206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16208 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16209 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16210 if test $ac_cv_working_alloca_h = yes; then
16212 cat >>confdefs.h <<\_ACEOF
16213 #define HAVE_ALLOCA_H 1
16218 echo "$as_me:$LINENO: checking for alloca" >&5
16219 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16220 if test "${ac_cv_func_alloca_works+set}" = set; then
16221 echo $ECHO_N "(cached) $ECHO_C" >&6
16223 cat >conftest.$ac_ext <<_ACEOF
16224 #line $LINENO "configure"
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h. */
16231 # define alloca __builtin_alloca
16234 # include <malloc.h>
16235 # define alloca _alloca
16238 # include <alloca.h>
16243 # ifndef alloca /* predefined by HP cc +Olibcalls */
16254 char *p = (char *) alloca (1);
16259 rm -f conftest.$ac_objext conftest$ac_exeext
16260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16261 (eval $ac_link) 2>&5
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); } &&
16265 { ac_try='test -s conftest$ac_exeext'
16266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267 (eval $ac_try) 2>&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; }; then
16271 ac_cv_func_alloca_works=yes
16273 echo "$as_me: failed program was:" >&5
16274 sed 's/^/| /' conftest.$ac_ext >&5
16276 ac_cv_func_alloca_works=no
16278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16280 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16281 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16283 if test $ac_cv_func_alloca_works = yes; then
16285 cat >>confdefs.h <<\_ACEOF
16286 #define HAVE_ALLOCA 1
16290 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16291 # that cause trouble. Some versions do not even contain alloca or
16292 # contain a buggy version. If you still want to use their alloca,
16293 # use ar to extract alloca.o from them instead of compiling alloca.c.
16295 ALLOCA=alloca.$ac_objext
16297 cat >>confdefs.h <<\_ACEOF
16302 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16303 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16304 if test "${ac_cv_os_cray+set}" = set; then
16305 echo $ECHO_N "(cached) $ECHO_C" >&6
16307 cat >conftest.$ac_ext <<_ACEOF
16308 #line $LINENO "configure"
16311 cat confdefs.h >>conftest.$ac_ext
16312 cat >>conftest.$ac_ext <<_ACEOF
16313 /* end confdefs.h. */
16314 #if defined(CRAY) && ! defined(CRAY2)
16321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16322 $EGREP "webecray" >/dev/null 2>&1; then
16330 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16331 echo "${ECHO_T}$ac_cv_os_cray" >&6
16332 if test $ac_cv_os_cray = yes; then
16333 for ac_func in _getb67 GETB67 getb67; do
16334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16335 echo "$as_me:$LINENO: checking for $ac_func" >&5
16336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16337 if eval "test \"\${$as_ac_var+set}\" = set"; then
16338 echo $ECHO_N "(cached) $ECHO_C" >&6
16340 cat >conftest.$ac_ext <<_ACEOF
16341 #line $LINENO "configure"
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h. */
16347 /* System header to define __stub macros and hopefully few prototypes,
16348 which can conflict with char $ac_func (); below.
16349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16350 <limits.h> exists even on freestanding compilers. */
16352 # include <limits.h>
16354 # include <assert.h>
16356 /* Override any gcc2 internal prototype to avoid an error. */
16361 /* We use char because int might match the return type of a gcc2
16362 builtin and then its argument prototype would still apply. */
16364 /* The GNU C library defines this for functions which it implements
16365 to always fail with ENOSYS. Some functions are actually named
16366 something starting with __ and the normal name is an alias. */
16367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16370 char (*f) () = $ac_func;
16379 return f != $ac_func;
16384 rm -f conftest.$ac_objext conftest$ac_exeext
16385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16386 (eval $ac_link) 2>&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } &&
16390 { ac_try='test -s conftest$ac_exeext'
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; }; then
16396 eval "$as_ac_var=yes"
16398 echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16401 eval "$as_ac_var=no"
16403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16406 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16407 if test `eval echo '${'$as_ac_var'}'` = yes; then
16409 cat >>confdefs.h <<_ACEOF
16410 #define CRAY_STACKSEG_END $ac_func
16419 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16420 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16421 if test "${ac_cv_c_stack_direction+set}" = set; then
16422 echo $ECHO_N "(cached) $ECHO_C" >&6
16424 if test "$cross_compiling" = yes; then
16425 ac_cv_c_stack_direction=0
16427 cat >conftest.$ac_ext <<_ACEOF
16428 #line $LINENO "configure"
16431 cat confdefs.h >>conftest.$ac_ext
16432 cat >>conftest.$ac_ext <<_ACEOF
16433 /* end confdefs.h. */
16435 find_stack_direction ()
16437 static char *addr = 0;
16442 return find_stack_direction ();
16445 return (&dummy > addr) ? 1 : -1;
16451 exit (find_stack_direction () < 0);
16454 rm -f conftest$ac_exeext
16455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16456 (eval $ac_link) 2>&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461 (eval $ac_try) 2>&5
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; }; then
16465 ac_cv_c_stack_direction=1
16467 echo "$as_me: program exited with status $ac_status" >&5
16468 echo "$as_me: failed program was:" >&5
16469 sed 's/^/| /' conftest.$ac_ext >&5
16471 ( exit $ac_status )
16472 ac_cv_c_stack_direction=-1
16474 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16477 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16478 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16480 cat >>confdefs.h <<_ACEOF
16481 #define STACK_DIRECTION $ac_cv_c_stack_direction
16487 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16488 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16489 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16490 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16491 echo $ECHO_N "(cached) $ECHO_C" >&6
16493 ac_check_lib_save_LIBS=$LIBS
16495 cat >conftest.$ac_ext <<_ACEOF
16496 #line $LINENO "configure"
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h. */
16503 /* Override any gcc2 internal prototype to avoid an error. */
16507 /* We use char because int might match the return type of a gcc2
16508 builtin and then its argument prototype would still apply. */
16518 rm -f conftest.$ac_objext conftest$ac_exeext
16519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16520 (eval $ac_link) 2>&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); } &&
16524 { ac_try='test -s conftest$ac_exeext'
16525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526 (eval $ac_try) 2>&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); }; }; then
16530 ac_cv_lib_sun_getmntent=yes
16532 echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16535 ac_cv_lib_sun_getmntent=no
16537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16538 LIBS=$ac_check_lib_save_LIBS
16540 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16541 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16542 if test $ac_cv_lib_sun_getmntent = yes; then
16545 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16546 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16547 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16550 ac_check_lib_save_LIBS=$LIBS
16552 cat >conftest.$ac_ext <<_ACEOF
16553 #line $LINENO "configure"
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h. */
16560 /* Override any gcc2 internal prototype to avoid an error. */
16564 /* We use char because int might match the return type of a gcc2
16565 builtin and then its argument prototype would still apply. */
16575 rm -f conftest.$ac_objext conftest$ac_exeext
16576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16577 (eval $ac_link) 2>&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } &&
16581 { ac_try='test -s conftest$ac_exeext'
16582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583 (eval $ac_try) 2>&5
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; }; then
16587 ac_cv_lib_seq_getmntent=yes
16589 echo "$as_me: failed program was:" >&5
16590 sed 's/^/| /' conftest.$ac_ext >&5
16592 ac_cv_lib_seq_getmntent=no
16594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16595 LIBS=$ac_check_lib_save_LIBS
16597 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16598 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16599 if test $ac_cv_lib_seq_getmntent = yes; then
16602 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16603 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16604 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16605 echo $ECHO_N "(cached) $ECHO_C" >&6
16607 ac_check_lib_save_LIBS=$LIBS
16609 cat >conftest.$ac_ext <<_ACEOF
16610 #line $LINENO "configure"
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h. */
16617 /* Override any gcc2 internal prototype to avoid an error. */
16621 /* We use char because int might match the return type of a gcc2
16622 builtin and then its argument prototype would still apply. */
16632 rm -f conftest.$ac_objext conftest$ac_exeext
16633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16634 (eval $ac_link) 2>&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); } &&
16638 { ac_try='test -s conftest$ac_exeext'
16639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640 (eval $ac_try) 2>&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 ac_cv_lib_gen_getmntent=yes
16646 echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16649 ac_cv_lib_gen_getmntent=no
16651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16652 LIBS=$ac_check_lib_save_LIBS
16654 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16655 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16656 if test $ac_cv_lib_gen_getmntent = yes; then
16665 for ac_func in getmntent
16667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16668 echo "$as_me:$LINENO: checking for $ac_func" >&5
16669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16670 if eval "test \"\${$as_ac_var+set}\" = set"; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16673 cat >conftest.$ac_ext <<_ACEOF
16674 #line $LINENO "configure"
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h. */
16680 /* System header to define __stub macros and hopefully few prototypes,
16681 which can conflict with char $ac_func (); below.
16682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16683 <limits.h> exists even on freestanding compilers. */
16685 # include <limits.h>
16687 # include <assert.h>
16689 /* Override any gcc2 internal prototype to avoid an error. */
16694 /* We use char because int might match the return type of a gcc2
16695 builtin and then its argument prototype would still apply. */
16697 /* The GNU C library defines this for functions which it implements
16698 to always fail with ENOSYS. Some functions are actually named
16699 something starting with __ and the normal name is an alias. */
16700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16703 char (*f) () = $ac_func;
16712 return f != $ac_func;
16717 rm -f conftest.$ac_objext conftest$ac_exeext
16718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16719 (eval $ac_link) 2>&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } &&
16723 { ac_try='test -s conftest$ac_exeext'
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16729 eval "$as_ac_var=yes"
16731 echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16734 eval "$as_ac_var=no"
16736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16740 if test `eval echo '${'$as_ac_var'}'` = yes; then
16741 cat >>confdefs.h <<_ACEOF
16742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16749 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16750 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16751 if test "${ac_cv_func_closedir_void+set}" = set; then
16752 echo $ECHO_N "(cached) $ECHO_C" >&6
16754 if test "$cross_compiling" = yes; then
16755 ac_cv_func_closedir_void=yes
16757 cat >conftest.$ac_ext <<_ACEOF
16758 #line $LINENO "configure"
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16764 $ac_includes_default
16765 #include <$ac_header_dirent>
16766 #ifndef __cplusplus
16773 exit (closedir (opendir (".")) != 0);
16778 rm -f conftest$ac_exeext
16779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16780 (eval $ac_link) 2>&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785 (eval $ac_try) 2>&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; }; then
16789 ac_cv_func_closedir_void=no
16791 echo "$as_me: program exited with status $ac_status" >&5
16792 echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.$ac_ext >&5
16795 ( exit $ac_status )
16796 ac_cv_func_closedir_void=yes
16798 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16801 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
16802 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
16803 if test $ac_cv_func_closedir_void = yes; then
16805 cat >>confdefs.h <<\_ACEOF
16806 #define CLOSEDIR_VOID 1
16811 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16812 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16813 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16816 if test "$cross_compiling" = yes; then
16817 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16818 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16819 { (exit 1); exit 1; }; }
16821 cat >conftest.$ac_ext <<_ACEOF
16822 #line $LINENO "configure"
16825 cat confdefs.h >>conftest.$ac_ext
16826 cat >>conftest.$ac_ext <<_ACEOF
16827 /* end confdefs.h. */
16829 # include <unistd.h>
16835 /* If this system has a BSD-style setpgrp which takes arguments,
16836 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16837 exit successfully. */
16838 exit (setpgrp (1,1) == -1 ? 0 : 1);
16843 rm -f conftest$ac_exeext
16844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16845 (eval $ac_link) 2>&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850 (eval $ac_try) 2>&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; }; then
16854 ac_cv_func_setpgrp_void=no
16856 echo "$as_me: program exited with status $ac_status" >&5
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16860 ( exit $ac_status )
16861 ac_cv_func_setpgrp_void=yes
16863 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16866 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16867 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16868 if test $ac_cv_func_setpgrp_void = yes; then
16870 cat >>confdefs.h <<\_ACEOF
16871 #define SETPGRP_VOID 1
16875 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
16876 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
16877 if test "${ac_cv_func_fnmatch_works+set}" = set; then
16878 echo $ECHO_N "(cached) $ECHO_C" >&6
16880 # Some versions of Solaris, SCO, and the GNU C Library
16881 # have a broken or incompatible fnmatch.
16882 # So we run a test program. If we are cross-compiling, take no chance.
16883 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
16884 if test "$cross_compiling" = yes; then
16885 ac_cv_func_fnmatch_works=cross
16887 cat >conftest.$ac_ext <<_ACEOF
16888 #line $LINENO "configure"
16891 cat confdefs.h >>conftest.$ac_ext
16892 cat >>conftest.$ac_ext <<_ACEOF
16893 /* end confdefs.h. */
16894 #include <fnmatch.h>
16895 # define y(a, b, c) (fnmatch (a, b, c) == 0)
16896 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
16902 (!(y ("a*", "abc", 0)
16903 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
16904 && y ("a\\\\bc", "abc", 0)
16905 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
16906 && y ("*x", ".x", 0)
16907 && n ("*x", ".x", FNM_PERIOD)
16913 rm -f conftest$ac_exeext
16914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16915 (eval $ac_link) 2>&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
16924 ac_cv_func_fnmatch_works=yes
16926 echo "$as_me: program exited with status $ac_status" >&5
16927 echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16930 ( exit $ac_status )
16931 ac_cv_func_fnmatch_works=no
16933 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16936 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
16937 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
16938 if test $ac_cv_func_fnmatch_works = yes; then
16940 cat >>confdefs.h <<\_ACEOF
16941 #define HAVE_FNMATCH 1
16950 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16951 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16952 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16953 echo $ECHO_N "(cached) $ECHO_C" >&6
16955 ac_check_lib_save_LIBS=$LIBS
16956 LIBS="-lxpg4 $LIBS"
16957 cat >conftest.$ac_ext <<_ACEOF
16958 #line $LINENO "configure"
16961 cat confdefs.h >>conftest.$ac_ext
16962 cat >>conftest.$ac_ext <<_ACEOF
16963 /* end confdefs.h. */
16965 /* Override any gcc2 internal prototype to avoid an error. */
16969 /* We use char because int might match the return type of a gcc2
16970 builtin and then its argument prototype would still apply. */
16980 rm -f conftest.$ac_objext conftest$ac_exeext
16981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16982 (eval $ac_link) 2>&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); } &&
16986 { ac_try='test -s conftest$ac_exeext'
16987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16988 (eval $ac_try) 2>&5
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); }; }; then
16992 ac_cv_lib_xpg4_setlocale=yes
16994 echo "$as_me: failed program was:" >&5
16995 sed 's/^/| /' conftest.$ac_ext >&5
16997 ac_cv_lib_xpg4_setlocale=no
16999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17000 LIBS=$ac_check_lib_save_LIBS
17002 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17003 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17004 if test $ac_cv_lib_xpg4_setlocale = yes; then
17005 LIBS="$LIBS -lxpg4"
17011 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17012 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17013 if test "${ac_cv_lib_sun_getpwnam+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. */
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_sun_getpwnam=yes
17055 echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17058 ac_cv_lib_sun_getpwnam=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_sun_getpwnam" >&5
17064 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17065 if test $ac_cv_lib_sun_getpwnam = yes; then
17066 cat >>confdefs.h <<_ACEOF
17067 #define HAVE_LIBSUN 1
17076 for ac_header in zlib.h
17078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17080 echo "$as_me:$LINENO: checking for $ac_header" >&5
17081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17083 echo $ECHO_N "(cached) $ECHO_C" >&6
17085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17088 # Is the header compilable?
17089 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17091 cat >conftest.$ac_ext <<_ACEOF
17092 #line $LINENO "configure"
17095 cat confdefs.h >>conftest.$ac_ext
17096 cat >>conftest.$ac_ext <<_ACEOF
17097 /* end confdefs.h. */
17098 $ac_includes_default
17099 #include <$ac_header>
17101 rm -f conftest.$ac_objext
17102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17103 (eval $ac_compile) 2>&5
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); } &&
17107 { ac_try='test -s conftest.$ac_objext'
17108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17109 (eval $ac_try) 2>&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; }; then
17113 ac_header_compiler=yes
17115 echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17118 ac_header_compiler=no
17120 rm -f conftest.$ac_objext conftest.$ac_ext
17121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17122 echo "${ECHO_T}$ac_header_compiler" >&6
17124 # Is the header present?
17125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17127 cat >conftest.$ac_ext <<_ACEOF
17128 #line $LINENO "configure"
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h. */
17134 #include <$ac_header>
17136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17139 grep -v '^ *+' conftest.er1 >conftest.err
17141 cat conftest.err >&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } >/dev/null; then
17144 if test -s conftest.err; then
17145 ac_cpp_err=$ac_c_preproc_warn_flag
17152 if test -z "$ac_cpp_err"; then
17153 ac_header_preproc=yes
17155 echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17158 ac_header_preproc=no
17160 rm -f conftest.err conftest.$ac_ext
17161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17162 echo "${ECHO_T}$ac_header_preproc" >&6
17164 # So? What about this header?
17165 case $ac_header_compiler:$ac_header_preproc in
17167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17173 ## ------------------------------------ ##
17174 ## Report this to bug-autoconf@gnu.org. ##
17175 ## ------------------------------------ ##
17178 sed "s/^/$as_me: WARNING: /" >&2
17181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17189 ## ------------------------------------ ##
17190 ## Report this to bug-autoconf@gnu.org. ##
17191 ## ------------------------------------ ##
17194 sed "s/^/$as_me: WARNING: /" >&2
17197 echo "$as_me:$LINENO: checking for $ac_header" >&5
17198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17200 echo $ECHO_N "(cached) $ECHO_C" >&6
17202 eval "$as_ac_Header=$ac_header_preproc"
17204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17209 cat >>confdefs.h <<_ACEOF
17210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17217 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17218 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17219 if test "${ac_cv_lib_z_deflate+set}" = set; then
17220 echo $ECHO_N "(cached) $ECHO_C" >&6
17222 ac_check_lib_save_LIBS=$LIBS
17224 cat >conftest.$ac_ext <<_ACEOF
17225 #line $LINENO "configure"
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h. */
17232 /* Override any gcc2 internal prototype to avoid an error. */
17236 /* We use char because int might match the return type of a gcc2
17237 builtin and then its argument prototype would still apply. */
17247 rm -f conftest.$ac_objext conftest$ac_exeext
17248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17249 (eval $ac_link) 2>&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); } &&
17253 { ac_try='test -s conftest$ac_exeext'
17254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17255 (eval $ac_try) 2>&5
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); }; }; then
17259 ac_cv_lib_z_deflate=yes
17261 echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.$ac_ext >&5
17264 ac_cv_lib_z_deflate=no
17266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17267 LIBS=$ac_check_lib_save_LIBS
17269 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17270 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17271 if test $ac_cv_lib_z_deflate = yes; then
17276 if test x$FDLIBS = x-lz; then
17277 cat >>confdefs.h <<\_ACEOF
17278 #define HAVE_LIBZ 1
17285 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17286 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17287 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17288 echo $ECHO_N "(cached) $ECHO_C" >&6
17290 ac_check_lib_save_LIBS=$LIBS
17291 LIBS="-lpthread $LIBS"
17292 cat >conftest.$ac_ext <<_ACEOF
17293 #line $LINENO "configure"
17296 cat confdefs.h >>conftest.$ac_ext
17297 cat >>conftest.$ac_ext <<_ACEOF
17298 /* end confdefs.h. */
17300 /* Override any gcc2 internal prototype to avoid an error. */
17304 /* We use char because int might match the return type of a gcc2
17305 builtin and then its argument prototype would still apply. */
17306 char pthread_create ();
17315 rm -f conftest.$ac_objext conftest$ac_exeext
17316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17317 (eval $ac_link) 2>&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); } &&
17321 { ac_try='test -s conftest$ac_exeext'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
17327 ac_cv_lib_pthread_pthread_create=yes
17329 echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17332 ac_cv_lib_pthread_pthread_create=no
17334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17335 LIBS=$ac_check_lib_save_LIBS
17337 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17338 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17339 if test $ac_cv_lib_pthread_pthread_create = yes; then
17340 PTHREAD_LIB="-lpthread"
17342 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17343 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17344 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17345 echo $ECHO_N "(cached) $ECHO_C" >&6
17347 ac_check_lib_save_LIBS=$LIBS
17348 LIBS="-lpthreads $LIBS"
17349 cat >conftest.$ac_ext <<_ACEOF
17350 #line $LINENO "configure"
17353 cat confdefs.h >>conftest.$ac_ext
17354 cat >>conftest.$ac_ext <<_ACEOF
17355 /* end confdefs.h. */
17357 /* Override any gcc2 internal prototype to avoid an error. */
17361 /* We use char because int might match the return type of a gcc2
17362 builtin and then its argument prototype would still apply. */
17363 char pthread_create ();
17372 rm -f conftest.$ac_objext conftest$ac_exeext
17373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17374 (eval $ac_link) 2>&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); } &&
17378 { ac_try='test -s conftest$ac_exeext'
17379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380 (eval $ac_try) 2>&5
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; }; then
17384 ac_cv_lib_pthreads_pthread_create=yes
17386 echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17389 ac_cv_lib_pthreads_pthread_create=no
17391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17392 LIBS=$ac_check_lib_save_LIBS
17394 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17395 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17396 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17397 PTHREAD_LIB="-lpthreads"
17399 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17400 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17401 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17402 echo $ECHO_N "(cached) $ECHO_C" >&6
17404 ac_check_lib_save_LIBS=$LIBS
17406 cat >conftest.$ac_ext <<_ACEOF
17407 #line $LINENO "configure"
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17414 /* Override any gcc2 internal prototype to avoid an error. */
17418 /* We use char because int might match the return type of a gcc2
17419 builtin and then its argument prototype would still apply. */
17420 char pthread_create ();
17429 rm -f conftest.$ac_objext conftest$ac_exeext
17430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17431 (eval $ac_link) 2>&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); } &&
17435 { ac_try='test -s conftest$ac_exeext'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17441 ac_cv_lib_c_r_pthread_create=yes
17443 echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17446 ac_cv_lib_c_r_pthread_create=no
17448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17449 LIBS=$ac_check_lib_save_LIBS
17451 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17452 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17453 if test $ac_cv_lib_c_r_pthread_create = yes; then
17454 PTHREAD_LIB="-lc_r"
17456 echo "$as_me:$LINENO: checking for pthread_create" >&5
17457 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17458 if test "${ac_cv_func_pthread_create+set}" = set; then
17459 echo $ECHO_N "(cached) $ECHO_C" >&6
17461 cat >conftest.$ac_ext <<_ACEOF
17462 #line $LINENO "configure"
17465 cat confdefs.h >>conftest.$ac_ext
17466 cat >>conftest.$ac_ext <<_ACEOF
17467 /* end confdefs.h. */
17468 /* System header to define __stub macros and hopefully few prototypes,
17469 which can conflict with char pthread_create (); below.
17470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17471 <limits.h> exists even on freestanding compilers. */
17473 # include <limits.h>
17475 # include <assert.h>
17477 /* Override any gcc2 internal prototype to avoid an error. */
17482 /* We use char because int might match the return type of a gcc2
17483 builtin and then its argument prototype would still apply. */
17484 char pthread_create ();
17485 /* The GNU C library defines this for functions which it implements
17486 to always fail with ENOSYS. Some functions are actually named
17487 something starting with __ and the normal name is an alias. */
17488 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17491 char (*f) () = pthread_create;
17500 return f != pthread_create;
17505 rm -f conftest.$ac_objext conftest$ac_exeext
17506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17507 (eval $ac_link) 2>&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); } &&
17511 { ac_try='test -s conftest$ac_exeext'
17512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17513 (eval $ac_try) 2>&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; }; then
17517 ac_cv_func_pthread_create=yes
17519 echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17522 ac_cv_func_pthread_create=no
17524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17526 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17527 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17540 cat >>confdefs.h <<\_ACEOF
17546 CFLAGS=${CFLAGS--O}
17547 LDFLAGS=${LDFLAGS--O}
17548 DB_LIBS="${SQL_LFLAGS}"
17550 CPPFLAGS="$CPPFLAGS"
17575 # Finally we set appropriate distribution specific
17576 # variables and defaults
17578 # PFILES are platform specific files
17579 PFILES="platforms/Makefile"
17582 hostname=`uname -n`
17583 case "$DISTNAME" in
17586 PSCMD="ps -e -o pid,comm"
17587 PFILES="${PFILES} \
17588 platforms/aix/Makefile"
17589 TAPEDRIVE="/dev/rmt0.1"
17593 PTHREAD_LIB="-lpthread -lexc"
17594 if test "${CC}" = "gcc" ; then
17601 TAPEDRIVE="/dev/nrmt0"
17604 DISTVER=`uname -a |awk '{print $3}'`
17605 TAPEDRIVE="/dev/nrmt0"
17606 PTHREAD_LIB="-pthread"
17607 CFLAGS="${CFLAGS} -pthread"
17608 PSCMD="ps -x -o pid,command"
17611 PFILES="${PFILES} \
17612 platforms/bsdi/Makefile \
17613 platforms/bsdi/bacula-fd \
17614 platforms/bsdi/bacula-sd \
17615 platforms/bsdi/bacula-dir"
17616 hostname=`hostname -s`
17617 largefile_support="yes"
17620 DISTVER=`uname -a |awk '{print $3}'`
17621 TAPEDRIVE="/dev/nrst0"
17623 WCFLAGS="-mwindows"
17624 WLDFLAGS="-mwindows"
17628 TAPEDRIVE="/dev/nst0"
17629 PSCMD="ps -e -o pid,command"
17630 hostname=`hostname -s`
17631 PFILES="${PFILES} \
17632 platforms/darwin/Makefile"
17635 DISTVER=`cat /etc/debian_version`
17636 TAPEDRIVE="/dev/nrst0"
17637 PSCMD="ps -e -o pid,command"
17638 hostname=`hostname -s`
17641 DISTVER=`uname -a |awk '{print $3}'`
17642 VER=`echo $DISTVER | cut -c 1`
17643 if test x$VER = x4 ; then
17644 PTHREAD_LIB="-pthread"
17645 CFLAGS="${CFLAGS} -pthread"
17649 TAPEDRIVE="/dev/nrsa0"
17650 PSCMD="ps -x -o pid,command"
17651 PFILES="${PFILES} \
17652 platforms/freebsd/Makefile \
17653 platforms/freebsd/bacula-fd \
17654 platforms/freebsd/bacula-sd \
17655 platforms/freebsd/bacula-dir"
17656 hostname=`hostname -s`
17657 largefile_support="yes"
17661 TAPEDRIVE="/dev/rmt/0hnb"
17665 TAPEDRIVE="/dev/rmt/0cbn"
17666 PSCMD="ps -e -o pid,comm"
17667 PFILES="${PFILES} \
17668 platforms/irix/Makefile \
17669 platforms/irix/bacula-fd \
17670 platforms/irix/bacula-sd \
17671 platforms/irix/bacula-dir"
17674 DISTVER=`uname -a |awk '{print $3}'`
17677 TAPEDRIVE="/dev/nrst0"
17678 PSCMD="ps -a -o pid,command"
17679 PTHREAD_LIB="-pthread"
17680 CFLAGS="${CFLAGS} -pthread"
17683 DISTVER=`uname -a |awk '{print $3}'`
17686 TAPEDRIVE="/dev/nrst0"
17687 PSCMD="ps -a -o pid,command"
17688 PTHREAD_LIB="-pthread"
17689 CFLAGS="${CFLAGS} -pthread"
17690 PFILES="${PFILES} \
17691 platforms/openbsd/Makefile \
17692 platforms/openbsd/bacula-fd \
17693 platforms/openbsd/bacula-sd \
17694 platforms/openbsd/bacula-dir"
17697 DISTVER=`cat /etc/redhat-release | grep release |\
17699 TAPEDRIVE="/dev/nst0"
17700 PSCMD="ps -e -o pid,command"
17701 PFILES="${PFILES} \
17702 platforms/redhat/Makefile \
17703 platforms/redhat/bacula-fd \
17704 platforms/redhat/bacula-sd \
17705 platforms/redhat/bacula-dir \
17706 platforms/redhat/bacula.spec \
17708 hostname=`hostname -s`
17711 DISTVER=`cat /etc/mandrake-release | grep release |\
17713 TAPEDRIVE="/dev/nst0"
17714 PSCMD="ps -e -o pid,command"
17715 PFILES="${PFILES} \
17716 platforms/mandrake/Makefile \
17717 platforms/mandrake/bacula-fd \
17718 platforms/mandrake/bacula-sd \
17719 platforms/mandrake/bacula-dir \
17720 platforms/mandrake/bacula.spec \
17722 hostname=`hostname -s`
17725 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17726 TAPEDRIVE="/dev/nst0"
17727 PSCMD="ps -e -o pid,command"
17728 PFILES="${PFILES} \
17729 platforms/gentoo/Makefile \
17730 platforms/gentoo/bacula-fd \
17731 platforms/gentoo/bacula-sd \
17732 platforms/gentoo/bacula-dir"
17733 hostname=`hostname -s`
17737 DISTVER=`cat /etc/slackware-version`
17738 TAPEDRIVE="/dev/nst0"
17739 PSCMD="ps -e -o pid,command"
17740 hostname=`hostname -s`
17744 TAPEDRIVE="/dev/rmt/0cbn"
17745 PSCMD="ps -e -o pid,comm"
17746 PFILES="${PFILES} \
17747 platforms/solaris/Makefile \
17748 platforms/solaris/bacula-fd \
17749 platforms/solaris/bacula-sd \
17750 platforms/solaris/bacula-dir"
17751 if test x$DISTVER = x5.6 ; then
17752 cat >>confdefs.h <<\_ACEOF
17753 #define HAVE_OLD_SOCKOPT 1
17759 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17761 TAPEDRIVE="/dev/nst0"
17762 PSCMD="ps -e -o pid,command"
17763 hostname=`hostname -s`
17764 PFILES="${PFILES} \
17765 platforms/suse/Makefile \
17766 platforms/suse/bacula-fd \
17767 platforms/suse/bacula-sd \
17768 platforms/suse/bacula-dir"
17773 TAPEDRIVE="/dev/nst0"
17774 PSCMD="ps -e -o pid,command"
17775 hostname=`hostname -s`
17776 PFILES="${PFILES} \
17777 platforms/suse/Makefile \
17778 platforms/suse/bacula-fd \
17779 platforms/suse/bacula-sd \
17780 platforms/suse/bacula-dir"
17784 TAPEDRIVE="/dev/nst0"
17787 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
17793 LIBS="$PTHREAD_LIB $LIBS"
17795 cat >>confdefs.h <<_ACEOF
17799 cat >>confdefs.h <<_ACEOF
17809 MCOMMON=./autoconf/Make.common
17812 if test "x${subsysdir}" = "x${sbindir}" ; then
17815 echo "You have set both --sbindir and --with-subsys-dir"
17816 echo " equal to: ${subsysdir} "
17817 echo "This is not permitted. Please reconfigure."
17819 echo "Aborting configuration ..."
17825 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/tconsole/Makefile src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/make_postgresql_tables src/cats/drop_postgresql_tables src/cats/create_postgresql_database src/cats/grant_postgresql_privileges src/cats/make_mysql_tables src/cats/drop_mysql_tables src/cats/update_mysql_tables src/cats/create_mysql_database src/cats/grant_mysql_privileges src/cats/make_sqlite_tables src/cats/drop_sqlite_tables src/cats/update_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/cats/update_bacula_tables src/findlib/Makefile src/tools/Makefile $PFILES"
17826 ac_config_commands="$ac_config_commands default"
17827 cat >confcache <<\_ACEOF
17828 # This file is a shell script that caches the results of configure
17829 # tests run on this system so they can be shared between configure
17830 # scripts and configure runs, see configure's option --config-cache.
17831 # It is not useful on other systems. If it contains results you don't
17832 # want to keep, you may remove or edit it.
17834 # config.status only pays attention to the cache file if you give it
17835 # the --recheck option to rerun configure.
17837 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17838 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17839 # following values.
17843 # The following way of writing the cache mishandles newlines in values,
17844 # but we know of no workaround that is simple, portable, and efficient.
17845 # So, don't put newlines in cache variables' values.
17846 # Ultrix sh set writes to stderr and can't be redirected directly,
17847 # and sets the high bit in the cache file unless we assign to the vars.
17850 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17852 # `set' does not quote correctly, so add quotes (double-quote
17853 # substitution turns \\\\ into \\, and sed turns \\ into \).
17856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17859 # `set' quotes correctly as required by POSIX, so do not add quotes.
17861 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17868 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17870 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17872 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17873 if test -w $cache_file; then
17874 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17875 cat confcache >$cache_file
17877 echo "not updating unwritable cache $cache_file"
17882 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17883 # Let make expand exec_prefix.
17884 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17886 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17887 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17888 # trailing colons and then remove the whole line if VPATH becomes empty
17889 # (actually we leave an empty line to preserve line numbers).
17890 if test "x$srcdir" = x.; then
17891 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17892 s/:*\$(srcdir):*/:/;
17893 s/:*\${srcdir}:*/:/;
17895 s/^\([^=]*=[ ]*\):*/\1/;
17901 DEFS=-DHAVE_CONFIG_H
17905 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17906 # 1. Remove the extension, and $U if already installed.
17907 ac_i=`echo "$ac_i" |
17908 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17910 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17911 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17913 LIBOBJS=$ac_libobjs
17915 LTLIBOBJS=$ac_ltlibobjs
17919 : ${CONFIG_STATUS=./config.status}
17920 ac_clean_files_save=$ac_clean_files
17921 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17922 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17923 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17924 cat >$CONFIG_STATUS <<_ACEOF
17926 # Generated by $as_me.
17927 # Run this file to recreate the current configuration.
17928 # Compiler output produced by configure, useful for debugging
17929 # configure, is in config.log if it exists.
17932 ac_cs_recheck=false
17934 SHELL=\${CONFIG_SHELL-$SHELL}
17937 cat >>$CONFIG_STATUS <<\_ACEOF
17938 ## --------------------- ##
17939 ## M4sh Initialization. ##
17940 ## --------------------- ##
17942 # Be Bourne compatible
17943 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17946 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17947 # is contrary to our usage. Disable this feature.
17948 alias -g '${1+"$@"}'='"$@"'
17949 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17953 # Support unset when possible.
17954 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17961 # Work around bugs in pre-3.0 UWIN ksh.
17962 $as_unset ENV MAIL MAILPATH
17969 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17970 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17971 LC_TELEPHONE LC_TIME
17973 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17974 eval $as_var=C; export $as_var
17980 # Required to use basename.
17981 if expr a : '\(a\)' >/dev/null 2>&1; then
17987 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17988 as_basename=basename
17994 # Name of the executable.
17995 as_me=`$as_basename "$0" ||
17996 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17997 X"$0" : 'X\(//\)$' \| \
17998 X"$0" : 'X\(/\)$' \| \
17999 . : '\(.\)' 2>/dev/null ||
18001 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18002 /^X\/\(\/\/\)$/{ s//\1/; q; }
18003 /^X\/\(\/\).*/{ s//\1/; q; }
18007 # PATH needs CR, and LINENO needs CR and PATH.
18008 # Avoid depending upon Character Ranges.
18009 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18010 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18011 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18012 as_cr_digits='0123456789'
18013 as_cr_alnum=$as_cr_Letters$as_cr_digits
18015 # The user is always right.
18016 if test "${PATH_SEPARATOR+set}" != set; then
18017 echo "#! /bin/sh" >conf$$.sh
18018 echo "exit 0" >>conf$$.sh
18020 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18029 as_lineno_1=$LINENO
18030 as_lineno_2=$LINENO
18031 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18032 test "x$as_lineno_1" != "x$as_lineno_2" &&
18033 test "x$as_lineno_3" = "x$as_lineno_2" || {
18034 # Find who we are. Look in the path if we contain no path at all
18037 *[\\/]* ) as_myself=$0 ;;
18038 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18039 for as_dir in $PATH
18042 test -z "$as_dir" && as_dir=.
18043 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18048 # We did not find ourselves, most probably we were run as `sh COMMAND'
18049 # in which case we are not to be found in the path.
18050 if test "x$as_myself" = x; then
18053 if test ! -f "$as_myself"; then
18054 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18055 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18056 { (exit 1); exit 1; }; }
18058 case $CONFIG_SHELL in
18060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18061 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18064 test -z "$as_dir" && as_dir=.
18065 for as_base in sh bash ksh sh5; do
18068 if ("$as_dir/$as_base" -c '
18069 as_lineno_1=$LINENO
18070 as_lineno_2=$LINENO
18071 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18072 test "x$as_lineno_1" != "x$as_lineno_2" &&
18073 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18074 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18075 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18076 CONFIG_SHELL=$as_dir/$as_base
18077 export CONFIG_SHELL
18078 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18086 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18087 # uniformly replaced by the line number. The first 'sed' inserts a
18088 # line-number line before each line; the second 'sed' does the real
18089 # work. The second script uses 'N' to pair each line-number line
18090 # with the numbered line, and appends trailing '-' during
18091 # substitution so that $LINENO is not a special case at line end.
18092 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18093 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18094 sed '=' <$as_myself |
18099 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18102 s,^['$as_cr_digits']*\n,,
18103 ' >$as_me.lineno &&
18104 chmod +x $as_me.lineno ||
18105 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18106 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18107 { (exit 1); exit 1; }; }
18109 # Don't try to exec as it changes $[0], causing all sort of problems
18110 # (the dirname of $[0] is not the place where we might find the
18111 # original and so on. Autoconf is especially sensible to this).
18113 # Exit status is that of the last command.
18118 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18119 *c*,-n*) ECHO_N= ECHO_C='
18121 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18122 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18125 if expr a : '\(a\)' >/dev/null 2>&1; then
18131 rm -f conf$$ conf$$.exe conf$$.file
18133 if ln -s conf$$.file conf$$ 2>/dev/null; then
18134 # We could just check for DJGPP; but this test a) works b) is more generic
18135 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18136 if test -f conf$$.exe; then
18137 # Don't use ln at all; we don't have any links
18142 elif ln conf$$.file conf$$ 2>/dev/null; then
18147 rm -f conf$$ conf$$.exe conf$$.file
18149 if mkdir -p . 2>/dev/null; then
18155 as_executable_p="test -f"
18157 # Sed expression to map a string onto a valid CPP name.
18158 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18160 # Sed expression to map a string onto a valid variable name.
18161 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18165 # We need space, tab and new line, in precisely that order.
18175 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18176 # report actual input values of CONFIG_FILES etc. instead of their
18177 # values after options handling. Logging --version etc. is OK.
18181 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18182 ## Running $as_me. ##
18187 This file was extended by $as_me, which was
18188 generated by GNU Autoconf 2.57. Invocation command line was
18190 CONFIG_FILES = $CONFIG_FILES
18191 CONFIG_HEADERS = $CONFIG_HEADERS
18192 CONFIG_LINKS = $CONFIG_LINKS
18193 CONFIG_COMMANDS = $CONFIG_COMMANDS
18197 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18201 # Files that config.status was made for.
18202 if test -n "$ac_config_files"; then
18203 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18206 if test -n "$ac_config_headers"; then
18207 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18210 if test -n "$ac_config_links"; then
18211 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18214 if test -n "$ac_config_commands"; then
18215 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18218 cat >>$CONFIG_STATUS <<\_ACEOF
18221 \`$as_me' instantiates files from templates according to the
18222 current configuration.
18224 Usage: $0 [OPTIONS] [FILE]...
18226 -h, --help print this help, then exit
18227 -V, --version print version number, then exit
18228 -q, --quiet do not print progress messages
18229 -d, --debug don't remove temporary files
18230 --recheck update $as_me by reconfiguring in the same conditions
18231 --file=FILE[:TEMPLATE]
18232 instantiate the configuration file FILE
18233 --header=FILE[:TEMPLATE]
18234 instantiate the configuration header FILE
18236 Configuration files:
18239 Configuration headers:
18242 Configuration commands:
18245 Report bugs to <bug-autoconf@gnu.org>."
18248 cat >>$CONFIG_STATUS <<_ACEOF
18251 configured by $0, generated by GNU Autoconf 2.57,
18252 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18254 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18255 Free Software Foundation, Inc.
18256 This config.status script is free software; the Free Software Foundation
18257 gives unlimited permission to copy, distribute and modify it."
18262 cat >>$CONFIG_STATUS <<\_ACEOF
18263 # If no file are specified by the user, then we need to provide default
18264 # value. By we need to know if files were specified by the user.
18270 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18271 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18279 *) # This is not an option, so the user has probably given explicit
18282 ac_need_defaults=false;;
18286 # Handling of the options.
18288 cat >>$CONFIG_STATUS <<\_ACEOF
18289 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18291 --version | --vers* | -V )
18292 echo "$ac_cs_version"; exit 0 ;;
18294 # Conflict between --help and --header
18295 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18296 Try \`$0 --help' for more information." >&5
18297 echo "$as_me: error: ambiguous option: $1
18298 Try \`$0 --help' for more information." >&2;}
18299 { (exit 1); exit 1; }; };;
18300 --help | --hel | -h )
18301 echo "$ac_cs_usage"; exit 0 ;;
18302 --debug | --d* | -d )
18304 --file | --fil | --fi | --f )
18306 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18307 ac_need_defaults=false;;
18308 --header | --heade | --head | --hea )
18310 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18311 ac_need_defaults=false;;
18312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18313 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18316 # This is an error.
18317 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18318 Try \`$0 --help' for more information." >&5
18319 echo "$as_me: error: unrecognized option: $1
18320 Try \`$0 --help' for more information." >&2;}
18321 { (exit 1); exit 1; }; } ;;
18323 *) ac_config_targets="$ac_config_targets $1" ;;
18329 ac_configure_extra_args=
18331 if $ac_cs_silent; then
18333 ac_configure_extra_args="$ac_configure_extra_args --silent"
18337 cat >>$CONFIG_STATUS <<_ACEOF
18338 if \$ac_cs_recheck; then
18339 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18340 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18349 cat >>$CONFIG_STATUS <<\_ACEOF
18350 for ac_config_target in $ac_config_targets
18352 case "$ac_config_target" in
18353 # Handling of arguments.
18354 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18355 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18356 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18357 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18358 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18359 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18360 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18361 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18362 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18363 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18364 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18365 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18366 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18367 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18368 "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18369 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18370 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18371 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18372 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18373 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18374 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18375 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18376 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18377 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18378 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18379 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18380 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18381 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18382 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18383 "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18384 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18385 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18386 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18387 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18388 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18389 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18390 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18391 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18392 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18393 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18394 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18395 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18396 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18397 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18398 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18399 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18400 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18401 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18402 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18403 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18404 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18405 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18406 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18407 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18408 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18409 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18410 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18411 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18412 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18413 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18414 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18415 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18416 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18417 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18418 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18419 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18420 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18421 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18422 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18423 { (exit 1); exit 1; }; };;
18427 # If the user did not use the arguments to specify the items to instantiate,
18428 # then the envvar interface is used. Set only those that are not.
18429 # We use the long form for the default assignment because of an extremely
18430 # bizarre bug on SunOS 4.1.3.
18431 if $ac_need_defaults; then
18432 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18433 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18434 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18437 # Have a temporary directory for convenience. Make it in the build tree
18438 # simply because there is no reason to put it here, and in addition,
18439 # creating and moving files from /tmp can sometimes cause problems.
18440 # Create a temporary directory, and hook for its removal unless debugging.
18443 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18444 trap '{ (exit 1); exit 1; }' 1 2 13 15
18447 # Create a (secure) tmp directory for tmp files.
18450 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18451 test -n "$tmp" && test -d "$tmp"
18454 tmp=./confstat$$-$RANDOM
18455 (umask 077 && mkdir $tmp)
18458 echo "$me: cannot create a temporary directory in ." >&2
18459 { (exit 1); exit 1; }
18464 cat >>$CONFIG_STATUS <<_ACEOF
18467 # CONFIG_FILES section.
18470 # No need to generate the scripts if there are no CONFIG_FILES.
18471 # This happens for instance when ./config.status config.h
18472 if test -n "\$CONFIG_FILES"; then
18473 # Protect against being on the right side of a sed subst in config.status.
18474 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18475 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18476 s,@SHELL@,$SHELL,;t t
18477 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18478 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18479 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18480 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18481 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18482 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18483 s,@exec_prefix@,$exec_prefix,;t t
18484 s,@prefix@,$prefix,;t t
18485 s,@program_transform_name@,$program_transform_name,;t t
18486 s,@bindir@,$bindir,;t t
18487 s,@sbindir@,$sbindir,;t t
18488 s,@libexecdir@,$libexecdir,;t t
18489 s,@datadir@,$datadir,;t t
18490 s,@sysconfdir@,$sysconfdir,;t t
18491 s,@sharedstatedir@,$sharedstatedir,;t t
18492 s,@localstatedir@,$localstatedir,;t t
18493 s,@libdir@,$libdir,;t t
18494 s,@includedir@,$includedir,;t t
18495 s,@oldincludedir@,$oldincludedir,;t t
18496 s,@infodir@,$infodir,;t t
18497 s,@mandir@,$mandir,;t t
18498 s,@build_alias@,$build_alias,;t t
18499 s,@host_alias@,$host_alias,;t t
18500 s,@target_alias@,$target_alias,;t t
18501 s,@DEFS@,$DEFS,;t t
18502 s,@ECHO_C@,$ECHO_C,;t t
18503 s,@ECHO_N@,$ECHO_N,;t t
18504 s,@ECHO_T@,$ECHO_T,;t t
18505 s,@LIBS@,$LIBS,;t t
18506 s,@BUILD_DIR@,$BUILD_DIR,;t t
18507 s,@TRUEPRG@,$TRUEPRG,;t t
18508 s,@FALSEPRG@,$FALSEPRG,;t t
18509 s,@build@,$build,;t t
18510 s,@build_cpu@,$build_cpu,;t t
18511 s,@build_vendor@,$build_vendor,;t t
18512 s,@build_os@,$build_os,;t t
18513 s,@host@,$host,;t t
18514 s,@host_cpu@,$host_cpu,;t t
18515 s,@host_vendor@,$host_vendor,;t t
18516 s,@host_os@,$host_os,;t t
18517 s,@VERSION@,$VERSION,;t t
18518 s,@DATE@,$DATE,;t t
18519 s,@LSMDATE@,$LSMDATE,;t t
18521 s,@CFLAGS@,$CFLAGS,;t t
18522 s,@LDFLAGS@,$LDFLAGS,;t t
18523 s,@CPPFLAGS@,$CPPFLAGS,;t t
18524 s,@ac_ct_CC@,$ac_ct_CC,;t t
18525 s,@EXEEXT@,$EXEEXT,;t t
18526 s,@OBJEXT@,$OBJEXT,;t t
18528 s,@CXXFLAGS@,$CXXFLAGS,;t t
18529 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18531 s,@EGREP@,$EGREP,;t t
18532 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18533 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18534 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18535 s,@RANLIB@,$RANLIB,;t t
18536 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18542 s,@ECHO@,$ECHO,;t t
18546 s,@OPENSSL@,$OPENSSL,;t t
18548 s,@PKGCONFIG@,$PKGCONFIG,;t t
18549 s,@ARFLAGS@,$ARFLAGS,;t t
18550 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18551 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18552 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18553 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18554 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18555 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18556 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18557 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18558 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18559 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18560 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18561 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18562 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18563 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18564 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18565 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18566 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18567 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18568 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18569 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18570 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18571 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18572 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18573 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18574 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18575 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18576 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18577 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18578 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18579 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18580 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18581 s,@MSGFMT@,$MSGFMT,;t t
18582 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18583 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18584 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18585 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18586 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18587 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18588 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18589 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18590 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18591 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18592 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18593 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18594 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18595 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18596 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18597 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18598 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18599 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18600 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18601 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18602 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18603 s,@GNOME_DIR@,$GNOME_DIR,;t t
18604 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18605 s,@STATIC_FD@,$STATIC_FD,;t t
18606 s,@STATIC_SD@,$STATIC_SD,;t t
18607 s,@STATIC_DIR@,$STATIC_DIR,;t t
18608 s,@STATIC_CONS@,$STATIC_CONS,;t t
18609 s,@ALL_DIRS@,$ALL_DIRS,;t t
18610 s,@CONS_INC@,$CONS_INC,;t t
18611 s,@CONS_OBJ@,$CONS_OBJ,;t t
18612 s,@CONS_SRC@,$CONS_SRC,;t t
18613 s,@CONS_LIBS@,$CONS_LIBS,;t t
18614 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18615 s,@READLINE_SRC@,$READLINE_SRC,;t t
18616 s,@working_dir@,$working_dir,;t t
18617 s,@scriptdir@,$scriptdir,;t t
18618 s,@dump_email@,$dump_email,;t t
18619 s,@job_email@,$job_email,;t t
18620 s,@smtp_host@,$smtp_host,;t t
18621 s,@piddir@,$piddir,;t t
18622 s,@subsysdir@,$subsysdir,;t t
18623 s,@baseport@,$baseport,;t t
18624 s,@dir_port@,$dir_port,;t t
18625 s,@fd_port@,$fd_port,;t t
18626 s,@sd_port@,$sd_port,;t t
18627 s,@dir_password@,$dir_password,;t t
18628 s,@fd_password@,$fd_password,;t t
18629 s,@sd_password@,$sd_password,;t t
18630 s,@dir_user@,$dir_user,;t t
18631 s,@dir_group@,$dir_group,;t t
18632 s,@sd_user@,$sd_user,;t t
18633 s,@sd_group@,$sd_group,;t t
18634 s,@fd_user@,$fd_user,;t t
18635 s,@fd_group@,$fd_group,;t t
18636 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18637 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18638 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18639 s,@cats@,$cats,;t t
18640 s,@DB_NAME@,$DB_NAME,;t t
18641 s,@GETCONF@,$GETCONF,;t t
18642 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18643 s,@X_CFLAGS@,$X_CFLAGS,;t t
18644 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18645 s,@X_LIBS@,$X_LIBS,;t t
18646 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18647 s,@LIBOBJS@,$LIBOBJS,;t t
18648 s,@ALLOCA@,$ALLOCA,;t t
18649 s,@FDLIBS@,$FDLIBS,;t t
18650 s,@DEBUG@,$DEBUG,;t t
18651 s,@DINCLUDE@,$DINCLUDE,;t t
18652 s,@DLIB@,$DLIB,;t t
18653 s,@DB_LIBS@,$DB_LIBS,;t t
18654 s,@WCFLAGS@,$WCFLAGS,;t t
18655 s,@WLDFLAGS@,$WLDFLAGS,;t t
18656 s,@OBJLIST@,$OBJLIST,;t t
18657 s,@hostname@,$hostname,;t t
18658 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18659 s,@PSCMD@,$PSCMD,;t t
18660 s,@WIN32@,$WIN32,;t t
18661 s,@DISTNAME@,$DISTNAME,;t t
18662 s,@DISTVER@,$DISTVER,;t t
18663 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18664 /@MCOMMON@/r $MCOMMON
18670 cat >>$CONFIG_STATUS <<\_ACEOF
18671 # Split the substitutions into bite-sized pieces for seds with
18672 # small command number limits, like on Digital OSF/1 and HP-UX.
18673 ac_max_sed_lines=48
18674 ac_sed_frag=1 # Number of current file.
18675 ac_beg=1 # First line for current file.
18676 ac_end=$ac_max_sed_lines # Line after last line for current file.
18679 while $ac_more_lines; do
18680 if test $ac_beg -gt 1; then
18681 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18683 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18685 if test ! -s $tmp/subs.frag; then
18686 ac_more_lines=false
18688 # The purpose of the label and of the branching condition is to
18689 # speed up the sed processing (if there are no `@' at all, there
18690 # is no need to browse any of the substitutions).
18691 # These are the two extra sed commands mentioned above.
18693 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18694 if test -z "$ac_sed_cmds"; then
18695 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18697 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18699 ac_sed_frag=`expr $ac_sed_frag + 1`
18701 ac_end=`expr $ac_end + $ac_max_sed_lines`
18704 if test -z "$ac_sed_cmds"; then
18707 fi # test -n "$CONFIG_FILES"
18710 cat >>$CONFIG_STATUS <<\_ACEOF
18711 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18712 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18714 - | *:- | *:-:* ) # input from stdin
18716 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18717 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18718 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18719 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18720 * ) ac_file_in=$ac_file.in ;;
18723 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18724 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18725 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18726 X"$ac_file" : 'X\(//\)[^/]' \| \
18727 X"$ac_file" : 'X\(//\)$' \| \
18728 X"$ac_file" : 'X\(/\)' \| \
18729 . : '\(.\)' 2>/dev/null ||
18731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18732 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18733 /^X\(\/\/\)$/{ s//\1/; q; }
18734 /^X\(\/\).*/{ s//\1/; q; }
18736 { if $as_mkdir_p; then
18741 while test ! -d "$as_dir"; do
18742 as_dirs="$as_dir $as_dirs"
18743 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18744 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18745 X"$as_dir" : 'X\(//\)[^/]' \| \
18746 X"$as_dir" : 'X\(//\)$' \| \
18747 X"$as_dir" : 'X\(/\)' \| \
18748 . : '\(.\)' 2>/dev/null ||
18750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18751 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18752 /^X\(\/\/\)$/{ s//\1/; q; }
18753 /^X\(\/\).*/{ s//\1/; q; }
18756 test ! -n "$as_dirs" || mkdir $as_dirs
18757 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18758 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18759 { (exit 1); exit 1; }; }; }
18763 if test "$ac_dir" != .; then
18764 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18765 # A "../" for each directory in $ac_dir_suffix.
18766 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18768 ac_dir_suffix= ac_top_builddir=
18772 .) # No --srcdir option. We are building in place.
18774 if test -z "$ac_top_builddir"; then
18777 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18779 [\\/]* | ?:[\\/]* ) # Absolute path.
18780 ac_srcdir=$srcdir$ac_dir_suffix;
18781 ac_top_srcdir=$srcdir ;;
18782 *) # Relative path.
18783 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18784 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18786 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18788 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18789 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18790 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18791 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18795 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18796 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18799 if test x"$ac_file" != x-; then
18800 { echo "$as_me:$LINENO: creating $ac_file" >&5
18801 echo "$as_me: creating $ac_file" >&6;}
18804 # Let's still pretend it is `configure' which instantiates (i.e., don't
18805 # use $as_me), people would be surprised to read:
18806 # /* config.h. Generated by config.status. */
18807 if test x"$ac_file" = x-; then
18810 configure_input="$ac_file. "
18812 configure_input=$configure_input"Generated from `echo $ac_file_in |
18813 sed 's,.*/,,'` by configure."
18815 # First look for the input files in the build tree, otherwise in the
18817 ac_file_inputs=`IFS=:
18818 for f in $ac_file_in; do
18820 -) echo $tmp/stdin ;;
18822 # Absolute (can't be DOS-style, as IFS=:)
18823 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18824 echo "$as_me: error: cannot find input file: $f" >&2;}
18825 { (exit 1); exit 1; }; }
18828 if test -f "$f"; then
18831 elif test -f "$srcdir/$f"; then
18836 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18837 echo "$as_me: error: cannot find input file: $f" >&2;}
18838 { (exit 1); exit 1; }; }
18841 done` || { (exit 1); exit 1; }
18843 cat >>$CONFIG_STATUS <<_ACEOF
18847 cat >>$CONFIG_STATUS <<\_ACEOF
18849 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18850 s,@configure_input@,$configure_input,;t t
18851 s,@srcdir@,$ac_srcdir,;t t
18852 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18853 s,@top_srcdir@,$ac_top_srcdir,;t t
18854 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18855 s,@builddir@,$ac_builddir,;t t
18856 s,@abs_builddir@,$ac_abs_builddir,;t t
18857 s,@top_builddir@,$ac_top_builddir,;t t
18858 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18859 s,@INSTALL@,$ac_INSTALL,;t t
18860 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18862 if test x"$ac_file" != x-; then
18863 mv $tmp/out $ac_file
18871 cat >>$CONFIG_STATUS <<\_ACEOF
18874 # CONFIG_HEADER section.
18877 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18878 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18880 # ac_d sets the value in "#define NAME VALUE" lines.
18881 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18882 ac_dB='[ ].*$,\1#\2'
18885 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18886 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18887 ac_uB='$,\1#\2define\3'
18891 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18892 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18894 - | *:- | *:-:* ) # input from stdin
18896 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18897 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18898 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18899 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18900 * ) ac_file_in=$ac_file.in ;;
18903 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18904 echo "$as_me: creating $ac_file" >&6;}
18906 # First look for the input files in the build tree, otherwise in the
18908 ac_file_inputs=`IFS=:
18909 for f in $ac_file_in; do
18911 -) echo $tmp/stdin ;;
18913 # Absolute (can't be DOS-style, as IFS=:)
18914 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18915 echo "$as_me: error: cannot find input file: $f" >&2;}
18916 { (exit 1); exit 1; }; }
18919 if test -f "$f"; then
18922 elif test -f "$srcdir/$f"; then
18927 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18928 echo "$as_me: error: cannot find input file: $f" >&2;}
18929 { (exit 1); exit 1; }; }
18932 done` || { (exit 1); exit 1; }
18933 # Remove the trailing spaces.
18934 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18938 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18939 # `conftest.undefs', that substitutes the proper values into
18940 # config.h.in to produce config.h. The first handles `#define'
18941 # templates, and the second `#undef' templates.
18942 # And first: Protect against being on the right side of a sed subst in
18943 # config.status. Protect against being in an unquoted here document
18944 # in config.status.
18945 rm -f conftest.defines conftest.undefs
18946 # Using a here document instead of a string reduces the quoting nightmare.
18947 # Putting comments in sed scripts is not portable.
18949 # `end' is used to avoid that the second main sed command (meant for
18950 # 0-ary CPP macros) applies to n-ary macro definitions.
18951 # See the Autoconf documentation for `clear'.
18952 cat >confdef2sed.sed <<\_ACEOF
18957 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18959 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18962 # If some macros were called several times there might be several times
18963 # the same #defines, which is useless. Nevertheless, we may not want to
18964 # sort them, since we want the *last* AC-DEFINE to be honored.
18965 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18966 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18967 rm -f confdef2sed.sed
18969 # This sed command replaces #undef with comments. This is necessary, for
18970 # example, in the case of _POSIX_SOURCE, which is predefined and required
18971 # on some systems where configure will not decide to define it.
18972 cat >>conftest.undefs <<\_ACEOF
18973 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18976 # Break up conftest.defines because some shells have a limit on the size
18977 # of here documents, and old seds have small limits too (100 cmds).
18978 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18979 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18980 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18981 echo ' :' >>$CONFIG_STATUS
18982 rm -f conftest.tail
18983 while grep . conftest.defines >/dev/null
18985 # Write a limited-size here document to $tmp/defines.sed.
18986 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18987 # Speed up: don't consider the non `#define' lines.
18988 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18989 # Work around the forget-to-reset-the-flag bug.
18990 echo 't clr' >>$CONFIG_STATUS
18991 echo ': clr' >>$CONFIG_STATUS
18992 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18994 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18996 mv $tmp/out $tmp/in
18998 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18999 rm -f conftest.defines
19000 mv conftest.tail conftest.defines
19002 rm -f conftest.defines
19003 echo ' fi # grep' >>$CONFIG_STATUS
19004 echo >>$CONFIG_STATUS
19006 # Break up conftest.undefs because some shells have a limit on the size
19007 # of here documents, and old seds have small limits too (100 cmds).
19008 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19009 rm -f conftest.tail
19010 while grep . conftest.undefs >/dev/null
19012 # Write a limited-size here document to $tmp/undefs.sed.
19013 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19014 # Speed up: don't consider the non `#undef'
19015 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19016 # Work around the forget-to-reset-the-flag bug.
19017 echo 't clr' >>$CONFIG_STATUS
19018 echo ': clr' >>$CONFIG_STATUS
19019 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19021 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19023 mv $tmp/out $tmp/in
19025 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19026 rm -f conftest.undefs
19027 mv conftest.tail conftest.undefs
19029 rm -f conftest.undefs
19031 cat >>$CONFIG_STATUS <<\_ACEOF
19032 # Let's still pretend it is `configure' which instantiates (i.e., don't
19033 # use $as_me), people would be surprised to read:
19034 # /* config.h. Generated by config.status. */
19035 if test x"$ac_file" = x-; then
19036 echo "/* Generated by configure. */" >$tmp/config.h
19038 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19040 cat $tmp/in >>$tmp/config.h
19042 if test x"$ac_file" != x-; then
19043 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19044 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19045 echo "$as_me: $ac_file is unchanged" >&6;}
19047 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19048 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19049 X"$ac_file" : 'X\(//\)[^/]' \| \
19050 X"$ac_file" : 'X\(//\)$' \| \
19051 X"$ac_file" : 'X\(/\)' \| \
19052 . : '\(.\)' 2>/dev/null ||
19054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19055 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19056 /^X\(\/\/\)$/{ s//\1/; q; }
19057 /^X\(\/\).*/{ s//\1/; q; }
19059 { if $as_mkdir_p; then
19064 while test ! -d "$as_dir"; do
19065 as_dirs="$as_dir $as_dirs"
19066 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19067 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19068 X"$as_dir" : 'X\(//\)[^/]' \| \
19069 X"$as_dir" : 'X\(//\)$' \| \
19070 X"$as_dir" : 'X\(/\)' \| \
19071 . : '\(.\)' 2>/dev/null ||
19073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19074 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19075 /^X\(\/\/\)$/{ s//\1/; q; }
19076 /^X\(\/\).*/{ s//\1/; q; }
19079 test ! -n "$as_dirs" || mkdir $as_dirs
19080 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19081 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19082 { (exit 1); exit 1; }; }; }
19085 mv $tmp/config.h $ac_file
19089 rm -f $tmp/config.h
19093 cat >>$CONFIG_STATUS <<\_ACEOF
19096 # CONFIG_COMMANDS section.
19098 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19099 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19100 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19101 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19102 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19103 X"$ac_dest" : 'X\(//\)[^/]' \| \
19104 X"$ac_dest" : 'X\(//\)$' \| \
19105 X"$ac_dest" : 'X\(/\)' \| \
19106 . : '\(.\)' 2>/dev/null ||
19108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19109 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19110 /^X\(\/\/\)$/{ s//\1/; q; }
19111 /^X\(\/\).*/{ s//\1/; q; }
19115 if test "$ac_dir" != .; then
19116 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19117 # A "../" for each directory in $ac_dir_suffix.
19118 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19120 ac_dir_suffix= ac_top_builddir=
19124 .) # No --srcdir option. We are building in place.
19126 if test -z "$ac_top_builddir"; then
19129 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19131 [\\/]* | ?:[\\/]* ) # Absolute path.
19132 ac_srcdir=$srcdir$ac_dir_suffix;
19133 ac_top_srcdir=$srcdir ;;
19134 *) # Relative path.
19135 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19136 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19138 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19140 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19141 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19142 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19143 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19146 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19147 echo "$as_me: executing $ac_dest commands" >&6;}
19149 default ) (echo "Doing make of dependencies"; make depend;)
19155 cat >>$CONFIG_STATUS <<\_ACEOF
19157 { (exit 0); exit 0; }
19159 chmod +x $CONFIG_STATUS
19160 ac_clean_files=$ac_clean_files_save
19163 # configure is writing to config.log, and then calls config.status.
19164 # config.status does its own redirection, appending to config.log.
19165 # Unfortunately, on DOS this fails, as config.log is still kept open
19166 # by configure, so config.status won't be able to write to it; its
19167 # output is simply discarded. So we exec the FD to /dev/null,
19168 # effectively closing config.log, so it can be properly (re)opened and
19169 # appended to by config.status. When coming back to configure, we
19170 # need to make the FD available again.
19171 if test "$no_create" != yes; then
19173 ac_config_status_args=
19174 test "$silent" = yes &&
19175 ac_config_status_args="$ac_config_status_args --quiet"
19177 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19179 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19180 # would make configure fail if this is the last instruction.
19181 $ac_cs_success || { (exit 1); exit 1; }
19186 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19187 chmod 755 bconsole gconsole mtx-changer
19189 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
19190 chmod 755 src/cats/make_postgresql_tables src/cats/drop_postgresql_tables
19191 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
19192 chmod 755 src/cats/create_postgresql_database
19193 chmod 755 src/cats/create_mysql_database
19194 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
19195 chmod 755 src/cats/grant_postgresql_privileges
19196 chmod 755 src/cats/grant_mysql_privileges
19197 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
19198 chmod 755 src/cats/update_sqlite_tables
19199 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
19200 chmod 755 src/cats/update_mysql_tables
19201 chmod 755 src/cats/update_bacula_tables src/cats/update_mysql_tables
19202 chmod 755 src/cats/create_sqlite_database
19203 chmod 755 src/cats/sqlite
19204 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
19205 chmod 755 src/cats/create_bdb_database
19207 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19208 largefile_support="yes"
19212 # A whole lot of hand springs to get the compiler version.
19213 # This is because gcc changed the output in version 3.0
19215 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19216 if test "x${CCVERSION}" = "x" ; then
19217 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19219 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19220 if test x"${CXXVERSION}" = x ; then
19221 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19224 if test "x${subsysdir}" = "x${sbindir}" ; then
19227 echo "You have set --sbindir and --with-subsys-dir"
19228 echo " both equal to: ${subsysdir} "
19229 echo " This is not permitted. Please reconfigure."
19230 echo "Aborting configuration ..."
19237 Configuration on `date`:
19239 Host: $host -- ${DISTNAME} ${DISTVER}
19240 Bacula version: ${VERSION} (${DATE})
19241 Source code location: ${srcdir}
19242 Install binaries: ${sbindir}
19243 Install config files: ${sysconfdir}
19244 Scripts directory: ${scriptdir}
19245 Working directory: ${working_dir}
19246 PID directory: ${piddir}
19247 Subsys directory: ${subsysdir}
19248 C Compiler: ${CC} ${CCVERSION}
19249 C++ Compiler: ${CXX} ${CXXVERSION}
19250 Compiler flags: ${WCFLAGS} ${CFLAGS}
19251 Linker flags: ${WLDFLAGS} ${LDFLAGS}
19253 Statically Linked Tools: ${support_static_tools}
19254 Statically Linked FD: ${support_static_fd}
19255 Statically Linked SD: ${support_static_sd}
19256 Statically Linked DIR: ${support_static_dir}
19257 Statically Linked CONS: ${support_static_cons}
19258 Database type: ${db_name}
19259 Database lib: ${DB_LIBS}
19261 Job Output Email: ${job_email}
19262 Traceback Email: ${dump_email}
19263 SMTP Host Address: ${smtp_host}
19265 Director Port: ${dir_port}
19266 File daemon Port: ${fd_port}
19267 Storage daemon Port: ${sd_port}
19269 Director User: ${dir_user}
19270 Director Group: ${dir_group}
19271 Storage Daemon User: ${dir_user}
19272 Storage DaemonGroup: ${dir_group}
19273 File Daemon User: ${dir_user}
19274 File Daemon Group: ${dir_group}
19276 SQL binaries Directory ${SQL_BINDIR}
19278 Large file support: $largefile_support
19279 Bacula conio support: ${got_conio} ${CONS_LIBS}
19280 readline support: ${got_readline} ${PRTREADLINE_SRC}
19281 TCP Wrappers support: ${TCPW_MSG}
19282 ZLIB support: ${have_zlib}
19283 enable-smartalloc: ${support_smartalloc}
19284 enable-gnome: ${support_gnome} ${gnome_version}
19285 client-only: ${build_client_only}
19292 # cweb support: ${got_cweb} ${CWEB_SRC}
19293 # gmp support: ${got_gmp} ${GMP_SRC}