2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures this package to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --x-includes=DIR X include files are in DIR
843 --x-libraries=DIR X library files are in DIR
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 if test -n "$ac_init_help"; then
856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
858 --enable-gnome enable build of gnome-console GUI disabled
859 --enable-smartalloc enable smartalloc debugging support disabled
860 --enable-static-tools enable static tape tools disabled
861 --enable-static-fd enable static File daemon disabled
862 --enable-static-sd enable static Storage daemon disabled
863 --enable-static-dir enable static Director disabled
864 --enable-static-cons enable static Console disabled
865 --enable-client-only build client (File daemon) only disabled
866 --disable-conio disable conio support enabled
868 --disable-readline disable readline support disable
870 --disable-largefile omit support for large files
873 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
874 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
875 --with-gnome-includes Specify location of GNOME headers
876 --with-gnome-libs Specify location of GNOME libs
877 --with-gnome Specify prefix for GNOME files
878 --with-readline=DIR specify readline library directory
879 --with-tcp-wrappers=DIR enable tcpwrappers support
880 --with-working-dir=PATH specify path of Bacula working directory
881 --with-scriptdir=PATH specify path of Bacula scripts directory
882 --with-dump-email=EMAIL dump email address
883 --with-job-email=EMAIL job output email address
884 --with-smtp-host=HOST SMTP mail host address
885 --with-pid-dir=PATH specify location of Bacula pid files
886 --with-subsys-dir=PATH specify location of Bacula subsys file
887 --with-baseport=PORT specify base port address for daemons
888 --with-dir-password=PASSWORD specify Director's password
889 --with-fd-password=PASSWORD specify Client's password
890 --with-sd-password=PASSWORD specify Storage daemon's password
891 --with-dir-user=USER specify user for Director daemon
892 --with-dir-group=GROUP specify group for Director daemon
893 --with-sd-user=USER specify user for Storage daemon
894 --with-sd-group=GROUP specify group for Storage daemon
895 --with-fd-user=USER specify user for File daemon
896 --with-fd-group=GROUP specify group for File daemon
897 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
898 base install directory, defaults to /usr/local/pgsql
900 Which DBMS do you want to use (please select only one):
901 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
902 install directory, default is to search through
903 a number of common places for the MySQL files.
905 Which DBMS do you want to use (please select only one):
906 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
907 install directory, default is to search through
908 a number of common places for the MySQL files.
910 Which DBMS do you want to use (please select only one):
911 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
912 install directory, default is to search through
913 a number of common places for the SQLite files.
914 --with-x use the X Window System
916 Some influential environment variables:
917 CC C compiler command
918 CFLAGS C compiler flags
919 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
920 nonstandard directory <lib dir>
921 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
922 headers in a nonstandard directory <include dir>
923 CXX C++ compiler command
924 CXXFLAGS C++ compiler flags
927 Use these variables to override the choices made by `configure' or to help
928 it to find libraries and programs with nonstandard names/locations.
933 if test "$ac_init_help" = "recursive"; then
934 # If there are subdirs, report their specific --help.
936 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
937 test -d $ac_dir || continue
940 if test "$ac_dir" != .; then
941 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
942 # A "../" for each directory in $ac_dir_suffix.
943 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
945 ac_dir_suffix= ac_top_builddir=
949 .) # No --srcdir option. We are building in place.
951 if test -z "$ac_top_builddir"; then
954 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
956 [\\/]* | ?:[\\/]* ) # Absolute path.
957 ac_srcdir=$srcdir$ac_dir_suffix;
958 ac_top_srcdir=$srcdir ;;
960 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
961 ac_top_srcdir=$ac_top_builddir$srcdir ;;
963 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
965 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
966 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
967 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
968 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
971 # Check for guested configure; otherwise get Cygnus style configure.
972 if test -f $ac_srcdir/configure.gnu; then
974 $SHELL $ac_srcdir/configure.gnu --help=recursive
975 elif test -f $ac_srcdir/configure; then
977 $SHELL $ac_srcdir/configure --help=recursive
978 elif test -f $ac_srcdir/configure.ac ||
979 test -f $ac_srcdir/configure.in; then
983 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
989 test -n "$ac_init_help" && exit 0
990 if $ac_init_version; then
993 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
994 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
1002 This file contains any messages produced by compilers while
1003 running configure, to aid debugging if configure makes a mistake.
1005 It was created by $as_me, which was
1006 generated by GNU Autoconf 2.57. Invocation command line was
1017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1026 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1027 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1030 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1031 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1032 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 test -z "$as_dir" && as_dir=.
1041 echo "PATH: $as_dir"
1056 # Keep a trace of the command line.
1057 # Strip out --no-create and --no-recursion so they do not pile up.
1058 # Strip out --silent because we don't want to record it for future runs.
1059 # Also quote any args containing shell meta-characters.
1060 # Make two passes to allow for proper duplicate-argument suppression.
1065 ac_must_keep_next=false
1071 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1075 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082 if test $ac_must_keep_next = true; then
1083 ac_must_keep_next=false # Got value, back to normal.
1086 *=* | --config-cache | -C | -disable-* | --disable-* \
1087 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089 | -with-* | --with-* | -without-* | --without-* | --x)
1090 case "$ac_configure_args0 " in
1091 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094 -* ) ac_must_keep_next=true ;;
1097 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098 # Get rid of the leading space.
1104 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1107 # When interrupted or exit'd, cleanup temporary files, and complete
1108 # config.log. We remove comments because anyway the quotes in there
1109 # would cause problems or look ugly.
1110 # WARNING: Be sure not to use single quotes in there, as some shells,
1111 # such as our DU 5.0 friend, will then `close' the trap.
1112 trap 'exit_status=$?
1113 # Save into config.log some information that might help in debugging.
1118 ## ---------------- ##
1119 ## Cache variables. ##
1120 ## ---------------- ##
1123 # The following way of writing the cache mishandles newlines in values,
1126 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1141 ## ----------------- ##
1142 ## Output variables. ##
1143 ## ----------------- ##
1146 for ac_var in $ac_subst_vars
1148 eval ac_val=$`echo $ac_var`
1149 echo "$ac_var='"'"'$ac_val'"'"'"
1153 if test -n "$ac_subst_files"; then
1160 for ac_var in $ac_subst_files
1162 eval ac_val=$`echo $ac_var`
1163 echo "$ac_var='"'"'$ac_val'"'"'"
1168 if test -s confdefs.h; then
1175 sed "/^$/d" confdefs.h | sort
1178 test "$ac_signal" != 0 &&
1179 echo "$as_me: caught signal $ac_signal"
1180 echo "$as_me: exit $exit_status"
1182 rm -f core core.* *.core &&
1183 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186 for ac_signal in 1 2 13 15; do
1187 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1192 rm -rf conftest* confdefs.h
1193 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196 # Predefined preprocessor variables.
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 # Let the site file select an alternate cache file if it wants to.
1224 # Prefer explicitly selected file to automatically selected ones.
1225 if test -z "$CONFIG_SITE"; then
1226 if test "x$prefix" != xNONE; then
1227 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232 for ac_site_file in $CONFIG_SITE; do
1233 if test -r "$ac_site_file"; then
1234 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235 echo "$as_me: loading site script $ac_site_file" >&6;}
1236 sed 's/^/| /' "$ac_site_file" >&5
1241 if test -r "$cache_file"; then
1242 # Some versions of bash will fail to source /dev/null (special
1243 # files actually), so we avoid doing that.
1244 if test -f "$cache_file"; then
1245 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246 echo "$as_me: loading cache $cache_file" >&6;}
1248 [\\/]* | ?:[\\/]* ) . $cache_file;;
1249 *) . ./$cache_file;;
1253 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254 echo "$as_me: creating cache $cache_file" >&6;}
1258 # Check that the precious variables saved in the cache have kept the same
1260 ac_cache_corrupted=false
1261 for ac_var in `(set) 2>&1 |
1262 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264 eval ac_new_set=\$ac_env_${ac_var}_set
1265 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266 eval ac_new_val="\$ac_env_${ac_var}_value"
1267 case $ac_old_set,$ac_new_set in
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1273 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275 ac_cache_corrupted=: ;;
1278 if test "x$ac_old_val" != "x$ac_new_val"; then
1279 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1282 echo "$as_me: former value: $ac_old_val" >&2;}
1283 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1284 echo "$as_me: current value: $ac_new_val" >&2;}
1285 ac_cache_corrupted=:
1288 # Pass precious variables to config.status.
1289 if test "$ac_new_set" = set; then
1291 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293 *) ac_arg=$ac_var=$ac_new_val ;;
1295 case " $ac_configure_args " in
1296 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1297 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301 if $ac_cache_corrupted; then
1302 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306 { (exit 1); exit 1; }; }
1310 ac_cpp='$CPP $CPPFLAGS'
1311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1339 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1340 if test -f $ac_dir/install-sh; then
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1344 elif test -f $ac_dir/install.sh; then
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1348 elif test -f $ac_dir/shtool; then
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1354 if test -z "$ac_aux_dir"; then
1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1357 { (exit 1); exit 1; }; }
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1363 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1371 # Extract the first word of "$ac_prog", so it can be a program name with args.
1372 set dummy $ac_prog; ac_word=$2
1373 echo "$as_me:$LINENO: checking for $ac_word" >&5
1374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1375 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1376 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387 test -z "$as_dir" && as_dir=.
1388 for ac_exec_ext in '' $ac_executable_extensions; do
1389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1390 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1400 TRUEPRG=$ac_cv_path_TRUEPRG
1402 if test -n "$TRUEPRG"; then
1403 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1404 echo "${ECHO_T}$TRUEPRG" >&6
1406 echo "$as_me:$LINENO: result: no" >&5
1407 echo "${ECHO_T}no" >&6
1410 test -n "$TRUEPRG" && break
1412 test -n "$TRUEPRG" || TRUEPRG=":"
1414 for ac_prog in false
1416 # Extract the first word of "$ac_prog", so it can be a program name with args.
1417 set dummy $ac_prog; ac_word=$2
1418 echo "$as_me:$LINENO: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1425 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 test -z "$as_dir" && as_dir=.
1433 for ac_exec_ext in '' $ac_executable_extensions; do
1434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1435 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1445 FALSEPRG=$ac_cv_path_FALSEPRG
1447 if test -n "$FALSEPRG"; then
1448 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1449 echo "${ECHO_T}$FALSEPRG" >&6
1451 echo "$as_me:$LINENO: result: no" >&5
1452 echo "${ECHO_T}no" >&6
1455 test -n "$FALSEPRG" && break
1457 test -n "$FALSEPRG" || FALSEPRG=":"
1460 # Make sure we can run config.sub.
1461 $ac_config_sub sun4 >/dev/null 2>&1 ||
1462 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1463 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1464 { (exit 1); exit 1; }; }
1466 echo "$as_me:$LINENO: checking build system type" >&5
1467 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1468 if test "${ac_cv_build+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1471 ac_cv_build_alias=$build_alias
1472 test -z "$ac_cv_build_alias" &&
1473 ac_cv_build_alias=`$ac_config_guess`
1474 test -z "$ac_cv_build_alias" &&
1475 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1476 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1477 { (exit 1); exit 1; }; }
1478 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1479 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1480 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1481 { (exit 1); exit 1; }; }
1484 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1485 echo "${ECHO_T}$ac_cv_build" >&6
1487 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1488 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1489 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1492 echo "$as_me:$LINENO: checking host system type" >&5
1493 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1494 if test "${ac_cv_host+set}" = set; then
1495 echo $ECHO_N "(cached) $ECHO_C" >&6
1497 ac_cv_host_alias=$host_alias
1498 test -z "$ac_cv_host_alias" &&
1499 ac_cv_host_alias=$ac_cv_build_alias
1500 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1501 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1502 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1503 { (exit 1); exit 1; }; }
1506 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1507 echo "${ECHO_T}$ac_cv_host" >&6
1509 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1510 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1511 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1515 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1516 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1517 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1518 echo "configuring for bacula $VERSION ($DATE)"
1523 ac_cpp='$CPP $CPPFLAGS'
1524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1527 if test -n "$ac_tool_prefix"; then
1528 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1529 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1530 echo "$as_me:$LINENO: checking for $ac_word" >&5
1531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1532 if test "${ac_cv_prog_CC+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1535 if test -n "$CC"; then
1536 ac_cv_prog_CC="$CC" # Let the user override the test.
1538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1542 test -z "$as_dir" && as_dir=.
1543 for ac_exec_ext in '' $ac_executable_extensions; do
1544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1545 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1555 if test -n "$CC"; then
1556 echo "$as_me:$LINENO: result: $CC" >&5
1557 echo "${ECHO_T}$CC" >&6
1559 echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1564 if test -z "$ac_cv_prog_CC"; then
1566 # Extract the first word of "gcc", so it can be a program name with args.
1567 set dummy gcc; ac_word=$2
1568 echo "$as_me:$LINENO: checking for $ac_word" >&5
1569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1570 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 if test -n "$ac_ct_CC"; then
1574 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580 test -z "$as_dir" && as_dir=.
1581 for ac_exec_ext in '' $ac_executable_extensions; do
1582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1583 ac_cv_prog_ac_ct_CC="gcc"
1584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1593 if test -n "$ac_ct_CC"; then
1594 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1595 echo "${ECHO_T}$ac_ct_CC" >&6
1597 echo "$as_me:$LINENO: result: no" >&5
1598 echo "${ECHO_T}no" >&6
1606 if test -z "$CC"; then
1607 if test -n "$ac_tool_prefix"; then
1608 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1609 set dummy ${ac_tool_prefix}cc; ac_word=$2
1610 echo "$as_me:$LINENO: checking for $ac_word" >&5
1611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612 if test "${ac_cv_prog_CC+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1615 if test -n "$CC"; then
1616 ac_cv_prog_CC="$CC" # Let the user override the test.
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 test -z "$as_dir" && as_dir=.
1623 for ac_exec_ext in '' $ac_executable_extensions; do
1624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625 ac_cv_prog_CC="${ac_tool_prefix}cc"
1626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635 if test -n "$CC"; then
1636 echo "$as_me:$LINENO: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1639 echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1644 if test -z "$ac_cv_prog_CC"; then
1646 # Extract the first word of "cc", so it can be a program name with args.
1647 set dummy cc; ac_word=$2
1648 echo "$as_me:$LINENO: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 if test -n "$ac_ct_CC"; then
1654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 test -z "$as_dir" && as_dir=.
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663 ac_cv_prog_ac_ct_CC="cc"
1664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1673 if test -n "$ac_ct_CC"; then
1674 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1675 echo "${ECHO_T}$ac_ct_CC" >&6
1677 echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1687 if test -z "$CC"; then
1688 # Extract the first word of "cc", so it can be a program name with args.
1689 set dummy cc; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 if test -n "$CC"; then
1696 ac_cv_prog_CC="$CC" # Let the user override the test.
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 test -z "$as_dir" && as_dir=.
1704 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1707 ac_prog_rejected=yes
1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 if test $ac_prog_rejected = yes; then
1718 # We found a bogon in the path, so make sure we never use it.
1719 set dummy $ac_cv_prog_CC
1721 if test $# != 0; then
1722 # We chose a different compiler from the bogus one.
1723 # However, it has the same basename, so the bogon will be chosen
1724 # first if we set CC to just the basename; use the full file name.
1726 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1732 if test -n "$CC"; then
1733 echo "$as_me:$LINENO: result: $CC" >&5
1734 echo "${ECHO_T}$CC" >&6
1736 echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1741 if test -z "$CC"; then
1742 if test -n "$ac_tool_prefix"; then
1745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1746 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 if test "${ac_cv_prog_CC+set}" = set; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 if test -n "$CC"; then
1753 ac_cv_prog_CC="$CC" # Let the user override the test.
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 test -z "$as_dir" && as_dir=.
1760 for ac_exec_ext in '' $ac_executable_extensions; do
1761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772 if test -n "$CC"; then
1773 echo "$as_me:$LINENO: result: $CC" >&5
1774 echo "${ECHO_T}$CC" >&6
1776 echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1780 test -n "$CC" && break
1783 if test -z "$CC"; then
1787 # Extract the first word of "$ac_prog", so it can be a program name with args.
1788 set dummy $ac_prog; ac_word=$2
1789 echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 if test -n "$ac_ct_CC"; then
1795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 test -z "$as_dir" && as_dir=.
1802 for ac_exec_ext in '' $ac_executable_extensions; do
1803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804 ac_cv_prog_ac_ct_CC="$ac_prog"
1805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1814 if test -n "$ac_ct_CC"; then
1815 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1816 echo "${ECHO_T}$ac_ct_CC" >&6
1818 echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1822 test -n "$ac_ct_CC" && break
1831 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1832 See \`config.log' for more details." >&5
1833 echo "$as_me: error: no acceptable C compiler found in \$PATH
1834 See \`config.log' for more details." >&2;}
1835 { (exit 1); exit 1; }; }
1837 # Provide some information about the compiler.
1838 echo "$as_me:$LINENO:" \
1839 "checking for C compiler version" >&5
1840 ac_compiler=`set X $ac_compile; echo $2`
1841 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1842 (eval $ac_compiler --version </dev/null >&5) 2>&5
1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845 (exit $ac_status); }
1846 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1847 (eval $ac_compiler -v </dev/null >&5) 2>&5
1849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850 (exit $ac_status); }
1851 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1852 (eval $ac_compiler -V </dev/null >&5) 2>&5
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }
1857 cat >conftest.$ac_ext <<_ACEOF
1858 #line $LINENO "configure"
1861 cat confdefs.h >>conftest.$ac_ext
1862 cat >>conftest.$ac_ext <<_ACEOF
1863 /* end confdefs.h. */
1873 ac_clean_files_save=$ac_clean_files
1874 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1875 # Try to create an executable without -o first, disregard a.out.
1876 # It will help us diagnose broken compilers, and finding out an intuition
1878 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1879 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1880 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1882 (eval $ac_link_default) 2>&5
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # Find the output, starting from the most likely. This scheme is
1887 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1890 # Be careful to initialize this variable, since it used to be cached.
1891 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1893 # b.out is created by i960 compilers.
1894 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1896 test -f "$ac_file" || continue
1898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1901 # This is the source file.
1904 # We found the default executable, but exeext='' is most
1908 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1909 # FIXME: I believe we export ac_cv_exeext for Libtool,
1910 # but it would be cool to find out if it's true. Does anybody
1911 # maintain Libtool? --akim.
1919 echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1922 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&5
1924 echo "$as_me: error: C compiler cannot create executables
1925 See \`config.log' for more details." >&2;}
1926 { (exit 77); exit 77; }; }
1929 ac_exeext=$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_file" >&5
1931 echo "${ECHO_T}$ac_file" >&6
1933 # Check the compiler produces executables we can run. If not, either
1934 # the compiler is broken, or we cross compile.
1935 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1936 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1937 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1938 # If not cross compiling, check that we can run a simple program.
1939 if test "$cross_compiling" != yes; then
1940 if { ac_try='./$ac_file'
1941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; }; then
1948 if test "$cross_compiling" = maybe; then
1951 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot run C compiled programs.
1955 If you meant to cross compile, use \`--host'.
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1961 echo "$as_me:$LINENO: result: yes" >&5
1962 echo "${ECHO_T}yes" >&6
1964 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1965 ac_clean_files=$ac_clean_files_save
1966 # Check the compiler produces executables we can run. If not, either
1967 # the compiler is broken, or we cross compile.
1968 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1969 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1970 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1971 echo "${ECHO_T}$cross_compiling" >&6
1973 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1974 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1976 (eval $ac_link) 2>&5
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }; then
1980 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1981 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1982 # work properly (i.e., refer to `conftest.exe'), while it won't with
1984 for ac_file in conftest.exe conftest conftest.*; do
1985 test -f "$ac_file" || continue
1987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1988 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1995 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1998 See \`config.log' for more details." >&2;}
1999 { (exit 1); exit 1; }; }
2002 rm -f conftest$ac_cv_exeext
2003 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2004 echo "${ECHO_T}$ac_cv_exeext" >&6
2006 rm -f conftest.$ac_ext
2007 EXEEXT=$ac_cv_exeext
2009 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2010 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2011 if test "${ac_cv_objext+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 cat >conftest.$ac_ext <<_ACEOF
2015 #line $LINENO "configure"
2018 cat confdefs.h >>conftest.$ac_ext
2019 cat >>conftest.$ac_ext <<_ACEOF
2020 /* end confdefs.h. */
2030 rm -f conftest.o conftest.obj
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032 (eval $ac_compile) 2>&5
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; then
2036 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2039 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2044 echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2047 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2048 See \`config.log' for more details." >&5
2049 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2050 See \`config.log' for more details." >&2;}
2051 { (exit 1); exit 1; }; }
2054 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2056 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2057 echo "${ECHO_T}$ac_cv_objext" >&6
2058 OBJEXT=$ac_cv_objext
2060 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2061 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2062 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 cat >conftest.$ac_ext <<_ACEOF
2066 #line $LINENO "configure"
2069 cat confdefs.h >>conftest.$ac_ext
2070 cat >>conftest.$ac_ext <<_ACEOF
2071 /* end confdefs.h. */
2084 rm -f conftest.$ac_objext
2085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086 (eval $ac_compile) 2>&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); } &&
2090 { ac_try='test -s conftest.$ac_objext'
2091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; }; then
2098 echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2103 rm -f conftest.$ac_objext conftest.$ac_ext
2104 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2107 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2108 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2109 GCC=`test $ac_compiler_gnu = yes && echo yes`
2110 ac_test_CFLAGS=${CFLAGS+set}
2111 ac_save_CFLAGS=$CFLAGS
2113 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2114 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2115 if test "${ac_cv_prog_cc_g+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 cat >conftest.$ac_ext <<_ACEOF
2119 #line $LINENO "configure"
2122 cat confdefs.h >>conftest.$ac_ext
2123 cat >>conftest.$ac_ext <<_ACEOF
2124 /* end confdefs.h. */
2134 rm -f conftest.$ac_objext
2135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2136 (eval $ac_compile) 2>&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); } &&
2140 { ac_try='test -s conftest.$ac_objext'
2141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; }; then
2148 echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2153 rm -f conftest.$ac_objext conftest.$ac_ext
2155 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2156 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2157 if test "$ac_test_CFLAGS" = set; then
2158 CFLAGS=$ac_save_CFLAGS
2159 elif test $ac_cv_prog_cc_g = yes; then
2160 if test "$GCC" = yes; then
2166 if test "$GCC" = yes; then
2172 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2173 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2174 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 ac_cv_prog_cc_stdc=no
2179 cat >conftest.$ac_ext <<_ACEOF
2180 #line $LINENO "configure"
2183 cat confdefs.h >>conftest.$ac_ext
2184 cat >>conftest.$ac_ext <<_ACEOF
2185 /* end confdefs.h. */
2188 #include <sys/types.h>
2189 #include <sys/stat.h>
2190 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2191 struct buf { int x; };
2192 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2193 static char *e (p, i)
2199 static char *f (char * (*g) (char **, int), char **p, ...)
2204 s = g (p, va_arg (v,int));
2208 int test (int i, double x);
2209 struct s1 {int (*f) (int a);};
2210 struct s2 {int (*f) (double a);};
2211 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2217 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2222 # Don't try gcc -ansi; that turns off useful extensions and
2223 # breaks some systems' header files.
2224 # AIX -qlanglvl=ansi
2225 # Ultrix and OSF/1 -std1
2226 # HP-UX 10.20 and later -Ae
2227 # HP-UX older versions -Aa -D_HPUX_SOURCE
2228 # SVR4 -Xc -D__EXTENSIONS__
2229 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2231 CC="$ac_save_CC $ac_arg"
2232 rm -f conftest.$ac_objext
2233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2234 (eval $ac_compile) 2>&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); } &&
2238 { ac_try='test -s conftest.$ac_objext'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2244 ac_cv_prog_cc_stdc=$ac_arg
2247 echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2251 rm -f conftest.$ac_objext
2253 rm -f conftest.$ac_ext conftest.$ac_objext
2258 case "x$ac_cv_prog_cc_stdc" in
2260 echo "$as_me:$LINENO: result: none needed" >&5
2261 echo "${ECHO_T}none needed" >&6 ;;
2263 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2264 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2265 CC="$CC $ac_cv_prog_cc_stdc" ;;
2268 # Some people use a C++ compiler to compile C. Since we use `exit',
2269 # in C++ we need to declare it. In case someone uses the same compiler
2270 # for both compiling C and C++ we need to have the C++ compiler decide
2271 # the declaration of exit, since it's the most demanding environment.
2272 cat >conftest.$ac_ext <<_ACEOF
2277 rm -f conftest.$ac_objext
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279 (eval $ac_compile) 2>&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); } &&
2283 { ac_try='test -s conftest.$ac_objext'
2284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; }; then
2289 for ac_declaration in \
2291 '#include <stdlib.h>' \
2292 'extern "C" void std::exit (int) throw (); using std::exit;' \
2293 'extern "C" void std::exit (int); using std::exit;' \
2294 'extern "C" void exit (int) throw ();' \
2295 'extern "C" void exit (int);' \
2298 cat >conftest.$ac_ext <<_ACEOF
2299 #line $LINENO "configure"
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h. */
2315 rm -f conftest.$ac_objext
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); } &&
2321 { ac_try='test -s conftest.$ac_objext'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2329 echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2334 rm -f conftest.$ac_objext conftest.$ac_ext
2335 cat >conftest.$ac_ext <<_ACEOF
2336 #line $LINENO "configure"
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353 (eval $ac_compile) 2>&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } &&
2357 { ac_try='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2369 rm -f conftest.$ac_objext conftest.$ac_ext
2372 if test -n "$ac_declaration"; then
2373 echo '#ifdef __cplusplus' >>confdefs.h
2374 echo $ac_declaration >>confdefs.h
2375 echo '#endif' >>confdefs.h
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2383 rm -f conftest.$ac_objext conftest.$ac_ext
2385 ac_cpp='$CPP $CPPFLAGS'
2386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391 ac_cpp='$CXXCPP $CPPFLAGS'
2392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2395 if test -n "$ac_tool_prefix"; then
2396 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2400 echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2402 if test "${ac_cv_prog_CXX+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2405 if test -n "$CXX"; then
2406 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2415 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 if test -n "$CXX"; then
2426 echo "$as_me:$LINENO: result: $CXX" >&5
2427 echo "${ECHO_T}$CXX" >&6
2429 echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6
2433 test -n "$CXX" && break
2436 if test -z "$CXX"; then
2438 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2440 # Extract the first word of "$ac_prog", so it can be a program name with args.
2441 set dummy $ac_prog; ac_word=$2
2442 echo "$as_me:$LINENO: checking for $ac_word" >&5
2443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2444 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 if test -n "$ac_ct_CXX"; then
2448 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 test -z "$as_dir" && as_dir=.
2455 for ac_exec_ext in '' $ac_executable_extensions; do
2456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2457 ac_cv_prog_ac_ct_CXX="$ac_prog"
2458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2467 if test -n "$ac_ct_CXX"; then
2468 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2469 echo "${ECHO_T}$ac_ct_CXX" >&6
2471 echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6
2475 test -n "$ac_ct_CXX" && break
2477 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2483 # Provide some information about the compiler.
2484 echo "$as_me:$LINENO:" \
2485 "checking for C++ compiler version" >&5
2486 ac_compiler=`set X $ac_compile; echo $2`
2487 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2488 (eval $ac_compiler --version </dev/null >&5) 2>&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }
2492 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2493 (eval $ac_compiler -v </dev/null >&5) 2>&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }
2497 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2498 (eval $ac_compiler -V </dev/null >&5) 2>&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }
2503 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2504 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2505 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 cat >conftest.$ac_ext <<_ACEOF
2509 #line $LINENO "configure"
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } &&
2533 { ac_try='test -s conftest.$ac_objext'
2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; }; then
2541 echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2546 rm -f conftest.$ac_objext conftest.$ac_ext
2547 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2550 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2551 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2552 GXX=`test $ac_compiler_gnu = yes && echo yes`
2553 ac_test_CXXFLAGS=${CXXFLAGS+set}
2554 ac_save_CXXFLAGS=$CXXFLAGS
2556 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2557 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2558 if test "${ac_cv_prog_cxx_g+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 cat >conftest.$ac_ext <<_ACEOF
2562 #line $LINENO "configure"
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2577 rm -f conftest.$ac_objext
2578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579 (eval $ac_compile) 2>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try='test -s conftest.$ac_objext'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; }; then
2589 ac_cv_prog_cxx_g=yes
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2596 rm -f conftest.$ac_objext conftest.$ac_ext
2598 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2599 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2600 if test "$ac_test_CXXFLAGS" = set; then
2601 CXXFLAGS=$ac_save_CXXFLAGS
2602 elif test $ac_cv_prog_cxx_g = yes; then
2603 if test "$GXX" = yes; then
2609 if test "$GXX" = yes; then
2615 for ac_declaration in \
2617 '#include <stdlib.h>' \
2618 'extern "C" void std::exit (int) throw (); using std::exit;' \
2619 'extern "C" void std::exit (int); using std::exit;' \
2620 'extern "C" void exit (int) throw ();' \
2621 'extern "C" void exit (int);' \
2624 cat >conftest.$ac_ext <<_ACEOF
2625 #line $LINENO "configure"
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643 (eval $ac_compile) 2>&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); } &&
2647 { ac_try='test -s conftest.$ac_objext'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; }; then
2655 echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2660 rm -f conftest.$ac_objext conftest.$ac_ext
2661 cat >conftest.$ac_ext <<_ACEOF
2662 #line $LINENO "configure"
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h. */
2677 rm -f conftest.$ac_objext
2678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679 (eval $ac_compile) 2>&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); } &&
2683 { ac_try='test -s conftest.$ac_objext'
2684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; }; then
2691 echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2695 rm -f conftest.$ac_objext conftest.$ac_ext
2698 if test -n "$ac_declaration"; then
2699 echo '#ifdef __cplusplus' >>confdefs.h
2700 echo $ac_declaration >>confdefs.h
2701 echo '#endif' >>confdefs.h
2705 ac_cpp='$CPP $CPPFLAGS'
2706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710 if test "x$CC" != xcc; then
2711 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2712 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2714 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2715 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2717 set dummy $CC; ac_cc=`echo $2 |
2718 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2719 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 cat >conftest.$ac_ext <<_ACEOF
2723 #line $LINENO "configure"
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2738 # Make sure it works both with $CC and with simple cc.
2739 # We do the test twice because some compilers refuse to overwrite an
2740 # existing .o file with -o, though they will create one.
2741 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2742 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); };
2753 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2754 if test "x$CC" != xcc; then
2755 # Test first that cc exists at all.
2756 if { ac_try='cc -c conftest.$ac_ext >&5'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2763 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } &&
2768 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); };
2777 # cc exists but doesn't like -o.
2778 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2783 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2788 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2789 echo "$as_me:$LINENO: result: yes" >&5
2790 echo "${ECHO_T}yes" >&6
2792 echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6
2795 cat >>confdefs.h <<\_ACEOF
2796 #define NO_MINUS_C_MINUS_O 1
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2807 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2808 # On Suns, sometimes $CPP names a directory.
2809 if test -n "$CPP" && test -d "$CPP"; then
2812 if test -z "$CPP"; then
2813 if test "${ac_cv_prog_CPP+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 # Double quotes because CPP needs to be expanded
2817 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2820 for ac_c_preproc_warn_flag in '' yes
2822 # Use a header file that comes with gcc, so configuring glibc
2823 # with a fresh cross-compiler works.
2824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2825 # <limits.h> exists even on freestanding compilers.
2826 # On the NeXT, cc -E runs the code through the compiler's parser,
2827 # not just through cpp. "Syntax error" is here to catch this case.
2828 cat >conftest.$ac_ext <<_ACEOF
2829 #line $LINENO "configure"
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2836 # include <limits.h>
2838 # include <assert.h>
2842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2845 grep -v '^ *+' conftest.er1 >conftest.err
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } >/dev/null; then
2850 if test -s conftest.err; then
2851 ac_cpp_err=$ac_c_preproc_warn_flag
2858 if test -z "$ac_cpp_err"; then
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 # Broken: fails on valid input.
2867 rm -f conftest.err conftest.$ac_ext
2869 # OK, works on sane cases. Now check whether non-existent headers
2870 # can be detected and how.
2871 cat >conftest.$ac_ext <<_ACEOF
2872 #line $LINENO "configure"
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2878 #include <ac_nonexistent.h>
2880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2883 grep -v '^ *+' conftest.er1 >conftest.err
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } >/dev/null; then
2888 if test -s conftest.err; then
2889 ac_cpp_err=$ac_c_preproc_warn_flag
2896 if test -z "$ac_cpp_err"; then
2897 # Broken: success on invalid input.
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2903 # Passes both tests.
2907 rm -f conftest.err conftest.$ac_ext
2910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2911 rm -f conftest.err conftest.$ac_ext
2912 if $ac_preproc_ok; then
2924 echo "$as_me:$LINENO: result: $CPP" >&5
2925 echo "${ECHO_T}$CPP" >&6
2927 for ac_c_preproc_warn_flag in '' yes
2929 # Use a header file that comes with gcc, so configuring glibc
2930 # with a fresh cross-compiler works.
2931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2932 # <limits.h> exists even on freestanding compilers.
2933 # On the NeXT, cc -E runs the code through the compiler's parser,
2934 # not just through cpp. "Syntax error" is here to catch this case.
2935 cat >conftest.$ac_ext <<_ACEOF
2936 #line $LINENO "configure"
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h. */
2943 # include <limits.h>
2945 # include <assert.h>
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2952 grep -v '^ *+' conftest.er1 >conftest.err
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } >/dev/null; then
2957 if test -s conftest.err; then
2958 ac_cpp_err=$ac_c_preproc_warn_flag
2965 if test -z "$ac_cpp_err"; then
2968 echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2971 # Broken: fails on valid input.
2974 rm -f conftest.err conftest.$ac_ext
2976 # OK, works on sane cases. Now check whether non-existent headers
2977 # can be detected and how.
2978 cat >conftest.$ac_ext <<_ACEOF
2979 #line $LINENO "configure"
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2985 #include <ac_nonexistent.h>
2987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2990 grep -v '^ *+' conftest.er1 >conftest.err
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } >/dev/null; then
2995 if test -s conftest.err; then
2996 ac_cpp_err=$ac_c_preproc_warn_flag
3003 if test -z "$ac_cpp_err"; then
3004 # Broken: success on invalid input.
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3010 # Passes both tests.
3014 rm -f conftest.err conftest.$ac_ext
3017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3018 rm -f conftest.err conftest.$ac_ext
3019 if $ac_preproc_ok; then
3022 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3023 See \`config.log' for more details." >&5
3024 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3025 See \`config.log' for more details." >&2;}
3026 { (exit 1); exit 1; }; }
3030 ac_cpp='$CPP $CPPFLAGS'
3031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036 echo "$as_me:$LINENO: checking for egrep" >&5
3037 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3038 if test "${ac_cv_prog_egrep+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3042 then ac_cv_prog_egrep='grep -E'
3043 else ac_cv_prog_egrep='egrep'
3046 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3047 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3048 EGREP=$ac_cv_prog_egrep
3051 if test $ac_cv_c_compiler_gnu = yes; then
3052 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3053 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3054 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3057 ac_pattern="Autoconf.*'x'"
3058 cat >conftest.$ac_ext <<_ACEOF
3059 #line $LINENO "configure"
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3069 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3070 ac_cv_prog_gcc_traditional=yes
3072 ac_cv_prog_gcc_traditional=no
3077 if test $ac_cv_prog_gcc_traditional = no; then
3078 cat >conftest.$ac_ext <<_ACEOF
3079 #line $LINENO "configure"
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3089 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3090 ac_cv_prog_gcc_traditional=yes
3096 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3097 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3098 if test $ac_cv_prog_gcc_traditional = yes; then
3099 CC="$CC -traditional"
3105 cat >>confdefs.h <<\_ACEOF
3111 # Find a good install program. We prefer a C program (faster),
3112 # so one script is as good as another. But avoid the broken or
3113 # incompatible versions:
3114 # SysV /etc/install, /usr/sbin/install
3115 # SunOS /usr/etc/install
3116 # IRIX /sbin/install
3118 # AmigaOS /C/install, which installs bootblocks on floppy discs
3119 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3120 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3121 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3122 # ./install, which can be erroneously created by make from ./install.sh.
3123 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3124 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3125 if test -z "$INSTALL"; then
3126 if test "${ac_cv_path_install+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 test -z "$as_dir" && as_dir=.
3134 # Account for people who put trailing slashes in PATH elements.
3136 ./ | .// | /cC/* | \
3137 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3140 # OSF1 and SCO ODT 3.0 have their own names for install.
3141 # Don't use installbsd from OSF since it installs stuff as root
3143 for ac_prog in ginstall scoinst install; do
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3146 if test $ac_prog = install &&
3147 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3148 # AIX install. It has an incompatible calling convention.
3150 elif test $ac_prog = install &&
3151 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3152 # program-specific install script used by HP pwplus--don't use.
3155 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3167 if test "${ac_cv_path_install+set}" = set; then
3168 INSTALL=$ac_cv_path_install
3170 # As a last resort, use the slow shell script. We don't cache a
3171 # path for INSTALL within a source directory, because that will
3172 # break other packages using the cache if that directory is
3173 # removed, or if the path is relative.
3174 INSTALL=$ac_install_sh
3177 echo "$as_me:$LINENO: result: $INSTALL" >&5
3178 echo "${ECHO_T}$INSTALL" >&6
3180 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3181 # It thinks the first close brace ends the variable substitution.
3182 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3184 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3186 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3188 if test -n "$ac_tool_prefix"; then
3189 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3190 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3191 echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3193 if test "${ac_cv_prog_RANLIB+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 if test -n "$RANLIB"; then
3197 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 RANLIB=$ac_cv_prog_RANLIB
3216 if test -n "$RANLIB"; then
3217 echo "$as_me:$LINENO: result: $RANLIB" >&5
3218 echo "${ECHO_T}$RANLIB" >&6
3220 echo "$as_me:$LINENO: result: no" >&5
3221 echo "${ECHO_T}no" >&6
3225 if test -z "$ac_cv_prog_RANLIB"; then
3226 ac_ct_RANLIB=$RANLIB
3227 # Extract the first word of "ranlib", so it can be a program name with args.
3228 set dummy ranlib; ac_word=$2
3229 echo "$as_me:$LINENO: checking for $ac_word" >&5
3230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3231 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 if test -n "$ac_ct_RANLIB"; then
3235 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244 ac_cv_prog_ac_ct_RANLIB="ranlib"
3245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3254 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3255 if test -n "$ac_ct_RANLIB"; then
3256 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3257 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3259 echo "$as_me:$LINENO: result: no" >&5
3260 echo "${ECHO_T}no" >&6
3263 RANLIB=$ac_ct_RANLIB
3265 RANLIB="$ac_cv_prog_RANLIB"
3268 # Extract the first word of "mv", so it can be a program name with args.
3269 set dummy mv; ac_word=$2
3270 echo "$as_me:$LINENO: checking for $ac_word" >&5
3271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3272 if test "${ac_cv_path_MV+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3300 if test -n "$MV"; then
3301 echo "$as_me:$LINENO: result: $MV" >&5
3302 echo "${ECHO_T}$MV" >&6
3304 echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3308 # Extract the first word of "rm", so it can be a program name with args.
3309 set dummy rm; ac_word=$2
3310 echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3312 if test "${ac_cv_path_RM+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3340 if test -n "$RM"; then
3341 echo "$as_me:$LINENO: result: $RM" >&5
3342 echo "${ECHO_T}$RM" >&6
3344 echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3348 # Extract the first word of "cp", so it can be a program name with args.
3349 set dummy cp; ac_word=$2
3350 echo "$as_me:$LINENO: checking for $ac_word" >&5
3351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3352 if test "${ac_cv_path_CP+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3380 if test -n "$CP"; then
3381 echo "$as_me:$LINENO: result: $CP" >&5
3382 echo "${ECHO_T}$CP" >&6
3384 echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3388 # Extract the first word of "sed", so it can be a program name with args.
3389 set dummy sed; ac_word=$2
3390 echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_path_SED+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3420 if test -n "$SED"; then
3421 echo "$as_me:$LINENO: result: $SED" >&5
3422 echo "${ECHO_T}$SED" >&6
3424 echo "$as_me:$LINENO: result: no" >&5
3425 echo "${ECHO_T}no" >&6
3428 # Extract the first word of "awk", so it can be a program name with args.
3429 set dummy awk; ac_word=$2
3430 echo "$as_me:$LINENO: checking for $ac_word" >&5
3431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3432 if test "${ac_cv_path_AWK+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3460 if test -n "$AWK"; then
3461 echo "$as_me:$LINENO: result: $AWK" >&5
3462 echo "${ECHO_T}$AWK" >&6
3464 echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3468 # Extract the first word of "echo", so it can be a program name with args.
3469 set dummy echo; ac_word=$2
3470 echo "$as_me:$LINENO: checking for $ac_word" >&5
3471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3472 if test "${ac_cv_path_ECHO+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3498 ECHO=$ac_cv_path_ECHO
3500 if test -n "$ECHO"; then
3501 echo "$as_me:$LINENO: result: $ECHO" >&5
3502 echo "${ECHO_T}$ECHO" >&6
3504 echo "$as_me:$LINENO: result: no" >&5
3505 echo "${ECHO_T}no" >&6
3508 # Extract the first word of "cmp", so it can be a program name with args.
3509 set dummy cmp; ac_word=$2
3510 echo "$as_me:$LINENO: checking for $ac_word" >&5
3511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512 if test "${ac_cv_path_CMP+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3540 if test -n "$CMP"; then
3541 echo "$as_me:$LINENO: result: $CMP" >&5
3542 echo "${ECHO_T}$CMP" >&6
3544 echo "$as_me:$LINENO: result: no" >&5
3545 echo "${ECHO_T}no" >&6
3548 # Extract the first word of "tbl", so it can be a program name with args.
3549 set dummy tbl; ac_word=$2
3550 echo "$as_me:$LINENO: checking for $ac_word" >&5
3551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3552 if test "${ac_cv_path_TBL+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3580 if test -n "$TBL"; then
3581 echo "$as_me:$LINENO: result: $TBL" >&5
3582 echo "${ECHO_T}$TBL" >&6
3584 echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3588 # Extract the first word of "ar", so it can be a program name with args.
3589 set dummy ar; ac_word=$2
3590 echo "$as_me:$LINENO: checking for $ac_word" >&5
3591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3592 if test "${ac_cv_path_AR+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3620 if test -n "$AR"; then
3621 echo "$as_me:$LINENO: result: $AR" >&5
3622 echo "${ECHO_T}$AR" >&6
3624 echo "$as_me:$LINENO: result: no" >&5
3625 echo "${ECHO_T}no" >&6
3628 # Extract the first word of "ranlib", so it can be a program name with args.
3629 set dummy ranlib; ac_word=$2
3630 echo "$as_me:$LINENO: checking for $ac_word" >&5
3631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3632 if test "${ac_cv_path_RANLIB+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 test -z "$as_dir" && as_dir=.
3645 for ac_exec_ext in '' $ac_executable_extensions; do
3646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3647 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3658 RANLIB=$ac_cv_path_RANLIB
3660 if test -n "$RANLIB"; then
3661 echo "$as_me:$LINENO: result: $RANLIB" >&5
3662 echo "${ECHO_T}$RANLIB" >&6
3664 echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3668 # Extract the first word of "openssl", so it can be a program name with args.
3669 set dummy openssl; ac_word=$2
3670 echo "$as_me:$LINENO: checking for $ac_word" >&5
3671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3672 if test "${ac_cv_path_OPENSSL+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3698 OPENSSL=$ac_cv_path_OPENSSL
3700 if test -n "$OPENSSL"; then
3701 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3702 echo "${ECHO_T}$OPENSSL" >&6
3704 echo "$as_me:$LINENO: result: no" >&5
3705 echo "${ECHO_T}no" >&6
3708 # Extract the first word of "mtx", so it can be a program name with args.
3709 set dummy mtx; ac_word=$2
3710 echo "$as_me:$LINENO: checking for $ac_word" >&5
3711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3712 if test "${ac_cv_path_MTX+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 test -z "$as_dir" && as_dir=.
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3740 if test -n "$MTX"; then
3741 echo "$as_me:$LINENO: result: $MTX" >&5
3742 echo "${ECHO_T}$MTX" >&6
3744 echo "$as_me:$LINENO: result: no" >&5
3745 echo "${ECHO_T}no" >&6
3748 # Extract the first word of "pkg-config", so it can be a program name with args.
3749 set dummy pkg-config; ac_word=$2
3750 echo "$as_me:$LINENO: checking for $ac_word" >&5
3751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3752 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3778 PKGCONFIG=$ac_cv_path_PKGCONFIG
3780 if test -n "$PKGCONFIG"; then
3781 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3782 echo "${ECHO_T}$PKGCONFIG" >&6
3784 echo "$as_me:$LINENO: result: no" >&5
3785 echo "${ECHO_T}no" >&6
3789 test -n "$ARFLAG" || ARFLAGS="cr"
3802 echo "$as_me:$LINENO: checking for Operating System" >&5
3803 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3806 *cygwin* ) CYGWIN=yes;;
3810 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3816 HAVE_SUN_OS_FALSE='#'
3818 HAVE_SUN_OS_TRUE='#'
3821 cat >>confdefs.h <<\_ACEOF
3822 #define HAVE_SUN_OS 1
3830 HAVE_SUN_OS_FALSE='#'
3832 HAVE_SUN_OS_TRUE='#'
3837 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3843 HAVE_OSF1_OS_FALSE='#'
3845 HAVE_OSF1_OS_TRUE='#'
3848 cat >>confdefs.h <<\_ACEOF
3849 #define HAVE_OSF1_OS 1
3857 HAVE_OSF1_OS_FALSE='#'
3859 HAVE_OSF1_OS_TRUE='#'
3864 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3870 HAVE_AIX_OS_FALSE='#'
3872 HAVE_AIX_OS_TRUE='#'
3875 cat >>confdefs.h <<\_ACEOF
3876 #define HAVE_AIX_OS 1
3884 HAVE_AIX_OS_FALSE='#'
3886 HAVE_AIX_OS_TRUE='#'
3891 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3897 HAVE_HPUX_OS_FALSE='#'
3899 HAVE_HPUX_OS_TRUE='#'
3902 cat >>confdefs.h <<\_ACEOF
3903 #define HAVE_HPUX_OS 1
3911 HAVE_HPUX_OS_FALSE='#'
3913 HAVE_HPUX_OS_TRUE='#'
3918 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3924 HAVE_LINUX_OS_FALSE='#'
3926 HAVE_LINUX_OS_TRUE='#'
3927 HAVE_LINUX_OS_FALSE=
3929 cat >>confdefs.h <<\_ACEOF
3930 #define HAVE_LINUX_OS 1
3938 HAVE_LINUX_OS_FALSE='#'
3940 HAVE_LINUX_OS_TRUE='#'
3941 HAVE_LINUX_OS_FALSE=
3945 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3950 HAVE_FREEBSD_OS_TRUE=
3951 HAVE_FREEBSD_OS_FALSE='#'
3953 HAVE_FREEBSD_OS_TRUE='#'
3954 HAVE_FREEBSD_OS_FALSE=
3956 cat >>confdefs.h <<\_ACEOF
3957 #define HAVE_FREEBSD_OS 1
3964 HAVE_FREEBSD_OS_TRUE=
3965 HAVE_FREEBSD_OS_FALSE='#'
3967 HAVE_FREEBSD_OS_TRUE='#'
3968 HAVE_FREEBSD_OS_FALSE=
3972 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3977 HAVE_NETBSD_OS_TRUE=
3978 HAVE_NETBSD_OS_FALSE='#'
3980 HAVE_NETBSD_OS_TRUE='#'
3981 HAVE_NETBSD_OS_FALSE=
3983 cat >>confdefs.h <<\_ACEOF
3984 #define HAVE_NETBSD_OS 1
3991 HAVE_NETBSD_OS_TRUE=
3992 HAVE_NETBSD_OS_FALSE='#'
3994 HAVE_NETBSD_OS_TRUE='#'
3995 HAVE_NETBSD_OS_FALSE=
3999 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4004 HAVE_OPENBSD_OS_TRUE=
4005 HAVE_OPENBSD_OS_FALSE='#'
4007 HAVE_OPENBSD_OS_TRUE='#'
4008 HAVE_OPENBSD_OS_FALSE=
4010 cat >>confdefs.h <<\_ACEOF
4011 #define HAVE_OPENBSD_OS 1
4018 HAVE_OPENBSD_OS_TRUE=
4019 HAVE_OPENBSD_OS_FALSE='#'
4021 HAVE_OPENBSD_OS_TRUE='#'
4022 HAVE_OPENBSD_OS_FALSE=
4026 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4032 HAVE_BSDI_OS_FALSE='#'
4034 HAVE_BSDI_OS_TRUE='#'
4037 cat >>confdefs.h <<\_ACEOF
4038 #define HAVE_BSDI_OS 1
4046 HAVE_BSDI_OS_FALSE='#'
4048 HAVE_BSDI_OS_TRUE='#'
4053 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4059 HAVE_SGI_OS_FALSE='#'
4061 HAVE_SGI_OS_TRUE='#'
4064 cat >>confdefs.h <<\_ACEOF
4065 #define HAVE_SGI_OS 1
4073 HAVE_SGI_OS_FALSE='#'
4075 HAVE_SGI_OS_TRUE='#'
4080 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4086 HAVE_IRIX_OS_FALSE='#'
4088 HAVE_IRIX_OS_TRUE='#'
4091 cat >>confdefs.h <<\_ACEOF
4092 #define HAVE_IRIX_OS 1
4100 HAVE_IRIX_OS_FALSE='#'
4102 HAVE_IRIX_OS_TRUE='#'
4107 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4112 HAVE_DARWIN_OS_TRUE=
4113 HAVE_DARWIN_OS_FALSE='#'
4115 HAVE_DARWIN_OS_TRUE='#'
4116 HAVE_DARWIN_OS_FALSE=
4118 cat >>confdefs.h <<\_ACEOF
4119 #define HAVE_DARWIN_OS 1
4126 HAVE_DARWIN_OS_TRUE=
4127 HAVE_DARWIN_OS_FALSE='#'
4129 HAVE_DARWIN_OS_TRUE='#'
4130 HAVE_DARWIN_OS_FALSE=
4134 echo "$as_me:$LINENO: result: \" \"" >&5
4135 echo "${ECHO_T}\" \"" >&6
4138 # -----------------------------------------------------------
4139 # ----------------------------------------------------------
4140 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4141 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4142 if test "x$DISTNAME" != "x"
4144 echo "distname set to $DISTNAME"
4145 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4148 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4151 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4154 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4157 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4160 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4163 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4166 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4169 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4172 elif test -f /etc/SuSE-release
4175 elif test -d /etc/SuSEconfig
4178 elif test -f /etc/mandrake-release
4181 elif test -f /etc/redhat-release
4184 elif test -f /etc/gentoo-release
4187 elif test -f /etc/debian_version
4190 elif test -f /etc/slackware-version
4193 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4196 elif test -f /etc/engarde-version
4199 elif test "$CYGWIN" = yes
4202 cat >>confdefs.h <<\_ACEOF
4203 #define HAVE_CYGWIN 1
4209 echo "$as_me:$LINENO: result: \" \"" >&5
4210 echo "${ECHO_T}\" \"" >&6
4213 # -----------------------------------------------------------
4214 # ----------------------------------------------------------
4219 INSIDE_GNOME_COMMON_TRUE=
4220 INSIDE_GNOME_COMMON_FALSE='#'
4222 INSIDE_GNOME_COMMON_TRUE='#'
4223 INSIDE_GNOME_COMMON_FALSE=
4226 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4228 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4231 # ------------------------------------------------------------------
4232 # If the user has not set --prefix, we set our default to nothing.
4233 # In this case, if the user has not set --sysconfdir, we set it
4234 # to the package default of /etc/bacula. If either --prefix or
4235 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4236 # ------------------------------------------------------------------
4237 if test x${prefix} = xNONE ; then
4238 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4239 sysconfdir=/etc/bacula
4243 sysconfdir=`eval echo ${sysconfdir}`
4245 # -------------------------------------------------------------------------
4246 # If the user has not set --exec-prefix, we default to ${prefix}
4247 # -------------------------------------------------------------------------
4248 if test x${exec_prefix} = xNONE ; then
4249 exec_prefix=${prefix}
4252 # ------------------------------------------------------------------
4253 # If the user has not set --sbindir, we set our default as /sbin
4254 # ------------------------------------------------------------------
4255 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4256 sbindir=${exec_prefix}/sbin
4258 sbindir=`eval echo ${sbindir}`
4260 # ------------------------------------------------------------------
4261 # All list of languages for which a translation exist. Each
4262 # language is separated by a space.
4263 # ------------------------------------------------------------------
4266 for ac_prog in msgfmt
4268 # Extract the first word of "$ac_prog", so it can be a program name with args.
4269 set dummy $ac_prog; ac_word=$2
4270 echo "$as_me:$LINENO: checking for $ac_word" >&5
4271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4272 if test "${ac_cv_path_MSGFMT+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 MSGFMT=$ac_cv_path_MSGFMT
4299 if test -n "$MSGFMT"; then
4300 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4301 echo "${ECHO_T}$MSGFMT" >&6
4303 echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6
4307 test -n "$MSGFMT" && break
4309 test -n "$MSGFMT" || MSGFMT="no"
4311 if test "$MSGFMT" = "no"
4313 echo 'msgfmt program not found, disabling NLS !'
4315 USE_INCLUDED_LIBINTL=no
4323 support_postgresql=no
4324 support_smartalloc=yes
4329 support_static_tools=no
4330 support_static_fd=no
4331 support_static_sd=no
4332 support_static_dir=no
4333 support_static_cons=no
4334 build_client_only=no
4340 # -------------------------------------------
4341 # gnome (default off)
4342 # -------------------------------------------
4343 # Check whether --enable-gnome or --disable-gnome was given.
4344 if test "${enable_gnome+set}" = set; then
4345 enableval="$enable_gnome"
4346 if test x$enableval = xyes; then
4352 if test x$support_gnome = xyes; then
4353 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4355 if test $pkg = 0; then
4356 GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4357 GNOMEUI_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4358 GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4359 GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4364 GNOME_DIR=src/gnome2-console
4365 gnome_version="Version 2.x"
4378 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4379 if test "${with_gnome_includes+set}" = set; then
4380 withval="$with_gnome_includes"
4382 CFLAGS="$CFLAGS -I$withval"
4387 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4388 if test "${with_gnome_libs+set}" = set; then
4389 withval="$with_gnome_libs"
4391 LDFLAGS="$LDFLAGS -L$withval"
4392 gnome_prefix=$withval
4397 # Check whether --with-gnome or --without-gnome was given.
4398 if test "${with_gnome+set}" = set; then
4399 withval="$with_gnome"
4400 if test x$withval = xyes; then
4404 if test "x$withval" = xno; then
4408 LDFLAGS="$LDFLAGS -L$withval/lib"
4409 CFLAGS="$CFLAGS -I$withval/include"
4410 gnome_prefix=$withval/lib
4417 if test "x$want_gnome" = xyes; then
4419 # Extract the first word of "gnome-config", so it can be a program name with args.
4420 set dummy gnome-config; ac_word=$2
4421 echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 case $GNOME_CONFIG in
4428 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4449 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4451 if test -n "$GNOME_CONFIG"; then
4452 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4453 echo "${ECHO_T}$GNOME_CONFIG" >&6
4455 echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4459 if test "$GNOME_CONFIG" = "no"; then
4460 no_gnome_config="yes"
4462 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4463 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4464 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4465 echo "$as_me:$LINENO: result: yes" >&5
4466 echo "${ECHO_T}yes" >&6
4469 # Extract the first word of "orbit-config", so it can be a program name with args.
4470 set dummy orbit-config; ac_word=$2
4471 echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4473 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 case $ORBIT_CONFIG in
4478 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4499 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4501 if test -n "$ORBIT_CONFIG"; then
4502 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4503 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4505 echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6
4509 # Extract the first word of "orbit-idl", so it can be a program name with args.
4510 set dummy orbit-idl; ac_word=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4539 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4541 if test -n "$ORBIT_IDL"; then
4542 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4543 echo "${ECHO_T}$ORBIT_IDL" >&6
4545 echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4549 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4550 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4551 if test "${gnome_cv_orbit_found+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4556 gnome_cv_orbit_found=no
4558 gnome_cv_orbit_found=yes
4562 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4563 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4566 if test x$gnome_cv_orbit_found = xyes; then
4568 HAVE_ORBIT_FALSE='#'
4573 if test x$gnome_cv_orbit_found = xyes; then
4575 ORBIT_CFLAGS=`orbit-config --cflags client server`
4576 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4580 if test xfail = xfailure; then
4581 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4582 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4583 { (exit 1); exit 1; }; }
4587 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4588 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4589 if test "${gnome_cv_gnorba_found+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 gnome_cv_gnorba_found=no
4594 if test x$gnome_cv_orbit_found = xyes; then
4595 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4596 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4597 if test -n "$GNORBA_LIBS"; then
4598 gnome_cv_gnorba_found=yes
4603 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4604 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4607 if test x$gnome_cv_gnorba_found = xyes; then
4609 HAVE_GNORBA_FALSE='#'
4611 HAVE_GNORBA_TRUE='#'
4614 if test x$gnome_cv_orbit_found = xyes; then
4616 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4617 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4621 if test xfail = xfailure; then
4622 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4623 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4624 { (exit 1); exit 1; }; }
4628 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4629 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4630 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4631 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4632 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4633 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4634 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4637 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4639 no_gnome_config="yes"
4643 if test x$exec_prefix = xNONE; then
4644 if test x$prefix = xNONE; then
4645 gnome_prefix=$ac_default_prefix/lib
4647 gnome_prefix=$prefix/lib
4650 gnome_prefix=`eval echo \`echo $libdir\``
4653 if test "$no_gnome_config" = "yes"; then
4654 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4655 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4656 if test -f $gnome_prefix/gnomeConf.sh; then
4657 echo "$as_me:$LINENO: result: found" >&5
4658 echo "${ECHO_T}found" >&6
4659 echo "loading gnome configuration from" \
4660 "$gnome_prefix/gnomeConf.sh"
4661 . $gnome_prefix/gnomeConf.sh
4664 echo "$as_me:$LINENO: result: not found" >&5
4665 echo "${ECHO_T}not found" >&6
4666 if test xfail = xfail; then
4667 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4668 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4669 { (exit 1); exit 1; }; }
4678 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4679 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4683 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4684 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4685 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4688 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4689 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4690 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4693 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4694 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4695 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4697 echo "$as_me:$LINENO: result: unknown library" >&5
4698 echo "${ECHO_T}unknown library" >&6
4700 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4701 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4706 GNOME_DIR=src/gnome-console
4707 gnome_version="Version 1.4"
4713 # -------------------------------------------
4714 # smartalloc (default off)
4715 # -------------------------------------------
4716 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4717 if test "${enable_smartalloc+set}" = set; then
4718 enableval="$enable_smartalloc"
4719 if test x$enableval = xno; then
4720 support_smartalloc=no
4724 if test x$support_smartalloc = xyes; then
4725 cat >>confdefs.h <<\_ACEOF
4726 #define SMARTALLOC 1
4731 # -------------------------------------------
4732 # static-tools (default off)
4733 # -------------------------------------------
4734 # Check whether --enable-static-tools or --disable-static-tools was given.
4735 if test "${enable_static_tools+set}" = set; then
4736 enableval="$enable_static_tools"
4737 if test x$enableval = xyes; then
4738 support_static_tools=yes
4743 if test x$support_static_tools = xyes; then
4744 TTOOL_LDFLAGS="-static"
4748 # -------------------------------------------
4749 # static-fd (default off)
4750 # -------------------------------------------
4751 # Check whether --enable-static-fd or --disable-static-fd was given.
4752 if test "${enable_static_fd+set}" = set; then
4753 enableval="$enable_static_fd"
4754 if test x$enableval = xyes; then
4755 support_static_fd=yes
4760 if test x$support_static_fd = xyes; then
4761 STATIC_FD="static-bacula-fd"
4765 # -------------------------------------------
4766 # static-sd (default off)
4767 # -------------------------------------------
4768 # Check whether --enable-static-sd or --disable-static-sd was given.
4769 if test "${enable_static_sd+set}" = set; then
4770 enableval="$enable_static_sd"
4771 if test x$enableval = xyes; then
4772 support_static_sd=yes
4777 if test x$support_static_sd = xyes; then
4778 STATIC_SD="static-bacula-sd"
4782 # -------------------------------------------
4783 # static-dir (default off)
4784 # -------------------------------------------
4785 # Check whether --enable-static-dir or --disable-static-dir was given.
4786 if test "${enable_static_dir+set}" = set; then
4787 enableval="$enable_static_dir"
4788 if test x$enableval = xyes; then
4789 support_static_dir=yes
4794 if test x$support_static_dir = xyes; then
4795 STATIC_DIR="static-bacula-dir"
4799 # -------------------------------------------
4800 # static-cons (default off)
4801 # -------------------------------------------
4802 # Check whether --enable-static-cons or --disable-static-cons was given.
4803 if test "${enable_static_cons+set}" = set; then
4804 enableval="$enable_static_cons"
4805 if test x$enableval = xyes; then
4806 support_static_cons=yes
4811 if test x$support_static_cons = xyes; then
4812 STATIC_CONS="static-bconsole"
4816 # -------------------------------------------
4817 # client_only (default off)
4818 # -------------------------------------------
4819 # Check whether --enable-client-only or --disable-client-only was given.
4820 if test "${enable_client_only+set}" = set; then
4821 enableval="$enable_client_only"
4822 if test x$enableval = xyes; then
4823 build_client_only=yes
4826 if test x$build_client_only = xno; then
4833 # ---------------------------------------------------
4834 # Check for conio (Bacula readline substitute)(
4835 # ---------------------------------------------------
4836 # this allows you to turn it completely off
4837 # Check whether --enable-conio or --disable-conio was given.
4838 if test "${enable_conio+set}" = set; then
4839 enableval="$enable_conio"
4840 if test x$enableval = xno; then
4846 if test x$support_conio = xyes; then
4850 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4851 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4852 if test "${ac_cv_header_stdc+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 cat >conftest.$ac_ext <<_ACEOF
4856 #line $LINENO "configure"
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4875 rm -f conftest.$ac_objext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4877 (eval $ac_compile) 2>&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } &&
4881 { ac_try='test -s conftest.$ac_objext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 ac_cv_header_stdc=yes
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4892 ac_cv_header_stdc=no
4894 rm -f conftest.$ac_objext conftest.$ac_ext
4896 if test $ac_cv_header_stdc = yes; then
4897 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4898 cat >conftest.$ac_ext <<_ACEOF
4899 #line $LINENO "configure"
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h. */
4908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4909 $EGREP "memchr" >/dev/null 2>&1; then
4912 ac_cv_header_stdc=no
4918 if test $ac_cv_header_stdc = yes; then
4919 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4920 cat >conftest.$ac_ext <<_ACEOF
4921 #line $LINENO "configure"
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4931 $EGREP "free" >/dev/null 2>&1; then
4934 ac_cv_header_stdc=no
4940 if test $ac_cv_header_stdc = yes; then
4941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4942 if test "$cross_compiling" = yes; then
4945 cat >conftest.$ac_ext <<_ACEOF
4946 #line $LINENO "configure"
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4953 #if ((' ' & 0x0FF) == 0x020)
4954 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4955 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4957 # define ISLOWER(c) \
4958 (('a' <= (c) && (c) <= 'i') \
4959 || ('j' <= (c) && (c) <= 'r') \
4960 || ('s' <= (c) && (c) <= 'z'))
4961 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4969 for (i = 0; i < 256; i++)
4970 if (XOR (islower (i), ISLOWER (i))
4971 || toupper (i) != TOUPPER (i))
4976 rm -f conftest$ac_exeext
4977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4978 (eval $ac_link) 2>&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4989 echo "$as_me: program exited with status $ac_status" >&5
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4994 ac_cv_header_stdc=no
4996 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5000 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5001 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5002 if test $ac_cv_header_stdc = yes; then
5004 cat >>confdefs.h <<\_ACEOF
5005 #define STDC_HEADERS 1
5010 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5020 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5021 inttypes.h stdint.h unistd.h
5023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5024 echo "$as_me:$LINENO: checking for $ac_header" >&5
5025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 cat >conftest.$ac_ext <<_ACEOF
5030 #line $LINENO "configure"
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5036 $ac_includes_default
5038 #include <$ac_header>
5040 rm -f conftest.$ac_objext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042 (eval $ac_compile) 2>&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } &&
5046 { ac_try='test -s conftest.$ac_objext'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 eval "$as_ac_Header=yes"
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5057 eval "$as_ac_Header=no"
5059 rm -f conftest.$ac_objext conftest.$ac_ext
5061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5064 cat >>confdefs.h <<_ACEOF
5065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5074 for ac_header in termcap.h
5076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5086 # Is the header compilable?
5087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5089 cat >conftest.$ac_ext <<_ACEOF
5090 #line $LINENO "configure"
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h. */
5096 $ac_includes_default
5097 #include <$ac_header>
5099 rm -f conftest.$ac_objext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5101 (eval $ac_compile) 2>&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try='test -s conftest.$ac_objext'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; }; then
5111 ac_header_compiler=yes
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5116 ac_header_compiler=no
5118 rm -f conftest.$ac_objext conftest.$ac_ext
5119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5120 echo "${ECHO_T}$ac_header_compiler" >&6
5122 # Is the header present?
5123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5125 cat >conftest.$ac_ext <<_ACEOF
5126 #line $LINENO "configure"
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5132 #include <$ac_header>
5134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5137 grep -v '^ *+' conftest.er1 >conftest.err
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } >/dev/null; then
5142 if test -s conftest.err; then
5143 ac_cpp_err=$ac_c_preproc_warn_flag
5150 if test -z "$ac_cpp_err"; then
5151 ac_header_preproc=yes
5153 echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5156 ac_header_preproc=no
5158 rm -f conftest.err conftest.$ac_ext
5159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5160 echo "${ECHO_T}$ac_header_preproc" >&6
5162 # So? What about this header?
5163 case $ac_header_compiler:$ac_header_preproc in
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5171 ## ------------------------------------ ##
5172 ## Report this to bug-autoconf@gnu.org. ##
5173 ## ------------------------------------ ##
5176 sed "s/^/$as_me: WARNING: /" >&2
5179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5187 ## ------------------------------------ ##
5188 ## Report this to bug-autoconf@gnu.org. ##
5189 ## ------------------------------------ ##
5192 sed "s/^/$as_me: WARNING: /" >&2
5195 echo "$as_me:$LINENO: checking for $ac_header" >&5
5196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 eval "$as_ac_Header=$ac_header_preproc"
5202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5207 cat >>confdefs.h <<_ACEOF
5208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5215 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5216 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5217 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 ac_check_lib_save_LIBS=$LIBS
5221 LIBS="-ltermcap $LIBS"
5222 cat >conftest.$ac_ext <<_ACEOF
5223 #line $LINENO "configure"
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5230 /* Override any gcc2 internal prototype to avoid an error. */
5234 /* We use char because int might match the return type of a gcc2
5235 builtin and then its argument prototype would still apply. */
5245 rm -f conftest.$ac_objext conftest$ac_exeext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5247 (eval $ac_link) 2>&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } &&
5251 { ac_try='test -s conftest$ac_exeext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 ac_cv_lib_termcap_tgetent=yes
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5262 ac_cv_lib_termcap_tgetent=no
5264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5265 LIBS=$ac_check_lib_save_LIBS
5267 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5268 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5269 if test $ac_cv_lib_termcap_tgetent = yes; then
5270 CONS_LIBS="-ltermcap"
5275 cat >>confdefs.h <<\_ACEOF
5276 #define HAVE_CONIO 1
5282 # ---------------------------------------------------
5283 # Check for readline support/directory (default off)
5284 # ---------------------------------------------------
5285 # this allows you to turn it completely off
5286 # Check whether --enable-readline or --disable-readline was given.
5287 if test "${enable_readline+set}" = set; then
5288 enableval="$enable_readline"
5289 if test x$enableval = xno; then
5296 if test x$support_readline = xyes; then
5298 # Check whether --with-readline or --without-readline was given.
5299 if test "${with_readline+set}" = set; then
5300 withval="$with_readline"
5302 case "$with_readline" in
5305 if test "$with_readline" != "yes"; then
5306 CONS_INC="-I${with_readline}"
5307 CONS_LDFLAGS="-L$with_readline"
5309 with_readline="/usr/include/readline"
5311 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5313 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5314 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5321 # Is the header compilable?
5322 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5323 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5324 cat >conftest.$ac_ext <<_ACEOF
5325 #line $LINENO "configure"
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h. */
5331 $ac_includes_default
5332 #include <${with_readline}/readline.h>
5334 rm -f conftest.$ac_objext
5335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5336 (eval $ac_compile) 2>&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } &&
5340 { ac_try='test -s conftest.$ac_objext'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; }; then
5346 ac_header_compiler=yes
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5351 ac_header_compiler=no
5353 rm -f conftest.$ac_objext conftest.$ac_ext
5354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5355 echo "${ECHO_T}$ac_header_compiler" >&6
5357 # Is the header present?
5358 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5359 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5360 cat >conftest.$ac_ext <<_ACEOF
5361 #line $LINENO "configure"
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367 #include <${with_readline}/readline.h>
5369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5372 grep -v '^ *+' conftest.er1 >conftest.err
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } >/dev/null; then
5377 if test -s conftest.err; then
5378 ac_cpp_err=$ac_c_preproc_warn_flag
5385 if test -z "$ac_cpp_err"; then
5386 ac_header_preproc=yes
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5391 ac_header_preproc=no
5393 rm -f conftest.err conftest.$ac_ext
5394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5395 echo "${ECHO_T}$ac_header_preproc" >&6
5397 # So? What about this header?
5398 case $ac_header_compiler:$ac_header_preproc in
5400 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5401 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5402 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5403 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5406 ## ------------------------------------ ##
5407 ## Report this to bug-autoconf@gnu.org. ##
5408 ## ------------------------------------ ##
5411 sed "s/^/$as_me: WARNING: /" >&2
5414 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5415 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5417 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5419 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5422 ## ------------------------------------ ##
5423 ## Report this to bug-autoconf@gnu.org. ##
5424 ## ------------------------------------ ##
5427 sed "s/^/$as_me: WARNING: /" >&2
5430 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5431 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 eval "$as_ac_Header=$ac_header_preproc"
5437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5442 cat >>confdefs.h <<\_ACEOF
5443 #define HAVE_READLINE 1
5446 CONS_LIBS="-lreadline -ltermcap"
5450 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5451 echo "$as_me: error: *** readline library missing" >&2;}
5452 { (exit 1); exit 1; }; }
5463 # check for standard readline library
5464 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5465 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5466 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5467 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5470 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5471 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5473 # Is the header compilable?
5474 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5475 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5476 cat >conftest.$ac_ext <<_ACEOF
5477 #line $LINENO "configure"
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h. */
5483 $ac_includes_default
5484 #include </usr/include/readline/readline.h>
5486 rm -f conftest.$ac_objext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488 (eval $ac_compile) 2>&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try='test -s conftest.$ac_objext'
5493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5498 ac_header_compiler=yes
5500 echo "$as_me: failed program was:" >&5
5501 sed 's/^/| /' conftest.$ac_ext >&5
5503 ac_header_compiler=no
5505 rm -f conftest.$ac_objext conftest.$ac_ext
5506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5507 echo "${ECHO_T}$ac_header_compiler" >&6
5509 # Is the header present?
5510 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5511 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5512 cat >conftest.$ac_ext <<_ACEOF
5513 #line $LINENO "configure"
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5519 #include </usr/include/readline/readline.h>
5521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5524 grep -v '^ *+' conftest.er1 >conftest.err
5526 cat conftest.err >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); } >/dev/null; then
5529 if test -s conftest.err; then
5530 ac_cpp_err=$ac_c_preproc_warn_flag
5537 if test -z "$ac_cpp_err"; then
5538 ac_header_preproc=yes
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 ac_header_preproc=no
5545 rm -f conftest.err conftest.$ac_ext
5546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5547 echo "${ECHO_T}$ac_header_preproc" >&6
5549 # So? What about this header?
5550 case $ac_header_compiler:$ac_header_preproc in
5552 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5553 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5554 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5555 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5558 ## ------------------------------------ ##
5559 ## Report this to bug-autoconf@gnu.org. ##
5560 ## ------------------------------------ ##
5563 sed "s/^/$as_me: WARNING: /" >&2
5566 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5567 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5568 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5569 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5570 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5571 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5574 ## ------------------------------------ ##
5575 ## Report this to bug-autoconf@gnu.org. ##
5576 ## ------------------------------------ ##
5579 sed "s/^/$as_me: WARNING: /" >&2
5582 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5583 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5584 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5589 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5590 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5593 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5594 cat >>confdefs.h <<\_ACEOF
5595 #define HAVE_READLINE 1
5599 CONS_INC="-I/usr/include/readline"
5600 CONS_LIBS="-lreadline -ltermcap"
5604 # Did not find standard library, so try Bacula's default
5605 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5607 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5608 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5615 # Is the header compilable?
5616 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5617 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5618 cat >conftest.$ac_ext <<_ACEOF
5619 #line $LINENO "configure"
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h. */
5625 $ac_includes_default
5626 #include <${TOP_DIR}/depkgs/readline/readline.h>
5628 rm -f conftest.$ac_objext
5629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630 (eval $ac_compile) 2>&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } &&
5634 { ac_try='test -s conftest.$ac_objext'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5640 ac_header_compiler=yes
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5645 ac_header_compiler=no
5647 rm -f conftest.$ac_objext conftest.$ac_ext
5648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5649 echo "${ECHO_T}$ac_header_compiler" >&6
5651 # Is the header present?
5652 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5653 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5654 cat >conftest.$ac_ext <<_ACEOF
5655 #line $LINENO "configure"
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 #include <${TOP_DIR}/depkgs/readline/readline.h>
5663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5666 grep -v '^ *+' conftest.er1 >conftest.err
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } >/dev/null; then
5671 if test -s conftest.err; then
5672 ac_cpp_err=$ac_c_preproc_warn_flag
5679 if test -z "$ac_cpp_err"; then
5680 ac_header_preproc=yes
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5685 ac_header_preproc=no
5687 rm -f conftest.err conftest.$ac_ext
5688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5689 echo "${ECHO_T}$ac_header_preproc" >&6
5691 # So? What about this header?
5692 case $ac_header_compiler:$ac_header_preproc in
5694 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5695 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5696 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5697 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5700 ## ------------------------------------ ##
5701 ## Report this to bug-autoconf@gnu.org. ##
5702 ## ------------------------------------ ##
5705 sed "s/^/$as_me: WARNING: /" >&2
5708 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5709 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5711 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5712 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5713 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5716 ## ------------------------------------ ##
5717 ## Report this to bug-autoconf@gnu.org. ##
5718 ## ------------------------------------ ##
5721 sed "s/^/$as_me: WARNING: /" >&2
5724 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5725 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 eval "$as_ac_Header=$ac_header_preproc"
5731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5736 cat >>confdefs.h <<\_ACEOF
5737 #define HAVE_READLINE 1
5741 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5742 CONS_LIBS="-lreadline -lhistory -ltermcap"
5743 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5744 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5747 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5748 echo "$as_me: error: *** readline library missing" >&2;}
5749 { (exit 1); exit 1; }; }
5774 # Minimal stuff for readline Makefile configuration
5778 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5779 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5780 if test "${ac_cv_header_stat_broken+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 cat >conftest.$ac_ext <<_ACEOF
5784 #line $LINENO "configure"
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5790 #include <sys/types.h>
5791 #include <sys/stat.h>
5793 #if defined(S_ISBLK) && defined(S_IFDIR)
5794 # if S_ISBLK (S_IFDIR)
5799 #if defined(S_ISBLK) && defined(S_IFCHR)
5800 # if S_ISBLK (S_IFCHR)
5805 #if defined(S_ISLNK) && defined(S_IFREG)
5806 # if S_ISLNK (S_IFREG)
5811 #if defined(S_ISSOCK) && defined(S_IFREG)
5812 # if S_ISSOCK (S_IFREG)
5818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5819 $EGREP "You lose" >/dev/null 2>&1; then
5820 ac_cv_header_stat_broken=yes
5822 ac_cv_header_stat_broken=no
5827 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5828 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5829 if test $ac_cv_header_stat_broken = yes; then
5831 cat >>confdefs.h <<\_ACEOF
5832 #define STAT_MACROS_BROKEN 1
5843 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5844 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5845 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5846 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 cat >conftest.$ac_ext <<_ACEOF
5851 #line $LINENO "configure"
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 #include <sys/types.h>
5869 rm -f conftest.$ac_objext
5870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871 (eval $ac_compile) 2>&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try='test -s conftest.$ac_objext'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
5881 eval "$as_ac_Header=yes"
5883 echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5886 eval "$as_ac_Header=no"
5888 rm -f conftest.$ac_objext conftest.$ac_ext
5890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5893 cat >>confdefs.h <<_ACEOF
5894 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5897 ac_header_dirent=$ac_hdr; break
5901 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5902 if test $ac_header_dirent = dirent.h; then
5903 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5904 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5905 if test "${ac_cv_search_opendir+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 ac_func_search_save_LIBS=$LIBS
5909 ac_cv_search_opendir=no
5910 cat >conftest.$ac_ext <<_ACEOF
5911 #line $LINENO "configure"
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5918 /* Override any gcc2 internal prototype to avoid an error. */
5922 /* We use char because int might match the return type of a gcc2
5923 builtin and then its argument prototype would still apply. */
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935 (eval $ac_link) 2>&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } &&
5939 { ac_try='test -s conftest$ac_exeext'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5945 ac_cv_search_opendir="none required"
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5952 if test "$ac_cv_search_opendir" = no; then
5953 for ac_lib in dir; do
5954 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5955 cat >conftest.$ac_ext <<_ACEOF
5956 #line $LINENO "configure"
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5963 /* Override any gcc2 internal prototype to avoid an error. */
5967 /* We use char because int might match the return type of a gcc2
5968 builtin and then its argument prototype would still apply. */
5978 rm -f conftest.$ac_objext conftest$ac_exeext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5980 (eval $ac_link) 2>&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } &&
5984 { ac_try='test -s conftest$ac_exeext'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; }; then
5990 ac_cv_search_opendir="-l$ac_lib"
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6000 LIBS=$ac_func_search_save_LIBS
6002 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6003 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6004 if test "$ac_cv_search_opendir" != no; then
6005 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6010 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6011 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6012 if test "${ac_cv_search_opendir+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 ac_func_search_save_LIBS=$LIBS
6016 ac_cv_search_opendir=no
6017 cat >conftest.$ac_ext <<_ACEOF
6018 #line $LINENO "configure"
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6025 /* Override any gcc2 internal prototype to avoid an error. */
6029 /* We use char because int might match the return type of a gcc2
6030 builtin and then its argument prototype would still apply. */
6040 rm -f conftest.$ac_objext conftest$ac_exeext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6042 (eval $ac_link) 2>&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } &&
6046 { ac_try='test -s conftest$ac_exeext'
6047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; }; then
6052 ac_cv_search_opendir="none required"
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6059 if test "$ac_cv_search_opendir" = no; then
6061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6062 cat >conftest.$ac_ext <<_ACEOF
6063 #line $LINENO "configure"
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6070 /* Override any gcc2 internal prototype to avoid an error. */
6074 /* We use char because int might match the return type of a gcc2
6075 builtin and then its argument prototype would still apply. */
6085 rm -f conftest.$ac_objext conftest$ac_exeext
6086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6087 (eval $ac_link) 2>&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } &&
6091 { ac_try='test -s conftest$ac_exeext'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_cv_search_opendir="-l$ac_lib"
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6107 LIBS=$ac_func_search_save_LIBS
6109 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6110 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6111 if test "$ac_cv_search_opendir" != no; then
6112 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6127 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6130 echo "$as_me:$LINENO: checking for $ac_func" >&5
6131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6132 if eval "test \"\${$as_ac_var+set}\" = set"; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 cat >conftest.$ac_ext <<_ACEOF
6136 #line $LINENO "configure"
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 /* System header to define __stub macros and hopefully few prototypes,
6143 which can conflict with char $ac_func (); below.
6144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6145 <limits.h> exists even on freestanding compilers. */
6147 # include <limits.h>
6149 # include <assert.h>
6151 /* Override any gcc2 internal prototype to avoid an error. */
6156 /* We use char because int might match the return type of a gcc2
6157 builtin and then its argument prototype would still apply. */
6159 /* The GNU C library defines this for functions which it implements
6160 to always fail with ENOSYS. Some functions are actually named
6161 something starting with __ and the normal name is an alias. */
6162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6165 char (*f) () = $ac_func;
6174 return f != $ac_func;
6179 rm -f conftest.$ac_objext conftest$ac_exeext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6181 (eval $ac_link) 2>&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try='test -s conftest$ac_exeext'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; }; then
6191 eval "$as_ac_var=yes"
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6196 eval "$as_ac_var=no"
6198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6202 if test `eval echo '${'$as_ac_var'}'` = yes; then
6203 cat >>confdefs.h <<_ACEOF
6204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6211 for ac_func in nanosleep
6213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6214 echo "$as_me:$LINENO: checking for $ac_func" >&5
6215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6216 if eval "test \"\${$as_ac_var+set}\" = set"; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 cat >conftest.$ac_ext <<_ACEOF
6220 #line $LINENO "configure"
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6226 /* System header to define __stub macros and hopefully few prototypes,
6227 which can conflict with char $ac_func (); below.
6228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6229 <limits.h> exists even on freestanding compilers. */
6231 # include <limits.h>
6233 # include <assert.h>
6235 /* Override any gcc2 internal prototype to avoid an error. */
6240 /* We use char because int might match the return type of a gcc2
6241 builtin and then its argument prototype would still apply. */
6243 /* The GNU C library defines this for functions which it implements
6244 to always fail with ENOSYS. Some functions are actually named
6245 something starting with __ and the normal name is an alias. */
6246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6249 char (*f) () = $ac_func;
6258 return f != $ac_func;
6263 rm -f conftest.$ac_objext conftest$ac_exeext
6264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6265 (eval $ac_link) 2>&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } &&
6269 { ac_try='test -s conftest$ac_exeext'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 eval "$as_ac_var=yes"
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6280 eval "$as_ac_var=no"
6282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6286 if test `eval echo '${'$as_ac_var'}'` = yes; then
6287 cat >>confdefs.h <<_ACEOF
6288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6296 for ac_header in varargs.h
6298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6300 echo "$as_me:$LINENO: checking for $ac_header" >&5
6301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6308 # Is the header compilable?
6309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6311 cat >conftest.$ac_ext <<_ACEOF
6312 #line $LINENO "configure"
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h. */
6318 $ac_includes_default
6319 #include <$ac_header>
6321 rm -f conftest.$ac_objext
6322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6323 (eval $ac_compile) 2>&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } &&
6327 { ac_try='test -s conftest.$ac_objext'
6328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; }; then
6333 ac_header_compiler=yes
6335 echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6338 ac_header_compiler=no
6340 rm -f conftest.$ac_objext conftest.$ac_ext
6341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6342 echo "${ECHO_T}$ac_header_compiler" >&6
6344 # Is the header present?
6345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6347 cat >conftest.$ac_ext <<_ACEOF
6348 #line $LINENO "configure"
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h. */
6354 #include <$ac_header>
6356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6359 grep -v '^ *+' conftest.er1 >conftest.err
6361 cat conftest.err >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } >/dev/null; then
6364 if test -s conftest.err; then
6365 ac_cpp_err=$ac_c_preproc_warn_flag
6372 if test -z "$ac_cpp_err"; then
6373 ac_header_preproc=yes
6375 echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6378 ac_header_preproc=no
6380 rm -f conftest.err conftest.$ac_ext
6381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6382 echo "${ECHO_T}$ac_header_preproc" >&6
6384 # So? What about this header?
6385 case $ac_header_compiler:$ac_header_preproc in
6387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6393 ## ------------------------------------ ##
6394 ## Report this to bug-autoconf@gnu.org. ##
6395 ## ------------------------------------ ##
6398 sed "s/^/$as_me: WARNING: /" >&2
6401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6409 ## ------------------------------------ ##
6410 ## Report this to bug-autoconf@gnu.org. ##
6411 ## ------------------------------------ ##
6414 sed "s/^/$as_me: WARNING: /" >&2
6417 echo "$as_me:$LINENO: checking for $ac_header" >&5
6418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 eval "$as_ac_Header=$ac_header_preproc"
6424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6429 cat >>confdefs.h <<_ACEOF
6430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6438 # End of readline/conio stuff
6439 # -----------------------------------------------------------------------
6442 # ---------------------------------------------------
6443 # Check for GMP support/directory
6444 # ---------------------------------------------------
6448 # [ --with-gmp[=DIR] Specify gmp library directory],
6450 # case "$with_gmp" in
6453 # if test "$with_gmp" != "yes"; then
6454 # GMP_INC="-I$with_gmp"
6456 # GMP_LDFLAGS="-L$with_gmp"
6458 # with_gmp="/usr/include"
6460 # AC_CHECK_HEADER($with_gmp/gmp.h,
6461 # [ AC_MSG_RESULT(yes)
6462 # AC_DEFINE(HAVE_GMP)
6466 # [ AC_MSG_ERROR([*** gmp library missing])
6472 # # check for standard gmp library
6473 # AC_CHECK_HEADER(/usr/include/gmp.h,
6474 # [ AC_MSG_RESULT(yes)
6475 # AC_DEFINE(HAVE_GMP)
6480 # # Did not find standard library, so use our own
6481 # AC_MSG_RESULT(yes)
6482 # AC_DEFINE(HAVE_GMP)
6485 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6487 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6488 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6494 #AC_SUBST(GMP_LDFLAGS)
6498 # -----------------------------------------------------------------------
6501 # ---------------------------------------------------
6502 # Check for CWEB support/directory
6503 # ---------------------------------------------------
6508 # [ --with-cweb[=DIR] Specify cweb library directory],
6510 # case "$with_cweb" in
6513 # if test "$with_cweb" != "yes"; then
6514 # CWEB_INC="-I$with_cweb"
6515 # CWEB_LIBS="-lcweb"
6516 # CWEB_LDFLAGS="-L$with_cweb"
6518 # with_cweb="/usr/include"
6520 # AC_CHECK_HEADER($with_cweb/cweb.h,
6521 # [ AC_MSG_RESULT(yes)
6522 # AC_DEFINE(HAVE_CWEB)
6523 # CWEB_LIBS="-lcweb"
6526 # [ AC_MSG_ERROR([*** cweb library missing])
6532 # # check for standard cweb library
6533 # AC_CHECK_HEADER(/usr/include/cweb.h,
6534 # [ AC_MSG_RESULT(yes)
6535 # AC_DEFINE(HAVE_CWEB)
6538 # CWEB_LIBS="-lcweb"
6540 # # Did not find starndard library, so use our own
6541 # AC_MSG_RESULT(yes)
6542 # AC_DEFINE(HAVE_CWEB)
6545 # CWEB=${TOP_DIR}/depkgs/cweb
6546 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6547 # CWEB_LIBS="-lcweb"
6548 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6549 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6555 #AC_SUBST(CWEB_LIBS)
6556 #AC_SUBST(CWEB_LDFLAGS)
6560 # -----------------------------------------------------------------------
6564 # -----------------------------------------------------------
6565 # Check whether user wants TCP wrappers support (default off)
6566 # -----------------------------------------------------------
6569 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6570 if test "${with_tcp_wrappers+set}" = set; then
6571 withval="$with_tcp_wrappers"
6573 if test "x$withval" != "xno" ; then
6575 LIBS="$saved_LIBS -lwrap"
6576 echo "$as_me:$LINENO: checking for libwrap" >&5
6577 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6578 cat >conftest.$ac_ext <<_ACEOF
6579 #line $LINENO "configure"
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h. */
6586 int deny_severity = 0;
6587 int allow_severity = 0;
6588 struct request_info *req;
6597 rm -f conftest.$ac_objext conftest$ac_exeext
6598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6599 (eval $ac_link) 2>&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
6603 { ac_try='test -s conftest$ac_exeext'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6610 echo "$as_me:$LINENO: result: yes" >&5
6611 echo "${ECHO_T}yes" >&6
6612 cat >>confdefs.h <<\_ACEOF
6613 #define HAVE_LIBWRAP 1
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6623 LIBS="$saved_LIBS -lwrap -lnsl"
6624 cat >conftest.$ac_ext <<_ACEOF
6625 #line $LINENO "configure"
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6632 int deny_severity = 0;
6633 int allow_severity = 0;
6634 struct request_info *req;
6643 rm -f conftest.$ac_objext conftest$ac_exeext
6644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6645 (eval $ac_link) 2>&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try='test -s conftest$ac_exeext'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; }; then
6656 echo "$as_me:$LINENO: result: yes" >&5
6657 echo "${ECHO_T}yes" >&6
6658 cat >>confdefs.h <<\_ACEOF
6659 #define HAVE_LIBWRAP 1
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6668 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6669 echo "$as_me: error: *** libwrap missing" >&2;}
6670 { (exit 1); exit 1; }; }
6673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6682 # ------------------------------------------
6683 # Where to place working dir
6684 # ------------------------------------------
6685 working_dir=`eval echo ${sysconfdir}/working`
6687 # Check whether --with-working-dir or --without-working-dir was given.
6688 if test "${with_working_dir+set}" = set; then
6689 withval="$with_working_dir"
6691 if test "x$withval" != "xno" ; then
6692 working_dir=$withval
6701 # ------------------------------------------
6702 # Where to place scriptdir (script files)
6703 # ------------------------------------------
6704 scriptdir=`eval echo ${sysconfdir}`
6706 # Check whether --with-scriptdir or --without-scriptdir was given.
6707 if test "${with_scriptdir+set}" = set; then
6708 withval="$with_scriptdir"
6710 if test "x$withval" != "xno" ; then
6720 # ------------------------------------------
6721 # Where to send dump email
6722 # ------------------------------------------
6723 dump_email=root@localhost
6725 # Check whether --with-dump-email or --without-dump-email was given.
6726 if test "${with_dump_email+set}" = set; then
6727 withval="$with_dump_email"
6729 if test "x$withval" != "xno" ; then
6738 # ------------------------------------------
6739 # Where to send job email
6740 # ------------------------------------------
6741 job_email=root@localhost
6743 # Check whether --with-job-email or --without-job-email was given.
6744 if test "${with_job_email+set}" = set; then
6745 withval="$with_job_email"
6747 if test "x$withval" != "xno" ; then
6756 # ------------------------------------------
6757 # Where to find smtp host
6758 # ------------------------------------------
6761 # Check whether --with-smtp_host or --without-smtp_host was given.
6762 if test "${with_smtp_host+set}" = set; then
6763 withval="$with_smtp_host"
6765 if test "x$withval" != "xno" ; then
6775 # ------------------------------------
6776 # Where to place pid files
6777 # ------------------------------------
6780 # Check whether --with-pid-dir or --without-pid-dir was given.
6781 if test "${with_pid_dir+set}" = set; then
6782 withval="$with_pid_dir"
6784 if test "x$withval" != "xno" ; then
6791 cat >>confdefs.h <<_ACEOF
6792 #define _PATH_BACULA_PIDDIR "$piddir"
6798 # ------------------------------------
6799 # Where to place subsys "lock file"
6800 # ------------------------------------
6801 subsysdir=/var/run/subsys
6803 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6804 if test "${with_subsys_dir+set}" = set; then
6805 withval="$with_subsys_dir"
6807 if test "x$withval" != "xno" ; then
6818 # ------------------------------------
6819 # Where to start assigning ports
6820 # ------------------------------------
6823 # Check whether --with-baseport or --without-baseport was given.
6824 if test "${with_baseport+set}" = set; then
6825 withval="$with_baseport"
6827 if test "x$withval" != "xno" ; then
6835 dir_port=`expr $baseport`
6836 fd_port=`expr $baseport + 1`
6837 sd_port=`expr $fd_port + 1`
6844 # ------------------------------------------
6845 # Generate passwords
6846 # ------------------------------------------
6849 # Check whether --with-dir-password or --without-dir-password was given.
6850 if test "${with_dir_password+set}" = set; then
6851 withval="$with_dir_password"
6853 if test "x$withval" != "xno" ; then
6854 dir_password=$withval
6860 if test "x$dir_password" = "x" ; then
6861 if test "x$OPENSSL" = "xnone" ; then
6862 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6863 key=`autoconf/randpass 33`
6865 key=`openssl rand -base64 33`
6872 # Check whether --with-fd-password or --without-fd-password was given.
6873 if test "${with_fd_password+set}" = set; then
6874 withval="$with_fd_password"
6876 if test "x$withval" != "xno" ; then
6877 fd_password=$withval
6883 if test "x$fd_password" = "x" ; then
6884 if test "x$OPENSSL" = "xnone" ; then
6885 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6886 key=`autoconf/randpass 37`
6888 key=`openssl rand -base64 33`
6895 # Check whether --with-sd-password or --without-sd-password was given.
6896 if test "${with_sd_password+set}" = set; then
6897 withval="$with_sd_password"
6899 if test "x$withval" != "xno" ; then
6900 sd_password=$withval
6906 if test "x$sd_password" = "x" ; then
6907 if test "x$OPENSSL" = "xnone" ; then
6908 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6909 key=`autoconf/randpass 41`
6911 key=`openssl rand -base64 33`
6923 # Handle users and groups for each daemon
6927 # Check whether --with-dir_user or --without-dir_user was given.
6928 if test "${with_dir_user+set}" = set; then
6929 withval="$with_dir_user"
6931 if test "x$withval" != "x" ; then
6940 # Check whether --with-dir_group or --without-dir_group was given.
6941 if test "${with_dir_group+set}" = set; then
6942 withval="$with_dir_group"
6944 if test "x$withval" != "x" ; then
6953 # Check whether --with-sd_user or --without-sd_user was given.
6954 if test "${with_sd_user+set}" = set; then
6955 withval="$with_sd_user"
6957 if test "x$withval" != "x" ; then
6966 # Check whether --with-sd_group or --without-sd_group was given.
6967 if test "${with_sd_group+set}" = set; then
6968 withval="$with_sd_group"
6970 if test "x$withval" != "x" ; then
6979 # Check whether --with-fd_user or --without-fd_user was given.
6980 if test "${with_fd_user+set}" = set; then
6981 withval="$with_fd_user"
6983 if test "x$withval" != "x" ; then
6992 # Check whether --with-fd_group or --without-fd_group was given.
6993 if test "${with_fd_group+set}" = set; then
6994 withval="$with_fd_group"
6996 if test "x$withval" != "x" ; then
7013 # ------------------------------------------------
7014 # Bacula check for various SQL database engines
7015 # ------------------------------------------------
7018 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7019 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7021 # Check whether --with-postgresql or --without-postgresql was given.
7022 if test "${with_postgresql+set}" = set; then
7023 withval="$with_postgresql"
7025 if test "$withval" != "no"; then
7026 if test "$db_found" = "yes"; then
7027 echo "$as_me:$LINENO: result: error" >&5
7028 echo "${ECHO_T}error" >&6
7029 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7030 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7031 { (exit 1); exit 1; }; };
7033 if test "$withval" = "yes"; then
7034 if test -f /usr/local/include/libpq-fe.h; then
7035 POSTGRESQL_INCDIR=/usr/local/include
7036 POSTGRESQL_LIBDIR=/usr/local/lib
7037 POSTGRESQL_BINDIR=/usr/local/bin
7038 elif test -f /usr/include/libpq-fe.h; then
7039 POSTGRESQL_INCDIR=/usr/include
7040 POSTGRESQL_LIBDIR=/usr/lib
7041 POSTGRESQL_BINDIR=/usr/bin
7043 echo "$as_me:$LINENO: result: no" >&5
7044 echo "${ECHO_T}no" >&6
7045 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7046 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7047 { (exit 1); exit 1; }; }
7049 elif test -f $withval/libpq-fe.h; then
7050 POSTGRESQL_INCDIR=$withval
7051 POSTGRESQL_LIBDIR=$withval
7052 POSTGRESQL_BINDIR=$withval
7054 echo "$as_me:$LINENO: result: no" >&5
7055 echo "${ECHO_T}no" >&6
7056 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7057 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7058 { (exit 1); exit 1; }; }
7060 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7061 echo "$as_me:$LINENO: checking for crypt" >&5
7062 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7063 if test "${ac_cv_func_crypt+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 cat >conftest.$ac_ext <<_ACEOF
7067 #line $LINENO "configure"
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h. */
7073 /* System header to define __stub macros and hopefully few prototypes,
7074 which can conflict with char crypt (); below.
7075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7076 <limits.h> exists even on freestanding compilers. */
7078 # include <limits.h>
7080 # include <assert.h>
7082 /* Override any gcc2 internal prototype to avoid an error. */
7087 /* We use char because int might match the return type of a gcc2
7088 builtin and then its argument prototype would still apply. */
7090 /* The GNU C library defines this for functions which it implements
7091 to always fail with ENOSYS. Some functions are actually named
7092 something starting with __ and the normal name is an alias. */
7093 #if defined (__stub_crypt) || defined (__stub___crypt)
7096 char (*f) () = crypt;
7110 rm -f conftest.$ac_objext conftest$ac_exeext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7112 (eval $ac_link) 2>&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } &&
7116 { ac_try='test -s conftest$ac_exeext'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; }; then
7122 ac_cv_func_crypt=yes
7124 echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7131 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7132 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7133 if test $ac_cv_func_crypt = yes; then
7136 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7137 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7138 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 ac_check_lib_save_LIBS=$LIBS
7142 LIBS="-lcrypt $LIBS"
7143 cat >conftest.$ac_ext <<_ACEOF
7144 #line $LINENO "configure"
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7151 /* Override any gcc2 internal prototype to avoid an error. */
7155 /* We use char because int might match the return type of a gcc2
7156 builtin and then its argument prototype would still apply. */
7166 rm -f conftest.$ac_objext conftest$ac_exeext
7167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7168 (eval $ac_link) 2>&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } &&
7172 { ac_try='test -s conftest$ac_exeext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 ac_cv_lib_crypt_crypt=yes
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7183 ac_cv_lib_crypt_crypt=no
7185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7186 LIBS=$ac_check_lib_save_LIBS
7188 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7189 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7190 if test $ac_cv_lib_crypt_crypt = yes; then
7191 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7196 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7197 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7198 SQL_BINDIR=$POSTGRESQL_BINDIR
7199 cat >>confdefs.h <<\_ACEOF
7200 #define HAVE_POSTGRESQL 1
7203 echo "$as_me:$LINENO: result: yes" >&5
7204 echo "${ECHO_T}yes" >&6
7206 support_postgresql=yes
7210 echo "$as_me:$LINENO: result: no" >&5
7211 echo "${ECHO_T}no" >&6
7216 echo "$as_me:$LINENO: result: no" >&5
7217 echo "${ECHO_T}no" >&6
7228 echo "$as_me:$LINENO: checking for MySQL support" >&5
7229 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7231 # Check whether --with-mysql or --without-mysql was given.
7232 if test "${with_mysql+set}" = set; then
7233 withval="$with_mysql"
7235 if test "$withval" != "no"; then
7236 if test "$withval" = "yes"; then
7237 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7238 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7239 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7240 MYSQL_BINDIR=/usr/local/mysql/bin
7241 elif test -f /usr/include/mysql/mysql.h; then
7242 MYSQL_INCDIR=/usr/include/mysql
7243 MYSQL_LIBDIR=/usr/lib/mysql
7244 MYSQL_BINDIR=/usr/bin
7245 elif test -f /usr/include/mysql.h; then
7246 MYSQL_INCDIR=/usr/include
7247 MYSQL_LIBDIR=/usr/lib
7248 MYSQL_BINDIR=/usr/bin
7249 elif test -f /usr/local/include/mysql/mysql.h; then
7250 MYSQL_INCDIR=/usr/local/include/mysql
7251 MYSQL_LIBDIR=/usr/local/lib/mysql
7252 MYSQL_BINDIR=/usr/local/bin
7253 elif test -f /usr/local/include/mysql.h; then
7254 MYSQL_INCDIR=/usr/local/include
7255 MYSQL_LIBDIR=/usr/local/lib
7256 MYSQL_BINDIR=/usr/local/bin
7258 echo "$as_me:$LINENO: result: no" >&5
7259 echo "${ECHO_T}no" >&6
7260 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7261 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7262 { (exit 1); exit 1; }; }
7265 if test -f $withval/include/mysql/mysql.h; then
7266 MYSQL_INCDIR=$withval/include/mysql
7267 MYSQL_LIBDIR=$withval/lib/mysql
7268 MYSQL_BINDIR=$withval/bin
7269 elif test -f $withval/include/mysql.h; then
7270 MYSQL_INCDIR=$withval/include
7271 MYSQL_LIBDIR=$withval/lib
7272 MYSQL_BINDIR=$withval/bin
7274 echo "$as_me:$LINENO: result: no" >&5
7275 echo "${ECHO_T}no" >&6
7276 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7277 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7278 { (exit 1); exit 1; }; }
7281 SQL_INCLUDE=-I$MYSQL_INCDIR
7282 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7283 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7284 cat >>confdefs.h <<\_ACEOF
7285 #define HAVE_THREAD_SAFE_MYSQL 1
7289 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7291 SQL_BINDIR=$MYSQL_BINDIR
7293 cat >>confdefs.h <<\_ACEOF
7294 #define HAVE_MYSQL 1
7297 echo "$as_me:$LINENO: result: yes" >&5
7298 echo "${ECHO_T}yes" >&6
7305 echo "$as_me:$LINENO: result: no" >&5
7306 echo "${ECHO_T}no" >&6
7311 echo "$as_me:$LINENO: result: no" >&5
7312 echo "${ECHO_T}no" >&6
7317 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7318 if test "${with_embedded_mysql+set}" = set; then
7319 withval="$with_embedded_mysql"
7321 if test "$withval" != "no"; then
7322 if test "$withval" = "yes"; then
7323 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7324 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7325 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7326 MYSQL_BINDIR=/usr/local/mysql/bin
7327 elif test -f /usr/include/mysql/mysql.h; then
7328 MYSQL_INCDIR=/usr/include/mysql
7329 MYSQL_LIBDIR=/usr/lib/mysql
7330 MYSQL_BINDIR=/usr/bin
7331 elif test -f /usr/include/mysql.h; then
7332 MYSQL_INCDIR=/usr/include
7333 MYSQL_LIBDIR=/usr/lib
7334 MYSQL_BINDIR=/usr/bin
7335 elif test -f /usr/local/include/mysql/mysql.h; then
7336 MYSQL_INCDIR=/usr/local/include/mysql
7337 MYSQL_LIBDIR=/usr/local/lib/mysql
7338 MYSQL_BINDIR=/usr/local/bin
7339 elif test -f /usr/local/include/mysql.h; then
7340 MYSQL_INCDIR=/usr/local/include
7341 MYSQL_LIBDIR=/usr/local/lib
7342 MYSQL_BINDIR=/usr/local/bin
7344 echo "$as_me:$LINENO: result: no" >&5
7345 echo "${ECHO_T}no" >&6
7346 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7347 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7348 { (exit 1); exit 1; }; }
7351 if test -f $withval/include/mysql/mysql.h; then
7352 MYSQL_INCDIR=$withval/include/mysql
7353 MYSQL_LIBDIR=$withval/lib/mysql
7354 MYSQL_BINDIR=$withval/bin
7355 elif test -f $withval/include/mysql.h; then
7356 MYSQL_INCDIR=$withval/include
7357 MYSQL_LIBDIR=$withval/lib
7358 MYSQL_BINDIR=$withval/bin
7360 echo "$as_me:$LINENO: result: no" >&5
7361 echo "${ECHO_T}no" >&6
7362 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7363 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7364 { (exit 1); exit 1; }; }
7367 SQL_INCLUDE=-I$MYSQL_INCDIR
7368 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7369 SQL_BINDIR=$MYSQL_BINDIR
7371 cat >>confdefs.h <<\_ACEOF
7372 #define HAVE_MYSQL 1
7375 cat >>confdefs.h <<\_ACEOF
7376 #define HAVE_EMBEDDED_MYSQL 1
7379 echo "$as_me:$LINENO: result: yes" >&5
7380 echo "${ECHO_T}yes" >&6
7387 echo "$as_me:$LINENO: result: no" >&5
7388 echo "${ECHO_T}no" >&6
7393 echo "$as_me:$LINENO: result: no" >&5
7394 echo "${ECHO_T}no" >&6
7407 echo "$as_me:$LINENO: checking for SQLite support" >&5
7408 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7410 # Check whether --with-sqlite or --without-sqlite was given.
7411 if test "${with_sqlite+set}" = set; then
7412 withval="$with_sqlite"
7414 if test "$withval" != "no"; then
7415 if test "$withval" = "yes"; then
7416 if test -f /usr/local/include/sqlite.h; then
7417 SQLITE_INCDIR=/usr/local/include
7418 SQLITE_LIBDIR=/usr/local/lib
7419 SQLITE_BINDIR=/usr/local/bin
7420 elif test -f /usr/include/sqlite.h; then
7421 SQLITE_INCDIR=/usr/include
7422 SQLITE_LIBDIR=/usr/lib
7423 SQLITE_BINDIR=/usr/bin
7425 echo "$as_me:$LINENO: result: no" >&5
7426 echo "${ECHO_T}no" >&6
7427 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7428 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7429 { (exit 1); exit 1; }; }
7432 if test -f $withval/sqlite.h; then
7433 SQLITE_INCDIR=$withval
7434 SQLITE_LIBDIR=$withval
7435 SQLITE_BINDIR=$withval
7437 echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6
7439 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7440 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7441 { (exit 1); exit 1; }; }
7444 SQL_INCLUDE=-I$SQLITE_INCDIR
7445 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7446 SQL_BINDIR=$SQLITE_BINDIR
7448 cat >>confdefs.h <<\_ACEOF
7449 #define HAVE_SQLITE 1
7452 echo "$as_me:$LINENO: result: yes" >&5
7453 echo "${ECHO_T}yes" >&6
7460 echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6
7466 echo "$as_me:$LINENO: result: no" >&5
7467 echo "${ECHO_T}no" >&6
7479 cat >>confdefs.h <<\_ACEOF
7480 #define PROTOTYPES 1
7484 if test -z "$CFLAGS"; then
7485 if test -z "$CCOPTS"; then
7494 largefile_support="no"
7496 # Check whether --enable-largefile or --disable-largefile was given.
7497 if test "${enable_largefile+set}" = set; then
7498 enableval="$enable_largefile"
7501 if test "$enable_largefile" != no; then
7502 if test -n "$ac_tool_prefix"; then
7503 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7504 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7505 echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7507 if test "${ac_cv_prog_GETCONF+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 if test -n "$GETCONF"; then
7511 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7520 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 GETCONF=$ac_cv_prog_GETCONF
7530 if test -n "$GETCONF"; then
7531 echo "$as_me:$LINENO: result: $GETCONF" >&5
7532 echo "${ECHO_T}$GETCONF" >&6
7534 echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6
7539 if test -z "$ac_cv_prog_GETCONF"; then
7540 ac_ct_GETCONF=$GETCONF
7541 # Extract the first word of "getconf", so it can be a program name with args.
7542 set dummy getconf; ac_word=$2
7543 echo "$as_me:$LINENO: checking for $ac_word" >&5
7544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7545 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 if test -n "$ac_ct_GETCONF"; then
7549 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558 ac_cv_prog_ac_ct_GETCONF="getconf"
7559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7567 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7568 if test -n "$ac_ct_GETCONF"; then
7569 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7570 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7572 echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6
7576 GETCONF=$ac_ct_GETCONF
7578 GETCONF="$ac_cv_prog_GETCONF"
7581 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7582 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7583 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7587 ac_cv_sys_largefile_CFLAGS=no
7589 # IRIX 6.2 and later require cc -n32.
7590 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7591 if test "$GCC" != yes; then
7592 ac_cv_sys_largefile_CFLAGS=-n32
7595 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7596 cat >conftest.$ac_ext <<_ACEOF
7597 #line $LINENO "configure"
7600 cat confdefs.h >>conftest.$ac_ext
7601 cat >>conftest.$ac_ext <<_ACEOF
7602 /* end confdefs.h. */
7612 rm -f conftest.$ac_objext conftest$ac_exeext
7613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7614 (eval $ac_link) 2>&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
7618 { ac_try='test -s conftest$ac_exeext'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; }; then
7626 echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7629 ac_cv_sys_largefile_CFLAGS=no
7631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7636 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7637 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7638 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7639 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7640 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7643 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7644 ac_cv_sys_largefile_LDFLAGS=no
7648 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7649 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7650 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7651 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7652 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7656 ac_cv_sys_largefile_LIBS=no
7660 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7661 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7663 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7666 -D_FILE_OFFSET_BITS=*) ;;
7667 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7668 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7674 '') CPPFLAGS="$ac_flag" ;;
7675 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7683 '') CFLAGS="$ac_flag" ;;
7684 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7689 case "$ac_cv_sys_largefile_LDFLAGS" in
7693 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7694 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7697 case "$ac_cv_sys_largefile_LIBS" in
7701 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7702 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7705 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7706 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7707 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 ac_cv_sys_file_offset_bits=no
7712 # HP-UX 10.20 and later
7713 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7714 ac_cv_sys_file_offset_bits=64 ;;
7716 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7718 -D_FILE_OFFSET_BITS)
7719 ac_cv_sys_file_offset_bits=1 ;;
7720 -D_FILE_OFFSET_BITS=*)
7721 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7726 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7727 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7728 if test "$ac_cv_sys_file_offset_bits" != no; then
7730 cat >>confdefs.h <<_ACEOF
7731 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7735 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7736 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7737 if test "${ac_cv_sys_largefile_source+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 ac_cv_sys_largefile_source=no
7742 # HP-UX 10.20 and later
7743 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7744 ac_cv_sys_largefile_source=1 ;;
7746 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7748 -D_LARGEFILE_SOURCE)
7749 ac_cv_sys_largefile_source=1 ;;
7750 -D_LARGEFILE_SOURCE=*)
7751 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7756 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7757 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7758 if test "$ac_cv_sys_largefile_source" != no; then
7760 cat >>confdefs.h <<_ACEOF
7761 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7765 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7766 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7767 if test "${ac_cv_sys_large_files+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 ac_cv_sys_large_files=no
7773 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7774 ac_cv_sys_large_files=1 ;;
7776 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7779 ac_cv_sys_large_files=1 ;;
7781 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7786 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7787 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7788 if test "$ac_cv_sys_large_files" != no; then
7790 cat >>confdefs.h <<_ACEOF
7791 #define _LARGE_FILES $ac_cv_sys_large_files
7799 echo "$as_me:$LINENO: checking for X" >&5
7800 echo $ECHO_N "checking for X... $ECHO_C" >&6
7803 # Check whether --with-x or --without-x was given.
7804 if test "${with_x+set}" = set; then
7808 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7809 if test "x$with_x" = xno; then
7810 # The user explicitly disabled X.
7813 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7814 # Both variables are already set.
7817 if test "${ac_cv_have_x+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 # One or both of the vars are not set, and there is no cached value.
7821 ac_x_includes=no ac_x_libraries=no
7823 if mkdir conftest.dir; then
7825 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7826 cat >Imakefile <<'_ACEOF'
7828 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7830 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7831 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7832 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7833 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7834 for ac_extension in a so sl; do
7835 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7836 test -f $ac_im_libdir/libX11.$ac_extension; then
7837 ac_im_usrlibdir=$ac_im_libdir; break
7840 # Screen out bogus values from the imake configuration. They are
7841 # bogus both because they are the default anyway, and because
7842 # using them would break gcc on systems where it needs fixed includes.
7843 case $ac_im_incroot in
7845 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7847 case $ac_im_usrlibdir in
7849 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7856 # Standard set of common directories for X headers.
7857 # Check X11 before X11Rn because it is often a symlink to the current release.
7869 /usr/local/X11/include
7870 /usr/local/X11R6/include
7871 /usr/local/X11R5/include
7872 /usr/local/X11R4/include
7874 /usr/local/include/X11
7875 /usr/local/include/X11R6
7876 /usr/local/include/X11R5
7877 /usr/local/include/X11R4
7881 /usr/XFree86/include/X11
7885 /usr/unsupported/include
7887 /usr/local/x11r5/include
7888 /usr/lpp/Xamples/include
7890 /usr/openwin/include
7891 /usr/openwin/share/include'
7893 if test "$ac_x_includes" = no; then
7894 # Guess where to find include files, by looking for Intrinsic.h.
7895 # First, try using that file with no special directory specified.
7896 cat >conftest.$ac_ext <<_ACEOF
7897 #line $LINENO "configure"
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 #include <X11/Intrinsic.h>
7905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7908 grep -v '^ *+' conftest.er1 >conftest.err
7910 cat conftest.err >&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } >/dev/null; then
7913 if test -s conftest.err; then
7914 ac_cpp_err=$ac_c_preproc_warn_flag
7921 if test -z "$ac_cpp_err"; then
7922 # We can compile using X headers with no special include directory.
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7928 for ac_dir in $ac_x_header_dirs; do
7929 if test -r "$ac_dir/X11/Intrinsic.h"; then
7930 ac_x_includes=$ac_dir
7935 rm -f conftest.err conftest.$ac_ext
7936 fi # $ac_x_includes = no
7938 if test "$ac_x_libraries" = no; then
7939 # Check for the libraries.
7940 # See if we find them without any special options.
7941 # Don't add to $LIBS permanently.
7944 cat >conftest.$ac_ext <<_ACEOF
7945 #line $LINENO "configure"
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7951 #include <X11/Intrinsic.h>
7960 rm -f conftest.$ac_objext conftest$ac_exeext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7962 (eval $ac_link) 2>&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } &&
7966 { ac_try='test -s conftest$ac_exeext'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; }; then
7973 # We can link X programs with no special library path.
7976 echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7980 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7982 # Don't even attempt the hair of trying to link an X program!
7983 for ac_extension in a so sl; do
7984 if test -r $ac_dir/libXt.$ac_extension; then
7985 ac_x_libraries=$ac_dir
7991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7992 fi # $ac_x_libraries = no
7994 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7995 # Didn't find X anywhere. Cache the known absence of X.
7996 ac_cv_have_x="have_x=no"
7998 # Record where we found X for the cache.
7999 ac_cv_have_x="have_x=yes \
8000 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8005 eval "$ac_cv_have_x"
8008 if test "$have_x" != yes; then
8009 echo "$as_me:$LINENO: result: $have_x" >&5
8010 echo "${ECHO_T}$have_x" >&6
8013 # If each of the values was on the command line, it overrides each guess.
8014 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8015 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8016 # Update the cache value to reflect the command line values.
8017 ac_cv_have_x="have_x=yes \
8018 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8019 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8020 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8023 if test "$no_x" = yes; then
8024 # Not all programs may use this symbol, but it does not hurt to define it.
8026 cat >>confdefs.h <<\_ACEOF
8027 #define X_DISPLAY_MISSING 1
8030 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8032 if test -n "$x_includes"; then
8033 X_CFLAGS="$X_CFLAGS -I$x_includes"
8036 # It would also be nice to do this for all -L options, not just this one.
8037 if test -n "$x_libraries"; then
8038 X_LIBS="$X_LIBS -L$x_libraries"
8039 # For Solaris; some versions of Sun CC require a space after -R and
8040 # others require no space. Words are not sufficient . . . .
8041 case `(uname -sr) 2>/dev/null` in
8043 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8044 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8045 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8046 cat >conftest.$ac_ext <<_ACEOF
8047 #line $LINENO "configure"
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8062 rm -f conftest.$ac_objext conftest$ac_exeext
8063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8064 (eval $ac_link) 2>&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } &&
8068 { ac_try='test -s conftest$ac_exeext'
8069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; }; then
8076 echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8082 if test $ac_R_nospace = yes; then
8083 echo "$as_me:$LINENO: result: no" >&5
8084 echo "${ECHO_T}no" >&6
8085 X_LIBS="$X_LIBS -R$x_libraries"
8087 LIBS="$ac_xsave_LIBS -R $x_libraries"
8088 cat >conftest.$ac_ext <<_ACEOF
8089 #line $LINENO "configure"
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8104 rm -f conftest.$ac_objext conftest$ac_exeext
8105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8106 (eval $ac_link) 2>&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } &&
8110 { ac_try='test -s conftest$ac_exeext'
8111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; }; then
8118 echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8124 if test $ac_R_space = yes; then
8125 echo "$as_me:$LINENO: result: yes" >&5
8126 echo "${ECHO_T}yes" >&6
8127 X_LIBS="$X_LIBS -R $x_libraries"
8129 echo "$as_me:$LINENO: result: neither works" >&5
8130 echo "${ECHO_T}neither works" >&6
8137 # Check for system-dependent libraries X programs must link with.
8138 # Do this before checking for the system-independent R6 libraries
8139 # (-lICE), since we may need -lsocket or whatever for X linking.
8141 if test "$ISC" = yes; then
8142 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8144 # Martyn Johnson says this is needed for Ultrix, if the X
8145 # libraries were built with DECnet support. And Karl Berry says
8146 # the Alpha needs dnet_stub (dnet does not exist).
8147 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8148 cat >conftest.$ac_ext <<_ACEOF
8149 #line $LINENO "configure"
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h. */
8156 /* Override any gcc2 internal prototype to avoid an error. */
8160 /* We use char because int might match the return type of a gcc2
8161 builtin and then its argument prototype would still apply. */
8162 char XOpenDisplay ();
8171 rm -f conftest.$ac_objext conftest$ac_exeext
8172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8173 (eval $ac_link) 2>&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } &&
8177 { ac_try='test -s conftest$ac_exeext'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; }; then
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8188 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8189 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8190 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 ac_check_lib_save_LIBS=$LIBS
8195 cat >conftest.$ac_ext <<_ACEOF
8196 #line $LINENO "configure"
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8203 /* Override any gcc2 internal prototype to avoid an error. */
8207 /* We use char because int might match the return type of a gcc2
8208 builtin and then its argument prototype would still apply. */
8218 rm -f conftest.$ac_objext conftest$ac_exeext
8219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8220 (eval $ac_link) 2>&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
8224 { ac_try='test -s conftest$ac_exeext'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8230 ac_cv_lib_dnet_dnet_ntoa=yes
8232 echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8235 ac_cv_lib_dnet_dnet_ntoa=no
8237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8238 LIBS=$ac_check_lib_save_LIBS
8240 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8241 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8242 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8243 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8246 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8247 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8248 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8249 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 ac_check_lib_save_LIBS=$LIBS
8253 LIBS="-ldnet_stub $LIBS"
8254 cat >conftest.$ac_ext <<_ACEOF
8255 #line $LINENO "configure"
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h. */
8262 /* Override any gcc2 internal prototype to avoid an error. */
8266 /* We use char because int might match the return type of a gcc2
8267 builtin and then its argument prototype would still apply. */
8277 rm -f conftest.$ac_objext conftest$ac_exeext
8278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8279 (eval $ac_link) 2>&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } &&
8283 { ac_try='test -s conftest$ac_exeext'
8284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; }; then
8289 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8294 ac_cv_lib_dnet_stub_dnet_ntoa=no
8296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8297 LIBS=$ac_check_lib_save_LIBS
8299 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8300 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8301 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8302 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8308 LIBS="$ac_xsave_LIBS"
8310 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8311 # to get the SysV transport functions.
8312 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8314 # The nsl library prevents programs from opening the X display
8315 # on Irix 5.2, according to T.E. Dickey.
8316 # The functions gethostbyname, getservbyname, and inet_addr are
8317 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8318 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8319 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8320 if test "${ac_cv_func_gethostbyname+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 cat >conftest.$ac_ext <<_ACEOF
8324 #line $LINENO "configure"
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h. */
8330 /* System header to define __stub macros and hopefully few prototypes,
8331 which can conflict with char gethostbyname (); below.
8332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8333 <limits.h> exists even on freestanding compilers. */
8335 # include <limits.h>
8337 # include <assert.h>
8339 /* Override any gcc2 internal prototype to avoid an error. */
8344 /* We use char because int might match the return type of a gcc2
8345 builtin and then its argument prototype would still apply. */
8346 char gethostbyname ();
8347 /* The GNU C library defines this for functions which it implements
8348 to always fail with ENOSYS. Some functions are actually named
8349 something starting with __ and the normal name is an alias. */
8350 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8353 char (*f) () = gethostbyname;
8362 return f != gethostbyname;
8367 rm -f conftest.$ac_objext conftest$ac_exeext
8368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369 (eval $ac_link) 2>&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } &&
8373 { ac_try='test -s conftest$ac_exeext'
8374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; }; then
8379 ac_cv_func_gethostbyname=yes
8381 echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8384 ac_cv_func_gethostbyname=no
8386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8388 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8389 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8391 if test $ac_cv_func_gethostbyname = no; then
8392 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8393 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8394 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 ac_check_lib_save_LIBS=$LIBS
8399 cat >conftest.$ac_ext <<_ACEOF
8400 #line $LINENO "configure"
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8407 /* Override any gcc2 internal prototype to avoid an error. */
8411 /* We use char because int might match the return type of a gcc2
8412 builtin and then its argument prototype would still apply. */
8413 char gethostbyname ();
8422 rm -f conftest.$ac_objext conftest$ac_exeext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8424 (eval $ac_link) 2>&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } &&
8428 { ac_try='test -s conftest$ac_exeext'
8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8434 ac_cv_lib_nsl_gethostbyname=yes
8436 echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.$ac_ext >&5
8439 ac_cv_lib_nsl_gethostbyname=no
8441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8442 LIBS=$ac_check_lib_save_LIBS
8444 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8445 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8446 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8447 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8450 if test $ac_cv_lib_nsl_gethostbyname = no; then
8451 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8452 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8453 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8456 ac_check_lib_save_LIBS=$LIBS
8458 cat >conftest.$ac_ext <<_ACEOF
8459 #line $LINENO "configure"
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h. */
8466 /* Override any gcc2 internal prototype to avoid an error. */
8470 /* We use char because int might match the return type of a gcc2
8471 builtin and then its argument prototype would still apply. */
8472 char gethostbyname ();
8481 rm -f conftest.$ac_objext conftest$ac_exeext
8482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8483 (eval $ac_link) 2>&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } &&
8487 { ac_try='test -s conftest$ac_exeext'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; }; then
8493 ac_cv_lib_bsd_gethostbyname=yes
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8498 ac_cv_lib_bsd_gethostbyname=no
8500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8501 LIBS=$ac_check_lib_save_LIBS
8503 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8504 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8505 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8506 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8512 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8513 # socket/setsockopt and other routines are undefined under SCO ODT
8514 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8515 # on later versions), says Simon Leinen: it contains gethostby*
8516 # variants that don't use the name server (or something). -lsocket
8517 # must be given before -lnsl if both are needed. We assume that
8518 # if connect needs -lnsl, so does gethostbyname.
8519 echo "$as_me:$LINENO: checking for connect" >&5
8520 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8521 if test "${ac_cv_func_connect+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 cat >conftest.$ac_ext <<_ACEOF
8525 #line $LINENO "configure"
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8531 /* System header to define __stub macros and hopefully few prototypes,
8532 which can conflict with char connect (); below.
8533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8534 <limits.h> exists even on freestanding compilers. */
8536 # include <limits.h>
8538 # include <assert.h>
8540 /* Override any gcc2 internal prototype to avoid an error. */
8545 /* We use char because int might match the return type of a gcc2
8546 builtin and then its argument prototype would still apply. */
8548 /* The GNU C library defines this for functions which it implements
8549 to always fail with ENOSYS. Some functions are actually named
8550 something starting with __ and the normal name is an alias. */
8551 #if defined (__stub_connect) || defined (__stub___connect)
8554 char (*f) () = connect;
8563 return f != connect;
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8570 (eval $ac_link) 2>&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } &&
8574 { ac_try='test -s conftest$ac_exeext'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 ac_cv_func_connect=yes
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 ac_cv_func_connect=no
8587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8589 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8590 echo "${ECHO_T}$ac_cv_func_connect" >&6
8592 if test $ac_cv_func_connect = no; then
8593 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8594 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8595 if test "${ac_cv_lib_socket_connect+set}" = set; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
8598 ac_check_lib_save_LIBS=$LIBS
8599 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8600 cat >conftest.$ac_ext <<_ACEOF
8601 #line $LINENO "configure"
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8608 /* Override any gcc2 internal prototype to avoid an error. */
8612 /* We use char because int might match the return type of a gcc2
8613 builtin and then its argument prototype would still apply. */
8623 rm -f conftest.$ac_objext conftest$ac_exeext
8624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8625 (eval $ac_link) 2>&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } &&
8629 { ac_try='test -s conftest$ac_exeext'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
8635 ac_cv_lib_socket_connect=yes
8637 echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8640 ac_cv_lib_socket_connect=no
8642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8643 LIBS=$ac_check_lib_save_LIBS
8645 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8646 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8647 if test $ac_cv_lib_socket_connect = yes; then
8648 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8653 # Guillermo Gomez says -lposix is necessary on A/UX.
8654 echo "$as_me:$LINENO: checking for remove" >&5
8655 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8656 if test "${ac_cv_func_remove+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 cat >conftest.$ac_ext <<_ACEOF
8660 #line $LINENO "configure"
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8666 /* System header to define __stub macros and hopefully few prototypes,
8667 which can conflict with char remove (); below.
8668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8669 <limits.h> exists even on freestanding compilers. */
8671 # include <limits.h>
8673 # include <assert.h>
8675 /* Override any gcc2 internal prototype to avoid an error. */
8680 /* We use char because int might match the return type of a gcc2
8681 builtin and then its argument prototype would still apply. */
8683 /* The GNU C library defines this for functions which it implements
8684 to always fail with ENOSYS. Some functions are actually named
8685 something starting with __ and the normal name is an alias. */
8686 #if defined (__stub_remove) || defined (__stub___remove)
8689 char (*f) () = remove;
8703 rm -f conftest.$ac_objext conftest$ac_exeext
8704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8705 (eval $ac_link) 2>&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } &&
8709 { ac_try='test -s conftest$ac_exeext'
8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; }; then
8715 ac_cv_func_remove=yes
8717 echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8720 ac_cv_func_remove=no
8722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8724 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8725 echo "${ECHO_T}$ac_cv_func_remove" >&6
8727 if test $ac_cv_func_remove = no; then
8728 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8729 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8730 if test "${ac_cv_lib_posix_remove+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 ac_check_lib_save_LIBS=$LIBS
8734 LIBS="-lposix $LIBS"
8735 cat >conftest.$ac_ext <<_ACEOF
8736 #line $LINENO "configure"
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8743 /* Override any gcc2 internal prototype to avoid an error. */
8747 /* We use char because int might match the return type of a gcc2
8748 builtin and then its argument prototype would still apply. */
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8760 (eval $ac_link) 2>&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } &&
8764 { ac_try='test -s conftest$ac_exeext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 ac_cv_lib_posix_remove=yes
8772 echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8775 ac_cv_lib_posix_remove=no
8777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8778 LIBS=$ac_check_lib_save_LIBS
8780 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8781 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8782 if test $ac_cv_lib_posix_remove = yes; then
8783 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8788 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8789 echo "$as_me:$LINENO: checking for shmat" >&5
8790 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8791 if test "${ac_cv_func_shmat+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8794 cat >conftest.$ac_ext <<_ACEOF
8795 #line $LINENO "configure"
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8801 /* System header to define __stub macros and hopefully few prototypes,
8802 which can conflict with char shmat (); below.
8803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8804 <limits.h> exists even on freestanding compilers. */
8806 # include <limits.h>
8808 # include <assert.h>
8810 /* Override any gcc2 internal prototype to avoid an error. */
8815 /* We use char because int might match the return type of a gcc2
8816 builtin and then its argument prototype would still apply. */
8818 /* The GNU C library defines this for functions which it implements
8819 to always fail with ENOSYS. Some functions are actually named
8820 something starting with __ and the normal name is an alias. */
8821 #if defined (__stub_shmat) || defined (__stub___shmat)
8824 char (*f) () = shmat;
8838 rm -f conftest.$ac_objext conftest$ac_exeext
8839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8840 (eval $ac_link) 2>&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } &&
8844 { ac_try='test -s conftest$ac_exeext'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
8850 ac_cv_func_shmat=yes
8852 echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.$ac_ext >&5
8857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8859 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8860 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8862 if test $ac_cv_func_shmat = no; then
8863 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8864 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8865 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8868 ac_check_lib_save_LIBS=$LIBS
8870 cat >conftest.$ac_ext <<_ACEOF
8871 #line $LINENO "configure"
8874 cat confdefs.h >>conftest.$ac_ext
8875 cat >>conftest.$ac_ext <<_ACEOF
8876 /* end confdefs.h. */
8878 /* Override any gcc2 internal prototype to avoid an error. */
8882 /* We use char because int might match the return type of a gcc2
8883 builtin and then its argument prototype would still apply. */
8893 rm -f conftest.$ac_objext conftest$ac_exeext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8895 (eval $ac_link) 2>&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } &&
8899 { ac_try='test -s conftest$ac_exeext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 ac_cv_lib_ipc_shmat=yes
8907 echo "$as_me: failed program was:" >&5
8908 sed 's/^/| /' conftest.$ac_ext >&5
8910 ac_cv_lib_ipc_shmat=no
8912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8913 LIBS=$ac_check_lib_save_LIBS
8915 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8916 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8917 if test $ac_cv_lib_ipc_shmat = yes; then
8918 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8924 # Check for libraries that X11R6 Xt/Xaw programs need.
8925 ac_save_LDFLAGS=$LDFLAGS
8926 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8927 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8928 # check for ICE first), but we must link in the order -lSM -lICE or
8929 # we get undefined symbols. So assume we have SM if we have ICE.
8930 # These have to be linked with before -lX11, unlike the other
8931 # libraries we check for below, so use a different variable.
8932 # John Interrante, Karl Berry
8933 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8934 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8935 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 ac_check_lib_save_LIBS=$LIBS
8939 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8940 cat >conftest.$ac_ext <<_ACEOF
8941 #line $LINENO "configure"
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8948 /* Override any gcc2 internal prototype to avoid an error. */
8952 /* We use char because int might match the return type of a gcc2
8953 builtin and then its argument prototype would still apply. */
8954 char IceConnectionNumber ();
8958 IceConnectionNumber ();
8963 rm -f conftest.$ac_objext conftest$ac_exeext
8964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8965 (eval $ac_link) 2>&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -s conftest$ac_exeext'
8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; }; then
8975 ac_cv_lib_ICE_IceConnectionNumber=yes
8977 echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.$ac_ext >&5
8980 ac_cv_lib_ICE_IceConnectionNumber=no
8982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8983 LIBS=$ac_check_lib_save_LIBS
8985 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8986 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8987 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8988 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8991 LDFLAGS=$ac_save_LDFLAGS
9043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9045 echo "$as_me:$LINENO: checking for $ac_header" >&5
9046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9053 # Is the header compilable?
9054 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9056 cat >conftest.$ac_ext <<_ACEOF
9057 #line $LINENO "configure"
9060 cat confdefs.h >>conftest.$ac_ext
9061 cat >>conftest.$ac_ext <<_ACEOF
9062 /* end confdefs.h. */
9063 $ac_includes_default
9064 #include <$ac_header>
9066 rm -f conftest.$ac_objext
9067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9068 (eval $ac_compile) 2>&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } &&
9072 { ac_try='test -s conftest.$ac_objext'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; }; then
9078 ac_header_compiler=yes
9080 echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9083 ac_header_compiler=no
9085 rm -f conftest.$ac_objext conftest.$ac_ext
9086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9087 echo "${ECHO_T}$ac_header_compiler" >&6
9089 # Is the header present?
9090 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9092 cat >conftest.$ac_ext <<_ACEOF
9093 #line $LINENO "configure"
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 #include <$ac_header>
9101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9104 grep -v '^ *+' conftest.er1 >conftest.err
9106 cat conftest.err >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); } >/dev/null; then
9109 if test -s conftest.err; then
9110 ac_cpp_err=$ac_c_preproc_warn_flag
9117 if test -z "$ac_cpp_err"; then
9118 ac_header_preproc=yes
9120 echo "$as_me: failed program was:" >&5
9121 sed 's/^/| /' conftest.$ac_ext >&5
9123 ac_header_preproc=no
9125 rm -f conftest.err conftest.$ac_ext
9126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9127 echo "${ECHO_T}$ac_header_preproc" >&6
9129 # So? What about this header?
9130 case $ac_header_compiler:$ac_header_preproc in
9132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9138 ## ------------------------------------ ##
9139 ## Report this to bug-autoconf@gnu.org. ##
9140 ## ------------------------------------ ##
9143 sed "s/^/$as_me: WARNING: /" >&2
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9154 ## ------------------------------------ ##
9155 ## Report this to bug-autoconf@gnu.org. ##
9156 ## ------------------------------------ ##
9159 sed "s/^/$as_me: WARNING: /" >&2
9162 echo "$as_me:$LINENO: checking for $ac_header" >&5
9163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9167 eval "$as_ac_Header=$ac_header_preproc"
9169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9174 cat >>confdefs.h <<_ACEOF
9175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9182 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9183 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9184 if test "${ac_cv_header_stdc+set}" = set; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9187 cat >conftest.$ac_ext <<_ACEOF
9188 #line $LINENO "configure"
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h. */
9207 rm -f conftest.$ac_objext
9208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9209 (eval $ac_compile) 2>&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); } &&
9213 { ac_try='test -s conftest.$ac_objext'
9214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; }; then
9219 ac_cv_header_stdc=yes
9221 echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9224 ac_cv_header_stdc=no
9226 rm -f conftest.$ac_objext conftest.$ac_ext
9228 if test $ac_cv_header_stdc = yes; then
9229 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9230 cat >conftest.$ac_ext <<_ACEOF
9231 #line $LINENO "configure"
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9241 $EGREP "memchr" >/dev/null 2>&1; then
9244 ac_cv_header_stdc=no
9250 if test $ac_cv_header_stdc = yes; then
9251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9252 cat >conftest.$ac_ext <<_ACEOF
9253 #line $LINENO "configure"
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h. */
9262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9263 $EGREP "free" >/dev/null 2>&1; then
9266 ac_cv_header_stdc=no
9272 if test $ac_cv_header_stdc = yes; then
9273 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9274 if test "$cross_compiling" = yes; then
9277 cat >conftest.$ac_ext <<_ACEOF
9278 #line $LINENO "configure"
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9285 #if ((' ' & 0x0FF) == 0x020)
9286 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9287 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9289 # define ISLOWER(c) \
9290 (('a' <= (c) && (c) <= 'i') \
9291 || ('j' <= (c) && (c) <= 'r') \
9292 || ('s' <= (c) && (c) <= 'z'))
9293 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9296 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9301 for (i = 0; i < 256; i++)
9302 if (XOR (islower (i), ISLOWER (i))
9303 || toupper (i) != TOUPPER (i))
9308 rm -f conftest$ac_exeext
9309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9310 (eval $ac_link) 2>&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; }; then
9321 echo "$as_me: program exited with status $ac_status" >&5
9322 echo "$as_me: failed program was:" >&5
9323 sed 's/^/| /' conftest.$ac_ext >&5
9326 ac_cv_header_stdc=no
9328 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9332 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9333 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9334 if test $ac_cv_header_stdc = yes; then
9336 cat >>confdefs.h <<\_ACEOF
9337 #define STDC_HEADERS 1
9342 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9343 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9344 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 cat >conftest.$ac_ext <<_ACEOF
9348 #line $LINENO "configure"
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9354 #include <sys/types.h>
9358 return makedev(0, 0);
9363 rm -f conftest.$ac_objext conftest$ac_exeext
9364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9365 (eval $ac_link) 2>&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); } &&
9369 { ac_try='test -s conftest$ac_exeext'
9370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; }; then
9375 ac_cv_header_sys_types_h_makedev=yes
9377 echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9380 ac_cv_header_sys_types_h_makedev=no
9382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9385 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9386 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9388 if test $ac_cv_header_sys_types_h_makedev = no; then
9389 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9390 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9391 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9392 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9395 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9396 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9398 # Is the header compilable?
9399 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9400 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9401 cat >conftest.$ac_ext <<_ACEOF
9402 #line $LINENO "configure"
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9408 $ac_includes_default
9409 #include <sys/mkdev.h>
9411 rm -f conftest.$ac_objext
9412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9413 (eval $ac_compile) 2>&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } &&
9417 { ac_try='test -s conftest.$ac_objext'
9418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; }; then
9423 ac_header_compiler=yes
9425 echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9428 ac_header_compiler=no
9430 rm -f conftest.$ac_objext conftest.$ac_ext
9431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9432 echo "${ECHO_T}$ac_header_compiler" >&6
9434 # Is the header present?
9435 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9436 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9437 cat >conftest.$ac_ext <<_ACEOF
9438 #line $LINENO "configure"
9441 cat confdefs.h >>conftest.$ac_ext
9442 cat >>conftest.$ac_ext <<_ACEOF
9443 /* end confdefs.h. */
9444 #include <sys/mkdev.h>
9446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9449 grep -v '^ *+' conftest.er1 >conftest.err
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } >/dev/null; then
9454 if test -s conftest.err; then
9455 ac_cpp_err=$ac_c_preproc_warn_flag
9462 if test -z "$ac_cpp_err"; then
9463 ac_header_preproc=yes
9465 echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9468 ac_header_preproc=no
9470 rm -f conftest.err conftest.$ac_ext
9471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9472 echo "${ECHO_T}$ac_header_preproc" >&6
9474 # So? What about this header?
9475 case $ac_header_compiler:$ac_header_preproc in
9477 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9478 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9479 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9480 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9483 ## ------------------------------------ ##
9484 ## Report this to bug-autoconf@gnu.org. ##
9485 ## ------------------------------------ ##
9488 sed "s/^/$as_me: WARNING: /" >&2
9491 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9492 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9493 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9494 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9495 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9496 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9499 ## ------------------------------------ ##
9500 ## Report this to bug-autoconf@gnu.org. ##
9501 ## ------------------------------------ ##
9504 sed "s/^/$as_me: WARNING: /" >&2
9507 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9508 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9509 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9510 echo $ECHO_N "(cached) $ECHO_C" >&6
9512 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9514 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9515 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9518 if test $ac_cv_header_sys_mkdev_h = yes; then
9520 cat >>confdefs.h <<\_ACEOF
9521 #define MAJOR_IN_MKDEV 1
9528 if test $ac_cv_header_sys_mkdev_h = no; then
9529 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9530 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9531 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9532 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9535 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9536 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9538 # Is the header compilable?
9539 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9540 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9541 cat >conftest.$ac_ext <<_ACEOF
9542 #line $LINENO "configure"
9545 cat confdefs.h >>conftest.$ac_ext
9546 cat >>conftest.$ac_ext <<_ACEOF
9547 /* end confdefs.h. */
9548 $ac_includes_default
9549 #include <sys/sysmacros.h>
9551 rm -f conftest.$ac_objext
9552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9553 (eval $ac_compile) 2>&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } &&
9557 { ac_try='test -s conftest.$ac_objext'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
9563 ac_header_compiler=yes
9565 echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9568 ac_header_compiler=no
9570 rm -f conftest.$ac_objext conftest.$ac_ext
9571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9572 echo "${ECHO_T}$ac_header_compiler" >&6
9574 # Is the header present?
9575 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9576 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9577 cat >conftest.$ac_ext <<_ACEOF
9578 #line $LINENO "configure"
9581 cat confdefs.h >>conftest.$ac_ext
9582 cat >>conftest.$ac_ext <<_ACEOF
9583 /* end confdefs.h. */
9584 #include <sys/sysmacros.h>
9586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9589 grep -v '^ *+' conftest.er1 >conftest.err
9591 cat conftest.err >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } >/dev/null; then
9594 if test -s conftest.err; then
9595 ac_cpp_err=$ac_c_preproc_warn_flag
9602 if test -z "$ac_cpp_err"; then
9603 ac_header_preproc=yes
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9608 ac_header_preproc=no
9610 rm -f conftest.err conftest.$ac_ext
9611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9612 echo "${ECHO_T}$ac_header_preproc" >&6
9614 # So? What about this header?
9615 case $ac_header_compiler:$ac_header_preproc in
9617 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9618 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9620 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9623 ## ------------------------------------ ##
9624 ## Report this to bug-autoconf@gnu.org. ##
9625 ## ------------------------------------ ##
9628 sed "s/^/$as_me: WARNING: /" >&2
9631 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9632 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9633 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9634 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9635 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9636 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9639 ## ------------------------------------ ##
9640 ## Report this to bug-autoconf@gnu.org. ##
9641 ## ------------------------------------ ##
9644 sed "s/^/$as_me: WARNING: /" >&2
9647 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9648 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9649 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9654 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9655 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9658 if test $ac_cv_header_sys_sysmacros_h = yes; then
9660 cat >>confdefs.h <<\_ACEOF
9661 #define MAJOR_IN_SYSMACROS 1
9676 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9677 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9678 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9679 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9681 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 cat >conftest.$ac_ext <<_ACEOF
9684 #line $LINENO "configure"
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h. */
9690 #include <sys/types.h>
9702 rm -f conftest.$ac_objext
9703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9704 (eval $ac_compile) 2>&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } &&
9708 { ac_try='test -s conftest.$ac_objext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9714 eval "$as_ac_Header=yes"
9716 echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9719 eval "$as_ac_Header=no"
9721 rm -f conftest.$ac_objext conftest.$ac_ext
9723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9726 cat >>confdefs.h <<_ACEOF
9727 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9730 ac_header_dirent=$ac_hdr; break
9734 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9735 if test $ac_header_dirent = dirent.h; then
9736 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9737 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9738 if test "${ac_cv_search_opendir+set}" = set; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 ac_func_search_save_LIBS=$LIBS
9742 ac_cv_search_opendir=no
9743 cat >conftest.$ac_ext <<_ACEOF
9744 #line $LINENO "configure"
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9751 /* Override any gcc2 internal prototype to avoid an error. */
9755 /* We use char because int might match the return type of a gcc2
9756 builtin and then its argument prototype would still apply. */
9766 rm -f conftest.$ac_objext conftest$ac_exeext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9768 (eval $ac_link) 2>&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } &&
9772 { ac_try='test -s conftest$ac_exeext'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; }; then
9778 ac_cv_search_opendir="none required"
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9785 if test "$ac_cv_search_opendir" = no; then
9786 for ac_lib in dir; do
9787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9788 cat >conftest.$ac_ext <<_ACEOF
9789 #line $LINENO "configure"
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9796 /* Override any gcc2 internal prototype to avoid an error. */
9800 /* We use char because int might match the return type of a gcc2
9801 builtin and then its argument prototype would still apply. */
9811 rm -f conftest.$ac_objext conftest$ac_exeext
9812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9813 (eval $ac_link) 2>&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); } &&
9817 { ac_try='test -s conftest$ac_exeext'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
9823 ac_cv_search_opendir="-l$ac_lib"
9826 echo "$as_me: failed program was:" >&5
9827 sed 's/^/| /' conftest.$ac_ext >&5
9830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9833 LIBS=$ac_func_search_save_LIBS
9835 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9836 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9837 if test "$ac_cv_search_opendir" != no; then
9838 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9843 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9844 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9845 if test "${ac_cv_search_opendir+set}" = set; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9848 ac_func_search_save_LIBS=$LIBS
9849 ac_cv_search_opendir=no
9850 cat >conftest.$ac_ext <<_ACEOF
9851 #line $LINENO "configure"
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9858 /* Override any gcc2 internal prototype to avoid an error. */
9862 /* We use char because int might match the return type of a gcc2
9863 builtin and then its argument prototype would still apply. */
9873 rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9875 (eval $ac_link) 2>&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } &&
9879 { ac_try='test -s conftest$ac_exeext'
9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; }; then
9885 ac_cv_search_opendir="none required"
9887 echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9892 if test "$ac_cv_search_opendir" = no; then
9894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9895 cat >conftest.$ac_ext <<_ACEOF
9896 #line $LINENO "configure"
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9903 /* Override any gcc2 internal prototype to avoid an error. */
9907 /* We use char because int might match the return type of a gcc2
9908 builtin and then its argument prototype would still apply. */
9918 rm -f conftest.$ac_objext conftest$ac_exeext
9919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9920 (eval $ac_link) 2>&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } &&
9924 { ac_try='test -s conftest$ac_exeext'
9925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); }; }; then
9930 ac_cv_search_opendir="-l$ac_lib"
9933 echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.$ac_ext >&5
9937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9940 LIBS=$ac_func_search_save_LIBS
9942 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9943 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9944 if test "$ac_cv_search_opendir" != no; then
9945 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9951 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9952 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9953 if test "${ac_cv_header_stat_broken+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 cat >conftest.$ac_ext <<_ACEOF
9957 #line $LINENO "configure"
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963 #include <sys/types.h>
9964 #include <sys/stat.h>
9966 #if defined(S_ISBLK) && defined(S_IFDIR)
9967 # if S_ISBLK (S_IFDIR)
9972 #if defined(S_ISBLK) && defined(S_IFCHR)
9973 # if S_ISBLK (S_IFCHR)
9978 #if defined(S_ISLNK) && defined(S_IFREG)
9979 # if S_ISLNK (S_IFREG)
9984 #if defined(S_ISSOCK) && defined(S_IFREG)
9985 # if S_ISSOCK (S_IFREG)
9991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9992 $EGREP "You lose" >/dev/null 2>&1; then
9993 ac_cv_header_stat_broken=yes
9995 ac_cv_header_stat_broken=no
10000 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10001 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10002 if test $ac_cv_header_stat_broken = yes; then
10004 cat >>confdefs.h <<\_ACEOF
10005 #define STAT_MACROS_BROKEN 1
10010 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10011 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10012 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 cat >conftest.$ac_ext <<_ACEOF
10016 #line $LINENO "configure"
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h. */
10022 #include <sys/types.h>
10023 #include <sys/wait.h>
10024 #ifndef WEXITSTATUS
10025 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10028 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10036 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10041 rm -f conftest.$ac_objext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10043 (eval $ac_compile) 2>&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } &&
10047 { ac_try='test -s conftest.$ac_objext'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; }; then
10053 ac_cv_header_sys_wait_h=yes
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10058 ac_cv_header_sys_wait_h=no
10060 rm -f conftest.$ac_objext conftest.$ac_ext
10062 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10063 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10064 if test $ac_cv_header_sys_wait_h = yes; then
10066 cat >>confdefs.h <<\_ACEOF
10067 #define HAVE_SYS_WAIT_H 1
10072 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10073 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10074 if test "${ac_cv_header_time+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 cat >conftest.$ac_ext <<_ACEOF
10078 #line $LINENO "configure"
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084 #include <sys/types.h>
10085 #include <sys/time.h>
10091 if ((struct tm *) 0)
10097 rm -f conftest.$ac_objext
10098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10099 (eval $ac_compile) 2>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } &&
10103 { ac_try='test -s conftest.$ac_objext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 ac_cv_header_time=yes
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10114 ac_cv_header_time=no
10116 rm -f conftest.$ac_objext conftest.$ac_ext
10118 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10119 echo "${ECHO_T}$ac_cv_header_time" >&6
10120 if test $ac_cv_header_time = yes; then
10122 cat >>confdefs.h <<\_ACEOF
10123 #define TIME_WITH_SYS_TIME 1
10129 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10130 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10131 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 cat >conftest.$ac_ext <<_ACEOF
10135 #line $LINENO "configure"
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h. */
10141 $ac_includes_default
10145 static struct stat ac_aggr;
10146 if (ac_aggr.st_blksize)
10152 rm -f conftest.$ac_objext
10153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10154 (eval $ac_compile) 2>&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); } &&
10158 { ac_try='test -s conftest.$ac_objext'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }; then
10164 ac_cv_member_struct_stat_st_blksize=yes
10166 echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10169 cat >conftest.$ac_ext <<_ACEOF
10170 #line $LINENO "configure"
10173 cat confdefs.h >>conftest.$ac_ext
10174 cat >>conftest.$ac_ext <<_ACEOF
10175 /* end confdefs.h. */
10176 $ac_includes_default
10180 static struct stat ac_aggr;
10181 if (sizeof ac_aggr.st_blksize)
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_member_struct_stat_st_blksize=yes
10201 echo "$as_me: failed program was:" >&5
10202 sed 's/^/| /' conftest.$ac_ext >&5
10204 ac_cv_member_struct_stat_st_blksize=no
10206 rm -f conftest.$ac_objext conftest.$ac_ext
10208 rm -f conftest.$ac_objext conftest.$ac_ext
10210 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10211 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10212 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10214 cat >>confdefs.h <<_ACEOF
10215 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10219 cat >>confdefs.h <<\_ACEOF
10220 #define HAVE_ST_BLKSIZE 1
10226 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10227 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10228 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 cat >conftest.$ac_ext <<_ACEOF
10232 #line $LINENO "configure"
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10238 $ac_includes_default
10242 static struct stat ac_aggr;
10243 if (ac_aggr.st_blocks)
10249 rm -f conftest.$ac_objext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251 (eval $ac_compile) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -s conftest.$ac_objext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 ac_cv_member_struct_stat_st_blocks=yes
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10266 cat >conftest.$ac_ext <<_ACEOF
10267 #line $LINENO "configure"
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h. */
10273 $ac_includes_default
10277 static struct stat ac_aggr;
10278 if (sizeof ac_aggr.st_blocks)
10284 rm -f conftest.$ac_objext
10285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10286 (eval $ac_compile) 2>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try='test -s conftest.$ac_objext'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10296 ac_cv_member_struct_stat_st_blocks=yes
10298 echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10301 ac_cv_member_struct_stat_st_blocks=no
10303 rm -f conftest.$ac_objext conftest.$ac_ext
10305 rm -f conftest.$ac_objext conftest.$ac_ext
10307 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10308 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10309 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10311 cat >>confdefs.h <<_ACEOF
10312 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10316 cat >>confdefs.h <<\_ACEOF
10317 #define HAVE_ST_BLOCKS 1
10321 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10325 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10326 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10327 if test "${ac_cv_struct_tm+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 cat >conftest.$ac_ext <<_ACEOF
10331 #line $LINENO "configure"
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10337 #include <sys/types.h>
10343 struct tm *tp; tp->tm_sec;
10348 rm -f conftest.$ac_objext
10349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10350 (eval $ac_compile) 2>&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } &&
10354 { ac_try='test -s conftest.$ac_objext'
10355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356 (eval $ac_try) 2>&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; }; then
10360 ac_cv_struct_tm=time.h
10362 echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10365 ac_cv_struct_tm=sys/time.h
10367 rm -f conftest.$ac_objext conftest.$ac_ext
10369 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10370 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10371 if test $ac_cv_struct_tm = sys/time.h; then
10373 cat >>confdefs.h <<\_ACEOF
10374 #define TM_IN_SYS_TIME 1
10379 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10380 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10381 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 cat >conftest.$ac_ext <<_ACEOF
10385 #line $LINENO "configure"
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h. */
10391 #include <sys/types.h>
10392 #include <$ac_cv_struct_tm>
10398 static struct tm ac_aggr;
10399 if (ac_aggr.tm_zone)
10405 rm -f conftest.$ac_objext
10406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10407 (eval $ac_compile) 2>&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); } &&
10411 { ac_try='test -s conftest.$ac_objext'
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; }; then
10417 ac_cv_member_struct_tm_tm_zone=yes
10419 echo "$as_me: failed program was:" >&5
10420 sed 's/^/| /' conftest.$ac_ext >&5
10422 cat >conftest.$ac_ext <<_ACEOF
10423 #line $LINENO "configure"
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10429 #include <sys/types.h>
10430 #include <$ac_cv_struct_tm>
10436 static struct tm ac_aggr;
10437 if (sizeof ac_aggr.tm_zone)
10443 rm -f conftest.$ac_objext
10444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10445 (eval $ac_compile) 2>&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } &&
10449 { ac_try='test -s conftest.$ac_objext'
10450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10451 (eval $ac_try) 2>&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; }; then
10455 ac_cv_member_struct_tm_tm_zone=yes
10457 echo "$as_me: failed program was:" >&5
10458 sed 's/^/| /' conftest.$ac_ext >&5
10460 ac_cv_member_struct_tm_tm_zone=no
10462 rm -f conftest.$ac_objext conftest.$ac_ext
10464 rm -f conftest.$ac_objext conftest.$ac_ext
10466 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10467 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10468 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10470 cat >>confdefs.h <<_ACEOF
10471 #define HAVE_STRUCT_TM_TM_ZONE 1
10477 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10479 cat >>confdefs.h <<\_ACEOF
10480 #define HAVE_TM_ZONE 1
10484 echo "$as_me:$LINENO: checking for tzname" >&5
10485 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10486 if test "${ac_cv_var_tzname+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 cat >conftest.$ac_ext <<_ACEOF
10490 #line $LINENO "configure"
10493 cat confdefs.h >>conftest.$ac_ext
10494 cat >>conftest.$ac_ext <<_ACEOF
10495 /* end confdefs.h. */
10497 #ifndef tzname /* For SGI. */
10498 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10509 rm -f conftest.$ac_objext conftest$ac_exeext
10510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10511 (eval $ac_link) 2>&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); } &&
10515 { ac_try='test -s conftest$ac_exeext'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10521 ac_cv_var_tzname=yes
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10526 ac_cv_var_tzname=no
10528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10530 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10531 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10532 if test $ac_cv_var_tzname = yes; then
10534 cat >>confdefs.h <<\_ACEOF
10535 #define HAVE_TZNAME 1
10542 echo "$as_me:$LINENO: checking for utime.h" >&5
10543 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10544 if test "${ba_cv_header_utime_h+set}" = set; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 cat >conftest.$ac_ext <<_ACEOF
10548 #line $LINENO "configure"
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10555 #include <sys/types.h>
10565 rm -f conftest.$ac_objext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567 (eval $ac_compile) 2>&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } &&
10571 { ac_try='test -s conftest.$ac_objext'
10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; }; then
10577 ba_cv_header_utime_h=yes
10579 echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.$ac_ext >&5
10582 ba_cv_header_utime_h=no
10584 rm -f conftest.$ac_objext conftest.$ac_ext
10586 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10587 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10588 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10589 #define HAVE_UTIME_H 1
10593 echo "$as_me:$LINENO: checking for socklen_t" >&5
10594 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10595 if test "${ba_cv_header_socklen_t+set}" = set; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 cat >conftest.$ac_ext <<_ACEOF
10599 #line $LINENO "configure"
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h. */
10606 #include <sys/types.h>
10607 #include <sys/socket.h>
10616 rm -f conftest.$ac_objext
10617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10618 (eval $ac_compile) 2>&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } &&
10622 { ac_try='test -s conftest.$ac_objext'
10623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10624 (eval $ac_try) 2>&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); }; }; then
10628 ba_cv_header_socklen_t=yes
10630 echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10633 ba_cv_header_socklen_t=no
10635 rm -f conftest.$ac_objext conftest.$ac_ext
10637 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10638 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10639 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10640 #define HAVE_SOCKLEN_T 1
10644 echo "$as_me:$LINENO: checking for bigendian" >&5
10645 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10646 if test "${ba_cv_bigendian+set}" = set; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10649 if test "$cross_compiling" = yes; then
10652 cat >conftest.$ac_ext <<_ACEOF
10653 #line $LINENO "configure"
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h. */
10659 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10661 rm -f conftest$ac_exeext
10662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10663 (eval $ac_link) 2>&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; }; then
10672 ba_cv_bigendian=yes
10674 echo "$as_me: program exited with status $ac_status" >&5
10675 echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10678 ( exit $ac_status )
10681 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10684 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10685 echo "${ECHO_T}$ba_cv_bigendian" >&6
10686 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10687 #define HAVE_BIGENDIAN 1
10692 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10693 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10694 if test "${ac_cv_c_const+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10697 cat >conftest.$ac_ext <<_ACEOF
10698 #line $LINENO "configure"
10701 cat confdefs.h >>conftest.$ac_ext
10702 cat >>conftest.$ac_ext <<_ACEOF
10703 /* end confdefs.h. */
10708 /* FIXME: Include the comments suggested by Paul. */
10709 #ifndef __cplusplus
10710 /* Ultrix mips cc rejects this. */
10711 typedef int charset[2];
10713 /* SunOS 4.1.1 cc rejects this. */
10714 char const *const *ccp;
10716 /* NEC SVR4.0.2 mips cc rejects this. */
10717 struct point {int x, y;};
10718 static struct point const zero = {0,0};
10719 /* AIX XL C 1.02.0.0 rejects this.
10720 It does not let you subtract one const X* pointer from another in
10721 an arm of an if-expression whose if-part is not a constant
10723 const char *g = "string";
10724 ccp = &g + (g ? g-g : 0);
10725 /* HPUX 7.0 cc rejects these. */
10728 ccp = (char const *const *) p;
10729 { /* SCO 3.2v4 cc rejects this. */
10731 char const *s = 0 ? (char *) 0 : (char const *) 0;
10735 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10736 int x[] = {25, 17};
10737 const int *foo = &x[0];
10740 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10741 typedef const int *iptr;
10745 { /* AIX XL C 1.02.0.0 rejects this saying
10746 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10747 struct s { int j; const int *ap[3]; };
10748 struct s *b; b->j = 5;
10750 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10751 const int foo = 10;
10759 rm -f conftest.$ac_objext
10760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10761 (eval $ac_compile) 2>&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } &&
10765 { ac_try='test -s conftest.$ac_objext'
10766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767 (eval $ac_try) 2>&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); }; }; then
10773 echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.$ac_ext >&5
10778 rm -f conftest.$ac_objext conftest.$ac_ext
10780 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10781 echo "${ECHO_T}$ac_cv_c_const" >&6
10782 if test $ac_cv_c_const = no; then
10784 cat >>confdefs.h <<\_ACEOF
10792 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10793 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10795 # The order of these tests is important.
10796 cat >conftest.$ac_ext <<_ACEOF
10797 #line $LINENO "configure"
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 #include <sys/statvfs.h>
10804 #include <sys/fstyp.h>
10806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10809 grep -v '^ *+' conftest.er1 >conftest.err
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } >/dev/null; then
10814 if test -s conftest.err; then
10815 ac_cpp_err=$ac_c_preproc_warn_flag
10822 if test -z "$ac_cpp_err"; then
10823 cat >>confdefs.h <<\_ACEOF
10824 #define FSTYPE_STATVFS 1
10828 echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10833 rm -f conftest.err conftest.$ac_ext
10834 if test $fstype = no; then
10835 cat >conftest.$ac_ext <<_ACEOF
10836 #line $LINENO "configure"
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10842 #include <sys/statfs.h>
10843 #include <sys/fstyp.h>
10845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10848 grep -v '^ *+' conftest.er1 >conftest.err
10850 cat conftest.err >&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } >/dev/null; then
10853 if test -s conftest.err; then
10854 ac_cpp_err=$ac_c_preproc_warn_flag
10861 if test -z "$ac_cpp_err"; then
10862 cat >>confdefs.h <<\_ACEOF
10863 #define FSTYPE_USG_STATFS 1
10867 echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.$ac_ext >&5
10872 rm -f conftest.err conftest.$ac_ext
10874 if test $fstype = no; then
10875 cat >conftest.$ac_ext <<_ACEOF
10876 #line $LINENO "configure"
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 #include <sys/statfs.h>
10883 #include <sys/vmount.h>
10885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10888 grep -v '^ *+' conftest.er1 >conftest.err
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } >/dev/null; then
10893 if test -s conftest.err; then
10894 ac_cpp_err=$ac_c_preproc_warn_flag
10901 if test -z "$ac_cpp_err"; then
10902 cat >>confdefs.h <<\_ACEOF
10903 #define FSTYPE_AIX_STATFS 1
10907 echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10912 rm -f conftest.err conftest.$ac_ext
10914 if test $fstype = no; then
10915 cat >conftest.$ac_ext <<_ACEOF
10916 #line $LINENO "configure"
10919 cat confdefs.h >>conftest.$ac_ext
10920 cat >>conftest.$ac_ext <<_ACEOF
10921 /* end confdefs.h. */
10922 #include <mntent.h>
10924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10927 grep -v '^ *+' conftest.er1 >conftest.err
10929 cat conftest.err >&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } >/dev/null; then
10932 if test -s conftest.err; then
10933 ac_cpp_err=$ac_c_preproc_warn_flag
10940 if test -z "$ac_cpp_err"; then
10941 cat >>confdefs.h <<\_ACEOF
10942 #define FSTYPE_MNTENT 1
10946 echo "$as_me: failed program was:" >&5
10947 sed 's/^/| /' conftest.$ac_ext >&5
10951 rm -f conftest.err conftest.$ac_ext
10953 if test $fstype = no; then
10954 cat >conftest.$ac_ext <<_ACEOF
10955 #line $LINENO "configure"
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10961 #include <sys/mount.h>
10964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10965 $EGREP "f_type;" >/dev/null 2>&1; then
10966 cat >>confdefs.h <<\_ACEOF
10967 #define FSTYPE_STATFS 1
10974 if test $fstype = no; then
10975 cat >conftest.$ac_ext <<_ACEOF
10976 #line $LINENO "configure"
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10982 #include <sys/mount.h>
10983 #include <sys/fs_types.h>
10985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10988 grep -v '^ *+' conftest.er1 >conftest.err
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } >/dev/null; then
10993 if test -s conftest.err; then
10994 ac_cpp_err=$ac_c_preproc_warn_flag
11001 if test -z "$ac_cpp_err"; then
11002 cat >>confdefs.h <<\_ACEOF
11003 #define FSTYPE_GETMNT 1
11007 echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11012 rm -f conftest.err conftest.$ac_ext
11014 echo "$as_me:$LINENO: result: $fstype" >&5
11015 echo "${ECHO_T}$fstype" >&6
11017 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11018 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11019 if test "${ac_cv_type_signal+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 cat >conftest.$ac_ext <<_ACEOF
11023 #line $LINENO "configure"
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 #include <sys/types.h>
11030 #include <signal.h>
11035 extern "C" void (*signal (int, void (*)(int)))(int);
11037 void (*signal ()) ();
11048 rm -f conftest.$ac_objext
11049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11050 (eval $ac_compile) 2>&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } &&
11054 { ac_try='test -s conftest.$ac_objext'
11055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056 (eval $ac_try) 2>&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; }; then
11060 ac_cv_type_signal=void
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11065 ac_cv_type_signal=int
11067 rm -f conftest.$ac_objext conftest.$ac_ext
11069 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11070 echo "${ECHO_T}$ac_cv_type_signal" >&6
11072 cat >>confdefs.h <<_ACEOF
11073 #define RETSIGTYPE $ac_cv_type_signal
11078 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11079 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11080 if test "${bash_cv_signal_vintage+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 cat >conftest.$ac_ext <<_ACEOF
11085 #line $LINENO "configure"
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11091 #include <signal.h>
11097 struct sigaction sa;
11098 sigemptyset(&ss); sigsuspend(&ss);
11099 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11100 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11106 rm -f conftest.$ac_objext conftest$ac_exeext
11107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11108 (eval $ac_link) 2>&5
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); } &&
11112 { ac_try='test -s conftest$ac_exeext'
11113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114 (eval $ac_try) 2>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; }; then
11118 bash_cv_signal_vintage=posix
11120 echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11124 cat >conftest.$ac_ext <<_ACEOF
11125 #line $LINENO "configure"
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h. */
11131 #include <signal.h>
11136 int mask = sigmask(SIGINT);
11137 sigsetmask(mask); sigblock(mask); sigpause(mask);
11143 rm -f conftest.$ac_objext conftest$ac_exeext
11144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11145 (eval $ac_link) 2>&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } &&
11149 { ac_try='test -s conftest$ac_exeext'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 bash_cv_signal_vintage=4.2bsd
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11161 cat >conftest.$ac_ext <<_ACEOF
11162 #line $LINENO "configure"
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11169 #include <signal.h>
11170 RETSIGTYPE foo() { }
11175 int mask = sigmask(SIGINT);
11176 sigset(SIGINT, foo); sigrelse(SIGINT);
11177 sighold(SIGINT); sigpause(SIGINT);
11183 rm -f conftest.$ac_objext conftest$ac_exeext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11185 (eval $ac_link) 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
11189 { ac_try='test -s conftest$ac_exeext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 bash_cv_signal_vintage=svr3
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11200 bash_cv_signal_vintage=v7
11203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11213 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11214 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11215 if test "$bash_cv_signal_vintage" = posix; then
11216 cat >>confdefs.h <<\_ACEOF
11217 #define HAVE_POSIX_SIGNALS 1
11220 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11221 cat >>confdefs.h <<\_ACEOF
11222 #define HAVE_BSD_SIGNALS 1
11225 elif test "$bash_cv_signal_vintage" = svr3; then
11226 cat >>confdefs.h <<\_ACEOF
11227 #define HAVE_USG_SIGHOLD 1
11232 echo "$as_me:$LINENO: checking for mode_t" >&5
11233 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11234 if test "${ac_cv_type_mode_t+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 cat >conftest.$ac_ext <<_ACEOF
11238 #line $LINENO "configure"
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h. */
11244 $ac_includes_default
11250 if (sizeof (mode_t))
11256 rm -f conftest.$ac_objext
11257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11258 (eval $ac_compile) 2>&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } &&
11262 { ac_try='test -s conftest.$ac_objext'
11263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11264 (eval $ac_try) 2>&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); }; }; then
11268 ac_cv_type_mode_t=yes
11270 echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11273 ac_cv_type_mode_t=no
11275 rm -f conftest.$ac_objext conftest.$ac_ext
11277 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11278 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11279 if test $ac_cv_type_mode_t = yes; then
11283 cat >>confdefs.h <<_ACEOF
11289 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11290 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11291 if test "${ac_cv_type_uid_t+set}" = set; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11294 cat >conftest.$ac_ext <<_ACEOF
11295 #line $LINENO "configure"
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11301 #include <sys/types.h>
11304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11305 $EGREP "uid_t" >/dev/null 2>&1; then
11306 ac_cv_type_uid_t=yes
11308 ac_cv_type_uid_t=no
11313 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11314 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11315 if test $ac_cv_type_uid_t = no; then
11317 cat >>confdefs.h <<\_ACEOF
11322 cat >>confdefs.h <<\_ACEOF
11328 echo "$as_me:$LINENO: checking for size_t" >&5
11329 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11330 if test "${ac_cv_type_size_t+set}" = set; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 cat >conftest.$ac_ext <<_ACEOF
11334 #line $LINENO "configure"
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11340 $ac_includes_default
11346 if (sizeof (size_t))
11352 rm -f conftest.$ac_objext
11353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11354 (eval $ac_compile) 2>&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } &&
11358 { ac_try='test -s conftest.$ac_objext'
11359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11360 (eval $ac_try) 2>&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); }; }; then
11364 ac_cv_type_size_t=yes
11366 echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.$ac_ext >&5
11369 ac_cv_type_size_t=no
11371 rm -f conftest.$ac_objext conftest.$ac_ext
11373 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11374 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11375 if test $ac_cv_type_size_t = yes; then
11379 cat >>confdefs.h <<_ACEOF
11380 #define size_t unsigned
11385 echo "$as_me:$LINENO: checking for pid_t" >&5
11386 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11387 if test "${ac_cv_type_pid_t+set}" = set; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11390 cat >conftest.$ac_ext <<_ACEOF
11391 #line $LINENO "configure"
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h. */
11397 $ac_includes_default
11403 if (sizeof (pid_t))
11409 rm -f conftest.$ac_objext
11410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11411 (eval $ac_compile) 2>&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } &&
11415 { ac_try='test -s conftest.$ac_objext'
11416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; }; then
11421 ac_cv_type_pid_t=yes
11423 echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11426 ac_cv_type_pid_t=no
11428 rm -f conftest.$ac_objext conftest.$ac_ext
11430 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11431 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11432 if test $ac_cv_type_pid_t = yes; then
11436 cat >>confdefs.h <<_ACEOF
11442 echo "$as_me:$LINENO: checking for off_t" >&5
11443 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11444 if test "${ac_cv_type_off_t+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 cat >conftest.$ac_ext <<_ACEOF
11448 #line $LINENO "configure"
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h. */
11454 $ac_includes_default
11460 if (sizeof (off_t))
11466 rm -f conftest.$ac_objext
11467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11468 (eval $ac_compile) 2>&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } &&
11472 { ac_try='test -s conftest.$ac_objext'
11473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474 (eval $ac_try) 2>&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; }; then
11478 ac_cv_type_off_t=yes
11480 echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.$ac_ext >&5
11483 ac_cv_type_off_t=no
11485 rm -f conftest.$ac_objext conftest.$ac_ext
11487 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11488 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11489 if test $ac_cv_type_off_t = yes; then
11493 cat >>confdefs.h <<_ACEOF
11499 echo "$as_me:$LINENO: checking for ino_t" >&5
11500 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11501 if test "${ac_cv_type_ino_t+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11504 cat >conftest.$ac_ext <<_ACEOF
11505 #line $LINENO "configure"
11508 cat confdefs.h >>conftest.$ac_ext
11509 cat >>conftest.$ac_ext <<_ACEOF
11510 /* end confdefs.h. */
11511 $ac_includes_default
11517 if (sizeof (ino_t))
11523 rm -f conftest.$ac_objext
11524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11525 (eval $ac_compile) 2>&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } &&
11529 { ac_try='test -s conftest.$ac_objext'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; }; then
11535 ac_cv_type_ino_t=yes
11537 echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11540 ac_cv_type_ino_t=no
11542 rm -f conftest.$ac_objext conftest.$ac_ext
11544 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11545 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11546 if test $ac_cv_type_ino_t = yes; then
11550 cat >>confdefs.h <<_ACEOF
11551 #define ino_t unsigned long
11556 echo "$as_me:$LINENO: checking for dev_t" >&5
11557 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11558 if test "${ac_cv_type_dev_t+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 cat >conftest.$ac_ext <<_ACEOF
11562 #line $LINENO "configure"
11565 cat confdefs.h >>conftest.$ac_ext
11566 cat >>conftest.$ac_ext <<_ACEOF
11567 /* end confdefs.h. */
11568 $ac_includes_default
11574 if (sizeof (dev_t))
11580 rm -f conftest.$ac_objext
11581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11582 (eval $ac_compile) 2>&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } &&
11586 { ac_try='test -s conftest.$ac_objext'
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; }; then
11592 ac_cv_type_dev_t=yes
11594 echo "$as_me: failed program was:" >&5
11595 sed 's/^/| /' conftest.$ac_ext >&5
11597 ac_cv_type_dev_t=no
11599 rm -f conftest.$ac_objext conftest.$ac_ext
11601 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11602 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11603 if test $ac_cv_type_dev_t = yes; then
11607 cat >>confdefs.h <<_ACEOF
11608 #define dev_t unsigned long
11613 echo "$as_me:$LINENO: checking for daddr_t" >&5
11614 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11615 if test "${ac_cv_type_daddr_t+set}" = set; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 cat >conftest.$ac_ext <<_ACEOF
11619 #line $LINENO "configure"
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11625 $ac_includes_default
11631 if (sizeof (daddr_t))
11637 rm -f conftest.$ac_objext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11639 (eval $ac_compile) 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
11643 { ac_try='test -s conftest.$ac_objext'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 ac_cv_type_daddr_t=yes
11651 echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11654 ac_cv_type_daddr_t=no
11656 rm -f conftest.$ac_objext conftest.$ac_ext
11658 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11659 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11660 if test $ac_cv_type_daddr_t = yes; then
11664 cat >>confdefs.h <<_ACEOF
11665 #define daddr_t long
11670 echo "$as_me:$LINENO: checking for major_t" >&5
11671 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11672 if test "${ac_cv_type_major_t+set}" = set; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
11675 cat >conftest.$ac_ext <<_ACEOF
11676 #line $LINENO "configure"
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11682 $ac_includes_default
11688 if (sizeof (major_t))
11694 rm -f conftest.$ac_objext
11695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11696 (eval $ac_compile) 2>&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } &&
11700 { ac_try='test -s conftest.$ac_objext'
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; }; then
11706 ac_cv_type_major_t=yes
11708 echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11711 ac_cv_type_major_t=no
11713 rm -f conftest.$ac_objext conftest.$ac_ext
11715 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11716 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11717 if test $ac_cv_type_major_t = yes; then
11721 cat >>confdefs.h <<_ACEOF
11722 #define major_t int
11727 echo "$as_me:$LINENO: checking for minor_t" >&5
11728 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11729 if test "${ac_cv_type_minor_t+set}" = set; then
11730 echo $ECHO_N "(cached) $ECHO_C" >&6
11732 cat >conftest.$ac_ext <<_ACEOF
11733 #line $LINENO "configure"
11736 cat confdefs.h >>conftest.$ac_ext
11737 cat >>conftest.$ac_ext <<_ACEOF
11738 /* end confdefs.h. */
11739 $ac_includes_default
11745 if (sizeof (minor_t))
11751 rm -f conftest.$ac_objext
11752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11753 (eval $ac_compile) 2>&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); } &&
11757 { ac_try='test -s conftest.$ac_objext'
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; }; then
11763 ac_cv_type_minor_t=yes
11765 echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11768 ac_cv_type_minor_t=no
11770 rm -f conftest.$ac_objext conftest.$ac_ext
11772 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11773 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11774 if test $ac_cv_type_minor_t = yes; then
11778 cat >>confdefs.h <<_ACEOF
11779 #define minor_t int
11784 echo "$as_me:$LINENO: checking for ssize_t" >&5
11785 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11786 if test "${ac_cv_type_ssize_t+set}" = set; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11789 cat >conftest.$ac_ext <<_ACEOF
11790 #line $LINENO "configure"
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11796 $ac_includes_default
11802 if (sizeof (ssize_t))
11808 rm -f conftest.$ac_objext
11809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11810 (eval $ac_compile) 2>&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); } &&
11814 { ac_try='test -s conftest.$ac_objext'
11815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816 (eval $ac_try) 2>&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; }; then
11820 ac_cv_type_ssize_t=yes
11822 echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.$ac_ext >&5
11825 ac_cv_type_ssize_t=no
11827 rm -f conftest.$ac_objext conftest.$ac_ext
11829 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11830 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11831 if test $ac_cv_type_ssize_t = yes; then
11835 cat >>confdefs.h <<_ACEOF
11836 #define ssize_t int
11841 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11842 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11843 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11846 cat >conftest.$ac_ext <<_ACEOF
11847 #line $LINENO "configure"
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h. */
11853 $ac_includes_default
11857 static struct stat ac_aggr;
11858 if (ac_aggr.st_blocks)
11864 rm -f conftest.$ac_objext
11865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11866 (eval $ac_compile) 2>&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } &&
11870 { ac_try='test -s conftest.$ac_objext'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 ac_cv_member_struct_stat_st_blocks=yes
11878 echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11881 cat >conftest.$ac_ext <<_ACEOF
11882 #line $LINENO "configure"
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11888 $ac_includes_default
11892 static struct stat ac_aggr;
11893 if (sizeof ac_aggr.st_blocks)
11899 rm -f conftest.$ac_objext
11900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11901 (eval $ac_compile) 2>&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } &&
11905 { ac_try='test -s conftest.$ac_objext'
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11911 ac_cv_member_struct_stat_st_blocks=yes
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11916 ac_cv_member_struct_stat_st_blocks=no
11918 rm -f conftest.$ac_objext conftest.$ac_ext
11920 rm -f conftest.$ac_objext conftest.$ac_ext
11922 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11923 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11924 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11926 cat >>confdefs.h <<_ACEOF
11927 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11931 cat >>confdefs.h <<\_ACEOF
11932 #define HAVE_ST_BLOCKS 1
11936 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11941 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11942 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11943 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 cat >conftest.$ac_ext <<_ACEOF
11947 #line $LINENO "configure"
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h. */
11953 $ac_includes_default
11957 static struct stat ac_aggr;
11958 if (ac_aggr.st_rdev)
11964 rm -f conftest.$ac_objext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11966 (eval $ac_compile) 2>&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } &&
11970 { ac_try='test -s conftest.$ac_objext'
11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972 (eval $ac_try) 2>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
11976 ac_cv_member_struct_stat_st_rdev=yes
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11981 cat >conftest.$ac_ext <<_ACEOF
11982 #line $LINENO "configure"
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11988 $ac_includes_default
11992 static struct stat ac_aggr;
11993 if (sizeof ac_aggr.st_rdev)
11999 rm -f conftest.$ac_objext
12000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12001 (eval $ac_compile) 2>&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try='test -s conftest.$ac_objext'
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 ac_cv_member_struct_stat_st_rdev=yes
12013 echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12016 ac_cv_member_struct_stat_st_rdev=no
12018 rm -f conftest.$ac_objext conftest.$ac_ext
12020 rm -f conftest.$ac_objext conftest.$ac_ext
12022 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12023 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12024 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12026 cat >>confdefs.h <<_ACEOF
12027 #define HAVE_STRUCT_STAT_ST_RDEV 1
12031 cat >>confdefs.h <<\_ACEOF
12032 #define HAVE_ST_RDEV 1
12038 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12039 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12040 if test "${ac_cv_struct_tm+set}" = set; then
12041 echo $ECHO_N "(cached) $ECHO_C" >&6
12043 cat >conftest.$ac_ext <<_ACEOF
12044 #line $LINENO "configure"
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h. */
12050 #include <sys/types.h>
12056 struct tm *tp; tp->tm_sec;
12061 rm -f conftest.$ac_objext
12062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12063 (eval $ac_compile) 2>&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } &&
12067 { ac_try='test -s conftest.$ac_objext'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; }; then
12073 ac_cv_struct_tm=time.h
12075 echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12078 ac_cv_struct_tm=sys/time.h
12080 rm -f conftest.$ac_objext conftest.$ac_ext
12082 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12083 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12084 if test $ac_cv_struct_tm = sys/time.h; then
12086 cat >>confdefs.h <<\_ACEOF
12087 #define TM_IN_SYS_TIME 1
12092 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12093 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12094 if test "${ac_cv_c_const+set}" = set; then
12095 echo $ECHO_N "(cached) $ECHO_C" >&6
12097 cat >conftest.$ac_ext <<_ACEOF
12098 #line $LINENO "configure"
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12108 /* FIXME: Include the comments suggested by Paul. */
12109 #ifndef __cplusplus
12110 /* Ultrix mips cc rejects this. */
12111 typedef int charset[2];
12113 /* SunOS 4.1.1 cc rejects this. */
12114 char const *const *ccp;
12116 /* NEC SVR4.0.2 mips cc rejects this. */
12117 struct point {int x, y;};
12118 static struct point const zero = {0,0};
12119 /* AIX XL C 1.02.0.0 rejects this.
12120 It does not let you subtract one const X* pointer from another in
12121 an arm of an if-expression whose if-part is not a constant
12123 const char *g = "string";
12124 ccp = &g + (g ? g-g : 0);
12125 /* HPUX 7.0 cc rejects these. */
12128 ccp = (char const *const *) p;
12129 { /* SCO 3.2v4 cc rejects this. */
12131 char const *s = 0 ? (char *) 0 : (char const *) 0;
12135 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12136 int x[] = {25, 17};
12137 const int *foo = &x[0];
12140 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12141 typedef const int *iptr;
12145 { /* AIX XL C 1.02.0.0 rejects this saying
12146 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12147 struct s { int j; const int *ap[3]; };
12148 struct s *b; b->j = 5;
12150 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12151 const int foo = 10;
12159 rm -f conftest.$ac_objext
12160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12161 (eval $ac_compile) 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
12165 { ac_try='test -s conftest.$ac_objext'
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; }; then
12173 echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.$ac_ext >&5
12178 rm -f conftest.$ac_objext conftest.$ac_ext
12180 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12181 echo "${ECHO_T}$ac_cv_c_const" >&6
12182 if test $ac_cv_c_const = no; then
12184 cat >>confdefs.h <<\_ACEOF
12192 echo "$as_me:$LINENO: checking for char" >&5
12193 echo $ECHO_N "checking for char... $ECHO_C" >&6
12194 if test "${ac_cv_type_char+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 cat >conftest.$ac_ext <<_ACEOF
12198 #line $LINENO "configure"
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 $ac_includes_default
12216 rm -f conftest.$ac_objext
12217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12218 (eval $ac_compile) 2>&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } &&
12222 { ac_try='test -s conftest.$ac_objext'
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; }; then
12228 ac_cv_type_char=yes
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12235 rm -f conftest.$ac_objext conftest.$ac_ext
12237 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12238 echo "${ECHO_T}$ac_cv_type_char" >&6
12240 echo "$as_me:$LINENO: checking size of char" >&5
12241 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12242 if test "${ac_cv_sizeof_char+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12245 if test "$ac_cv_type_char" = yes; then
12246 # The cast to unsigned long works around a bug in the HP C Compiler
12247 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12248 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12249 # This bug is HP SR number 8606223364.
12250 if test "$cross_compiling" = yes; then
12251 # Depending upon the size, compute the lo and hi bounds.
12252 cat >conftest.$ac_ext <<_ACEOF
12253 #line $LINENO "configure"
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12259 $ac_includes_default
12263 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12270 rm -f conftest.$ac_objext
12271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12272 (eval $ac_compile) 2>&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } &&
12276 { ac_try='test -s conftest.$ac_objext'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; }; then
12284 cat >conftest.$ac_ext <<_ACEOF
12285 #line $LINENO "configure"
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h. */
12291 $ac_includes_default
12295 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12302 rm -f conftest.$ac_objext
12303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12304 (eval $ac_compile) 2>&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); } &&
12308 { ac_try='test -s conftest.$ac_objext'
12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; }; then
12314 ac_hi=$ac_mid; break
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12319 ac_lo=`expr $ac_mid + 1`
12320 if test $ac_lo -le $ac_mid; then
12324 ac_mid=`expr 2 '*' $ac_mid + 1`
12326 rm -f conftest.$ac_objext conftest.$ac_ext
12329 echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12332 cat >conftest.$ac_ext <<_ACEOF
12333 #line $LINENO "configure"
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12339 $ac_includes_default
12343 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12350 rm -f conftest.$ac_objext
12351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12352 (eval $ac_compile) 2>&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } &&
12356 { ac_try='test -s conftest.$ac_objext'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
12364 cat >conftest.$ac_ext <<_ACEOF
12365 #line $LINENO "configure"
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12371 $ac_includes_default
12375 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12382 rm -f conftest.$ac_objext
12383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12384 (eval $ac_compile) 2>&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } &&
12388 { ac_try='test -s conftest.$ac_objext'
12389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; }; then
12394 ac_lo=$ac_mid; break
12396 echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12399 ac_hi=`expr '(' $ac_mid ')' - 1`
12400 if test $ac_mid -le $ac_hi; then
12404 ac_mid=`expr 2 '*' $ac_mid`
12406 rm -f conftest.$ac_objext conftest.$ac_ext
12409 echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12414 rm -f conftest.$ac_objext conftest.$ac_ext
12416 rm -f conftest.$ac_objext conftest.$ac_ext
12417 # Binary search between lo and hi bounds.
12418 while test "x$ac_lo" != "x$ac_hi"; do
12419 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12420 cat >conftest.$ac_ext <<_ACEOF
12421 #line $LINENO "configure"
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12427 $ac_includes_default
12431 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12438 rm -f conftest.$ac_objext
12439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12440 (eval $ac_compile) 2>&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } &&
12444 { ac_try='test -s conftest.$ac_objext'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; }; then
12452 echo "$as_me: failed program was:" >&5
12453 sed 's/^/| /' conftest.$ac_ext >&5
12455 ac_lo=`expr '(' $ac_mid ')' + 1`
12457 rm -f conftest.$ac_objext conftest.$ac_ext
12460 ?*) ac_cv_sizeof_char=$ac_lo;;
12461 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12462 See \`config.log' for more details." >&5
12463 echo "$as_me: error: cannot compute sizeof (char), 77
12464 See \`config.log' for more details." >&2;}
12465 { (exit 1); exit 1; }; } ;;
12468 if test "$cross_compiling" = yes; then
12469 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12470 See \`config.log' for more details." >&5
12471 echo "$as_me: error: cannot run test program while cross compiling
12472 See \`config.log' for more details." >&2;}
12473 { (exit 1); exit 1; }; }
12475 cat >conftest.$ac_ext <<_ACEOF
12476 #line $LINENO "configure"
12479 cat confdefs.h >>conftest.$ac_ext
12480 cat >>conftest.$ac_ext <<_ACEOF
12481 /* end confdefs.h. */
12482 $ac_includes_default
12483 long longval () { return (long) (sizeof (char)); }
12484 unsigned long ulongval () { return (long) (sizeof (char)); }
12486 #include <stdlib.h>
12491 FILE *f = fopen ("conftest.val", "w");
12494 if (((long) (sizeof (char))) < 0)
12496 long i = longval ();
12497 if (i != ((long) (sizeof (char))))
12499 fprintf (f, "%ld\n", i);
12503 unsigned long i = ulongval ();
12504 if (i != ((long) (sizeof (char))))
12506 fprintf (f, "%lu\n", i);
12508 exit (ferror (f) || fclose (f) != 0);
12514 rm -f conftest$ac_exeext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12516 (eval $ac_link) 2>&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; }; then
12525 ac_cv_sizeof_char=`cat conftest.val`
12527 echo "$as_me: program exited with status $ac_status" >&5
12528 echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12531 ( exit $ac_status )
12532 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12533 See \`config.log' for more details." >&5
12534 echo "$as_me: error: cannot compute sizeof (char), 77
12535 See \`config.log' for more details." >&2;}
12536 { (exit 1); exit 1; }; }
12538 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12543 ac_cv_sizeof_char=0
12546 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12547 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12548 cat >>confdefs.h <<_ACEOF
12549 #define SIZEOF_CHAR $ac_cv_sizeof_char
12553 echo "$as_me:$LINENO: checking for short int" >&5
12554 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12555 if test "${ac_cv_type_short_int+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 cat >conftest.$ac_ext <<_ACEOF
12559 #line $LINENO "configure"
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12565 $ac_includes_default
12569 if ((short int *) 0)
12571 if (sizeof (short int))
12577 rm -f conftest.$ac_objext
12578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12579 (eval $ac_compile) 2>&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } &&
12583 { ac_try='test -s conftest.$ac_objext'
12584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585 (eval $ac_try) 2>&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; }; then
12589 ac_cv_type_short_int=yes
12591 echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12594 ac_cv_type_short_int=no
12596 rm -f conftest.$ac_objext conftest.$ac_ext
12598 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12599 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12601 echo "$as_me:$LINENO: checking size of short int" >&5
12602 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12603 if test "${ac_cv_sizeof_short_int+set}" = set; then
12604 echo $ECHO_N "(cached) $ECHO_C" >&6
12606 if test "$ac_cv_type_short_int" = yes; then
12607 # The cast to unsigned long works around a bug in the HP C Compiler
12608 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12609 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12610 # This bug is HP SR number 8606223364.
12611 if test "$cross_compiling" = yes; then
12612 # Depending upon the size, compute the lo and hi bounds.
12613 cat >conftest.$ac_ext <<_ACEOF
12614 #line $LINENO "configure"
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h. */
12620 $ac_includes_default
12624 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12631 rm -f conftest.$ac_objext
12632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12633 (eval $ac_compile) 2>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } &&
12637 { ac_try='test -s conftest.$ac_objext'
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12645 cat >conftest.$ac_ext <<_ACEOF
12646 #line $LINENO "configure"
12649 cat confdefs.h >>conftest.$ac_ext
12650 cat >>conftest.$ac_ext <<_ACEOF
12651 /* end confdefs.h. */
12652 $ac_includes_default
12656 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12663 rm -f conftest.$ac_objext
12664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12665 (eval $ac_compile) 2>&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); } &&
12669 { ac_try='test -s conftest.$ac_objext'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; }; then
12675 ac_hi=$ac_mid; break
12677 echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12680 ac_lo=`expr $ac_mid + 1`
12681 if test $ac_lo -le $ac_mid; then
12685 ac_mid=`expr 2 '*' $ac_mid + 1`
12687 rm -f conftest.$ac_objext conftest.$ac_ext
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12693 cat >conftest.$ac_ext <<_ACEOF
12694 #line $LINENO "configure"
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h. */
12700 $ac_includes_default
12704 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12711 rm -f conftest.$ac_objext
12712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12713 (eval $ac_compile) 2>&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } &&
12717 { ac_try='test -s conftest.$ac_objext'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
12725 cat >conftest.$ac_ext <<_ACEOF
12726 #line $LINENO "configure"
12729 cat confdefs.h >>conftest.$ac_ext
12730 cat >>conftest.$ac_ext <<_ACEOF
12731 /* end confdefs.h. */
12732 $ac_includes_default
12736 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12743 rm -f conftest.$ac_objext
12744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12745 (eval $ac_compile) 2>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } &&
12749 { ac_try='test -s conftest.$ac_objext'
12750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751 (eval $ac_try) 2>&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; }; then
12755 ac_lo=$ac_mid; break
12757 echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12760 ac_hi=`expr '(' $ac_mid ')' - 1`
12761 if test $ac_mid -le $ac_hi; then
12765 ac_mid=`expr 2 '*' $ac_mid`
12767 rm -f conftest.$ac_objext conftest.$ac_ext
12770 echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12775 rm -f conftest.$ac_objext conftest.$ac_ext
12777 rm -f conftest.$ac_objext conftest.$ac_ext
12778 # Binary search between lo and hi bounds.
12779 while test "x$ac_lo" != "x$ac_hi"; do
12780 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12781 cat >conftest.$ac_ext <<_ACEOF
12782 #line $LINENO "configure"
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12788 $ac_includes_default
12792 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12799 rm -f conftest.$ac_objext
12800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12801 (eval $ac_compile) 2>&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } &&
12805 { ac_try='test -s conftest.$ac_objext'
12806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12813 echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12816 ac_lo=`expr '(' $ac_mid ')' + 1`
12818 rm -f conftest.$ac_objext conftest.$ac_ext
12821 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12822 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12823 See \`config.log' for more details." >&5
12824 echo "$as_me: error: cannot compute sizeof (short int), 77
12825 See \`config.log' for more details." >&2;}
12826 { (exit 1); exit 1; }; } ;;
12829 if test "$cross_compiling" = yes; then
12830 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12831 See \`config.log' for more details." >&5
12832 echo "$as_me: error: cannot run test program while cross compiling
12833 See \`config.log' for more details." >&2;}
12834 { (exit 1); exit 1; }; }
12836 cat >conftest.$ac_ext <<_ACEOF
12837 #line $LINENO "configure"
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12843 $ac_includes_default
12844 long longval () { return (long) (sizeof (short int)); }
12845 unsigned long ulongval () { return (long) (sizeof (short int)); }
12847 #include <stdlib.h>
12852 FILE *f = fopen ("conftest.val", "w");
12855 if (((long) (sizeof (short int))) < 0)
12857 long i = longval ();
12858 if (i != ((long) (sizeof (short int))))
12860 fprintf (f, "%ld\n", i);
12864 unsigned long i = ulongval ();
12865 if (i != ((long) (sizeof (short int))))
12867 fprintf (f, "%lu\n", i);
12869 exit (ferror (f) || fclose (f) != 0);
12875 rm -f conftest$ac_exeext
12876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12877 (eval $ac_link) 2>&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882 (eval $ac_try) 2>&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; }; then
12886 ac_cv_sizeof_short_int=`cat conftest.val`
12888 echo "$as_me: program exited with status $ac_status" >&5
12889 echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12892 ( exit $ac_status )
12893 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12894 See \`config.log' for more details." >&5
12895 echo "$as_me: error: cannot compute sizeof (short int), 77
12896 See \`config.log' for more details." >&2;}
12897 { (exit 1); exit 1; }; }
12899 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12904 ac_cv_sizeof_short_int=0
12907 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12908 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12909 cat >>confdefs.h <<_ACEOF
12910 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12914 echo "$as_me:$LINENO: checking for int" >&5
12915 echo $ECHO_N "checking for int... $ECHO_C" >&6
12916 if test "${ac_cv_type_int+set}" = set; then
12917 echo $ECHO_N "(cached) $ECHO_C" >&6
12919 cat >conftest.$ac_ext <<_ACEOF
12920 #line $LINENO "configure"
12923 cat confdefs.h >>conftest.$ac_ext
12924 cat >>conftest.$ac_ext <<_ACEOF
12925 /* end confdefs.h. */
12926 $ac_includes_default
12938 rm -f conftest.$ac_objext
12939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12940 (eval $ac_compile) 2>&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } &&
12944 { ac_try='test -s conftest.$ac_objext'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
12952 echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12957 rm -f conftest.$ac_objext conftest.$ac_ext
12959 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12960 echo "${ECHO_T}$ac_cv_type_int" >&6
12962 echo "$as_me:$LINENO: checking size of int" >&5
12963 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12964 if test "${ac_cv_sizeof_int+set}" = set; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
12967 if test "$ac_cv_type_int" = yes; then
12968 # The cast to unsigned long works around a bug in the HP C Compiler
12969 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12970 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12971 # This bug is HP SR number 8606223364.
12972 if test "$cross_compiling" = yes; then
12973 # Depending upon the size, compute the lo and hi bounds.
12974 cat >conftest.$ac_ext <<_ACEOF
12975 #line $LINENO "configure"
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h. */
12981 $ac_includes_default
12985 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12992 rm -f conftest.$ac_objext
12993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12994 (eval $ac_compile) 2>&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } &&
12998 { ac_try='test -s conftest.$ac_objext'
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
13006 cat >conftest.$ac_ext <<_ACEOF
13007 #line $LINENO "configure"
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h. */
13013 $ac_includes_default
13017 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13024 rm -f conftest.$ac_objext
13025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13026 (eval $ac_compile) 2>&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } &&
13030 { ac_try='test -s conftest.$ac_objext'
13031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032 (eval $ac_try) 2>&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; }; then
13036 ac_hi=$ac_mid; break
13038 echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13041 ac_lo=`expr $ac_mid + 1`
13042 if test $ac_lo -le $ac_mid; then
13046 ac_mid=`expr 2 '*' $ac_mid + 1`
13048 rm -f conftest.$ac_objext conftest.$ac_ext
13051 echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13054 cat >conftest.$ac_ext <<_ACEOF
13055 #line $LINENO "configure"
13058 cat confdefs.h >>conftest.$ac_ext
13059 cat >>conftest.$ac_ext <<_ACEOF
13060 /* end confdefs.h. */
13061 $ac_includes_default
13065 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13072 rm -f conftest.$ac_objext
13073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13074 (eval $ac_compile) 2>&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } &&
13078 { ac_try='test -s conftest.$ac_objext'
13079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080 (eval $ac_try) 2>&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; }; then
13086 cat >conftest.$ac_ext <<_ACEOF
13087 #line $LINENO "configure"
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h. */
13093 $ac_includes_default
13097 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13104 rm -f conftest.$ac_objext
13105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13106 (eval $ac_compile) 2>&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); } &&
13110 { ac_try='test -s conftest.$ac_objext'
13111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112 (eval $ac_try) 2>&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; }; then
13116 ac_lo=$ac_mid; break
13118 echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13121 ac_hi=`expr '(' $ac_mid ')' - 1`
13122 if test $ac_mid -le $ac_hi; then
13126 ac_mid=`expr 2 '*' $ac_mid`
13128 rm -f conftest.$ac_objext conftest.$ac_ext
13131 echo "$as_me: failed program was:" >&5
13132 sed 's/^/| /' conftest.$ac_ext >&5
13136 rm -f conftest.$ac_objext conftest.$ac_ext
13138 rm -f conftest.$ac_objext conftest.$ac_ext
13139 # Binary search between lo and hi bounds.
13140 while test "x$ac_lo" != "x$ac_hi"; do
13141 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13142 cat >conftest.$ac_ext <<_ACEOF
13143 #line $LINENO "configure"
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h. */
13149 $ac_includes_default
13153 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13160 rm -f conftest.$ac_objext
13161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13162 (eval $ac_compile) 2>&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } &&
13166 { ac_try='test -s conftest.$ac_objext'
13167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168 (eval $ac_try) 2>&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; }; then
13174 echo "$as_me: failed program was:" >&5
13175 sed 's/^/| /' conftest.$ac_ext >&5
13177 ac_lo=`expr '(' $ac_mid ')' + 1`
13179 rm -f conftest.$ac_objext conftest.$ac_ext
13182 ?*) ac_cv_sizeof_int=$ac_lo;;
13183 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13184 See \`config.log' for more details." >&5
13185 echo "$as_me: error: cannot compute sizeof (int), 77
13186 See \`config.log' for more details." >&2;}
13187 { (exit 1); exit 1; }; } ;;
13190 if test "$cross_compiling" = yes; then
13191 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13192 See \`config.log' for more details." >&5
13193 echo "$as_me: error: cannot run test program while cross compiling
13194 See \`config.log' for more details." >&2;}
13195 { (exit 1); exit 1; }; }
13197 cat >conftest.$ac_ext <<_ACEOF
13198 #line $LINENO "configure"
13201 cat confdefs.h >>conftest.$ac_ext
13202 cat >>conftest.$ac_ext <<_ACEOF
13203 /* end confdefs.h. */
13204 $ac_includes_default
13205 long longval () { return (long) (sizeof (int)); }
13206 unsigned long ulongval () { return (long) (sizeof (int)); }
13208 #include <stdlib.h>
13213 FILE *f = fopen ("conftest.val", "w");
13216 if (((long) (sizeof (int))) < 0)
13218 long i = longval ();
13219 if (i != ((long) (sizeof (int))))
13221 fprintf (f, "%ld\n", i);
13225 unsigned long i = ulongval ();
13226 if (i != ((long) (sizeof (int))))
13228 fprintf (f, "%lu\n", i);
13230 exit (ferror (f) || fclose (f) != 0);
13236 rm -f conftest$ac_exeext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13238 (eval $ac_link) 2>&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243 (eval $ac_try) 2>&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; }; then
13247 ac_cv_sizeof_int=`cat conftest.val`
13249 echo "$as_me: program exited with status $ac_status" >&5
13250 echo "$as_me: failed program was:" >&5
13251 sed 's/^/| /' conftest.$ac_ext >&5
13253 ( exit $ac_status )
13254 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13255 See \`config.log' for more details." >&5
13256 echo "$as_me: error: cannot compute sizeof (int), 77
13257 See \`config.log' for more details." >&2;}
13258 { (exit 1); exit 1; }; }
13260 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13268 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13269 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13270 cat >>confdefs.h <<_ACEOF
13271 #define SIZEOF_INT $ac_cv_sizeof_int
13275 echo "$as_me:$LINENO: checking for long int" >&5
13276 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13277 if test "${ac_cv_type_long_int+set}" = set; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
13280 cat >conftest.$ac_ext <<_ACEOF
13281 #line $LINENO "configure"
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13287 $ac_includes_default
13291 if ((long int *) 0)
13293 if (sizeof (long int))
13299 rm -f conftest.$ac_objext
13300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13301 (eval $ac_compile) 2>&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } &&
13305 { ac_try='test -s conftest.$ac_objext'
13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307 (eval $ac_try) 2>&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }; }; then
13311 ac_cv_type_long_int=yes
13313 echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13316 ac_cv_type_long_int=no
13318 rm -f conftest.$ac_objext conftest.$ac_ext
13320 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13321 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13323 echo "$as_me:$LINENO: checking size of long int" >&5
13324 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13325 if test "${ac_cv_sizeof_long_int+set}" = set; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
13328 if test "$ac_cv_type_long_int" = yes; then
13329 # The cast to unsigned long works around a bug in the HP C Compiler
13330 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13331 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13332 # This bug is HP SR number 8606223364.
13333 if test "$cross_compiling" = yes; then
13334 # Depending upon the size, compute the lo and hi bounds.
13335 cat >conftest.$ac_ext <<_ACEOF
13336 #line $LINENO "configure"
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13342 $ac_includes_default
13346 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13353 rm -f conftest.$ac_objext
13354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13355 (eval $ac_compile) 2>&5
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); } &&
13359 { ac_try='test -s conftest.$ac_objext'
13360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13361 (eval $ac_try) 2>&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; }; then
13367 cat >conftest.$ac_ext <<_ACEOF
13368 #line $LINENO "configure"
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 $ac_includes_default
13378 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13385 rm -f conftest.$ac_objext
13386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13387 (eval $ac_compile) 2>&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); } &&
13391 { ac_try='test -s conftest.$ac_objext'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; }; then
13397 ac_hi=$ac_mid; break
13399 echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13402 ac_lo=`expr $ac_mid + 1`
13403 if test $ac_lo -le $ac_mid; then
13407 ac_mid=`expr 2 '*' $ac_mid + 1`
13409 rm -f conftest.$ac_objext conftest.$ac_ext
13412 echo "$as_me: failed program was:" >&5
13413 sed 's/^/| /' conftest.$ac_ext >&5
13415 cat >conftest.$ac_ext <<_ACEOF
13416 #line $LINENO "configure"
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h. */
13422 $ac_includes_default
13426 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13433 rm -f conftest.$ac_objext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13435 (eval $ac_compile) 2>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } &&
13439 { ac_try='test -s conftest.$ac_objext'
13440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441 (eval $ac_try) 2>&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
13447 cat >conftest.$ac_ext <<_ACEOF
13448 #line $LINENO "configure"
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13454 $ac_includes_default
13458 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13465 rm -f conftest.$ac_objext
13466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13467 (eval $ac_compile) 2>&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
13471 { ac_try='test -s conftest.$ac_objext'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; }; then
13477 ac_lo=$ac_mid; break
13479 echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13482 ac_hi=`expr '(' $ac_mid ')' - 1`
13483 if test $ac_mid -le $ac_hi; then
13487 ac_mid=`expr 2 '*' $ac_mid`
13489 rm -f conftest.$ac_objext conftest.$ac_ext
13492 echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13497 rm -f conftest.$ac_objext conftest.$ac_ext
13499 rm -f conftest.$ac_objext conftest.$ac_ext
13500 # Binary search between lo and hi bounds.
13501 while test "x$ac_lo" != "x$ac_hi"; do
13502 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13503 cat >conftest.$ac_ext <<_ACEOF
13504 #line $LINENO "configure"
13507 cat confdefs.h >>conftest.$ac_ext
13508 cat >>conftest.$ac_ext <<_ACEOF
13509 /* end confdefs.h. */
13510 $ac_includes_default
13514 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13521 rm -f conftest.$ac_objext
13522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13523 (eval $ac_compile) 2>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } &&
13527 { ac_try='test -s conftest.$ac_objext'
13528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529 (eval $ac_try) 2>&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; }; then
13535 echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13538 ac_lo=`expr '(' $ac_mid ')' + 1`
13540 rm -f conftest.$ac_objext conftest.$ac_ext
13543 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13544 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13545 See \`config.log' for more details." >&5
13546 echo "$as_me: error: cannot compute sizeof (long int), 77
13547 See \`config.log' for more details." >&2;}
13548 { (exit 1); exit 1; }; } ;;
13551 if test "$cross_compiling" = yes; then
13552 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13553 See \`config.log' for more details." >&5
13554 echo "$as_me: error: cannot run test program while cross compiling
13555 See \`config.log' for more details." >&2;}
13556 { (exit 1); exit 1; }; }
13558 cat >conftest.$ac_ext <<_ACEOF
13559 #line $LINENO "configure"
13562 cat confdefs.h >>conftest.$ac_ext
13563 cat >>conftest.$ac_ext <<_ACEOF
13564 /* end confdefs.h. */
13565 $ac_includes_default
13566 long longval () { return (long) (sizeof (long int)); }
13567 unsigned long ulongval () { return (long) (sizeof (long int)); }
13569 #include <stdlib.h>
13574 FILE *f = fopen ("conftest.val", "w");
13577 if (((long) (sizeof (long int))) < 0)
13579 long i = longval ();
13580 if (i != ((long) (sizeof (long int))))
13582 fprintf (f, "%ld\n", i);
13586 unsigned long i = ulongval ();
13587 if (i != ((long) (sizeof (long int))))
13589 fprintf (f, "%lu\n", i);
13591 exit (ferror (f) || fclose (f) != 0);
13597 rm -f conftest$ac_exeext
13598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13599 (eval $ac_link) 2>&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; }; then
13608 ac_cv_sizeof_long_int=`cat conftest.val`
13610 echo "$as_me: program exited with status $ac_status" >&5
13611 echo "$as_me: failed program was:" >&5
13612 sed 's/^/| /' conftest.$ac_ext >&5
13614 ( exit $ac_status )
13615 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13616 See \`config.log' for more details." >&5
13617 echo "$as_me: error: cannot compute sizeof (long int), 77
13618 See \`config.log' for more details." >&2;}
13619 { (exit 1); exit 1; }; }
13621 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13626 ac_cv_sizeof_long_int=0
13629 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13630 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13631 cat >>confdefs.h <<_ACEOF
13632 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13636 echo "$as_me:$LINENO: checking for long long int" >&5
13637 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13638 if test "${ac_cv_type_long_long_int+set}" = set; then
13639 echo $ECHO_N "(cached) $ECHO_C" >&6
13641 cat >conftest.$ac_ext <<_ACEOF
13642 #line $LINENO "configure"
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13648 $ac_includes_default
13652 if ((long long int *) 0)
13654 if (sizeof (long long int))
13660 rm -f conftest.$ac_objext
13661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13662 (eval $ac_compile) 2>&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); } &&
13666 { ac_try='test -s conftest.$ac_objext'
13667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668 (eval $ac_try) 2>&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; }; then
13672 ac_cv_type_long_long_int=yes
13674 echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13677 ac_cv_type_long_long_int=no
13679 rm -f conftest.$ac_objext conftest.$ac_ext
13681 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13682 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13684 echo "$as_me:$LINENO: checking size of long long int" >&5
13685 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13686 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13689 if test "$ac_cv_type_long_long_int" = yes; then
13690 # The cast to unsigned long works around a bug in the HP C Compiler
13691 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13692 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13693 # This bug is HP SR number 8606223364.
13694 if test "$cross_compiling" = yes; then
13695 # Depending upon the size, compute the lo and hi bounds.
13696 cat >conftest.$ac_ext <<_ACEOF
13697 #line $LINENO "configure"
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h. */
13703 $ac_includes_default
13707 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13714 rm -f conftest.$ac_objext
13715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13716 (eval $ac_compile) 2>&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } &&
13720 { ac_try='test -s conftest.$ac_objext'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13728 cat >conftest.$ac_ext <<_ACEOF
13729 #line $LINENO "configure"
13732 cat confdefs.h >>conftest.$ac_ext
13733 cat >>conftest.$ac_ext <<_ACEOF
13734 /* end confdefs.h. */
13735 $ac_includes_default
13739 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13746 rm -f conftest.$ac_objext
13747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13748 (eval $ac_compile) 2>&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); } &&
13752 { ac_try='test -s conftest.$ac_objext'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; }; then
13758 ac_hi=$ac_mid; break
13760 echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13763 ac_lo=`expr $ac_mid + 1`
13764 if test $ac_lo -le $ac_mid; then
13768 ac_mid=`expr 2 '*' $ac_mid + 1`
13770 rm -f conftest.$ac_objext conftest.$ac_ext
13773 echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13776 cat >conftest.$ac_ext <<_ACEOF
13777 #line $LINENO "configure"
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13783 $ac_includes_default
13787 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13794 rm -f conftest.$ac_objext
13795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13796 (eval $ac_compile) 2>&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); } &&
13800 { ac_try='test -s conftest.$ac_objext'
13801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802 (eval $ac_try) 2>&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); }; }; then
13808 cat >conftest.$ac_ext <<_ACEOF
13809 #line $LINENO "configure"
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13815 $ac_includes_default
13819 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13826 rm -f conftest.$ac_objext
13827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13828 (eval $ac_compile) 2>&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); } &&
13832 { ac_try='test -s conftest.$ac_objext'
13833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834 (eval $ac_try) 2>&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }; then
13838 ac_lo=$ac_mid; break
13840 echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13843 ac_hi=`expr '(' $ac_mid ')' - 1`
13844 if test $ac_mid -le $ac_hi; then
13848 ac_mid=`expr 2 '*' $ac_mid`
13850 rm -f conftest.$ac_objext conftest.$ac_ext
13853 echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.$ac_ext >&5
13858 rm -f conftest.$ac_objext conftest.$ac_ext
13860 rm -f conftest.$ac_objext conftest.$ac_ext
13861 # Binary search between lo and hi bounds.
13862 while test "x$ac_lo" != "x$ac_hi"; do
13863 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13864 cat >conftest.$ac_ext <<_ACEOF
13865 #line $LINENO "configure"
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h. */
13871 $ac_includes_default
13875 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13882 rm -f conftest.$ac_objext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13884 (eval $ac_compile) 2>&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } &&
13888 { ac_try='test -s conftest.$ac_objext'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; }; then
13896 echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13899 ac_lo=`expr '(' $ac_mid ')' + 1`
13901 rm -f conftest.$ac_objext conftest.$ac_ext
13904 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13905 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13906 See \`config.log' for more details." >&5
13907 echo "$as_me: error: cannot compute sizeof (long long int), 77
13908 See \`config.log' for more details." >&2;}
13909 { (exit 1); exit 1; }; } ;;
13912 if test "$cross_compiling" = yes; then
13913 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13914 See \`config.log' for more details." >&5
13915 echo "$as_me: error: cannot run test program while cross compiling
13916 See \`config.log' for more details." >&2;}
13917 { (exit 1); exit 1; }; }
13919 cat >conftest.$ac_ext <<_ACEOF
13920 #line $LINENO "configure"
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h. */
13926 $ac_includes_default
13927 long longval () { return (long) (sizeof (long long int)); }
13928 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13930 #include <stdlib.h>
13935 FILE *f = fopen ("conftest.val", "w");
13938 if (((long) (sizeof (long long int))) < 0)
13940 long i = longval ();
13941 if (i != ((long) (sizeof (long long int))))
13943 fprintf (f, "%ld\n", i);
13947 unsigned long i = ulongval ();
13948 if (i != ((long) (sizeof (long long int))))
13950 fprintf (f, "%lu\n", i);
13952 exit (ferror (f) || fclose (f) != 0);
13958 rm -f conftest$ac_exeext
13959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13960 (eval $ac_link) 2>&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13965 (eval $ac_try) 2>&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; }; then
13969 ac_cv_sizeof_long_long_int=`cat conftest.val`
13971 echo "$as_me: program exited with status $ac_status" >&5
13972 echo "$as_me: failed program was:" >&5
13973 sed 's/^/| /' conftest.$ac_ext >&5
13975 ( exit $ac_status )
13976 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13977 See \`config.log' for more details." >&5
13978 echo "$as_me: error: cannot compute sizeof (long long int), 77
13979 See \`config.log' for more details." >&2;}
13980 { (exit 1); exit 1; }; }
13982 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13987 ac_cv_sizeof_long_long_int=0
13990 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13991 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13992 cat >>confdefs.h <<_ACEOF
13993 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13997 echo "$as_me:$LINENO: checking for int *" >&5
13998 echo $ECHO_N "checking for int *... $ECHO_C" >&6
13999 if test "${ac_cv_type_int_p+set}" = set; then
14000 echo $ECHO_N "(cached) $ECHO_C" >&6
14002 cat >conftest.$ac_ext <<_ACEOF
14003 #line $LINENO "configure"
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14009 $ac_includes_default
14015 if (sizeof (int *))
14021 rm -f conftest.$ac_objext
14022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14023 (eval $ac_compile) 2>&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -s conftest.$ac_objext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 ac_cv_type_int_p=yes
14035 echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14038 ac_cv_type_int_p=no
14040 rm -f conftest.$ac_objext conftest.$ac_ext
14042 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14043 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14045 echo "$as_me:$LINENO: checking size of int *" >&5
14046 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14047 if test "${ac_cv_sizeof_int_p+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14050 if test "$ac_cv_type_int_p" = yes; then
14051 # The cast to unsigned long works around a bug in the HP C Compiler
14052 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14053 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14054 # This bug is HP SR number 8606223364.
14055 if test "$cross_compiling" = yes; then
14056 # Depending upon the size, compute the lo and hi bounds.
14057 cat >conftest.$ac_ext <<_ACEOF
14058 #line $LINENO "configure"
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14064 $ac_includes_default
14068 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14075 rm -f conftest.$ac_objext
14076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14077 (eval $ac_compile) 2>&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } &&
14081 { ac_try='test -s conftest.$ac_objext'
14082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083 (eval $ac_try) 2>&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; }; then
14089 cat >conftest.$ac_ext <<_ACEOF
14090 #line $LINENO "configure"
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h. */
14096 $ac_includes_default
14100 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14107 rm -f conftest.$ac_objext
14108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14109 (eval $ac_compile) 2>&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); } &&
14113 { ac_try='test -s conftest.$ac_objext'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14119 ac_hi=$ac_mid; break
14121 echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14124 ac_lo=`expr $ac_mid + 1`
14125 if test $ac_lo -le $ac_mid; then
14129 ac_mid=`expr 2 '*' $ac_mid + 1`
14131 rm -f conftest.$ac_objext conftest.$ac_ext
14134 echo "$as_me: failed program was:" >&5
14135 sed 's/^/| /' conftest.$ac_ext >&5
14137 cat >conftest.$ac_ext <<_ACEOF
14138 #line $LINENO "configure"
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h. */
14144 $ac_includes_default
14148 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14155 rm -f conftest.$ac_objext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14157 (eval $ac_compile) 2>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } &&
14161 { ac_try='test -s conftest.$ac_objext'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; }; then
14169 cat >conftest.$ac_ext <<_ACEOF
14170 #line $LINENO "configure"
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h. */
14176 $ac_includes_default
14180 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14187 rm -f conftest.$ac_objext
14188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14189 (eval $ac_compile) 2>&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } &&
14193 { ac_try='test -s conftest.$ac_objext'
14194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14195 (eval $ac_try) 2>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); }; }; then
14199 ac_lo=$ac_mid; break
14201 echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14204 ac_hi=`expr '(' $ac_mid ')' - 1`
14205 if test $ac_mid -le $ac_hi; then
14209 ac_mid=`expr 2 '*' $ac_mid`
14211 rm -f conftest.$ac_objext conftest.$ac_ext
14214 echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14219 rm -f conftest.$ac_objext conftest.$ac_ext
14221 rm -f conftest.$ac_objext conftest.$ac_ext
14222 # Binary search between lo and hi bounds.
14223 while test "x$ac_lo" != "x$ac_hi"; do
14224 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14225 cat >conftest.$ac_ext <<_ACEOF
14226 #line $LINENO "configure"
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 $ac_includes_default
14236 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14243 rm -f conftest.$ac_objext
14244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14245 (eval $ac_compile) 2>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); } &&
14249 { ac_try='test -s conftest.$ac_objext'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14257 echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ac_lo=`expr '(' $ac_mid ')' + 1`
14262 rm -f conftest.$ac_objext conftest.$ac_ext
14265 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14266 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14267 See \`config.log' for more details." >&5
14268 echo "$as_me: error: cannot compute sizeof (int *), 77
14269 See \`config.log' for more details." >&2;}
14270 { (exit 1); exit 1; }; } ;;
14273 if test "$cross_compiling" = yes; then
14274 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14275 See \`config.log' for more details." >&5
14276 echo "$as_me: error: cannot run test program while cross compiling
14277 See \`config.log' for more details." >&2;}
14278 { (exit 1); exit 1; }; }
14280 cat >conftest.$ac_ext <<_ACEOF
14281 #line $LINENO "configure"
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h. */
14287 $ac_includes_default
14288 long longval () { return (long) (sizeof (int *)); }
14289 unsigned long ulongval () { return (long) (sizeof (int *)); }
14291 #include <stdlib.h>
14296 FILE *f = fopen ("conftest.val", "w");
14299 if (((long) (sizeof (int *))) < 0)
14301 long i = longval ();
14302 if (i != ((long) (sizeof (int *))))
14304 fprintf (f, "%ld\n", i);
14308 unsigned long i = ulongval ();
14309 if (i != ((long) (sizeof (int *))))
14311 fprintf (f, "%lu\n", i);
14313 exit (ferror (f) || fclose (f) != 0);
14319 rm -f conftest$ac_exeext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14321 (eval $ac_link) 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326 (eval $ac_try) 2>&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; }; then
14330 ac_cv_sizeof_int_p=`cat conftest.val`
14332 echo "$as_me: program exited with status $ac_status" >&5
14333 echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14336 ( exit $ac_status )
14337 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14338 See \`config.log' for more details." >&5
14339 echo "$as_me: error: cannot compute sizeof (int *), 77
14340 See \`config.log' for more details." >&2;}
14341 { (exit 1); exit 1; }; }
14343 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14348 ac_cv_sizeof_int_p=0
14351 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14352 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14353 cat >>confdefs.h <<_ACEOF
14354 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14359 # Check for sys/types.h types
14360 echo "$as_me:$LINENO: checking for u_int type" >&5
14361 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14362 if test "${ac_cv_have_u_int+set}" = set; then
14363 echo $ECHO_N "(cached) $ECHO_C" >&6
14366 cat >conftest.$ac_ext <<_ACEOF
14367 #line $LINENO "configure"
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14373 #include <sys/types.h>
14382 rm -f conftest.$ac_objext
14383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14384 (eval $ac_compile) 2>&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } &&
14388 { ac_try='test -s conftest.$ac_objext'
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; }; then
14394 ac_cv_have_u_int="yes"
14396 echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.$ac_ext >&5
14399 ac_cv_have_u_int="no"
14402 rm -f conftest.$ac_objext conftest.$ac_ext
14405 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14406 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14407 if test "x$ac_cv_have_u_int" = "xyes" ; then
14408 cat >>confdefs.h <<\_ACEOF
14409 #define HAVE_U_INT 1
14415 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14416 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14417 if test "${ac_cv_have_intmax_t+set}" = set; then
14418 echo $ECHO_N "(cached) $ECHO_C" >&6
14421 cat >conftest.$ac_ext <<_ACEOF
14422 #line $LINENO "configure"
14425 cat confdefs.h >>conftest.$ac_ext
14426 cat >>conftest.$ac_ext <<_ACEOF
14427 /* end confdefs.h. */
14428 #include <sys/types.h>
14437 rm -f conftest.$ac_objext
14438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14439 (eval $ac_compile) 2>&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } &&
14443 { ac_try='test -s conftest.$ac_objext'
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; }; then
14449 ac_cv_have_intmax_t="yes"
14451 echo "$as_me: failed program was:" >&5
14452 sed 's/^/| /' conftest.$ac_ext >&5
14455 cat >conftest.$ac_ext <<_ACEOF
14456 #line $LINENO "configure"
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h. */
14462 #include <stdint.h>
14471 rm -f conftest.$ac_objext
14472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14473 (eval $ac_compile) 2>&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); } &&
14477 { ac_try='test -s conftest.$ac_objext'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; }; then
14483 ac_cv_have_intmax_t="yes"
14485 echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.$ac_ext >&5
14488 ac_cv_have_intmax_t="no"
14491 rm -f conftest.$ac_objext conftest.$ac_ext
14495 rm -f conftest.$ac_objext conftest.$ac_ext
14499 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14500 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14501 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14502 cat >>confdefs.h <<\_ACEOF
14503 #define HAVE_INTMAX_T 1
14510 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14511 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14512 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14516 cat >conftest.$ac_ext <<_ACEOF
14517 #line $LINENO "configure"
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14523 #include <sys/types.h>
14527 u_intmax_t a; a = 1;
14532 rm -f conftest.$ac_objext
14533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14534 (eval $ac_compile) 2>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); } &&
14538 { ac_try='test -s conftest.$ac_objext'
14539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540 (eval $ac_try) 2>&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; }; then
14544 ac_cv_have_u_intmax_t="yes"
14546 echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14550 cat >conftest.$ac_ext <<_ACEOF
14551 #line $LINENO "configure"
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h. */
14557 #include <stdint.h>
14561 u_intmax_t a; a = 1;
14566 rm -f conftest.$ac_objext
14567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14568 (eval $ac_compile) 2>&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); } &&
14572 { ac_try='test -s conftest.$ac_objext'
14573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; }; then
14578 ac_cv_have_u_intmax_t="yes"
14580 echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14583 ac_cv_have_u_intmax_t="no"
14586 rm -f conftest.$ac_objext conftest.$ac_ext
14590 rm -f conftest.$ac_objext conftest.$ac_ext
14593 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14594 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14595 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14596 cat >>confdefs.h <<\_ACEOF
14597 #define HAVE_U_INTMAX_T 1
14604 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14605 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14606 if test "${ac_cv_have_intxx_t+set}" = set; then
14607 echo $ECHO_N "(cached) $ECHO_C" >&6
14610 cat >conftest.$ac_ext <<_ACEOF
14611 #line $LINENO "configure"
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h. */
14617 #include <sys/types.h>
14621 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14626 rm -f conftest.$ac_objext
14627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14628 (eval $ac_compile) 2>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
14632 { ac_try='test -s conftest.$ac_objext'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14638 ac_cv_have_intxx_t="yes"
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14643 ac_cv_have_intxx_t="no"
14646 rm -f conftest.$ac_objext conftest.$ac_ext
14649 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14650 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14651 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14652 cat >>confdefs.h <<\_ACEOF
14653 #define HAVE_INTXX_T 1
14659 echo "$as_me:$LINENO: checking for int64_t type" >&5
14660 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14661 if test "${ac_cv_have_int64_t+set}" = set; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14665 cat >conftest.$ac_ext <<_ACEOF
14666 #line $LINENO "configure"
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h. */
14672 #include <sys/types.h>
14681 rm -f conftest.$ac_objext
14682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14683 (eval $ac_compile) 2>&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } &&
14687 { ac_try='test -s conftest.$ac_objext'
14688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689 (eval $ac_try) 2>&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; }; then
14693 ac_cv_have_int64_t="yes"
14695 echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14698 ac_cv_have_int64_t="no"
14701 rm -f conftest.$ac_objext conftest.$ac_ext
14704 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14705 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14706 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14707 cat >>confdefs.h <<\_ACEOF
14708 #define HAVE_INT64_T 1
14714 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14715 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14716 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14720 cat >conftest.$ac_ext <<_ACEOF
14721 #line $LINENO "configure"
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h. */
14727 #include <sys/types.h>
14731 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14736 rm -f conftest.$ac_objext
14737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14738 (eval $ac_compile) 2>&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } &&
14742 { ac_try='test -s conftest.$ac_objext'
14743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744 (eval $ac_try) 2>&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); }; }; then
14748 ac_cv_have_u_intxx_t="yes"
14750 echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14753 ac_cv_have_u_intxx_t="no"
14756 rm -f conftest.$ac_objext conftest.$ac_ext
14759 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14760 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14761 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14762 cat >>confdefs.h <<\_ACEOF
14763 #define HAVE_U_INTXX_T 1
14769 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14770 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14771 if test "${ac_cv_have_u_int64_t+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14775 cat >conftest.$ac_ext <<_ACEOF
14776 #line $LINENO "configure"
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h. */
14782 #include <sys/types.h>
14786 u_int64_t a; a = 1;
14791 rm -f conftest.$ac_objext
14792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14793 (eval $ac_compile) 2>&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } &&
14797 { ac_try='test -s conftest.$ac_objext'
14798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799 (eval $ac_try) 2>&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); }; }; then
14803 ac_cv_have_u_int64_t="yes"
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14808 ac_cv_have_u_int64_t="no"
14811 rm -f conftest.$ac_objext conftest.$ac_ext
14814 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14815 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14816 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14817 cat >>confdefs.h <<\_ACEOF
14818 #define HAVE_U_INT64_T 1
14824 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14825 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14827 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14828 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14829 cat >conftest.$ac_ext <<_ACEOF
14830 #line $LINENO "configure"
14833 cat confdefs.h >>conftest.$ac_ext
14834 cat >>conftest.$ac_ext <<_ACEOF
14835 /* end confdefs.h. */
14836 #include <sys/bitypes.h>
14840 int8_t a; int16_t b; int32_t c;
14841 u_int8_t e; u_int16_t f; u_int32_t g;
14842 a = b = c = e = f = g = 1;
14847 rm -f conftest.$ac_objext
14848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14849 (eval $ac_compile) 2>&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); } &&
14853 { ac_try='test -s conftest.$ac_objext'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; }; then
14859 cat >>confdefs.h <<\_ACEOF
14860 #define HAVE_U_INTXX_T 1
14863 cat >>confdefs.h <<\_ACEOF
14864 #define HAVE_INTXX_T 1
14867 cat >>confdefs.h <<\_ACEOF
14868 #define HAVE_SYS_BITYPES_H 1
14871 echo "$as_me:$LINENO: result: yes" >&5
14872 echo "${ECHO_T}yes" >&6
14874 echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14877 echo "$as_me:$LINENO: result: no" >&5
14878 echo "${ECHO_T}no" >&6
14881 rm -f conftest.$ac_objext conftest.$ac_ext
14884 if test -z "$have_u_intxx_t" ; then
14885 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14886 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14887 if test "${ac_cv_have_uintxx_t+set}" = set; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14891 cat >conftest.$ac_ext <<_ACEOF
14892 #line $LINENO "configure"
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h. */
14898 #include <sys/types.h>
14902 uint8_t a; uint16_t b;
14903 uint32_t c; a = b = c = 1;
14908 rm -f conftest.$ac_objext
14909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14910 (eval $ac_compile) 2>&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } &&
14914 { ac_try='test -s conftest.$ac_objext'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14920 ac_cv_have_uintxx_t="yes"
14922 echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14925 ac_cv_have_uintxx_t="no"
14928 rm -f conftest.$ac_objext conftest.$ac_ext
14931 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14932 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14933 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14934 cat >>confdefs.h <<\_ACEOF
14935 #define HAVE_UINTXX_T 1
14971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14972 echo "$as_me:$LINENO: checking for $ac_func" >&5
14973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14974 if eval "test \"\${$as_ac_var+set}\" = set"; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14977 cat >conftest.$ac_ext <<_ACEOF
14978 #line $LINENO "configure"
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14984 /* System header to define __stub macros and hopefully few prototypes,
14985 which can conflict with char $ac_func (); below.
14986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14987 <limits.h> exists even on freestanding compilers. */
14989 # include <limits.h>
14991 # include <assert.h>
14993 /* Override any gcc2 internal prototype to avoid an error. */
14998 /* We use char because int might match the return type of a gcc2
14999 builtin and then its argument prototype would still apply. */
15001 /* The GNU C library defines this for functions which it implements
15002 to always fail with ENOSYS. Some functions are actually named
15003 something starting with __ and the normal name is an alias. */
15004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15007 char (*f) () = $ac_func;
15016 return f != $ac_func;
15021 rm -f conftest.$ac_objext conftest$ac_exeext
15022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15023 (eval $ac_link) 2>&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } &&
15027 { ac_try='test -s conftest$ac_exeext'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; }; then
15033 eval "$as_ac_var=yes"
15035 echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15038 eval "$as_ac_var=no"
15040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15044 if test `eval echo '${'$as_ac_var'}'` = yes; then
15045 cat >>confdefs.h <<_ACEOF
15046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15050 echo 'configure: cannot find needed function.'; exit 1
15057 for ac_func in fchdir
15059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15060 echo "$as_me:$LINENO: checking for $ac_func" >&5
15061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15062 if eval "test \"\${$as_ac_var+set}\" = set"; then
15063 echo $ECHO_N "(cached) $ECHO_C" >&6
15065 cat >conftest.$ac_ext <<_ACEOF
15066 #line $LINENO "configure"
15069 cat confdefs.h >>conftest.$ac_ext
15070 cat >>conftest.$ac_ext <<_ACEOF
15071 /* end confdefs.h. */
15072 /* System header to define __stub macros and hopefully few prototypes,
15073 which can conflict with char $ac_func (); below.
15074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15075 <limits.h> exists even on freestanding compilers. */
15077 # include <limits.h>
15079 # include <assert.h>
15081 /* Override any gcc2 internal prototype to avoid an error. */
15086 /* We use char because int might match the return type of a gcc2
15087 builtin and then its argument prototype would still apply. */
15089 /* The GNU C library defines this for functions which it implements
15090 to always fail with ENOSYS. Some functions are actually named
15091 something starting with __ and the normal name is an alias. */
15092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15095 char (*f) () = $ac_func;
15104 return f != $ac_func;
15109 rm -f conftest.$ac_objext conftest$ac_exeext
15110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15111 (eval $ac_link) 2>&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } &&
15115 { ac_try='test -s conftest$ac_exeext'
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 eval "$as_ac_var=yes"
15123 echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15126 eval "$as_ac_var=no"
15128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15132 if test `eval echo '${'$as_ac_var'}'` = yes; then
15133 cat >>confdefs.h <<_ACEOF
15134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15136 cat >>confdefs.h <<\_ACEOF
15137 #define HAVE_FCHDIR 1
15144 for ac_func in strtoll
15146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15147 echo "$as_me:$LINENO: checking for $ac_func" >&5
15148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15149 if eval "test \"\${$as_ac_var+set}\" = set"; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15152 cat >conftest.$ac_ext <<_ACEOF
15153 #line $LINENO "configure"
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h. */
15159 /* System header to define __stub macros and hopefully few prototypes,
15160 which can conflict with char $ac_func (); below.
15161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15162 <limits.h> exists even on freestanding compilers. */
15164 # include <limits.h>
15166 # include <assert.h>
15168 /* Override any gcc2 internal prototype to avoid an error. */
15173 /* We use char because int might match the return type of a gcc2
15174 builtin and then its argument prototype would still apply. */
15176 /* The GNU C library defines this for functions which it implements
15177 to always fail with ENOSYS. Some functions are actually named
15178 something starting with __ and the normal name is an alias. */
15179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15182 char (*f) () = $ac_func;
15191 return f != $ac_func;
15196 rm -f conftest.$ac_objext conftest$ac_exeext
15197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15198 (eval $ac_link) 2>&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } &&
15202 { ac_try='test -s conftest$ac_exeext'
15203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204 (eval $ac_try) 2>&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; }; then
15208 eval "$as_ac_var=yes"
15210 echo "$as_me: failed program was:" >&5
15211 sed 's/^/| /' conftest.$ac_ext >&5
15213 eval "$as_ac_var=no"
15215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15219 if test `eval echo '${'$as_ac_var'}'` = yes; then
15220 cat >>confdefs.h <<_ACEOF
15221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15223 cat >>confdefs.h <<\_ACEOF
15224 #define HAVE_STRTOLL 1
15232 for ac_func in chflags
15234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15235 echo "$as_me:$LINENO: checking for $ac_func" >&5
15236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15237 if eval "test \"\${$as_ac_var+set}\" = set"; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15240 cat >conftest.$ac_ext <<_ACEOF
15241 #line $LINENO "configure"
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h. */
15247 /* System header to define __stub macros and hopefully few prototypes,
15248 which can conflict with char $ac_func (); below.
15249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15250 <limits.h> exists even on freestanding compilers. */
15252 # include <limits.h>
15254 # include <assert.h>
15256 /* Override any gcc2 internal prototype to avoid an error. */
15261 /* We use char because int might match the return type of a gcc2
15262 builtin and then its argument prototype would still apply. */
15264 /* The GNU C library defines this for functions which it implements
15265 to always fail with ENOSYS. Some functions are actually named
15266 something starting with __ and the normal name is an alias. */
15267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15270 char (*f) () = $ac_func;
15279 return f != $ac_func;
15284 rm -f conftest.$ac_objext conftest$ac_exeext
15285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15286 (eval $ac_link) 2>&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } &&
15290 { ac_try='test -s conftest$ac_exeext'
15291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292 (eval $ac_try) 2>&5
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); }; }; then
15296 eval "$as_ac_var=yes"
15298 echo "$as_me: failed program was:" >&5
15299 sed 's/^/| /' conftest.$ac_ext >&5
15301 eval "$as_ac_var=no"
15303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15307 if test `eval echo '${'$as_ac_var'}'` = yes; then
15308 cat >>confdefs.h <<_ACEOF
15309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15320 for ac_func in snprintf vsnprintf gethostid getdomainname
15322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15323 echo "$as_me:$LINENO: checking for $ac_func" >&5
15324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15325 if eval "test \"\${$as_ac_var+set}\" = set"; then
15326 echo $ECHO_N "(cached) $ECHO_C" >&6
15328 cat >conftest.$ac_ext <<_ACEOF
15329 #line $LINENO "configure"
15332 cat confdefs.h >>conftest.$ac_ext
15333 cat >>conftest.$ac_ext <<_ACEOF
15334 /* end confdefs.h. */
15335 /* System header to define __stub macros and hopefully few prototypes,
15336 which can conflict with char $ac_func (); below.
15337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15338 <limits.h> exists even on freestanding compilers. */
15340 # include <limits.h>
15342 # include <assert.h>
15344 /* Override any gcc2 internal prototype to avoid an error. */
15349 /* We use char because int might match the return type of a gcc2
15350 builtin and then its argument prototype would still apply. */
15352 /* The GNU C library defines this for functions which it implements
15353 to always fail with ENOSYS. Some functions are actually named
15354 something starting with __ and the normal name is an alias. */
15355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15358 char (*f) () = $ac_func;
15367 return f != $ac_func;
15372 rm -f conftest.$ac_objext conftest$ac_exeext
15373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15374 (eval $ac_link) 2>&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -s conftest$ac_exeext'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 eval "$as_ac_var=yes"
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15389 eval "$as_ac_var=no"
15391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15395 if test `eval echo '${'$as_ac_var'}'` = yes; then
15396 cat >>confdefs.h <<_ACEOF
15397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15408 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15411 echo "$as_me:$LINENO: checking for $ac_func" >&5
15412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15413 if eval "test \"\${$as_ac_var+set}\" = set"; then
15414 echo $ECHO_N "(cached) $ECHO_C" >&6
15416 cat >conftest.$ac_ext <<_ACEOF
15417 #line $LINENO "configure"
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 /* System header to define __stub macros and hopefully few prototypes,
15424 which can conflict with char $ac_func (); below.
15425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15426 <limits.h> exists even on freestanding compilers. */
15428 # include <limits.h>
15430 # include <assert.h>
15432 /* Override any gcc2 internal prototype to avoid an error. */
15437 /* We use char because int might match the return type of a gcc2
15438 builtin and then its argument prototype would still apply. */
15440 /* The GNU C library defines this for functions which it implements
15441 to always fail with ENOSYS. Some functions are actually named
15442 something starting with __ and the normal name is an alias. */
15443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15446 char (*f) () = $ac_func;
15455 return f != $ac_func;
15460 rm -f conftest.$ac_objext conftest$ac_exeext
15461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15462 (eval $ac_link) 2>&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); } &&
15466 { ac_try='test -s conftest$ac_exeext'
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; }; then
15472 eval "$as_ac_var=yes"
15474 echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15477 eval "$as_ac_var=no"
15479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15483 if test `eval echo '${'$as_ac_var'}'` = yes; then
15484 cat >>confdefs.h <<_ACEOF
15485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15492 # If resolver functions are not in libc check for -lnsl or -lresolv.
15493 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15494 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15495 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15496 echo $ECHO_N "(cached) $ECHO_C" >&6
15498 cat >conftest.$ac_ext <<_ACEOF
15499 #line $LINENO "configure"
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h. */
15505 /* System header to define __stub macros and hopefully few prototypes,
15506 which can conflict with char gethostbyname_r (); below.
15507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15508 <limits.h> exists even on freestanding compilers. */
15510 # include <limits.h>
15512 # include <assert.h>
15514 /* Override any gcc2 internal prototype to avoid an error. */
15519 /* We use char because int might match the return type of a gcc2
15520 builtin and then its argument prototype would still apply. */
15521 char gethostbyname_r ();
15522 /* The GNU C library defines this for functions which it implements
15523 to always fail with ENOSYS. Some functions are actually named
15524 something starting with __ and the normal name is an alias. */
15525 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15528 char (*f) () = gethostbyname_r;
15537 return f != gethostbyname_r;
15542 rm -f conftest.$ac_objext conftest$ac_exeext
15543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15544 (eval $ac_link) 2>&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
15548 { ac_try='test -s conftest$ac_exeext'
15549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550 (eval $ac_try) 2>&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; }; then
15554 ac_cv_func_gethostbyname_r=yes
15556 echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15559 ac_cv_func_gethostbyname_r=no
15561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15563 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15564 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15565 if test $ac_cv_func_gethostbyname_r = yes; then
15566 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15567 echo "${ECHO_T}using libc's resolver" >&6
15570 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15571 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15572 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15575 ac_check_lib_save_LIBS=$LIBS
15577 cat >conftest.$ac_ext <<_ACEOF
15578 #line $LINENO "configure"
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h. */
15585 /* Override any gcc2 internal prototype to avoid an error. */
15589 /* We use char because int might match the return type of a gcc2
15590 builtin and then its argument prototype would still apply. */
15591 char gethostbyname_r ();
15595 gethostbyname_r ();
15600 rm -f conftest.$ac_objext conftest$ac_exeext
15601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15602 (eval $ac_link) 2>&5
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } &&
15606 { ac_try='test -s conftest$ac_exeext'
15607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608 (eval $ac_try) 2>&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; }; then
15612 ac_cv_lib_nsl_gethostbyname_r=yes
15614 echo "$as_me: failed program was:" >&5
15615 sed 's/^/| /' conftest.$ac_ext >&5
15617 ac_cv_lib_nsl_gethostbyname_r=no
15619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15620 LIBS=$ac_check_lib_save_LIBS
15622 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15623 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15624 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15625 cat >>confdefs.h <<_ACEOF
15626 #define HAVE_LIBNSL 1
15634 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15635 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15636 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15639 ac_check_lib_save_LIBS=$LIBS
15640 LIBS="-lresolv $LIBS"
15641 cat >conftest.$ac_ext <<_ACEOF
15642 #line $LINENO "configure"
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h. */
15649 /* Override any gcc2 internal prototype to avoid an error. */
15653 /* We use char because int might match the return type of a gcc2
15654 builtin and then its argument prototype would still apply. */
15655 char gethostbyname_r ();
15659 gethostbyname_r ();
15664 rm -f conftest.$ac_objext conftest$ac_exeext
15665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15666 (eval $ac_link) 2>&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } &&
15670 { ac_try='test -s conftest$ac_exeext'
15671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672 (eval $ac_try) 2>&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; }; then
15676 ac_cv_lib_resolv_gethostbyname_r=yes
15678 echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15681 ac_cv_lib_resolv_gethostbyname_r=no
15683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15684 LIBS=$ac_check_lib_save_LIBS
15686 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15687 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15688 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15689 cat >>confdefs.h <<_ACEOF
15690 #define HAVE_LIBRESOLV 1
15693 LIBS="-lresolv $LIBS"
15701 # Find where sockets are (especially for Solaris)
15702 echo "$as_me:$LINENO: checking for socket" >&5
15703 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15704 if test "${ac_cv_func_socket+set}" = set; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15707 cat >conftest.$ac_ext <<_ACEOF
15708 #line $LINENO "configure"
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15714 /* System header to define __stub macros and hopefully few prototypes,
15715 which can conflict with char socket (); below.
15716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15717 <limits.h> exists even on freestanding compilers. */
15719 # include <limits.h>
15721 # include <assert.h>
15723 /* Override any gcc2 internal prototype to avoid an error. */
15728 /* We use char because int might match the return type of a gcc2
15729 builtin and then its argument prototype would still apply. */
15731 /* The GNU C library defines this for functions which it implements
15732 to always fail with ENOSYS. Some functions are actually named
15733 something starting with __ and the normal name is an alias. */
15734 #if defined (__stub_socket) || defined (__stub___socket)
15737 char (*f) () = socket;
15746 return f != socket;
15751 rm -f conftest.$ac_objext conftest$ac_exeext
15752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15753 (eval $ac_link) 2>&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } &&
15757 { ac_try='test -s conftest$ac_exeext'
15758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759 (eval $ac_try) 2>&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; }; then
15763 ac_cv_func_socket=yes
15765 echo "$as_me: failed program was:" >&5
15766 sed 's/^/| /' conftest.$ac_ext >&5
15768 ac_cv_func_socket=no
15770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15772 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15773 echo "${ECHO_T}$ac_cv_func_socket" >&6
15774 if test $ac_cv_func_socket = yes; then
15775 echo "$as_me:$LINENO: result: using libc's socket" >&5
15776 echo "${ECHO_T}using libc's socket" >&6
15779 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15780 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15781 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15784 ac_check_lib_save_LIBS=$LIBS
15785 LIBS="-lxnet $LIBS"
15786 cat >conftest.$ac_ext <<_ACEOF
15787 #line $LINENO "configure"
15790 cat confdefs.h >>conftest.$ac_ext
15791 cat >>conftest.$ac_ext <<_ACEOF
15792 /* end confdefs.h. */
15794 /* Override any gcc2 internal prototype to avoid an error. */
15798 /* We use char because int might match the return type of a gcc2
15799 builtin and then its argument prototype would still apply. */
15809 rm -f conftest.$ac_objext conftest$ac_exeext
15810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15811 (eval $ac_link) 2>&5
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); } &&
15815 { ac_try='test -s conftest$ac_exeext'
15816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15817 (eval $ac_try) 2>&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; }; then
15821 ac_cv_lib_xnet_socket=yes
15823 echo "$as_me: failed program was:" >&5
15824 sed 's/^/| /' conftest.$ac_ext >&5
15826 ac_cv_lib_xnet_socket=no
15828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15829 LIBS=$ac_check_lib_save_LIBS
15831 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15832 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15833 if test $ac_cv_lib_xnet_socket = yes; then
15834 cat >>confdefs.h <<_ACEOF
15835 #define HAVE_LIBXNET 1
15838 LIBS="-lxnet $LIBS"
15843 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15844 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15845 if test "${ac_cv_lib_socket_socket+set}" = set; then
15846 echo $ECHO_N "(cached) $ECHO_C" >&6
15848 ac_check_lib_save_LIBS=$LIBS
15849 LIBS="-lsocket $LIBS"
15850 cat >conftest.$ac_ext <<_ACEOF
15851 #line $LINENO "configure"
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15858 /* Override any gcc2 internal prototype to avoid an error. */
15862 /* We use char because int might match the return type of a gcc2
15863 builtin and then its argument prototype would still apply. */
15873 rm -f conftest.$ac_objext conftest$ac_exeext
15874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15875 (eval $ac_link) 2>&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); } &&
15879 { ac_try='test -s conftest$ac_exeext'
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; }; then
15885 ac_cv_lib_socket_socket=yes
15887 echo "$as_me: failed program was:" >&5
15888 sed 's/^/| /' conftest.$ac_ext >&5
15890 ac_cv_lib_socket_socket=no
15892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15893 LIBS=$ac_check_lib_save_LIBS
15895 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15896 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15897 if test $ac_cv_lib_socket_socket = yes; then
15898 cat >>confdefs.h <<_ACEOF
15899 #define HAVE_LIBSOCKET 1
15902 LIBS="-lsocket $LIBS"
15907 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15908 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15909 if test "${ac_cv_lib_inet_socket+set}" = set; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15912 ac_check_lib_save_LIBS=$LIBS
15913 LIBS="-linet $LIBS"
15914 cat >conftest.$ac_ext <<_ACEOF
15915 #line $LINENO "configure"
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15922 /* Override any gcc2 internal prototype to avoid an error. */
15926 /* We use char because int might match the return type of a gcc2
15927 builtin and then its argument prototype would still apply. */
15937 rm -f conftest.$ac_objext conftest$ac_exeext
15938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15939 (eval $ac_link) 2>&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } &&
15943 { ac_try='test -s conftest$ac_exeext'
15944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945 (eval $ac_try) 2>&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; }; then
15949 ac_cv_lib_inet_socket=yes
15951 echo "$as_me: failed program was:" >&5
15952 sed 's/^/| /' conftest.$ac_ext >&5
15954 ac_cv_lib_inet_socket=no
15956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15957 LIBS=$ac_check_lib_save_LIBS
15959 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15960 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15961 if test $ac_cv_lib_inet_socket = yes; then
15962 cat >>confdefs.h <<_ACEOF
15963 #define HAVE_LIBINET 1
15966 LIBS="-linet $LIBS"
15974 for ac_func in inet_pton
15976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15977 echo "$as_me:$LINENO: checking for $ac_func" >&5
15978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15979 if eval "test \"\${$as_ac_var+set}\" = set"; then
15980 echo $ECHO_N "(cached) $ECHO_C" >&6
15982 cat >conftest.$ac_ext <<_ACEOF
15983 #line $LINENO "configure"
15986 cat confdefs.h >>conftest.$ac_ext
15987 cat >>conftest.$ac_ext <<_ACEOF
15988 /* end confdefs.h. */
15989 /* System header to define __stub macros and hopefully few prototypes,
15990 which can conflict with char $ac_func (); below.
15991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15992 <limits.h> exists even on freestanding compilers. */
15994 # include <limits.h>
15996 # include <assert.h>
15998 /* Override any gcc2 internal prototype to avoid an error. */
16003 /* We use char because int might match the return type of a gcc2
16004 builtin and then its argument prototype would still apply. */
16006 /* The GNU C library defines this for functions which it implements
16007 to always fail with ENOSYS. Some functions are actually named
16008 something starting with __ and the normal name is an alias. */
16009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16012 char (*f) () = $ac_func;
16021 return f != $ac_func;
16026 rm -f conftest.$ac_objext conftest$ac_exeext
16027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16028 (eval $ac_link) 2>&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } &&
16032 { ac_try='test -s conftest$ac_exeext'
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; }; then
16038 eval "$as_ac_var=yes"
16040 echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16043 eval "$as_ac_var=no"
16045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16049 if test `eval echo '${'$as_ac_var'}'` = yes; then
16050 cat >>confdefs.h <<_ACEOF
16051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16053 cat >>confdefs.h <<\_ACEOF
16054 #define HAVE_INET_PTON 1
16062 for ac_func in strftime
16064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16065 echo "$as_me:$LINENO: checking for $ac_func" >&5
16066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16067 if eval "test \"\${$as_ac_var+set}\" = set"; then
16068 echo $ECHO_N "(cached) $ECHO_C" >&6
16070 cat >conftest.$ac_ext <<_ACEOF
16071 #line $LINENO "configure"
16074 cat confdefs.h >>conftest.$ac_ext
16075 cat >>conftest.$ac_ext <<_ACEOF
16076 /* end confdefs.h. */
16077 /* System header to define __stub macros and hopefully few prototypes,
16078 which can conflict with char $ac_func (); below.
16079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16080 <limits.h> exists even on freestanding compilers. */
16082 # include <limits.h>
16084 # include <assert.h>
16086 /* Override any gcc2 internal prototype to avoid an error. */
16091 /* We use char because int might match the return type of a gcc2
16092 builtin and then its argument prototype would still apply. */
16094 /* The GNU C library defines this for functions which it implements
16095 to always fail with ENOSYS. Some functions are actually named
16096 something starting with __ and the normal name is an alias. */
16097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16100 char (*f) () = $ac_func;
16109 return f != $ac_func;
16114 rm -f conftest.$ac_objext conftest$ac_exeext
16115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16116 (eval $ac_link) 2>&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); } &&
16120 { ac_try='test -s conftest$ac_exeext'
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; }; then
16126 eval "$as_ac_var=yes"
16128 echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16131 eval "$as_ac_var=no"
16133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16137 if test `eval echo '${'$as_ac_var'}'` = yes; then
16138 cat >>confdefs.h <<_ACEOF
16139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16143 # strftime is in -lintl on SCO UNIX.
16144 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16145 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16146 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
16149 ac_check_lib_save_LIBS=$LIBS
16150 LIBS="-lintl $LIBS"
16151 cat >conftest.$ac_ext <<_ACEOF
16152 #line $LINENO "configure"
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h. */
16159 /* Override any gcc2 internal prototype to avoid an error. */
16163 /* We use char because int might match the return type of a gcc2
16164 builtin and then its argument prototype would still apply. */
16174 rm -f conftest.$ac_objext conftest$ac_exeext
16175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16176 (eval $ac_link) 2>&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } &&
16180 { ac_try='test -s conftest$ac_exeext'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16186 ac_cv_lib_intl_strftime=yes
16188 echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16191 ac_cv_lib_intl_strftime=no
16193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16194 LIBS=$ac_check_lib_save_LIBS
16196 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16197 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16198 if test $ac_cv_lib_intl_strftime = yes; then
16199 cat >>confdefs.h <<\_ACEOF
16200 #define HAVE_STRFTIME 1
16203 LIBS="-lintl $LIBS"
16210 for ac_func in vprintf
16212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16213 echo "$as_me:$LINENO: checking for $ac_func" >&5
16214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16215 if eval "test \"\${$as_ac_var+set}\" = set"; then
16216 echo $ECHO_N "(cached) $ECHO_C" >&6
16218 cat >conftest.$ac_ext <<_ACEOF
16219 #line $LINENO "configure"
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h. */
16225 /* System header to define __stub macros and hopefully few prototypes,
16226 which can conflict with char $ac_func (); below.
16227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16228 <limits.h> exists even on freestanding compilers. */
16230 # include <limits.h>
16232 # include <assert.h>
16234 /* Override any gcc2 internal prototype to avoid an error. */
16239 /* We use char because int might match the return type of a gcc2
16240 builtin and then its argument prototype would still apply. */
16242 /* The GNU C library defines this for functions which it implements
16243 to always fail with ENOSYS. Some functions are actually named
16244 something starting with __ and the normal name is an alias. */
16245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16248 char (*f) () = $ac_func;
16257 return f != $ac_func;
16262 rm -f conftest.$ac_objext conftest$ac_exeext
16263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16264 (eval $ac_link) 2>&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
16268 { ac_try='test -s conftest$ac_exeext'
16269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270 (eval $ac_try) 2>&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); }; }; then
16274 eval "$as_ac_var=yes"
16276 echo "$as_me: failed program was:" >&5
16277 sed 's/^/| /' conftest.$ac_ext >&5
16279 eval "$as_ac_var=no"
16281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16285 if test `eval echo '${'$as_ac_var'}'` = yes; then
16286 cat >>confdefs.h <<_ACEOF
16287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16290 echo "$as_me:$LINENO: checking for _doprnt" >&5
16291 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16292 if test "${ac_cv_func__doprnt+set}" = set; then
16293 echo $ECHO_N "(cached) $ECHO_C" >&6
16295 cat >conftest.$ac_ext <<_ACEOF
16296 #line $LINENO "configure"
16299 cat confdefs.h >>conftest.$ac_ext
16300 cat >>conftest.$ac_ext <<_ACEOF
16301 /* end confdefs.h. */
16302 /* System header to define __stub macros and hopefully few prototypes,
16303 which can conflict with char _doprnt (); below.
16304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16305 <limits.h> exists even on freestanding compilers. */
16307 # include <limits.h>
16309 # include <assert.h>
16311 /* Override any gcc2 internal prototype to avoid an error. */
16316 /* We use char because int might match the return type of a gcc2
16317 builtin and then its argument prototype would still apply. */
16319 /* The GNU C library defines this for functions which it implements
16320 to always fail with ENOSYS. Some functions are actually named
16321 something starting with __ and the normal name is an alias. */
16322 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16325 char (*f) () = _doprnt;
16334 return f != _doprnt;
16339 rm -f conftest.$ac_objext conftest$ac_exeext
16340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16341 (eval $ac_link) 2>&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
16345 { ac_try='test -s conftest$ac_exeext'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; }; then
16351 ac_cv_func__doprnt=yes
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16356 ac_cv_func__doprnt=no
16358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16360 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16361 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16362 if test $ac_cv_func__doprnt = yes; then
16364 cat >>confdefs.h <<\_ACEOF
16365 #define HAVE_DOPRNT 1
16374 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16375 # for constant arguments. Useless!
16376 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16377 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16378 if test "${ac_cv_working_alloca_h+set}" = set; then
16379 echo $ECHO_N "(cached) $ECHO_C" >&6
16381 cat >conftest.$ac_ext <<_ACEOF
16382 #line $LINENO "configure"
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h. */
16388 #include <alloca.h>
16392 char *p = (char *) alloca (2 * sizeof (int));
16397 rm -f conftest.$ac_objext conftest$ac_exeext
16398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16399 (eval $ac_link) 2>&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); } &&
16403 { ac_try='test -s conftest$ac_exeext'
16404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405 (eval $ac_try) 2>&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; }; then
16409 ac_cv_working_alloca_h=yes
16411 echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.$ac_ext >&5
16414 ac_cv_working_alloca_h=no
16416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16418 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16419 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16420 if test $ac_cv_working_alloca_h = yes; then
16422 cat >>confdefs.h <<\_ACEOF
16423 #define HAVE_ALLOCA_H 1
16428 echo "$as_me:$LINENO: checking for alloca" >&5
16429 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16430 if test "${ac_cv_func_alloca_works+set}" = set; then
16431 echo $ECHO_N "(cached) $ECHO_C" >&6
16433 cat >conftest.$ac_ext <<_ACEOF
16434 #line $LINENO "configure"
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h. */
16441 # define alloca __builtin_alloca
16444 # include <malloc.h>
16445 # define alloca _alloca
16448 # include <alloca.h>
16453 # ifndef alloca /* predefined by HP cc +Olibcalls */
16464 char *p = (char *) alloca (1);
16469 rm -f conftest.$ac_objext conftest$ac_exeext
16470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16471 (eval $ac_link) 2>&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); } &&
16475 { ac_try='test -s conftest$ac_exeext'
16476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; }; then
16481 ac_cv_func_alloca_works=yes
16483 echo "$as_me: failed program was:" >&5
16484 sed 's/^/| /' conftest.$ac_ext >&5
16486 ac_cv_func_alloca_works=no
16488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16490 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16491 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16493 if test $ac_cv_func_alloca_works = yes; then
16495 cat >>confdefs.h <<\_ACEOF
16496 #define HAVE_ALLOCA 1
16500 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16501 # that cause trouble. Some versions do not even contain alloca or
16502 # contain a buggy version. If you still want to use their alloca,
16503 # use ar to extract alloca.o from them instead of compiling alloca.c.
16505 ALLOCA=alloca.$ac_objext
16507 cat >>confdefs.h <<\_ACEOF
16512 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16513 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16514 if test "${ac_cv_os_cray+set}" = set; then
16515 echo $ECHO_N "(cached) $ECHO_C" >&6
16517 cat >conftest.$ac_ext <<_ACEOF
16518 #line $LINENO "configure"
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16524 #if defined(CRAY) && ! defined(CRAY2)
16531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16532 $EGREP "webecray" >/dev/null 2>&1; then
16540 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16541 echo "${ECHO_T}$ac_cv_os_cray" >&6
16542 if test $ac_cv_os_cray = yes; then
16543 for ac_func in _getb67 GETB67 getb67; do
16544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16545 echo "$as_me:$LINENO: checking for $ac_func" >&5
16546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16547 if eval "test \"\${$as_ac_var+set}\" = set"; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16550 cat >conftest.$ac_ext <<_ACEOF
16551 #line $LINENO "configure"
16554 cat confdefs.h >>conftest.$ac_ext
16555 cat >>conftest.$ac_ext <<_ACEOF
16556 /* end confdefs.h. */
16557 /* System header to define __stub macros and hopefully few prototypes,
16558 which can conflict with char $ac_func (); below.
16559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16560 <limits.h> exists even on freestanding compilers. */
16562 # include <limits.h>
16564 # include <assert.h>
16566 /* Override any gcc2 internal prototype to avoid an error. */
16571 /* We use char because int might match the return type of a gcc2
16572 builtin and then its argument prototype would still apply. */
16574 /* The GNU C library defines this for functions which it implements
16575 to always fail with ENOSYS. Some functions are actually named
16576 something starting with __ and the normal name is an alias. */
16577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16580 char (*f) () = $ac_func;
16589 return f != $ac_func;
16594 rm -f conftest.$ac_objext conftest$ac_exeext
16595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16596 (eval $ac_link) 2>&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); } &&
16600 { ac_try='test -s conftest$ac_exeext'
16601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602 (eval $ac_try) 2>&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); }; }; then
16606 eval "$as_ac_var=yes"
16608 echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16611 eval "$as_ac_var=no"
16613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16617 if test `eval echo '${'$as_ac_var'}'` = yes; then
16619 cat >>confdefs.h <<_ACEOF
16620 #define CRAY_STACKSEG_END $ac_func
16629 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16630 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16631 if test "${ac_cv_c_stack_direction+set}" = set; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 if test "$cross_compiling" = yes; then
16635 ac_cv_c_stack_direction=0
16637 cat >conftest.$ac_ext <<_ACEOF
16638 #line $LINENO "configure"
16641 cat confdefs.h >>conftest.$ac_ext
16642 cat >>conftest.$ac_ext <<_ACEOF
16643 /* end confdefs.h. */
16645 find_stack_direction ()
16647 static char *addr = 0;
16652 return find_stack_direction ();
16655 return (&dummy > addr) ? 1 : -1;
16661 exit (find_stack_direction () < 0);
16664 rm -f conftest$ac_exeext
16665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16666 (eval $ac_link) 2>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16671 (eval $ac_try) 2>&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; }; then
16675 ac_cv_c_stack_direction=1
16677 echo "$as_me: program exited with status $ac_status" >&5
16678 echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16681 ( exit $ac_status )
16682 ac_cv_c_stack_direction=-1
16684 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16687 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16688 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16690 cat >>confdefs.h <<_ACEOF
16691 #define STACK_DIRECTION $ac_cv_c_stack_direction
16697 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16698 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16699 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16700 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16701 echo $ECHO_N "(cached) $ECHO_C" >&6
16703 ac_check_lib_save_LIBS=$LIBS
16705 cat >conftest.$ac_ext <<_ACEOF
16706 #line $LINENO "configure"
16709 cat confdefs.h >>conftest.$ac_ext
16710 cat >>conftest.$ac_ext <<_ACEOF
16711 /* end confdefs.h. */
16713 /* Override any gcc2 internal prototype to avoid an error. */
16717 /* We use char because int might match the return type of a gcc2
16718 builtin and then its argument prototype would still apply. */
16728 rm -f conftest.$ac_objext conftest$ac_exeext
16729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16730 (eval $ac_link) 2>&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } &&
16734 { ac_try='test -s conftest$ac_exeext'
16735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 (eval $ac_try) 2>&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; }; then
16740 ac_cv_lib_sun_getmntent=yes
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16745 ac_cv_lib_sun_getmntent=no
16747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16748 LIBS=$ac_check_lib_save_LIBS
16750 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16751 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16752 if test $ac_cv_lib_sun_getmntent = yes; then
16755 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16756 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16757 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16758 echo $ECHO_N "(cached) $ECHO_C" >&6
16760 ac_check_lib_save_LIBS=$LIBS
16762 cat >conftest.$ac_ext <<_ACEOF
16763 #line $LINENO "configure"
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16770 /* Override any gcc2 internal prototype to avoid an error. */
16774 /* We use char because int might match the return type of a gcc2
16775 builtin and then its argument prototype would still apply. */
16785 rm -f conftest.$ac_objext conftest$ac_exeext
16786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16787 (eval $ac_link) 2>&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } &&
16791 { ac_try='test -s conftest$ac_exeext'
16792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793 (eval $ac_try) 2>&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; }; then
16797 ac_cv_lib_seq_getmntent=yes
16799 echo "$as_me: failed program was:" >&5
16800 sed 's/^/| /' conftest.$ac_ext >&5
16802 ac_cv_lib_seq_getmntent=no
16804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16805 LIBS=$ac_check_lib_save_LIBS
16807 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16808 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16809 if test $ac_cv_lib_seq_getmntent = yes; then
16812 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16813 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16814 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16815 echo $ECHO_N "(cached) $ECHO_C" >&6
16817 ac_check_lib_save_LIBS=$LIBS
16819 cat >conftest.$ac_ext <<_ACEOF
16820 #line $LINENO "configure"
16823 cat confdefs.h >>conftest.$ac_ext
16824 cat >>conftest.$ac_ext <<_ACEOF
16825 /* end confdefs.h. */
16827 /* Override any gcc2 internal prototype to avoid an error. */
16831 /* We use char because int might match the return type of a gcc2
16832 builtin and then its argument prototype would still apply. */
16842 rm -f conftest.$ac_objext conftest$ac_exeext
16843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16844 (eval $ac_link) 2>&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); } &&
16848 { ac_try='test -s conftest$ac_exeext'
16849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850 (eval $ac_try) 2>&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; }; then
16854 ac_cv_lib_gen_getmntent=yes
16856 echo "$as_me: failed program was:" >&5
16857 sed 's/^/| /' conftest.$ac_ext >&5
16859 ac_cv_lib_gen_getmntent=no
16861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16862 LIBS=$ac_check_lib_save_LIBS
16864 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16865 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16866 if test $ac_cv_lib_gen_getmntent = yes; then
16875 for ac_func in getmntent
16877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16878 echo "$as_me:$LINENO: checking for $ac_func" >&5
16879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16880 if eval "test \"\${$as_ac_var+set}\" = set"; then
16881 echo $ECHO_N "(cached) $ECHO_C" >&6
16883 cat >conftest.$ac_ext <<_ACEOF
16884 #line $LINENO "configure"
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16890 /* System header to define __stub macros and hopefully few prototypes,
16891 which can conflict with char $ac_func (); below.
16892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16893 <limits.h> exists even on freestanding compilers. */
16895 # include <limits.h>
16897 # include <assert.h>
16899 /* Override any gcc2 internal prototype to avoid an error. */
16904 /* We use char because int might match the return type of a gcc2
16905 builtin and then its argument prototype would still apply. */
16907 /* The GNU C library defines this for functions which it implements
16908 to always fail with ENOSYS. Some functions are actually named
16909 something starting with __ and the normal name is an alias. */
16910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16913 char (*f) () = $ac_func;
16922 return f != $ac_func;
16927 rm -f conftest.$ac_objext conftest$ac_exeext
16928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16929 (eval $ac_link) 2>&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } &&
16933 { ac_try='test -s conftest$ac_exeext'
16934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935 (eval $ac_try) 2>&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); }; }; then
16939 eval "$as_ac_var=yes"
16941 echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16944 eval "$as_ac_var=no"
16946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16950 if test `eval echo '${'$as_ac_var'}'` = yes; then
16951 cat >>confdefs.h <<_ACEOF
16952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16959 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16960 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16961 if test "${ac_cv_func_closedir_void+set}" = set; then
16962 echo $ECHO_N "(cached) $ECHO_C" >&6
16964 if test "$cross_compiling" = yes; then
16965 ac_cv_func_closedir_void=yes
16967 cat >conftest.$ac_ext <<_ACEOF
16968 #line $LINENO "configure"
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16974 $ac_includes_default
16975 #include <$ac_header_dirent>
16976 #ifndef __cplusplus
16983 exit (closedir (opendir (".")) != 0);
16988 rm -f conftest$ac_exeext
16989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16990 (eval $ac_link) 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; }; then
16999 ac_cv_func_closedir_void=no
17001 echo "$as_me: program exited with status $ac_status" >&5
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17005 ( exit $ac_status )
17006 ac_cv_func_closedir_void=yes
17008 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17011 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17012 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17013 if test $ac_cv_func_closedir_void = yes; then
17015 cat >>confdefs.h <<\_ACEOF
17016 #define CLOSEDIR_VOID 1
17021 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17022 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17023 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17026 if test "$cross_compiling" = yes; then
17027 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17028 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17029 { (exit 1); exit 1; }; }
17031 cat >conftest.$ac_ext <<_ACEOF
17032 #line $LINENO "configure"
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h. */
17039 # include <unistd.h>
17045 /* If this system has a BSD-style setpgrp which takes arguments,
17046 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17047 exit successfully. */
17048 exit (setpgrp (1,1) == -1 ? 0 : 1);
17053 rm -f conftest$ac_exeext
17054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17055 (eval $ac_link) 2>&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060 (eval $ac_try) 2>&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; }; then
17064 ac_cv_func_setpgrp_void=no
17066 echo "$as_me: program exited with status $ac_status" >&5
17067 echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17070 ( exit $ac_status )
17071 ac_cv_func_setpgrp_void=yes
17073 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17076 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17077 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17078 if test $ac_cv_func_setpgrp_void = yes; then
17080 cat >>confdefs.h <<\_ACEOF
17081 #define SETPGRP_VOID 1
17085 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17086 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17087 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17088 echo $ECHO_N "(cached) $ECHO_C" >&6
17090 # Some versions of Solaris, SCO, and the GNU C Library
17091 # have a broken or incompatible fnmatch.
17092 # So we run a test program. If we are cross-compiling, take no chance.
17093 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17094 if test "$cross_compiling" = yes; then
17095 ac_cv_func_fnmatch_works=cross
17097 cat >conftest.$ac_ext <<_ACEOF
17098 #line $LINENO "configure"
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h. */
17104 #include <fnmatch.h>
17105 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17106 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17112 (!(y ("a*", "abc", 0)
17113 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17114 && y ("a\\\\bc", "abc", 0)
17115 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17116 && y ("*x", ".x", 0)
17117 && n ("*x", ".x", FNM_PERIOD)
17123 rm -f conftest$ac_exeext
17124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17125 (eval $ac_link) 2>&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; }; then
17134 ac_cv_func_fnmatch_works=yes
17136 echo "$as_me: program exited with status $ac_status" >&5
17137 echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.$ac_ext >&5
17140 ( exit $ac_status )
17141 ac_cv_func_fnmatch_works=no
17143 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17146 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17147 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17148 if test $ac_cv_func_fnmatch_works = yes; then
17150 cat >>confdefs.h <<\_ACEOF
17151 #define HAVE_FNMATCH 1
17160 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17161 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17162 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17163 echo $ECHO_N "(cached) $ECHO_C" >&6
17165 ac_check_lib_save_LIBS=$LIBS
17166 LIBS="-lxpg4 $LIBS"
17167 cat >conftest.$ac_ext <<_ACEOF
17168 #line $LINENO "configure"
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h. */
17175 /* Override any gcc2 internal prototype to avoid an error. */
17179 /* We use char because int might match the return type of a gcc2
17180 builtin and then its argument prototype would still apply. */
17190 rm -f conftest.$ac_objext conftest$ac_exeext
17191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17192 (eval $ac_link) 2>&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } &&
17196 { ac_try='test -s conftest$ac_exeext'
17197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; }; then
17202 ac_cv_lib_xpg4_setlocale=yes
17204 echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17207 ac_cv_lib_xpg4_setlocale=no
17209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17210 LIBS=$ac_check_lib_save_LIBS
17212 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17213 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17214 if test $ac_cv_lib_xpg4_setlocale = yes; then
17215 LIBS="$LIBS -lxpg4"
17221 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17222 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17223 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 ac_check_lib_save_LIBS=$LIBS
17228 cat >conftest.$ac_ext <<_ACEOF
17229 #line $LINENO "configure"
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h. */
17236 /* Override any gcc2 internal prototype to avoid an error. */
17240 /* We use char because int might match the return type of a gcc2
17241 builtin and then its argument prototype would still apply. */
17251 rm -f conftest.$ac_objext conftest$ac_exeext
17252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17253 (eval $ac_link) 2>&5
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); } &&
17257 { ac_try='test -s conftest$ac_exeext'
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 ac_cv_lib_sun_getpwnam=yes
17265 echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17268 ac_cv_lib_sun_getpwnam=no
17270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17271 LIBS=$ac_check_lib_save_LIBS
17273 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17274 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17275 if test $ac_cv_lib_sun_getpwnam = yes; then
17276 cat >>confdefs.h <<_ACEOF
17277 #define HAVE_LIBSUN 1
17286 for ac_header in zlib.h
17288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17290 echo "$as_me:$LINENO: checking for $ac_header" >&5
17291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17293 echo $ECHO_N "(cached) $ECHO_C" >&6
17295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17298 # Is the header compilable?
17299 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17301 cat >conftest.$ac_ext <<_ACEOF
17302 #line $LINENO "configure"
17305 cat confdefs.h >>conftest.$ac_ext
17306 cat >>conftest.$ac_ext <<_ACEOF
17307 /* end confdefs.h. */
17308 $ac_includes_default
17309 #include <$ac_header>
17311 rm -f conftest.$ac_objext
17312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17313 (eval $ac_compile) 2>&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } &&
17317 { ac_try='test -s conftest.$ac_objext'
17318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17319 (eval $ac_try) 2>&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); }; }; then
17323 ac_header_compiler=yes
17325 echo "$as_me: failed program was:" >&5
17326 sed 's/^/| /' conftest.$ac_ext >&5
17328 ac_header_compiler=no
17330 rm -f conftest.$ac_objext conftest.$ac_ext
17331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17332 echo "${ECHO_T}$ac_header_compiler" >&6
17334 # Is the header present?
17335 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17337 cat >conftest.$ac_ext <<_ACEOF
17338 #line $LINENO "configure"
17341 cat confdefs.h >>conftest.$ac_ext
17342 cat >>conftest.$ac_ext <<_ACEOF
17343 /* end confdefs.h. */
17344 #include <$ac_header>
17346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17349 grep -v '^ *+' conftest.er1 >conftest.err
17351 cat conftest.err >&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } >/dev/null; then
17354 if test -s conftest.err; then
17355 ac_cpp_err=$ac_c_preproc_warn_flag
17362 if test -z "$ac_cpp_err"; then
17363 ac_header_preproc=yes
17365 echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17368 ac_header_preproc=no
17370 rm -f conftest.err conftest.$ac_ext
17371 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17372 echo "${ECHO_T}$ac_header_preproc" >&6
17374 # So? What about this header?
17375 case $ac_header_compiler:$ac_header_preproc in
17377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17383 ## ------------------------------------ ##
17384 ## Report this to bug-autoconf@gnu.org. ##
17385 ## ------------------------------------ ##
17388 sed "s/^/$as_me: WARNING: /" >&2
17391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17399 ## ------------------------------------ ##
17400 ## Report this to bug-autoconf@gnu.org. ##
17401 ## ------------------------------------ ##
17404 sed "s/^/$as_me: WARNING: /" >&2
17407 echo "$as_me:$LINENO: checking for $ac_header" >&5
17408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 eval "$as_ac_Header=$ac_header_preproc"
17414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17419 cat >>confdefs.h <<_ACEOF
17420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17427 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17428 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17429 if test "${ac_cv_lib_z_deflate+set}" = set; then
17430 echo $ECHO_N "(cached) $ECHO_C" >&6
17432 ac_check_lib_save_LIBS=$LIBS
17434 cat >conftest.$ac_ext <<_ACEOF
17435 #line $LINENO "configure"
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h. */
17442 /* Override any gcc2 internal prototype to avoid an error. */
17446 /* We use char because int might match the return type of a gcc2
17447 builtin and then its argument prototype would still apply. */
17457 rm -f conftest.$ac_objext conftest$ac_exeext
17458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17459 (eval $ac_link) 2>&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); } &&
17463 { ac_try='test -s conftest$ac_exeext'
17464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465 (eval $ac_try) 2>&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; }; then
17469 ac_cv_lib_z_deflate=yes
17471 echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17474 ac_cv_lib_z_deflate=no
17476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17477 LIBS=$ac_check_lib_save_LIBS
17479 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17480 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17481 if test $ac_cv_lib_z_deflate = yes; then
17486 if test x$FDLIBS = x-lz; then
17487 cat >>confdefs.h <<\_ACEOF
17488 #define HAVE_LIBZ 1
17495 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17496 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17497 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17500 ac_check_lib_save_LIBS=$LIBS
17501 LIBS="-lpthread $LIBS"
17502 cat >conftest.$ac_ext <<_ACEOF
17503 #line $LINENO "configure"
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17510 /* Override any gcc2 internal prototype to avoid an error. */
17514 /* We use char because int might match the return type of a gcc2
17515 builtin and then its argument prototype would still apply. */
17516 char pthread_create ();
17525 rm -f conftest.$ac_objext conftest$ac_exeext
17526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17527 (eval $ac_link) 2>&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); } &&
17531 { ac_try='test -s conftest$ac_exeext'
17532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17533 (eval $ac_try) 2>&5
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); }; }; then
17537 ac_cv_lib_pthread_pthread_create=yes
17539 echo "$as_me: failed program was:" >&5
17540 sed 's/^/| /' conftest.$ac_ext >&5
17542 ac_cv_lib_pthread_pthread_create=no
17544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17545 LIBS=$ac_check_lib_save_LIBS
17547 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17548 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17549 if test $ac_cv_lib_pthread_pthread_create = yes; then
17550 PTHREAD_LIB="-lpthread"
17552 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17553 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17554 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17555 echo $ECHO_N "(cached) $ECHO_C" >&6
17557 ac_check_lib_save_LIBS=$LIBS
17558 LIBS="-lpthreads $LIBS"
17559 cat >conftest.$ac_ext <<_ACEOF
17560 #line $LINENO "configure"
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17567 /* Override any gcc2 internal prototype to avoid an error. */
17571 /* We use char because int might match the return type of a gcc2
17572 builtin and then its argument prototype would still apply. */
17573 char pthread_create ();
17582 rm -f conftest.$ac_objext conftest$ac_exeext
17583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17584 (eval $ac_link) 2>&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } &&
17588 { ac_try='test -s conftest$ac_exeext'
17589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; }; then
17594 ac_cv_lib_pthreads_pthread_create=yes
17596 echo "$as_me: failed program was:" >&5
17597 sed 's/^/| /' conftest.$ac_ext >&5
17599 ac_cv_lib_pthreads_pthread_create=no
17601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17602 LIBS=$ac_check_lib_save_LIBS
17604 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17605 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17606 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17607 PTHREAD_LIB="-lpthreads"
17609 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17610 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17611 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17612 echo $ECHO_N "(cached) $ECHO_C" >&6
17614 ac_check_lib_save_LIBS=$LIBS
17616 cat >conftest.$ac_ext <<_ACEOF
17617 #line $LINENO "configure"
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h. */
17624 /* Override any gcc2 internal prototype to avoid an error. */
17628 /* We use char because int might match the return type of a gcc2
17629 builtin and then its argument prototype would still apply. */
17630 char pthread_create ();
17639 rm -f conftest.$ac_objext conftest$ac_exeext
17640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17641 (eval $ac_link) 2>&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } &&
17645 { ac_try='test -s conftest$ac_exeext'
17646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647 (eval $ac_try) 2>&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; }; then
17651 ac_cv_lib_c_r_pthread_create=yes
17653 echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17656 ac_cv_lib_c_r_pthread_create=no
17658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17659 LIBS=$ac_check_lib_save_LIBS
17661 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17662 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17663 if test $ac_cv_lib_c_r_pthread_create = yes; then
17664 PTHREAD_LIB="-lc_r"
17666 echo "$as_me:$LINENO: checking for pthread_create" >&5
17667 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17668 if test "${ac_cv_func_pthread_create+set}" = set; then
17669 echo $ECHO_N "(cached) $ECHO_C" >&6
17671 cat >conftest.$ac_ext <<_ACEOF
17672 #line $LINENO "configure"
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h. */
17678 /* System header to define __stub macros and hopefully few prototypes,
17679 which can conflict with char pthread_create (); below.
17680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17681 <limits.h> exists even on freestanding compilers. */
17683 # include <limits.h>
17685 # include <assert.h>
17687 /* Override any gcc2 internal prototype to avoid an error. */
17692 /* We use char because int might match the return type of a gcc2
17693 builtin and then its argument prototype would still apply. */
17694 char pthread_create ();
17695 /* The GNU C library defines this for functions which it implements
17696 to always fail with ENOSYS. Some functions are actually named
17697 something starting with __ and the normal name is an alias. */
17698 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17701 char (*f) () = pthread_create;
17710 return f != pthread_create;
17715 rm -f conftest.$ac_objext conftest$ac_exeext
17716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17717 (eval $ac_link) 2>&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } &&
17721 { ac_try='test -s conftest$ac_exeext'
17722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; }; then
17727 ac_cv_func_pthread_create=yes
17729 echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17732 ac_cv_func_pthread_create=no
17734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17736 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17737 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17750 cat >>confdefs.h <<\_ACEOF
17756 CFLAGS=${CFLAGS--O}
17757 LDFLAGS=${LDFLAGS--O}
17758 DB_LIBS="${SQL_LFLAGS}"
17760 CPPFLAGS="$CPPFLAGS"
17785 # Finally we set appropriate distribution specific
17786 # variables and defaults
17788 # PFILES are platform specific files
17789 PFILES="platforms/Makefile"
17792 hostname=`uname -n`
17793 case "$DISTNAME" in
17796 PSCMD="ps -e -o pid,comm"
17797 PFILES="${PFILES} \
17798 platforms/aix/Makefile"
17799 TAPEDRIVE="/dev/rmt0.1"
17803 PTHREAD_LIB="-lpthread -lexc"
17804 if test "${CC}" = "gcc" ; then
17811 TAPEDRIVE="/dev/nrmt0"
17814 DISTVER=`uname -a |awk '{print $3}'`
17815 TAPEDRIVE="/dev/nrmt0"
17816 PTHREAD_LIB="-pthread"
17817 CFLAGS="${CFLAGS} -pthread"
17818 PSCMD="ps -x -o pid,command"
17821 PFILES="${PFILES} \
17822 platforms/bsdi/Makefile \
17823 platforms/bsdi/bacula-fd \
17824 platforms/bsdi/bacula-sd \
17825 platforms/bsdi/bacula-dir"
17826 hostname=`hostname -s`
17827 largefile_support="yes"
17830 DISTVER=`uname -a |awk '{print $3}'`
17831 TAPEDRIVE="/dev/nrst0"
17833 WCFLAGS="-mwindows"
17834 WLDFLAGS="-mwindows"
17838 TAPEDRIVE="/dev/nst0"
17839 PSCMD="ps -e -o pid,command"
17840 hostname=`hostname -s`
17841 PFILES="${PFILES} \
17842 platforms/darwin/Makefile"
17845 DISTVER=`cat /etc/debian_version`
17846 TAPEDRIVE="/dev/nrst0"
17847 PSCMD="ps -e -o pid,command"
17848 hostname=`hostname -s`
17851 DISTVER=`uname -a |awk '{print $3}'`
17852 VER=`echo $DISTVER | cut -c 1`
17853 if test x$VER = x4 ; then
17854 PTHREAD_LIB="-pthread"
17855 CFLAGS="${CFLAGS} -pthread"
17859 TAPEDRIVE="/dev/nrsa0"
17860 PSCMD="ps -x -o pid,command"
17861 PFILES="${PFILES} \
17862 platforms/freebsd/Makefile \
17863 platforms/freebsd/bacula-fd \
17864 platforms/freebsd/bacula-sd \
17865 platforms/freebsd/bacula-dir"
17866 hostname=`hostname -s`
17867 largefile_support="yes"
17871 TAPEDRIVE="/dev/rmt/0hnb"
17875 TAPEDRIVE="/dev/rmt/0cbn"
17876 PSCMD="ps -e -o pid,comm"
17877 PFILES="${PFILES} \
17878 platforms/irix/Makefile \
17879 platforms/irix/bacula-fd \
17880 platforms/irix/bacula-sd \
17881 platforms/irix/bacula-dir"
17884 DISTVER=`uname -a |awk '{print $3}'`
17887 TAPEDRIVE="/dev/nrst0"
17888 PSCMD="ps -a -o pid,command"
17889 PTHREAD_LIB="-pthread"
17890 CFLAGS="${CFLAGS} -pthread"
17893 DISTVER=`uname -a |awk '{print $3}'`
17896 TAPEDRIVE="/dev/nrst0"
17897 PSCMD="ps -a -o pid,command"
17898 PTHREAD_LIB="-pthread"
17899 CFLAGS="${CFLAGS} -pthread"
17900 PFILES="${PFILES} \
17901 platforms/openbsd/Makefile \
17902 platforms/openbsd/bacula-fd \
17903 platforms/openbsd/bacula-sd \
17904 platforms/openbsd/bacula-dir"
17907 DISTVER=`cat /etc/redhat-release | grep release |\
17909 TAPEDRIVE="/dev/nst0"
17910 PSCMD="ps -e -o pid,command"
17911 PFILES="${PFILES} \
17912 platforms/redhat/Makefile \
17913 platforms/redhat/bacula-fd \
17914 platforms/redhat/bacula-sd \
17915 platforms/redhat/bacula-dir \
17916 platforms/redhat/bacula.spec \
17918 hostname=`hostname -s`
17921 DISTVER=`cat /etc/mandrake-release | grep release |\
17923 TAPEDRIVE="/dev/nst0"
17924 PSCMD="ps -e -o pid,command"
17925 PFILES="${PFILES} \
17926 platforms/mandrake/Makefile \
17927 platforms/mandrake/bacula-fd \
17928 platforms/mandrake/bacula-sd \
17929 platforms/mandrake/bacula-dir \
17930 platforms/mandrake/bacula.spec \
17932 hostname=`hostname -s`
17935 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17936 TAPEDRIVE="/dev/nst0"
17937 PSCMD="ps -e -o pid,command"
17938 PFILES="${PFILES} \
17939 platforms/gentoo/Makefile \
17940 platforms/gentoo/bacula-fd \
17941 platforms/gentoo/bacula-sd \
17942 platforms/gentoo/bacula-dir"
17943 hostname=`hostname -s`
17947 DISTVER=`cat /etc/slackware-version`
17948 TAPEDRIVE="/dev/nst0"
17949 PSCMD="ps -e -o pid,command"
17950 hostname=`hostname -s`
17954 TAPEDRIVE="/dev/rmt/0cbn"
17955 PSCMD="ps -e -o pid,comm"
17956 PFILES="${PFILES} \
17957 platforms/solaris/Makefile \
17958 platforms/solaris/bacula-fd \
17959 platforms/solaris/bacula-sd \
17960 platforms/solaris/bacula-dir"
17961 if test x$DISTVER = x5.6 ; then
17962 cat >>confdefs.h <<\_ACEOF
17963 #define HAVE_OLD_SOCKOPT 1
17969 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17971 TAPEDRIVE="/dev/nst0"
17972 PSCMD="ps -e -o pid,command"
17973 hostname=`hostname -s`
17974 PFILES="${PFILES} \
17975 platforms/suse/Makefile \
17976 platforms/suse/bacula-fd \
17977 platforms/suse/bacula-sd \
17978 platforms/suse/bacula-dir"
17983 TAPEDRIVE="/dev/nst0"
17984 PSCMD="ps -e -o pid,command"
17985 hostname=`hostname -s`
17986 PFILES="${PFILES} \
17987 platforms/suse/Makefile \
17988 platforms/suse/bacula-fd \
17989 platforms/suse/bacula-sd \
17990 platforms/suse/bacula-dir"
17994 TAPEDRIVE="/dev/nst0"
17997 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18003 LIBS="$PTHREAD_LIB $LIBS"
18005 cat >>confdefs.h <<_ACEOF
18009 cat >>confdefs.h <<_ACEOF
18019 MCOMMON=./autoconf/Make.common
18022 if test "x${subsysdir}" = "x${sbindir}" ; then
18025 echo "You have set both --sbindir and --with-subsys-dir"
18026 echo " equal to: ${subsysdir} "
18027 echo "This is not permitted. Please reconfigure."
18029 echo "Aborting configuration ..."
18035 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/tconsole/Makefile src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile $PFILES"
18036 ac_config_commands="$ac_config_commands default"
18037 cat >confcache <<\_ACEOF
18038 # This file is a shell script that caches the results of configure
18039 # tests run on this system so they can be shared between configure
18040 # scripts and configure runs, see configure's option --config-cache.
18041 # It is not useful on other systems. If it contains results you don't
18042 # want to keep, you may remove or edit it.
18044 # config.status only pays attention to the cache file if you give it
18045 # the --recheck option to rerun configure.
18047 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18048 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18049 # following values.
18053 # The following way of writing the cache mishandles newlines in values,
18054 # but we know of no workaround that is simple, portable, and efficient.
18055 # So, don't put newlines in cache variables' values.
18056 # Ultrix sh set writes to stderr and can't be redirected directly,
18057 # and sets the high bit in the cache file unless we assign to the vars.
18060 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18062 # `set' does not quote correctly, so add quotes (double-quote
18063 # substitution turns \\\\ into \\, and sed turns \\ into \).
18066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18069 # `set' quotes correctly as required by POSIX, so do not add quotes.
18071 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18078 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18080 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18082 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18083 if test -w $cache_file; then
18084 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18085 cat confcache >$cache_file
18087 echo "not updating unwritable cache $cache_file"
18092 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18093 # Let make expand exec_prefix.
18094 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18096 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18097 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18098 # trailing colons and then remove the whole line if VPATH becomes empty
18099 # (actually we leave an empty line to preserve line numbers).
18100 if test "x$srcdir" = x.; then
18101 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18102 s/:*\$(srcdir):*/:/;
18103 s/:*\${srcdir}:*/:/;
18105 s/^\([^=]*=[ ]*\):*/\1/;
18111 DEFS=-DHAVE_CONFIG_H
18115 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18116 # 1. Remove the extension, and $U if already installed.
18117 ac_i=`echo "$ac_i" |
18118 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18120 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18121 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18123 LIBOBJS=$ac_libobjs
18125 LTLIBOBJS=$ac_ltlibobjs
18129 : ${CONFIG_STATUS=./config.status}
18130 ac_clean_files_save=$ac_clean_files
18131 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18132 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18133 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18134 cat >$CONFIG_STATUS <<_ACEOF
18136 # Generated by $as_me.
18137 # Run this file to recreate the current configuration.
18138 # Compiler output produced by configure, useful for debugging
18139 # configure, is in config.log if it exists.
18142 ac_cs_recheck=false
18144 SHELL=\${CONFIG_SHELL-$SHELL}
18147 cat >>$CONFIG_STATUS <<\_ACEOF
18148 ## --------------------- ##
18149 ## M4sh Initialization. ##
18150 ## --------------------- ##
18152 # Be Bourne compatible
18153 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18156 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18157 # is contrary to our usage. Disable this feature.
18158 alias -g '${1+"$@"}'='"$@"'
18159 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18163 # Support unset when possible.
18164 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18171 # Work around bugs in pre-3.0 UWIN ksh.
18172 $as_unset ENV MAIL MAILPATH
18179 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18180 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18181 LC_TELEPHONE LC_TIME
18183 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18184 eval $as_var=C; export $as_var
18190 # Required to use basename.
18191 if expr a : '\(a\)' >/dev/null 2>&1; then
18197 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18198 as_basename=basename
18204 # Name of the executable.
18205 as_me=`$as_basename "$0" ||
18206 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18207 X"$0" : 'X\(//\)$' \| \
18208 X"$0" : 'X\(/\)$' \| \
18209 . : '\(.\)' 2>/dev/null ||
18211 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18212 /^X\/\(\/\/\)$/{ s//\1/; q; }
18213 /^X\/\(\/\).*/{ s//\1/; q; }
18217 # PATH needs CR, and LINENO needs CR and PATH.
18218 # Avoid depending upon Character Ranges.
18219 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18220 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18221 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18222 as_cr_digits='0123456789'
18223 as_cr_alnum=$as_cr_Letters$as_cr_digits
18225 # The user is always right.
18226 if test "${PATH_SEPARATOR+set}" != set; then
18227 echo "#! /bin/sh" >conf$$.sh
18228 echo "exit 0" >>conf$$.sh
18230 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18239 as_lineno_1=$LINENO
18240 as_lineno_2=$LINENO
18241 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18242 test "x$as_lineno_1" != "x$as_lineno_2" &&
18243 test "x$as_lineno_3" = "x$as_lineno_2" || {
18244 # Find who we are. Look in the path if we contain no path at all
18247 *[\\/]* ) as_myself=$0 ;;
18248 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18249 for as_dir in $PATH
18252 test -z "$as_dir" && as_dir=.
18253 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18258 # We did not find ourselves, most probably we were run as `sh COMMAND'
18259 # in which case we are not to be found in the path.
18260 if test "x$as_myself" = x; then
18263 if test ! -f "$as_myself"; then
18264 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18265 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18266 { (exit 1); exit 1; }; }
18268 case $CONFIG_SHELL in
18270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18271 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18274 test -z "$as_dir" && as_dir=.
18275 for as_base in sh bash ksh sh5; do
18278 if ("$as_dir/$as_base" -c '
18279 as_lineno_1=$LINENO
18280 as_lineno_2=$LINENO
18281 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18282 test "x$as_lineno_1" != "x$as_lineno_2" &&
18283 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18284 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18285 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18286 CONFIG_SHELL=$as_dir/$as_base
18287 export CONFIG_SHELL
18288 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18296 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18297 # uniformly replaced by the line number. The first 'sed' inserts a
18298 # line-number line before each line; the second 'sed' does the real
18299 # work. The second script uses 'N' to pair each line-number line
18300 # with the numbered line, and appends trailing '-' during
18301 # substitution so that $LINENO is not a special case at line end.
18302 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18303 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18304 sed '=' <$as_myself |
18309 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18312 s,^['$as_cr_digits']*\n,,
18313 ' >$as_me.lineno &&
18314 chmod +x $as_me.lineno ||
18315 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18316 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18317 { (exit 1); exit 1; }; }
18319 # Don't try to exec as it changes $[0], causing all sort of problems
18320 # (the dirname of $[0] is not the place where we might find the
18321 # original and so on. Autoconf is especially sensible to this).
18323 # Exit status is that of the last command.
18328 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18329 *c*,-n*) ECHO_N= ECHO_C='
18331 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18332 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18335 if expr a : '\(a\)' >/dev/null 2>&1; then
18341 rm -f conf$$ conf$$.exe conf$$.file
18343 if ln -s conf$$.file conf$$ 2>/dev/null; then
18344 # We could just check for DJGPP; but this test a) works b) is more generic
18345 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18346 if test -f conf$$.exe; then
18347 # Don't use ln at all; we don't have any links
18352 elif ln conf$$.file conf$$ 2>/dev/null; then
18357 rm -f conf$$ conf$$.exe conf$$.file
18359 if mkdir -p . 2>/dev/null; then
18365 as_executable_p="test -f"
18367 # Sed expression to map a string onto a valid CPP name.
18368 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18370 # Sed expression to map a string onto a valid variable name.
18371 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18375 # We need space, tab and new line, in precisely that order.
18385 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18386 # report actual input values of CONFIG_FILES etc. instead of their
18387 # values after options handling. Logging --version etc. is OK.
18391 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18392 ## Running $as_me. ##
18397 This file was extended by $as_me, which was
18398 generated by GNU Autoconf 2.57. Invocation command line was
18400 CONFIG_FILES = $CONFIG_FILES
18401 CONFIG_HEADERS = $CONFIG_HEADERS
18402 CONFIG_LINKS = $CONFIG_LINKS
18403 CONFIG_COMMANDS = $CONFIG_COMMANDS
18407 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18411 # Files that config.status was made for.
18412 if test -n "$ac_config_files"; then
18413 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18416 if test -n "$ac_config_headers"; then
18417 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18420 if test -n "$ac_config_links"; then
18421 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18424 if test -n "$ac_config_commands"; then
18425 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18428 cat >>$CONFIG_STATUS <<\_ACEOF
18431 \`$as_me' instantiates files from templates according to the
18432 current configuration.
18434 Usage: $0 [OPTIONS] [FILE]...
18436 -h, --help print this help, then exit
18437 -V, --version print version number, then exit
18438 -q, --quiet do not print progress messages
18439 -d, --debug don't remove temporary files
18440 --recheck update $as_me by reconfiguring in the same conditions
18441 --file=FILE[:TEMPLATE]
18442 instantiate the configuration file FILE
18443 --header=FILE[:TEMPLATE]
18444 instantiate the configuration header FILE
18446 Configuration files:
18449 Configuration headers:
18452 Configuration commands:
18455 Report bugs to <bug-autoconf@gnu.org>."
18458 cat >>$CONFIG_STATUS <<_ACEOF
18461 configured by $0, generated by GNU Autoconf 2.57,
18462 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18464 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18465 Free Software Foundation, Inc.
18466 This config.status script is free software; the Free Software Foundation
18467 gives unlimited permission to copy, distribute and modify it."
18472 cat >>$CONFIG_STATUS <<\_ACEOF
18473 # If no file are specified by the user, then we need to provide default
18474 # value. By we need to know if files were specified by the user.
18480 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18481 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18489 *) # This is not an option, so the user has probably given explicit
18492 ac_need_defaults=false;;
18496 # Handling of the options.
18498 cat >>$CONFIG_STATUS <<\_ACEOF
18499 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18501 --version | --vers* | -V )
18502 echo "$ac_cs_version"; exit 0 ;;
18504 # Conflict between --help and --header
18505 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18506 Try \`$0 --help' for more information." >&5
18507 echo "$as_me: error: ambiguous option: $1
18508 Try \`$0 --help' for more information." >&2;}
18509 { (exit 1); exit 1; }; };;
18510 --help | --hel | -h )
18511 echo "$ac_cs_usage"; exit 0 ;;
18512 --debug | --d* | -d )
18514 --file | --fil | --fi | --f )
18516 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18517 ac_need_defaults=false;;
18518 --header | --heade | --head | --hea )
18520 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18521 ac_need_defaults=false;;
18522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18523 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18526 # This is an error.
18527 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18528 Try \`$0 --help' for more information." >&5
18529 echo "$as_me: error: unrecognized option: $1
18530 Try \`$0 --help' for more information." >&2;}
18531 { (exit 1); exit 1; }; } ;;
18533 *) ac_config_targets="$ac_config_targets $1" ;;
18539 ac_configure_extra_args=
18541 if $ac_cs_silent; then
18543 ac_configure_extra_args="$ac_configure_extra_args --silent"
18547 cat >>$CONFIG_STATUS <<_ACEOF
18548 if \$ac_cs_recheck; then
18549 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18550 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18559 cat >>$CONFIG_STATUS <<\_ACEOF
18560 for ac_config_target in $ac_config_targets
18562 case "$ac_config_target" in
18563 # Handling of arguments.
18564 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18565 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18566 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18567 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18568 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18569 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18570 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18571 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18572 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18573 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18574 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18575 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18576 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18577 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18578 "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18579 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18580 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18581 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18582 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18583 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18584 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18585 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18586 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18587 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18588 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18589 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18590 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18591 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18592 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18593 "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18594 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18595 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18596 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18597 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18598 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18599 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18600 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18601 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18602 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18603 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18604 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18605 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18606 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18607 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18608 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18609 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18610 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18611 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18612 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18613 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18614 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18615 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18616 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18617 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18618 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18619 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18620 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18621 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18622 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18623 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18624 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18625 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18626 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18627 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18628 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18629 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18630 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18631 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18632 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18633 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18634 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18635 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18636 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18637 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18638 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18639 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18640 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18641 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18642 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18643 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18644 { (exit 1); exit 1; }; };;
18648 # If the user did not use the arguments to specify the items to instantiate,
18649 # then the envvar interface is used. Set only those that are not.
18650 # We use the long form for the default assignment because of an extremely
18651 # bizarre bug on SunOS 4.1.3.
18652 if $ac_need_defaults; then
18653 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18654 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18655 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18658 # Have a temporary directory for convenience. Make it in the build tree
18659 # simply because there is no reason to put it here, and in addition,
18660 # creating and moving files from /tmp can sometimes cause problems.
18661 # Create a temporary directory, and hook for its removal unless debugging.
18664 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18665 trap '{ (exit 1); exit 1; }' 1 2 13 15
18668 # Create a (secure) tmp directory for tmp files.
18671 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18672 test -n "$tmp" && test -d "$tmp"
18675 tmp=./confstat$$-$RANDOM
18676 (umask 077 && mkdir $tmp)
18679 echo "$me: cannot create a temporary directory in ." >&2
18680 { (exit 1); exit 1; }
18685 cat >>$CONFIG_STATUS <<_ACEOF
18688 # CONFIG_FILES section.
18691 # No need to generate the scripts if there are no CONFIG_FILES.
18692 # This happens for instance when ./config.status config.h
18693 if test -n "\$CONFIG_FILES"; then
18694 # Protect against being on the right side of a sed subst in config.status.
18695 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18696 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18697 s,@SHELL@,$SHELL,;t t
18698 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18699 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18700 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18701 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18702 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18703 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18704 s,@exec_prefix@,$exec_prefix,;t t
18705 s,@prefix@,$prefix,;t t
18706 s,@program_transform_name@,$program_transform_name,;t t
18707 s,@bindir@,$bindir,;t t
18708 s,@sbindir@,$sbindir,;t t
18709 s,@libexecdir@,$libexecdir,;t t
18710 s,@datadir@,$datadir,;t t
18711 s,@sysconfdir@,$sysconfdir,;t t
18712 s,@sharedstatedir@,$sharedstatedir,;t t
18713 s,@localstatedir@,$localstatedir,;t t
18714 s,@libdir@,$libdir,;t t
18715 s,@includedir@,$includedir,;t t
18716 s,@oldincludedir@,$oldincludedir,;t t
18717 s,@infodir@,$infodir,;t t
18718 s,@mandir@,$mandir,;t t
18719 s,@build_alias@,$build_alias,;t t
18720 s,@host_alias@,$host_alias,;t t
18721 s,@target_alias@,$target_alias,;t t
18722 s,@DEFS@,$DEFS,;t t
18723 s,@ECHO_C@,$ECHO_C,;t t
18724 s,@ECHO_N@,$ECHO_N,;t t
18725 s,@ECHO_T@,$ECHO_T,;t t
18726 s,@LIBS@,$LIBS,;t t
18727 s,@BUILD_DIR@,$BUILD_DIR,;t t
18728 s,@TRUEPRG@,$TRUEPRG,;t t
18729 s,@FALSEPRG@,$FALSEPRG,;t t
18730 s,@build@,$build,;t t
18731 s,@build_cpu@,$build_cpu,;t t
18732 s,@build_vendor@,$build_vendor,;t t
18733 s,@build_os@,$build_os,;t t
18734 s,@host@,$host,;t t
18735 s,@host_cpu@,$host_cpu,;t t
18736 s,@host_vendor@,$host_vendor,;t t
18737 s,@host_os@,$host_os,;t t
18738 s,@VERSION@,$VERSION,;t t
18739 s,@DATE@,$DATE,;t t
18740 s,@LSMDATE@,$LSMDATE,;t t
18742 s,@CFLAGS@,$CFLAGS,;t t
18743 s,@LDFLAGS@,$LDFLAGS,;t t
18744 s,@CPPFLAGS@,$CPPFLAGS,;t t
18745 s,@ac_ct_CC@,$ac_ct_CC,;t t
18746 s,@EXEEXT@,$EXEEXT,;t t
18747 s,@OBJEXT@,$OBJEXT,;t t
18749 s,@CXXFLAGS@,$CXXFLAGS,;t t
18750 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18752 s,@EGREP@,$EGREP,;t t
18753 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18754 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18755 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18756 s,@RANLIB@,$RANLIB,;t t
18757 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18763 s,@ECHO@,$ECHO,;t t
18767 s,@OPENSSL@,$OPENSSL,;t t
18769 s,@PKGCONFIG@,$PKGCONFIG,;t t
18770 s,@ARFLAGS@,$ARFLAGS,;t t
18771 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18772 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18773 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18774 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18775 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18776 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18777 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18778 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18779 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18780 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18781 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18782 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18783 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18784 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18785 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18786 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18787 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18788 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18789 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18790 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18791 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18792 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18793 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18794 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18795 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18796 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18797 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18798 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18799 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18800 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18801 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18802 s,@MSGFMT@,$MSGFMT,;t t
18803 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18804 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18805 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18806 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18807 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18808 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18809 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18810 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18811 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18812 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18813 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18814 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18815 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18816 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18817 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18818 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18819 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18820 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18821 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18822 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18823 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18824 s,@GNOME_DIR@,$GNOME_DIR,;t t
18825 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18826 s,@STATIC_FD@,$STATIC_FD,;t t
18827 s,@STATIC_SD@,$STATIC_SD,;t t
18828 s,@STATIC_DIR@,$STATIC_DIR,;t t
18829 s,@STATIC_CONS@,$STATIC_CONS,;t t
18830 s,@ALL_DIRS@,$ALL_DIRS,;t t
18831 s,@CONS_INC@,$CONS_INC,;t t
18832 s,@CONS_OBJ@,$CONS_OBJ,;t t
18833 s,@CONS_SRC@,$CONS_SRC,;t t
18834 s,@CONS_LIBS@,$CONS_LIBS,;t t
18835 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18836 s,@READLINE_SRC@,$READLINE_SRC,;t t
18837 s,@working_dir@,$working_dir,;t t
18838 s,@scriptdir@,$scriptdir,;t t
18839 s,@dump_email@,$dump_email,;t t
18840 s,@job_email@,$job_email,;t t
18841 s,@smtp_host@,$smtp_host,;t t
18842 s,@piddir@,$piddir,;t t
18843 s,@subsysdir@,$subsysdir,;t t
18844 s,@baseport@,$baseport,;t t
18845 s,@dir_port@,$dir_port,;t t
18846 s,@fd_port@,$fd_port,;t t
18847 s,@sd_port@,$sd_port,;t t
18848 s,@dir_password@,$dir_password,;t t
18849 s,@fd_password@,$fd_password,;t t
18850 s,@sd_password@,$sd_password,;t t
18851 s,@dir_user@,$dir_user,;t t
18852 s,@dir_group@,$dir_group,;t t
18853 s,@sd_user@,$sd_user,;t t
18854 s,@sd_group@,$sd_group,;t t
18855 s,@fd_user@,$fd_user,;t t
18856 s,@fd_group@,$fd_group,;t t
18857 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18858 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18859 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18860 s,@cats@,$cats,;t t
18861 s,@DB_NAME@,$DB_NAME,;t t
18862 s,@GETCONF@,$GETCONF,;t t
18863 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18864 s,@X_CFLAGS@,$X_CFLAGS,;t t
18865 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18866 s,@X_LIBS@,$X_LIBS,;t t
18867 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18868 s,@LIBOBJS@,$LIBOBJS,;t t
18869 s,@ALLOCA@,$ALLOCA,;t t
18870 s,@FDLIBS@,$FDLIBS,;t t
18871 s,@DEBUG@,$DEBUG,;t t
18872 s,@DINCLUDE@,$DINCLUDE,;t t
18873 s,@DLIB@,$DLIB,;t t
18874 s,@DB_LIBS@,$DB_LIBS,;t t
18875 s,@WCFLAGS@,$WCFLAGS,;t t
18876 s,@WLDFLAGS@,$WLDFLAGS,;t t
18877 s,@OBJLIST@,$OBJLIST,;t t
18878 s,@hostname@,$hostname,;t t
18879 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18880 s,@PSCMD@,$PSCMD,;t t
18881 s,@WIN32@,$WIN32,;t t
18882 s,@DISTNAME@,$DISTNAME,;t t
18883 s,@DISTVER@,$DISTVER,;t t
18884 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18885 /@MCOMMON@/r $MCOMMON
18891 cat >>$CONFIG_STATUS <<\_ACEOF
18892 # Split the substitutions into bite-sized pieces for seds with
18893 # small command number limits, like on Digital OSF/1 and HP-UX.
18894 ac_max_sed_lines=48
18895 ac_sed_frag=1 # Number of current file.
18896 ac_beg=1 # First line for current file.
18897 ac_end=$ac_max_sed_lines # Line after last line for current file.
18900 while $ac_more_lines; do
18901 if test $ac_beg -gt 1; then
18902 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18904 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18906 if test ! -s $tmp/subs.frag; then
18907 ac_more_lines=false
18909 # The purpose of the label and of the branching condition is to
18910 # speed up the sed processing (if there are no `@' at all, there
18911 # is no need to browse any of the substitutions).
18912 # These are the two extra sed commands mentioned above.
18914 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18915 if test -z "$ac_sed_cmds"; then
18916 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18918 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18920 ac_sed_frag=`expr $ac_sed_frag + 1`
18922 ac_end=`expr $ac_end + $ac_max_sed_lines`
18925 if test -z "$ac_sed_cmds"; then
18928 fi # test -n "$CONFIG_FILES"
18931 cat >>$CONFIG_STATUS <<\_ACEOF
18932 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18933 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18935 - | *:- | *:-:* ) # input from stdin
18937 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18938 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18939 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18940 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18941 * ) ac_file_in=$ac_file.in ;;
18944 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18945 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18946 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18947 X"$ac_file" : 'X\(//\)[^/]' \| \
18948 X"$ac_file" : 'X\(//\)$' \| \
18949 X"$ac_file" : 'X\(/\)' \| \
18950 . : '\(.\)' 2>/dev/null ||
18952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18953 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18954 /^X\(\/\/\)$/{ s//\1/; q; }
18955 /^X\(\/\).*/{ s//\1/; q; }
18957 { if $as_mkdir_p; then
18962 while test ! -d "$as_dir"; do
18963 as_dirs="$as_dir $as_dirs"
18964 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18965 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18966 X"$as_dir" : 'X\(//\)[^/]' \| \
18967 X"$as_dir" : 'X\(//\)$' \| \
18968 X"$as_dir" : 'X\(/\)' \| \
18969 . : '\(.\)' 2>/dev/null ||
18971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18972 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18973 /^X\(\/\/\)$/{ s//\1/; q; }
18974 /^X\(\/\).*/{ s//\1/; q; }
18977 test ! -n "$as_dirs" || mkdir $as_dirs
18978 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18979 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18980 { (exit 1); exit 1; }; }; }
18984 if test "$ac_dir" != .; then
18985 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18986 # A "../" for each directory in $ac_dir_suffix.
18987 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18989 ac_dir_suffix= ac_top_builddir=
18993 .) # No --srcdir option. We are building in place.
18995 if test -z "$ac_top_builddir"; then
18998 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19000 [\\/]* | ?:[\\/]* ) # Absolute path.
19001 ac_srcdir=$srcdir$ac_dir_suffix;
19002 ac_top_srcdir=$srcdir ;;
19003 *) # Relative path.
19004 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19005 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19007 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19009 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19010 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19011 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19012 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19016 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19017 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19020 if test x"$ac_file" != x-; then
19021 { echo "$as_me:$LINENO: creating $ac_file" >&5
19022 echo "$as_me: creating $ac_file" >&6;}
19025 # Let's still pretend it is `configure' which instantiates (i.e., don't
19026 # use $as_me), people would be surprised to read:
19027 # /* config.h. Generated by config.status. */
19028 if test x"$ac_file" = x-; then
19031 configure_input="$ac_file. "
19033 configure_input=$configure_input"Generated from `echo $ac_file_in |
19034 sed 's,.*/,,'` by configure."
19036 # First look for the input files in the build tree, otherwise in the
19038 ac_file_inputs=`IFS=:
19039 for f in $ac_file_in; do
19041 -) echo $tmp/stdin ;;
19043 # Absolute (can't be DOS-style, as IFS=:)
19044 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19045 echo "$as_me: error: cannot find input file: $f" >&2;}
19046 { (exit 1); exit 1; }; }
19049 if test -f "$f"; then
19052 elif test -f "$srcdir/$f"; then
19057 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19058 echo "$as_me: error: cannot find input file: $f" >&2;}
19059 { (exit 1); exit 1; }; }
19062 done` || { (exit 1); exit 1; }
19064 cat >>$CONFIG_STATUS <<_ACEOF
19068 cat >>$CONFIG_STATUS <<\_ACEOF
19070 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19071 s,@configure_input@,$configure_input,;t t
19072 s,@srcdir@,$ac_srcdir,;t t
19073 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19074 s,@top_srcdir@,$ac_top_srcdir,;t t
19075 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19076 s,@builddir@,$ac_builddir,;t t
19077 s,@abs_builddir@,$ac_abs_builddir,;t t
19078 s,@top_builddir@,$ac_top_builddir,;t t
19079 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19080 s,@INSTALL@,$ac_INSTALL,;t t
19081 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19083 if test x"$ac_file" != x-; then
19084 mv $tmp/out $ac_file
19092 cat >>$CONFIG_STATUS <<\_ACEOF
19095 # CONFIG_HEADER section.
19098 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19099 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19101 # ac_d sets the value in "#define NAME VALUE" lines.
19102 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19103 ac_dB='[ ].*$,\1#\2'
19106 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19107 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19108 ac_uB='$,\1#\2define\3'
19112 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19113 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19115 - | *:- | *:-:* ) # input from stdin
19117 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19118 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19119 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19120 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19121 * ) ac_file_in=$ac_file.in ;;
19124 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19125 echo "$as_me: creating $ac_file" >&6;}
19127 # First look for the input files in the build tree, otherwise in the
19129 ac_file_inputs=`IFS=:
19130 for f in $ac_file_in; do
19132 -) echo $tmp/stdin ;;
19134 # Absolute (can't be DOS-style, as IFS=:)
19135 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19136 echo "$as_me: error: cannot find input file: $f" >&2;}
19137 { (exit 1); exit 1; }; }
19140 if test -f "$f"; then
19143 elif test -f "$srcdir/$f"; then
19148 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19149 echo "$as_me: error: cannot find input file: $f" >&2;}
19150 { (exit 1); exit 1; }; }
19153 done` || { (exit 1); exit 1; }
19154 # Remove the trailing spaces.
19155 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19159 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19160 # `conftest.undefs', that substitutes the proper values into
19161 # config.h.in to produce config.h. The first handles `#define'
19162 # templates, and the second `#undef' templates.
19163 # And first: Protect against being on the right side of a sed subst in
19164 # config.status. Protect against being in an unquoted here document
19165 # in config.status.
19166 rm -f conftest.defines conftest.undefs
19167 # Using a here document instead of a string reduces the quoting nightmare.
19168 # Putting comments in sed scripts is not portable.
19170 # `end' is used to avoid that the second main sed command (meant for
19171 # 0-ary CPP macros) applies to n-ary macro definitions.
19172 # See the Autoconf documentation for `clear'.
19173 cat >confdef2sed.sed <<\_ACEOF
19178 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19180 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19183 # If some macros were called several times there might be several times
19184 # the same #defines, which is useless. Nevertheless, we may not want to
19185 # sort them, since we want the *last* AC-DEFINE to be honored.
19186 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19187 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19188 rm -f confdef2sed.sed
19190 # This sed command replaces #undef with comments. This is necessary, for
19191 # example, in the case of _POSIX_SOURCE, which is predefined and required
19192 # on some systems where configure will not decide to define it.
19193 cat >>conftest.undefs <<\_ACEOF
19194 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19197 # Break up conftest.defines because some shells have a limit on the size
19198 # of here documents, and old seds have small limits too (100 cmds).
19199 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19200 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19201 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19202 echo ' :' >>$CONFIG_STATUS
19203 rm -f conftest.tail
19204 while grep . conftest.defines >/dev/null
19206 # Write a limited-size here document to $tmp/defines.sed.
19207 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19208 # Speed up: don't consider the non `#define' lines.
19209 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19210 # Work around the forget-to-reset-the-flag bug.
19211 echo 't clr' >>$CONFIG_STATUS
19212 echo ': clr' >>$CONFIG_STATUS
19213 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19215 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19217 mv $tmp/out $tmp/in
19219 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19220 rm -f conftest.defines
19221 mv conftest.tail conftest.defines
19223 rm -f conftest.defines
19224 echo ' fi # grep' >>$CONFIG_STATUS
19225 echo >>$CONFIG_STATUS
19227 # Break up conftest.undefs because some shells have a limit on the size
19228 # of here documents, and old seds have small limits too (100 cmds).
19229 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19230 rm -f conftest.tail
19231 while grep . conftest.undefs >/dev/null
19233 # Write a limited-size here document to $tmp/undefs.sed.
19234 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19235 # Speed up: don't consider the non `#undef'
19236 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19237 # Work around the forget-to-reset-the-flag bug.
19238 echo 't clr' >>$CONFIG_STATUS
19239 echo ': clr' >>$CONFIG_STATUS
19240 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19242 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19244 mv $tmp/out $tmp/in
19246 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19247 rm -f conftest.undefs
19248 mv conftest.tail conftest.undefs
19250 rm -f conftest.undefs
19252 cat >>$CONFIG_STATUS <<\_ACEOF
19253 # Let's still pretend it is `configure' which instantiates (i.e., don't
19254 # use $as_me), people would be surprised to read:
19255 # /* config.h. Generated by config.status. */
19256 if test x"$ac_file" = x-; then
19257 echo "/* Generated by configure. */" >$tmp/config.h
19259 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19261 cat $tmp/in >>$tmp/config.h
19263 if test x"$ac_file" != x-; then
19264 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19265 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19266 echo "$as_me: $ac_file is unchanged" >&6;}
19268 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19269 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19270 X"$ac_file" : 'X\(//\)[^/]' \| \
19271 X"$ac_file" : 'X\(//\)$' \| \
19272 X"$ac_file" : 'X\(/\)' \| \
19273 . : '\(.\)' 2>/dev/null ||
19275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19276 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19277 /^X\(\/\/\)$/{ s//\1/; q; }
19278 /^X\(\/\).*/{ s//\1/; q; }
19280 { if $as_mkdir_p; then
19285 while test ! -d "$as_dir"; do
19286 as_dirs="$as_dir $as_dirs"
19287 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19288 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19289 X"$as_dir" : 'X\(//\)[^/]' \| \
19290 X"$as_dir" : 'X\(//\)$' \| \
19291 X"$as_dir" : 'X\(/\)' \| \
19292 . : '\(.\)' 2>/dev/null ||
19294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19295 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19296 /^X\(\/\/\)$/{ s//\1/; q; }
19297 /^X\(\/\).*/{ s//\1/; q; }
19300 test ! -n "$as_dirs" || mkdir $as_dirs
19301 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19302 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19303 { (exit 1); exit 1; }; }; }
19306 mv $tmp/config.h $ac_file
19310 rm -f $tmp/config.h
19314 cat >>$CONFIG_STATUS <<\_ACEOF
19317 # CONFIG_COMMANDS section.
19319 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19320 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19321 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19322 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19323 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19324 X"$ac_dest" : 'X\(//\)[^/]' \| \
19325 X"$ac_dest" : 'X\(//\)$' \| \
19326 X"$ac_dest" : 'X\(/\)' \| \
19327 . : '\(.\)' 2>/dev/null ||
19329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19330 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19331 /^X\(\/\/\)$/{ s//\1/; q; }
19332 /^X\(\/\).*/{ s//\1/; q; }
19336 if test "$ac_dir" != .; then
19337 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19338 # A "../" for each directory in $ac_dir_suffix.
19339 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19341 ac_dir_suffix= ac_top_builddir=
19345 .) # No --srcdir option. We are building in place.
19347 if test -z "$ac_top_builddir"; then
19350 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19352 [\\/]* | ?:[\\/]* ) # Absolute path.
19353 ac_srcdir=$srcdir$ac_dir_suffix;
19354 ac_top_srcdir=$srcdir ;;
19355 *) # Relative path.
19356 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19357 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19359 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19361 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19362 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19363 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19364 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19367 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19368 echo "$as_me: executing $ac_dest commands" >&6;}
19370 default ) (echo "Doing make of dependencies"; make depend;)
19376 cat >>$CONFIG_STATUS <<\_ACEOF
19378 { (exit 0); exit 0; }
19380 chmod +x $CONFIG_STATUS
19381 ac_clean_files=$ac_clean_files_save
19384 # configure is writing to config.log, and then calls config.status.
19385 # config.status does its own redirection, appending to config.log.
19386 # Unfortunately, on DOS this fails, as config.log is still kept open
19387 # by configure, so config.status won't be able to write to it; its
19388 # output is simply discarded. So we exec the FD to /dev/null,
19389 # effectively closing config.log, so it can be properly (re)opened and
19390 # appended to by config.status. When coming back to configure, we
19391 # need to make the FD available again.
19392 if test "$no_create" != yes; then
19394 ac_config_status_args=
19395 test "$silent" = yes &&
19396 ac_config_status_args="$ac_config_status_args --quiet"
19398 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19400 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19401 # would make configure fail if this is the last instruction.
19402 $ac_cs_success || { (exit 1); exit 1; }
19407 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19408 chmod 755 bconsole gconsole mtx-changer
19413 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
19414 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
19416 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
19417 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
19419 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
19420 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
19422 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
19423 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
19425 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
19426 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
19428 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19429 chmod 755 $c/sqlite
19432 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19433 largefile_support="yes"
19437 # A whole lot of hand springs to get the compiler version.
19438 # This is because gcc changed the output in version 3.0
19440 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19441 if test "x${CCVERSION}" = "x" ; then
19442 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19444 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19445 if test x"${CXXVERSION}" = x ; then
19446 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19449 if test "x${subsysdir}" = "x${sbindir}" ; then
19452 echo "You have set --sbindir and --with-subsys-dir"
19453 echo " both equal to: ${subsysdir} "
19454 echo " This is not permitted. Please reconfigure."
19455 echo "Aborting configuration ..."
19462 Configuration on `date`:
19464 Host: $host -- ${DISTNAME} ${DISTVER}
19465 Bacula version: ${VERSION} (${DATE})
19466 Source code location: ${srcdir}
19467 Install binaries: ${sbindir}
19468 Install config files: ${sysconfdir}
19469 Scripts directory: ${scriptdir}
19470 Working directory: ${working_dir}
19471 PID directory: ${piddir}
19472 Subsys directory: ${subsysdir}
19473 C Compiler: ${CC} ${CCVERSION}
19474 C++ Compiler: ${CXX} ${CXXVERSION}
19475 Compiler flags: ${WCFLAGS} ${CFLAGS}
19476 Linker flags: ${WLDFLAGS} ${LDFLAGS}
19478 Statically Linked Tools: ${support_static_tools}
19479 Statically Linked FD: ${support_static_fd}
19480 Statically Linked SD: ${support_static_sd}
19481 Statically Linked DIR: ${support_static_dir}
19482 Statically Linked CONS: ${support_static_cons}
19483 Database type: ${db_name}
19484 Database lib: ${DB_LIBS}
19486 Job Output Email: ${job_email}
19487 Traceback Email: ${dump_email}
19488 SMTP Host Address: ${smtp_host}
19490 Director Port: ${dir_port}
19491 File daemon Port: ${fd_port}
19492 Storage daemon Port: ${sd_port}
19494 Director User: ${dir_user}
19495 Director Group: ${dir_group}
19496 Storage Daemon User: ${dir_user}
19497 Storage DaemonGroup: ${dir_group}
19498 File Daemon User: ${dir_user}
19499 File Daemon Group: ${dir_group}
19501 SQL binaries Directory ${SQL_BINDIR}
19503 Large file support: $largefile_support
19504 Bacula conio support: ${got_conio} ${CONS_LIBS}
19505 readline support: ${got_readline} ${PRTREADLINE_SRC}
19506 TCP Wrappers support: ${TCPW_MSG}
19507 ZLIB support: ${have_zlib}
19508 enable-smartalloc: ${support_smartalloc}
19509 enable-gnome: ${support_gnome} ${gnome_version}
19510 client-only: ${build_client_only}
19517 # cweb support: ${got_cweb} ${CWEB_SRC}
19518 # gmp support: ${got_gmp} ${GMP_SRC}