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 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 WXCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_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 SBINPERM 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 MACOSX 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-wx-console enable build of wxWidgets console disabled
860 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
861 --enable-smartalloc enable smartalloc debugging support disabled
862 --enable-static-tools enable static tape tools disabled
863 --enable-static-fd enable static File daemon disabled
864 --enable-static-sd enable static Storage daemon disabled
865 --enable-static-dir enable static Director disabled
866 --enable-static-cons enable static Console disabled
867 --enable-client-only build client (File daemon) only disabled
868 --disable-conio disable conio support enabled
870 --disable-readline disable readline support disable
872 --disable-largefile omit support for large files
875 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
876 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
877 --with-gnome-includes Specify location of GNOME headers
878 --with-gnome-libs Specify location of GNOME libs
879 --with-gnome Specify prefix for GNOME files
880 --with-readline=DIR specify readline library directory
881 --with-tcp-wrappers=DIR enable tcpwrappers support
882 --with-working-dir=PATH specify path of Bacula working directory
883 --with-scriptdir=PATH specify path of Bacula scripts directory
884 --with-dump-email=EMAIL dump email address
885 --with-job-email=EMAIL job output email address
886 --with-smtp-host=HOST SMTP mail host address
887 --with-pid-dir=PATH specify location of Bacula pid files
888 --with-subsys-dir=PATH specify location of Bacula subsys file
889 --with-baseport=PORT specify base port address for daemons
890 --with-dir-password=PASSWORD specify Director's password
891 --with-fd-password=PASSWORD specify Client's password
892 --with-sd-password=PASSWORD specify Storage daemon's password
893 --with-dir-user=USER specify user for Director daemon
894 --with-dir-group=GROUP specify group for Director daemon
895 --with-sd-user=USER specify user for Storage daemon
896 --with-sd-group=GROUP specify group for Storage daemon
897 --with-fd-user=USER specify user for File daemon
898 --with-fd-group=GROUP specify group for File daemon
899 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
900 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
901 base install directory, defaults to /usr/local/pgsql
903 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
904 install directory, default is to search through
905 a number of common places for the MySQL files.
907 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
908 install directory, default is to search through
909 a number of common places for the MySQL files.
911 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
912 install directory, default is to search through
913 a number of common places for the SQLite files.
914 --with-x use the X Window System
916 Some influential environment variables:
917 CC C compiler command
918 CFLAGS C compiler flags
919 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
920 nonstandard directory <lib dir>
921 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
922 headers in a nonstandard directory <include dir>
923 CXX C++ compiler command
924 CXXFLAGS C++ compiler flags
927 Use these variables to override the choices made by `configure' or to help
928 it to find libraries and programs with nonstandard names/locations.
933 if test "$ac_init_help" = "recursive"; then
934 # If there are subdirs, report their specific --help.
936 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
937 test -d $ac_dir || continue
940 if test "$ac_dir" != .; then
941 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
942 # A "../" for each directory in $ac_dir_suffix.
943 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
945 ac_dir_suffix= ac_top_builddir=
949 .) # No --srcdir option. We are building in place.
951 if test -z "$ac_top_builddir"; then
954 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
956 [\\/]* | ?:[\\/]* ) # Absolute path.
957 ac_srcdir=$srcdir$ac_dir_suffix;
958 ac_top_srcdir=$srcdir ;;
960 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
961 ac_top_srcdir=$ac_top_builddir$srcdir ;;
963 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
965 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
966 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
967 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
968 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
971 # Check for guested configure; otherwise get Cygnus style configure.
972 if test -f $ac_srcdir/configure.gnu; then
974 $SHELL $ac_srcdir/configure.gnu --help=recursive
975 elif test -f $ac_srcdir/configure; then
977 $SHELL $ac_srcdir/configure --help=recursive
978 elif test -f $ac_srcdir/configure.ac ||
979 test -f $ac_srcdir/configure.in; then
983 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
989 test -n "$ac_init_help" && exit 0
990 if $ac_init_version; then
993 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
994 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
1002 This file contains any messages produced by compilers while
1003 running configure, to aid debugging if configure makes a mistake.
1005 It was created by $as_me, which was
1006 generated by GNU Autoconf 2.57. Invocation command line was
1017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1026 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1027 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1030 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1031 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1032 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 test -z "$as_dir" && as_dir=.
1041 echo "PATH: $as_dir"
1056 # Keep a trace of the command line.
1057 # Strip out --no-create and --no-recursion so they do not pile up.
1058 # Strip out --silent because we don't want to record it for future runs.
1059 # Also quote any args containing shell meta-characters.
1060 # Make two passes to allow for proper duplicate-argument suppression.
1065 ac_must_keep_next=false
1071 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1075 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082 if test $ac_must_keep_next = true; then
1083 ac_must_keep_next=false # Got value, back to normal.
1086 *=* | --config-cache | -C | -disable-* | --disable-* \
1087 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089 | -with-* | --with-* | -without-* | --without-* | --x)
1090 case "$ac_configure_args0 " in
1091 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094 -* ) ac_must_keep_next=true ;;
1097 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098 # Get rid of the leading space.
1104 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1107 # When interrupted or exit'd, cleanup temporary files, and complete
1108 # config.log. We remove comments because anyway the quotes in there
1109 # would cause problems or look ugly.
1110 # WARNING: Be sure not to use single quotes in there, as some shells,
1111 # such as our DU 5.0 friend, will then `close' the trap.
1112 trap 'exit_status=$?
1113 # Save into config.log some information that might help in debugging.
1118 ## ---------------- ##
1119 ## Cache variables. ##
1120 ## ---------------- ##
1123 # The following way of writing the cache mishandles newlines in values,
1126 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1141 ## ----------------- ##
1142 ## Output variables. ##
1143 ## ----------------- ##
1146 for ac_var in $ac_subst_vars
1148 eval ac_val=$`echo $ac_var`
1149 echo "$ac_var='"'"'$ac_val'"'"'"
1153 if test -n "$ac_subst_files"; then
1160 for ac_var in $ac_subst_files
1162 eval ac_val=$`echo $ac_var`
1163 echo "$ac_var='"'"'$ac_val'"'"'"
1168 if test -s confdefs.h; then
1175 sed "/^$/d" confdefs.h | sort
1178 test "$ac_signal" != 0 &&
1179 echo "$as_me: caught signal $ac_signal"
1180 echo "$as_me: exit $exit_status"
1182 rm -f core core.* *.core &&
1183 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186 for ac_signal in 1 2 13 15; do
1187 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1192 rm -rf conftest* confdefs.h
1193 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196 # Predefined preprocessor variables.
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 # Let the site file select an alternate cache file if it wants to.
1224 # Prefer explicitly selected file to automatically selected ones.
1225 if test -z "$CONFIG_SITE"; then
1226 if test "x$prefix" != xNONE; then
1227 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232 for ac_site_file in $CONFIG_SITE; do
1233 if test -r "$ac_site_file"; then
1234 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235 echo "$as_me: loading site script $ac_site_file" >&6;}
1236 sed 's/^/| /' "$ac_site_file" >&5
1241 if test -r "$cache_file"; then
1242 # Some versions of bash will fail to source /dev/null (special
1243 # files actually), so we avoid doing that.
1244 if test -f "$cache_file"; then
1245 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246 echo "$as_me: loading cache $cache_file" >&6;}
1248 [\\/]* | ?:[\\/]* ) . $cache_file;;
1249 *) . ./$cache_file;;
1253 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254 echo "$as_me: creating cache $cache_file" >&6;}
1258 # Check that the precious variables saved in the cache have kept the same
1260 ac_cache_corrupted=false
1261 for ac_var in `(set) 2>&1 |
1262 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264 eval ac_new_set=\$ac_env_${ac_var}_set
1265 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266 eval ac_new_val="\$ac_env_${ac_var}_value"
1267 case $ac_old_set,$ac_new_set in
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1273 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275 ac_cache_corrupted=: ;;
1278 if test "x$ac_old_val" != "x$ac_new_val"; then
1279 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1282 echo "$as_me: former value: $ac_old_val" >&2;}
1283 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1284 echo "$as_me: current value: $ac_new_val" >&2;}
1285 ac_cache_corrupted=:
1288 # Pass precious variables to config.status.
1289 if test "$ac_new_set" = set; then
1291 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293 *) ac_arg=$ac_var=$ac_new_val ;;
1295 case " $ac_configure_args " in
1296 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1297 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301 if $ac_cache_corrupted; then
1302 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306 { (exit 1); exit 1; }; }
1310 ac_cpp='$CPP $CPPFLAGS'
1311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1339 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1340 if test -f $ac_dir/install-sh; then
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1344 elif test -f $ac_dir/install.sh; then
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1348 elif test -f $ac_dir/shtool; then
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1354 if test -z "$ac_aux_dir"; then
1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1357 { (exit 1); exit 1; }; }
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1363 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1371 # Extract the first word of "$ac_prog", so it can be a program name with args.
1372 set dummy $ac_prog; ac_word=$2
1373 echo "$as_me:$LINENO: checking for $ac_word" >&5
1374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1375 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1376 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387 test -z "$as_dir" && as_dir=.
1388 for ac_exec_ext in '' $ac_executable_extensions; do
1389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1390 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1400 TRUEPRG=$ac_cv_path_TRUEPRG
1402 if test -n "$TRUEPRG"; then
1403 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1404 echo "${ECHO_T}$TRUEPRG" >&6
1406 echo "$as_me:$LINENO: result: no" >&5
1407 echo "${ECHO_T}no" >&6
1410 test -n "$TRUEPRG" && break
1412 test -n "$TRUEPRG" || TRUEPRG=":"
1414 for ac_prog in false
1416 # Extract the first word of "$ac_prog", so it can be a program name with args.
1417 set dummy $ac_prog; ac_word=$2
1418 echo "$as_me:$LINENO: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1425 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 test -z "$as_dir" && as_dir=.
1433 for ac_exec_ext in '' $ac_executable_extensions; do
1434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1435 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1445 FALSEPRG=$ac_cv_path_FALSEPRG
1447 if test -n "$FALSEPRG"; then
1448 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1449 echo "${ECHO_T}$FALSEPRG" >&6
1451 echo "$as_me:$LINENO: result: no" >&5
1452 echo "${ECHO_T}no" >&6
1455 test -n "$FALSEPRG" && break
1457 test -n "$FALSEPRG" || FALSEPRG=":"
1462 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1464 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1465 echo "configuring for bacula $VERSION ($DATE)"
1470 ac_cpp='$CPP $CPPFLAGS'
1471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1474 if test -n "$ac_tool_prefix"; then
1475 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1476 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 if test -n "$CC"; then
1483 ac_cv_prog_CC="$CC" # Let the user override the test.
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 test -z "$as_dir" && as_dir=.
1490 for ac_exec_ext in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502 if test -n "$CC"; then
1503 echo "$as_me:$LINENO: result: $CC" >&5
1504 echo "${ECHO_T}$CC" >&6
1506 echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1511 if test -z "$ac_cv_prog_CC"; then
1513 # Extract the first word of "gcc", so it can be a program name with args.
1514 set dummy gcc; ac_word=$2
1515 echo "$as_me:$LINENO: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1518 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 if test -n "$ac_ct_CC"; then
1521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 test -z "$as_dir" && as_dir=.
1528 for ac_exec_ext in '' $ac_executable_extensions; do
1529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1530 ac_cv_prog_ac_ct_CC="gcc"
1531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1540 if test -n "$ac_ct_CC"; then
1541 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1542 echo "${ECHO_T}$ac_ct_CC" >&6
1544 echo "$as_me:$LINENO: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1553 if test -z "$CC"; then
1554 if test -n "$ac_tool_prefix"; then
1555 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1556 set dummy ${ac_tool_prefix}cc; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_CC+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 if test -n "$CC"; then
1563 ac_cv_prog_CC="$CC" # Let the user override the test.
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 test -z "$as_dir" && as_dir=.
1570 for ac_exec_ext in '' $ac_executable_extensions; do
1571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572 ac_cv_prog_CC="${ac_tool_prefix}cc"
1573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582 if test -n "$CC"; then
1583 echo "$as_me:$LINENO: result: $CC" >&5
1584 echo "${ECHO_T}$CC" >&6
1586 echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1591 if test -z "$ac_cv_prog_CC"; then
1593 # Extract the first word of "cc", so it can be a program name with args.
1594 set dummy cc; ac_word=$2
1595 echo "$as_me:$LINENO: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 if test -n "$ac_ct_CC"; then
1601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 test -z "$as_dir" && as_dir=.
1608 for ac_exec_ext in '' $ac_executable_extensions; do
1609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610 ac_cv_prog_ac_ct_CC="cc"
1611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1620 if test -n "$ac_ct_CC"; then
1621 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1622 echo "${ECHO_T}$ac_ct_CC" >&6
1624 echo "$as_me:$LINENO: result: no" >&5
1625 echo "${ECHO_T}no" >&6
1634 if test -z "$CC"; then
1635 # Extract the first word of "cc", so it can be a program name with args.
1636 set dummy cc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 if test -n "$CC"; then
1643 ac_cv_prog_CC="$CC" # Let the user override the test.
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1654 ac_prog_rejected=yes
1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664 if test $ac_prog_rejected = yes; then
1665 # We found a bogon in the path, so make sure we never use it.
1666 set dummy $ac_cv_prog_CC
1668 if test $# != 0; then
1669 # We chose a different compiler from the bogus one.
1670 # However, it has the same basename, so the bogon will be chosen
1671 # first if we set CC to just the basename; use the full file name.
1673 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1679 if test -n "$CC"; then
1680 echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1688 if test -z "$CC"; then
1689 if test -n "$ac_tool_prefix"; then
1692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1694 echo "$as_me:$LINENO: checking for $ac_word" >&5
1695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1696 if test "${ac_cv_prog_CC+set}" = set; then
1697 echo $ECHO_N "(cached) $ECHO_C" >&6
1699 if test -n "$CC"; then
1700 ac_cv_prog_CC="$CC" # Let the user override the test.
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 test -z "$as_dir" && as_dir=.
1707 for ac_exec_ext in '' $ac_executable_extensions; do
1708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1709 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719 if test -n "$CC"; then
1720 echo "$as_me:$LINENO: result: $CC" >&5
1721 echo "${ECHO_T}$CC" >&6
1723 echo "$as_me:$LINENO: result: no" >&5
1724 echo "${ECHO_T}no" >&6
1727 test -n "$CC" && break
1730 if test -z "$CC"; then
1734 # Extract the first word of "$ac_prog", so it can be a program name with args.
1735 set dummy $ac_prog; ac_word=$2
1736 echo "$as_me:$LINENO: checking for $ac_word" >&5
1737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1739 echo $ECHO_N "(cached) $ECHO_C" >&6
1741 if test -n "$ac_ct_CC"; then
1742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 test -z "$as_dir" && as_dir=.
1749 for ac_exec_ext in '' $ac_executable_extensions; do
1750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751 ac_cv_prog_ac_ct_CC="$ac_prog"
1752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1761 if test -n "$ac_ct_CC"; then
1762 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1763 echo "${ECHO_T}$ac_ct_CC" >&6
1765 echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1769 test -n "$ac_ct_CC" && break
1778 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1779 See \`config.log' for more details." >&5
1780 echo "$as_me: error: no acceptable C compiler found in \$PATH
1781 See \`config.log' for more details." >&2;}
1782 { (exit 1); exit 1; }; }
1784 # Provide some information about the compiler.
1785 echo "$as_me:$LINENO:" \
1786 "checking for C compiler version" >&5
1787 ac_compiler=`set X $ac_compile; echo $2`
1788 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1789 (eval $ac_compiler --version </dev/null >&5) 2>&5
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }
1793 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1794 (eval $ac_compiler -v </dev/null >&5) 2>&5
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }
1798 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1799 (eval $ac_compiler -V </dev/null >&5) 2>&5
1801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1802 (exit $ac_status); }
1804 cat >conftest.$ac_ext <<_ACEOF
1805 #line $LINENO "configure"
1808 cat confdefs.h >>conftest.$ac_ext
1809 cat >>conftest.$ac_ext <<_ACEOF
1810 /* end confdefs.h. */
1820 ac_clean_files_save=$ac_clean_files
1821 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1822 # Try to create an executable without -o first, disregard a.out.
1823 # It will help us diagnose broken compilers, and finding out an intuition
1825 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1826 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1827 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1828 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1829 (eval $ac_link_default) 2>&5
1831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832 (exit $ac_status); }; then
1833 # Find the output, starting from the most likely. This scheme is
1834 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1837 # Be careful to initialize this variable, since it used to be cached.
1838 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1840 # b.out is created by i960 compilers.
1841 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1843 test -f "$ac_file" || continue
1845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1848 # This is the source file.
1851 # We found the default executable, but exeext='' is most
1855 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1856 # FIXME: I believe we export ac_cv_exeext for Libtool,
1857 # but it would be cool to find out if it's true. Does anybody
1858 # maintain Libtool? --akim.
1866 echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1869 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1870 See \`config.log' for more details." >&5
1871 echo "$as_me: error: C compiler cannot create executables
1872 See \`config.log' for more details." >&2;}
1873 { (exit 77); exit 77; }; }
1876 ac_exeext=$ac_cv_exeext
1877 echo "$as_me:$LINENO: result: $ac_file" >&5
1878 echo "${ECHO_T}$ac_file" >&6
1880 # Check the compiler produces executables we can run. If not, either
1881 # the compiler is broken, or we cross compile.
1882 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1883 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1884 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1885 # If not cross compiling, check that we can run a simple program.
1886 if test "$cross_compiling" != yes; then
1887 if { ac_try='./$ac_file'
1888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }; }; then
1895 if test "$cross_compiling" = maybe; then
1898 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1899 If you meant to cross compile, use \`--host'.
1900 See \`config.log' for more details." >&5
1901 echo "$as_me: error: cannot run C compiled programs.
1902 If you meant to cross compile, use \`--host'.
1903 See \`config.log' for more details." >&2;}
1904 { (exit 1); exit 1; }; }
1908 echo "$as_me:$LINENO: result: yes" >&5
1909 echo "${ECHO_T}yes" >&6
1911 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1912 ac_clean_files=$ac_clean_files_save
1913 # Check the compiler produces executables we can run. If not, either
1914 # the compiler is broken, or we cross compile.
1915 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1916 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1917 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1918 echo "${ECHO_T}$cross_compiling" >&6
1920 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1921 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1923 (eval $ac_link) 2>&5
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }; then
1927 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1928 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1929 # work properly (i.e., refer to `conftest.exe'), while it won't with
1931 for ac_file in conftest.exe conftest conftest.*; do
1932 test -f "$ac_file" || continue
1934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1935 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1942 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1943 See \`config.log' for more details." >&5
1944 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1945 See \`config.log' for more details." >&2;}
1946 { (exit 1); exit 1; }; }
1949 rm -f conftest$ac_cv_exeext
1950 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1951 echo "${ECHO_T}$ac_cv_exeext" >&6
1953 rm -f conftest.$ac_ext
1954 EXEEXT=$ac_cv_exeext
1956 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1957 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1958 if test "${ac_cv_objext+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 cat >conftest.$ac_ext <<_ACEOF
1962 #line $LINENO "configure"
1965 cat confdefs.h >>conftest.$ac_ext
1966 cat >>conftest.$ac_ext <<_ACEOF
1967 /* end confdefs.h. */
1977 rm -f conftest.o conftest.obj
1978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1979 (eval $ac_compile) 2>&5
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }; then
1983 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1986 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1991 echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1994 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1995 See \`config.log' for more details." >&5
1996 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1997 See \`config.log' for more details." >&2;}
1998 { (exit 1); exit 1; }; }
2001 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2003 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2004 echo "${ECHO_T}$ac_cv_objext" >&6
2005 OBJEXT=$ac_cv_objext
2007 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2008 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2009 if test "${ac_cv_c_compiler_gnu+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. */
2031 rm -f conftest.$ac_objext
2032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2033 (eval $ac_compile) 2>&5
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); } &&
2037 { ac_try='test -s conftest.$ac_objext'
2038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); }; }; then
2045 echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2050 rm -f conftest.$ac_objext conftest.$ac_ext
2051 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2054 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2055 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2056 GCC=`test $ac_compiler_gnu = yes && echo yes`
2057 ac_test_CFLAGS=${CFLAGS+set}
2058 ac_save_CFLAGS=$CFLAGS
2060 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2061 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2062 if test "${ac_cv_prog_cc_g+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 cat >conftest.$ac_ext <<_ACEOF
2066 #line $LINENO "configure"
2069 cat confdefs.h >>conftest.$ac_ext
2070 cat >>conftest.$ac_ext <<_ACEOF
2071 /* end confdefs.h. */
2081 rm -f conftest.$ac_objext
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083 (eval $ac_compile) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try='test -s conftest.$ac_objext'
2088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; }; then
2095 echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2100 rm -f conftest.$ac_objext conftest.$ac_ext
2102 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2103 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2104 if test "$ac_test_CFLAGS" = set; then
2105 CFLAGS=$ac_save_CFLAGS
2106 elif test $ac_cv_prog_cc_g = yes; then
2107 if test "$GCC" = yes; then
2113 if test "$GCC" = yes; then
2119 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2120 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2121 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 ac_cv_prog_cc_stdc=no
2126 cat >conftest.$ac_ext <<_ACEOF
2127 #line $LINENO "configure"
2130 cat confdefs.h >>conftest.$ac_ext
2131 cat >>conftest.$ac_ext <<_ACEOF
2132 /* end confdefs.h. */
2135 #include <sys/types.h>
2136 #include <sys/stat.h>
2137 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2138 struct buf { int x; };
2139 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2140 static char *e (p, i)
2146 static char *f (char * (*g) (char **, int), char **p, ...)
2151 s = g (p, va_arg (v,int));
2155 int test (int i, double x);
2156 struct s1 {int (*f) (int a);};
2157 struct s2 {int (*f) (double a);};
2158 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2164 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2169 # Don't try gcc -ansi; that turns off useful extensions and
2170 # breaks some systems' header files.
2171 # AIX -qlanglvl=ansi
2172 # Ultrix and OSF/1 -std1
2173 # HP-UX 10.20 and later -Ae
2174 # HP-UX older versions -Aa -D_HPUX_SOURCE
2175 # SVR4 -Xc -D__EXTENSIONS__
2176 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2178 CC="$ac_save_CC $ac_arg"
2179 rm -f conftest.$ac_objext
2180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181 (eval $ac_compile) 2>&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2191 ac_cv_prog_cc_stdc=$ac_arg
2194 echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2198 rm -f conftest.$ac_objext
2200 rm -f conftest.$ac_ext conftest.$ac_objext
2205 case "x$ac_cv_prog_cc_stdc" in
2207 echo "$as_me:$LINENO: result: none needed" >&5
2208 echo "${ECHO_T}none needed" >&6 ;;
2210 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2211 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2212 CC="$CC $ac_cv_prog_cc_stdc" ;;
2215 # Some people use a C++ compiler to compile C. Since we use `exit',
2216 # in C++ we need to declare it. In case someone uses the same compiler
2217 # for both compiling C and C++ we need to have the C++ compiler decide
2218 # the declaration of exit, since it's the most demanding environment.
2219 cat >conftest.$ac_ext <<_ACEOF
2224 rm -f conftest.$ac_objext
2225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); } &&
2230 { ac_try='test -s conftest.$ac_objext'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2236 for ac_declaration in \
2238 '#include <stdlib.h>' \
2239 'extern "C" void std::exit (int) throw (); using std::exit;' \
2240 'extern "C" void std::exit (int); using std::exit;' \
2241 'extern "C" void exit (int) throw ();' \
2242 'extern "C" void exit (int);' \
2245 cat >conftest.$ac_ext <<_ACEOF
2246 #line $LINENO "configure"
2249 cat confdefs.h >>conftest.$ac_ext
2250 cat >>conftest.$ac_ext <<_ACEOF
2251 /* end confdefs.h. */
2262 rm -f conftest.$ac_objext
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264 (eval $ac_compile) 2>&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); } &&
2268 { ac_try='test -s conftest.$ac_objext'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; }; then
2276 echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2281 rm -f conftest.$ac_objext conftest.$ac_ext
2282 cat >conftest.$ac_ext <<_ACEOF
2283 #line $LINENO "configure"
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2298 rm -f conftest.$ac_objext
2299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300 (eval $ac_compile) 2>&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); } &&
2304 { ac_try='test -s conftest.$ac_objext'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; }; then
2312 echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2316 rm -f conftest.$ac_objext conftest.$ac_ext
2319 if test -n "$ac_declaration"; then
2320 echo '#ifdef __cplusplus' >>confdefs.h
2321 echo $ac_declaration >>confdefs.h
2322 echo '#endif' >>confdefs.h
2326 echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2330 rm -f conftest.$ac_objext conftest.$ac_ext
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338 ac_cpp='$CXXCPP $CPPFLAGS'
2339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2342 if test -n "$ac_tool_prefix"; then
2343 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2347 echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2349 if test "${ac_cv_prog_CXX+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 if test -n "$CXX"; then
2353 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2362 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 if test -n "$CXX"; then
2373 echo "$as_me:$LINENO: result: $CXX" >&5
2374 echo "${ECHO_T}$CXX" >&6
2376 echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6
2380 test -n "$CXX" && break
2383 if test -z "$CXX"; then
2385 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2387 # Extract the first word of "$ac_prog", so it can be a program name with args.
2388 set dummy $ac_prog; ac_word=$2
2389 echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2391 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 if test -n "$ac_ct_CXX"; then
2395 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2404 ac_cv_prog_ac_ct_CXX="$ac_prog"
2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2414 if test -n "$ac_ct_CXX"; then
2415 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2416 echo "${ECHO_T}$ac_ct_CXX" >&6
2418 echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6
2422 test -n "$ac_ct_CXX" && break
2424 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2430 # Provide some information about the compiler.
2431 echo "$as_me:$LINENO:" \
2432 "checking for C++ compiler version" >&5
2433 ac_compiler=`set X $ac_compile; echo $2`
2434 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2435 (eval $ac_compiler --version </dev/null >&5) 2>&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }
2439 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2440 (eval $ac_compiler -v </dev/null >&5) 2>&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }
2444 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2445 (eval $ac_compiler -V </dev/null >&5) 2>&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }
2450 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2451 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2452 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2455 cat >conftest.$ac_ext <<_ACEOF
2456 #line $LINENO "configure"
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h. */
2474 rm -f conftest.$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2488 echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2493 rm -f conftest.$ac_objext conftest.$ac_ext
2494 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2497 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2498 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2499 GXX=`test $ac_compiler_gnu = yes && echo yes`
2500 ac_test_CXXFLAGS=${CXXFLAGS+set}
2501 ac_save_CXXFLAGS=$CXXFLAGS
2503 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2504 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2505 if test "${ac_cv_prog_cxx_g+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 cat >conftest.$ac_ext <<_ACEOF
2509 #line $LINENO "configure"
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2524 rm -f conftest.$ac_objext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526 (eval $ac_compile) 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -s conftest.$ac_objext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2536 ac_cv_prog_cxx_g=yes
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2543 rm -f conftest.$ac_objext conftest.$ac_ext
2545 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2546 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2547 if test "$ac_test_CXXFLAGS" = set; then
2548 CXXFLAGS=$ac_save_CXXFLAGS
2549 elif test $ac_cv_prog_cxx_g = yes; then
2550 if test "$GXX" = yes; then
2556 if test "$GXX" = yes; then
2562 for ac_declaration in \
2564 '#include <stdlib.h>' \
2565 'extern "C" void std::exit (int) throw (); using std::exit;' \
2566 'extern "C" void std::exit (int); using std::exit;' \
2567 'extern "C" void exit (int) throw ();' \
2568 'extern "C" void exit (int);' \
2571 cat >conftest.$ac_ext <<_ACEOF
2572 #line $LINENO "configure"
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h. */
2588 rm -f conftest.$ac_objext
2589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590 (eval $ac_compile) 2>&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } &&
2594 { ac_try='test -s conftest.$ac_objext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2607 rm -f conftest.$ac_objext conftest.$ac_ext
2608 cat >conftest.$ac_ext <<_ACEOF
2609 #line $LINENO "configure"
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h. */
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626 (eval $ac_compile) 2>&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } &&
2630 { ac_try='test -s conftest.$ac_objext'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; }; then
2638 echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2642 rm -f conftest.$ac_objext conftest.$ac_ext
2645 if test -n "$ac_declaration"; then
2646 echo '#ifdef __cplusplus' >>confdefs.h
2647 echo $ac_declaration >>confdefs.h
2648 echo '#endif' >>confdefs.h
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2657 if test "x$CC" != xcc; then
2658 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2659 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2661 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2662 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2664 set dummy $CC; ac_cc=`echo $2 |
2665 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2666 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 cat >conftest.$ac_ext <<_ACEOF
2670 #line $LINENO "configure"
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2685 # Make sure it works both with $CC and with simple cc.
2686 # We do the test twice because some compilers refuse to overwrite an
2687 # existing .o file with -o, though they will create one.
2688 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2689 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } &&
2694 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); };
2700 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2701 if test "x$CC" != xcc; then
2702 # Test first that cc exists at all.
2703 if { ac_try='cc -c conftest.$ac_ext >&5'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; }; then
2709 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2710 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); };
2724 # cc exists but doesn't like -o.
2725 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2730 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2735 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2736 echo "$as_me:$LINENO: result: yes" >&5
2737 echo "${ECHO_T}yes" >&6
2739 echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6
2742 cat >>confdefs.h <<\_ACEOF
2743 #define NO_MINUS_C_MINUS_O 1
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2754 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2755 # On Suns, sometimes $CPP names a directory.
2756 if test -n "$CPP" && test -d "$CPP"; then
2759 if test -z "$CPP"; then
2760 if test "${ac_cv_prog_CPP+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 # Double quotes because CPP needs to be expanded
2764 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2767 for ac_c_preproc_warn_flag in '' yes
2769 # Use a header file that comes with gcc, so configuring glibc
2770 # with a fresh cross-compiler works.
2771 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2772 # <limits.h> exists even on freestanding compilers.
2773 # On the NeXT, cc -E runs the code through the compiler's parser,
2774 # not just through cpp. "Syntax error" is here to catch this case.
2775 cat >conftest.$ac_ext <<_ACEOF
2776 #line $LINENO "configure"
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2783 # include <limits.h>
2785 # include <assert.h>
2789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2792 grep -v '^ *+' conftest.er1 >conftest.err
2794 cat conftest.err >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } >/dev/null; then
2797 if test -s conftest.err; then
2798 ac_cpp_err=$ac_c_preproc_warn_flag
2805 if test -z "$ac_cpp_err"; then
2808 echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2811 # Broken: fails on valid input.
2814 rm -f conftest.err conftest.$ac_ext
2816 # OK, works on sane cases. Now check whether non-existent headers
2817 # can be detected and how.
2818 cat >conftest.$ac_ext <<_ACEOF
2819 #line $LINENO "configure"
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2825 #include <ac_nonexistent.h>
2827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2830 grep -v '^ *+' conftest.er1 >conftest.err
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } >/dev/null; then
2835 if test -s conftest.err; then
2836 ac_cpp_err=$ac_c_preproc_warn_flag
2843 if test -z "$ac_cpp_err"; then
2844 # Broken: success on invalid input.
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2850 # Passes both tests.
2854 rm -f conftest.err conftest.$ac_ext
2857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2858 rm -f conftest.err conftest.$ac_ext
2859 if $ac_preproc_ok; then
2871 echo "$as_me:$LINENO: result: $CPP" >&5
2872 echo "${ECHO_T}$CPP" >&6
2874 for ac_c_preproc_warn_flag in '' yes
2876 # Use a header file that comes with gcc, so configuring glibc
2877 # with a fresh cross-compiler works.
2878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2879 # <limits.h> exists even on freestanding compilers.
2880 # On the NeXT, cc -E runs the code through the compiler's parser,
2881 # not just through cpp. "Syntax error" is here to catch this case.
2882 cat >conftest.$ac_ext <<_ACEOF
2883 #line $LINENO "configure"
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2890 # include <limits.h>
2892 # include <assert.h>
2896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2899 grep -v '^ *+' conftest.er1 >conftest.err
2901 cat conftest.err >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } >/dev/null; then
2904 if test -s conftest.err; then
2905 ac_cpp_err=$ac_c_preproc_warn_flag
2912 if test -z "$ac_cpp_err"; then
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2918 # Broken: fails on valid input.
2921 rm -f conftest.err conftest.$ac_ext
2923 # OK, works on sane cases. Now check whether non-existent headers
2924 # can be detected and how.
2925 cat >conftest.$ac_ext <<_ACEOF
2926 #line $LINENO "configure"
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2932 #include <ac_nonexistent.h>
2934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2937 grep -v '^ *+' conftest.er1 >conftest.err
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } >/dev/null; then
2942 if test -s conftest.err; then
2943 ac_cpp_err=$ac_c_preproc_warn_flag
2950 if test -z "$ac_cpp_err"; then
2951 # Broken: success on invalid input.
2954 echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 # Passes both tests.
2961 rm -f conftest.err conftest.$ac_ext
2964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2965 rm -f conftest.err conftest.$ac_ext
2966 if $ac_preproc_ok; then
2969 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2970 See \`config.log' for more details." >&5
2971 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2972 See \`config.log' for more details." >&2;}
2973 { (exit 1); exit 1; }; }
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983 echo "$as_me:$LINENO: checking for egrep" >&5
2984 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2985 if test "${ac_cv_prog_egrep+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2989 then ac_cv_prog_egrep='grep -E'
2990 else ac_cv_prog_egrep='egrep'
2993 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2994 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2995 EGREP=$ac_cv_prog_egrep
2998 if test $ac_cv_c_compiler_gnu = yes; then
2999 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3000 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3001 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 ac_pattern="Autoconf.*'x'"
3005 cat >conftest.$ac_ext <<_ACEOF
3006 #line $LINENO "configure"
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3016 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3017 ac_cv_prog_gcc_traditional=yes
3019 ac_cv_prog_gcc_traditional=no
3024 if test $ac_cv_prog_gcc_traditional = no; then
3025 cat >conftest.$ac_ext <<_ACEOF
3026 #line $LINENO "configure"
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3036 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3037 ac_cv_prog_gcc_traditional=yes
3043 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3044 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3045 if test $ac_cv_prog_gcc_traditional = yes; then
3046 CC="$CC -traditional"
3052 cat >>confdefs.h <<\_ACEOF
3058 # Find a good install program. We prefer a C program (faster),
3059 # so one script is as good as another. But avoid the broken or
3060 # incompatible versions:
3061 # SysV /etc/install, /usr/sbin/install
3062 # SunOS /usr/etc/install
3063 # IRIX /sbin/install
3065 # AmigaOS /C/install, which installs bootblocks on floppy discs
3066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3067 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3068 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3069 # ./install, which can be erroneously created by make from ./install.sh.
3070 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3071 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3072 if test -z "$INSTALL"; then
3073 if test "${ac_cv_path_install+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 test -z "$as_dir" && as_dir=.
3081 # Account for people who put trailing slashes in PATH elements.
3083 ./ | .// | /cC/* | \
3084 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3087 # OSF1 and SCO ODT 3.0 have their own names for install.
3088 # Don't use installbsd from OSF since it installs stuff as root
3090 for ac_prog in ginstall scoinst install; do
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3093 if test $ac_prog = install &&
3094 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3095 # AIX install. It has an incompatible calling convention.
3097 elif test $ac_prog = install &&
3098 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3099 # program-specific install script used by HP pwplus--don't use.
3102 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3114 if test "${ac_cv_path_install+set}" = set; then
3115 INSTALL=$ac_cv_path_install
3117 # As a last resort, use the slow shell script. We don't cache a
3118 # path for INSTALL within a source directory, because that will
3119 # break other packages using the cache if that directory is
3120 # removed, or if the path is relative.
3121 INSTALL=$ac_install_sh
3124 echo "$as_me:$LINENO: result: $INSTALL" >&5
3125 echo "${ECHO_T}$INSTALL" >&6
3127 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3128 # It thinks the first close brace ends the variable substitution.
3129 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3131 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3133 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3135 if test -n "$ac_tool_prefix"; then
3136 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3137 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3138 echo "$as_me:$LINENO: checking for $ac_word" >&5
3139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3140 if test "${ac_cv_prog_RANLIB+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 if test -n "$RANLIB"; then
3144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3153 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 RANLIB=$ac_cv_prog_RANLIB
3163 if test -n "$RANLIB"; then
3164 echo "$as_me:$LINENO: result: $RANLIB" >&5
3165 echo "${ECHO_T}$RANLIB" >&6
3167 echo "$as_me:$LINENO: result: no" >&5
3168 echo "${ECHO_T}no" >&6
3172 if test -z "$ac_cv_prog_RANLIB"; then
3173 ac_ct_RANLIB=$RANLIB
3174 # Extract the first word of "ranlib", so it can be a program name with args.
3175 set dummy ranlib; ac_word=$2
3176 echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3178 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 if test -n "$ac_ct_RANLIB"; then
3182 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191 ac_cv_prog_ac_ct_RANLIB="ranlib"
3192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3201 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3202 if test -n "$ac_ct_RANLIB"; then
3203 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3204 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3206 echo "$as_me:$LINENO: result: no" >&5
3207 echo "${ECHO_T}no" >&6
3210 RANLIB=$ac_ct_RANLIB
3212 RANLIB="$ac_cv_prog_RANLIB"
3215 # Extract the first word of "mv", so it can be a program name with args.
3216 set dummy mv; ac_word=$2
3217 echo "$as_me:$LINENO: checking for $ac_word" >&5
3218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3219 if test "${ac_cv_path_MV+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3247 if test -n "$MV"; then
3248 echo "$as_me:$LINENO: result: $MV" >&5
3249 echo "${ECHO_T}$MV" >&6
3251 echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6
3255 # Extract the first word of "rm", so it can be a program name with args.
3256 set dummy rm; ac_word=$2
3257 echo "$as_me:$LINENO: checking for $ac_word" >&5
3258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3259 if test "${ac_cv_path_RM+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3287 if test -n "$RM"; then
3288 echo "$as_me:$LINENO: result: $RM" >&5
3289 echo "${ECHO_T}$RM" >&6
3291 echo "$as_me:$LINENO: result: no" >&5
3292 echo "${ECHO_T}no" >&6
3295 # Extract the first word of "cp", so it can be a program name with args.
3296 set dummy cp; ac_word=$2
3297 echo "$as_me:$LINENO: checking for $ac_word" >&5
3298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3299 if test "${ac_cv_path_CP+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3327 if test -n "$CP"; then
3328 echo "$as_me:$LINENO: result: $CP" >&5
3329 echo "${ECHO_T}$CP" >&6
3331 echo "$as_me:$LINENO: result: no" >&5
3332 echo "${ECHO_T}no" >&6
3335 # Extract the first word of "sed", so it can be a program name with args.
3336 set dummy sed; ac_word=$2
3337 echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3339 if test "${ac_cv_path_SED+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3367 if test -n "$SED"; then
3368 echo "$as_me:$LINENO: result: $SED" >&5
3369 echo "${ECHO_T}$SED" >&6
3371 echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6
3375 # Extract the first word of "awk", so it can be a program name with args.
3376 set dummy awk; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_path_AWK+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3407 if test -n "$AWK"; then
3408 echo "$as_me:$LINENO: result: $AWK" >&5
3409 echo "${ECHO_T}$AWK" >&6
3411 echo "$as_me:$LINENO: result: no" >&5
3412 echo "${ECHO_T}no" >&6
3415 # Extract the first word of "echo", so it can be a program name with args.
3416 set dummy echo; ac_word=$2
3417 echo "$as_me:$LINENO: checking for $ac_word" >&5
3418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3419 if test "${ac_cv_path_ECHO+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3445 ECHO=$ac_cv_path_ECHO
3447 if test -n "$ECHO"; then
3448 echo "$as_me:$LINENO: result: $ECHO" >&5
3449 echo "${ECHO_T}$ECHO" >&6
3451 echo "$as_me:$LINENO: result: no" >&5
3452 echo "${ECHO_T}no" >&6
3455 # Extract the first word of "cmp", so it can be a program name with args.
3456 set dummy cmp; ac_word=$2
3457 echo "$as_me:$LINENO: checking for $ac_word" >&5
3458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3459 if test "${ac_cv_path_CMP+set}" = set; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 test -z "$as_dir" && as_dir=.
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3487 if test -n "$CMP"; then
3488 echo "$as_me:$LINENO: result: $CMP" >&5
3489 echo "${ECHO_T}$CMP" >&6
3491 echo "$as_me:$LINENO: result: no" >&5
3492 echo "${ECHO_T}no" >&6
3495 # Extract the first word of "tbl", so it can be a program name with args.
3496 set dummy tbl; ac_word=$2
3497 echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499 if test "${ac_cv_path_TBL+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 test -z "$as_dir" && as_dir=.
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3514 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3527 if test -n "$TBL"; then
3528 echo "$as_me:$LINENO: result: $TBL" >&5
3529 echo "${ECHO_T}$TBL" >&6
3531 echo "$as_me:$LINENO: result: no" >&5
3532 echo "${ECHO_T}no" >&6
3535 # Extract the first word of "ar", so it can be a program name with args.
3536 set dummy ar; ac_word=$2
3537 echo "$as_me:$LINENO: checking for $ac_word" >&5
3538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3539 if test "${ac_cv_path_AR+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3554 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3567 if test -n "$AR"; then
3568 echo "$as_me:$LINENO: result: $AR" >&5
3569 echo "${ECHO_T}$AR" >&6
3571 echo "$as_me:$LINENO: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3575 # Extract the first word of "openssl", so it can be a program name with args.
3576 set dummy openssl; ac_word=$2
3577 echo "$as_me:$LINENO: checking for $ac_word" >&5
3578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3579 if test "${ac_cv_path_OPENSSL+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3605 OPENSSL=$ac_cv_path_OPENSSL
3607 if test -n "$OPENSSL"; then
3608 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3609 echo "${ECHO_T}$OPENSSL" >&6
3611 echo "$as_me:$LINENO: result: no" >&5
3612 echo "${ECHO_T}no" >&6
3615 # Extract the first word of "mtx", so it can be a program name with args.
3616 set dummy mtx; ac_word=$2
3617 echo "$as_me:$LINENO: checking for $ac_word" >&5
3618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619 if test "${ac_cv_path_MTX+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3647 if test -n "$MTX"; then
3648 echo "$as_me:$LINENO: result: $MTX" >&5
3649 echo "${ECHO_T}$MTX" >&6
3651 echo "$as_me:$LINENO: result: no" >&5
3652 echo "${ECHO_T}no" >&6
3655 # Extract the first word of "pkg-config", so it can be a program name with args.
3656 set dummy pkg-config; ac_word=$2
3657 echo "$as_me:$LINENO: checking for $ac_word" >&5
3658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3659 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 test -z "$as_dir" && as_dir=.
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3681 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3685 PKGCONFIG=$ac_cv_path_PKGCONFIG
3687 if test -n "$PKGCONFIG"; then
3688 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3689 echo "${ECHO_T}$PKGCONFIG" >&6
3691 echo "$as_me:$LINENO: result: no" >&5
3692 echo "${ECHO_T}no" >&6
3695 # Extract the first word of "wx-config", so it can be a program name with args.
3696 set dummy wx-config; ac_word=$2
3697 echo "$as_me:$LINENO: checking for $ac_word" >&5
3698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3699 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3725 WXCONFIG=$ac_cv_path_WXCONFIG
3727 if test -n "$WXCONFIG"; then
3728 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3729 echo "${ECHO_T}$WXCONFIG" >&6
3731 echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6
3736 test -n "$ARFLAG" || ARFLAGS="cr"
3749 # Make sure we can run config.sub.
3750 $ac_config_sub sun4 >/dev/null 2>&1 ||
3751 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3752 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3753 { (exit 1); exit 1; }; }
3755 echo "$as_me:$LINENO: checking build system type" >&5
3756 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3757 if test "${ac_cv_build+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 ac_cv_build_alias=$build_alias
3761 test -z "$ac_cv_build_alias" &&
3762 ac_cv_build_alias=`$ac_config_guess`
3763 test -z "$ac_cv_build_alias" &&
3764 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3765 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3766 { (exit 1); exit 1; }; }
3767 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3768 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3769 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3770 { (exit 1); exit 1; }; }
3773 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3774 echo "${ECHO_T}$ac_cv_build" >&6
3776 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3777 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3778 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3782 echo "$as_me:$LINENO: checking host system type" >&5
3783 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3784 if test "${ac_cv_host+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 ac_cv_host_alias=$host_alias
3788 test -z "$ac_cv_host_alias" &&
3789 ac_cv_host_alias=$ac_cv_build_alias
3790 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3791 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3792 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3793 { (exit 1); exit 1; }; }
3796 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3797 echo "${ECHO_T}$ac_cv_host" >&6
3799 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3800 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3801 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3805 *cygwin* ) CYGWIN=yes;;
3809 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3815 HAVE_SUN_OS_FALSE='#'
3817 HAVE_SUN_OS_TRUE='#'
3820 cat >>confdefs.h <<\_ACEOF
3821 #define HAVE_SUN_OS 1
3829 HAVE_SUN_OS_FALSE='#'
3831 HAVE_SUN_OS_TRUE='#'
3836 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3842 HAVE_OSF1_OS_FALSE='#'
3844 HAVE_OSF1_OS_TRUE='#'
3847 cat >>confdefs.h <<\_ACEOF
3848 #define HAVE_OSF1_OS 1
3856 HAVE_OSF1_OS_FALSE='#'
3858 HAVE_OSF1_OS_TRUE='#'
3863 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3869 HAVE_AIX_OS_FALSE='#'
3871 HAVE_AIX_OS_TRUE='#'
3874 cat >>confdefs.h <<\_ACEOF
3875 #define HAVE_AIX_OS 1
3883 HAVE_AIX_OS_FALSE='#'
3885 HAVE_AIX_OS_TRUE='#'
3890 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3896 HAVE_HPUX_OS_FALSE='#'
3898 HAVE_HPUX_OS_TRUE='#'
3901 cat >>confdefs.h <<\_ACEOF
3902 #define HAVE_HPUX_OS 1
3910 HAVE_HPUX_OS_FALSE='#'
3912 HAVE_HPUX_OS_TRUE='#'
3917 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3923 HAVE_LINUX_OS_FALSE='#'
3925 HAVE_LINUX_OS_TRUE='#'
3926 HAVE_LINUX_OS_FALSE=
3928 cat >>confdefs.h <<\_ACEOF
3929 #define HAVE_LINUX_OS 1
3937 HAVE_LINUX_OS_FALSE='#'
3939 HAVE_LINUX_OS_TRUE='#'
3940 HAVE_LINUX_OS_FALSE=
3944 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3949 HAVE_FREEBSD_OS_TRUE=
3950 HAVE_FREEBSD_OS_FALSE='#'
3952 HAVE_FREEBSD_OS_TRUE='#'
3953 HAVE_FREEBSD_OS_FALSE=
3955 cat >>confdefs.h <<\_ACEOF
3956 #define HAVE_FREEBSD_OS 1
3963 HAVE_FREEBSD_OS_TRUE=
3964 HAVE_FREEBSD_OS_FALSE='#'
3966 HAVE_FREEBSD_OS_TRUE='#'
3967 HAVE_FREEBSD_OS_FALSE=
3971 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3976 HAVE_NETBSD_OS_TRUE=
3977 HAVE_NETBSD_OS_FALSE='#'
3979 HAVE_NETBSD_OS_TRUE='#'
3980 HAVE_NETBSD_OS_FALSE=
3982 cat >>confdefs.h <<\_ACEOF
3983 #define HAVE_NETBSD_OS 1
3990 HAVE_NETBSD_OS_TRUE=
3991 HAVE_NETBSD_OS_FALSE='#'
3993 HAVE_NETBSD_OS_TRUE='#'
3994 HAVE_NETBSD_OS_FALSE=
3998 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4003 HAVE_OPENBSD_OS_TRUE=
4004 HAVE_OPENBSD_OS_FALSE='#'
4006 HAVE_OPENBSD_OS_TRUE='#'
4007 HAVE_OPENBSD_OS_FALSE=
4009 cat >>confdefs.h <<\_ACEOF
4010 #define HAVE_OPENBSD_OS 1
4017 HAVE_OPENBSD_OS_TRUE=
4018 HAVE_OPENBSD_OS_FALSE='#'
4020 HAVE_OPENBSD_OS_TRUE='#'
4021 HAVE_OPENBSD_OS_FALSE=
4025 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4031 HAVE_BSDI_OS_FALSE='#'
4033 HAVE_BSDI_OS_TRUE='#'
4036 cat >>confdefs.h <<\_ACEOF
4037 #define HAVE_BSDI_OS 1
4045 HAVE_BSDI_OS_FALSE='#'
4047 HAVE_BSDI_OS_TRUE='#'
4052 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4058 HAVE_SGI_OS_FALSE='#'
4060 HAVE_SGI_OS_TRUE='#'
4063 cat >>confdefs.h <<\_ACEOF
4064 #define HAVE_SGI_OS 1
4072 HAVE_SGI_OS_FALSE='#'
4074 HAVE_SGI_OS_TRUE='#'
4079 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4085 HAVE_IRIX_OS_FALSE='#'
4087 HAVE_IRIX_OS_TRUE='#'
4090 cat >>confdefs.h <<\_ACEOF
4091 #define HAVE_IRIX_OS 1
4099 HAVE_IRIX_OS_FALSE='#'
4101 HAVE_IRIX_OS_TRUE='#'
4106 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4111 HAVE_DARWIN_OS_TRUE=
4112 HAVE_DARWIN_OS_FALSE='#'
4114 HAVE_DARWIN_OS_TRUE='#'
4115 HAVE_DARWIN_OS_FALSE=
4117 cat >>confdefs.h <<\_ACEOF
4118 #define HAVE_DARWIN_OS 1
4125 HAVE_DARWIN_OS_TRUE=
4126 HAVE_DARWIN_OS_FALSE='#'
4128 HAVE_DARWIN_OS_TRUE='#'
4129 HAVE_DARWIN_OS_FALSE=
4134 # -----------------------------------------------------------
4135 # ----------------------------------------------------------
4136 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4137 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4138 if test "x$DISTNAME" != "x"
4140 echo "distname set to $DISTNAME"
4141 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4162 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4165 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4168 elif test -f /etc/SuSE-release
4171 elif test -d /etc/SuSEconfig
4174 elif test -f /etc/mandrake-release
4177 elif test -f /etc/whitebox-release
4180 elif test -f /etc/redhat-release
4183 elif test -f /etc/gentoo-release
4186 elif test -f /etc/debian_version
4189 elif test -f /etc/slackware-version
4192 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4195 elif test -f /etc/engarde-version
4198 elif test "$CYGWIN" = yes
4201 cat >>confdefs.h <<\_ACEOF
4202 #define HAVE_CYGWIN 1
4208 echo "$as_me:$LINENO: result: done" >&5
4209 echo "${ECHO_T}done" >&6
4212 # -----------------------------------------------------------
4213 # ----------------------------------------------------------
4218 INSIDE_GNOME_COMMON_TRUE=
4219 INSIDE_GNOME_COMMON_FALSE='#'
4221 INSIDE_GNOME_COMMON_TRUE='#'
4222 INSIDE_GNOME_COMMON_FALSE=
4225 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4227 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4230 # ------------------------------------------------------------------
4231 # If the user has not set --prefix, we set our default to nothing.
4232 # In this case, if the user has not set --sysconfdir, we set it
4233 # to the package default of /etc/bacula. If either --prefix or
4234 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4235 # ------------------------------------------------------------------
4236 if test x${prefix} = xNONE ; then
4237 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4238 sysconfdir=/etc/bacula
4242 sysconfdir=`eval echo ${sysconfdir}`
4244 # -------------------------------------------------------------------------
4245 # If the user has not set --exec-prefix, we default to ${prefix}
4246 # -------------------------------------------------------------------------
4247 if test x${exec_prefix} = xNONE ; then
4248 exec_prefix=${prefix}
4251 # ------------------------------------------------------------------
4252 # If the user has not set --sbindir, we set our default as /sbin
4253 # ------------------------------------------------------------------
4254 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4255 sbindir=${exec_prefix}/sbin
4257 sbindir=`eval echo ${sbindir}`
4259 # ------------------------------------------------------------------
4260 # All list of languages for which a translation exist. Each
4261 # language is separated by a space.
4262 # ------------------------------------------------------------------
4265 for ac_prog in msgfmt
4267 # Extract the first word of "$ac_prog", so it can be a program name with args.
4268 set dummy $ac_prog; ac_word=$2
4269 echo "$as_me:$LINENO: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4271 if test "${ac_cv_path_MSGFMT+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 MSGFMT=$ac_cv_path_MSGFMT
4298 if test -n "$MSGFMT"; then
4299 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4300 echo "${ECHO_T}$MSGFMT" >&6
4302 echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4306 test -n "$MSGFMT" && break
4308 test -n "$MSGFMT" || MSGFMT="no"
4310 if test "$MSGFMT" = "no"
4312 echo 'msgfmt program not found, disabling NLS !'
4314 USE_INCLUDED_LIBINTL=no
4322 support_postgresql=no
4323 support_smartalloc=yes
4324 support_readline=yes
4327 support_wx_console=no
4329 support_static_tools=no
4330 support_static_fd=no
4331 support_static_sd=no
4332 support_static_dir=no
4333 support_static_cons=no
4334 build_client_only=no
4340 # -------------------------------------------
4341 # gnome (default off)
4342 # -------------------------------------------
4343 # Check whether --enable-gnome or --disable-gnome was given.
4344 if test "${enable_gnome+set}" = set; then
4345 enableval="$enable_gnome"
4346 if test x$enableval = xyes; then
4352 if test x$support_gnome = xyes; then
4353 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4355 if test $pkg = 0; then
4356 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4357 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4358 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4359 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4364 GNOME_DIR=src/gnome2-console
4365 gnome_version="Version 2.x"
4378 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4379 if test "${with_gnome_includes+set}" = set; then
4380 withval="$with_gnome_includes"
4382 CFLAGS="$CFLAGS -I$withval"
4387 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4388 if test "${with_gnome_libs+set}" = set; then
4389 withval="$with_gnome_libs"
4391 LDFLAGS="$LDFLAGS -L$withval"
4392 gnome_prefix=$withval
4397 # Check whether --with-gnome or --without-gnome was given.
4398 if test "${with_gnome+set}" = set; then
4399 withval="$with_gnome"
4400 if test x$withval = xyes; then
4404 if test "x$withval" = xno; then
4408 LDFLAGS="$LDFLAGS -L$withval/lib"
4409 CFLAGS="$CFLAGS -I$withval/include"
4410 gnome_prefix=$withval/lib
4417 if test "x$want_gnome" = xyes; then
4419 # Extract the first word of "gnome-config", so it can be a program name with args.
4420 set dummy gnome-config; ac_word=$2
4421 echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 case $GNOME_CONFIG in
4428 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4449 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4451 if test -n "$GNOME_CONFIG"; then
4452 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4453 echo "${ECHO_T}$GNOME_CONFIG" >&6
4455 echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4459 if test "$GNOME_CONFIG" = "no"; then
4460 no_gnome_config="yes"
4462 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4463 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4464 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4465 echo "$as_me:$LINENO: result: yes" >&5
4466 echo "${ECHO_T}yes" >&6
4469 # Extract the first word of "orbit-config", so it can be a program name with args.
4470 set dummy orbit-config; ac_word=$2
4471 echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4473 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 case $ORBIT_CONFIG in
4478 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4499 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4501 if test -n "$ORBIT_CONFIG"; then
4502 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4503 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4505 echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6
4509 # Extract the first word of "orbit-idl", so it can be a program name with args.
4510 set dummy orbit-idl; ac_word=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4539 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4541 if test -n "$ORBIT_IDL"; then
4542 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4543 echo "${ECHO_T}$ORBIT_IDL" >&6
4545 echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4549 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4550 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4551 if test "${gnome_cv_orbit_found+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4556 gnome_cv_orbit_found=no
4558 gnome_cv_orbit_found=yes
4562 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4563 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4566 if test x$gnome_cv_orbit_found = xyes; then
4568 HAVE_ORBIT_FALSE='#'
4573 if test x$gnome_cv_orbit_found = xyes; then
4575 ORBIT_CFLAGS=`orbit-config --cflags client server`
4576 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4580 if test xfail = xfailure; then
4581 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4582 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4583 { (exit 1); exit 1; }; }
4587 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4588 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4589 if test "${gnome_cv_gnorba_found+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 gnome_cv_gnorba_found=no
4594 if test x$gnome_cv_orbit_found = xyes; then
4595 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4596 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4597 if test -n "$GNORBA_LIBS"; then
4598 gnome_cv_gnorba_found=yes
4603 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4604 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4607 if test x$gnome_cv_gnorba_found = xyes; then
4609 HAVE_GNORBA_FALSE='#'
4611 HAVE_GNORBA_TRUE='#'
4614 if test x$gnome_cv_orbit_found = xyes; then
4616 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4617 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4621 if test xfail = xfailure; then
4622 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4623 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4624 { (exit 1); exit 1; }; }
4628 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4629 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4630 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4631 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4632 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4633 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4634 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4637 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4639 no_gnome_config="yes"
4643 if test x$exec_prefix = xNONE; then
4644 if test x$prefix = xNONE; then
4645 gnome_prefix=$ac_default_prefix/lib
4647 gnome_prefix=$prefix/lib
4650 gnome_prefix=`eval echo \`echo $libdir\``
4653 if test "$no_gnome_config" = "yes"; then
4654 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4655 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4656 if test -f $gnome_prefix/gnomeConf.sh; then
4657 echo "$as_me:$LINENO: result: found" >&5
4658 echo "${ECHO_T}found" >&6
4659 echo "loading gnome configuration from" \
4660 "$gnome_prefix/gnomeConf.sh"
4661 . $gnome_prefix/gnomeConf.sh
4664 echo "$as_me:$LINENO: result: not found" >&5
4665 echo "${ECHO_T}not found" >&6
4666 if test xfail = xfail; then
4667 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4668 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4669 { (exit 1); exit 1; }; }
4678 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4679 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4683 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4684 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4685 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4688 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4689 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4690 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4693 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4694 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4695 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4697 echo "$as_me:$LINENO: result: unknown library" >&5
4698 echo "${ECHO_T}unknown library" >&6
4700 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4701 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4706 GNOME_DIR=src/gnome-console
4707 gnome_version="Version 1.4"
4713 # -------------------------------------------
4714 # wx-console (default off)
4715 # -------------------------------------------
4716 # Check whether --enable-wx-console or --disable-wx-console was given.
4717 if test "${enable_wx_console+set}" = set; then
4718 enableval="$enable_wx_console"
4719 if test x$enableval = xyes; then
4720 support_wx_console=yes
4725 if test x$support_wx_console = xyes; then
4726 abc=`$WXCONFIG --cppflags`
4728 if test $pkg = 0; then
4729 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4730 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4733 WX_DIR=src/wx-console
4736 echo "wx-config program not found. wx-console disabled."
4738 support_wx_console=no
4744 # -------------------------------------------
4745 # tray-monitor (default off)
4746 # -------------------------------------------
4747 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4748 if test "${enable_tray_monitor+set}" = set; then
4749 enableval="$enable_tray_monitor"
4750 if test x$enableval = xyes; then
4751 support_tray_monitor=yes
4756 if test x$support_tray_monitor = xyes; then
4757 # TODO: Check for GTK+ presence
4758 TRAY_MONITOR_DIR=src/tray-monitor
4762 # -------------------------------------------
4763 # smartalloc (default off)
4764 # -------------------------------------------
4765 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4766 if test "${enable_smartalloc+set}" = set; then
4767 enableval="$enable_smartalloc"
4768 if test x$enableval = xno; then
4769 support_smartalloc=no
4773 if test x$support_smartalloc = xyes; then
4774 cat >>confdefs.h <<\_ACEOF
4775 #define SMARTALLOC 1
4780 # -------------------------------------------
4781 # static-tools (default off)
4782 # -------------------------------------------
4783 # Check whether --enable-static-tools or --disable-static-tools was given.
4784 if test "${enable_static_tools+set}" = set; then
4785 enableval="$enable_static_tools"
4786 if test x$enableval = xyes; then
4787 support_static_tools=yes
4792 if test x$support_static_tools = xyes; then
4793 TTOOL_LDFLAGS="-static"
4797 # -------------------------------------------
4798 # static-fd (default off)
4799 # -------------------------------------------
4800 # Check whether --enable-static-fd or --disable-static-fd was given.
4801 if test "${enable_static_fd+set}" = set; then
4802 enableval="$enable_static_fd"
4803 if test x$enableval = xyes; then
4804 support_static_fd=yes
4809 if test x$support_static_fd = xyes; then
4810 STATIC_FD="static-bacula-fd"
4814 # -------------------------------------------
4815 # static-sd (default off)
4816 # -------------------------------------------
4817 # Check whether --enable-static-sd or --disable-static-sd was given.
4818 if test "${enable_static_sd+set}" = set; then
4819 enableval="$enable_static_sd"
4820 if test x$enableval = xyes; then
4821 support_static_sd=yes
4826 if test x$support_static_sd = xyes; then
4827 STATIC_SD="static-bacula-sd"
4831 # -------------------------------------------
4832 # static-dir (default off)
4833 # -------------------------------------------
4834 # Check whether --enable-static-dir or --disable-static-dir was given.
4835 if test "${enable_static_dir+set}" = set; then
4836 enableval="$enable_static_dir"
4837 if test x$enableval = xyes; then
4838 support_static_dir=yes
4843 if test x$support_static_dir = xyes; then
4844 STATIC_DIR="static-bacula-dir"
4848 # -------------------------------------------
4849 # static-cons (default off)
4850 # -------------------------------------------
4851 # Check whether --enable-static-cons or --disable-static-cons was given.
4852 if test "${enable_static_cons+set}" = set; then
4853 enableval="$enable_static_cons"
4854 if test x$enableval = xyes; then
4855 support_static_cons=yes
4862 if test x$support_static_cons = xyes; then
4863 STATIC_CONS="static-bconsole"
4864 STATIC_GNOME_CONS="static-gnome-console"
4865 STATIC_WX_CONS="static-wx-console"
4871 # -------------------------------------------
4872 # client_only (default off)
4873 # -------------------------------------------
4874 # Check whether --enable-client-only or --disable-client-only was given.
4875 if test "${enable_client_only+set}" = set; then
4876 enableval="$enable_client_only"
4877 if test x$enableval = xyes; then
4878 build_client_only=yes
4883 if test x$build_client_only = xno; then
4890 # ---------------------------------------------------
4891 # Check for conio (Bacula readline substitute)(
4892 # ---------------------------------------------------
4893 # this allows you to turn it completely off
4894 # Check whether --enable-conio or --disable-conio was given.
4895 if test "${enable_conio+set}" = set; then
4896 enableval="$enable_conio"
4897 if test x$enableval = xno; then
4903 if test x$support_conio = xyes; then
4904 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4905 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4906 if test "${ac_cv_header_stdc+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 cat >conftest.$ac_ext <<_ACEOF
4910 #line $LINENO "configure"
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h. */
4929 rm -f conftest.$ac_objext
4930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4931 (eval $ac_compile) 2>&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } &&
4935 { ac_try='test -s conftest.$ac_objext'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; }; then
4941 ac_cv_header_stdc=yes
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4946 ac_cv_header_stdc=no
4948 rm -f conftest.$ac_objext conftest.$ac_ext
4950 if test $ac_cv_header_stdc = yes; then
4951 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4952 cat >conftest.$ac_ext <<_ACEOF
4953 #line $LINENO "configure"
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4963 $EGREP "memchr" >/dev/null 2>&1; then
4966 ac_cv_header_stdc=no
4972 if test $ac_cv_header_stdc = yes; then
4973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4974 cat >conftest.$ac_ext <<_ACEOF
4975 #line $LINENO "configure"
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4985 $EGREP "free" >/dev/null 2>&1; then
4988 ac_cv_header_stdc=no
4994 if test $ac_cv_header_stdc = yes; then
4995 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4996 if test "$cross_compiling" = yes; then
4999 cat >conftest.$ac_ext <<_ACEOF
5000 #line $LINENO "configure"
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5007 #if ((' ' & 0x0FF) == 0x020)
5008 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5009 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5011 # define ISLOWER(c) \
5012 (('a' <= (c) && (c) <= 'i') \
5013 || ('j' <= (c) && (c) <= 'r') \
5014 || ('s' <= (c) && (c) <= 'z'))
5015 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5018 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5023 for (i = 0; i < 256; i++)
5024 if (XOR (islower (i), ISLOWER (i))
5025 || toupper (i) != TOUPPER (i))
5030 rm -f conftest$ac_exeext
5031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5032 (eval $ac_link) 2>&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; }; then
5043 echo "$as_me: program exited with status $ac_status" >&5
5044 echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5048 ac_cv_header_stdc=no
5050 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5054 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5055 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5056 if test $ac_cv_header_stdc = yes; then
5058 cat >>confdefs.h <<\_ACEOF
5059 #define STDC_HEADERS 1
5064 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5074 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5075 inttypes.h stdint.h unistd.h
5077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5078 echo "$as_me:$LINENO: checking for $ac_header" >&5
5079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 cat >conftest.$ac_ext <<_ACEOF
5084 #line $LINENO "configure"
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5090 $ac_includes_default
5092 #include <$ac_header>
5094 rm -f conftest.$ac_objext
5095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096 (eval $ac_compile) 2>&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } &&
5100 { ac_try='test -s conftest.$ac_objext'
5101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; }; then
5106 eval "$as_ac_Header=yes"
5108 echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5111 eval "$as_ac_Header=no"
5113 rm -f conftest.$ac_objext conftest.$ac_ext
5115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5118 cat >>confdefs.h <<_ACEOF
5119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5127 if test "${ac_cv_header_termcap_h+set}" = set; then
5128 echo "$as_me:$LINENO: checking for termcap.h" >&5
5129 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5130 if test "${ac_cv_header_termcap_h+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5134 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5136 # Is the header compilable?
5137 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5138 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5139 cat >conftest.$ac_ext <<_ACEOF
5140 #line $LINENO "configure"
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5146 $ac_includes_default
5147 #include <termcap.h>
5149 rm -f conftest.$ac_objext
5150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5151 (eval $ac_compile) 2>&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); } &&
5155 { ac_try='test -s conftest.$ac_objext'
5156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); }; }; then
5161 ac_header_compiler=yes
5163 echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5166 ac_header_compiler=no
5168 rm -f conftest.$ac_objext conftest.$ac_ext
5169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5170 echo "${ECHO_T}$ac_header_compiler" >&6
5172 # Is the header present?
5173 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5174 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5175 cat >conftest.$ac_ext <<_ACEOF
5176 #line $LINENO "configure"
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5182 #include <termcap.h>
5184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5187 grep -v '^ *+' conftest.er1 >conftest.err
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } >/dev/null; then
5192 if test -s conftest.err; then
5193 ac_cpp_err=$ac_c_preproc_warn_flag
5200 if test -z "$ac_cpp_err"; then
5201 ac_header_preproc=yes
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5206 ac_header_preproc=no
5208 rm -f conftest.err conftest.$ac_ext
5209 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5210 echo "${ECHO_T}$ac_header_preproc" >&6
5212 # So? What about this header?
5213 case $ac_header_compiler:$ac_header_preproc in
5215 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5216 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5217 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5218 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5221 ## ------------------------------------ ##
5222 ## Report this to bug-autoconf@gnu.org. ##
5223 ## ------------------------------------ ##
5226 sed "s/^/$as_me: WARNING: /" >&2
5229 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5230 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5231 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5232 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5233 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5234 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5237 ## ------------------------------------ ##
5238 ## Report this to bug-autoconf@gnu.org. ##
5239 ## ------------------------------------ ##
5242 sed "s/^/$as_me: WARNING: /" >&2
5245 echo "$as_me:$LINENO: checking for termcap.h" >&5
5246 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5247 if test "${ac_cv_header_termcap_h+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 ac_cv_header_termcap_h=$ac_header_preproc
5252 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5253 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5256 if test $ac_cv_header_termcap_h = yes; then
5257 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5258 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5259 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 ac_check_lib_save_LIBS=$LIBS
5263 LIBS="-ltermcap $LIBS"
5264 cat >conftest.$ac_ext <<_ACEOF
5265 #line $LINENO "configure"
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5272 /* Override any gcc2 internal prototype to avoid an error. */
5276 /* We use char because int might match the return type of a gcc2
5277 builtin and then its argument prototype would still apply. */
5287 rm -f conftest.$ac_objext conftest$ac_exeext
5288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5289 (eval $ac_link) 2>&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } &&
5293 { ac_try='test -s conftest$ac_exeext'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; }; then
5299 ac_cv_lib_termcap_tgetent=yes
5301 echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5304 ac_cv_lib_termcap_tgetent=no
5306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5307 LIBS=$ac_check_lib_save_LIBS
5309 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5310 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5311 if test $ac_cv_lib_termcap_tgetent = yes; then
5312 CONS_LIBS="-ltermcap"
5318 cat >>confdefs.h <<\_ACEOF
5319 #define HAVE_CONIO 1
5324 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5325 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5326 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 ac_check_lib_save_LIBS=$LIBS
5330 LIBS="-lncurses $LIBS"
5331 cat >conftest.$ac_ext <<_ACEOF
5332 #line $LINENO "configure"
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5339 /* Override any gcc2 internal prototype to avoid an error. */
5343 /* We use char because int might match the return type of a gcc2
5344 builtin and then its argument prototype would still apply. */
5354 rm -f conftest.$ac_objext conftest$ac_exeext
5355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5356 (eval $ac_link) 2>&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } &&
5360 { ac_try='test -s conftest$ac_exeext'
5361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); }; }; then
5366 ac_cv_lib_ncurses_tgetent=yes
5368 echo "$as_me: failed program was:" >&5
5369 sed 's/^/| /' conftest.$ac_ext >&5
5371 ac_cv_lib_ncurses_tgetent=no
5373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5374 LIBS=$ac_check_lib_save_LIBS
5376 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5377 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5378 if test $ac_cv_lib_ncurses_tgetent = yes; then
5379 CONS_LIBS="-lncurses"
5385 cat >>confdefs.h <<\_ACEOF
5386 #define HAVE_CONIO 1
5391 echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5399 echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5406 # ---------------------------------------------------
5407 # Check for readline support/directory (default off)
5408 # ---------------------------------------------------
5409 # this allows you to turn it completely off
5410 # Check whether --enable-readline or --disable-readline was given.
5411 if test "${enable_readline+set}" = set; then
5412 enableval="$enable_readline"
5413 if test x$enableval = xno; then
5420 if test x$support_readline = xyes; then
5422 # Check whether --with-readline or --without-readline was given.
5423 if test "${with_readline+set}" = set; then
5424 withval="$with_readline"
5426 case "$with_readline" in
5429 if test "$with_readline" != "yes"; then
5430 CONS_INC="-I${with_readline}"
5431 CONS_LDFLAGS="-L$with_readline"
5433 with_readline="/usr/include/readline"
5435 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5437 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5438 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5445 # Is the header compilable?
5446 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5447 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5448 cat >conftest.$ac_ext <<_ACEOF
5449 #line $LINENO "configure"
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h. */
5455 $ac_includes_default
5456 #include <${with_readline}/readline.h>
5458 rm -f conftest.$ac_objext
5459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5460 (eval $ac_compile) 2>&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } &&
5464 { ac_try='test -s conftest.$ac_objext'
5465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }; }; then
5470 ac_header_compiler=yes
5472 echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5475 ac_header_compiler=no
5477 rm -f conftest.$ac_objext conftest.$ac_ext
5478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5479 echo "${ECHO_T}$ac_header_compiler" >&6
5481 # Is the header present?
5482 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5483 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5484 cat >conftest.$ac_ext <<_ACEOF
5485 #line $LINENO "configure"
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h. */
5491 #include <${with_readline}/readline.h>
5493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5496 grep -v '^ *+' conftest.er1 >conftest.err
5498 cat conftest.err >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); } >/dev/null; then
5501 if test -s conftest.err; then
5502 ac_cpp_err=$ac_c_preproc_warn_flag
5509 if test -z "$ac_cpp_err"; then
5510 ac_header_preproc=yes
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5515 ac_header_preproc=no
5517 rm -f conftest.err conftest.$ac_ext
5518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5519 echo "${ECHO_T}$ac_header_preproc" >&6
5521 # So? What about this header?
5522 case $ac_header_compiler:$ac_header_preproc in
5524 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5525 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5526 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5527 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5530 ## ------------------------------------ ##
5531 ## Report this to bug-autoconf@gnu.org. ##
5532 ## ------------------------------------ ##
5535 sed "s/^/$as_me: WARNING: /" >&2
5538 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5539 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5540 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5541 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5542 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5543 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5546 ## ------------------------------------ ##
5547 ## Report this to bug-autoconf@gnu.org. ##
5548 ## ------------------------------------ ##
5551 sed "s/^/$as_me: WARNING: /" >&2
5554 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5555 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 eval "$as_ac_Header=$ac_header_preproc"
5561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5566 cat >>confdefs.h <<\_ACEOF
5567 #define HAVE_READLINE 1
5570 CONS_LIBS="-lreadline -ltermcap"
5575 echo "readline.h not found. readline turned off ..."
5587 # check for standard readline library
5588 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5589 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5590 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5591 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5595 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5597 # Is the header compilable?
5598 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5599 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5600 cat >conftest.$ac_ext <<_ACEOF
5601 #line $LINENO "configure"
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h. */
5607 $ac_includes_default
5608 #include </usr/include/readline/readline.h>
5610 rm -f conftest.$ac_objext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5612 (eval $ac_compile) 2>&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 { ac_try='test -s conftest.$ac_objext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_header_compiler=yes
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5627 ac_header_compiler=no
5629 rm -f conftest.$ac_objext conftest.$ac_ext
5630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5631 echo "${ECHO_T}$ac_header_compiler" >&6
5633 # Is the header present?
5634 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5635 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5636 cat >conftest.$ac_ext <<_ACEOF
5637 #line $LINENO "configure"
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5643 #include </usr/include/readline/readline.h>
5645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5648 grep -v '^ *+' conftest.er1 >conftest.err
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } >/dev/null; then
5653 if test -s conftest.err; then
5654 ac_cpp_err=$ac_c_preproc_warn_flag
5661 if test -z "$ac_cpp_err"; then
5662 ac_header_preproc=yes
5664 echo "$as_me: failed program was:" >&5
5665 sed 's/^/| /' conftest.$ac_ext >&5
5667 ac_header_preproc=no
5669 rm -f conftest.err conftest.$ac_ext
5670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5671 echo "${ECHO_T}$ac_header_preproc" >&6
5673 # So? What about this header?
5674 case $ac_header_compiler:$ac_header_preproc in
5676 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5677 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5678 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5679 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5682 ## ------------------------------------ ##
5683 ## Report this to bug-autoconf@gnu.org. ##
5684 ## ------------------------------------ ##
5687 sed "s/^/$as_me: WARNING: /" >&2
5690 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5691 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5692 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5693 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5694 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5695 echo "$as_me: WARNING: /usr/include/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: checking for /usr/include/readline/readline.h" >&5
5707 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5708 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5713 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5714 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5717 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5718 cat >>confdefs.h <<\_ACEOF
5719 #define HAVE_READLINE 1
5723 CONS_INC="-I/usr/include/readline"
5724 CONS_LIBS="-lreadline -ltermcap"
5728 # Did not find standard library, so try Bacula's default
5729 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5731 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5732 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5739 # Is the header compilable?
5740 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5741 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5742 cat >conftest.$ac_ext <<_ACEOF
5743 #line $LINENO "configure"
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749 $ac_includes_default
5750 #include <${TOP_DIR}/depkgs/readline/readline.h>
5752 rm -f conftest.$ac_objext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754 (eval $ac_compile) 2>&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } &&
5758 { ac_try='test -s conftest.$ac_objext'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
5764 ac_header_compiler=yes
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5769 ac_header_compiler=no
5771 rm -f conftest.$ac_objext conftest.$ac_ext
5772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5773 echo "${ECHO_T}$ac_header_compiler" >&6
5775 # Is the header present?
5776 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5777 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5778 cat >conftest.$ac_ext <<_ACEOF
5779 #line $LINENO "configure"
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5785 #include <${TOP_DIR}/depkgs/readline/readline.h>
5787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5790 grep -v '^ *+' conftest.er1 >conftest.err
5792 cat conftest.err >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } >/dev/null; then
5795 if test -s conftest.err; then
5796 ac_cpp_err=$ac_c_preproc_warn_flag
5803 if test -z "$ac_cpp_err"; then
5804 ac_header_preproc=yes
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5809 ac_header_preproc=no
5811 rm -f conftest.err conftest.$ac_ext
5812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5813 echo "${ECHO_T}$ac_header_preproc" >&6
5815 # So? What about this header?
5816 case $ac_header_compiler:$ac_header_preproc in
5818 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5819 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5820 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5821 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5824 ## ------------------------------------ ##
5825 ## Report this to bug-autoconf@gnu.org. ##
5826 ## ------------------------------------ ##
5829 sed "s/^/$as_me: WARNING: /" >&2
5832 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5833 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5834 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5835 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5836 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5837 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5840 ## ------------------------------------ ##
5841 ## Report this to bug-autoconf@gnu.org. ##
5842 ## ------------------------------------ ##
5845 sed "s/^/$as_me: WARNING: /" >&2
5848 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5849 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 eval "$as_ac_Header=$ac_header_preproc"
5855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5860 cat >>confdefs.h <<\_ACEOF
5861 #define HAVE_READLINE 1
5865 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5866 CONS_LIBS="-lreadline -lhistory -ltermcap"
5867 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5868 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5872 echo "readline.h not found. readline turned off ..."
5898 # Minimal stuff for readline Makefile configuration
5901 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5902 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5903 if test "${ac_cv_header_stat_broken+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 cat >conftest.$ac_ext <<_ACEOF
5907 #line $LINENO "configure"
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5913 #include <sys/types.h>
5914 #include <sys/stat.h>
5916 #if defined(S_ISBLK) && defined(S_IFDIR)
5917 # if S_ISBLK (S_IFDIR)
5922 #if defined(S_ISBLK) && defined(S_IFCHR)
5923 # if S_ISBLK (S_IFCHR)
5928 #if defined(S_ISLNK) && defined(S_IFREG)
5929 # if S_ISLNK (S_IFREG)
5934 #if defined(S_ISSOCK) && defined(S_IFREG)
5935 # if S_ISSOCK (S_IFREG)
5941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5942 $EGREP "You lose" >/dev/null 2>&1; then
5943 ac_cv_header_stat_broken=yes
5945 ac_cv_header_stat_broken=no
5950 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5951 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5952 if test $ac_cv_header_stat_broken = yes; then
5954 cat >>confdefs.h <<\_ACEOF
5955 #define STAT_MACROS_BROKEN 1
5966 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5967 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5968 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5969 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 cat >conftest.$ac_ext <<_ACEOF
5974 #line $LINENO "configure"
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 #include <sys/types.h>
5992 rm -f conftest.$ac_objext
5993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5994 (eval $ac_compile) 2>&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } &&
5998 { ac_try='test -s conftest.$ac_objext'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
6004 eval "$as_ac_Header=yes"
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6009 eval "$as_ac_Header=no"
6011 rm -f conftest.$ac_objext conftest.$ac_ext
6013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6016 cat >>confdefs.h <<_ACEOF
6017 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6020 ac_header_dirent=$ac_hdr; break
6024 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6025 if test $ac_header_dirent = dirent.h; then
6026 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6027 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6028 if test "${ac_cv_search_opendir+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 ac_func_search_save_LIBS=$LIBS
6032 ac_cv_search_opendir=no
6033 cat >conftest.$ac_ext <<_ACEOF
6034 #line $LINENO "configure"
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6041 /* Override any gcc2 internal prototype to avoid an error. */
6045 /* We use char because int might match the return type of a gcc2
6046 builtin and then its argument prototype would still apply. */
6056 rm -f conftest.$ac_objext conftest$ac_exeext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6058 (eval $ac_link) 2>&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } &&
6062 { ac_try='test -s conftest$ac_exeext'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6068 ac_cv_search_opendir="none required"
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6075 if test "$ac_cv_search_opendir" = no; then
6076 for ac_lib in dir; do
6077 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6078 cat >conftest.$ac_ext <<_ACEOF
6079 #line $LINENO "configure"
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6086 /* Override any gcc2 internal prototype to avoid an error. */
6090 /* We use char because int might match the return type of a gcc2
6091 builtin and then its argument prototype would still apply. */
6101 rm -f conftest.$ac_objext conftest$ac_exeext
6102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6103 (eval $ac_link) 2>&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try='test -s conftest$ac_exeext'
6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; }; then
6113 ac_cv_search_opendir="-l$ac_lib"
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6123 LIBS=$ac_func_search_save_LIBS
6125 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6126 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6127 if test "$ac_cv_search_opendir" != no; then
6128 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6133 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6134 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6135 if test "${ac_cv_search_opendir+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 ac_func_search_save_LIBS=$LIBS
6139 ac_cv_search_opendir=no
6140 cat >conftest.$ac_ext <<_ACEOF
6141 #line $LINENO "configure"
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h. */
6148 /* Override any gcc2 internal prototype to avoid an error. */
6152 /* We use char because int might match the return type of a gcc2
6153 builtin and then its argument prototype would still apply. */
6163 rm -f conftest.$ac_objext conftest$ac_exeext
6164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6165 (eval $ac_link) 2>&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try='test -s conftest$ac_exeext'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; }; then
6175 ac_cv_search_opendir="none required"
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6182 if test "$ac_cv_search_opendir" = no; then
6184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6185 cat >conftest.$ac_ext <<_ACEOF
6186 #line $LINENO "configure"
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6193 /* Override any gcc2 internal prototype to avoid an error. */
6197 /* We use char because int might match the return type of a gcc2
6198 builtin and then its argument prototype would still apply. */
6208 rm -f conftest.$ac_objext conftest$ac_exeext
6209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6210 (eval $ac_link) 2>&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } &&
6214 { ac_try='test -s conftest$ac_exeext'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; }; then
6220 ac_cv_search_opendir="-l$ac_lib"
6223 echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6230 LIBS=$ac_func_search_save_LIBS
6232 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6233 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6234 if test "$ac_cv_search_opendir" != no; then
6235 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6249 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6252 echo "$as_me:$LINENO: checking for $ac_func" >&5
6253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6254 if eval "test \"\${$as_ac_var+set}\" = set"; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 cat >conftest.$ac_ext <<_ACEOF
6258 #line $LINENO "configure"
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h. */
6264 /* System header to define __stub macros and hopefully few prototypes,
6265 which can conflict with char $ac_func (); below.
6266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6267 <limits.h> exists even on freestanding compilers. */
6269 # include <limits.h>
6271 # include <assert.h>
6273 /* Override any gcc2 internal prototype to avoid an error. */
6278 /* We use char because int might match the return type of a gcc2
6279 builtin and then its argument prototype would still apply. */
6281 /* The GNU C library defines this for functions which it implements
6282 to always fail with ENOSYS. Some functions are actually named
6283 something starting with __ and the normal name is an alias. */
6284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6287 char (*f) () = $ac_func;
6296 return f != $ac_func;
6301 rm -f conftest.$ac_objext conftest$ac_exeext
6302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6303 (eval $ac_link) 2>&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } &&
6307 { ac_try='test -s conftest$ac_exeext'
6308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; }; then
6313 eval "$as_ac_var=yes"
6315 echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6318 eval "$as_ac_var=no"
6320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6324 if test `eval echo '${'$as_ac_var'}'` = yes; then
6325 cat >>confdefs.h <<_ACEOF
6326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6334 for ac_func in nanosleep nl_langinfo
6336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6337 echo "$as_me:$LINENO: checking for $ac_func" >&5
6338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6339 if eval "test \"\${$as_ac_var+set}\" = set"; then
6340 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 cat >conftest.$ac_ext <<_ACEOF
6343 #line $LINENO "configure"
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6349 /* System header to define __stub macros and hopefully few prototypes,
6350 which can conflict with char $ac_func (); below.
6351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6352 <limits.h> exists even on freestanding compilers. */
6354 # include <limits.h>
6356 # include <assert.h>
6358 /* Override any gcc2 internal prototype to avoid an error. */
6363 /* We use char because int might match the return type of a gcc2
6364 builtin and then its argument prototype would still apply. */
6366 /* The GNU C library defines this for functions which it implements
6367 to always fail with ENOSYS. Some functions are actually named
6368 something starting with __ and the normal name is an alias. */
6369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6372 char (*f) () = $ac_func;
6381 return f != $ac_func;
6386 rm -f conftest.$ac_objext conftest$ac_exeext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6388 (eval $ac_link) 2>&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try='test -s conftest$ac_exeext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6398 eval "$as_ac_var=yes"
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6403 eval "$as_ac_var=no"
6405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6409 if test `eval echo '${'$as_ac_var'}'` = yes; then
6410 cat >>confdefs.h <<_ACEOF
6411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6418 for ac_header in varargs.h
6420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6422 echo "$as_me:$LINENO: checking for $ac_header" >&5
6423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6430 # Is the header compilable?
6431 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6433 cat >conftest.$ac_ext <<_ACEOF
6434 #line $LINENO "configure"
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6440 $ac_includes_default
6441 #include <$ac_header>
6443 rm -f conftest.$ac_objext
6444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6445 (eval $ac_compile) 2>&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -s conftest.$ac_objext'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; }; then
6455 ac_header_compiler=yes
6457 echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6460 ac_header_compiler=no
6462 rm -f conftest.$ac_objext conftest.$ac_ext
6463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6464 echo "${ECHO_T}$ac_header_compiler" >&6
6466 # Is the header present?
6467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6469 cat >conftest.$ac_ext <<_ACEOF
6470 #line $LINENO "configure"
6473 cat confdefs.h >>conftest.$ac_ext
6474 cat >>conftest.$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6476 #include <$ac_header>
6478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6481 grep -v '^ *+' conftest.er1 >conftest.err
6483 cat conftest.err >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } >/dev/null; then
6486 if test -s conftest.err; then
6487 ac_cpp_err=$ac_c_preproc_warn_flag
6494 if test -z "$ac_cpp_err"; then
6495 ac_header_preproc=yes
6497 echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6500 ac_header_preproc=no
6502 rm -f conftest.err conftest.$ac_ext
6503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6504 echo "${ECHO_T}$ac_header_preproc" >&6
6506 # So? What about this header?
6507 case $ac_header_compiler:$ac_header_preproc in
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6515 ## ------------------------------------ ##
6516 ## Report this to bug-autoconf@gnu.org. ##
6517 ## ------------------------------------ ##
6520 sed "s/^/$as_me: WARNING: /" >&2
6523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6531 ## ------------------------------------ ##
6532 ## Report this to bug-autoconf@gnu.org. ##
6533 ## ------------------------------------ ##
6536 sed "s/^/$as_me: WARNING: /" >&2
6539 echo "$as_me:$LINENO: checking for $ac_header" >&5
6540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6542 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 eval "$as_ac_Header=$ac_header_preproc"
6546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6551 cat >>confdefs.h <<_ACEOF
6552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6560 # End of readline/conio stuff
6561 # -----------------------------------------------------------------------
6564 # ---------------------------------------------------
6565 # Check for GMP support/directory
6566 # ---------------------------------------------------
6570 # [ --with-gmp[=DIR] Specify gmp library directory],
6572 # case "$with_gmp" in
6575 # if test "$with_gmp" != "yes"; then
6576 # GMP_INC="-I$with_gmp"
6578 # GMP_LDFLAGS="-L$with_gmp"
6580 # with_gmp="/usr/include"
6582 # AC_CHECK_HEADER($with_gmp/gmp.h,
6583 # [ AC_MSG_RESULT(yes)
6584 # AC_DEFINE(HAVE_GMP)
6588 # [ AC_MSG_ERROR([*** gmp library missing])
6594 # # check for standard gmp library
6595 # AC_CHECK_HEADER(/usr/include/gmp.h,
6596 # [ AC_MSG_RESULT(yes)
6597 # AC_DEFINE(HAVE_GMP)
6602 # # Did not find standard library, so use our own
6603 # AC_MSG_RESULT(yes)
6604 # AC_DEFINE(HAVE_GMP)
6607 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6609 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6610 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6616 #AC_SUBST(GMP_LDFLAGS)
6620 # -----------------------------------------------------------------------
6623 # ---------------------------------------------------
6624 # Check for CWEB support/directory
6625 # ---------------------------------------------------
6630 # [ --with-cweb[=DIR] Specify cweb library directory],
6632 # case "$with_cweb" in
6635 # if test "$with_cweb" != "yes"; then
6636 # CWEB_INC="-I$with_cweb"
6637 # CWEB_LIBS="-lcweb"
6638 # CWEB_LDFLAGS="-L$with_cweb"
6640 # with_cweb="/usr/include"
6642 # AC_CHECK_HEADER($with_cweb/cweb.h,
6643 # [ AC_MSG_RESULT(yes)
6644 # AC_DEFINE(HAVE_CWEB)
6645 # CWEB_LIBS="-lcweb"
6648 # [ AC_MSG_ERROR([*** cweb library missing])
6654 # # check for standard cweb library
6655 # AC_CHECK_HEADER(/usr/include/cweb.h,
6656 # [ AC_MSG_RESULT(yes)
6657 # AC_DEFINE(HAVE_CWEB)
6660 # CWEB_LIBS="-lcweb"
6662 # # Did not find starndard library, so use our own
6663 # AC_MSG_RESULT(yes)
6664 # AC_DEFINE(HAVE_CWEB)
6667 # CWEB=${TOP_DIR}/depkgs/cweb
6668 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6669 # CWEB_LIBS="-lcweb"
6670 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6671 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6677 #AC_SUBST(CWEB_LIBS)
6678 #AC_SUBST(CWEB_LDFLAGS)
6682 # -----------------------------------------------------------------------
6686 # -----------------------------------------------------------
6687 # Check whether user wants TCP wrappers support (default off)
6688 # -----------------------------------------------------------
6691 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6692 if test "${with_tcp_wrappers+set}" = set; then
6693 withval="$with_tcp_wrappers"
6695 if test "x$withval" != "xno" ; then
6697 LIBS="$saved_LIBS -lwrap"
6698 echo "$as_me:$LINENO: checking for libwrap" >&5
6699 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6700 cat >conftest.$ac_ext <<_ACEOF
6701 #line $LINENO "configure"
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6708 int deny_severity = 0;
6709 int allow_severity = 0;
6710 struct request_info *req;
6719 rm -f conftest.$ac_objext conftest$ac_exeext
6720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6721 (eval $ac_link) 2>&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } &&
6725 { ac_try='test -s conftest$ac_exeext'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; }; then
6732 echo "$as_me:$LINENO: result: yes" >&5
6733 echo "${ECHO_T}yes" >&6
6734 cat >>confdefs.h <<\_ACEOF
6735 #define HAVE_LIBWRAP 1
6741 echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6745 LIBS="$saved_LIBS -lwrap -lnsl"
6746 cat >conftest.$ac_ext <<_ACEOF
6747 #line $LINENO "configure"
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6754 int deny_severity = 0;
6755 int allow_severity = 0;
6756 struct request_info *req;
6765 rm -f conftest.$ac_objext conftest$ac_exeext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6767 (eval $ac_link) 2>&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); } &&
6771 { ac_try='test -s conftest$ac_exeext'
6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6778 echo "$as_me:$LINENO: result: yes" >&5
6779 echo "${ECHO_T}yes" >&6
6780 cat >>confdefs.h <<\_ACEOF
6781 #define HAVE_LIBWRAP 1
6787 echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6790 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6791 echo "$as_me: error: *** libwrap missing" >&2;}
6792 { (exit 1); exit 1; }; }
6795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6804 # ------------------------------------------
6805 # Where to place working dir
6806 # ------------------------------------------
6807 working_dir=`eval echo ${prefix}/var/bacula/working`
6809 # Check whether --with-working-dir or --without-working-dir was given.
6810 if test "${with_working_dir+set}" = set; then
6811 withval="$with_working_dir"
6813 if test "x$withval" != "xno" ; then
6814 working_dir=$withval
6823 # ------------------------------------------
6824 # Where to place scriptdir (script files)
6825 # ------------------------------------------
6826 scriptdir=`eval echo ${sysconfdir}`
6828 # Check whether --with-scriptdir or --without-scriptdir was given.
6829 if test "${with_scriptdir+set}" = set; then
6830 withval="$with_scriptdir"
6832 if test "x$withval" != "xno" ; then
6842 # ------------------------------------------
6843 # Where to send dump email
6844 # ------------------------------------------
6845 dump_email=root@localhost
6847 # Check whether --with-dump-email or --without-dump-email was given.
6848 if test "${with_dump_email+set}" = set; then
6849 withval="$with_dump_email"
6851 if test "x$withval" != "xno" ; then
6860 # ------------------------------------------
6861 # Where to send job email
6862 # ------------------------------------------
6863 job_email=root@localhost
6865 # Check whether --with-job-email or --without-job-email was given.
6866 if test "${with_job_email+set}" = set; then
6867 withval="$with_job_email"
6869 if test "x$withval" != "xno" ; then
6878 # ------------------------------------------
6879 # Where to find smtp host
6880 # ------------------------------------------
6883 # Check whether --with-smtp_host or --without-smtp_host was given.
6884 if test "${with_smtp_host+set}" = set; then
6885 withval="$with_smtp_host"
6887 if test "x$withval" != "xno" ; then
6897 # ------------------------------------
6898 # Where to place pid files
6899 # ------------------------------------
6902 # Check whether --with-pid-dir or --without-pid-dir was given.
6903 if test "${with_pid_dir+set}" = set; then
6904 withval="$with_pid_dir"
6906 if test "x$withval" != "xno" ; then
6913 cat >>confdefs.h <<_ACEOF
6914 #define _PATH_BACULA_PIDDIR "$piddir"
6920 # ------------------------------------
6921 # Where to place subsys "lock file"
6922 # ------------------------------------
6923 subsysdir=/var/run/subsys
6925 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6926 if test "${with_subsys_dir+set}" = set; then
6927 withval="$with_subsys_dir"
6929 if test "x$withval" != "xno" ; then
6940 # ------------------------------------
6941 # Where to start assigning ports
6942 # ------------------------------------
6945 # Check whether --with-baseport or --without-baseport was given.
6946 if test "${with_baseport+set}" = set; then
6947 withval="$with_baseport"
6949 if test "x$withval" != "xno" ; then
6957 dir_port=`expr $baseport`
6958 fd_port=`expr $baseport + 1`
6959 sd_port=`expr $fd_port + 1`
6966 # ------------------------------------------
6967 # Generate passwords
6968 # ------------------------------------------
6971 # Check whether --with-dir-password or --without-dir-password was given.
6972 if test "${with_dir_password+set}" = set; then
6973 withval="$with_dir_password"
6975 if test "x$withval" != "xno" ; then
6976 dir_password=$withval
6982 if test "x$dir_password" = "x" ; then
6983 if test "x$OPENSSL" = "xnone" ; then
6984 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6985 key=`autoconf/randpass 33`
6987 key=`openssl rand -base64 33`
6994 # Check whether --with-fd-password or --without-fd-password was given.
6995 if test "${with_fd_password+set}" = set; then
6996 withval="$with_fd_password"
6998 if test "x$withval" != "xno" ; then
6999 fd_password=$withval
7005 if test "x$fd_password" = "x" ; then
7006 if test "x$OPENSSL" = "xnone" ; then
7007 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7008 key=`autoconf/randpass 37`
7010 key=`openssl rand -base64 33`
7017 # Check whether --with-sd-password or --without-sd-password was given.
7018 if test "${with_sd_password+set}" = set; then
7019 withval="$with_sd_password"
7021 if test "x$withval" != "xno" ; then
7022 sd_password=$withval
7028 if test "x$sd_password" = "x" ; then
7029 if test "x$OPENSSL" = "xnone" ; then
7030 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7031 key=`autoconf/randpass 41`
7033 key=`openssl rand -base64 33`
7045 # Handle users and groups for each daemon
7049 # Check whether --with-dir_user or --without-dir_user was given.
7050 if test "${with_dir_user+set}" = set; then
7051 withval="$with_dir_user"
7053 if test "x$withval" != "x" ; then
7062 # Check whether --with-dir_group or --without-dir_group was given.
7063 if test "${with_dir_group+set}" = set; then
7064 withval="$with_dir_group"
7066 if test "x$withval" != "x" ; then
7075 # Check whether --with-sd_user or --without-sd_user was given.
7076 if test "${with_sd_user+set}" = set; then
7077 withval="$with_sd_user"
7079 if test "x$withval" != "x" ; then
7088 # Check whether --with-sd_group or --without-sd_group was given.
7089 if test "${with_sd_group+set}" = set; then
7090 withval="$with_sd_group"
7092 if test "x$withval" != "x" ; then
7101 # Check whether --with-fd_user or --without-fd_user was given.
7102 if test "${with_fd_user+set}" = set; then
7103 withval="$with_fd_user"
7105 if test "x$withval" != "x" ; then
7114 # Check whether --with-fd_group or --without-fd_group was given.
7115 if test "${with_fd_group+set}" = set; then
7116 withval="$with_fd_group"
7118 if test "x$withval" != "x" ; then
7136 # allow setting default executable permissions
7140 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7141 if test "${with_sbin_perm+set}" = set; then
7142 withval="$with_sbin_perm"
7144 if test "x$withval" != "x" ; then
7153 # ------------------------------------------------
7154 # Bacula check for various SQL database engines
7155 # ------------------------------------------------
7158 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7159 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7161 # Check whether --with-postgresql or --without-postgresql was given.
7162 if test "${with_postgresql+set}" = set; then
7163 withval="$with_postgresql"
7165 if test "$withval" != "no"; then
7166 if test "$db_found" = "yes"; then
7167 echo "$as_me:$LINENO: result: error" >&5
7168 echo "${ECHO_T}error" >&6
7169 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7170 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7171 { (exit 1); exit 1; }; };
7173 if test "$withval" = "yes"; then
7174 if test -f /usr/local/include/libpq-fe.h; then
7175 POSTGRESQL_INCDIR=/usr/local/include
7176 POSTGRESQL_LIBDIR=/usr/local/lib
7177 POSTGRESQL_BINDIR=/usr/local/bin
7178 elif test -f /usr/include/libpq-fe.h; then
7179 POSTGRESQL_INCDIR=/usr/include
7180 POSTGRESQL_LIBDIR=/usr/lib
7181 POSTGRESQL_BINDIR=/usr/bin
7182 elif test -f /usr/include/pgsql/libpq-fe.h; then
7183 POSTGRESQL_INCDIR=/usr/include/pgsql
7184 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7185 POSTGRESQL_BINDIR=/usr/bin
7186 elif test -f /usr/include/postgresql/libpq-fe.h; then
7187 POSTGRESQL_INCDIR=/usr/include/postgresql
7188 POSTGRESQL_LIBDIR=/usr/lib/postgresql
7189 POSTGRESQL_BINDIR=/usr/bin
7191 echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6
7193 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7194 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7195 { (exit 1); exit 1; }; }
7197 elif test -f $withval/include/libpq-fe.h; then
7198 POSTGRESQL_INCDIR=$withval/include
7199 POSTGRESQL_LIBDIR=$withval/lib
7200 POSTGRESQL_BINDIR=$withval/bin
7202 echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6
7204 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7205 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7206 { (exit 1); exit 1; }; }
7208 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7209 echo "$as_me:$LINENO: checking for crypt" >&5
7210 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7211 if test "${ac_cv_func_crypt+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 cat >conftest.$ac_ext <<_ACEOF
7215 #line $LINENO "configure"
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7221 /* System header to define __stub macros and hopefully few prototypes,
7222 which can conflict with char crypt (); below.
7223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7224 <limits.h> exists even on freestanding compilers. */
7226 # include <limits.h>
7228 # include <assert.h>
7230 /* Override any gcc2 internal prototype to avoid an error. */
7235 /* We use char because int might match the return type of a gcc2
7236 builtin and then its argument prototype would still apply. */
7238 /* The GNU C library defines this for functions which it implements
7239 to always fail with ENOSYS. Some functions are actually named
7240 something starting with __ and the normal name is an alias. */
7241 #if defined (__stub_crypt) || defined (__stub___crypt)
7244 char (*f) () = crypt;
7258 rm -f conftest.$ac_objext conftest$ac_exeext
7259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7260 (eval $ac_link) 2>&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } &&
7264 { ac_try='test -s conftest$ac_exeext'
7265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; }; then
7270 ac_cv_func_crypt=yes
7272 echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7279 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7280 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7281 if test $ac_cv_func_crypt = yes; then
7284 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7285 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7286 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 ac_check_lib_save_LIBS=$LIBS
7290 LIBS="-lcrypt $LIBS"
7291 cat >conftest.$ac_ext <<_ACEOF
7292 #line $LINENO "configure"
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7299 /* Override any gcc2 internal prototype to avoid an error. */
7303 /* We use char because int might match the return type of a gcc2
7304 builtin and then its argument prototype would still apply. */
7314 rm -f conftest.$ac_objext conftest$ac_exeext
7315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7316 (eval $ac_link) 2>&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); } &&
7320 { ac_try='test -s conftest$ac_exeext'
7321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); }; }; then
7326 ac_cv_lib_crypt_crypt=yes
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7331 ac_cv_lib_crypt_crypt=no
7333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7334 LIBS=$ac_check_lib_save_LIBS
7336 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7337 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7338 if test $ac_cv_lib_crypt_crypt = yes; then
7339 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7344 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7345 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7346 SQL_BINDIR=$POSTGRESQL_BINDIR
7347 cat >>confdefs.h <<\_ACEOF
7348 #define HAVE_POSTGRESQL 1
7351 echo "$as_me:$LINENO: result: yes" >&5
7352 echo "${ECHO_T}yes" >&6
7354 support_postgresql=yes
7358 echo "$as_me:$LINENO: result: no" >&5
7359 echo "${ECHO_T}no" >&6
7364 echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7376 echo "$as_me:$LINENO: checking for MySQL support" >&5
7377 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7379 # Check whether --with-mysql or --without-mysql was given.
7380 if test "${with_mysql+set}" = set; then
7381 withval="$with_mysql"
7383 if test "$withval" != "no"; then
7384 if test "$withval" = "yes"; then
7385 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7386 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7387 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7388 MYSQL_BINDIR=/usr/local/mysql/bin
7389 elif test -f /usr/include/mysql/mysql.h; then
7390 MYSQL_INCDIR=/usr/include/mysql
7391 MYSQL_LIBDIR=/usr/lib/mysql
7392 MYSQL_BINDIR=/usr/bin
7393 elif test -f /usr/include/mysql.h; then
7394 MYSQL_INCDIR=/usr/include
7395 MYSQL_LIBDIR=/usr/lib
7396 MYSQL_BINDIR=/usr/bin
7397 elif test -f /usr/local/include/mysql/mysql.h; then
7398 MYSQL_INCDIR=/usr/local/include/mysql
7399 MYSQL_LIBDIR=/usr/local/lib/mysql
7400 MYSQL_BINDIR=/usr/local/bin
7401 elif test -f /usr/local/include/mysql.h; then
7402 MYSQL_INCDIR=/usr/local/include
7403 MYSQL_LIBDIR=/usr/local/lib
7404 MYSQL_BINDIR=/usr/local/bin
7406 echo "$as_me:$LINENO: result: no" >&5
7407 echo "${ECHO_T}no" >&6
7408 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7409 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7410 { (exit 1); exit 1; }; }
7413 if test -f $withval/include/mysql/mysql.h; then
7414 MYSQL_INCDIR=$withval/include/mysql
7415 MYSQL_LIBDIR=$withval/lib/mysql
7416 MYSQL_BINDIR=$withval/bin
7417 elif test -f $withval/include/mysql.h; then
7418 MYSQL_INCDIR=$withval/include
7419 MYSQL_LIBDIR=$withval/lib
7420 MYSQL_BINDIR=$withval/bin
7422 echo "$as_me:$LINENO: result: no" >&5
7423 echo "${ECHO_T}no" >&6
7424 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7425 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7426 { (exit 1); exit 1; }; }
7429 SQL_INCLUDE=-I$MYSQL_INCDIR
7430 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7431 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7432 cat >>confdefs.h <<\_ACEOF
7433 #define HAVE_THREAD_SAFE_MYSQL 1
7437 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7439 SQL_BINDIR=$MYSQL_BINDIR
7441 cat >>confdefs.h <<\_ACEOF
7442 #define HAVE_MYSQL 1
7445 echo "$as_me:$LINENO: result: yes" >&5
7446 echo "${ECHO_T}yes" >&6
7453 echo "$as_me:$LINENO: result: no" >&5
7454 echo "${ECHO_T}no" >&6
7461 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7462 if test "${with_embedded_mysql+set}" = set; then
7463 withval="$with_embedded_mysql"
7465 if test "$withval" != "no"; then
7466 if test "$withval" = "yes"; then
7467 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7468 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7469 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7470 MYSQL_BINDIR=/usr/local/mysql/bin
7471 elif test -f /usr/include/mysql/mysql.h; then
7472 MYSQL_INCDIR=/usr/include/mysql
7473 MYSQL_LIBDIR=/usr/lib/mysql
7474 MYSQL_BINDIR=/usr/bin
7475 elif test -f /usr/include/mysql.h; then
7476 MYSQL_INCDIR=/usr/include
7477 MYSQL_LIBDIR=/usr/lib
7478 MYSQL_BINDIR=/usr/bin
7479 elif test -f /usr/local/include/mysql/mysql.h; then
7480 MYSQL_INCDIR=/usr/local/include/mysql
7481 MYSQL_LIBDIR=/usr/local/lib/mysql
7482 MYSQL_BINDIR=/usr/local/bin
7483 elif test -f /usr/local/include/mysql.h; then
7484 MYSQL_INCDIR=/usr/local/include
7485 MYSQL_LIBDIR=/usr/local/lib
7486 MYSQL_BINDIR=/usr/local/bin
7488 echo "$as_me:$LINENO: result: no" >&5
7489 echo "${ECHO_T}no" >&6
7490 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7491 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7492 { (exit 1); exit 1; }; }
7495 if test -f $withval/include/mysql/mysql.h; then
7496 MYSQL_INCDIR=$withval/include/mysql
7497 MYSQL_LIBDIR=$withval/lib/mysql
7498 MYSQL_BINDIR=$withval/bin
7499 elif test -f $withval/include/mysql.h; then
7500 MYSQL_INCDIR=$withval/include
7501 MYSQL_LIBDIR=$withval/lib
7502 MYSQL_BINDIR=$withval/bin
7504 echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6
7506 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7507 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7508 { (exit 1); exit 1; }; }
7511 SQL_INCLUDE=-I$MYSQL_INCDIR
7512 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7513 SQL_BINDIR=$MYSQL_BINDIR
7515 cat >>confdefs.h <<\_ACEOF
7516 #define HAVE_MYSQL 1
7519 cat >>confdefs.h <<\_ACEOF
7520 #define HAVE_EMBEDDED_MYSQL 1
7523 echo "$as_me:$LINENO: result: yes" >&5
7524 echo "${ECHO_T}yes" >&6
7531 echo "$as_me:$LINENO: result: no" >&5
7532 echo "${ECHO_T}no" >&6
7547 echo "$as_me:$LINENO: checking for SQLite support" >&5
7548 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7550 # Check whether --with-sqlite or --without-sqlite was given.
7551 if test "${with_sqlite+set}" = set; then
7552 withval="$with_sqlite"
7554 if test "$withval" != "no"; then
7555 if test "$withval" = "yes"; then
7556 if test -f /usr/local/include/sqlite.h; then
7557 SQLITE_INCDIR=/usr/local/include
7558 SQLITE_LIBDIR=/usr/local/lib
7559 SQLITE_BINDIR=/usr/local/bin
7560 elif test -f /usr/include/sqlite.h; then
7561 SQLITE_INCDIR=/usr/include
7562 SQLITE_LIBDIR=/usr/lib
7563 SQLITE_BINDIR=/usr/bin
7565 echo "$as_me:$LINENO: result: no" >&5
7566 echo "${ECHO_T}no" >&6
7567 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7568 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7569 { (exit 1); exit 1; }; }
7572 if test -f $withval/sqlite.h; then
7573 SQLITE_INCDIR=$withval
7574 SQLITE_LIBDIR=$withval
7575 SQLITE_BINDIR=$withval
7577 echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6
7579 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7580 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7581 { (exit 1); exit 1; }; }
7584 SQL_INCLUDE=-I$SQLITE_INCDIR
7585 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7586 SQL_BINDIR=$SQLITE_BINDIR
7588 cat >>confdefs.h <<\_ACEOF
7589 #define HAVE_SQLITE 1
7592 echo "$as_me:$LINENO: result: yes" >&5
7593 echo "${ECHO_T}yes" >&6
7600 echo "$as_me:$LINENO: result: no" >&5
7601 echo "${ECHO_T}no" >&6
7606 echo "$as_me:$LINENO: result: no" >&5
7607 echo "${ECHO_T}no" >&6
7619 cat >>confdefs.h <<\_ACEOF
7620 #define PROTOTYPES 1
7624 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
7625 if test -z "$CCOPTS"; then
7626 CCOPTS='-g -O2 -Wall'
7634 largefile_support="no"
7636 # Check whether --enable-largefile or --disable-largefile was given.
7637 if test "${enable_largefile+set}" = set; then
7638 enableval="$enable_largefile"
7641 if test "$enable_largefile" != no; then
7642 if test -n "$ac_tool_prefix"; then
7643 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7644 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7645 echo "$as_me:$LINENO: checking for $ac_word" >&5
7646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7647 if test "${ac_cv_prog_GETCONF+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 if test -n "$GETCONF"; then
7651 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7660 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 GETCONF=$ac_cv_prog_GETCONF
7670 if test -n "$GETCONF"; then
7671 echo "$as_me:$LINENO: result: $GETCONF" >&5
7672 echo "${ECHO_T}$GETCONF" >&6
7674 echo "$as_me:$LINENO: result: no" >&5
7675 echo "${ECHO_T}no" >&6
7679 if test -z "$ac_cv_prog_GETCONF"; then
7680 ac_ct_GETCONF=$GETCONF
7681 # Extract the first word of "getconf", so it can be a program name with args.
7682 set dummy getconf; ac_word=$2
7683 echo "$as_me:$LINENO: checking for $ac_word" >&5
7684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7685 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
7688 if test -n "$ac_ct_GETCONF"; then
7689 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695 test -z "$as_dir" && as_dir=.
7696 for ac_exec_ext in '' $ac_executable_extensions; do
7697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7698 ac_cv_prog_ac_ct_GETCONF="getconf"
7699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7708 if test -n "$ac_ct_GETCONF"; then
7709 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7710 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7712 echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6
7716 GETCONF=$ac_ct_GETCONF
7718 GETCONF="$ac_cv_prog_GETCONF"
7721 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7722 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7723 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7727 ac_cv_sys_largefile_CFLAGS=no
7729 # IRIX 6.2 and later require cc -n32.
7730 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7731 if test "$GCC" != yes; then
7732 ac_cv_sys_largefile_CFLAGS=-n32
7735 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7736 cat >conftest.$ac_ext <<_ACEOF
7737 #line $LINENO "configure"
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h. */
7752 rm -f conftest.$ac_objext conftest$ac_exeext
7753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7754 (eval $ac_link) 2>&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } &&
7758 { ac_try='test -s conftest$ac_exeext'
7759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; }; then
7766 echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7769 ac_cv_sys_largefile_CFLAGS=no
7771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7776 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7777 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7778 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7779 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7780 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7784 ac_cv_sys_largefile_LDFLAGS=no
7788 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7789 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7790 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7791 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7792 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7796 ac_cv_sys_largefile_LIBS=no
7800 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7801 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7803 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7806 -D_FILE_OFFSET_BITS=*) ;;
7807 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7808 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7814 '') CPPFLAGS="$ac_flag" ;;
7815 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7823 '') CFLAGS="$ac_flag" ;;
7824 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7829 case "$ac_cv_sys_largefile_LDFLAGS" in
7833 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7834 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7837 case "$ac_cv_sys_largefile_LIBS" in
7841 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7842 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7845 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7846 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7847 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7850 ac_cv_sys_file_offset_bits=no
7852 # HP-UX 10.20 and later
7853 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7854 ac_cv_sys_file_offset_bits=64 ;;
7856 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7858 -D_FILE_OFFSET_BITS)
7859 ac_cv_sys_file_offset_bits=1 ;;
7860 -D_FILE_OFFSET_BITS=*)
7861 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7866 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7867 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7868 if test "$ac_cv_sys_file_offset_bits" != no; then
7870 cat >>confdefs.h <<_ACEOF
7871 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7875 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7876 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7877 if test "${ac_cv_sys_largefile_source+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 ac_cv_sys_largefile_source=no
7882 # HP-UX 10.20 and later
7883 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7884 ac_cv_sys_largefile_source=1 ;;
7886 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7888 -D_LARGEFILE_SOURCE)
7889 ac_cv_sys_largefile_source=1 ;;
7890 -D_LARGEFILE_SOURCE=*)
7891 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7896 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7897 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7898 if test "$ac_cv_sys_largefile_source" != no; then
7900 cat >>confdefs.h <<_ACEOF
7901 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7905 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7906 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7907 if test "${ac_cv_sys_large_files+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 ac_cv_sys_large_files=no
7913 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7914 ac_cv_sys_large_files=1 ;;
7916 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7919 ac_cv_sys_large_files=1 ;;
7921 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7926 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7927 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7928 if test "$ac_cv_sys_large_files" != no; then
7930 cat >>confdefs.h <<_ACEOF
7931 #define _LARGE_FILES $ac_cv_sys_large_files
7939 echo "$as_me:$LINENO: checking for X" >&5
7940 echo $ECHO_N "checking for X... $ECHO_C" >&6
7943 # Check whether --with-x or --without-x was given.
7944 if test "${with_x+set}" = set; then
7948 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7949 if test "x$with_x" = xno; then
7950 # The user explicitly disabled X.
7953 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7954 # Both variables are already set.
7957 if test "${ac_cv_have_x+set}" = set; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
7960 # One or both of the vars are not set, and there is no cached value.
7961 ac_x_includes=no ac_x_libraries=no
7963 if mkdir conftest.dir; then
7965 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7966 cat >Imakefile <<'_ACEOF'
7968 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7970 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7971 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7972 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7973 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7974 for ac_extension in a so sl; do
7975 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7976 test -f $ac_im_libdir/libX11.$ac_extension; then
7977 ac_im_usrlibdir=$ac_im_libdir; break
7980 # Screen out bogus values from the imake configuration. They are
7981 # bogus both because they are the default anyway, and because
7982 # using them would break gcc on systems where it needs fixed includes.
7983 case $ac_im_incroot in
7985 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7987 case $ac_im_usrlibdir in
7989 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7996 # Standard set of common directories for X headers.
7997 # Check X11 before X11Rn because it is often a symlink to the current release.
8009 /usr/local/X11/include
8010 /usr/local/X11R6/include
8011 /usr/local/X11R5/include
8012 /usr/local/X11R4/include
8014 /usr/local/include/X11
8015 /usr/local/include/X11R6
8016 /usr/local/include/X11R5
8017 /usr/local/include/X11R4
8021 /usr/XFree86/include/X11
8025 /usr/unsupported/include
8027 /usr/local/x11r5/include
8028 /usr/lpp/Xamples/include
8030 /usr/openwin/include
8031 /usr/openwin/share/include'
8033 if test "$ac_x_includes" = no; then
8034 # Guess where to find include files, by looking for Intrinsic.h.
8035 # First, try using that file with no special directory specified.
8036 cat >conftest.$ac_ext <<_ACEOF
8037 #line $LINENO "configure"
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8043 #include <X11/Intrinsic.h>
8045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8048 grep -v '^ *+' conftest.er1 >conftest.err
8050 cat conftest.err >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } >/dev/null; then
8053 if test -s conftest.err; then
8054 ac_cpp_err=$ac_c_preproc_warn_flag
8061 if test -z "$ac_cpp_err"; then
8062 # We can compile using X headers with no special include directory.
8065 echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8068 for ac_dir in $ac_x_header_dirs; do
8069 if test -r "$ac_dir/X11/Intrinsic.h"; then
8070 ac_x_includes=$ac_dir
8075 rm -f conftest.err conftest.$ac_ext
8076 fi # $ac_x_includes = no
8078 if test "$ac_x_libraries" = no; then
8079 # Check for the libraries.
8080 # See if we find them without any special options.
8081 # Don't add to $LIBS permanently.
8084 cat >conftest.$ac_ext <<_ACEOF
8085 #line $LINENO "configure"
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 #include <X11/Intrinsic.h>
8100 rm -f conftest.$ac_objext conftest$ac_exeext
8101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8102 (eval $ac_link) 2>&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } &&
8106 { ac_try='test -s conftest$ac_exeext'
8107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; }; then
8113 # We can link X programs with no special library path.
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8120 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8122 # Don't even attempt the hair of trying to link an X program!
8123 for ac_extension in a so sl; do
8124 if test -r $ac_dir/libXt.$ac_extension; then
8125 ac_x_libraries=$ac_dir
8131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8132 fi # $ac_x_libraries = no
8134 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8135 # Didn't find X anywhere. Cache the known absence of X.
8136 ac_cv_have_x="have_x=no"
8138 # Record where we found X for the cache.
8139 ac_cv_have_x="have_x=yes \
8140 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8145 eval "$ac_cv_have_x"
8148 if test "$have_x" != yes; then
8149 echo "$as_me:$LINENO: result: $have_x" >&5
8150 echo "${ECHO_T}$have_x" >&6
8153 # If each of the values was on the command line, it overrides each guess.
8154 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8155 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8156 # Update the cache value to reflect the command line values.
8157 ac_cv_have_x="have_x=yes \
8158 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8159 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8160 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8163 if test "$no_x" = yes; then
8164 # Not all programs may use this symbol, but it does not hurt to define it.
8166 cat >>confdefs.h <<\_ACEOF
8167 #define X_DISPLAY_MISSING 1
8170 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8172 if test -n "$x_includes"; then
8173 X_CFLAGS="$X_CFLAGS -I$x_includes"
8176 # It would also be nice to do this for all -L options, not just this one.
8177 if test -n "$x_libraries"; then
8178 X_LIBS="$X_LIBS -L$x_libraries"
8179 # For Solaris; some versions of Sun CC require a space after -R and
8180 # others require no space. Words are not sufficient . . . .
8181 case `(uname -sr) 2>/dev/null` in
8183 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8184 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8185 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8186 cat >conftest.$ac_ext <<_ACEOF
8187 #line $LINENO "configure"
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h. */
8202 rm -f conftest.$ac_objext conftest$ac_exeext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8204 (eval $ac_link) 2>&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try='test -s conftest$ac_exeext'
8209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; }; then
8216 echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8222 if test $ac_R_nospace = yes; then
8223 echo "$as_me:$LINENO: result: no" >&5
8224 echo "${ECHO_T}no" >&6
8225 X_LIBS="$X_LIBS -R$x_libraries"
8227 LIBS="$ac_xsave_LIBS -R $x_libraries"
8228 cat >conftest.$ac_ext <<_ACEOF
8229 #line $LINENO "configure"
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8244 rm -f conftest.$ac_objext conftest$ac_exeext
8245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8246 (eval $ac_link) 2>&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } &&
8250 { ac_try='test -s conftest$ac_exeext'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; }; then
8258 echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8264 if test $ac_R_space = yes; then
8265 echo "$as_me:$LINENO: result: yes" >&5
8266 echo "${ECHO_T}yes" >&6
8267 X_LIBS="$X_LIBS -R $x_libraries"
8269 echo "$as_me:$LINENO: result: neither works" >&5
8270 echo "${ECHO_T}neither works" >&6
8277 # Check for system-dependent libraries X programs must link with.
8278 # Do this before checking for the system-independent R6 libraries
8279 # (-lICE), since we may need -lsocket or whatever for X linking.
8281 if test "$ISC" = yes; then
8282 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8284 # Martyn Johnson says this is needed for Ultrix, if the X
8285 # libraries were built with DECnet support. And Karl Berry says
8286 # the Alpha needs dnet_stub (dnet does not exist).
8287 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8288 cat >conftest.$ac_ext <<_ACEOF
8289 #line $LINENO "configure"
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8296 /* Override any gcc2 internal prototype to avoid an error. */
8300 /* We use char because int might match the return type of a gcc2
8301 builtin and then its argument prototype would still apply. */
8302 char XOpenDisplay ();
8311 rm -f conftest.$ac_objext conftest$ac_exeext
8312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8313 (eval $ac_link) 2>&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } &&
8317 { ac_try='test -s conftest$ac_exeext'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8328 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8329 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8330 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8333 ac_check_lib_save_LIBS=$LIBS
8335 cat >conftest.$ac_ext <<_ACEOF
8336 #line $LINENO "configure"
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h. */
8343 /* Override any gcc2 internal prototype to avoid an error. */
8347 /* We use char because int might match the return type of a gcc2
8348 builtin and then its argument prototype would still apply. */
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_lib_dnet_dnet_ntoa=yes
8372 echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8375 ac_cv_lib_dnet_dnet_ntoa=no
8377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8378 LIBS=$ac_check_lib_save_LIBS
8380 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8381 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8382 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8383 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8386 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8387 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8388 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8389 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8392 ac_check_lib_save_LIBS=$LIBS
8393 LIBS="-ldnet_stub $LIBS"
8394 cat >conftest.$ac_ext <<_ACEOF
8395 #line $LINENO "configure"
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8402 /* Override any gcc2 internal prototype to avoid an error. */
8406 /* We use char because int might match the return type of a gcc2
8407 builtin and then its argument prototype would still apply. */
8417 rm -f conftest.$ac_objext conftest$ac_exeext
8418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8419 (eval $ac_link) 2>&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -s conftest$ac_exeext'
8424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); }; }; then
8429 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8431 echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.$ac_ext >&5
8434 ac_cv_lib_dnet_stub_dnet_ntoa=no
8436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8437 LIBS=$ac_check_lib_save_LIBS
8439 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8440 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8441 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8442 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8448 LIBS="$ac_xsave_LIBS"
8450 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8451 # to get the SysV transport functions.
8452 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8454 # The nsl library prevents programs from opening the X display
8455 # on Irix 5.2, according to T.E. Dickey.
8456 # The functions gethostbyname, getservbyname, and inet_addr are
8457 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8458 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8459 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8460 if test "${ac_cv_func_gethostbyname+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 cat >conftest.$ac_ext <<_ACEOF
8464 #line $LINENO "configure"
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8470 /* System header to define __stub macros and hopefully few prototypes,
8471 which can conflict with char gethostbyname (); below.
8472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8473 <limits.h> exists even on freestanding compilers. */
8475 # include <limits.h>
8477 # include <assert.h>
8479 /* Override any gcc2 internal prototype to avoid an error. */
8484 /* We use char because int might match the return type of a gcc2
8485 builtin and then its argument prototype would still apply. */
8486 char gethostbyname ();
8487 /* The GNU C library defines this for functions which it implements
8488 to always fail with ENOSYS. Some functions are actually named
8489 something starting with __ and the normal name is an alias. */
8490 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8493 char (*f) () = gethostbyname;
8502 return f != gethostbyname;
8507 rm -f conftest.$ac_objext conftest$ac_exeext
8508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8509 (eval $ac_link) 2>&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } &&
8513 { ac_try='test -s conftest$ac_exeext'
8514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; }; then
8519 ac_cv_func_gethostbyname=yes
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8524 ac_cv_func_gethostbyname=no
8526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8528 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8529 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8531 if test $ac_cv_func_gethostbyname = no; then
8532 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8533 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8534 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8537 ac_check_lib_save_LIBS=$LIBS
8539 cat >conftest.$ac_ext <<_ACEOF
8540 #line $LINENO "configure"
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8547 /* Override any gcc2 internal prototype to avoid an error. */
8551 /* We use char because int might match the return type of a gcc2
8552 builtin and then its argument prototype would still apply. */
8553 char gethostbyname ();
8562 rm -f conftest.$ac_objext conftest$ac_exeext
8563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8564 (eval $ac_link) 2>&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } &&
8568 { ac_try='test -s conftest$ac_exeext'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; }; then
8574 ac_cv_lib_nsl_gethostbyname=yes
8576 echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.$ac_ext >&5
8579 ac_cv_lib_nsl_gethostbyname=no
8581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8582 LIBS=$ac_check_lib_save_LIBS
8584 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8585 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8586 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8587 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8590 if test $ac_cv_lib_nsl_gethostbyname = no; then
8591 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8592 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8593 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 ac_check_lib_save_LIBS=$LIBS
8598 cat >conftest.$ac_ext <<_ACEOF
8599 #line $LINENO "configure"
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8606 /* Override any gcc2 internal prototype to avoid an error. */
8610 /* We use char because int might match the return type of a gcc2
8611 builtin and then its argument prototype would still apply. */
8612 char gethostbyname ();
8621 rm -f conftest.$ac_objext conftest$ac_exeext
8622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8623 (eval $ac_link) 2>&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } &&
8627 { ac_try='test -s conftest$ac_exeext'
8628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; }; then
8633 ac_cv_lib_bsd_gethostbyname=yes
8635 echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8638 ac_cv_lib_bsd_gethostbyname=no
8640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8641 LIBS=$ac_check_lib_save_LIBS
8643 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8644 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8645 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8646 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8652 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8653 # socket/setsockopt and other routines are undefined under SCO ODT
8654 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8655 # on later versions), says Simon Leinen: it contains gethostby*
8656 # variants that don't use the name server (or something). -lsocket
8657 # must be given before -lnsl if both are needed. We assume that
8658 # if connect needs -lnsl, so does gethostbyname.
8659 echo "$as_me:$LINENO: checking for connect" >&5
8660 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8661 if test "${ac_cv_func_connect+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 cat >conftest.$ac_ext <<_ACEOF
8665 #line $LINENO "configure"
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h. */
8671 /* System header to define __stub macros and hopefully few prototypes,
8672 which can conflict with char connect (); below.
8673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8674 <limits.h> exists even on freestanding compilers. */
8676 # include <limits.h>
8678 # include <assert.h>
8680 /* Override any gcc2 internal prototype to avoid an error. */
8685 /* We use char because int might match the return type of a gcc2
8686 builtin and then its argument prototype would still apply. */
8688 /* The GNU C library defines this for functions which it implements
8689 to always fail with ENOSYS. Some functions are actually named
8690 something starting with __ and the normal name is an alias. */
8691 #if defined (__stub_connect) || defined (__stub___connect)
8694 char (*f) () = connect;
8703 return f != connect;
8708 rm -f conftest.$ac_objext conftest$ac_exeext
8709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8710 (eval $ac_link) 2>&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } &&
8714 { ac_try='test -s conftest$ac_exeext'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; }; then
8720 ac_cv_func_connect=yes
8722 echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8725 ac_cv_func_connect=no
8727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8729 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8730 echo "${ECHO_T}$ac_cv_func_connect" >&6
8732 if test $ac_cv_func_connect = no; then
8733 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8734 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8735 if test "${ac_cv_lib_socket_connect+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 ac_check_lib_save_LIBS=$LIBS
8739 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8740 cat >conftest.$ac_ext <<_ACEOF
8741 #line $LINENO "configure"
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8748 /* Override any gcc2 internal prototype to avoid an error. */
8752 /* We use char because int might match the return type of a gcc2
8753 builtin and then its argument prototype would still apply. */
8763 rm -f conftest.$ac_objext conftest$ac_exeext
8764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8765 (eval $ac_link) 2>&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } &&
8769 { ac_try='test -s conftest$ac_exeext'
8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; }; then
8775 ac_cv_lib_socket_connect=yes
8777 echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8780 ac_cv_lib_socket_connect=no
8782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8783 LIBS=$ac_check_lib_save_LIBS
8785 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8786 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8787 if test $ac_cv_lib_socket_connect = yes; then
8788 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8793 # Guillermo Gomez says -lposix is necessary on A/UX.
8794 echo "$as_me:$LINENO: checking for remove" >&5
8795 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8796 if test "${ac_cv_func_remove+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 cat >conftest.$ac_ext <<_ACEOF
8800 #line $LINENO "configure"
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8806 /* System header to define __stub macros and hopefully few prototypes,
8807 which can conflict with char remove (); below.
8808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8809 <limits.h> exists even on freestanding compilers. */
8811 # include <limits.h>
8813 # include <assert.h>
8815 /* Override any gcc2 internal prototype to avoid an error. */
8820 /* We use char because int might match the return type of a gcc2
8821 builtin and then its argument prototype would still apply. */
8823 /* The GNU C library defines this for functions which it implements
8824 to always fail with ENOSYS. Some functions are actually named
8825 something starting with __ and the normal name is an alias. */
8826 #if defined (__stub_remove) || defined (__stub___remove)
8829 char (*f) () = remove;
8843 rm -f conftest.$ac_objext conftest$ac_exeext
8844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8845 (eval $ac_link) 2>&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } &&
8849 { ac_try='test -s conftest$ac_exeext'
8850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; }; then
8855 ac_cv_func_remove=yes
8857 echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8860 ac_cv_func_remove=no
8862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8864 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8865 echo "${ECHO_T}$ac_cv_func_remove" >&6
8867 if test $ac_cv_func_remove = no; then
8868 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8869 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8870 if test "${ac_cv_lib_posix_remove+set}" = set; then
8871 echo $ECHO_N "(cached) $ECHO_C" >&6
8873 ac_check_lib_save_LIBS=$LIBS
8874 LIBS="-lposix $LIBS"
8875 cat >conftest.$ac_ext <<_ACEOF
8876 #line $LINENO "configure"
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h. */
8883 /* Override any gcc2 internal prototype to avoid an error. */
8887 /* We use char because int might match the return type of a gcc2
8888 builtin and then its argument prototype would still apply. */
8898 rm -f conftest.$ac_objext conftest$ac_exeext
8899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8900 (eval $ac_link) 2>&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } &&
8904 { ac_try='test -s conftest$ac_exeext'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; }; then
8910 ac_cv_lib_posix_remove=yes
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8915 ac_cv_lib_posix_remove=no
8917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8918 LIBS=$ac_check_lib_save_LIBS
8920 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8921 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8922 if test $ac_cv_lib_posix_remove = yes; then
8923 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8928 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8929 echo "$as_me:$LINENO: checking for shmat" >&5
8930 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8931 if test "${ac_cv_func_shmat+set}" = set; then
8932 echo $ECHO_N "(cached) $ECHO_C" >&6
8934 cat >conftest.$ac_ext <<_ACEOF
8935 #line $LINENO "configure"
8938 cat confdefs.h >>conftest.$ac_ext
8939 cat >>conftest.$ac_ext <<_ACEOF
8940 /* end confdefs.h. */
8941 /* System header to define __stub macros and hopefully few prototypes,
8942 which can conflict with char shmat (); below.
8943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8944 <limits.h> exists even on freestanding compilers. */
8946 # include <limits.h>
8948 # include <assert.h>
8950 /* Override any gcc2 internal prototype to avoid an error. */
8955 /* We use char because int might match the return type of a gcc2
8956 builtin and then its argument prototype would still apply. */
8958 /* The GNU C library defines this for functions which it implements
8959 to always fail with ENOSYS. Some functions are actually named
8960 something starting with __ and the normal name is an alias. */
8961 #if defined (__stub_shmat) || defined (__stub___shmat)
8964 char (*f) () = shmat;
8978 rm -f conftest.$ac_objext conftest$ac_exeext
8979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8980 (eval $ac_link) 2>&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } &&
8984 { ac_try='test -s conftest$ac_exeext'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; }; then
8990 ac_cv_func_shmat=yes
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8999 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9000 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9002 if test $ac_cv_func_shmat = no; then
9003 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9004 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9005 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9006 echo $ECHO_N "(cached) $ECHO_C" >&6
9008 ac_check_lib_save_LIBS=$LIBS
9010 cat >conftest.$ac_ext <<_ACEOF
9011 #line $LINENO "configure"
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h. */
9018 /* Override any gcc2 internal prototype to avoid an error. */
9022 /* We use char because int might match the return type of a gcc2
9023 builtin and then its argument prototype would still apply. */
9033 rm -f conftest.$ac_objext conftest$ac_exeext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035 (eval $ac_link) 2>&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } &&
9039 { ac_try='test -s conftest$ac_exeext'
9040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; }; then
9045 ac_cv_lib_ipc_shmat=yes
9047 echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9050 ac_cv_lib_ipc_shmat=no
9052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9053 LIBS=$ac_check_lib_save_LIBS
9055 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9056 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9057 if test $ac_cv_lib_ipc_shmat = yes; then
9058 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9064 # Check for libraries that X11R6 Xt/Xaw programs need.
9065 ac_save_LDFLAGS=$LDFLAGS
9066 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9067 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9068 # check for ICE first), but we must link in the order -lSM -lICE or
9069 # we get undefined symbols. So assume we have SM if we have ICE.
9070 # These have to be linked with before -lX11, unlike the other
9071 # libraries we check for below, so use a different variable.
9072 # John Interrante, Karl Berry
9073 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9074 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9075 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 ac_check_lib_save_LIBS=$LIBS
9079 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9080 cat >conftest.$ac_ext <<_ACEOF
9081 #line $LINENO "configure"
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h. */
9088 /* Override any gcc2 internal prototype to avoid an error. */
9092 /* We use char because int might match the return type of a gcc2
9093 builtin and then its argument prototype would still apply. */
9094 char IceConnectionNumber ();
9098 IceConnectionNumber ();
9103 rm -f conftest.$ac_objext conftest$ac_exeext
9104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9105 (eval $ac_link) 2>&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); } &&
9109 { ac_try='test -s conftest$ac_exeext'
9110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; }; then
9115 ac_cv_lib_ICE_IceConnectionNumber=yes
9117 echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9120 ac_cv_lib_ICE_IceConnectionNumber=no
9122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9123 LIBS=$ac_check_lib_save_LIBS
9125 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9126 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9127 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9128 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9131 LDFLAGS=$ac_save_LDFLAGS
9189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9191 echo "$as_me:$LINENO: checking for $ac_header" >&5
9192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9199 # Is the header compilable?
9200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9202 cat >conftest.$ac_ext <<_ACEOF
9203 #line $LINENO "configure"
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h. */
9209 $ac_includes_default
9210 #include <$ac_header>
9212 rm -f conftest.$ac_objext
9213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9214 (eval $ac_compile) 2>&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } &&
9218 { ac_try='test -s conftest.$ac_objext'
9219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); }; }; then
9224 ac_header_compiler=yes
9226 echo "$as_me: failed program was:" >&5
9227 sed 's/^/| /' conftest.$ac_ext >&5
9229 ac_header_compiler=no
9231 rm -f conftest.$ac_objext conftest.$ac_ext
9232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9233 echo "${ECHO_T}$ac_header_compiler" >&6
9235 # Is the header present?
9236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9238 cat >conftest.$ac_ext <<_ACEOF
9239 #line $LINENO "configure"
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9245 #include <$ac_header>
9247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9250 grep -v '^ *+' conftest.er1 >conftest.err
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } >/dev/null; then
9255 if test -s conftest.err; then
9256 ac_cpp_err=$ac_c_preproc_warn_flag
9263 if test -z "$ac_cpp_err"; then
9264 ac_header_preproc=yes
9266 echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.$ac_ext >&5
9269 ac_header_preproc=no
9271 rm -f conftest.err conftest.$ac_ext
9272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9273 echo "${ECHO_T}$ac_header_preproc" >&6
9275 # So? What about this header?
9276 case $ac_header_compiler:$ac_header_preproc in
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9284 ## ------------------------------------ ##
9285 ## Report this to bug-autoconf@gnu.org. ##
9286 ## ------------------------------------ ##
9289 sed "s/^/$as_me: WARNING: /" >&2
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9295 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9300 ## ------------------------------------ ##
9301 ## Report this to bug-autoconf@gnu.org. ##
9302 ## ------------------------------------ ##
9305 sed "s/^/$as_me: WARNING: /" >&2
9308 echo "$as_me:$LINENO: checking for $ac_header" >&5
9309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9311 echo $ECHO_N "(cached) $ECHO_C" >&6
9313 eval "$as_ac_Header=$ac_header_preproc"
9315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9320 cat >>confdefs.h <<_ACEOF
9321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9328 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9329 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9330 if test "${ac_cv_header_stdc+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 cat >conftest.$ac_ext <<_ACEOF
9334 #line $LINENO "configure"
9337 cat confdefs.h >>conftest.$ac_ext
9338 cat >>conftest.$ac_ext <<_ACEOF
9339 /* end confdefs.h. */
9353 rm -f conftest.$ac_objext
9354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9355 (eval $ac_compile) 2>&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } &&
9359 { ac_try='test -s conftest.$ac_objext'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
9365 ac_cv_header_stdc=yes
9367 echo "$as_me: failed program was:" >&5
9368 sed 's/^/| /' conftest.$ac_ext >&5
9370 ac_cv_header_stdc=no
9372 rm -f conftest.$ac_objext conftest.$ac_ext
9374 if test $ac_cv_header_stdc = yes; then
9375 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9376 cat >conftest.$ac_ext <<_ACEOF
9377 #line $LINENO "configure"
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9387 $EGREP "memchr" >/dev/null 2>&1; then
9390 ac_cv_header_stdc=no
9396 if test $ac_cv_header_stdc = yes; then
9397 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9398 cat >conftest.$ac_ext <<_ACEOF
9399 #line $LINENO "configure"
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h. */
9408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9409 $EGREP "free" >/dev/null 2>&1; then
9412 ac_cv_header_stdc=no
9418 if test $ac_cv_header_stdc = yes; then
9419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9420 if test "$cross_compiling" = yes; then
9423 cat >conftest.$ac_ext <<_ACEOF
9424 #line $LINENO "configure"
9427 cat confdefs.h >>conftest.$ac_ext
9428 cat >>conftest.$ac_ext <<_ACEOF
9429 /* end confdefs.h. */
9431 #if ((' ' & 0x0FF) == 0x020)
9432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9435 # define ISLOWER(c) \
9436 (('a' <= (c) && (c) <= 'i') \
9437 || ('j' <= (c) && (c) <= 'r') \
9438 || ('s' <= (c) && (c) <= 'z'))
9439 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9442 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9447 for (i = 0; i < 256; i++)
9448 if (XOR (islower (i), ISLOWER (i))
9449 || toupper (i) != TOUPPER (i))
9454 rm -f conftest$ac_exeext
9455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9456 (eval $ac_link) 2>&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9467 echo "$as_me: program exited with status $ac_status" >&5
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9472 ac_cv_header_stdc=no
9474 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9478 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9479 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9480 if test $ac_cv_header_stdc = yes; then
9482 cat >>confdefs.h <<\_ACEOF
9483 #define STDC_HEADERS 1
9488 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9489 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9490 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9493 cat >conftest.$ac_ext <<_ACEOF
9494 #line $LINENO "configure"
9497 cat confdefs.h >>conftest.$ac_ext
9498 cat >>conftest.$ac_ext <<_ACEOF
9499 /* end confdefs.h. */
9500 #include <sys/types.h>
9504 return makedev(0, 0);
9509 rm -f conftest.$ac_objext conftest$ac_exeext
9510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9511 (eval $ac_link) 2>&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } &&
9515 { ac_try='test -s conftest$ac_exeext'
9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
9521 ac_cv_header_sys_types_h_makedev=yes
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9526 ac_cv_header_sys_types_h_makedev=no
9528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9531 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9532 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9534 if test $ac_cv_header_sys_types_h_makedev = no; then
9535 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9536 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9537 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9538 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9542 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9544 # Is the header compilable?
9545 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9546 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9547 cat >conftest.$ac_ext <<_ACEOF
9548 #line $LINENO "configure"
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9554 $ac_includes_default
9555 #include <sys/mkdev.h>
9557 rm -f conftest.$ac_objext
9558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9559 (eval $ac_compile) 2>&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } &&
9563 { ac_try='test -s conftest.$ac_objext'
9564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; }; then
9569 ac_header_compiler=yes
9571 echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.$ac_ext >&5
9574 ac_header_compiler=no
9576 rm -f conftest.$ac_objext conftest.$ac_ext
9577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9578 echo "${ECHO_T}$ac_header_compiler" >&6
9580 # Is the header present?
9581 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9582 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9583 cat >conftest.$ac_ext <<_ACEOF
9584 #line $LINENO "configure"
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9590 #include <sys/mkdev.h>
9592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9595 grep -v '^ *+' conftest.er1 >conftest.err
9597 cat conftest.err >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); } >/dev/null; then
9600 if test -s conftest.err; then
9601 ac_cpp_err=$ac_c_preproc_warn_flag
9608 if test -z "$ac_cpp_err"; then
9609 ac_header_preproc=yes
9611 echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.$ac_ext >&5
9614 ac_header_preproc=no
9616 rm -f conftest.err conftest.$ac_ext
9617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9618 echo "${ECHO_T}$ac_header_preproc" >&6
9620 # So? What about this header?
9621 case $ac_header_compiler:$ac_header_preproc in
9623 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9624 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9625 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9626 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9629 ## ------------------------------------ ##
9630 ## Report this to bug-autoconf@gnu.org. ##
9631 ## ------------------------------------ ##
9634 sed "s/^/$as_me: WARNING: /" >&2
9637 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9638 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9639 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9640 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9641 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9642 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9645 ## ------------------------------------ ##
9646 ## Report this to bug-autoconf@gnu.org. ##
9647 ## ------------------------------------ ##
9650 sed "s/^/$as_me: WARNING: /" >&2
9653 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9654 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9655 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9658 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9660 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9661 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9664 if test $ac_cv_header_sys_mkdev_h = yes; then
9666 cat >>confdefs.h <<\_ACEOF
9667 #define MAJOR_IN_MKDEV 1
9674 if test $ac_cv_header_sys_mkdev_h = no; then
9675 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9676 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9677 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9678 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9679 echo $ECHO_N "(cached) $ECHO_C" >&6
9681 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9682 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9684 # Is the header compilable?
9685 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9686 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9687 cat >conftest.$ac_ext <<_ACEOF
9688 #line $LINENO "configure"
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9694 $ac_includes_default
9695 #include <sys/sysmacros.h>
9697 rm -f conftest.$ac_objext
9698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9699 (eval $ac_compile) 2>&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); } &&
9703 { ac_try='test -s conftest.$ac_objext'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
9709 ac_header_compiler=yes
9711 echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.$ac_ext >&5
9714 ac_header_compiler=no
9716 rm -f conftest.$ac_objext conftest.$ac_ext
9717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9718 echo "${ECHO_T}$ac_header_compiler" >&6
9720 # Is the header present?
9721 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9722 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9723 cat >conftest.$ac_ext <<_ACEOF
9724 #line $LINENO "configure"
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9730 #include <sys/sysmacros.h>
9732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9735 grep -v '^ *+' conftest.er1 >conftest.err
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } >/dev/null; then
9740 if test -s conftest.err; then
9741 ac_cpp_err=$ac_c_preproc_warn_flag
9748 if test -z "$ac_cpp_err"; then
9749 ac_header_preproc=yes
9751 echo "$as_me: failed program was:" >&5
9752 sed 's/^/| /' conftest.$ac_ext >&5
9754 ac_header_preproc=no
9756 rm -f conftest.err conftest.$ac_ext
9757 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9758 echo "${ECHO_T}$ac_header_preproc" >&6
9760 # So? What about this header?
9761 case $ac_header_compiler:$ac_header_preproc in
9763 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9764 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9765 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9766 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9769 ## ------------------------------------ ##
9770 ## Report this to bug-autoconf@gnu.org. ##
9771 ## ------------------------------------ ##
9774 sed "s/^/$as_me: WARNING: /" >&2
9777 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9778 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9779 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9780 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9781 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9782 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9785 ## ------------------------------------ ##
9786 ## Report this to bug-autoconf@gnu.org. ##
9787 ## ------------------------------------ ##
9790 sed "s/^/$as_me: WARNING: /" >&2
9793 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9794 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9795 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9800 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9801 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9804 if test $ac_cv_header_sys_sysmacros_h = yes; then
9806 cat >>confdefs.h <<\_ACEOF
9807 #define MAJOR_IN_SYSMACROS 1
9822 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9823 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9824 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9825 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 cat >conftest.$ac_ext <<_ACEOF
9830 #line $LINENO "configure"
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9836 #include <sys/types.h>
9848 rm -f conftest.$ac_objext
9849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9850 (eval $ac_compile) 2>&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } &&
9854 { ac_try='test -s conftest.$ac_objext'
9855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; }; then
9860 eval "$as_ac_Header=yes"
9862 echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.$ac_ext >&5
9865 eval "$as_ac_Header=no"
9867 rm -f conftest.$ac_objext conftest.$ac_ext
9869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9872 cat >>confdefs.h <<_ACEOF
9873 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9876 ac_header_dirent=$ac_hdr; break
9880 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9881 if test $ac_header_dirent = dirent.h; then
9882 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9883 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9884 if test "${ac_cv_search_opendir+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9887 ac_func_search_save_LIBS=$LIBS
9888 ac_cv_search_opendir=no
9889 cat >conftest.$ac_ext <<_ACEOF
9890 #line $LINENO "configure"
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9897 /* Override any gcc2 internal prototype to avoid an error. */
9901 /* We use char because int might match the return type of a gcc2
9902 builtin and then its argument prototype would still apply. */
9912 rm -f conftest.$ac_objext conftest$ac_exeext
9913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9914 (eval $ac_link) 2>&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } &&
9918 { ac_try='test -s conftest$ac_exeext'
9919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; }; then
9924 ac_cv_search_opendir="none required"
9926 echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9931 if test "$ac_cv_search_opendir" = no; then
9932 for ac_lib in dir; do
9933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9934 cat >conftest.$ac_ext <<_ACEOF
9935 #line $LINENO "configure"
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9942 /* Override any gcc2 internal prototype to avoid an error. */
9946 /* We use char because int might match the return type of a gcc2
9947 builtin and then its argument prototype would still apply. */
9957 rm -f conftest.$ac_objext conftest$ac_exeext
9958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9959 (eval $ac_link) 2>&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } &&
9963 { ac_try='test -s conftest$ac_exeext'
9964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; }; then
9969 ac_cv_search_opendir="-l$ac_lib"
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9979 LIBS=$ac_func_search_save_LIBS
9981 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9982 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9983 if test "$ac_cv_search_opendir" != no; then
9984 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9989 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9990 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9991 if test "${ac_cv_search_opendir+set}" = set; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9994 ac_func_search_save_LIBS=$LIBS
9995 ac_cv_search_opendir=no
9996 cat >conftest.$ac_ext <<_ACEOF
9997 #line $LINENO "configure"
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10004 /* Override any gcc2 internal prototype to avoid an error. */
10008 /* We use char because int might match the return type of a gcc2
10009 builtin and then its argument prototype would still apply. */
10019 rm -f conftest.$ac_objext conftest$ac_exeext
10020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10021 (eval $ac_link) 2>&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } &&
10025 { ac_try='test -s conftest$ac_exeext'
10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; }; then
10031 ac_cv_search_opendir="none required"
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10038 if test "$ac_cv_search_opendir" = no; then
10039 for ac_lib in x; do
10040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10041 cat >conftest.$ac_ext <<_ACEOF
10042 #line $LINENO "configure"
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10049 /* Override any gcc2 internal prototype to avoid an error. */
10053 /* We use char because int might match the return type of a gcc2
10054 builtin and then its argument prototype would still apply. */
10064 rm -f conftest.$ac_objext conftest$ac_exeext
10065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10066 (eval $ac_link) 2>&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } &&
10070 { ac_try='test -s conftest$ac_exeext'
10071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072 (eval $ac_try) 2>&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; }; then
10076 ac_cv_search_opendir="-l$ac_lib"
10079 echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10086 LIBS=$ac_func_search_save_LIBS
10088 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10089 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10090 if test "$ac_cv_search_opendir" != no; then
10091 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10097 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10098 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10099 if test "${ac_cv_header_stat_broken+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 cat >conftest.$ac_ext <<_ACEOF
10103 #line $LINENO "configure"
10106 cat confdefs.h >>conftest.$ac_ext
10107 cat >>conftest.$ac_ext <<_ACEOF
10108 /* end confdefs.h. */
10109 #include <sys/types.h>
10110 #include <sys/stat.h>
10112 #if defined(S_ISBLK) && defined(S_IFDIR)
10113 # if S_ISBLK (S_IFDIR)
10118 #if defined(S_ISBLK) && defined(S_IFCHR)
10119 # if S_ISBLK (S_IFCHR)
10124 #if defined(S_ISLNK) && defined(S_IFREG)
10125 # if S_ISLNK (S_IFREG)
10130 #if defined(S_ISSOCK) && defined(S_IFREG)
10131 # if S_ISSOCK (S_IFREG)
10137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10138 $EGREP "You lose" >/dev/null 2>&1; then
10139 ac_cv_header_stat_broken=yes
10141 ac_cv_header_stat_broken=no
10146 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10147 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10148 if test $ac_cv_header_stat_broken = yes; then
10150 cat >>confdefs.h <<\_ACEOF
10151 #define STAT_MACROS_BROKEN 1
10156 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10157 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10158 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 cat >conftest.$ac_ext <<_ACEOF
10162 #line $LINENO "configure"
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h. */
10168 #include <sys/types.h>
10169 #include <sys/wait.h>
10170 #ifndef WEXITSTATUS
10171 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10174 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10182 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10187 rm -f conftest.$ac_objext
10188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10189 (eval $ac_compile) 2>&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try='test -s conftest.$ac_objext'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; }; then
10199 ac_cv_header_sys_wait_h=yes
10201 echo "$as_me: failed program was:" >&5
10202 sed 's/^/| /' conftest.$ac_ext >&5
10204 ac_cv_header_sys_wait_h=no
10206 rm -f conftest.$ac_objext conftest.$ac_ext
10208 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10209 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10210 if test $ac_cv_header_sys_wait_h = yes; then
10212 cat >>confdefs.h <<\_ACEOF
10213 #define HAVE_SYS_WAIT_H 1
10218 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10219 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10220 if test "${ac_cv_header_time+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10223 cat >conftest.$ac_ext <<_ACEOF
10224 #line $LINENO "configure"
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h. */
10230 #include <sys/types.h>
10231 #include <sys/time.h>
10237 if ((struct tm *) 0)
10243 rm -f conftest.$ac_objext
10244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10245 (eval $ac_compile) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -s conftest.$ac_objext'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 ac_cv_header_time=yes
10257 echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10260 ac_cv_header_time=no
10262 rm -f conftest.$ac_objext conftest.$ac_ext
10264 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10265 echo "${ECHO_T}$ac_cv_header_time" >&6
10266 if test $ac_cv_header_time = yes; then
10268 cat >>confdefs.h <<\_ACEOF
10269 #define TIME_WITH_SYS_TIME 1
10275 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10276 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10277 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 cat >conftest.$ac_ext <<_ACEOF
10281 #line $LINENO "configure"
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287 $ac_includes_default
10291 static struct stat ac_aggr;
10292 if (ac_aggr.st_blksize)
10298 rm -f conftest.$ac_objext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300 (eval $ac_compile) 2>&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } &&
10304 { ac_try='test -s conftest.$ac_objext'
10305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; }; then
10310 ac_cv_member_struct_stat_st_blksize=yes
10312 echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10315 cat >conftest.$ac_ext <<_ACEOF
10316 #line $LINENO "configure"
10319 cat confdefs.h >>conftest.$ac_ext
10320 cat >>conftest.$ac_ext <<_ACEOF
10321 /* end confdefs.h. */
10322 $ac_includes_default
10326 static struct stat ac_aggr;
10327 if (sizeof ac_aggr.st_blksize)
10333 rm -f conftest.$ac_objext
10334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10335 (eval $ac_compile) 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } &&
10339 { ac_try='test -s conftest.$ac_objext'
10340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341 (eval $ac_try) 2>&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }; }; then
10345 ac_cv_member_struct_stat_st_blksize=yes
10347 echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10350 ac_cv_member_struct_stat_st_blksize=no
10352 rm -f conftest.$ac_objext conftest.$ac_ext
10354 rm -f conftest.$ac_objext conftest.$ac_ext
10356 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10357 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10358 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10360 cat >>confdefs.h <<_ACEOF
10361 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10365 cat >>confdefs.h <<\_ACEOF
10366 #define HAVE_ST_BLKSIZE 1
10372 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10373 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10374 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 cat >conftest.$ac_ext <<_ACEOF
10378 #line $LINENO "configure"
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10384 $ac_includes_default
10388 static struct stat ac_aggr;
10389 if (ac_aggr.st_blocks)
10395 rm -f conftest.$ac_objext
10396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10397 (eval $ac_compile) 2>&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } &&
10401 { ac_try='test -s conftest.$ac_objext'
10402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; }; then
10407 ac_cv_member_struct_stat_st_blocks=yes
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10412 cat >conftest.$ac_ext <<_ACEOF
10413 #line $LINENO "configure"
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10419 $ac_includes_default
10423 static struct stat ac_aggr;
10424 if (sizeof ac_aggr.st_blocks)
10430 rm -f conftest.$ac_objext
10431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10432 (eval $ac_compile) 2>&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } &&
10436 { ac_try='test -s conftest.$ac_objext'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; }; then
10442 ac_cv_member_struct_stat_st_blocks=yes
10444 echo "$as_me: failed program was:" >&5
10445 sed 's/^/| /' conftest.$ac_ext >&5
10447 ac_cv_member_struct_stat_st_blocks=no
10449 rm -f conftest.$ac_objext conftest.$ac_ext
10451 rm -f conftest.$ac_objext conftest.$ac_ext
10453 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10454 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10455 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10457 cat >>confdefs.h <<_ACEOF
10458 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10462 cat >>confdefs.h <<\_ACEOF
10463 #define HAVE_ST_BLOCKS 1
10467 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10471 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10472 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10473 if test "${ac_cv_struct_tm+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10476 cat >conftest.$ac_ext <<_ACEOF
10477 #line $LINENO "configure"
10480 cat confdefs.h >>conftest.$ac_ext
10481 cat >>conftest.$ac_ext <<_ACEOF
10482 /* end confdefs.h. */
10483 #include <sys/types.h>
10489 struct tm *tp; tp->tm_sec;
10494 rm -f conftest.$ac_objext
10495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10496 (eval $ac_compile) 2>&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } &&
10500 { ac_try='test -s conftest.$ac_objext'
10501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502 (eval $ac_try) 2>&5
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; }; then
10506 ac_cv_struct_tm=time.h
10508 echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10511 ac_cv_struct_tm=sys/time.h
10513 rm -f conftest.$ac_objext conftest.$ac_ext
10515 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10516 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10517 if test $ac_cv_struct_tm = sys/time.h; then
10519 cat >>confdefs.h <<\_ACEOF
10520 #define TM_IN_SYS_TIME 1
10525 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10526 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10527 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 cat >conftest.$ac_ext <<_ACEOF
10531 #line $LINENO "configure"
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10537 #include <sys/types.h>
10538 #include <$ac_cv_struct_tm>
10544 static struct tm ac_aggr;
10545 if (ac_aggr.tm_zone)
10551 rm -f conftest.$ac_objext
10552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10553 (eval $ac_compile) 2>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } &&
10557 { ac_try='test -s conftest.$ac_objext'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; }; then
10563 ac_cv_member_struct_tm_tm_zone=yes
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10568 cat >conftest.$ac_ext <<_ACEOF
10569 #line $LINENO "configure"
10572 cat confdefs.h >>conftest.$ac_ext
10573 cat >>conftest.$ac_ext <<_ACEOF
10574 /* end confdefs.h. */
10575 #include <sys/types.h>
10576 #include <$ac_cv_struct_tm>
10582 static struct tm ac_aggr;
10583 if (sizeof ac_aggr.tm_zone)
10589 rm -f conftest.$ac_objext
10590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10591 (eval $ac_compile) 2>&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } &&
10595 { ac_try='test -s conftest.$ac_objext'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; }; then
10601 ac_cv_member_struct_tm_tm_zone=yes
10603 echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10606 ac_cv_member_struct_tm_tm_zone=no
10608 rm -f conftest.$ac_objext conftest.$ac_ext
10610 rm -f conftest.$ac_objext conftest.$ac_ext
10612 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10613 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10614 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10616 cat >>confdefs.h <<_ACEOF
10617 #define HAVE_STRUCT_TM_TM_ZONE 1
10623 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10625 cat >>confdefs.h <<\_ACEOF
10626 #define HAVE_TM_ZONE 1
10630 echo "$as_me:$LINENO: checking for tzname" >&5
10631 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10632 if test "${ac_cv_var_tzname+set}" = set; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10635 cat >conftest.$ac_ext <<_ACEOF
10636 #line $LINENO "configure"
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h. */
10643 #ifndef tzname /* For SGI. */
10644 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10655 rm -f conftest.$ac_objext conftest$ac_exeext
10656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10657 (eval $ac_link) 2>&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } &&
10661 { ac_try='test -s conftest$ac_exeext'
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663 (eval $ac_try) 2>&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; }; then
10667 ac_cv_var_tzname=yes
10669 echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.$ac_ext >&5
10672 ac_cv_var_tzname=no
10674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10676 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10677 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10678 if test $ac_cv_var_tzname = yes; then
10680 cat >>confdefs.h <<\_ACEOF
10681 #define HAVE_TZNAME 1
10688 echo "$as_me:$LINENO: checking for utime.h" >&5
10689 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10690 if test "${ba_cv_header_utime_h+set}" = set; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
10693 cat >conftest.$ac_ext <<_ACEOF
10694 #line $LINENO "configure"
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h. */
10701 #include <sys/types.h>
10711 rm -f conftest.$ac_objext
10712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10713 (eval $ac_compile) 2>&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } &&
10717 { ac_try='test -s conftest.$ac_objext'
10718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10719 (eval $ac_try) 2>&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); }; }; then
10723 ba_cv_header_utime_h=yes
10725 echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10728 ba_cv_header_utime_h=no
10730 rm -f conftest.$ac_objext conftest.$ac_ext
10732 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10733 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10734 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10735 #define HAVE_UTIME_H 1
10739 echo "$as_me:$LINENO: checking for socklen_t" >&5
10740 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10741 if test "${ba_cv_header_socklen_t+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
10752 #include <sys/types.h>
10753 #include <sys/socket.h>
10762 rm -f conftest.$ac_objext
10763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10764 (eval $ac_compile) 2>&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } &&
10768 { ac_try='test -s conftest.$ac_objext'
10769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770 (eval $ac_try) 2>&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; }; then
10774 ba_cv_header_socklen_t=yes
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10779 ba_cv_header_socklen_t=no
10781 rm -f conftest.$ac_objext conftest.$ac_ext
10783 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10784 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10785 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10786 #define HAVE_SOCKLEN_T 1
10790 echo "$as_me:$LINENO: checking for bigendian" >&5
10791 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10792 if test "${ba_cv_bigendian+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
10795 if test "$cross_compiling" = yes; then
10798 cat >conftest.$ac_ext <<_ACEOF
10799 #line $LINENO "configure"
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10805 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10807 rm -f conftest$ac_exeext
10808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10809 (eval $ac_link) 2>&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814 (eval $ac_try) 2>&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); }; }; then
10818 ba_cv_bigendian=yes
10820 echo "$as_me: program exited with status $ac_status" >&5
10821 echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10824 ( exit $ac_status )
10827 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10830 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10831 echo "${ECHO_T}$ba_cv_bigendian" >&6
10832 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10833 #define HAVE_BIGENDIAN 1
10838 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10839 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10840 if test "${ac_cv_c_const+set}" = set; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
10843 cat >conftest.$ac_ext <<_ACEOF
10844 #line $LINENO "configure"
10847 cat confdefs.h >>conftest.$ac_ext
10848 cat >>conftest.$ac_ext <<_ACEOF
10849 /* end confdefs.h. */
10854 /* FIXME: Include the comments suggested by Paul. */
10855 #ifndef __cplusplus
10856 /* Ultrix mips cc rejects this. */
10857 typedef int charset[2];
10859 /* SunOS 4.1.1 cc rejects this. */
10860 char const *const *ccp;
10862 /* NEC SVR4.0.2 mips cc rejects this. */
10863 struct point {int x, y;};
10864 static struct point const zero = {0,0};
10865 /* AIX XL C 1.02.0.0 rejects this.
10866 It does not let you subtract one const X* pointer from another in
10867 an arm of an if-expression whose if-part is not a constant
10869 const char *g = "string";
10870 ccp = &g + (g ? g-g : 0);
10871 /* HPUX 7.0 cc rejects these. */
10874 ccp = (char const *const *) p;
10875 { /* SCO 3.2v4 cc rejects this. */
10877 char const *s = 0 ? (char *) 0 : (char const *) 0;
10881 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10882 int x[] = {25, 17};
10883 const int *foo = &x[0];
10886 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10887 typedef const int *iptr;
10891 { /* AIX XL C 1.02.0.0 rejects this saying
10892 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10893 struct s { int j; const int *ap[3]; };
10894 struct s *b; b->j = 5;
10896 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10897 const int foo = 10;
10905 rm -f conftest.$ac_objext
10906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10907 (eval $ac_compile) 2>&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } &&
10911 { ac_try='test -s conftest.$ac_objext'
10912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913 (eval $ac_try) 2>&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); }; }; then
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10924 rm -f conftest.$ac_objext conftest.$ac_ext
10926 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10927 echo "${ECHO_T}$ac_cv_c_const" >&6
10928 if test $ac_cv_c_const = no; then
10930 cat >>confdefs.h <<\_ACEOF
10938 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10939 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10941 # The order of these tests is important.
10942 cat >conftest.$ac_ext <<_ACEOF
10943 #line $LINENO "configure"
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h. */
10949 #include <sys/statvfs.h>
10950 #include <sys/fstyp.h>
10952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10955 grep -v '^ *+' conftest.er1 >conftest.err
10957 cat conftest.err >&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } >/dev/null; then
10960 if test -s conftest.err; then
10961 ac_cpp_err=$ac_c_preproc_warn_flag
10968 if test -z "$ac_cpp_err"; then
10969 cat >>confdefs.h <<\_ACEOF
10970 #define FSTYPE_STATVFS 1
10974 echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10979 rm -f conftest.err conftest.$ac_ext
10980 if test $fstype = no; then
10981 cat >conftest.$ac_ext <<_ACEOF
10982 #line $LINENO "configure"
10985 cat confdefs.h >>conftest.$ac_ext
10986 cat >>conftest.$ac_ext <<_ACEOF
10987 /* end confdefs.h. */
10988 #include <sys/statfs.h>
10989 #include <sys/fstyp.h>
10991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10994 grep -v '^ *+' conftest.er1 >conftest.err
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } >/dev/null; then
10999 if test -s conftest.err; then
11000 ac_cpp_err=$ac_c_preproc_warn_flag
11007 if test -z "$ac_cpp_err"; then
11008 cat >>confdefs.h <<\_ACEOF
11009 #define FSTYPE_USG_STATFS 1
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11018 rm -f conftest.err conftest.$ac_ext
11020 if test $fstype = no; then
11021 cat >conftest.$ac_ext <<_ACEOF
11022 #line $LINENO "configure"
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 #include <sys/statfs.h>
11029 #include <sys/vmount.h>
11031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11034 grep -v '^ *+' conftest.er1 >conftest.err
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } >/dev/null; then
11039 if test -s conftest.err; then
11040 ac_cpp_err=$ac_c_preproc_warn_flag
11047 if test -z "$ac_cpp_err"; then
11048 cat >>confdefs.h <<\_ACEOF
11049 #define FSTYPE_AIX_STATFS 1
11053 echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11058 rm -f conftest.err conftest.$ac_ext
11060 if test $fstype = no; then
11061 cat >conftest.$ac_ext <<_ACEOF
11062 #line $LINENO "configure"
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h. */
11068 #include <mntent.h>
11070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11073 grep -v '^ *+' conftest.er1 >conftest.err
11075 cat conftest.err >&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } >/dev/null; then
11078 if test -s conftest.err; then
11079 ac_cpp_err=$ac_c_preproc_warn_flag
11086 if test -z "$ac_cpp_err"; then
11087 cat >>confdefs.h <<\_ACEOF
11088 #define FSTYPE_MNTENT 1
11092 echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11097 rm -f conftest.err conftest.$ac_ext
11099 if test $fstype = no; then
11100 cat >conftest.$ac_ext <<_ACEOF
11101 #line $LINENO "configure"
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h. */
11107 #include <sys/mount.h>
11110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11111 $EGREP "f_type;" >/dev/null 2>&1; then
11112 cat >>confdefs.h <<\_ACEOF
11113 #define FSTYPE_STATFS 1
11120 if test $fstype = no; then
11121 cat >conftest.$ac_ext <<_ACEOF
11122 #line $LINENO "configure"
11125 cat confdefs.h >>conftest.$ac_ext
11126 cat >>conftest.$ac_ext <<_ACEOF
11127 /* end confdefs.h. */
11128 #include <sys/mount.h>
11129 #include <sys/fs_types.h>
11131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11134 grep -v '^ *+' conftest.er1 >conftest.err
11136 cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } >/dev/null; then
11139 if test -s conftest.err; then
11140 ac_cpp_err=$ac_c_preproc_warn_flag
11147 if test -z "$ac_cpp_err"; then
11148 cat >>confdefs.h <<\_ACEOF
11149 #define FSTYPE_GETMNT 1
11153 echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11158 rm -f conftest.err conftest.$ac_ext
11160 echo "$as_me:$LINENO: result: $fstype" >&5
11161 echo "${ECHO_T}$fstype" >&6
11163 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11164 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11165 if test "${ac_cv_type_signal+set}" = set; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
11168 cat >conftest.$ac_ext <<_ACEOF
11169 #line $LINENO "configure"
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h. */
11175 #include <sys/types.h>
11176 #include <signal.h>
11181 extern "C" void (*signal (int, void (*)(int)))(int);
11183 void (*signal ()) ();
11194 rm -f conftest.$ac_objext
11195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11196 (eval $ac_compile) 2>&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } &&
11200 { ac_try='test -s conftest.$ac_objext'
11201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11202 (eval $ac_try) 2>&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); }; }; then
11206 ac_cv_type_signal=void
11208 echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11211 ac_cv_type_signal=int
11213 rm -f conftest.$ac_objext conftest.$ac_ext
11215 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11216 echo "${ECHO_T}$ac_cv_type_signal" >&6
11218 cat >>confdefs.h <<_ACEOF
11219 #define RETSIGTYPE $ac_cv_type_signal
11224 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11225 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11226 if test "${bash_cv_signal_vintage+set}" = set; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11230 cat >conftest.$ac_ext <<_ACEOF
11231 #line $LINENO "configure"
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11237 #include <signal.h>
11243 struct sigaction sa;
11244 sigemptyset(&ss); sigsuspend(&ss);
11245 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11246 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11252 rm -f conftest.$ac_objext conftest$ac_exeext
11253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11254 (eval $ac_link) 2>&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } &&
11258 { ac_try='test -s conftest$ac_exeext'
11259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260 (eval $ac_try) 2>&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; }; then
11264 bash_cv_signal_vintage=posix
11266 echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11270 cat >conftest.$ac_ext <<_ACEOF
11271 #line $LINENO "configure"
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h. */
11277 #include <signal.h>
11282 int mask = sigmask(SIGINT);
11283 sigsetmask(mask); sigblock(mask); sigpause(mask);
11289 rm -f conftest.$ac_objext conftest$ac_exeext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11291 (eval $ac_link) 2>&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); } &&
11295 { ac_try='test -s conftest$ac_exeext'
11296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297 (eval $ac_try) 2>&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }; }; then
11301 bash_cv_signal_vintage=4.2bsd
11303 echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11307 cat >conftest.$ac_ext <<_ACEOF
11308 #line $LINENO "configure"
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11315 #include <signal.h>
11316 RETSIGTYPE foo() { }
11321 int mask = sigmask(SIGINT);
11322 sigset(SIGINT, foo); sigrelse(SIGINT);
11323 sighold(SIGINT); sigpause(SIGINT);
11329 rm -f conftest.$ac_objext conftest$ac_exeext
11330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11331 (eval $ac_link) 2>&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } &&
11335 { ac_try='test -s conftest$ac_exeext'
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; }; then
11341 bash_cv_signal_vintage=svr3
11343 echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11346 bash_cv_signal_vintage=v7
11349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11359 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11360 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11361 if test "$bash_cv_signal_vintage" = posix; then
11362 cat >>confdefs.h <<\_ACEOF
11363 #define HAVE_POSIX_SIGNALS 1
11366 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11367 cat >>confdefs.h <<\_ACEOF
11368 #define HAVE_BSD_SIGNALS 1
11371 elif test "$bash_cv_signal_vintage" = svr3; then
11372 cat >>confdefs.h <<\_ACEOF
11373 #define HAVE_USG_SIGHOLD 1
11378 echo "$as_me:$LINENO: checking for mode_t" >&5
11379 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11380 if test "${ac_cv_type_mode_t+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11383 cat >conftest.$ac_ext <<_ACEOF
11384 #line $LINENO "configure"
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 $ac_includes_default
11396 if (sizeof (mode_t))
11402 rm -f conftest.$ac_objext
11403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11404 (eval $ac_compile) 2>&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); } &&
11408 { ac_try='test -s conftest.$ac_objext'
11409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; }; then
11414 ac_cv_type_mode_t=yes
11416 echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11419 ac_cv_type_mode_t=no
11421 rm -f conftest.$ac_objext conftest.$ac_ext
11423 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11424 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11425 if test $ac_cv_type_mode_t = yes; then
11429 cat >>confdefs.h <<_ACEOF
11435 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11436 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11437 if test "${ac_cv_type_uid_t+set}" = set; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11440 cat >conftest.$ac_ext <<_ACEOF
11441 #line $LINENO "configure"
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 #include <sys/types.h>
11450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11451 $EGREP "uid_t" >/dev/null 2>&1; then
11452 ac_cv_type_uid_t=yes
11454 ac_cv_type_uid_t=no
11459 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11460 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11461 if test $ac_cv_type_uid_t = no; then
11463 cat >>confdefs.h <<\_ACEOF
11468 cat >>confdefs.h <<\_ACEOF
11474 echo "$as_me:$LINENO: checking for size_t" >&5
11475 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11476 if test "${ac_cv_type_size_t+set}" = set; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11479 cat >conftest.$ac_ext <<_ACEOF
11480 #line $LINENO "configure"
11483 cat confdefs.h >>conftest.$ac_ext
11484 cat >>conftest.$ac_ext <<_ACEOF
11485 /* end confdefs.h. */
11486 $ac_includes_default
11492 if (sizeof (size_t))
11498 rm -f conftest.$ac_objext
11499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11500 (eval $ac_compile) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } &&
11504 { ac_try='test -s conftest.$ac_objext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 ac_cv_type_size_t=yes
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11515 ac_cv_type_size_t=no
11517 rm -f conftest.$ac_objext conftest.$ac_ext
11519 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11520 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11521 if test $ac_cv_type_size_t = yes; then
11525 cat >>confdefs.h <<_ACEOF
11526 #define size_t unsigned
11531 echo "$as_me:$LINENO: checking for pid_t" >&5
11532 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11533 if test "${ac_cv_type_pid_t+set}" = set; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 cat >conftest.$ac_ext <<_ACEOF
11537 #line $LINENO "configure"
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11543 $ac_includes_default
11549 if (sizeof (pid_t))
11555 rm -f conftest.$ac_objext
11556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11557 (eval $ac_compile) 2>&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } &&
11561 { ac_try='test -s conftest.$ac_objext'
11562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563 (eval $ac_try) 2>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; }; then
11567 ac_cv_type_pid_t=yes
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 ac_cv_type_pid_t=no
11574 rm -f conftest.$ac_objext conftest.$ac_ext
11576 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11577 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11578 if test $ac_cv_type_pid_t = yes; then
11582 cat >>confdefs.h <<_ACEOF
11588 echo "$as_me:$LINENO: checking for off_t" >&5
11589 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11590 if test "${ac_cv_type_off_t+set}" = set; then
11591 echo $ECHO_N "(cached) $ECHO_C" >&6
11593 cat >conftest.$ac_ext <<_ACEOF
11594 #line $LINENO "configure"
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11600 $ac_includes_default
11606 if (sizeof (off_t))
11612 rm -f conftest.$ac_objext
11613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11614 (eval $ac_compile) 2>&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } &&
11618 { ac_try='test -s conftest.$ac_objext'
11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620 (eval $ac_try) 2>&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; }; then
11624 ac_cv_type_off_t=yes
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11629 ac_cv_type_off_t=no
11631 rm -f conftest.$ac_objext conftest.$ac_ext
11633 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11634 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11635 if test $ac_cv_type_off_t = yes; then
11639 cat >>confdefs.h <<_ACEOF
11645 echo "$as_me:$LINENO: checking for ino_t" >&5
11646 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11647 if test "${ac_cv_type_ino_t+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11650 cat >conftest.$ac_ext <<_ACEOF
11651 #line $LINENO "configure"
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11657 $ac_includes_default
11663 if (sizeof (ino_t))
11669 rm -f conftest.$ac_objext
11670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11671 (eval $ac_compile) 2>&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } &&
11675 { ac_try='test -s conftest.$ac_objext'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }; then
11681 ac_cv_type_ino_t=yes
11683 echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.$ac_ext >&5
11686 ac_cv_type_ino_t=no
11688 rm -f conftest.$ac_objext conftest.$ac_ext
11690 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11691 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11692 if test $ac_cv_type_ino_t = yes; then
11696 cat >>confdefs.h <<_ACEOF
11697 #define ino_t unsigned long
11702 echo "$as_me:$LINENO: checking for dev_t" >&5
11703 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11704 if test "${ac_cv_type_dev_t+set}" = set; then
11705 echo $ECHO_N "(cached) $ECHO_C" >&6
11707 cat >conftest.$ac_ext <<_ACEOF
11708 #line $LINENO "configure"
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714 $ac_includes_default
11720 if (sizeof (dev_t))
11726 rm -f conftest.$ac_objext
11727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11728 (eval $ac_compile) 2>&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } &&
11732 { ac_try='test -s conftest.$ac_objext'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 ac_cv_type_dev_t=yes
11740 echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11743 ac_cv_type_dev_t=no
11745 rm -f conftest.$ac_objext conftest.$ac_ext
11747 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11748 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11749 if test $ac_cv_type_dev_t = yes; then
11753 cat >>confdefs.h <<_ACEOF
11754 #define dev_t unsigned long
11759 echo "$as_me:$LINENO: checking for daddr_t" >&5
11760 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11761 if test "${ac_cv_type_daddr_t+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 cat >conftest.$ac_ext <<_ACEOF
11765 #line $LINENO "configure"
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11771 $ac_includes_default
11777 if (sizeof (daddr_t))
11783 rm -f conftest.$ac_objext
11784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11785 (eval $ac_compile) 2>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } &&
11789 { ac_try='test -s conftest.$ac_objext'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11795 ac_cv_type_daddr_t=yes
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11800 ac_cv_type_daddr_t=no
11802 rm -f conftest.$ac_objext conftest.$ac_ext
11804 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11805 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11806 if test $ac_cv_type_daddr_t = yes; then
11810 cat >>confdefs.h <<_ACEOF
11811 #define daddr_t long
11816 echo "$as_me:$LINENO: checking for major_t" >&5
11817 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11818 if test "${ac_cv_type_major_t+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11821 cat >conftest.$ac_ext <<_ACEOF
11822 #line $LINENO "configure"
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11828 $ac_includes_default
11834 if (sizeof (major_t))
11840 rm -f conftest.$ac_objext
11841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11842 (eval $ac_compile) 2>&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } &&
11846 { ac_try='test -s conftest.$ac_objext'
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; }; then
11852 ac_cv_type_major_t=yes
11854 echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11857 ac_cv_type_major_t=no
11859 rm -f conftest.$ac_objext conftest.$ac_ext
11861 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11862 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11863 if test $ac_cv_type_major_t = yes; then
11867 cat >>confdefs.h <<_ACEOF
11868 #define major_t int
11873 echo "$as_me:$LINENO: checking for minor_t" >&5
11874 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11875 if test "${ac_cv_type_minor_t+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11878 cat >conftest.$ac_ext <<_ACEOF
11879 #line $LINENO "configure"
11882 cat confdefs.h >>conftest.$ac_ext
11883 cat >>conftest.$ac_ext <<_ACEOF
11884 /* end confdefs.h. */
11885 $ac_includes_default
11891 if (sizeof (minor_t))
11897 rm -f conftest.$ac_objext
11898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11899 (eval $ac_compile) 2>&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } &&
11903 { ac_try='test -s conftest.$ac_objext'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; }; then
11909 ac_cv_type_minor_t=yes
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11914 ac_cv_type_minor_t=no
11916 rm -f conftest.$ac_objext conftest.$ac_ext
11918 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11919 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11920 if test $ac_cv_type_minor_t = yes; then
11924 cat >>confdefs.h <<_ACEOF
11925 #define minor_t int
11930 echo "$as_me:$LINENO: checking for ssize_t" >&5
11931 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11932 if test "${ac_cv_type_ssize_t+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11935 cat >conftest.$ac_ext <<_ACEOF
11936 #line $LINENO "configure"
11939 cat confdefs.h >>conftest.$ac_ext
11940 cat >>conftest.$ac_ext <<_ACEOF
11941 /* end confdefs.h. */
11942 $ac_includes_default
11948 if (sizeof (ssize_t))
11954 rm -f conftest.$ac_objext
11955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11956 (eval $ac_compile) 2>&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } &&
11960 { ac_try='test -s conftest.$ac_objext'
11961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962 (eval $ac_try) 2>&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; }; then
11966 ac_cv_type_ssize_t=yes
11968 echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11971 ac_cv_type_ssize_t=no
11973 rm -f conftest.$ac_objext conftest.$ac_ext
11975 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11976 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11977 if test $ac_cv_type_ssize_t = yes; then
11981 cat >>confdefs.h <<_ACEOF
11982 #define ssize_t int
11987 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11988 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11989 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11992 cat >conftest.$ac_ext <<_ACEOF
11993 #line $LINENO "configure"
11996 cat confdefs.h >>conftest.$ac_ext
11997 cat >>conftest.$ac_ext <<_ACEOF
11998 /* end confdefs.h. */
11999 $ac_includes_default
12003 static struct stat ac_aggr;
12004 if (ac_aggr.st_blocks)
12010 rm -f conftest.$ac_objext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12012 (eval $ac_compile) 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } &&
12016 { ac_try='test -s conftest.$ac_objext'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 ac_cv_member_struct_stat_st_blocks=yes
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12027 cat >conftest.$ac_ext <<_ACEOF
12028 #line $LINENO "configure"
12031 cat confdefs.h >>conftest.$ac_ext
12032 cat >>conftest.$ac_ext <<_ACEOF
12033 /* end confdefs.h. */
12034 $ac_includes_default
12038 static struct stat ac_aggr;
12039 if (sizeof ac_aggr.st_blocks)
12045 rm -f conftest.$ac_objext
12046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12047 (eval $ac_compile) 2>&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
12051 { ac_try='test -s conftest.$ac_objext'
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 ac_cv_member_struct_stat_st_blocks=yes
12059 echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12062 ac_cv_member_struct_stat_st_blocks=no
12064 rm -f conftest.$ac_objext conftest.$ac_ext
12066 rm -f conftest.$ac_objext conftest.$ac_ext
12068 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12069 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12070 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12072 cat >>confdefs.h <<_ACEOF
12073 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12077 cat >>confdefs.h <<\_ACEOF
12078 #define HAVE_ST_BLOCKS 1
12082 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12087 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12088 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12089 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 cat >conftest.$ac_ext <<_ACEOF
12093 #line $LINENO "configure"
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12099 $ac_includes_default
12103 static struct stat ac_aggr;
12104 if (ac_aggr.st_rdev)
12110 rm -f conftest.$ac_objext
12111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12112 (eval $ac_compile) 2>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } &&
12116 { ac_try='test -s conftest.$ac_objext'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 ac_cv_member_struct_stat_st_rdev=yes
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12127 cat >conftest.$ac_ext <<_ACEOF
12128 #line $LINENO "configure"
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12134 $ac_includes_default
12138 static struct stat ac_aggr;
12139 if (sizeof ac_aggr.st_rdev)
12145 rm -f conftest.$ac_objext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12147 (eval $ac_compile) 2>&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } &&
12151 { ac_try='test -s conftest.$ac_objext'
12152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153 (eval $ac_try) 2>&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12157 ac_cv_member_struct_stat_st_rdev=yes
12159 echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12162 ac_cv_member_struct_stat_st_rdev=no
12164 rm -f conftest.$ac_objext conftest.$ac_ext
12166 rm -f conftest.$ac_objext conftest.$ac_ext
12168 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12169 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12170 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12172 cat >>confdefs.h <<_ACEOF
12173 #define HAVE_STRUCT_STAT_ST_RDEV 1
12177 cat >>confdefs.h <<\_ACEOF
12178 #define HAVE_ST_RDEV 1
12184 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12185 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12186 if test "${ac_cv_struct_tm+set}" = set; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 cat >conftest.$ac_ext <<_ACEOF
12190 #line $LINENO "configure"
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 #include <sys/types.h>
12202 struct tm *tp; tp->tm_sec;
12207 rm -f conftest.$ac_objext
12208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12209 (eval $ac_compile) 2>&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } &&
12213 { ac_try='test -s conftest.$ac_objext'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; }; then
12219 ac_cv_struct_tm=time.h
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12224 ac_cv_struct_tm=sys/time.h
12226 rm -f conftest.$ac_objext conftest.$ac_ext
12228 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12229 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12230 if test $ac_cv_struct_tm = sys/time.h; then
12232 cat >>confdefs.h <<\_ACEOF
12233 #define TM_IN_SYS_TIME 1
12238 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12239 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12240 if test "${ac_cv_c_const+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 cat >conftest.$ac_ext <<_ACEOF
12244 #line $LINENO "configure"
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12254 /* FIXME: Include the comments suggested by Paul. */
12255 #ifndef __cplusplus
12256 /* Ultrix mips cc rejects this. */
12257 typedef int charset[2];
12259 /* SunOS 4.1.1 cc rejects this. */
12260 char const *const *ccp;
12262 /* NEC SVR4.0.2 mips cc rejects this. */
12263 struct point {int x, y;};
12264 static struct point const zero = {0,0};
12265 /* AIX XL C 1.02.0.0 rejects this.
12266 It does not let you subtract one const X* pointer from another in
12267 an arm of an if-expression whose if-part is not a constant
12269 const char *g = "string";
12270 ccp = &g + (g ? g-g : 0);
12271 /* HPUX 7.0 cc rejects these. */
12274 ccp = (char const *const *) p;
12275 { /* SCO 3.2v4 cc rejects this. */
12277 char const *s = 0 ? (char *) 0 : (char const *) 0;
12281 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12282 int x[] = {25, 17};
12283 const int *foo = &x[0];
12286 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12287 typedef const int *iptr;
12291 { /* AIX XL C 1.02.0.0 rejects this saying
12292 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12293 struct s { int j; const int *ap[3]; };
12294 struct s *b; b->j = 5;
12296 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12297 const int foo = 10;
12305 rm -f conftest.$ac_objext
12306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12307 (eval $ac_compile) 2>&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } &&
12311 { ac_try='test -s conftest.$ac_objext'
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; }; then
12319 echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12324 rm -f conftest.$ac_objext conftest.$ac_ext
12326 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12327 echo "${ECHO_T}$ac_cv_c_const" >&6
12328 if test $ac_cv_c_const = no; then
12330 cat >>confdefs.h <<\_ACEOF
12338 echo "$as_me:$LINENO: checking for char" >&5
12339 echo $ECHO_N "checking for char... $ECHO_C" >&6
12340 if test "${ac_cv_type_char+set}" = set; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12343 cat >conftest.$ac_ext <<_ACEOF
12344 #line $LINENO "configure"
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12350 $ac_includes_default
12362 rm -f conftest.$ac_objext
12363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12364 (eval $ac_compile) 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } &&
12368 { ac_try='test -s conftest.$ac_objext'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_cv_type_char=yes
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12381 rm -f conftest.$ac_objext conftest.$ac_ext
12383 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12384 echo "${ECHO_T}$ac_cv_type_char" >&6
12386 echo "$as_me:$LINENO: checking size of char" >&5
12387 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12388 if test "${ac_cv_sizeof_char+set}" = set; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 if test "$ac_cv_type_char" = yes; then
12392 # The cast to unsigned long works around a bug in the HP C Compiler
12393 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12394 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12395 # This bug is HP SR number 8606223364.
12396 if test "$cross_compiling" = yes; then
12397 # Depending upon the size, compute the lo and hi bounds.
12398 cat >conftest.$ac_ext <<_ACEOF
12399 #line $LINENO "configure"
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h. */
12405 $ac_includes_default
12409 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12416 rm -f conftest.$ac_objext
12417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12418 (eval $ac_compile) 2>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } &&
12422 { ac_try='test -s conftest.$ac_objext'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; }; then
12430 cat >conftest.$ac_ext <<_ACEOF
12431 #line $LINENO "configure"
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h. */
12437 $ac_includes_default
12441 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12448 rm -f conftest.$ac_objext
12449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12450 (eval $ac_compile) 2>&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); } &&
12454 { ac_try='test -s conftest.$ac_objext'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
12460 ac_hi=$ac_mid; break
12462 echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12465 ac_lo=`expr $ac_mid + 1`
12466 if test $ac_lo -le $ac_mid; then
12470 ac_mid=`expr 2 '*' $ac_mid + 1`
12472 rm -f conftest.$ac_objext conftest.$ac_ext
12475 echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12478 cat >conftest.$ac_ext <<_ACEOF
12479 #line $LINENO "configure"
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485 $ac_includes_default
12489 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12496 rm -f conftest.$ac_objext
12497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12498 (eval $ac_compile) 2>&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } &&
12502 { ac_try='test -s conftest.$ac_objext'
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; }; then
12510 cat >conftest.$ac_ext <<_ACEOF
12511 #line $LINENO "configure"
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12517 $ac_includes_default
12521 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12528 rm -f conftest.$ac_objext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12530 (eval $ac_compile) 2>&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } &&
12534 { ac_try='test -s conftest.$ac_objext'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
12540 ac_lo=$ac_mid; break
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12545 ac_hi=`expr '(' $ac_mid ')' - 1`
12546 if test $ac_mid -le $ac_hi; then
12550 ac_mid=`expr 2 '*' $ac_mid`
12552 rm -f conftest.$ac_objext conftest.$ac_ext
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12560 rm -f conftest.$ac_objext conftest.$ac_ext
12562 rm -f conftest.$ac_objext conftest.$ac_ext
12563 # Binary search between lo and hi bounds.
12564 while test "x$ac_lo" != "x$ac_hi"; do
12565 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12566 cat >conftest.$ac_ext <<_ACEOF
12567 #line $LINENO "configure"
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h. */
12573 $ac_includes_default
12577 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12584 rm -f conftest.$ac_objext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12586 (eval $ac_compile) 2>&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } &&
12590 { ac_try='test -s conftest.$ac_objext'
12591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592 (eval $ac_try) 2>&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); }; }; then
12598 echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12601 ac_lo=`expr '(' $ac_mid ')' + 1`
12603 rm -f conftest.$ac_objext conftest.$ac_ext
12606 ?*) ac_cv_sizeof_char=$ac_lo;;
12607 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12608 See \`config.log' for more details." >&5
12609 echo "$as_me: error: cannot compute sizeof (char), 77
12610 See \`config.log' for more details." >&2;}
12611 { (exit 1); exit 1; }; } ;;
12614 if test "$cross_compiling" = yes; then
12615 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12616 See \`config.log' for more details." >&5
12617 echo "$as_me: error: cannot run test program while cross compiling
12618 See \`config.log' for more details." >&2;}
12619 { (exit 1); exit 1; }; }
12621 cat >conftest.$ac_ext <<_ACEOF
12622 #line $LINENO "configure"
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12628 $ac_includes_default
12629 long longval () { return (long) (sizeof (char)); }
12630 unsigned long ulongval () { return (long) (sizeof (char)); }
12632 #include <stdlib.h>
12637 FILE *f = fopen ("conftest.val", "w");
12640 if (((long) (sizeof (char))) < 0)
12642 long i = longval ();
12643 if (i != ((long) (sizeof (char))))
12645 fprintf (f, "%ld\n", i);
12649 unsigned long i = ulongval ();
12650 if (i != ((long) (sizeof (char))))
12652 fprintf (f, "%lu\n", i);
12654 exit (ferror (f) || fclose (f) != 0);
12660 rm -f conftest$ac_exeext
12661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12662 (eval $ac_link) 2>&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667 (eval $ac_try) 2>&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; }; then
12671 ac_cv_sizeof_char=`cat conftest.val`
12673 echo "$as_me: program exited with status $ac_status" >&5
12674 echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12677 ( exit $ac_status )
12678 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12679 See \`config.log' for more details." >&5
12680 echo "$as_me: error: cannot compute sizeof (char), 77
12681 See \`config.log' for more details." >&2;}
12682 { (exit 1); exit 1; }; }
12684 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12689 ac_cv_sizeof_char=0
12692 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12693 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12694 cat >>confdefs.h <<_ACEOF
12695 #define SIZEOF_CHAR $ac_cv_sizeof_char
12699 echo "$as_me:$LINENO: checking for short int" >&5
12700 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12701 if test "${ac_cv_type_short_int+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12704 cat >conftest.$ac_ext <<_ACEOF
12705 #line $LINENO "configure"
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 $ac_includes_default
12715 if ((short int *) 0)
12717 if (sizeof (short int))
12723 rm -f conftest.$ac_objext
12724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12725 (eval $ac_compile) 2>&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } &&
12729 { ac_try='test -s conftest.$ac_objext'
12730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731 (eval $ac_try) 2>&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; }; then
12735 ac_cv_type_short_int=yes
12737 echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.$ac_ext >&5
12740 ac_cv_type_short_int=no
12742 rm -f conftest.$ac_objext conftest.$ac_ext
12744 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12745 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12747 echo "$as_me:$LINENO: checking size of short int" >&5
12748 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12749 if test "${ac_cv_sizeof_short_int+set}" = set; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 if test "$ac_cv_type_short_int" = yes; then
12753 # The cast to unsigned long works around a bug in the HP C Compiler
12754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12755 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12756 # This bug is HP SR number 8606223364.
12757 if test "$cross_compiling" = yes; then
12758 # Depending upon the size, compute the lo and hi bounds.
12759 cat >conftest.$ac_ext <<_ACEOF
12760 #line $LINENO "configure"
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12766 $ac_includes_default
12770 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12777 rm -f conftest.$ac_objext
12778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12779 (eval $ac_compile) 2>&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } &&
12783 { ac_try='test -s conftest.$ac_objext'
12784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785 (eval $ac_try) 2>&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; }; then
12791 cat >conftest.$ac_ext <<_ACEOF
12792 #line $LINENO "configure"
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12798 $ac_includes_default
12802 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12809 rm -f conftest.$ac_objext
12810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12811 (eval $ac_compile) 2>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } &&
12815 { ac_try='test -s conftest.$ac_objext'
12816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817 (eval $ac_try) 2>&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; }; then
12821 ac_hi=$ac_mid; break
12823 echo "$as_me: failed program was:" >&5
12824 sed 's/^/| /' conftest.$ac_ext >&5
12826 ac_lo=`expr $ac_mid + 1`
12827 if test $ac_lo -le $ac_mid; then
12831 ac_mid=`expr 2 '*' $ac_mid + 1`
12833 rm -f conftest.$ac_objext conftest.$ac_ext
12836 echo "$as_me: failed program was:" >&5
12837 sed 's/^/| /' conftest.$ac_ext >&5
12839 cat >conftest.$ac_ext <<_ACEOF
12840 #line $LINENO "configure"
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h. */
12846 $ac_includes_default
12850 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12857 rm -f conftest.$ac_objext
12858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12859 (eval $ac_compile) 2>&5
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); } &&
12863 { ac_try='test -s conftest.$ac_objext'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; }; then
12871 cat >conftest.$ac_ext <<_ACEOF
12872 #line $LINENO "configure"
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12878 $ac_includes_default
12882 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12889 rm -f conftest.$ac_objext
12890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12891 (eval $ac_compile) 2>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } &&
12895 { ac_try='test -s conftest.$ac_objext'
12896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897 (eval $ac_try) 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
12901 ac_lo=$ac_mid; break
12903 echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12906 ac_hi=`expr '(' $ac_mid ')' - 1`
12907 if test $ac_mid -le $ac_hi; then
12911 ac_mid=`expr 2 '*' $ac_mid`
12913 rm -f conftest.$ac_objext conftest.$ac_ext
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12921 rm -f conftest.$ac_objext conftest.$ac_ext
12923 rm -f conftest.$ac_objext conftest.$ac_ext
12924 # Binary search between lo and hi bounds.
12925 while test "x$ac_lo" != "x$ac_hi"; do
12926 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12927 cat >conftest.$ac_ext <<_ACEOF
12928 #line $LINENO "configure"
12931 cat confdefs.h >>conftest.$ac_ext
12932 cat >>conftest.$ac_ext <<_ACEOF
12933 /* end confdefs.h. */
12934 $ac_includes_default
12938 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12945 rm -f conftest.$ac_objext
12946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12947 (eval $ac_compile) 2>&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); } &&
12951 { ac_try='test -s conftest.$ac_objext'
12952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953 (eval $ac_try) 2>&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; }; then
12959 echo "$as_me: failed program was:" >&5
12960 sed 's/^/| /' conftest.$ac_ext >&5
12962 ac_lo=`expr '(' $ac_mid ')' + 1`
12964 rm -f conftest.$ac_objext conftest.$ac_ext
12967 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12968 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12969 See \`config.log' for more details." >&5
12970 echo "$as_me: error: cannot compute sizeof (short int), 77
12971 See \`config.log' for more details." >&2;}
12972 { (exit 1); exit 1; }; } ;;
12975 if test "$cross_compiling" = yes; then
12976 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12977 See \`config.log' for more details." >&5
12978 echo "$as_me: error: cannot run test program while cross compiling
12979 See \`config.log' for more details." >&2;}
12980 { (exit 1); exit 1; }; }
12982 cat >conftest.$ac_ext <<_ACEOF
12983 #line $LINENO "configure"
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12989 $ac_includes_default
12990 long longval () { return (long) (sizeof (short int)); }
12991 unsigned long ulongval () { return (long) (sizeof (short int)); }
12993 #include <stdlib.h>
12998 FILE *f = fopen ("conftest.val", "w");
13001 if (((long) (sizeof (short int))) < 0)
13003 long i = longval ();
13004 if (i != ((long) (sizeof (short int))))
13006 fprintf (f, "%ld\n", i);
13010 unsigned long i = ulongval ();
13011 if (i != ((long) (sizeof (short int))))
13013 fprintf (f, "%lu\n", i);
13015 exit (ferror (f) || fclose (f) != 0);
13021 rm -f conftest$ac_exeext
13022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13023 (eval $ac_link) 2>&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; }; then
13032 ac_cv_sizeof_short_int=`cat conftest.val`
13034 echo "$as_me: program exited with status $ac_status" >&5
13035 echo "$as_me: failed program was:" >&5
13036 sed 's/^/| /' conftest.$ac_ext >&5
13038 ( exit $ac_status )
13039 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13040 See \`config.log' for more details." >&5
13041 echo "$as_me: error: cannot compute sizeof (short int), 77
13042 See \`config.log' for more details." >&2;}
13043 { (exit 1); exit 1; }; }
13045 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13050 ac_cv_sizeof_short_int=0
13053 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13054 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13055 cat >>confdefs.h <<_ACEOF
13056 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13060 echo "$as_me:$LINENO: checking for int" >&5
13061 echo $ECHO_N "checking for int... $ECHO_C" >&6
13062 if test "${ac_cv_type_int+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13065 cat >conftest.$ac_ext <<_ACEOF
13066 #line $LINENO "configure"
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13072 $ac_includes_default
13084 rm -f conftest.$ac_objext
13085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13086 (eval $ac_compile) 2>&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } &&
13090 { ac_try='test -s conftest.$ac_objext'
13091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13092 (eval $ac_try) 2>&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; }; then
13098 echo "$as_me: failed program was:" >&5
13099 sed 's/^/| /' conftest.$ac_ext >&5
13103 rm -f conftest.$ac_objext conftest.$ac_ext
13105 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13106 echo "${ECHO_T}$ac_cv_type_int" >&6
13108 echo "$as_me:$LINENO: checking size of int" >&5
13109 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13110 if test "${ac_cv_sizeof_int+set}" = set; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13113 if test "$ac_cv_type_int" = yes; then
13114 # The cast to unsigned long works around a bug in the HP C Compiler
13115 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13116 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13117 # This bug is HP SR number 8606223364.
13118 if test "$cross_compiling" = yes; then
13119 # Depending upon the size, compute the lo and hi bounds.
13120 cat >conftest.$ac_ext <<_ACEOF
13121 #line $LINENO "configure"
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h. */
13127 $ac_includes_default
13131 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13138 rm -f conftest.$ac_objext
13139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13140 (eval $ac_compile) 2>&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } &&
13144 { ac_try='test -s conftest.$ac_objext'
13145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146 (eval $ac_try) 2>&5
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; }; then
13152 cat >conftest.$ac_ext <<_ACEOF
13153 #line $LINENO "configure"
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13159 $ac_includes_default
13163 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13170 rm -f conftest.$ac_objext
13171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13172 (eval $ac_compile) 2>&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); } &&
13176 { ac_try='test -s conftest.$ac_objext'
13177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178 (eval $ac_try) 2>&5
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; }; then
13182 ac_hi=$ac_mid; break
13184 echo "$as_me: failed program was:" >&5
13185 sed 's/^/| /' conftest.$ac_ext >&5
13187 ac_lo=`expr $ac_mid + 1`
13188 if test $ac_lo -le $ac_mid; then
13192 ac_mid=`expr 2 '*' $ac_mid + 1`
13194 rm -f conftest.$ac_objext conftest.$ac_ext
13197 echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13200 cat >conftest.$ac_ext <<_ACEOF
13201 #line $LINENO "configure"
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h. */
13207 $ac_includes_default
13211 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13218 rm -f conftest.$ac_objext
13219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13220 (eval $ac_compile) 2>&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } &&
13224 { ac_try='test -s conftest.$ac_objext'
13225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13232 cat >conftest.$ac_ext <<_ACEOF
13233 #line $LINENO "configure"
13236 cat confdefs.h >>conftest.$ac_ext
13237 cat >>conftest.$ac_ext <<_ACEOF
13238 /* end confdefs.h. */
13239 $ac_includes_default
13243 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13250 rm -f conftest.$ac_objext
13251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13252 (eval $ac_compile) 2>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } &&
13256 { ac_try='test -s conftest.$ac_objext'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 ac_lo=$ac_mid; break
13264 echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13267 ac_hi=`expr '(' $ac_mid ')' - 1`
13268 if test $ac_mid -le $ac_hi; then
13272 ac_mid=`expr 2 '*' $ac_mid`
13274 rm -f conftest.$ac_objext conftest.$ac_ext
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13282 rm -f conftest.$ac_objext conftest.$ac_ext
13284 rm -f conftest.$ac_objext conftest.$ac_ext
13285 # Binary search between lo and hi bounds.
13286 while test "x$ac_lo" != "x$ac_hi"; do
13287 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13288 cat >conftest.$ac_ext <<_ACEOF
13289 #line $LINENO "configure"
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295 $ac_includes_default
13299 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13306 rm -f conftest.$ac_objext
13307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13308 (eval $ac_compile) 2>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } &&
13312 { ac_try='test -s conftest.$ac_objext'
13313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13314 (eval $ac_try) 2>&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); }; }; then
13320 echo "$as_me: failed program was:" >&5
13321 sed 's/^/| /' conftest.$ac_ext >&5
13323 ac_lo=`expr '(' $ac_mid ')' + 1`
13325 rm -f conftest.$ac_objext conftest.$ac_ext
13328 ?*) ac_cv_sizeof_int=$ac_lo;;
13329 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13330 See \`config.log' for more details." >&5
13331 echo "$as_me: error: cannot compute sizeof (int), 77
13332 See \`config.log' for more details." >&2;}
13333 { (exit 1); exit 1; }; } ;;
13336 if test "$cross_compiling" = yes; then
13337 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13338 See \`config.log' for more details." >&5
13339 echo "$as_me: error: cannot run test program while cross compiling
13340 See \`config.log' for more details." >&2;}
13341 { (exit 1); exit 1; }; }
13343 cat >conftest.$ac_ext <<_ACEOF
13344 #line $LINENO "configure"
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h. */
13350 $ac_includes_default
13351 long longval () { return (long) (sizeof (int)); }
13352 unsigned long ulongval () { return (long) (sizeof (int)); }
13354 #include <stdlib.h>
13359 FILE *f = fopen ("conftest.val", "w");
13362 if (((long) (sizeof (int))) < 0)
13364 long i = longval ();
13365 if (i != ((long) (sizeof (int))))
13367 fprintf (f, "%ld\n", i);
13371 unsigned long i = ulongval ();
13372 if (i != ((long) (sizeof (int))))
13374 fprintf (f, "%lu\n", i);
13376 exit (ferror (f) || fclose (f) != 0);
13382 rm -f conftest$ac_exeext
13383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13384 (eval $ac_link) 2>&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389 (eval $ac_try) 2>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; }; then
13393 ac_cv_sizeof_int=`cat conftest.val`
13395 echo "$as_me: program exited with status $ac_status" >&5
13396 echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13399 ( exit $ac_status )
13400 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13401 See \`config.log' for more details." >&5
13402 echo "$as_me: error: cannot compute sizeof (int), 77
13403 See \`config.log' for more details." >&2;}
13404 { (exit 1); exit 1; }; }
13406 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13414 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13415 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13416 cat >>confdefs.h <<_ACEOF
13417 #define SIZEOF_INT $ac_cv_sizeof_int
13421 echo "$as_me:$LINENO: checking for long int" >&5
13422 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13423 if test "${ac_cv_type_long_int+set}" = set; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13426 cat >conftest.$ac_ext <<_ACEOF
13427 #line $LINENO "configure"
13430 cat confdefs.h >>conftest.$ac_ext
13431 cat >>conftest.$ac_ext <<_ACEOF
13432 /* end confdefs.h. */
13433 $ac_includes_default
13437 if ((long int *) 0)
13439 if (sizeof (long int))
13445 rm -f conftest.$ac_objext
13446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13447 (eval $ac_compile) 2>&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } &&
13451 { ac_try='test -s conftest.$ac_objext'
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; }; then
13457 ac_cv_type_long_int=yes
13459 echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13462 ac_cv_type_long_int=no
13464 rm -f conftest.$ac_objext conftest.$ac_ext
13466 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13467 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13469 echo "$as_me:$LINENO: checking size of long int" >&5
13470 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13471 if test "${ac_cv_sizeof_long_int+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13474 if test "$ac_cv_type_long_int" = yes; then
13475 # The cast to unsigned long works around a bug in the HP C Compiler
13476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13477 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13478 # This bug is HP SR number 8606223364.
13479 if test "$cross_compiling" = yes; then
13480 # Depending upon the size, compute the lo and hi bounds.
13481 cat >conftest.$ac_ext <<_ACEOF
13482 #line $LINENO "configure"
13485 cat confdefs.h >>conftest.$ac_ext
13486 cat >>conftest.$ac_ext <<_ACEOF
13487 /* end confdefs.h. */
13488 $ac_includes_default
13492 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13499 rm -f conftest.$ac_objext
13500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13501 (eval $ac_compile) 2>&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } &&
13505 { ac_try='test -s conftest.$ac_objext'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
13513 cat >conftest.$ac_ext <<_ACEOF
13514 #line $LINENO "configure"
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h. */
13520 $ac_includes_default
13524 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13531 rm -f conftest.$ac_objext
13532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13533 (eval $ac_compile) 2>&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); } &&
13537 { ac_try='test -s conftest.$ac_objext'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; }; then
13543 ac_hi=$ac_mid; break
13545 echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.$ac_ext >&5
13548 ac_lo=`expr $ac_mid + 1`
13549 if test $ac_lo -le $ac_mid; then
13553 ac_mid=`expr 2 '*' $ac_mid + 1`
13555 rm -f conftest.$ac_objext conftest.$ac_ext
13558 echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13561 cat >conftest.$ac_ext <<_ACEOF
13562 #line $LINENO "configure"
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h. */
13568 $ac_includes_default
13572 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13579 rm -f conftest.$ac_objext
13580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13581 (eval $ac_compile) 2>&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } &&
13585 { ac_try='test -s conftest.$ac_objext'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; }; then
13593 cat >conftest.$ac_ext <<_ACEOF
13594 #line $LINENO "configure"
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13600 $ac_includes_default
13604 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13611 rm -f conftest.$ac_objext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13613 (eval $ac_compile) 2>&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } &&
13617 { ac_try='test -s conftest.$ac_objext'
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; }; then
13623 ac_lo=$ac_mid; break
13625 echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13628 ac_hi=`expr '(' $ac_mid ')' - 1`
13629 if test $ac_mid -le $ac_hi; then
13633 ac_mid=`expr 2 '*' $ac_mid`
13635 rm -f conftest.$ac_objext conftest.$ac_ext
13638 echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13643 rm -f conftest.$ac_objext conftest.$ac_ext
13645 rm -f conftest.$ac_objext conftest.$ac_ext
13646 # Binary search between lo and hi bounds.
13647 while test "x$ac_lo" != "x$ac_hi"; do
13648 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13649 cat >conftest.$ac_ext <<_ACEOF
13650 #line $LINENO "configure"
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h. */
13656 $ac_includes_default
13660 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13667 rm -f conftest.$ac_objext
13668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13669 (eval $ac_compile) 2>&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); } &&
13673 { ac_try='test -s conftest.$ac_objext'
13674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675 (eval $ac_try) 2>&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; }; then
13681 echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13684 ac_lo=`expr '(' $ac_mid ')' + 1`
13686 rm -f conftest.$ac_objext conftest.$ac_ext
13689 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13690 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13691 See \`config.log' for more details." >&5
13692 echo "$as_me: error: cannot compute sizeof (long int), 77
13693 See \`config.log' for more details." >&2;}
13694 { (exit 1); exit 1; }; } ;;
13697 if test "$cross_compiling" = yes; then
13698 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13699 See \`config.log' for more details." >&5
13700 echo "$as_me: error: cannot run test program while cross compiling
13701 See \`config.log' for more details." >&2;}
13702 { (exit 1); exit 1; }; }
13704 cat >conftest.$ac_ext <<_ACEOF
13705 #line $LINENO "configure"
13708 cat confdefs.h >>conftest.$ac_ext
13709 cat >>conftest.$ac_ext <<_ACEOF
13710 /* end confdefs.h. */
13711 $ac_includes_default
13712 long longval () { return (long) (sizeof (long int)); }
13713 unsigned long ulongval () { return (long) (sizeof (long int)); }
13715 #include <stdlib.h>
13720 FILE *f = fopen ("conftest.val", "w");
13723 if (((long) (sizeof (long int))) < 0)
13725 long i = longval ();
13726 if (i != ((long) (sizeof (long int))))
13728 fprintf (f, "%ld\n", i);
13732 unsigned long i = ulongval ();
13733 if (i != ((long) (sizeof (long int))))
13735 fprintf (f, "%lu\n", i);
13737 exit (ferror (f) || fclose (f) != 0);
13743 rm -f conftest$ac_exeext
13744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13745 (eval $ac_link) 2>&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; }; then
13754 ac_cv_sizeof_long_int=`cat conftest.val`
13756 echo "$as_me: program exited with status $ac_status" >&5
13757 echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.$ac_ext >&5
13760 ( exit $ac_status )
13761 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13762 See \`config.log' for more details." >&5
13763 echo "$as_me: error: cannot compute sizeof (long int), 77
13764 See \`config.log' for more details." >&2;}
13765 { (exit 1); exit 1; }; }
13767 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13772 ac_cv_sizeof_long_int=0
13775 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13776 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13777 cat >>confdefs.h <<_ACEOF
13778 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13782 echo "$as_me:$LINENO: checking for long long int" >&5
13783 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13784 if test "${ac_cv_type_long_long_int+set}" = set; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13787 cat >conftest.$ac_ext <<_ACEOF
13788 #line $LINENO "configure"
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h. */
13794 $ac_includes_default
13798 if ((long long int *) 0)
13800 if (sizeof (long long int))
13806 rm -f conftest.$ac_objext
13807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13808 (eval $ac_compile) 2>&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); } &&
13812 { ac_try='test -s conftest.$ac_objext'
13813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814 (eval $ac_try) 2>&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; }; then
13818 ac_cv_type_long_long_int=yes
13820 echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13823 ac_cv_type_long_long_int=no
13825 rm -f conftest.$ac_objext conftest.$ac_ext
13827 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13828 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13830 echo "$as_me:$LINENO: checking size of long long int" >&5
13831 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13832 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13835 if test "$ac_cv_type_long_long_int" = yes; then
13836 # The cast to unsigned long works around a bug in the HP C Compiler
13837 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13838 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13839 # This bug is HP SR number 8606223364.
13840 if test "$cross_compiling" = yes; then
13841 # Depending upon the size, compute the lo and hi bounds.
13842 cat >conftest.$ac_ext <<_ACEOF
13843 #line $LINENO "configure"
13846 cat confdefs.h >>conftest.$ac_ext
13847 cat >>conftest.$ac_ext <<_ACEOF
13848 /* end confdefs.h. */
13849 $ac_includes_default
13853 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13860 rm -f conftest.$ac_objext
13861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13862 (eval $ac_compile) 2>&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } &&
13866 { ac_try='test -s conftest.$ac_objext'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }; then
13874 cat >conftest.$ac_ext <<_ACEOF
13875 #line $LINENO "configure"
13878 cat confdefs.h >>conftest.$ac_ext
13879 cat >>conftest.$ac_ext <<_ACEOF
13880 /* end confdefs.h. */
13881 $ac_includes_default
13885 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13892 rm -f conftest.$ac_objext
13893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13894 (eval $ac_compile) 2>&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } &&
13898 { ac_try='test -s conftest.$ac_objext'
13899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900 (eval $ac_try) 2>&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; }; then
13904 ac_hi=$ac_mid; break
13906 echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13909 ac_lo=`expr $ac_mid + 1`
13910 if test $ac_lo -le $ac_mid; then
13914 ac_mid=`expr 2 '*' $ac_mid + 1`
13916 rm -f conftest.$ac_objext conftest.$ac_ext
13919 echo "$as_me: failed program was:" >&5
13920 sed 's/^/| /' conftest.$ac_ext >&5
13922 cat >conftest.$ac_ext <<_ACEOF
13923 #line $LINENO "configure"
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 $ac_includes_default
13933 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13940 rm -f conftest.$ac_objext
13941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13942 (eval $ac_compile) 2>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try='test -s conftest.$ac_objext'
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; }; then
13954 cat >conftest.$ac_ext <<_ACEOF
13955 #line $LINENO "configure"
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h. */
13961 $ac_includes_default
13965 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13972 rm -f conftest.$ac_objext
13973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13974 (eval $ac_compile) 2>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -s conftest.$ac_objext'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; }; then
13984 ac_lo=$ac_mid; break
13986 echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13989 ac_hi=`expr '(' $ac_mid ')' - 1`
13990 if test $ac_mid -le $ac_hi; then
13994 ac_mid=`expr 2 '*' $ac_mid`
13996 rm -f conftest.$ac_objext conftest.$ac_ext
13999 echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.$ac_ext >&5
14004 rm -f conftest.$ac_objext conftest.$ac_ext
14006 rm -f conftest.$ac_objext conftest.$ac_ext
14007 # Binary search between lo and hi bounds.
14008 while test "x$ac_lo" != "x$ac_hi"; do
14009 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14010 cat >conftest.$ac_ext <<_ACEOF
14011 #line $LINENO "configure"
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h. */
14017 $ac_includes_default
14021 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14028 rm -f conftest.$ac_objext
14029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14030 (eval $ac_compile) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } &&
14034 { ac_try='test -s conftest.$ac_objext'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14042 echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14045 ac_lo=`expr '(' $ac_mid ')' + 1`
14047 rm -f conftest.$ac_objext conftest.$ac_ext
14050 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14051 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14052 See \`config.log' for more details." >&5
14053 echo "$as_me: error: cannot compute sizeof (long long int), 77
14054 See \`config.log' for more details." >&2;}
14055 { (exit 1); exit 1; }; } ;;
14058 if test "$cross_compiling" = yes; then
14059 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14060 See \`config.log' for more details." >&5
14061 echo "$as_me: error: cannot run test program while cross compiling
14062 See \`config.log' for more details." >&2;}
14063 { (exit 1); exit 1; }; }
14065 cat >conftest.$ac_ext <<_ACEOF
14066 #line $LINENO "configure"
14069 cat confdefs.h >>conftest.$ac_ext
14070 cat >>conftest.$ac_ext <<_ACEOF
14071 /* end confdefs.h. */
14072 $ac_includes_default
14073 long longval () { return (long) (sizeof (long long int)); }
14074 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14076 #include <stdlib.h>
14081 FILE *f = fopen ("conftest.val", "w");
14084 if (((long) (sizeof (long long int))) < 0)
14086 long i = longval ();
14087 if (i != ((long) (sizeof (long long int))))
14089 fprintf (f, "%ld\n", i);
14093 unsigned long i = ulongval ();
14094 if (i != ((long) (sizeof (long long int))))
14096 fprintf (f, "%lu\n", i);
14098 exit (ferror (f) || fclose (f) != 0);
14104 rm -f conftest$ac_exeext
14105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14106 (eval $ac_link) 2>&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111 (eval $ac_try) 2>&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; }; then
14115 ac_cv_sizeof_long_long_int=`cat conftest.val`
14117 echo "$as_me: program exited with status $ac_status" >&5
14118 echo "$as_me: failed program was:" >&5
14119 sed 's/^/| /' conftest.$ac_ext >&5
14121 ( exit $ac_status )
14122 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14123 See \`config.log' for more details." >&5
14124 echo "$as_me: error: cannot compute sizeof (long long int), 77
14125 See \`config.log' for more details." >&2;}
14126 { (exit 1); exit 1; }; }
14128 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14133 ac_cv_sizeof_long_long_int=0
14136 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14137 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14138 cat >>confdefs.h <<_ACEOF
14139 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14143 echo "$as_me:$LINENO: checking for int *" >&5
14144 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14145 if test "${ac_cv_type_int_p+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 cat >conftest.$ac_ext <<_ACEOF
14149 #line $LINENO "configure"
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155 $ac_includes_default
14161 if (sizeof (int *))
14167 rm -f conftest.$ac_objext
14168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14169 (eval $ac_compile) 2>&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } &&
14173 { ac_try='test -s conftest.$ac_objext'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; }; then
14179 ac_cv_type_int_p=yes
14181 echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14184 ac_cv_type_int_p=no
14186 rm -f conftest.$ac_objext conftest.$ac_ext
14188 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14189 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14191 echo "$as_me:$LINENO: checking size of int *" >&5
14192 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14193 if test "${ac_cv_sizeof_int_p+set}" = set; then
14194 echo $ECHO_N "(cached) $ECHO_C" >&6
14196 if test "$ac_cv_type_int_p" = yes; then
14197 # The cast to unsigned long works around a bug in the HP C Compiler
14198 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14199 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14200 # This bug is HP SR number 8606223364.
14201 if test "$cross_compiling" = yes; then
14202 # Depending upon the size, compute the lo and hi bounds.
14203 cat >conftest.$ac_ext <<_ACEOF
14204 #line $LINENO "configure"
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14210 $ac_includes_default
14214 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14221 rm -f conftest.$ac_objext
14222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14223 (eval $ac_compile) 2>&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); } &&
14227 { ac_try='test -s conftest.$ac_objext'
14228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14229 (eval $ac_try) 2>&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); }; }; then
14235 cat >conftest.$ac_ext <<_ACEOF
14236 #line $LINENO "configure"
14239 cat confdefs.h >>conftest.$ac_ext
14240 cat >>conftest.$ac_ext <<_ACEOF
14241 /* end confdefs.h. */
14242 $ac_includes_default
14246 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14253 rm -f conftest.$ac_objext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14255 (eval $ac_compile) 2>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } &&
14259 { ac_try='test -s conftest.$ac_objext'
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; }; then
14265 ac_hi=$ac_mid; break
14267 echo "$as_me: failed program was:" >&5
14268 sed 's/^/| /' conftest.$ac_ext >&5
14270 ac_lo=`expr $ac_mid + 1`
14271 if test $ac_lo -le $ac_mid; then
14275 ac_mid=`expr 2 '*' $ac_mid + 1`
14277 rm -f conftest.$ac_objext conftest.$ac_ext
14280 echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14283 cat >conftest.$ac_ext <<_ACEOF
14284 #line $LINENO "configure"
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h. */
14290 $ac_includes_default
14294 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14301 rm -f conftest.$ac_objext
14302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14303 (eval $ac_compile) 2>&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } &&
14307 { ac_try='test -s conftest.$ac_objext'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; }; then
14315 cat >conftest.$ac_ext <<_ACEOF
14316 #line $LINENO "configure"
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h. */
14322 $ac_includes_default
14326 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14333 rm -f conftest.$ac_objext
14334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14335 (eval $ac_compile) 2>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } &&
14339 { ac_try='test -s conftest.$ac_objext'
14340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341 (eval $ac_try) 2>&5
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); }; }; then
14345 ac_lo=$ac_mid; break
14347 echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.$ac_ext >&5
14350 ac_hi=`expr '(' $ac_mid ')' - 1`
14351 if test $ac_mid -le $ac_hi; then
14355 ac_mid=`expr 2 '*' $ac_mid`
14357 rm -f conftest.$ac_objext conftest.$ac_ext
14360 echo "$as_me: failed program was:" >&5
14361 sed 's/^/| /' conftest.$ac_ext >&5
14365 rm -f conftest.$ac_objext conftest.$ac_ext
14367 rm -f conftest.$ac_objext conftest.$ac_ext
14368 # Binary search between lo and hi bounds.
14369 while test "x$ac_lo" != "x$ac_hi"; do
14370 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14371 cat >conftest.$ac_ext <<_ACEOF
14372 #line $LINENO "configure"
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14378 $ac_includes_default
14382 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14389 rm -f conftest.$ac_objext
14390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14391 (eval $ac_compile) 2>&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); } &&
14395 { ac_try='test -s conftest.$ac_objext'
14396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14397 (eval $ac_try) 2>&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); }; }; then
14403 echo "$as_me: failed program was:" >&5
14404 sed 's/^/| /' conftest.$ac_ext >&5
14406 ac_lo=`expr '(' $ac_mid ')' + 1`
14408 rm -f conftest.$ac_objext conftest.$ac_ext
14411 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14412 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14413 See \`config.log' for more details." >&5
14414 echo "$as_me: error: cannot compute sizeof (int *), 77
14415 See \`config.log' for more details." >&2;}
14416 { (exit 1); exit 1; }; } ;;
14419 if test "$cross_compiling" = yes; then
14420 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14421 See \`config.log' for more details." >&5
14422 echo "$as_me: error: cannot run test program while cross compiling
14423 See \`config.log' for more details." >&2;}
14424 { (exit 1); exit 1; }; }
14426 cat >conftest.$ac_ext <<_ACEOF
14427 #line $LINENO "configure"
14430 cat confdefs.h >>conftest.$ac_ext
14431 cat >>conftest.$ac_ext <<_ACEOF
14432 /* end confdefs.h. */
14433 $ac_includes_default
14434 long longval () { return (long) (sizeof (int *)); }
14435 unsigned long ulongval () { return (long) (sizeof (int *)); }
14437 #include <stdlib.h>
14442 FILE *f = fopen ("conftest.val", "w");
14445 if (((long) (sizeof (int *))) < 0)
14447 long i = longval ();
14448 if (i != ((long) (sizeof (int *))))
14450 fprintf (f, "%ld\n", i);
14454 unsigned long i = ulongval ();
14455 if (i != ((long) (sizeof (int *))))
14457 fprintf (f, "%lu\n", i);
14459 exit (ferror (f) || fclose (f) != 0);
14465 rm -f conftest$ac_exeext
14466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14467 (eval $ac_link) 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; }; then
14476 ac_cv_sizeof_int_p=`cat conftest.val`
14478 echo "$as_me: program exited with status $ac_status" >&5
14479 echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14482 ( exit $ac_status )
14483 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14484 See \`config.log' for more details." >&5
14485 echo "$as_me: error: cannot compute sizeof (int *), 77
14486 See \`config.log' for more details." >&2;}
14487 { (exit 1); exit 1; }; }
14489 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14494 ac_cv_sizeof_int_p=0
14497 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14498 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14499 cat >>confdefs.h <<_ACEOF
14500 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14505 # Check for sys/types.h types
14506 echo "$as_me:$LINENO: checking for u_int type" >&5
14507 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14508 if test "${ac_cv_have_u_int+set}" = set; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14512 cat >conftest.$ac_ext <<_ACEOF
14513 #line $LINENO "configure"
14516 cat confdefs.h >>conftest.$ac_ext
14517 cat >>conftest.$ac_ext <<_ACEOF
14518 /* end confdefs.h. */
14519 #include <sys/types.h>
14528 rm -f conftest.$ac_objext
14529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14530 (eval $ac_compile) 2>&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } &&
14534 { ac_try='test -s conftest.$ac_objext'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }; then
14540 ac_cv_have_u_int="yes"
14542 echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 ac_cv_have_u_int="no"
14548 rm -f conftest.$ac_objext conftest.$ac_ext
14551 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14552 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14553 if test "x$ac_cv_have_u_int" = "xyes" ; then
14554 cat >>confdefs.h <<\_ACEOF
14555 #define HAVE_U_INT 1
14561 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14562 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14563 if test "${ac_cv_have_intmax_t+set}" = set; then
14564 echo $ECHO_N "(cached) $ECHO_C" >&6
14567 cat >conftest.$ac_ext <<_ACEOF
14568 #line $LINENO "configure"
14571 cat confdefs.h >>conftest.$ac_ext
14572 cat >>conftest.$ac_ext <<_ACEOF
14573 /* end confdefs.h. */
14574 #include <sys/types.h>
14583 rm -f conftest.$ac_objext
14584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14585 (eval $ac_compile) 2>&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); } &&
14589 { ac_try='test -s conftest.$ac_objext'
14590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14591 (eval $ac_try) 2>&5
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); }; }; then
14595 ac_cv_have_intmax_t="yes"
14597 echo "$as_me: failed program was:" >&5
14598 sed 's/^/| /' conftest.$ac_ext >&5
14601 cat >conftest.$ac_ext <<_ACEOF
14602 #line $LINENO "configure"
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h. */
14608 #include <stdint.h>
14617 rm -f conftest.$ac_objext
14618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14619 (eval $ac_compile) 2>&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } &&
14623 { ac_try='test -s conftest.$ac_objext'
14624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625 (eval $ac_try) 2>&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; }; then
14629 ac_cv_have_intmax_t="yes"
14631 echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14634 ac_cv_have_intmax_t="no"
14637 rm -f conftest.$ac_objext conftest.$ac_ext
14641 rm -f conftest.$ac_objext conftest.$ac_ext
14645 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14646 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14647 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14648 cat >>confdefs.h <<\_ACEOF
14649 #define HAVE_INTMAX_T 1
14656 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14657 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14658 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14662 cat >conftest.$ac_ext <<_ACEOF
14663 #line $LINENO "configure"
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h. */
14669 #include <sys/types.h>
14673 u_intmax_t a; a = 1;
14678 rm -f conftest.$ac_objext
14679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14680 (eval $ac_compile) 2>&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); } &&
14684 { ac_try='test -s conftest.$ac_objext'
14685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686 (eval $ac_try) 2>&5
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); }; }; then
14690 ac_cv_have_u_intmax_t="yes"
14692 echo "$as_me: failed program was:" >&5
14693 sed 's/^/| /' conftest.$ac_ext >&5
14696 cat >conftest.$ac_ext <<_ACEOF
14697 #line $LINENO "configure"
14700 cat confdefs.h >>conftest.$ac_ext
14701 cat >>conftest.$ac_ext <<_ACEOF
14702 /* end confdefs.h. */
14703 #include <stdint.h>
14707 u_intmax_t a; a = 1;
14712 rm -f conftest.$ac_objext
14713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14714 (eval $ac_compile) 2>&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } &&
14718 { ac_try='test -s conftest.$ac_objext'
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; }; then
14724 ac_cv_have_u_intmax_t="yes"
14726 echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14729 ac_cv_have_u_intmax_t="no"
14732 rm -f conftest.$ac_objext conftest.$ac_ext
14736 rm -f conftest.$ac_objext conftest.$ac_ext
14739 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14740 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14741 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14742 cat >>confdefs.h <<\_ACEOF
14743 #define HAVE_U_INTMAX_T 1
14750 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14751 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14752 if test "${ac_cv_have_intxx_t+set}" = set; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 cat >conftest.$ac_ext <<_ACEOF
14757 #line $LINENO "configure"
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14763 #include <sys/types.h>
14767 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14772 rm -f conftest.$ac_objext
14773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14774 (eval $ac_compile) 2>&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } &&
14778 { ac_try='test -s conftest.$ac_objext'
14779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780 (eval $ac_try) 2>&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; }; then
14784 ac_cv_have_intxx_t="yes"
14786 echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.$ac_ext >&5
14789 ac_cv_have_intxx_t="no"
14792 rm -f conftest.$ac_objext conftest.$ac_ext
14795 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14796 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14797 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14798 cat >>confdefs.h <<\_ACEOF
14799 #define HAVE_INTXX_T 1
14805 echo "$as_me:$LINENO: checking for int64_t type" >&5
14806 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14807 if test "${ac_cv_have_int64_t+set}" = set; then
14808 echo $ECHO_N "(cached) $ECHO_C" >&6
14811 cat >conftest.$ac_ext <<_ACEOF
14812 #line $LINENO "configure"
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h. */
14818 #include <sys/types.h>
14827 rm -f conftest.$ac_objext
14828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14829 (eval $ac_compile) 2>&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); } &&
14833 { ac_try='test -s conftest.$ac_objext'
14834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835 (eval $ac_try) 2>&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); }; }; then
14839 ac_cv_have_int64_t="yes"
14841 echo "$as_me: failed program was:" >&5
14842 sed 's/^/| /' conftest.$ac_ext >&5
14844 ac_cv_have_int64_t="no"
14847 rm -f conftest.$ac_objext conftest.$ac_ext
14850 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14851 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14852 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14853 cat >>confdefs.h <<\_ACEOF
14854 #define HAVE_INT64_T 1
14860 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14861 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14862 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14863 echo $ECHO_N "(cached) $ECHO_C" >&6
14866 cat >conftest.$ac_ext <<_ACEOF
14867 #line $LINENO "configure"
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 #include <sys/types.h>
14877 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14882 rm -f conftest.$ac_objext
14883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14884 (eval $ac_compile) 2>&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); } &&
14888 { ac_try='test -s conftest.$ac_objext'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 ac_cv_have_u_intxx_t="yes"
14896 echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14899 ac_cv_have_u_intxx_t="no"
14902 rm -f conftest.$ac_objext conftest.$ac_ext
14905 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14906 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14907 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14908 cat >>confdefs.h <<\_ACEOF
14909 #define HAVE_U_INTXX_T 1
14915 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14916 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14917 if test "${ac_cv_have_u_int64_t+set}" = set; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14921 cat >conftest.$ac_ext <<_ACEOF
14922 #line $LINENO "configure"
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h. */
14928 #include <sys/types.h>
14932 u_int64_t a; a = 1;
14937 rm -f conftest.$ac_objext
14938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14939 (eval $ac_compile) 2>&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); } &&
14943 { ac_try='test -s conftest.$ac_objext'
14944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945 (eval $ac_try) 2>&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; }; then
14949 ac_cv_have_u_int64_t="yes"
14951 echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14954 ac_cv_have_u_int64_t="no"
14957 rm -f conftest.$ac_objext conftest.$ac_ext
14960 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14961 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14962 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14963 cat >>confdefs.h <<\_ACEOF
14964 #define HAVE_U_INT64_T 1
14970 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14971 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14973 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14974 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14975 cat >conftest.$ac_ext <<_ACEOF
14976 #line $LINENO "configure"
14979 cat confdefs.h >>conftest.$ac_ext
14980 cat >>conftest.$ac_ext <<_ACEOF
14981 /* end confdefs.h. */
14982 #include <sys/bitypes.h>
14986 int8_t a; int16_t b; int32_t c;
14987 u_int8_t e; u_int16_t f; u_int32_t g;
14988 a = b = c = e = f = g = 1;
14993 rm -f conftest.$ac_objext
14994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14995 (eval $ac_compile) 2>&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
14999 { ac_try='test -s conftest.$ac_objext'
15000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001 (eval $ac_try) 2>&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; }; then
15005 cat >>confdefs.h <<\_ACEOF
15006 #define HAVE_U_INTXX_T 1
15009 cat >>confdefs.h <<\_ACEOF
15010 #define HAVE_INTXX_T 1
15013 cat >>confdefs.h <<\_ACEOF
15014 #define HAVE_SYS_BITYPES_H 1
15017 echo "$as_me:$LINENO: result: yes" >&5
15018 echo "${ECHO_T}yes" >&6
15020 echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15023 echo "$as_me:$LINENO: result: no" >&5
15024 echo "${ECHO_T}no" >&6
15027 rm -f conftest.$ac_objext conftest.$ac_ext
15030 if test -z "$have_u_intxx_t" ; then
15031 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15032 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15033 if test "${ac_cv_have_uintxx_t+set}" = set; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15037 cat >conftest.$ac_ext <<_ACEOF
15038 #line $LINENO "configure"
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h. */
15044 #include <sys/types.h>
15048 uint8_t a; uint16_t b;
15049 uint32_t c; a = b = c = 1;
15054 rm -f conftest.$ac_objext
15055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15056 (eval $ac_compile) 2>&5
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); } &&
15060 { ac_try='test -s conftest.$ac_objext'
15061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15062 (eval $ac_try) 2>&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); }; }; then
15066 ac_cv_have_uintxx_t="yes"
15068 echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15071 ac_cv_have_uintxx_t="no"
15074 rm -f conftest.$ac_objext conftest.$ac_ext
15077 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15078 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15079 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15080 cat >>confdefs.h <<\_ACEOF
15081 #define HAVE_UINTXX_T 1
15087 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15088 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15090 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15091 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15092 cat >conftest.$ac_ext <<_ACEOF
15093 #line $LINENO "configure"
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h. */
15099 #include <sys/bitypes.h>
15103 int64_t a; u_int64_t b;
15109 rm -f conftest.$ac_objext
15110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15111 (eval $ac_compile) 2>&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } &&
15115 { ac_try='test -s conftest.$ac_objext'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 cat >>confdefs.h <<\_ACEOF
15122 #define HAVE_U_INT64_T 1
15125 cat >>confdefs.h <<\_ACEOF
15126 #define HAVE_INT64_T 1
15129 echo "$as_me:$LINENO: result: yes" >&5
15130 echo "${ECHO_T}yes" >&6
15132 echo "$as_me: failed program was:" >&5
15133 sed 's/^/| /' conftest.$ac_ext >&5
15135 echo "$as_me:$LINENO: result: no" >&5
15136 echo "${ECHO_T}no" >&6
15139 rm -f conftest.$ac_objext conftest.$ac_ext
15142 if (test -z "$have_uintxx_t" && \
15143 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15145 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15146 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15147 cat >conftest.$ac_ext <<_ACEOF
15148 #line $LINENO "configure"
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h. */
15154 #include <sys/bitypes.h>
15158 uint8_t a; uint16_t b;
15159 uint32_t c; a = b = c = 1;
15164 rm -f conftest.$ac_objext
15165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15166 (eval $ac_compile) 2>&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } &&
15170 { ac_try='test -s conftest.$ac_objext'
15171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15172 (eval $ac_try) 2>&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); }; }; then
15176 cat >>confdefs.h <<\_ACEOF
15177 #define HAVE_UINTXX_T 1
15180 echo "$as_me:$LINENO: result: yes" >&5
15181 echo "${ECHO_T}yes" >&6
15183 echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15186 echo "$as_me:$LINENO: result: no" >&5
15187 echo "${ECHO_T}no" >&6
15190 rm -f conftest.$ac_objext conftest.$ac_ext
15226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15227 echo "$as_me:$LINENO: checking for $ac_func" >&5
15228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15229 if eval "test \"\${$as_ac_var+set}\" = set"; then
15230 echo $ECHO_N "(cached) $ECHO_C" >&6
15232 cat >conftest.$ac_ext <<_ACEOF
15233 #line $LINENO "configure"
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h. */
15239 /* System header to define __stub macros and hopefully few prototypes,
15240 which can conflict with char $ac_func (); below.
15241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15242 <limits.h> exists even on freestanding compilers. */
15244 # include <limits.h>
15246 # include <assert.h>
15248 /* Override any gcc2 internal prototype to avoid an error. */
15253 /* We use char because int might match the return type of a gcc2
15254 builtin and then its argument prototype would still apply. */
15256 /* The GNU C library defines this for functions which it implements
15257 to always fail with ENOSYS. Some functions are actually named
15258 something starting with __ and the normal name is an alias. */
15259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15262 char (*f) () = $ac_func;
15271 return f != $ac_func;
15276 rm -f conftest.$ac_objext conftest$ac_exeext
15277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15278 (eval $ac_link) 2>&5
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); } &&
15282 { ac_try='test -s conftest$ac_exeext'
15283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284 (eval $ac_try) 2>&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; }; then
15288 eval "$as_ac_var=yes"
15290 echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15293 eval "$as_ac_var=no"
15295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15299 if test `eval echo '${'$as_ac_var'}'` = yes; then
15300 cat >>confdefs.h <<_ACEOF
15301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15305 echo 'configure: cannot find needed function.'; exit 1
15312 for ac_func in fchdir
15314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15315 echo "$as_me:$LINENO: checking for $ac_func" >&5
15316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15317 if eval "test \"\${$as_ac_var+set}\" = set"; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15320 cat >conftest.$ac_ext <<_ACEOF
15321 #line $LINENO "configure"
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15327 /* System header to define __stub macros and hopefully few prototypes,
15328 which can conflict with char $ac_func (); below.
15329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15330 <limits.h> exists even on freestanding compilers. */
15332 # include <limits.h>
15334 # include <assert.h>
15336 /* Override any gcc2 internal prototype to avoid an error. */
15341 /* We use char because int might match the return type of a gcc2
15342 builtin and then its argument prototype would still apply. */
15344 /* The GNU C library defines this for functions which it implements
15345 to always fail with ENOSYS. Some functions are actually named
15346 something starting with __ and the normal name is an alias. */
15347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15350 char (*f) () = $ac_func;
15359 return f != $ac_func;
15364 rm -f conftest.$ac_objext conftest$ac_exeext
15365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15366 (eval $ac_link) 2>&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } &&
15370 { ac_try='test -s conftest$ac_exeext'
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; }; then
15376 eval "$as_ac_var=yes"
15378 echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15381 eval "$as_ac_var=no"
15383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15387 if test `eval echo '${'$as_ac_var'}'` = yes; then
15388 cat >>confdefs.h <<_ACEOF
15389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15391 cat >>confdefs.h <<\_ACEOF
15392 #define HAVE_FCHDIR 1
15399 for ac_func in strtoll
15401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15402 echo "$as_me:$LINENO: checking for $ac_func" >&5
15403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15404 if eval "test \"\${$as_ac_var+set}\" = set"; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 cat >conftest.$ac_ext <<_ACEOF
15408 #line $LINENO "configure"
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h. */
15414 /* System header to define __stub macros and hopefully few prototypes,
15415 which can conflict with char $ac_func (); below.
15416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15417 <limits.h> exists even on freestanding compilers. */
15419 # include <limits.h>
15421 # include <assert.h>
15423 /* Override any gcc2 internal prototype to avoid an error. */
15428 /* We use char because int might match the return type of a gcc2
15429 builtin and then its argument prototype would still apply. */
15431 /* The GNU C library defines this for functions which it implements
15432 to always fail with ENOSYS. Some functions are actually named
15433 something starting with __ and the normal name is an alias. */
15434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15437 char (*f) () = $ac_func;
15446 return f != $ac_func;
15451 rm -f conftest.$ac_objext conftest$ac_exeext
15452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15453 (eval $ac_link) 2>&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } &&
15457 { ac_try='test -s conftest$ac_exeext'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 eval "$as_ac_var=yes"
15465 echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15468 eval "$as_ac_var=no"
15470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15474 if test `eval echo '${'$as_ac_var'}'` = yes; then
15475 cat >>confdefs.h <<_ACEOF
15476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15478 cat >>confdefs.h <<\_ACEOF
15479 #define HAVE_STRTOLL 1
15487 for ac_func in chflags
15489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15490 echo "$as_me:$LINENO: checking for $ac_func" >&5
15491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15492 if eval "test \"\${$as_ac_var+set}\" = set"; then
15493 echo $ECHO_N "(cached) $ECHO_C" >&6
15495 cat >conftest.$ac_ext <<_ACEOF
15496 #line $LINENO "configure"
15499 cat confdefs.h >>conftest.$ac_ext
15500 cat >>conftest.$ac_ext <<_ACEOF
15501 /* end confdefs.h. */
15502 /* System header to define __stub macros and hopefully few prototypes,
15503 which can conflict with char $ac_func (); below.
15504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15505 <limits.h> exists even on freestanding compilers. */
15507 # include <limits.h>
15509 # include <assert.h>
15511 /* Override any gcc2 internal prototype to avoid an error. */
15516 /* We use char because int might match the return type of a gcc2
15517 builtin and then its argument prototype would still apply. */
15519 /* The GNU C library defines this for functions which it implements
15520 to always fail with ENOSYS. Some functions are actually named
15521 something starting with __ and the normal name is an alias. */
15522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15525 char (*f) () = $ac_func;
15534 return f != $ac_func;
15539 rm -f conftest.$ac_objext conftest$ac_exeext
15540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15541 (eval $ac_link) 2>&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
15545 { ac_try='test -s conftest$ac_exeext'
15546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547 (eval $ac_try) 2>&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; }; then
15551 eval "$as_ac_var=yes"
15553 echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15556 eval "$as_ac_var=no"
15558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15562 if test `eval echo '${'$as_ac_var'}'` = yes; then
15563 cat >>confdefs.h <<_ACEOF
15564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15575 for ac_func in snprintf vsnprintf gethostid getdomainname
15577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15578 echo "$as_me:$LINENO: checking for $ac_func" >&5
15579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15580 if eval "test \"\${$as_ac_var+set}\" = set"; then
15581 echo $ECHO_N "(cached) $ECHO_C" >&6
15583 cat >conftest.$ac_ext <<_ACEOF
15584 #line $LINENO "configure"
15587 cat confdefs.h >>conftest.$ac_ext
15588 cat >>conftest.$ac_ext <<_ACEOF
15589 /* end confdefs.h. */
15590 /* System header to define __stub macros and hopefully few prototypes,
15591 which can conflict with char $ac_func (); below.
15592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15593 <limits.h> exists even on freestanding compilers. */
15595 # include <limits.h>
15597 # include <assert.h>
15599 /* Override any gcc2 internal prototype to avoid an error. */
15604 /* We use char because int might match the return type of a gcc2
15605 builtin and then its argument prototype would still apply. */
15607 /* The GNU C library defines this for functions which it implements
15608 to always fail with ENOSYS. Some functions are actually named
15609 something starting with __ and the normal name is an alias. */
15610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15613 char (*f) () = $ac_func;
15622 return f != $ac_func;
15627 rm -f conftest.$ac_objext conftest$ac_exeext
15628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15629 (eval $ac_link) 2>&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } &&
15633 { ac_try='test -s conftest$ac_exeext'
15634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635 (eval $ac_try) 2>&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); }; }; then
15639 eval "$as_ac_var=yes"
15641 echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.$ac_ext >&5
15644 eval "$as_ac_var=no"
15646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15650 if test `eval echo '${'$as_ac_var'}'` = yes; then
15651 cat >>confdefs.h <<_ACEOF
15652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15663 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15666 echo "$as_me:$LINENO: checking for $ac_func" >&5
15667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15668 if eval "test \"\${$as_ac_var+set}\" = set"; then
15669 echo $ECHO_N "(cached) $ECHO_C" >&6
15671 cat >conftest.$ac_ext <<_ACEOF
15672 #line $LINENO "configure"
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15678 /* System header to define __stub macros and hopefully few prototypes,
15679 which can conflict with char $ac_func (); below.
15680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15681 <limits.h> exists even on freestanding compilers. */
15683 # include <limits.h>
15685 # include <assert.h>
15687 /* Override any gcc2 internal prototype to avoid an error. */
15692 /* We use char because int might match the return type of a gcc2
15693 builtin and then its argument prototype would still apply. */
15695 /* The GNU C library defines this for functions which it implements
15696 to always fail with ENOSYS. Some functions are actually named
15697 something starting with __ and the normal name is an alias. */
15698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15701 char (*f) () = $ac_func;
15710 return f != $ac_func;
15715 rm -f conftest.$ac_objext conftest$ac_exeext
15716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15717 (eval $ac_link) 2>&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); } &&
15721 { ac_try='test -s conftest$ac_exeext'
15722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723 (eval $ac_try) 2>&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15727 eval "$as_ac_var=yes"
15729 echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15732 eval "$as_ac_var=no"
15734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15737 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15738 if test `eval echo '${'$as_ac_var'}'` = yes; then
15739 cat >>confdefs.h <<_ACEOF
15740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15747 # If resolver functions are not in libc check for -lnsl or -lresolv.
15748 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15749 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15750 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15751 echo $ECHO_N "(cached) $ECHO_C" >&6
15753 cat >conftest.$ac_ext <<_ACEOF
15754 #line $LINENO "configure"
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h. */
15760 /* System header to define __stub macros and hopefully few prototypes,
15761 which can conflict with char gethostbyname_r (); below.
15762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15763 <limits.h> exists even on freestanding compilers. */
15765 # include <limits.h>
15767 # include <assert.h>
15769 /* Override any gcc2 internal prototype to avoid an error. */
15774 /* We use char because int might match the return type of a gcc2
15775 builtin and then its argument prototype would still apply. */
15776 char gethostbyname_r ();
15777 /* The GNU C library defines this for functions which it implements
15778 to always fail with ENOSYS. Some functions are actually named
15779 something starting with __ and the normal name is an alias. */
15780 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15783 char (*f) () = gethostbyname_r;
15792 return f != gethostbyname_r;
15797 rm -f conftest.$ac_objext conftest$ac_exeext
15798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15799 (eval $ac_link) 2>&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } &&
15803 { ac_try='test -s conftest$ac_exeext'
15804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805 (eval $ac_try) 2>&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); }; }; then
15809 ac_cv_func_gethostbyname_r=yes
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15814 ac_cv_func_gethostbyname_r=no
15816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15818 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15819 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15820 if test $ac_cv_func_gethostbyname_r = yes; then
15821 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15822 echo "${ECHO_T}using libc's resolver" >&6
15825 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15826 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15827 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15828 echo $ECHO_N "(cached) $ECHO_C" >&6
15830 ac_check_lib_save_LIBS=$LIBS
15832 cat >conftest.$ac_ext <<_ACEOF
15833 #line $LINENO "configure"
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h. */
15840 /* Override any gcc2 internal prototype to avoid an error. */
15844 /* We use char because int might match the return type of a gcc2
15845 builtin and then its argument prototype would still apply. */
15846 char gethostbyname_r ();
15850 gethostbyname_r ();
15855 rm -f conftest.$ac_objext conftest$ac_exeext
15856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15857 (eval $ac_link) 2>&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } &&
15861 { ac_try='test -s conftest$ac_exeext'
15862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863 (eval $ac_try) 2>&5
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; }; then
15867 ac_cv_lib_nsl_gethostbyname_r=yes
15869 echo "$as_me: failed program was:" >&5
15870 sed 's/^/| /' conftest.$ac_ext >&5
15872 ac_cv_lib_nsl_gethostbyname_r=no
15874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15875 LIBS=$ac_check_lib_save_LIBS
15877 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15878 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15879 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15880 cat >>confdefs.h <<_ACEOF
15881 #define HAVE_LIBNSL 1
15889 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15890 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15891 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15894 ac_check_lib_save_LIBS=$LIBS
15895 LIBS="-lresolv $LIBS"
15896 cat >conftest.$ac_ext <<_ACEOF
15897 #line $LINENO "configure"
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h. */
15904 /* Override any gcc2 internal prototype to avoid an error. */
15908 /* We use char because int might match the return type of a gcc2
15909 builtin and then its argument prototype would still apply. */
15910 char gethostbyname_r ();
15914 gethostbyname_r ();
15919 rm -f conftest.$ac_objext conftest$ac_exeext
15920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15921 (eval $ac_link) 2>&5
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); } &&
15925 { ac_try='test -s conftest$ac_exeext'
15926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927 (eval $ac_try) 2>&5
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); }; }; then
15931 ac_cv_lib_resolv_gethostbyname_r=yes
15933 echo "$as_me: failed program was:" >&5
15934 sed 's/^/| /' conftest.$ac_ext >&5
15936 ac_cv_lib_resolv_gethostbyname_r=no
15938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15939 LIBS=$ac_check_lib_save_LIBS
15941 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15942 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15943 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15944 cat >>confdefs.h <<_ACEOF
15945 #define HAVE_LIBRESOLV 1
15948 LIBS="-lresolv $LIBS"
15956 # Find where sockets are (especially for Solaris)
15957 echo "$as_me:$LINENO: checking for socket" >&5
15958 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15959 if test "${ac_cv_func_socket+set}" = set; then
15960 echo $ECHO_N "(cached) $ECHO_C" >&6
15962 cat >conftest.$ac_ext <<_ACEOF
15963 #line $LINENO "configure"
15966 cat confdefs.h >>conftest.$ac_ext
15967 cat >>conftest.$ac_ext <<_ACEOF
15968 /* end confdefs.h. */
15969 /* System header to define __stub macros and hopefully few prototypes,
15970 which can conflict with char socket (); below.
15971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15972 <limits.h> exists even on freestanding compilers. */
15974 # include <limits.h>
15976 # include <assert.h>
15978 /* Override any gcc2 internal prototype to avoid an error. */
15983 /* We use char because int might match the return type of a gcc2
15984 builtin and then its argument prototype would still apply. */
15986 /* The GNU C library defines this for functions which it implements
15987 to always fail with ENOSYS. Some functions are actually named
15988 something starting with __ and the normal name is an alias. */
15989 #if defined (__stub_socket) || defined (__stub___socket)
15992 char (*f) () = socket;
16001 return f != socket;
16006 rm -f conftest.$ac_objext conftest$ac_exeext
16007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16008 (eval $ac_link) 2>&5
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } &&
16012 { ac_try='test -s conftest$ac_exeext'
16013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014 (eval $ac_try) 2>&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; }; then
16018 ac_cv_func_socket=yes
16020 echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16023 ac_cv_func_socket=no
16025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16027 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16028 echo "${ECHO_T}$ac_cv_func_socket" >&6
16029 if test $ac_cv_func_socket = yes; then
16030 echo "$as_me:$LINENO: result: using libc's socket" >&5
16031 echo "${ECHO_T}using libc's socket" >&6
16034 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
16035 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
16036 if test "${ac_cv_lib_xnet_socket+set}" = set; then
16037 echo $ECHO_N "(cached) $ECHO_C" >&6
16039 ac_check_lib_save_LIBS=$LIBS
16040 LIBS="-lxnet $LIBS"
16041 cat >conftest.$ac_ext <<_ACEOF
16042 #line $LINENO "configure"
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h. */
16049 /* Override any gcc2 internal prototype to avoid an error. */
16053 /* We use char because int might match the return type of a gcc2
16054 builtin and then its argument prototype would still apply. */
16064 rm -f conftest.$ac_objext conftest$ac_exeext
16065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16066 (eval $ac_link) 2>&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } &&
16070 { ac_try='test -s conftest$ac_exeext'
16071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072 (eval $ac_try) 2>&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); }; }; then
16076 ac_cv_lib_xnet_socket=yes
16078 echo "$as_me: failed program was:" >&5
16079 sed 's/^/| /' conftest.$ac_ext >&5
16081 ac_cv_lib_xnet_socket=no
16083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16084 LIBS=$ac_check_lib_save_LIBS
16086 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16087 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16088 if test $ac_cv_lib_xnet_socket = yes; then
16089 cat >>confdefs.h <<_ACEOF
16090 #define HAVE_LIBXNET 1
16093 LIBS="-lxnet $LIBS"
16098 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16099 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16100 if test "${ac_cv_lib_socket_socket+set}" = set; then
16101 echo $ECHO_N "(cached) $ECHO_C" >&6
16103 ac_check_lib_save_LIBS=$LIBS
16104 LIBS="-lsocket $LIBS"
16105 cat >conftest.$ac_ext <<_ACEOF
16106 #line $LINENO "configure"
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16113 /* Override any gcc2 internal prototype to avoid an error. */
16117 /* We use char because int might match the return type of a gcc2
16118 builtin and then its argument prototype would still apply. */
16128 rm -f conftest.$ac_objext conftest$ac_exeext
16129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16130 (eval $ac_link) 2>&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); } &&
16134 { ac_try='test -s conftest$ac_exeext'
16135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; }; then
16140 ac_cv_lib_socket_socket=yes
16142 echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16145 ac_cv_lib_socket_socket=no
16147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16148 LIBS=$ac_check_lib_save_LIBS
16150 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16151 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16152 if test $ac_cv_lib_socket_socket = yes; then
16153 cat >>confdefs.h <<_ACEOF
16154 #define HAVE_LIBSOCKET 1
16157 LIBS="-lsocket $LIBS"
16162 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16163 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16164 if test "${ac_cv_lib_inet_socket+set}" = set; then
16165 echo $ECHO_N "(cached) $ECHO_C" >&6
16167 ac_check_lib_save_LIBS=$LIBS
16168 LIBS="-linet $LIBS"
16169 cat >conftest.$ac_ext <<_ACEOF
16170 #line $LINENO "configure"
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h. */
16177 /* Override any gcc2 internal prototype to avoid an error. */
16181 /* We use char because int might match the return type of a gcc2
16182 builtin and then its argument prototype would still apply. */
16192 rm -f conftest.$ac_objext conftest$ac_exeext
16193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16194 (eval $ac_link) 2>&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } &&
16198 { ac_try='test -s conftest$ac_exeext'
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; }; then
16204 ac_cv_lib_inet_socket=yes
16206 echo "$as_me: failed program was:" >&5
16207 sed 's/^/| /' conftest.$ac_ext >&5
16209 ac_cv_lib_inet_socket=no
16211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16212 LIBS=$ac_check_lib_save_LIBS
16214 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16215 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16216 if test $ac_cv_lib_inet_socket = yes; then
16217 cat >>confdefs.h <<_ACEOF
16218 #define HAVE_LIBINET 1
16221 LIBS="-linet $LIBS"
16229 for ac_func in inet_pton
16231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16232 echo "$as_me:$LINENO: checking for $ac_func" >&5
16233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16234 if eval "test \"\${$as_ac_var+set}\" = set"; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16237 cat >conftest.$ac_ext <<_ACEOF
16238 #line $LINENO "configure"
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h. */
16244 /* System header to define __stub macros and hopefully few prototypes,
16245 which can conflict with char $ac_func (); below.
16246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16247 <limits.h> exists even on freestanding compilers. */
16249 # include <limits.h>
16251 # include <assert.h>
16253 /* Override any gcc2 internal prototype to avoid an error. */
16258 /* We use char because int might match the return type of a gcc2
16259 builtin and then its argument prototype would still apply. */
16261 /* The GNU C library defines this for functions which it implements
16262 to always fail with ENOSYS. Some functions are actually named
16263 something starting with __ and the normal name is an alias. */
16264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16267 char (*f) () = $ac_func;
16276 return f != $ac_func;
16281 rm -f conftest.$ac_objext conftest$ac_exeext
16282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16283 (eval $ac_link) 2>&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } &&
16287 { ac_try='test -s conftest$ac_exeext'
16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 (eval $ac_try) 2>&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; }; then
16293 eval "$as_ac_var=yes"
16295 echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16298 eval "$as_ac_var=no"
16300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16304 if test `eval echo '${'$as_ac_var'}'` = yes; then
16305 cat >>confdefs.h <<_ACEOF
16306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16308 cat >>confdefs.h <<\_ACEOF
16309 #define HAVE_INET_PTON 1
16316 for ac_func in inet_ntop
16318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16319 echo "$as_me:$LINENO: checking for $ac_func" >&5
16320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16321 if eval "test \"\${$as_ac_var+set}\" = set"; then
16322 echo $ECHO_N "(cached) $ECHO_C" >&6
16324 cat >conftest.$ac_ext <<_ACEOF
16325 #line $LINENO "configure"
16328 cat confdefs.h >>conftest.$ac_ext
16329 cat >>conftest.$ac_ext <<_ACEOF
16330 /* end confdefs.h. */
16331 /* System header to define __stub macros and hopefully few prototypes,
16332 which can conflict with char $ac_func (); below.
16333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16334 <limits.h> exists even on freestanding compilers. */
16336 # include <limits.h>
16338 # include <assert.h>
16340 /* Override any gcc2 internal prototype to avoid an error. */
16345 /* We use char because int might match the return type of a gcc2
16346 builtin and then its argument prototype would still apply. */
16348 /* The GNU C library defines this for functions which it implements
16349 to always fail with ENOSYS. Some functions are actually named
16350 something starting with __ and the normal name is an alias. */
16351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16354 char (*f) () = $ac_func;
16363 return f != $ac_func;
16368 rm -f conftest.$ac_objext conftest$ac_exeext
16369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16370 (eval $ac_link) 2>&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } &&
16374 { ac_try='test -s conftest$ac_exeext'
16375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376 (eval $ac_try) 2>&5
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; }; then
16380 eval "$as_ac_var=yes"
16382 echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16385 eval "$as_ac_var=no"
16387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16391 if test `eval echo '${'$as_ac_var'}'` = yes; then
16392 cat >>confdefs.h <<_ACEOF
16393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16395 cat >>confdefs.h <<\_ACEOF
16396 #define HAVE_INET_NTOP 1
16403 for ac_func in gethostbyname2
16405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16406 echo "$as_me:$LINENO: checking for $ac_func" >&5
16407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16408 if eval "test \"\${$as_ac_var+set}\" = set"; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16411 cat >conftest.$ac_ext <<_ACEOF
16412 #line $LINENO "configure"
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 /* System header to define __stub macros and hopefully few prototypes,
16419 which can conflict with char $ac_func (); below.
16420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16421 <limits.h> exists even on freestanding compilers. */
16423 # include <limits.h>
16425 # include <assert.h>
16427 /* Override any gcc2 internal prototype to avoid an error. */
16432 /* We use char because int might match the return type of a gcc2
16433 builtin and then its argument prototype would still apply. */
16435 /* The GNU C library defines this for functions which it implements
16436 to always fail with ENOSYS. Some functions are actually named
16437 something starting with __ and the normal name is an alias. */
16438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16441 char (*f) () = $ac_func;
16450 return f != $ac_func;
16455 rm -f conftest.$ac_objext conftest$ac_exeext
16456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16457 (eval $ac_link) 2>&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } &&
16461 { ac_try='test -s conftest$ac_exeext'
16462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463 (eval $ac_try) 2>&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; }; then
16467 eval "$as_ac_var=yes"
16469 echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16472 eval "$as_ac_var=no"
16474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16478 if test `eval echo '${'$as_ac_var'}'` = yes; then
16479 cat >>confdefs.h <<_ACEOF
16480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16482 cat >>confdefs.h <<\_ACEOF
16483 #define HAVE_GETHOSTBYNAME2 1
16490 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
16491 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
16492 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
16502 #include <sys/socket.h>
16506 struct sockaddr s; s.sa_len;
16511 rm -f conftest.$ac_objext
16512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16513 (eval $ac_compile) 2>&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } &&
16517 { ac_try='test -s conftest.$ac_objext'
16518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519 (eval $ac_try) 2>&5
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; }; then
16523 ac_cv_struct_sockaddr_sa_len=yes
16525 echo "$as_me: failed program was:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16528 ac_cv_struct_sockaddr_sa_len=no
16530 rm -f conftest.$ac_objext conftest.$ac_ext
16532 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
16533 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
16535 if test $ac_cv_struct_sockaddr_sa_len = yes; then
16537 cat >>confdefs.h <<\_ACEOF
16538 #define HAVE_SA_LEN 1
16544 echo "$as_me:$LINENO: checking for IPv6 support" >&5
16545 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
16546 if test "${ac_cv_ipv6_support+set}" = set; then
16547 echo $ECHO_N "(cached) $ECHO_C" >&6
16549 cat >conftest.$ac_ext <<_ACEOF
16550 #line $LINENO "configure"
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16556 #include <sys/types.h>
16557 #include <sys/socket.h>
16558 #include <netinet/in.h>
16562 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
16568 rm -f conftest.$ac_objext conftest$ac_exeext
16569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16570 (eval $ac_link) 2>&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } &&
16574 { ac_try='test -s conftest$ac_exeext'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16580 ac_cv_ipv6_support=yes
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16585 ac_cv_ipv6_support=no
16587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16589 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
16590 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
16592 if test "$ac_cv_ipv6_support" = yes; then
16594 cat >>confdefs.h <<\_ACEOF
16595 #define HAVE_IPV6 1
16603 for ac_func in strftime
16605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16606 echo "$as_me:$LINENO: checking for $ac_func" >&5
16607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16608 if eval "test \"\${$as_ac_var+set}\" = set"; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 cat >conftest.$ac_ext <<_ACEOF
16612 #line $LINENO "configure"
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h. */
16618 /* System header to define __stub macros and hopefully few prototypes,
16619 which can conflict with char $ac_func (); below.
16620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16621 <limits.h> exists even on freestanding compilers. */
16623 # include <limits.h>
16625 # include <assert.h>
16627 /* Override any gcc2 internal prototype to avoid an error. */
16632 /* We use char because int might match the return type of a gcc2
16633 builtin and then its argument prototype would still apply. */
16635 /* The GNU C library defines this for functions which it implements
16636 to always fail with ENOSYS. Some functions are actually named
16637 something starting with __ and the normal name is an alias. */
16638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16641 char (*f) () = $ac_func;
16650 return f != $ac_func;
16655 rm -f conftest.$ac_objext conftest$ac_exeext
16656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16657 (eval $ac_link) 2>&5
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); } &&
16661 { ac_try='test -s conftest$ac_exeext'
16662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16663 (eval $ac_try) 2>&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; }; then
16667 eval "$as_ac_var=yes"
16669 echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16672 eval "$as_ac_var=no"
16674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16677 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16678 if test `eval echo '${'$as_ac_var'}'` = yes; then
16679 cat >>confdefs.h <<_ACEOF
16680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16684 # strftime is in -lintl on SCO UNIX.
16685 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16686 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16687 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16688 echo $ECHO_N "(cached) $ECHO_C" >&6
16690 ac_check_lib_save_LIBS=$LIBS
16691 LIBS="-lintl $LIBS"
16692 cat >conftest.$ac_ext <<_ACEOF
16693 #line $LINENO "configure"
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h. */
16700 /* Override any gcc2 internal prototype to avoid an error. */
16704 /* We use char because int might match the return type of a gcc2
16705 builtin and then its argument prototype would still apply. */
16715 rm -f conftest.$ac_objext conftest$ac_exeext
16716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16717 (eval $ac_link) 2>&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } &&
16721 { ac_try='test -s conftest$ac_exeext'
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; }; then
16727 ac_cv_lib_intl_strftime=yes
16729 echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.$ac_ext >&5
16732 ac_cv_lib_intl_strftime=no
16734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16735 LIBS=$ac_check_lib_save_LIBS
16737 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16738 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16739 if test $ac_cv_lib_intl_strftime = yes; then
16740 cat >>confdefs.h <<\_ACEOF
16741 #define HAVE_STRFTIME 1
16744 LIBS="-lintl $LIBS"
16751 for ac_func in vprintf
16753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16754 echo "$as_me:$LINENO: checking for $ac_func" >&5
16755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16756 if eval "test \"\${$as_ac_var+set}\" = set"; then
16757 echo $ECHO_N "(cached) $ECHO_C" >&6
16759 cat >conftest.$ac_ext <<_ACEOF
16760 #line $LINENO "configure"
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16766 /* System header to define __stub macros and hopefully few prototypes,
16767 which can conflict with char $ac_func (); below.
16768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16769 <limits.h> exists even on freestanding compilers. */
16771 # include <limits.h>
16773 # include <assert.h>
16775 /* Override any gcc2 internal prototype to avoid an error. */
16780 /* We use char because int might match the return type of a gcc2
16781 builtin and then its argument prototype would still apply. */
16783 /* The GNU C library defines this for functions which it implements
16784 to always fail with ENOSYS. Some functions are actually named
16785 something starting with __ and the normal name is an alias. */
16786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16789 char (*f) () = $ac_func;
16798 return f != $ac_func;
16803 rm -f conftest.$ac_objext conftest$ac_exeext
16804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16805 (eval $ac_link) 2>&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } &&
16809 { ac_try='test -s conftest$ac_exeext'
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
16815 eval "$as_ac_var=yes"
16817 echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16820 eval "$as_ac_var=no"
16822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16826 if test `eval echo '${'$as_ac_var'}'` = yes; then
16827 cat >>confdefs.h <<_ACEOF
16828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16831 echo "$as_me:$LINENO: checking for _doprnt" >&5
16832 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16833 if test "${ac_cv_func__doprnt+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16836 cat >conftest.$ac_ext <<_ACEOF
16837 #line $LINENO "configure"
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h. */
16843 /* System header to define __stub macros and hopefully few prototypes,
16844 which can conflict with char _doprnt (); below.
16845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16846 <limits.h> exists even on freestanding compilers. */
16848 # include <limits.h>
16850 # include <assert.h>
16852 /* Override any gcc2 internal prototype to avoid an error. */
16857 /* We use char because int might match the return type of a gcc2
16858 builtin and then its argument prototype would still apply. */
16860 /* The GNU C library defines this for functions which it implements
16861 to always fail with ENOSYS. Some functions are actually named
16862 something starting with __ and the normal name is an alias. */
16863 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16866 char (*f) () = _doprnt;
16875 return f != _doprnt;
16880 rm -f conftest.$ac_objext conftest$ac_exeext
16881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16882 (eval $ac_link) 2>&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } &&
16886 { ac_try='test -s conftest$ac_exeext'
16887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888 (eval $ac_try) 2>&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; }; then
16892 ac_cv_func__doprnt=yes
16894 echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16897 ac_cv_func__doprnt=no
16899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16901 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16902 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16903 if test $ac_cv_func__doprnt = yes; then
16905 cat >>confdefs.h <<\_ACEOF
16906 #define HAVE_DOPRNT 1
16915 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16916 # for constant arguments. Useless!
16917 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16918 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16919 if test "${ac_cv_working_alloca_h+set}" = set; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16922 cat >conftest.$ac_ext <<_ACEOF
16923 #line $LINENO "configure"
16926 cat confdefs.h >>conftest.$ac_ext
16927 cat >>conftest.$ac_ext <<_ACEOF
16928 /* end confdefs.h. */
16929 #include <alloca.h>
16933 char *p = (char *) alloca (2 * sizeof (int));
16938 rm -f conftest.$ac_objext conftest$ac_exeext
16939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16940 (eval $ac_link) 2>&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } &&
16944 { ac_try='test -s conftest$ac_exeext'
16945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16946 (eval $ac_try) 2>&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); }; }; then
16950 ac_cv_working_alloca_h=yes
16952 echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.$ac_ext >&5
16955 ac_cv_working_alloca_h=no
16957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16959 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16960 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16961 if test $ac_cv_working_alloca_h = yes; then
16963 cat >>confdefs.h <<\_ACEOF
16964 #define HAVE_ALLOCA_H 1
16969 echo "$as_me:$LINENO: checking for alloca" >&5
16970 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16971 if test "${ac_cv_func_alloca_works+set}" = set; then
16972 echo $ECHO_N "(cached) $ECHO_C" >&6
16974 cat >conftest.$ac_ext <<_ACEOF
16975 #line $LINENO "configure"
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h. */
16982 # define alloca __builtin_alloca
16985 # include <malloc.h>
16986 # define alloca _alloca
16989 # include <alloca.h>
16994 # ifndef alloca /* predefined by HP cc +Olibcalls */
17005 char *p = (char *) alloca (1);
17010 rm -f conftest.$ac_objext conftest$ac_exeext
17011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17012 (eval $ac_link) 2>&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } &&
17016 { ac_try='test -s conftest$ac_exeext'
17017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018 (eval $ac_try) 2>&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; }; then
17022 ac_cv_func_alloca_works=yes
17024 echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17027 ac_cv_func_alloca_works=no
17029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17031 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17032 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17034 if test $ac_cv_func_alloca_works = yes; then
17036 cat >>confdefs.h <<\_ACEOF
17037 #define HAVE_ALLOCA 1
17041 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17042 # that cause trouble. Some versions do not even contain alloca or
17043 # contain a buggy version. If you still want to use their alloca,
17044 # use ar to extract alloca.o from them instead of compiling alloca.c.
17046 ALLOCA=alloca.$ac_objext
17048 cat >>confdefs.h <<\_ACEOF
17053 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17054 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17055 if test "${ac_cv_os_cray+set}" = set; then
17056 echo $ECHO_N "(cached) $ECHO_C" >&6
17058 cat >conftest.$ac_ext <<_ACEOF
17059 #line $LINENO "configure"
17062 cat confdefs.h >>conftest.$ac_ext
17063 cat >>conftest.$ac_ext <<_ACEOF
17064 /* end confdefs.h. */
17065 #if defined(CRAY) && ! defined(CRAY2)
17072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17073 $EGREP "webecray" >/dev/null 2>&1; then
17081 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17082 echo "${ECHO_T}$ac_cv_os_cray" >&6
17083 if test $ac_cv_os_cray = yes; then
17084 for ac_func in _getb67 GETB67 getb67; do
17085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17086 echo "$as_me:$LINENO: checking for $ac_func" >&5
17087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17088 if eval "test \"\${$as_ac_var+set}\" = set"; then
17089 echo $ECHO_N "(cached) $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 /* System header to define __stub macros and hopefully few prototypes,
17099 which can conflict with char $ac_func (); below.
17100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17101 <limits.h> exists even on freestanding compilers. */
17103 # include <limits.h>
17105 # include <assert.h>
17107 /* Override any gcc2 internal prototype to avoid an error. */
17112 /* We use char because int might match the return type of a gcc2
17113 builtin and then its argument prototype would still apply. */
17115 /* The GNU C library defines this for functions which it implements
17116 to always fail with ENOSYS. Some functions are actually named
17117 something starting with __ and the normal name is an alias. */
17118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17121 char (*f) () = $ac_func;
17130 return f != $ac_func;
17135 rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17137 (eval $ac_link) 2>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } &&
17141 { ac_try='test -s conftest$ac_exeext'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 eval "$as_ac_var=yes"
17149 echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17152 eval "$as_ac_var=no"
17154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17158 if test `eval echo '${'$as_ac_var'}'` = yes; then
17160 cat >>confdefs.h <<_ACEOF
17161 #define CRAY_STACKSEG_END $ac_func
17170 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17171 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17172 if test "${ac_cv_c_stack_direction+set}" = set; then
17173 echo $ECHO_N "(cached) $ECHO_C" >&6
17175 if test "$cross_compiling" = yes; then
17176 ac_cv_c_stack_direction=0
17178 cat >conftest.$ac_ext <<_ACEOF
17179 #line $LINENO "configure"
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h. */
17186 find_stack_direction ()
17188 static char *addr = 0;
17193 return find_stack_direction ();
17196 return (&dummy > addr) ? 1 : -1;
17202 exit (find_stack_direction () < 0);
17205 rm -f conftest$ac_exeext
17206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17207 (eval $ac_link) 2>&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17212 (eval $ac_try) 2>&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; }; then
17216 ac_cv_c_stack_direction=1
17218 echo "$as_me: program exited with status $ac_status" >&5
17219 echo "$as_me: failed program was:" >&5
17220 sed 's/^/| /' conftest.$ac_ext >&5
17222 ( exit $ac_status )
17223 ac_cv_c_stack_direction=-1
17225 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17228 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17229 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17231 cat >>confdefs.h <<_ACEOF
17232 #define STACK_DIRECTION $ac_cv_c_stack_direction
17238 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17239 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17240 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17241 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17242 echo $ECHO_N "(cached) $ECHO_C" >&6
17244 ac_check_lib_save_LIBS=$LIBS
17246 cat >conftest.$ac_ext <<_ACEOF
17247 #line $LINENO "configure"
17250 cat confdefs.h >>conftest.$ac_ext
17251 cat >>conftest.$ac_ext <<_ACEOF
17252 /* end confdefs.h. */
17254 /* Override any gcc2 internal prototype to avoid an error. */
17258 /* We use char because int might match the return type of a gcc2
17259 builtin and then its argument prototype would still apply. */
17269 rm -f conftest.$ac_objext conftest$ac_exeext
17270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17271 (eval $ac_link) 2>&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } &&
17275 { ac_try='test -s conftest$ac_exeext'
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; }; then
17281 ac_cv_lib_sun_getmntent=yes
17283 echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.$ac_ext >&5
17286 ac_cv_lib_sun_getmntent=no
17288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17289 LIBS=$ac_check_lib_save_LIBS
17291 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17292 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17293 if test $ac_cv_lib_sun_getmntent = yes; then
17296 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17297 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17298 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17301 ac_check_lib_save_LIBS=$LIBS
17303 cat >conftest.$ac_ext <<_ACEOF
17304 #line $LINENO "configure"
17307 cat confdefs.h >>conftest.$ac_ext
17308 cat >>conftest.$ac_ext <<_ACEOF
17309 /* end confdefs.h. */
17311 /* Override any gcc2 internal prototype to avoid an error. */
17315 /* We use char because int might match the return type of a gcc2
17316 builtin and then its argument prototype would still apply. */
17326 rm -f conftest.$ac_objext conftest$ac_exeext
17327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17328 (eval $ac_link) 2>&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } &&
17332 { ac_try='test -s conftest$ac_exeext'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; }; then
17338 ac_cv_lib_seq_getmntent=yes
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 ac_cv_lib_seq_getmntent=no
17345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17346 LIBS=$ac_check_lib_save_LIBS
17348 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17349 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17350 if test $ac_cv_lib_seq_getmntent = yes; then
17353 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17354 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17355 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17356 echo $ECHO_N "(cached) $ECHO_C" >&6
17358 ac_check_lib_save_LIBS=$LIBS
17360 cat >conftest.$ac_ext <<_ACEOF
17361 #line $LINENO "configure"
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17368 /* Override any gcc2 internal prototype to avoid an error. */
17372 /* We use char because int might match the return type of a gcc2
17373 builtin and then its argument prototype would still apply. */
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17385 (eval $ac_link) 2>&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); } &&
17389 { ac_try='test -s conftest$ac_exeext'
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; }; then
17395 ac_cv_lib_gen_getmntent=yes
17397 echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17400 ac_cv_lib_gen_getmntent=no
17402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17403 LIBS=$ac_check_lib_save_LIBS
17405 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17406 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17407 if test $ac_cv_lib_gen_getmntent = yes; then
17416 for ac_func in getmntent
17418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17419 echo "$as_me:$LINENO: checking for $ac_func" >&5
17420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17421 if eval "test \"\${$as_ac_var+set}\" = set"; then
17422 echo $ECHO_N "(cached) $ECHO_C" >&6
17424 cat >conftest.$ac_ext <<_ACEOF
17425 #line $LINENO "configure"
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h. */
17431 /* System header to define __stub macros and hopefully few prototypes,
17432 which can conflict with char $ac_func (); below.
17433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17434 <limits.h> exists even on freestanding compilers. */
17436 # include <limits.h>
17438 # include <assert.h>
17440 /* Override any gcc2 internal prototype to avoid an error. */
17445 /* We use char because int might match the return type of a gcc2
17446 builtin and then its argument prototype would still apply. */
17448 /* The GNU C library defines this for functions which it implements
17449 to always fail with ENOSYS. Some functions are actually named
17450 something starting with __ and the normal name is an alias. */
17451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17454 char (*f) () = $ac_func;
17463 return f != $ac_func;
17468 rm -f conftest.$ac_objext conftest$ac_exeext
17469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17470 (eval $ac_link) 2>&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } &&
17474 { ac_try='test -s conftest$ac_exeext'
17475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476 (eval $ac_try) 2>&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17480 eval "$as_ac_var=yes"
17482 echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17485 eval "$as_ac_var=no"
17487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17490 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17491 if test `eval echo '${'$as_ac_var'}'` = yes; then
17492 cat >>confdefs.h <<_ACEOF
17493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17500 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17501 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17502 if test "${ac_cv_func_closedir_void+set}" = set; then
17503 echo $ECHO_N "(cached) $ECHO_C" >&6
17505 if test "$cross_compiling" = yes; then
17506 ac_cv_func_closedir_void=yes
17508 cat >conftest.$ac_ext <<_ACEOF
17509 #line $LINENO "configure"
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h. */
17515 $ac_includes_default
17516 #include <$ac_header_dirent>
17517 #ifndef __cplusplus
17524 exit (closedir (opendir (".")) != 0);
17529 rm -f conftest$ac_exeext
17530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17531 (eval $ac_link) 2>&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536 (eval $ac_try) 2>&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; }; then
17540 ac_cv_func_closedir_void=no
17542 echo "$as_me: program exited with status $ac_status" >&5
17543 echo "$as_me: failed program was:" >&5
17544 sed 's/^/| /' conftest.$ac_ext >&5
17546 ( exit $ac_status )
17547 ac_cv_func_closedir_void=yes
17549 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17552 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17553 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17554 if test $ac_cv_func_closedir_void = yes; then
17556 cat >>confdefs.h <<\_ACEOF
17557 #define CLOSEDIR_VOID 1
17562 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17563 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17564 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17565 echo $ECHO_N "(cached) $ECHO_C" >&6
17567 if test "$cross_compiling" = yes; then
17568 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17569 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17570 { (exit 1); exit 1; }; }
17572 cat >conftest.$ac_ext <<_ACEOF
17573 #line $LINENO "configure"
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h. */
17580 # include <unistd.h>
17586 /* If this system has a BSD-style setpgrp which takes arguments,
17587 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17588 exit successfully. */
17589 exit (setpgrp (1,1) == -1 ? 0 : 1);
17594 rm -f conftest$ac_exeext
17595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17596 (eval $ac_link) 2>&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601 (eval $ac_try) 2>&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; }; then
17605 ac_cv_func_setpgrp_void=no
17607 echo "$as_me: program exited with status $ac_status" >&5
17608 echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17611 ( exit $ac_status )
17612 ac_cv_func_setpgrp_void=yes
17614 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17617 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17618 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17619 if test $ac_cv_func_setpgrp_void = yes; then
17621 cat >>confdefs.h <<\_ACEOF
17622 #define SETPGRP_VOID 1
17626 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17627 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17628 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
17631 # Some versions of Solaris, SCO, and the GNU C Library
17632 # have a broken or incompatible fnmatch.
17633 # So we run a test program. If we are cross-compiling, take no chance.
17634 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17635 if test "$cross_compiling" = yes; then
17636 ac_cv_func_fnmatch_works=cross
17638 cat >conftest.$ac_ext <<_ACEOF
17639 #line $LINENO "configure"
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17645 #include <fnmatch.h>
17646 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17647 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17653 (!(y ("a*", "abc", 0)
17654 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17655 && y ("a\\\\bc", "abc", 0)
17656 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17657 && y ("*x", ".x", 0)
17658 && n ("*x", ".x", FNM_PERIOD)
17664 rm -f conftest$ac_exeext
17665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17666 (eval $ac_link) 2>&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671 (eval $ac_try) 2>&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; }; then
17675 ac_cv_func_fnmatch_works=yes
17677 echo "$as_me: program exited with status $ac_status" >&5
17678 echo "$as_me: failed program was:" >&5
17679 sed 's/^/| /' conftest.$ac_ext >&5
17681 ( exit $ac_status )
17682 ac_cv_func_fnmatch_works=no
17684 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17687 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17688 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17689 if test $ac_cv_func_fnmatch_works = yes; then
17691 cat >>confdefs.h <<\_ACEOF
17692 #define HAVE_FNMATCH 1
17701 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17702 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17703 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17704 echo $ECHO_N "(cached) $ECHO_C" >&6
17706 ac_check_lib_save_LIBS=$LIBS
17707 LIBS="-lxpg4 $LIBS"
17708 cat >conftest.$ac_ext <<_ACEOF
17709 #line $LINENO "configure"
17712 cat confdefs.h >>conftest.$ac_ext
17713 cat >>conftest.$ac_ext <<_ACEOF
17714 /* end confdefs.h. */
17716 /* Override any gcc2 internal prototype to avoid an error. */
17720 /* We use char because int might match the return type of a gcc2
17721 builtin and then its argument prototype would still apply. */
17731 rm -f conftest.$ac_objext conftest$ac_exeext
17732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17733 (eval $ac_link) 2>&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
17737 { ac_try='test -s conftest$ac_exeext'
17738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739 (eval $ac_try) 2>&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); }; }; then
17743 ac_cv_lib_xpg4_setlocale=yes
17745 echo "$as_me: failed program was:" >&5
17746 sed 's/^/| /' conftest.$ac_ext >&5
17748 ac_cv_lib_xpg4_setlocale=no
17750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17751 LIBS=$ac_check_lib_save_LIBS
17753 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17754 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17755 if test $ac_cv_lib_xpg4_setlocale = yes; then
17756 LIBS="$LIBS -lxpg4"
17762 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17763 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17764 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17765 echo $ECHO_N "(cached) $ECHO_C" >&6
17767 ac_check_lib_save_LIBS=$LIBS
17769 cat >conftest.$ac_ext <<_ACEOF
17770 #line $LINENO "configure"
17773 cat confdefs.h >>conftest.$ac_ext
17774 cat >>conftest.$ac_ext <<_ACEOF
17775 /* end confdefs.h. */
17777 /* Override any gcc2 internal prototype to avoid an error. */
17781 /* We use char because int might match the return type of a gcc2
17782 builtin and then its argument prototype would still apply. */
17792 rm -f conftest.$ac_objext conftest$ac_exeext
17793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17794 (eval $ac_link) 2>&5
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); } &&
17798 { ac_try='test -s conftest$ac_exeext'
17799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800 (eval $ac_try) 2>&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; }; then
17804 ac_cv_lib_sun_getpwnam=yes
17806 echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17809 ac_cv_lib_sun_getpwnam=no
17811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17812 LIBS=$ac_check_lib_save_LIBS
17814 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17815 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17816 if test $ac_cv_lib_sun_getpwnam = yes; then
17817 cat >>confdefs.h <<_ACEOF
17818 #define HAVE_LIBSUN 1
17827 for ac_header in zlib.h
17829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17831 echo "$as_me:$LINENO: checking for $ac_header" >&5
17832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17834 echo $ECHO_N "(cached) $ECHO_C" >&6
17836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17839 # Is the header compilable?
17840 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17842 cat >conftest.$ac_ext <<_ACEOF
17843 #line $LINENO "configure"
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17849 $ac_includes_default
17850 #include <$ac_header>
17852 rm -f conftest.$ac_objext
17853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17854 (eval $ac_compile) 2>&5
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); } &&
17858 { ac_try='test -s conftest.$ac_objext'
17859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17860 (eval $ac_try) 2>&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); }; }; then
17864 ac_header_compiler=yes
17866 echo "$as_me: failed program was:" >&5
17867 sed 's/^/| /' conftest.$ac_ext >&5
17869 ac_header_compiler=no
17871 rm -f conftest.$ac_objext conftest.$ac_ext
17872 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17873 echo "${ECHO_T}$ac_header_compiler" >&6
17875 # Is the header present?
17876 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17878 cat >conftest.$ac_ext <<_ACEOF
17879 #line $LINENO "configure"
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h. */
17885 #include <$ac_header>
17887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17890 grep -v '^ *+' conftest.er1 >conftest.err
17892 cat conftest.err >&5
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); } >/dev/null; then
17895 if test -s conftest.err; then
17896 ac_cpp_err=$ac_c_preproc_warn_flag
17903 if test -z "$ac_cpp_err"; then
17904 ac_header_preproc=yes
17906 echo "$as_me: failed program was:" >&5
17907 sed 's/^/| /' conftest.$ac_ext >&5
17909 ac_header_preproc=no
17911 rm -f conftest.err conftest.$ac_ext
17912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17913 echo "${ECHO_T}$ac_header_preproc" >&6
17915 # So? What about this header?
17916 case $ac_header_compiler:$ac_header_preproc in
17918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17924 ## ------------------------------------ ##
17925 ## Report this to bug-autoconf@gnu.org. ##
17926 ## ------------------------------------ ##
17929 sed "s/^/$as_me: WARNING: /" >&2
17932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17940 ## ------------------------------------ ##
17941 ## Report this to bug-autoconf@gnu.org. ##
17942 ## ------------------------------------ ##
17945 sed "s/^/$as_me: WARNING: /" >&2
17948 echo "$as_me:$LINENO: checking for $ac_header" >&5
17949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17951 echo $ECHO_N "(cached) $ECHO_C" >&6
17953 eval "$as_ac_Header=$ac_header_preproc"
17955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17960 cat >>confdefs.h <<_ACEOF
17961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17968 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17969 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17970 if test "${ac_cv_lib_z_deflate+set}" = set; then
17971 echo $ECHO_N "(cached) $ECHO_C" >&6
17973 ac_check_lib_save_LIBS=$LIBS
17975 cat >conftest.$ac_ext <<_ACEOF
17976 #line $LINENO "configure"
17979 cat confdefs.h >>conftest.$ac_ext
17980 cat >>conftest.$ac_ext <<_ACEOF
17981 /* end confdefs.h. */
17983 /* Override any gcc2 internal prototype to avoid an error. */
17987 /* We use char because int might match the return type of a gcc2
17988 builtin and then its argument prototype would still apply. */
17998 rm -f conftest.$ac_objext conftest$ac_exeext
17999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18000 (eval $ac_link) 2>&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); } &&
18004 { ac_try='test -s conftest$ac_exeext'
18005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006 (eval $ac_try) 2>&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; }; then
18010 ac_cv_lib_z_deflate=yes
18012 echo "$as_me: failed program was:" >&5
18013 sed 's/^/| /' conftest.$ac_ext >&5
18015 ac_cv_lib_z_deflate=no
18017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18018 LIBS=$ac_check_lib_save_LIBS
18020 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18021 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18022 if test $ac_cv_lib_z_deflate = yes; then
18027 if test x$FDLIBS = x-lz; then
18028 cat >>confdefs.h <<\_ACEOF
18029 #define HAVE_LIBZ 1
18035 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18036 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18037 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18038 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18041 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18042 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18044 # Is the header compilable?
18045 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18046 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18047 cat >conftest.$ac_ext <<_ACEOF
18048 #line $LINENO "configure"
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18054 $ac_includes_default
18055 #include <sys/acl.h>
18057 rm -f conftest.$ac_objext
18058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18059 (eval $ac_compile) 2>&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } &&
18063 { ac_try='test -s conftest.$ac_objext'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
18069 ac_header_compiler=yes
18071 echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18074 ac_header_compiler=no
18076 rm -f conftest.$ac_objext conftest.$ac_ext
18077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18078 echo "${ECHO_T}$ac_header_compiler" >&6
18080 # Is the header present?
18081 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18082 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18083 cat >conftest.$ac_ext <<_ACEOF
18084 #line $LINENO "configure"
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h. */
18090 #include <sys/acl.h>
18092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18095 grep -v '^ *+' conftest.er1 >conftest.err
18097 cat conftest.err >&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } >/dev/null; then
18100 if test -s conftest.err; then
18101 ac_cpp_err=$ac_c_preproc_warn_flag
18108 if test -z "$ac_cpp_err"; then
18109 ac_header_preproc=yes
18111 echo "$as_me: failed program was:" >&5
18112 sed 's/^/| /' conftest.$ac_ext >&5
18114 ac_header_preproc=no
18116 rm -f conftest.err conftest.$ac_ext
18117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18118 echo "${ECHO_T}$ac_header_preproc" >&6
18120 # So? What about this header?
18121 case $ac_header_compiler:$ac_header_preproc in
18123 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18124 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18125 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18126 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18129 ## ------------------------------------ ##
18130 ## Report this to bug-autoconf@gnu.org. ##
18131 ## ------------------------------------ ##
18134 sed "s/^/$as_me: WARNING: /" >&2
18137 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18138 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18139 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18140 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18141 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18142 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18145 ## ------------------------------------ ##
18146 ## Report this to bug-autoconf@gnu.org. ##
18147 ## ------------------------------------ ##
18150 sed "s/^/$as_me: WARNING: /" >&2
18153 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18154 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18155 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18156 echo $ECHO_N "(cached) $ECHO_C" >&6
18158 ac_cv_header_sys_acl_h=$ac_header_preproc
18160 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18161 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18166 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18167 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18168 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18169 echo $ECHO_N "(cached) $ECHO_C" >&6
18171 ac_check_lib_save_LIBS=$LIBS
18173 cat >conftest.$ac_ext <<_ACEOF
18174 #line $LINENO "configure"
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18181 /* Override any gcc2 internal prototype to avoid an error. */
18185 /* We use char because int might match the return type of a gcc2
18186 builtin and then its argument prototype would still apply. */
18187 char acl_get_file ();
18196 rm -f conftest.$ac_objext conftest$ac_exeext
18197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18198 (eval $ac_link) 2>&5
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); } &&
18202 { ac_try='test -s conftest$ac_exeext'
18203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18204 (eval $ac_try) 2>&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); }; }; then
18208 ac_cv_lib_acl_acl_get_file=yes
18210 echo "$as_me: failed program was:" >&5
18211 sed 's/^/| /' conftest.$ac_ext >&5
18213 ac_cv_lib_acl_acl_get_file=no
18215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18216 LIBS=$ac_check_lib_save_LIBS
18218 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18219 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18220 if test $ac_cv_lib_acl_acl_get_file = yes; then
18221 FDLIBS="-lacl $FDLIBS"
18225 if test $ac_cv_lib_acl_acl_get_file = yes; then
18226 cat >>confdefs.h <<\_ACEOF
18234 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18235 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18236 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
18239 ac_check_lib_save_LIBS=$LIBS
18240 LIBS="-lpthread $LIBS"
18241 cat >conftest.$ac_ext <<_ACEOF
18242 #line $LINENO "configure"
18245 cat confdefs.h >>conftest.$ac_ext
18246 cat >>conftest.$ac_ext <<_ACEOF
18247 /* end confdefs.h. */
18249 /* Override any gcc2 internal prototype to avoid an error. */
18253 /* We use char because int might match the return type of a gcc2
18254 builtin and then its argument prototype would still apply. */
18255 char pthread_create ();
18264 rm -f conftest.$ac_objext conftest$ac_exeext
18265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18266 (eval $ac_link) 2>&5
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); } &&
18270 { ac_try='test -s conftest$ac_exeext'
18271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272 (eval $ac_try) 2>&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; }; then
18276 ac_cv_lib_pthread_pthread_create=yes
18278 echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18281 ac_cv_lib_pthread_pthread_create=no
18283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18284 LIBS=$ac_check_lib_save_LIBS
18286 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18287 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18288 if test $ac_cv_lib_pthread_pthread_create = yes; then
18289 PTHREAD_LIB="-lpthread"
18291 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18292 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18293 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18294 echo $ECHO_N "(cached) $ECHO_C" >&6
18296 ac_check_lib_save_LIBS=$LIBS
18297 LIBS="-lpthreads $LIBS"
18298 cat >conftest.$ac_ext <<_ACEOF
18299 #line $LINENO "configure"
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h. */
18306 /* Override any gcc2 internal prototype to avoid an error. */
18310 /* We use char because int might match the return type of a gcc2
18311 builtin and then its argument prototype would still apply. */
18312 char pthread_create ();
18321 rm -f conftest.$ac_objext conftest$ac_exeext
18322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18323 (eval $ac_link) 2>&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); } &&
18327 { ac_try='test -s conftest$ac_exeext'
18328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329 (eval $ac_try) 2>&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; }; then
18333 ac_cv_lib_pthreads_pthread_create=yes
18335 echo "$as_me: failed program was:" >&5
18336 sed 's/^/| /' conftest.$ac_ext >&5
18338 ac_cv_lib_pthreads_pthread_create=no
18340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18341 LIBS=$ac_check_lib_save_LIBS
18343 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18344 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18345 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18346 PTHREAD_LIB="-lpthreads"
18348 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18349 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18350 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18351 echo $ECHO_N "(cached) $ECHO_C" >&6
18353 ac_check_lib_save_LIBS=$LIBS
18355 cat >conftest.$ac_ext <<_ACEOF
18356 #line $LINENO "configure"
18359 cat confdefs.h >>conftest.$ac_ext
18360 cat >>conftest.$ac_ext <<_ACEOF
18361 /* end confdefs.h. */
18363 /* Override any gcc2 internal prototype to avoid an error. */
18367 /* We use char because int might match the return type of a gcc2
18368 builtin and then its argument prototype would still apply. */
18369 char pthread_create ();
18378 rm -f conftest.$ac_objext conftest$ac_exeext
18379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18380 (eval $ac_link) 2>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } &&
18384 { ac_try='test -s conftest$ac_exeext'
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; }; then
18390 ac_cv_lib_c_r_pthread_create=yes
18392 echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18395 ac_cv_lib_c_r_pthread_create=no
18397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18398 LIBS=$ac_check_lib_save_LIBS
18400 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18401 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18402 if test $ac_cv_lib_c_r_pthread_create = yes; then
18403 PTHREAD_LIB="-lc_r"
18405 echo "$as_me:$LINENO: checking for pthread_create" >&5
18406 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18407 if test "${ac_cv_func_pthread_create+set}" = set; then
18408 echo $ECHO_N "(cached) $ECHO_C" >&6
18410 cat >conftest.$ac_ext <<_ACEOF
18411 #line $LINENO "configure"
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h. */
18417 /* System header to define __stub macros and hopefully few prototypes,
18418 which can conflict with char pthread_create (); below.
18419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18420 <limits.h> exists even on freestanding compilers. */
18422 # include <limits.h>
18424 # include <assert.h>
18426 /* Override any gcc2 internal prototype to avoid an error. */
18431 /* We use char because int might match the return type of a gcc2
18432 builtin and then its argument prototype would still apply. */
18433 char pthread_create ();
18434 /* The GNU C library defines this for functions which it implements
18435 to always fail with ENOSYS. Some functions are actually named
18436 something starting with __ and the normal name is an alias. */
18437 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18440 char (*f) () = pthread_create;
18449 return f != pthread_create;
18454 rm -f conftest.$ac_objext conftest$ac_exeext
18455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18456 (eval $ac_link) 2>&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } &&
18460 { ac_try='test -s conftest$ac_exeext'
18461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462 (eval $ac_try) 2>&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; }; then
18466 ac_cv_func_pthread_create=yes
18468 echo "$as_me: failed program was:" >&5
18469 sed 's/^/| /' conftest.$ac_ext >&5
18471 ac_cv_func_pthread_create=no
18473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18475 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18476 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18489 cat >>confdefs.h <<\_ACEOF
18495 CFLAGS=${CFLAGS--O}
18496 LDFLAGS=${LDFLAGS--O}
18497 DB_LIBS="${SQL_LFLAGS}"
18499 CPPFLAGS="$CPPFLAGS"
18524 # Finally we set appropriate distribution specific
18525 # variables and defaults
18527 # PFILES are platform specific files
18528 PFILES="platforms/Makefile"
18532 hostname=`uname -n | cut -d '.' -f 1`
18533 case "$DISTNAME" in
18536 PSCMD="ps -e -o pid,comm"
18537 PFILES="${PFILES} \
18538 platforms/aix/Makefile"
18539 TAPEDRIVE="/dev/rmt0.1"
18543 PTHREAD_LIB="-lpthread -lexc"
18544 if test "${CC}" = "gcc" ; then
18551 TAPEDRIVE="/dev/nrmt0"
18554 DISTVER=`uname -a |awk '{print $3}'`
18555 TAPEDRIVE="/dev/nrmt0"
18556 PTHREAD_LIB="-pthread"
18557 CFLAGS="${CFLAGS} -pthread"
18558 PSCMD="ps -x -o pid,command"
18561 PFILES="${PFILES} \
18562 platforms/bsdi/Makefile \
18563 platforms/bsdi/bacula-fd \
18564 platforms/bsdi/bacula-sd \
18565 platforms/bsdi/bacula-dir"
18566 largefile_support="yes"
18569 DISTVER=`uname -a |awk '{print $3}'`
18570 TAPEDRIVE="/dev/nrst0"
18572 WCFLAGS="-mwindows"
18573 WLDFLAGS="-mwindows"
18577 TAPEDRIVE="/dev/nst0"
18578 PSCMD="ps -e -o pid,command"
18580 PFILES="${PFILES} \
18581 platforms/darwin/Makefile"
18584 DISTVER=`cat /etc/debian_version`
18585 TAPEDRIVE="/dev/nrst0"
18586 PSCMD="ps -e -o pid,command"
18589 DISTVER=`uname -a |awk '{print $3}'`
18590 VER=`echo $DISTVER | cut -c 1`
18591 if test x$VER = x4 ; then
18592 PTHREAD_LIB="-pthread"
18593 CFLAGS="${CFLAGS} -pthread"
18597 TAPEDRIVE="/dev/nrsa0"
18598 PSCMD="ps -x -o pid,command"
18599 PFILES="${PFILES} \
18600 platforms/freebsd/Makefile \
18601 platforms/freebsd/bacula-fd \
18602 platforms/freebsd/bacula-sd \
18603 platforms/freebsd/bacula-dir"
18604 largefile_support="yes"
18607 PSCMD="UNIX95=1 ps -e -o pid,comm"
18608 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18610 TAPEDRIVE="/dev/rmt/0hnb"
18614 TAPEDRIVE="/dev/rmt/0cbn"
18615 PSCMD="ps -e -o pid,comm"
18616 PFILES="${PFILES} \
18617 platforms/irix/Makefile \
18618 platforms/irix/bacula-fd \
18619 platforms/irix/bacula-sd \
18620 platforms/irix/bacula-dir"
18623 DISTVER=`uname -a |awk '{print $3}'`
18626 TAPEDRIVE="/dev/nrst0"
18627 PSCMD="ps -a -o pid,command"
18628 PTHREAD_LIB="-pthread"
18629 CFLAGS="${CFLAGS} -pthread"
18632 DISTVER=`uname -a |awk '{print $3}'`
18635 TAPEDRIVE="/dev/nrst0"
18636 PSCMD="ps -a -o pid,command"
18637 PTHREAD_LIB="-pthread"
18638 CFLAGS="${CFLAGS} -pthread"
18639 PFILES="${PFILES} \
18640 platforms/openbsd/Makefile \
18641 platforms/openbsd/bacula-fd \
18642 platforms/openbsd/bacula-sd \
18643 platforms/openbsd/bacula-dir"
18646 if test -f /etc/whitebox-release ; then
18647 f=/etc/whitebox-release
18649 f=/etc/redhat-release
18651 if test `cat $f | grep release |\
18652 cut -f 3 -d ' '`x = "Enterprise"x ; then
18653 DISTVER="Enterprise "`cat $f | grep release |\
18656 DISTVER=`cat /etc/redhat-release | grep release |\
18659 TAPEDRIVE="/dev/nst0"
18660 PSCMD="ps -e -o pid,command"
18661 PFILES="${PFILES} \
18662 platforms/redhat/Makefile \
18663 platforms/redhat/bacula-fd \
18664 platforms/redhat/bacula-sd \
18665 platforms/redhat/bacula-dir \
18666 platforms/redhat/bacula.spec \
18668 hostname=`hostname -s`
18671 DISTVER=`cat /etc/mandrake-release | grep release |\
18673 TAPEDRIVE="/dev/nst0"
18674 PSCMD="ps -e -o pid,command"
18675 PFILES="${PFILES} \
18676 platforms/mandrake/Makefile \
18677 platforms/mandrake/bacula-fd \
18678 platforms/mandrake/bacula-sd \
18679 platforms/mandrake/bacula-dir \
18680 platforms/mandrake/bacula.spec \
18684 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18685 TAPEDRIVE="/dev/nst0"
18686 PSCMD="ps -e -o pid,command"
18687 PFILES="${PFILES} \
18688 platforms/gentoo/Makefile \
18689 platforms/gentoo/bacula-fd \
18690 platforms/gentoo/bacula-sd \
18691 platforms/gentoo/bacula-dir"
18694 DISTVER=`cat /etc/slackware-version`
18695 TAPEDRIVE="/dev/nst0"
18696 PSCMD="ps -e -o pid,command"
18697 PFILES="${PFILES} \
18698 platforms/slackware/Makefile \
18699 platforms/slackware/rc.bacula-fd \
18700 platforms/slackware/rc.bacula-sd \
18701 platforms/slackware/rc.bacula-dir\
18702 platforms/slackware/functions.bacula"
18706 TAPEDRIVE="/dev/rmt/0cbn"
18707 PSCMD="ps -e -o pid,comm"
18708 PFILES="${PFILES} \
18709 platforms/solaris/Makefile \
18710 platforms/solaris/bacula-fd \
18711 platforms/solaris/bacula-sd \
18712 platforms/solaris/bacula-dir"
18713 if test x$DISTVER = x5.6 ; then
18714 cat >>confdefs.h <<\_ACEOF
18715 #define HAVE_OLD_SOCKOPT 1
18721 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18723 TAPEDRIVE="/dev/nst0"
18724 PSCMD="ps -e -o pid,command"
18725 PFILES="${PFILES} \
18726 platforms/suse/Makefile \
18727 platforms/suse/bacula-fd \
18728 platforms/suse/bacula-sd \
18729 platforms/suse/bacula-dir \
18730 platforms/suse/bacula \
18731 platforms/suse/bacula.spec"
18736 TAPEDRIVE="/dev/nst0"
18737 PSCMD="ps -e -o pid,command"
18738 PFILES="${PFILES} \
18739 platforms/suse/Makefile \
18740 platforms/suse/bacula-fd \
18741 platforms/suse/bacula-sd \
18742 platforms/suse/bacula-dir"
18746 TAPEDRIVE="/dev/nst0"
18749 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18755 LIBS="$PTHREAD_LIB $LIBS"
18757 cat >>confdefs.h <<_ACEOF
18761 cat >>confdefs.h <<_ACEOF
18772 MCOMMON=./autoconf/Make.common
18775 if test "x${subsysdir}" = "x${sbindir}" ; then
18778 echo "You have set both --sbindir and --with-subsys-dir"
18779 echo " equal to: ${subsysdir} "
18780 echo "This is not permitted. Please reconfigure."
18782 echo "Aborting configuration ..."
18788 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
18789 ac_config_commands="$ac_config_commands default"
18790 cat >confcache <<\_ACEOF
18791 # This file is a shell script that caches the results of configure
18792 # tests run on this system so they can be shared between configure
18793 # scripts and configure runs, see configure's option --config-cache.
18794 # It is not useful on other systems. If it contains results you don't
18795 # want to keep, you may remove or edit it.
18797 # config.status only pays attention to the cache file if you give it
18798 # the --recheck option to rerun configure.
18800 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18801 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18802 # following values.
18806 # The following way of writing the cache mishandles newlines in values,
18807 # but we know of no workaround that is simple, portable, and efficient.
18808 # So, don't put newlines in cache variables' values.
18809 # Ultrix sh set writes to stderr and can't be redirected directly,
18810 # and sets the high bit in the cache file unless we assign to the vars.
18813 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18815 # `set' does not quote correctly, so add quotes (double-quote
18816 # substitution turns \\\\ into \\, and sed turns \\ into \).
18819 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18822 # `set' quotes correctly as required by POSIX, so do not add quotes.
18824 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18831 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18833 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18835 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18836 if test -w $cache_file; then
18837 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18838 cat confcache >$cache_file
18840 echo "not updating unwritable cache $cache_file"
18845 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18846 # Let make expand exec_prefix.
18847 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18849 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18850 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18851 # trailing colons and then remove the whole line if VPATH becomes empty
18852 # (actually we leave an empty line to preserve line numbers).
18853 if test "x$srcdir" = x.; then
18854 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18855 s/:*\$(srcdir):*/:/;
18856 s/:*\${srcdir}:*/:/;
18858 s/^\([^=]*=[ ]*\):*/\1/;
18864 DEFS=-DHAVE_CONFIG_H
18868 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18869 # 1. Remove the extension, and $U if already installed.
18870 ac_i=`echo "$ac_i" |
18871 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18873 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18874 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18876 LIBOBJS=$ac_libobjs
18878 LTLIBOBJS=$ac_ltlibobjs
18882 : ${CONFIG_STATUS=./config.status}
18883 ac_clean_files_save=$ac_clean_files
18884 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18885 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18886 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18887 cat >$CONFIG_STATUS <<_ACEOF
18889 # Generated by $as_me.
18890 # Run this file to recreate the current configuration.
18891 # Compiler output produced by configure, useful for debugging
18892 # configure, is in config.log if it exists.
18895 ac_cs_recheck=false
18897 SHELL=\${CONFIG_SHELL-$SHELL}
18900 cat >>$CONFIG_STATUS <<\_ACEOF
18901 ## --------------------- ##
18902 ## M4sh Initialization. ##
18903 ## --------------------- ##
18905 # Be Bourne compatible
18906 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18909 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18910 # is contrary to our usage. Disable this feature.
18911 alias -g '${1+"$@"}'='"$@"'
18912 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18916 # Support unset when possible.
18917 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18924 # Work around bugs in pre-3.0 UWIN ksh.
18925 $as_unset ENV MAIL MAILPATH
18932 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18933 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18934 LC_TELEPHONE LC_TIME
18936 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18937 eval $as_var=C; export $as_var
18943 # Required to use basename.
18944 if expr a : '\(a\)' >/dev/null 2>&1; then
18950 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18951 as_basename=basename
18957 # Name of the executable.
18958 as_me=`$as_basename "$0" ||
18959 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18960 X"$0" : 'X\(//\)$' \| \
18961 X"$0" : 'X\(/\)$' \| \
18962 . : '\(.\)' 2>/dev/null ||
18964 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18965 /^X\/\(\/\/\)$/{ s//\1/; q; }
18966 /^X\/\(\/\).*/{ s//\1/; q; }
18970 # PATH needs CR, and LINENO needs CR and PATH.
18971 # Avoid depending upon Character Ranges.
18972 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18973 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18974 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18975 as_cr_digits='0123456789'
18976 as_cr_alnum=$as_cr_Letters$as_cr_digits
18978 # The user is always right.
18979 if test "${PATH_SEPARATOR+set}" != set; then
18980 echo "#! /bin/sh" >conf$$.sh
18981 echo "exit 0" >>conf$$.sh
18983 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18992 as_lineno_1=$LINENO
18993 as_lineno_2=$LINENO
18994 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18995 test "x$as_lineno_1" != "x$as_lineno_2" &&
18996 test "x$as_lineno_3" = "x$as_lineno_2" || {
18997 # Find who we are. Look in the path if we contain no path at all
19000 *[\\/]* ) as_myself=$0 ;;
19001 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19002 for as_dir in $PATH
19005 test -z "$as_dir" && as_dir=.
19006 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19011 # We did not find ourselves, most probably we were run as `sh COMMAND'
19012 # in which case we are not to be found in the path.
19013 if test "x$as_myself" = x; then
19016 if test ! -f "$as_myself"; then
19017 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19018 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19019 { (exit 1); exit 1; }; }
19021 case $CONFIG_SHELL in
19023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19024 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19027 test -z "$as_dir" && as_dir=.
19028 for as_base in sh bash ksh sh5; do
19031 if ("$as_dir/$as_base" -c '
19032 as_lineno_1=$LINENO
19033 as_lineno_2=$LINENO
19034 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19035 test "x$as_lineno_1" != "x$as_lineno_2" &&
19036 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19037 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19038 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19039 CONFIG_SHELL=$as_dir/$as_base
19040 export CONFIG_SHELL
19041 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19049 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19050 # uniformly replaced by the line number. The first 'sed' inserts a
19051 # line-number line before each line; the second 'sed' does the real
19052 # work. The second script uses 'N' to pair each line-number line
19053 # with the numbered line, and appends trailing '-' during
19054 # substitution so that $LINENO is not a special case at line end.
19055 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19056 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19057 sed '=' <$as_myself |
19062 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19065 s,^['$as_cr_digits']*\n,,
19066 ' >$as_me.lineno &&
19067 chmod +x $as_me.lineno ||
19068 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19069 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19070 { (exit 1); exit 1; }; }
19072 # Don't try to exec as it changes $[0], causing all sort of problems
19073 # (the dirname of $[0] is not the place where we might find the
19074 # original and so on. Autoconf is especially sensible to this).
19076 # Exit status is that of the last command.
19081 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19082 *c*,-n*) ECHO_N= ECHO_C='
19084 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19085 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19088 if expr a : '\(a\)' >/dev/null 2>&1; then
19094 rm -f conf$$ conf$$.exe conf$$.file
19096 if ln -s conf$$.file conf$$ 2>/dev/null; then
19097 # We could just check for DJGPP; but this test a) works b) is more generic
19098 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19099 if test -f conf$$.exe; then
19100 # Don't use ln at all; we don't have any links
19105 elif ln conf$$.file conf$$ 2>/dev/null; then
19110 rm -f conf$$ conf$$.exe conf$$.file
19112 if mkdir -p . 2>/dev/null; then
19118 as_executable_p="test -f"
19120 # Sed expression to map a string onto a valid CPP name.
19121 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19123 # Sed expression to map a string onto a valid variable name.
19124 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19128 # We need space, tab and new line, in precisely that order.
19138 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19139 # report actual input values of CONFIG_FILES etc. instead of their
19140 # values after options handling. Logging --version etc. is OK.
19144 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19145 ## Running $as_me. ##
19150 This file was extended by $as_me, which was
19151 generated by GNU Autoconf 2.57. Invocation command line was
19153 CONFIG_FILES = $CONFIG_FILES
19154 CONFIG_HEADERS = $CONFIG_HEADERS
19155 CONFIG_LINKS = $CONFIG_LINKS
19156 CONFIG_COMMANDS = $CONFIG_COMMANDS
19160 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19164 # Files that config.status was made for.
19165 if test -n "$ac_config_files"; then
19166 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19169 if test -n "$ac_config_headers"; then
19170 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19173 if test -n "$ac_config_links"; then
19174 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19177 if test -n "$ac_config_commands"; then
19178 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19181 cat >>$CONFIG_STATUS <<\_ACEOF
19184 \`$as_me' instantiates files from templates according to the
19185 current configuration.
19187 Usage: $0 [OPTIONS] [FILE]...
19189 -h, --help print this help, then exit
19190 -V, --version print version number, then exit
19191 -q, --quiet do not print progress messages
19192 -d, --debug don't remove temporary files
19193 --recheck update $as_me by reconfiguring in the same conditions
19194 --file=FILE[:TEMPLATE]
19195 instantiate the configuration file FILE
19196 --header=FILE[:TEMPLATE]
19197 instantiate the configuration header FILE
19199 Configuration files:
19202 Configuration headers:
19205 Configuration commands:
19208 Report bugs to <bug-autoconf@gnu.org>."
19211 cat >>$CONFIG_STATUS <<_ACEOF
19214 configured by $0, generated by GNU Autoconf 2.57,
19215 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19217 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19218 Free Software Foundation, Inc.
19219 This config.status script is free software; the Free Software Foundation
19220 gives unlimited permission to copy, distribute and modify it."
19225 cat >>$CONFIG_STATUS <<\_ACEOF
19226 # If no file are specified by the user, then we need to provide default
19227 # value. By we need to know if files were specified by the user.
19233 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19234 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19242 *) # This is not an option, so the user has probably given explicit
19245 ac_need_defaults=false;;
19249 # Handling of the options.
19251 cat >>$CONFIG_STATUS <<\_ACEOF
19252 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19254 --version | --vers* | -V )
19255 echo "$ac_cs_version"; exit 0 ;;
19257 # Conflict between --help and --header
19258 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19259 Try \`$0 --help' for more information." >&5
19260 echo "$as_me: error: ambiguous option: $1
19261 Try \`$0 --help' for more information." >&2;}
19262 { (exit 1); exit 1; }; };;
19263 --help | --hel | -h )
19264 echo "$ac_cs_usage"; exit 0 ;;
19265 --debug | --d* | -d )
19267 --file | --fil | --fi | --f )
19269 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19270 ac_need_defaults=false;;
19271 --header | --heade | --head | --hea )
19273 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19274 ac_need_defaults=false;;
19275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19276 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19279 # This is an error.
19280 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19281 Try \`$0 --help' for more information." >&5
19282 echo "$as_me: error: unrecognized option: $1
19283 Try \`$0 --help' for more information." >&2;}
19284 { (exit 1); exit 1; }; } ;;
19286 *) ac_config_targets="$ac_config_targets $1" ;;
19292 ac_configure_extra_args=
19294 if $ac_cs_silent; then
19296 ac_configure_extra_args="$ac_configure_extra_args --silent"
19300 cat >>$CONFIG_STATUS <<_ACEOF
19301 if \$ac_cs_recheck; then
19302 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19303 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19312 cat >>$CONFIG_STATUS <<\_ACEOF
19313 for ac_config_target in $ac_config_targets
19315 case "$ac_config_target" in
19316 # Handling of arguments.
19317 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19318 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19319 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19320 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19321 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19322 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19323 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19324 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19325 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19326 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19327 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19328 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19329 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19330 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19331 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19332 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19333 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19334 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19335 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19336 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19337 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19338 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19339 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19340 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19341 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19342 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19343 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19344 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19345 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19346 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19347 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19348 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19349 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19350 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19351 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19352 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19353 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19354 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19355 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19356 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19357 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19358 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19359 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19360 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19361 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19362 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19363 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19364 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19365 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19366 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19367 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19368 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19369 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19370 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19371 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19372 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19373 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19374 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19375 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19376 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19377 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19378 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19379 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19380 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19381 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19382 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19383 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19384 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19385 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19386 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19387 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19388 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19389 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19390 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19391 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19392 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19393 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19394 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19395 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19396 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19397 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19398 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19399 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19400 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19401 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19402 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19403 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19404 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19405 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19406 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19407 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19408 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19409 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19410 { (exit 1); exit 1; }; };;
19414 # If the user did not use the arguments to specify the items to instantiate,
19415 # then the envvar interface is used. Set only those that are not.
19416 # We use the long form for the default assignment because of an extremely
19417 # bizarre bug on SunOS 4.1.3.
19418 if $ac_need_defaults; then
19419 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19420 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19421 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19424 # Have a temporary directory for convenience. Make it in the build tree
19425 # simply because there is no reason to put it here, and in addition,
19426 # creating and moving files from /tmp can sometimes cause problems.
19427 # Create a temporary directory, and hook for its removal unless debugging.
19430 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19431 trap '{ (exit 1); exit 1; }' 1 2 13 15
19434 # Create a (secure) tmp directory for tmp files.
19437 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19438 test -n "$tmp" && test -d "$tmp"
19441 tmp=./confstat$$-$RANDOM
19442 (umask 077 && mkdir $tmp)
19445 echo "$me: cannot create a temporary directory in ." >&2
19446 { (exit 1); exit 1; }
19451 cat >>$CONFIG_STATUS <<_ACEOF
19454 # CONFIG_FILES section.
19457 # No need to generate the scripts if there are no CONFIG_FILES.
19458 # This happens for instance when ./config.status config.h
19459 if test -n "\$CONFIG_FILES"; then
19460 # Protect against being on the right side of a sed subst in config.status.
19461 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19462 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19463 s,@SHELL@,$SHELL,;t t
19464 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19465 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19466 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19467 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19468 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19469 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19470 s,@exec_prefix@,$exec_prefix,;t t
19471 s,@prefix@,$prefix,;t t
19472 s,@program_transform_name@,$program_transform_name,;t t
19473 s,@bindir@,$bindir,;t t
19474 s,@sbindir@,$sbindir,;t t
19475 s,@libexecdir@,$libexecdir,;t t
19476 s,@datadir@,$datadir,;t t
19477 s,@sysconfdir@,$sysconfdir,;t t
19478 s,@sharedstatedir@,$sharedstatedir,;t t
19479 s,@localstatedir@,$localstatedir,;t t
19480 s,@libdir@,$libdir,;t t
19481 s,@includedir@,$includedir,;t t
19482 s,@oldincludedir@,$oldincludedir,;t t
19483 s,@infodir@,$infodir,;t t
19484 s,@mandir@,$mandir,;t t
19485 s,@build_alias@,$build_alias,;t t
19486 s,@host_alias@,$host_alias,;t t
19487 s,@target_alias@,$target_alias,;t t
19488 s,@DEFS@,$DEFS,;t t
19489 s,@ECHO_C@,$ECHO_C,;t t
19490 s,@ECHO_N@,$ECHO_N,;t t
19491 s,@ECHO_T@,$ECHO_T,;t t
19492 s,@LIBS@,$LIBS,;t t
19493 s,@BUILD_DIR@,$BUILD_DIR,;t t
19494 s,@TRUEPRG@,$TRUEPRG,;t t
19495 s,@FALSEPRG@,$FALSEPRG,;t t
19496 s,@VERSION@,$VERSION,;t t
19497 s,@DATE@,$DATE,;t t
19498 s,@LSMDATE@,$LSMDATE,;t t
19500 s,@CFLAGS@,$CFLAGS,;t t
19501 s,@LDFLAGS@,$LDFLAGS,;t t
19502 s,@CPPFLAGS@,$CPPFLAGS,;t t
19503 s,@ac_ct_CC@,$ac_ct_CC,;t t
19504 s,@EXEEXT@,$EXEEXT,;t t
19505 s,@OBJEXT@,$OBJEXT,;t t
19507 s,@CXXFLAGS@,$CXXFLAGS,;t t
19508 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19510 s,@EGREP@,$EGREP,;t t
19511 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19512 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19513 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19514 s,@RANLIB@,$RANLIB,;t t
19515 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19521 s,@ECHO@,$ECHO,;t t
19525 s,@OPENSSL@,$OPENSSL,;t t
19527 s,@PKGCONFIG@,$PKGCONFIG,;t t
19528 s,@WXCONFIG@,$WXCONFIG,;t t
19529 s,@ARFLAGS@,$ARFLAGS,;t t
19530 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19531 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19532 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19533 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19534 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19535 s,@build@,$build,;t t
19536 s,@build_cpu@,$build_cpu,;t t
19537 s,@build_vendor@,$build_vendor,;t t
19538 s,@build_os@,$build_os,;t t
19539 s,@host@,$host,;t t
19540 s,@host_cpu@,$host_cpu,;t t
19541 s,@host_vendor@,$host_vendor,;t t
19542 s,@host_os@,$host_os,;t t
19543 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19544 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19545 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19546 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19547 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19548 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19549 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19550 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19551 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19552 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19553 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19554 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19555 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19556 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19557 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19558 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19559 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19560 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19561 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19562 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19563 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19564 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19565 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19566 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19567 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19568 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19569 s,@MSGFMT@,$MSGFMT,;t t
19570 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19571 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19572 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19573 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19574 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19575 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19576 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19577 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19578 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19579 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19580 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19581 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19582 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19583 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19584 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19585 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19586 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19587 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19588 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19589 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19590 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19591 s,@GNOME_DIR@,$GNOME_DIR,;t t
19592 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19593 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19594 s,@WX_DIR@,$WX_DIR,;t t
19595 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
19596 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19597 s,@STATIC_FD@,$STATIC_FD,;t t
19598 s,@STATIC_SD@,$STATIC_SD,;t t
19599 s,@STATIC_DIR@,$STATIC_DIR,;t t
19600 s,@STATIC_CONS@,$STATIC_CONS,;t t
19601 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19602 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19603 s,@ALL_DIRS@,$ALL_DIRS,;t t
19604 s,@CONS_INC@,$CONS_INC,;t t
19605 s,@CONS_OBJ@,$CONS_OBJ,;t t
19606 s,@CONS_SRC@,$CONS_SRC,;t t
19607 s,@CONS_LIBS@,$CONS_LIBS,;t t
19608 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19609 s,@READLINE_SRC@,$READLINE_SRC,;t t
19610 s,@working_dir@,$working_dir,;t t
19611 s,@scriptdir@,$scriptdir,;t t
19612 s,@dump_email@,$dump_email,;t t
19613 s,@job_email@,$job_email,;t t
19614 s,@smtp_host@,$smtp_host,;t t
19615 s,@piddir@,$piddir,;t t
19616 s,@subsysdir@,$subsysdir,;t t
19617 s,@baseport@,$baseport,;t t
19618 s,@dir_port@,$dir_port,;t t
19619 s,@fd_port@,$fd_port,;t t
19620 s,@sd_port@,$sd_port,;t t
19621 s,@dir_password@,$dir_password,;t t
19622 s,@fd_password@,$fd_password,;t t
19623 s,@sd_password@,$sd_password,;t t
19624 s,@dir_user@,$dir_user,;t t
19625 s,@dir_group@,$dir_group,;t t
19626 s,@sd_user@,$sd_user,;t t
19627 s,@sd_group@,$sd_group,;t t
19628 s,@fd_user@,$fd_user,;t t
19629 s,@fd_group@,$fd_group,;t t
19630 s,@SBINPERM@,$SBINPERM,;t t
19631 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19632 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19633 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19634 s,@cats@,$cats,;t t
19635 s,@DB_NAME@,$DB_NAME,;t t
19636 s,@GETCONF@,$GETCONF,;t t
19637 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19638 s,@X_CFLAGS@,$X_CFLAGS,;t t
19639 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19640 s,@X_LIBS@,$X_LIBS,;t t
19641 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19642 s,@LIBOBJS@,$LIBOBJS,;t t
19643 s,@ALLOCA@,$ALLOCA,;t t
19644 s,@FDLIBS@,$FDLIBS,;t t
19645 s,@DEBUG@,$DEBUG,;t t
19646 s,@DINCLUDE@,$DINCLUDE,;t t
19647 s,@DLIB@,$DLIB,;t t
19648 s,@DB_LIBS@,$DB_LIBS,;t t
19649 s,@WCFLAGS@,$WCFLAGS,;t t
19650 s,@WLDFLAGS@,$WLDFLAGS,;t t
19651 s,@OBJLIST@,$OBJLIST,;t t
19652 s,@hostname@,$hostname,;t t
19653 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19654 s,@PSCMD@,$PSCMD,;t t
19655 s,@WIN32@,$WIN32,;t t
19656 s,@MACOSX@,$MACOSX,;t t
19657 s,@DISTNAME@,$DISTNAME,;t t
19658 s,@DISTVER@,$DISTVER,;t t
19659 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19660 /@MCOMMON@/r $MCOMMON
19666 cat >>$CONFIG_STATUS <<\_ACEOF
19667 # Split the substitutions into bite-sized pieces for seds with
19668 # small command number limits, like on Digital OSF/1 and HP-UX.
19669 ac_max_sed_lines=48
19670 ac_sed_frag=1 # Number of current file.
19671 ac_beg=1 # First line for current file.
19672 ac_end=$ac_max_sed_lines # Line after last line for current file.
19675 while $ac_more_lines; do
19676 if test $ac_beg -gt 1; then
19677 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19679 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19681 if test ! -s $tmp/subs.frag; then
19682 ac_more_lines=false
19684 # The purpose of the label and of the branching condition is to
19685 # speed up the sed processing (if there are no `@' at all, there
19686 # is no need to browse any of the substitutions).
19687 # These are the two extra sed commands mentioned above.
19689 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19690 if test -z "$ac_sed_cmds"; then
19691 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19693 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19695 ac_sed_frag=`expr $ac_sed_frag + 1`
19697 ac_end=`expr $ac_end + $ac_max_sed_lines`
19700 if test -z "$ac_sed_cmds"; then
19703 fi # test -n "$CONFIG_FILES"
19706 cat >>$CONFIG_STATUS <<\_ACEOF
19707 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19708 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19710 - | *:- | *:-:* ) # input from stdin
19712 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19713 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19714 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19715 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19716 * ) ac_file_in=$ac_file.in ;;
19719 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19720 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19721 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19722 X"$ac_file" : 'X\(//\)[^/]' \| \
19723 X"$ac_file" : 'X\(//\)$' \| \
19724 X"$ac_file" : 'X\(/\)' \| \
19725 . : '\(.\)' 2>/dev/null ||
19727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19729 /^X\(\/\/\)$/{ s//\1/; q; }
19730 /^X\(\/\).*/{ s//\1/; q; }
19732 { if $as_mkdir_p; then
19737 while test ! -d "$as_dir"; do
19738 as_dirs="$as_dir $as_dirs"
19739 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19740 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19741 X"$as_dir" : 'X\(//\)[^/]' \| \
19742 X"$as_dir" : 'X\(//\)$' \| \
19743 X"$as_dir" : 'X\(/\)' \| \
19744 . : '\(.\)' 2>/dev/null ||
19746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19747 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19748 /^X\(\/\/\)$/{ s//\1/; q; }
19749 /^X\(\/\).*/{ s//\1/; q; }
19752 test ! -n "$as_dirs" || mkdir $as_dirs
19753 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19754 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19755 { (exit 1); exit 1; }; }; }
19759 if test "$ac_dir" != .; then
19760 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19761 # A "../" for each directory in $ac_dir_suffix.
19762 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19764 ac_dir_suffix= ac_top_builddir=
19768 .) # No --srcdir option. We are building in place.
19770 if test -z "$ac_top_builddir"; then
19773 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19775 [\\/]* | ?:[\\/]* ) # Absolute path.
19776 ac_srcdir=$srcdir$ac_dir_suffix;
19777 ac_top_srcdir=$srcdir ;;
19778 *) # Relative path.
19779 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19780 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19782 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19784 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19785 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19786 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19787 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19791 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19792 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19795 if test x"$ac_file" != x-; then
19796 { echo "$as_me:$LINENO: creating $ac_file" >&5
19797 echo "$as_me: creating $ac_file" >&6;}
19800 # Let's still pretend it is `configure' which instantiates (i.e., don't
19801 # use $as_me), people would be surprised to read:
19802 # /* config.h. Generated by config.status. */
19803 if test x"$ac_file" = x-; then
19806 configure_input="$ac_file. "
19808 configure_input=$configure_input"Generated from `echo $ac_file_in |
19809 sed 's,.*/,,'` by configure."
19811 # First look for the input files in the build tree, otherwise in the
19813 ac_file_inputs=`IFS=:
19814 for f in $ac_file_in; do
19816 -) echo $tmp/stdin ;;
19818 # Absolute (can't be DOS-style, as IFS=:)
19819 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19820 echo "$as_me: error: cannot find input file: $f" >&2;}
19821 { (exit 1); exit 1; }; }
19824 if test -f "$f"; then
19827 elif test -f "$srcdir/$f"; then
19832 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19833 echo "$as_me: error: cannot find input file: $f" >&2;}
19834 { (exit 1); exit 1; }; }
19837 done` || { (exit 1); exit 1; }
19839 cat >>$CONFIG_STATUS <<_ACEOF
19843 cat >>$CONFIG_STATUS <<\_ACEOF
19845 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19846 s,@configure_input@,$configure_input,;t t
19847 s,@srcdir@,$ac_srcdir,;t t
19848 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19849 s,@top_srcdir@,$ac_top_srcdir,;t t
19850 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19851 s,@builddir@,$ac_builddir,;t t
19852 s,@abs_builddir@,$ac_abs_builddir,;t t
19853 s,@top_builddir@,$ac_top_builddir,;t t
19854 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19855 s,@INSTALL@,$ac_INSTALL,;t t
19856 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19858 if test x"$ac_file" != x-; then
19859 mv $tmp/out $ac_file
19867 cat >>$CONFIG_STATUS <<\_ACEOF
19870 # CONFIG_HEADER section.
19873 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19874 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19876 # ac_d sets the value in "#define NAME VALUE" lines.
19877 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19878 ac_dB='[ ].*$,\1#\2'
19881 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19882 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19883 ac_uB='$,\1#\2define\3'
19887 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19888 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19890 - | *:- | *:-:* ) # input from stdin
19892 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19893 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19894 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19895 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19896 * ) ac_file_in=$ac_file.in ;;
19899 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19900 echo "$as_me: creating $ac_file" >&6;}
19902 # First look for the input files in the build tree, otherwise in the
19904 ac_file_inputs=`IFS=:
19905 for f in $ac_file_in; do
19907 -) echo $tmp/stdin ;;
19909 # Absolute (can't be DOS-style, as IFS=:)
19910 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19911 echo "$as_me: error: cannot find input file: $f" >&2;}
19912 { (exit 1); exit 1; }; }
19915 if test -f "$f"; then
19918 elif test -f "$srcdir/$f"; then
19923 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19924 echo "$as_me: error: cannot find input file: $f" >&2;}
19925 { (exit 1); exit 1; }; }
19928 done` || { (exit 1); exit 1; }
19929 # Remove the trailing spaces.
19930 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19934 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19935 # `conftest.undefs', that substitutes the proper values into
19936 # config.h.in to produce config.h. The first handles `#define'
19937 # templates, and the second `#undef' templates.
19938 # And first: Protect against being on the right side of a sed subst in
19939 # config.status. Protect against being in an unquoted here document
19940 # in config.status.
19941 rm -f conftest.defines conftest.undefs
19942 # Using a here document instead of a string reduces the quoting nightmare.
19943 # Putting comments in sed scripts is not portable.
19945 # `end' is used to avoid that the second main sed command (meant for
19946 # 0-ary CPP macros) applies to n-ary macro definitions.
19947 # See the Autoconf documentation for `clear'.
19948 cat >confdef2sed.sed <<\_ACEOF
19953 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19955 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19958 # If some macros were called several times there might be several times
19959 # the same #defines, which is useless. Nevertheless, we may not want to
19960 # sort them, since we want the *last* AC-DEFINE to be honored.
19961 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19962 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19963 rm -f confdef2sed.sed
19965 # This sed command replaces #undef with comments. This is necessary, for
19966 # example, in the case of _POSIX_SOURCE, which is predefined and required
19967 # on some systems where configure will not decide to define it.
19968 cat >>conftest.undefs <<\_ACEOF
19969 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19972 # Break up conftest.defines because some shells have a limit on the size
19973 # of here documents, and old seds have small limits too (100 cmds).
19974 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19975 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19976 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19977 echo ' :' >>$CONFIG_STATUS
19978 rm -f conftest.tail
19979 while grep . conftest.defines >/dev/null
19981 # Write a limited-size here document to $tmp/defines.sed.
19982 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19983 # Speed up: don't consider the non `#define' lines.
19984 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19985 # Work around the forget-to-reset-the-flag bug.
19986 echo 't clr' >>$CONFIG_STATUS
19987 echo ': clr' >>$CONFIG_STATUS
19988 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19990 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19992 mv $tmp/out $tmp/in
19994 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19995 rm -f conftest.defines
19996 mv conftest.tail conftest.defines
19998 rm -f conftest.defines
19999 echo ' fi # grep' >>$CONFIG_STATUS
20000 echo >>$CONFIG_STATUS
20002 # Break up conftest.undefs because some shells have a limit on the size
20003 # of here documents, and old seds have small limits too (100 cmds).
20004 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20005 rm -f conftest.tail
20006 while grep . conftest.undefs >/dev/null
20008 # Write a limited-size here document to $tmp/undefs.sed.
20009 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20010 # Speed up: don't consider the non `#undef'
20011 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20012 # Work around the forget-to-reset-the-flag bug.
20013 echo 't clr' >>$CONFIG_STATUS
20014 echo ': clr' >>$CONFIG_STATUS
20015 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20017 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20019 mv $tmp/out $tmp/in
20021 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20022 rm -f conftest.undefs
20023 mv conftest.tail conftest.undefs
20025 rm -f conftest.undefs
20027 cat >>$CONFIG_STATUS <<\_ACEOF
20028 # Let's still pretend it is `configure' which instantiates (i.e., don't
20029 # use $as_me), people would be surprised to read:
20030 # /* config.h. Generated by config.status. */
20031 if test x"$ac_file" = x-; then
20032 echo "/* Generated by configure. */" >$tmp/config.h
20034 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20036 cat $tmp/in >>$tmp/config.h
20038 if test x"$ac_file" != x-; then
20039 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20040 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20041 echo "$as_me: $ac_file is unchanged" >&6;}
20043 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20044 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20045 X"$ac_file" : 'X\(//\)[^/]' \| \
20046 X"$ac_file" : 'X\(//\)$' \| \
20047 X"$ac_file" : 'X\(/\)' \| \
20048 . : '\(.\)' 2>/dev/null ||
20050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20051 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20052 /^X\(\/\/\)$/{ s//\1/; q; }
20053 /^X\(\/\).*/{ s//\1/; q; }
20055 { if $as_mkdir_p; then
20060 while test ! -d "$as_dir"; do
20061 as_dirs="$as_dir $as_dirs"
20062 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20063 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20064 X"$as_dir" : 'X\(//\)[^/]' \| \
20065 X"$as_dir" : 'X\(//\)$' \| \
20066 X"$as_dir" : 'X\(/\)' \| \
20067 . : '\(.\)' 2>/dev/null ||
20069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20070 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20071 /^X\(\/\/\)$/{ s//\1/; q; }
20072 /^X\(\/\).*/{ s//\1/; q; }
20075 test ! -n "$as_dirs" || mkdir $as_dirs
20076 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20077 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20078 { (exit 1); exit 1; }; }; }
20081 mv $tmp/config.h $ac_file
20085 rm -f $tmp/config.h
20089 cat >>$CONFIG_STATUS <<\_ACEOF
20092 # CONFIG_COMMANDS section.
20094 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20095 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20096 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20097 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20098 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20099 X"$ac_dest" : 'X\(//\)[^/]' \| \
20100 X"$ac_dest" : 'X\(//\)$' \| \
20101 X"$ac_dest" : 'X\(/\)' \| \
20102 . : '\(.\)' 2>/dev/null ||
20104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20106 /^X\(\/\/\)$/{ s//\1/; q; }
20107 /^X\(\/\).*/{ s//\1/; q; }
20111 if test "$ac_dir" != .; then
20112 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20113 # A "../" for each directory in $ac_dir_suffix.
20114 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20116 ac_dir_suffix= ac_top_builddir=
20120 .) # No --srcdir option. We are building in place.
20122 if test -z "$ac_top_builddir"; then
20125 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20127 [\\/]* | ?:[\\/]* ) # Absolute path.
20128 ac_srcdir=$srcdir$ac_dir_suffix;
20129 ac_top_srcdir=$srcdir ;;
20130 *) # Relative path.
20131 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20132 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20134 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20136 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20137 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20138 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20139 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20142 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20143 echo "$as_me: executing $ac_dest commands" >&6;}
20145 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20151 cat >>$CONFIG_STATUS <<\_ACEOF
20153 { (exit 0); exit 0; }
20155 chmod +x $CONFIG_STATUS
20156 ac_clean_files=$ac_clean_files_save
20159 # configure is writing to config.log, and then calls config.status.
20160 # config.status does its own redirection, appending to config.log.
20161 # Unfortunately, on DOS this fails, as config.log is still kept open
20162 # by configure, so config.status won't be able to write to it; its
20163 # output is simply discarded. So we exec the FD to /dev/null,
20164 # effectively closing config.log, so it can be properly (re)opened and
20165 # appended to by config.status. When coming back to configure, we
20166 # need to make the FD available again.
20167 if test "$no_create" != yes; then
20169 ac_config_status_args=
20170 test "$silent" = yes &&
20171 ac_config_status_args="$ac_config_status_args --quiet"
20173 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20175 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20176 # would make configure fail if this is the last instruction.
20177 $ac_cs_success || { (exit 1); exit 1; }
20182 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20183 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20188 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
20189 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
20191 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
20192 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
20194 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
20195 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
20197 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
20198 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
20200 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
20201 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
20203 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20204 chmod 755 $c/sqlite
20207 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20208 largefile_support="yes"
20212 # A whole lot of hand springs to get the compiler version.
20213 # This is because gcc changed the output in version 3.0
20215 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20216 if test "x${CCVERSION}" = "x" ; then
20217 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20219 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20220 if test x"${CXXVERSION}" = x ; then
20221 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20224 if test "x${subsysdir}" = "x${sbindir}" ; then
20227 echo "You have set --sbindir and --with-subsys-dir"
20228 echo " both equal to: ${subsysdir} "
20229 echo " This is not permitted. Please reconfigure."
20231 echo "Aborting configuration ..."
20237 if test "x${db_name}" = "xInternal" ; then
20240 echo "You have not specified either --enable-client-only or one of the"
20241 echo " supported databases: MySQL, PostgreSQL, or SQLite".
20242 echo " This is not permitted. Please reconfigure."
20244 echo "Aborting the configuration ..."
20251 Configuration on `date`:
20253 Host: $host -- ${DISTNAME} ${DISTVER}
20254 Bacula version: ${VERSION} (${DATE})
20255 Source code location: ${srcdir}
20256 Install binaries: ${sbindir}
20257 Install config files: ${sysconfdir}
20258 Scripts directory: ${scriptdir}
20259 Working directory: ${working_dir}
20260 PID directory: ${piddir}
20261 Subsys directory: ${subsysdir}
20262 C Compiler: ${CC} ${CCVERSION}
20263 C++ Compiler: ${CXX} ${CXXVERSION}
20264 Compiler flags: ${WCFLAGS} ${CFLAGS}
20265 Linker flags: ${WLDFLAGS} ${LDFLAGS}
20267 Statically Linked Tools: ${support_static_tools}
20268 Statically Linked FD: ${support_static_fd}
20269 Statically Linked SD: ${support_static_sd}
20270 Statically Linked DIR: ${support_static_dir}
20271 Statically Linked CONS: ${support_static_cons}
20272 Database type: ${db_name}
20273 Database lib: ${DB_LIBS}
20275 Job Output Email: ${job_email}
20276 Traceback Email: ${dump_email}
20277 SMTP Host Address: ${smtp_host}
20279 Director Port: ${dir_port}
20280 File daemon Port: ${fd_port}
20281 Storage daemon Port: ${sd_port}
20283 Director User: ${dir_user}
20284 Director Group: ${dir_group}
20285 Storage Daemon User: ${sd_user}
20286 Storage DaemonGroup: ${sd_group}
20287 File Daemon User: ${fd_user}
20288 File Daemon Group: ${fd_group}
20290 SQL binaries Directory ${SQL_BINDIR}
20292 Large file support: $largefile_support
20293 Bacula conio support: ${got_conio} ${CONS_LIBS}
20294 readline support: ${got_readline} ${PRTREADLINE_SRC}
20295 TCP Wrappers support: ${TCPW_MSG}
20296 ZLIB support: ${have_zlib}
20297 enable-smartalloc: ${support_smartalloc}
20298 enable-gnome: ${support_gnome} ${gnome_version}
20299 enable-wx-console: ${support_wx_console}
20300 enable-tray-monitor: ${support_tray_monitor}
20301 client-only: ${build_client_only}
20302 ACL support: ${have_acl}
20309 # cweb support: ${got_cweb} ${CWEB_SRC}
20310 # gmp support: ${got_gmp} ${GMP_SRC}