2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures this package to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --x-includes=DIR X include files are in DIR
843 --x-libraries=DIR X library files are in DIR
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 if test -n "$ac_init_help"; then
856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
858 --enable-gnome enable build of gnome-console GUI disabled
859 --enable-wx-console enable build of wxWidgets console disabled
860 --enable-smartalloc enable smartalloc debugging support disabled
861 --enable-static-tools enable static tape tools disabled
862 --enable-static-fd enable static File daemon disabled
863 --enable-static-sd enable static Storage daemon disabled
864 --enable-static-dir enable static Director disabled
865 --enable-static-cons enable static Console disabled
866 --enable-client-only build client (File daemon) only disabled
867 --disable-conio disable conio support enabled
869 --disable-readline disable readline support disable
871 --disable-largefile omit support for large files
874 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
875 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
876 --with-gnome-includes Specify location of GNOME headers
877 --with-gnome-libs Specify location of GNOME libs
878 --with-gnome Specify prefix for GNOME files
879 --with-readline=DIR specify readline library directory
880 --with-tcp-wrappers=DIR enable tcpwrappers support
881 --with-working-dir=PATH specify path of Bacula working directory
882 --with-scriptdir=PATH specify path of Bacula scripts directory
883 --with-dump-email=EMAIL dump email address
884 --with-job-email=EMAIL job output email address
885 --with-smtp-host=HOST SMTP mail host address
886 --with-pid-dir=PATH specify location of Bacula pid files
887 --with-subsys-dir=PATH specify location of Bacula subsys file
888 --with-baseport=PORT specify base port address for daemons
889 --with-dir-password=PASSWORD specify Director's password
890 --with-fd-password=PASSWORD specify Client's password
891 --with-sd-password=PASSWORD specify Storage daemon's password
892 --with-dir-user=USER specify user for Director daemon
893 --with-dir-group=GROUP specify group for Director daemon
894 --with-sd-user=USER specify user for Storage daemon
895 --with-sd-group=GROUP specify group for Storage daemon
896 --with-fd-user=USER specify user for File daemon
897 --with-fd-group=GROUP specify group for File daemon
898 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
899 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
900 base install directory, defaults to /usr/local/pgsql
902 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
903 install directory, default is to search through
904 a number of common places for the MySQL files.
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 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
911 install directory, default is to search through
912 a number of common places for the SQLite files.
913 --with-x use the X Window System
915 Some influential environment variables:
916 CC C compiler command
917 CFLAGS C compiler flags
918 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
919 nonstandard directory <lib dir>
920 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
921 headers in a nonstandard directory <include dir>
922 CXX C++ compiler command
923 CXXFLAGS C++ compiler flags
926 Use these variables to override the choices made by `configure' or to help
927 it to find libraries and programs with nonstandard names/locations.
932 if test "$ac_init_help" = "recursive"; then
933 # If there are subdirs, report their specific --help.
935 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
936 test -d $ac_dir || continue
939 if test "$ac_dir" != .; then
940 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
941 # A "../" for each directory in $ac_dir_suffix.
942 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
944 ac_dir_suffix= ac_top_builddir=
948 .) # No --srcdir option. We are building in place.
950 if test -z "$ac_top_builddir"; then
953 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
955 [\\/]* | ?:[\\/]* ) # Absolute path.
956 ac_srcdir=$srcdir$ac_dir_suffix;
957 ac_top_srcdir=$srcdir ;;
959 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
960 ac_top_srcdir=$ac_top_builddir$srcdir ;;
962 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
964 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
965 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
966 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
967 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
992 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
993 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1004 It was created by $as_me, which was
1005 generated by GNU Autoconf 2.57. Invocation command line was
1016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1025 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1026 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1029 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1030 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1031 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039 test -z "$as_dir" && as_dir=.
1040 echo "PATH: $as_dir"
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_must_keep_next=false
1070 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1074 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081 if test $ac_must_keep_next = true; then
1082 ac_must_keep_next=false # Got value, back to normal.
1085 *=* | --config-cache | -C | -disable-* | --disable-* \
1086 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088 | -with-* | --with-* | -without-* | --without-* | --x)
1089 case "$ac_configure_args0 " in
1090 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 -* ) ac_must_keep_next=true ;;
1096 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097 # Get rid of the leading space.
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log. We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close' the trap.
1111 trap 'exit_status=$?
1112 # Save into config.log some information that might help in debugging.
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1122 # The following way of writing the cache mishandles newlines in values,
1125 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1145 for ac_var in $ac_subst_vars
1147 eval ac_val=$`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1152 if test -n "$ac_subst_files"; then
1159 for ac_var in $ac_subst_files
1161 eval ac_val=$`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1167 if test -s confdefs.h; then
1174 sed "/^$/d" confdefs.h | sort
1177 test "$ac_signal" != 0 &&
1178 echo "$as_me: caught signal $ac_signal"
1179 echo "$as_me: exit $exit_status"
1181 rm -f core core.* *.core &&
1182 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1185 for ac_signal in 1 2 13 15; do
1186 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195 # Predefined preprocessor variables.
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225 if test "x$prefix" != xNONE; then
1226 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 for ac_site_file in $CONFIG_SITE; do
1232 if test -r "$ac_site_file"; then
1233 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235 sed 's/^/| /' "$ac_site_file" >&5
1240 if test -r "$cache_file"; then
1241 # Some versions of bash will fail to source /dev/null (special
1242 # files actually), so we avoid doing that.
1243 if test -f "$cache_file"; then
1244 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1247 [\\/]* | ?:[\\/]* ) . $cache_file;;
1248 *) . ./$cache_file;;
1252 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1257 # Check that the precious variables saved in the cache have kept the same
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263 eval ac_new_set=\$ac_env_${ac_var}_set
1264 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265 eval ac_new_val="\$ac_env_${ac_var}_value"
1266 case $ac_old_set,$ac_new_set in
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1277 if test "x$ac_old_val" != "x$ac_new_val"; then
1278 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1281 echo "$as_me: former value: $ac_old_val" >&2;}
1282 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1283 echo "$as_me: current value: $ac_new_val" >&2;}
1284 ac_cache_corrupted=:
1287 # Pass precious variables to config.status.
1288 if test "$ac_new_set" = set; then
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292 *) ac_arg=$ac_var=$ac_new_val ;;
1294 case " $ac_configure_args " in
1295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1296 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300 if $ac_cache_corrupted; then
1301 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305 { (exit 1); exit 1; }; }
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1339 if test -f $ac_dir/install-sh; then
1341 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 elif test -f $ac_dir/install.sh; then
1345 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 elif test -f $ac_dir/shtool; then
1349 ac_install_sh="$ac_aux_dir/shtool install -c"
1353 if test -z "$ac_aux_dir"; then
1354 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1355 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1356 { (exit 1); exit 1; }; }
1358 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1370 # Extract the first word of "$ac_prog", so it can be a program name with args.
1371 set dummy $ac_prog; ac_word=$2
1372 echo "$as_me:$LINENO: checking for $ac_word" >&5
1373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1374 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1375 echo $ECHO_N "(cached) $ECHO_C" >&6
1379 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386 test -z "$as_dir" && as_dir=.
1387 for ac_exec_ext in '' $ac_executable_extensions; do
1388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1389 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1399 TRUEPRG=$ac_cv_path_TRUEPRG
1401 if test -n "$TRUEPRG"; then
1402 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1403 echo "${ECHO_T}$TRUEPRG" >&6
1405 echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1409 test -n "$TRUEPRG" && break
1411 test -n "$TRUEPRG" || TRUEPRG=":"
1413 for ac_prog in false
1415 # Extract the first word of "$ac_prog", so it can be a program name with args.
1416 set dummy $ac_prog; ac_word=$2
1417 echo "$as_me:$LINENO: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1424 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431 test -z "$as_dir" && as_dir=.
1432 for ac_exec_ext in '' $ac_executable_extensions; do
1433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1444 FALSEPRG=$ac_cv_path_FALSEPRG
1446 if test -n "$FALSEPRG"; then
1447 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1448 echo "${ECHO_T}$FALSEPRG" >&6
1450 echo "$as_me:$LINENO: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1454 test -n "$FALSEPRG" && break
1456 test -n "$FALSEPRG" || FALSEPRG=":"
1461 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1462 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1464 echo "configuring for bacula $VERSION ($DATE)"
1469 ac_cpp='$CPP $CPPFLAGS'
1470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1473 if test -n "$ac_tool_prefix"; then
1474 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 if test -n "$CC"; then
1482 ac_cv_prog_CC="$CC" # Let the user override the test.
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1501 if test -n "$CC"; then
1502 echo "$as_me:$LINENO: result: $CC" >&5
1503 echo "${ECHO_T}$CC" >&6
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1510 if test -z "$ac_cv_prog_CC"; then
1512 # Extract the first word of "gcc", so it can be a program name with args.
1513 set dummy gcc; ac_word=$2
1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1517 echo $ECHO_N "(cached) $ECHO_C" >&6
1519 if test -n "$ac_ct_CC"; then
1520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 test -z "$as_dir" && as_dir=.
1527 for ac_exec_ext in '' $ac_executable_extensions; do
1528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529 ac_cv_prog_ac_ct_CC="gcc"
1530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1539 if test -n "$ac_ct_CC"; then
1540 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1541 echo "${ECHO_T}$ac_ct_CC" >&6
1543 echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1552 if test -z "$CC"; then
1553 if test -n "$ac_tool_prefix"; then
1554 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1555 set dummy ${ac_tool_prefix}cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 if test -n "$CC"; then
1562 ac_cv_prog_CC="$CC" # Let the user override the test.
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_CC="${ac_tool_prefix}cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581 if test -n "$CC"; then
1582 echo "$as_me:$LINENO: result: $CC" >&5
1583 echo "${ECHO_T}$CC" >&6
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1590 if test -z "$ac_cv_prog_CC"; then
1592 # Extract the first word of "cc", so it can be a program name with args.
1593 set dummy cc; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 if test -n "$ac_ct_CC"; then
1600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 ac_cv_prog_ac_ct_CC="cc"
1610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1619 if test -n "$ac_ct_CC"; then
1620 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1621 echo "${ECHO_T}$ac_ct_CC" >&6
1623 echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1633 if test -z "$CC"; then
1634 # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 if test -n "$CC"; then
1642 ac_cv_prog_CC="$CC" # Let the user override the test.
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1653 ac_prog_rejected=yes
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 if test $ac_prog_rejected = yes; then
1664 # We found a bogon in the path, so make sure we never use it.
1665 set dummy $ac_cv_prog_CC
1667 if test $# != 0; then
1668 # We chose a different compiler from the bogus one.
1669 # However, it has the same basename, so the bogon will be chosen
1670 # first if we set CC to just the basename; use the full file name.
1672 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1678 if test -n "$CC"; then
1679 echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1687 if test -z "$CC"; then
1688 if test -n "$ac_tool_prefix"; then
1691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_CC+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1698 if test -n "$CC"; then
1699 ac_cv_prog_CC="$CC" # Let the user override the test.
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 if test -n "$CC"; then
1719 echo "$as_me:$LINENO: result: $CC" >&5
1720 echo "${ECHO_T}$CC" >&6
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1726 test -n "$CC" && break
1729 if test -z "$CC"; then
1733 # Extract the first word of "$ac_prog", so it can be a program name with args.
1734 set dummy $ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_CC="$ac_prog"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1768 test -n "$ac_ct_CC" && break
1777 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1778 See \`config.log' for more details." >&5
1779 echo "$as_me: error: no acceptable C compiler found in \$PATH
1780 See \`config.log' for more details." >&2;}
1781 { (exit 1); exit 1; }; }
1783 # Provide some information about the compiler.
1784 echo "$as_me:$LINENO:" \
1785 "checking for C compiler version" >&5
1786 ac_compiler=`set X $ac_compile; echo $2`
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1788 (eval $ac_compiler --version </dev/null >&5) 2>&5
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }
1792 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1793 (eval $ac_compiler -v </dev/null >&5) 2>&5
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }
1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1798 (eval $ac_compiler -V </dev/null >&5) 2>&5
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 (exit $ac_status); }
1803 cat >conftest.$ac_ext <<_ACEOF
1804 #line $LINENO "configure"
1807 cat confdefs.h >>conftest.$ac_ext
1808 cat >>conftest.$ac_ext <<_ACEOF
1809 /* end confdefs.h. */
1819 ac_clean_files_save=$ac_clean_files
1820 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1821 # Try to create an executable without -o first, disregard a.out.
1822 # It will help us diagnose broken compilers, and finding out an intuition
1824 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1825 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1826 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1827 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1828 (eval $ac_link_default) 2>&5
1830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1831 (exit $ac_status); }; then
1832 # Find the output, starting from the most likely. This scheme is
1833 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1836 # Be careful to initialize this variable, since it used to be cached.
1837 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1839 # b.out is created by i960 compilers.
1840 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1842 test -f "$ac_file" || continue
1844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1847 # This is the source file.
1850 # We found the default executable, but exeext='' is most
1854 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1855 # FIXME: I believe we export ac_cv_exeext for Libtool,
1856 # but it would be cool to find out if it's true. Does anybody
1857 # maintain Libtool? --akim.
1865 echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1868 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1869 See \`config.log' for more details." >&5
1870 echo "$as_me: error: C compiler cannot create executables
1871 See \`config.log' for more details." >&2;}
1872 { (exit 77); exit 77; }; }
1875 ac_exeext=$ac_cv_exeext
1876 echo "$as_me:$LINENO: result: $ac_file" >&5
1877 echo "${ECHO_T}$ac_file" >&6
1879 # Check the compiler produces executables we can run. If not, either
1880 # the compiler is broken, or we cross compile.
1881 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1884 # If not cross compiling, check that we can run a simple program.
1885 if test "$cross_compiling" != yes; then
1886 if { ac_try='./$ac_file'
1887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; }; then
1894 if test "$cross_compiling" = maybe; then
1897 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1898 If you meant to cross compile, use \`--host'.
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot run C compiled programs.
1901 If you meant to cross compile, use \`--host'.
1902 See \`config.log' for more details." >&2;}
1903 { (exit 1); exit 1; }; }
1907 echo "$as_me:$LINENO: result: yes" >&5
1908 echo "${ECHO_T}yes" >&6
1910 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1911 ac_clean_files=$ac_clean_files_save
1912 # Check the compiler produces executables we can run. If not, either
1913 # the compiler is broken, or we cross compile.
1914 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1915 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1916 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1917 echo "${ECHO_T}$cross_compiling" >&6
1919 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1920 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1922 (eval $ac_link) 2>&5
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }; then
1926 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1927 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1928 # work properly (i.e., refer to `conftest.exe'), while it won't with
1930 for ac_file in conftest.exe conftest conftest.*; do
1931 test -f "$ac_file" || continue
1933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1934 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1941 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1942 See \`config.log' for more details." >&5
1943 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1944 See \`config.log' for more details." >&2;}
1945 { (exit 1); exit 1; }; }
1948 rm -f conftest$ac_cv_exeext
1949 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1950 echo "${ECHO_T}$ac_cv_exeext" >&6
1952 rm -f conftest.$ac_ext
1953 EXEEXT=$ac_cv_exeext
1955 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1956 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1957 if test "${ac_cv_objext+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 cat >conftest.$ac_ext <<_ACEOF
1961 #line $LINENO "configure"
1964 cat confdefs.h >>conftest.$ac_ext
1965 cat >>conftest.$ac_ext <<_ACEOF
1966 /* end confdefs.h. */
1976 rm -f conftest.o conftest.obj
1977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1978 (eval $ac_compile) 2>&5
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); }; then
1982 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1985 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1990 echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1993 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1994 See \`config.log' for more details." >&5
1995 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1996 See \`config.log' for more details." >&2;}
1997 { (exit 1); exit 1; }; }
2000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2002 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2003 echo "${ECHO_T}$ac_cv_objext" >&6
2004 OBJEXT=$ac_cv_objext
2006 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2007 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2008 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h. */
2030 rm -f conftest.$ac_objext
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); } &&
2036 { ac_try='test -s conftest.$ac_objext'
2037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; }; then
2044 echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2049 rm -f conftest.$ac_objext conftest.$ac_ext
2050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2053 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2054 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2055 GCC=`test $ac_compiler_gnu = yes && echo yes`
2056 ac_test_CFLAGS=${CFLAGS+set}
2057 ac_save_CFLAGS=$CFLAGS
2059 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2060 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2061 if test "${ac_cv_prog_cc_g+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 cat >conftest.$ac_ext <<_ACEOF
2065 #line $LINENO "configure"
2068 cat confdefs.h >>conftest.$ac_ext
2069 cat >>conftest.$ac_ext <<_ACEOF
2070 /* end confdefs.h. */
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082 (eval $ac_compile) 2>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); } &&
2086 { ac_try='test -s conftest.$ac_objext'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; }; then
2094 echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2099 rm -f conftest.$ac_objext conftest.$ac_ext
2101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2102 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2103 if test "$ac_test_CFLAGS" = set; then
2104 CFLAGS=$ac_save_CFLAGS
2105 elif test $ac_cv_prog_cc_g = yes; then
2106 if test "$GCC" = yes; then
2112 if test "$GCC" = yes; then
2118 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2119 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 ac_cv_prog_cc_stdc=no
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2134 #include <sys/types.h>
2135 #include <sys/stat.h>
2136 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2137 struct buf { int x; };
2138 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2139 static char *e (p, i)
2145 static char *f (char * (*g) (char **, int), char **p, ...)
2150 s = g (p, va_arg (v,int));
2154 int test (int i, double x);
2155 struct s1 {int (*f) (int a);};
2156 struct s2 {int (*f) (double a);};
2157 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2163 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2168 # Don't try gcc -ansi; that turns off useful extensions and
2169 # breaks some systems' header files.
2170 # AIX -qlanglvl=ansi
2171 # Ultrix and OSF/1 -std1
2172 # HP-UX 10.20 and later -Ae
2173 # HP-UX older versions -Aa -D_HPUX_SOURCE
2174 # SVR4 -Xc -D__EXTENSIONS__
2175 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2177 CC="$ac_save_CC $ac_arg"
2178 rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180 (eval $ac_compile) 2>&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 ac_cv_prog_cc_stdc=$ac_arg
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2197 rm -f conftest.$ac_objext
2199 rm -f conftest.$ac_ext conftest.$ac_objext
2204 case "x$ac_cv_prog_cc_stdc" in
2206 echo "$as_me:$LINENO: result: none needed" >&5
2207 echo "${ECHO_T}none needed" >&6 ;;
2209 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211 CC="$CC $ac_cv_prog_cc_stdc" ;;
2214 # Some people use a C++ compiler to compile C. Since we use `exit',
2215 # in C++ we need to declare it. In case someone uses the same compiler
2216 # for both compiling C and C++ we need to have the C++ compiler decide
2217 # the declaration of exit, since it's the most demanding environment.
2218 cat >conftest.$ac_ext <<_ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -s conftest.$ac_objext'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2235 for ac_declaration in \
2237 '#include <stdlib.h>' \
2238 'extern "C" void std::exit (int) throw (); using std::exit;' \
2239 'extern "C" void std::exit (int); using std::exit;' \
2240 'extern "C" void exit (int) throw ();' \
2241 'extern "C" void exit (int);' \
2244 cat >conftest.$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); } &&
2267 { ac_try='test -s conftest.$ac_objext'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2280 rm -f conftest.$ac_objext conftest.$ac_ext
2281 cat >conftest.$ac_ext <<_ACEOF
2282 #line $LINENO "configure"
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h. */
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); } &&
2303 { ac_try='test -s conftest.$ac_objext'
2304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; }; then
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2315 rm -f conftest.$ac_objext conftest.$ac_ext
2318 if test -n "$ac_declaration"; then
2319 echo '#ifdef __cplusplus' >>confdefs.h
2320 echo $ac_declaration >>confdefs.h
2321 echo '#endif' >>confdefs.h
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2329 rm -f conftest.$ac_objext conftest.$ac_ext
2331 ac_cpp='$CPP $CPPFLAGS'
2332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2337 ac_cpp='$CXXCPP $CPPFLAGS'
2338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2341 if test -n "$ac_tool_prefix"; then
2342 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2346 echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348 if test "${ac_cv_prog_CXX+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 if test -n "$CXX"; then
2352 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
2360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 if test -n "$CXX"; then
2372 echo "$as_me:$LINENO: result: $CXX" >&5
2373 echo "${ECHO_T}$CXX" >&6
2375 echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6
2379 test -n "$CXX" && break
2382 if test -z "$CXX"; then
2384 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2386 # Extract the first word of "$ac_prog", so it can be a program name with args.
2387 set dummy $ac_prog; ac_word=$2
2388 echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2390 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 if test -n "$ac_ct_CXX"; then
2394 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2403 ac_cv_prog_ac_ct_CXX="$ac_prog"
2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2413 if test -n "$ac_ct_CXX"; then
2414 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2415 echo "${ECHO_T}$ac_ct_CXX" >&6
2417 echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6
2421 test -n "$ac_ct_CXX" && break
2423 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2429 # Provide some information about the compiler.
2430 echo "$as_me:$LINENO:" \
2431 "checking for C++ compiler version" >&5
2432 ac_compiler=`set X $ac_compile; echo $2`
2433 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2434 (eval $ac_compiler --version </dev/null >&5) 2>&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }
2438 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2439 (eval $ac_compiler -v </dev/null >&5) 2>&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }
2443 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2444 (eval $ac_compiler -V </dev/null >&5) 2>&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }
2449 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2450 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2451 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2454 cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h. */
2473 rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475 (eval $ac_compile) 2>&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); } &&
2479 { ac_try='test -s conftest.$ac_objext'
2480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; }; then
2487 echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2492 rm -f conftest.$ac_objext conftest.$ac_ext
2493 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2496 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2497 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2498 GXX=`test $ac_compiler_gnu = yes && echo yes`
2499 ac_test_CXXFLAGS=${CXXFLAGS+set}
2500 ac_save_CXXFLAGS=$CXXFLAGS
2502 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2503 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2504 if test "${ac_cv_prog_cxx_g+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 cat >conftest.$ac_ext <<_ACEOF
2508 #line $LINENO "configure"
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h. */
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525 (eval $ac_compile) 2>&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -s conftest.$ac_objext'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; }; then
2535 ac_cv_prog_cxx_g=yes
2537 echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2544 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2545 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2546 if test "$ac_test_CXXFLAGS" = set; then
2547 CXXFLAGS=$ac_save_CXXFLAGS
2548 elif test $ac_cv_prog_cxx_g = yes; then
2549 if test "$GXX" = yes; then
2555 if test "$GXX" = yes; then
2561 for ac_declaration in \
2563 '#include <stdlib.h>' \
2564 'extern "C" void std::exit (int) throw (); using std::exit;' \
2565 'extern "C" void std::exit (int); using std::exit;' \
2566 'extern "C" void exit (int) throw ();' \
2567 'extern "C" void exit (int);' \
2570 cat >conftest.$ac_ext <<_ACEOF
2571 #line $LINENO "configure"
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589 (eval $ac_compile) 2>&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try='test -s conftest.$ac_objext'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2606 rm -f conftest.$ac_objext conftest.$ac_ext
2607 cat >conftest.$ac_ext <<_ACEOF
2608 #line $LINENO "configure"
2611 cat confdefs.h >>conftest.$ac_ext
2612 cat >>conftest.$ac_ext <<_ACEOF
2613 /* end confdefs.h. */
2623 rm -f conftest.$ac_objext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625 (eval $ac_compile) 2>&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } &&
2629 { ac_try='test -s conftest.$ac_objext'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2641 rm -f conftest.$ac_objext conftest.$ac_ext
2644 if test -n "$ac_declaration"; then
2645 echo '#ifdef __cplusplus' >>confdefs.h
2646 echo $ac_declaration >>confdefs.h
2647 echo '#endif' >>confdefs.h
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656 if test "x$CC" != xcc; then
2657 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2658 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2660 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2661 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2663 set dummy $CC; ac_cc=`echo $2 |
2664 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2665 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 cat >conftest.$ac_ext <<_ACEOF
2669 #line $LINENO "configure"
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2684 # Make sure it works both with $CC and with simple cc.
2685 # We do the test twice because some compilers refuse to overwrite an
2686 # existing .o file with -o, though they will create one.
2687 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2688 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } &&
2693 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); };
2699 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2700 if test "x$CC" != xcc; then
2701 # Test first that cc exists at all.
2702 if { ac_try='cc -c conftest.$ac_ext >&5'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; }; then
2708 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2709 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); };
2723 # cc exists but doesn't like -o.
2724 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2729 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2734 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2735 echo "$as_me:$LINENO: result: yes" >&5
2736 echo "${ECHO_T}yes" >&6
2738 echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2741 cat >>confdefs.h <<\_ACEOF
2742 #define NO_MINUS_C_MINUS_O 1
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2753 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2754 # On Suns, sometimes $CPP names a directory.
2755 if test -n "$CPP" && test -d "$CPP"; then
2758 if test -z "$CPP"; then
2759 if test "${ac_cv_prog_CPP+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 # Double quotes because CPP needs to be expanded
2763 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2766 for ac_c_preproc_warn_flag in '' yes
2768 # Use a header file that comes with gcc, so configuring glibc
2769 # with a fresh cross-compiler works.
2770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2771 # <limits.h> exists even on freestanding compilers.
2772 # On the NeXT, cc -E runs the code through the compiler's parser,
2773 # not just through cpp. "Syntax error" is here to catch this case.
2774 cat >conftest.$ac_ext <<_ACEOF
2775 #line $LINENO "configure"
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2782 # include <limits.h>
2784 # include <assert.h>
2788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2791 grep -v '^ *+' conftest.er1 >conftest.err
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } >/dev/null; then
2796 if test -s conftest.err; then
2797 ac_cpp_err=$ac_c_preproc_warn_flag
2804 if test -z "$ac_cpp_err"; then
2807 echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2810 # Broken: fails on valid input.
2813 rm -f conftest.err conftest.$ac_ext
2815 # OK, works on sane cases. Now check whether non-existent headers
2816 # can be detected and how.
2817 cat >conftest.$ac_ext <<_ACEOF
2818 #line $LINENO "configure"
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2824 #include <ac_nonexistent.h>
2826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2829 grep -v '^ *+' conftest.er1 >conftest.err
2831 cat conftest.err >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } >/dev/null; then
2834 if test -s conftest.err; then
2835 ac_cpp_err=$ac_c_preproc_warn_flag
2842 if test -z "$ac_cpp_err"; then
2843 # Broken: success on invalid input.
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2849 # Passes both tests.
2853 rm -f conftest.err conftest.$ac_ext
2856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2857 rm -f conftest.err conftest.$ac_ext
2858 if $ac_preproc_ok; then
2870 echo "$as_me:$LINENO: result: $CPP" >&5
2871 echo "${ECHO_T}$CPP" >&6
2873 for ac_c_preproc_warn_flag in '' yes
2875 # Use a header file that comes with gcc, so configuring glibc
2876 # with a fresh cross-compiler works.
2877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2878 # <limits.h> exists even on freestanding compilers.
2879 # On the NeXT, cc -E runs the code through the compiler's parser,
2880 # not just through cpp. "Syntax error" is here to catch this case.
2881 cat >conftest.$ac_ext <<_ACEOF
2882 #line $LINENO "configure"
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h. */
2889 # include <limits.h>
2891 # include <assert.h>
2895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2898 grep -v '^ *+' conftest.er1 >conftest.err
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } >/dev/null; then
2903 if test -s conftest.err; then
2904 ac_cpp_err=$ac_c_preproc_warn_flag
2911 if test -z "$ac_cpp_err"; then
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2917 # Broken: fails on valid input.
2920 rm -f conftest.err conftest.$ac_ext
2922 # OK, works on sane cases. Now check whether non-existent headers
2923 # can be detected and how.
2924 cat >conftest.$ac_ext <<_ACEOF
2925 #line $LINENO "configure"
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2931 #include <ac_nonexistent.h>
2933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2936 grep -v '^ *+' conftest.er1 >conftest.err
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } >/dev/null; then
2941 if test -s conftest.err; then
2942 ac_cpp_err=$ac_c_preproc_warn_flag
2949 if test -z "$ac_cpp_err"; then
2950 # Broken: success on invalid input.
2953 echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2956 # Passes both tests.
2960 rm -f conftest.err conftest.$ac_ext
2963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2964 rm -f conftest.err conftest.$ac_ext
2965 if $ac_preproc_ok; then
2968 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2969 See \`config.log' for more details." >&5
2970 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2971 See \`config.log' for more details." >&2;}
2972 { (exit 1); exit 1; }; }
2976 ac_cpp='$CPP $CPPFLAGS'
2977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982 echo "$as_me:$LINENO: checking for egrep" >&5
2983 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2984 if test "${ac_cv_prog_egrep+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2988 then ac_cv_prog_egrep='grep -E'
2989 else ac_cv_prog_egrep='egrep'
2992 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2993 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2994 EGREP=$ac_cv_prog_egrep
2997 if test $ac_cv_c_compiler_gnu = yes; then
2998 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2999 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3000 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 ac_pattern="Autoconf.*'x'"
3004 cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3015 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3016 ac_cv_prog_gcc_traditional=yes
3018 ac_cv_prog_gcc_traditional=no
3023 if test $ac_cv_prog_gcc_traditional = no; then
3024 cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3035 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3036 ac_cv_prog_gcc_traditional=yes
3042 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3043 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3044 if test $ac_cv_prog_gcc_traditional = yes; then
3045 CC="$CC -traditional"
3051 cat >>confdefs.h <<\_ACEOF
3057 # Find a good install program. We prefer a C program (faster),
3058 # so one script is as good as another. But avoid the broken or
3059 # incompatible versions:
3060 # SysV /etc/install, /usr/sbin/install
3061 # SunOS /usr/etc/install
3062 # IRIX /sbin/install
3064 # AmigaOS /C/install, which installs bootblocks on floppy discs
3065 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3066 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3067 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3068 # ./install, which can be erroneously created by make from ./install.sh.
3069 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3070 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3071 if test -z "$INSTALL"; then
3072 if test "${ac_cv_path_install+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir=.
3080 # Account for people who put trailing slashes in PATH elements.
3082 ./ | .// | /cC/* | \
3083 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3086 # OSF1 and SCO ODT 3.0 have their own names for install.
3087 # Don't use installbsd from OSF since it installs stuff as root
3089 for ac_prog in ginstall scoinst install; do
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3092 if test $ac_prog = install &&
3093 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3094 # AIX install. It has an incompatible calling convention.
3096 elif test $ac_prog = install &&
3097 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098 # program-specific install script used by HP pwplus--don't use.
3101 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3113 if test "${ac_cv_path_install+set}" = set; then
3114 INSTALL=$ac_cv_path_install
3116 # As a last resort, use the slow shell script. We don't cache a
3117 # path for INSTALL within a source directory, because that will
3118 # break other packages using the cache if that directory is
3119 # removed, or if the path is relative.
3120 INSTALL=$ac_install_sh
3123 echo "$as_me:$LINENO: result: $INSTALL" >&5
3124 echo "${ECHO_T}$INSTALL" >&6
3126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3127 # It thinks the first close brace ends the variable substitution.
3128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3134 if test -n "$ac_tool_prefix"; then
3135 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3137 echo "$as_me:$LINENO: checking for $ac_word" >&5
3138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3139 if test "${ac_cv_prog_RANLIB+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 if test -n "$RANLIB"; then
3143 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 RANLIB=$ac_cv_prog_RANLIB
3162 if test -n "$RANLIB"; then
3163 echo "$as_me:$LINENO: result: $RANLIB" >&5
3164 echo "${ECHO_T}$RANLIB" >&6
3166 echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3171 if test -z "$ac_cv_prog_RANLIB"; then
3172 ac_ct_RANLIB=$RANLIB
3173 # Extract the first word of "ranlib", so it can be a program name with args.
3174 set dummy ranlib; ac_word=$2
3175 echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 if test -n "$ac_ct_RANLIB"; then
3181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_ac_ct_RANLIB="ranlib"
3191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3201 if test -n "$ac_ct_RANLIB"; then
3202 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3203 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3205 echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3209 RANLIB=$ac_ct_RANLIB
3211 RANLIB="$ac_cv_prog_RANLIB"
3214 # Extract the first word of "mv", so it can be a program name with args.
3215 set dummy mv; ac_word=$2
3216 echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3218 if test "${ac_cv_path_MV+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3246 if test -n "$MV"; then
3247 echo "$as_me:$LINENO: result: $MV" >&5
3248 echo "${ECHO_T}$MV" >&6
3250 echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3254 # Extract the first word of "rm", so it can be a program name with args.
3255 set dummy rm; ac_word=$2
3256 echo "$as_me:$LINENO: checking for $ac_word" >&5
3257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3258 if test "${ac_cv_path_RM+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3286 if test -n "$RM"; then
3287 echo "$as_me:$LINENO: result: $RM" >&5
3288 echo "${ECHO_T}$RM" >&6
3290 echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3294 # Extract the first word of "cp", so it can be a program name with args.
3295 set dummy cp; ac_word=$2
3296 echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3298 if test "${ac_cv_path_CP+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3326 if test -n "$CP"; then
3327 echo "$as_me:$LINENO: result: $CP" >&5
3328 echo "${ECHO_T}$CP" >&6
3330 echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6
3334 # Extract the first word of "sed", so it can be a program name with args.
3335 set dummy sed; ac_word=$2
3336 echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3338 if test "${ac_cv_path_SED+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3366 if test -n "$SED"; then
3367 echo "$as_me:$LINENO: result: $SED" >&5
3368 echo "${ECHO_T}$SED" >&6
3370 echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3374 # Extract the first word of "awk", so it can be a program name with args.
3375 set dummy awk; ac_word=$2
3376 echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378 if test "${ac_cv_path_AWK+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3406 if test -n "$AWK"; then
3407 echo "$as_me:$LINENO: result: $AWK" >&5
3408 echo "${ECHO_T}$AWK" >&6
3410 echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3414 # Extract the first word of "echo", so it can be a program name with args.
3415 set dummy echo; ac_word=$2
3416 echo "$as_me:$LINENO: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3418 if test "${ac_cv_path_ECHO+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3444 ECHO=$ac_cv_path_ECHO
3446 if test -n "$ECHO"; then
3447 echo "$as_me:$LINENO: result: $ECHO" >&5
3448 echo "${ECHO_T}$ECHO" >&6
3450 echo "$as_me:$LINENO: result: no" >&5
3451 echo "${ECHO_T}no" >&6
3454 # Extract the first word of "cmp", so it can be a program name with args.
3455 set dummy cmp; ac_word=$2
3456 echo "$as_me:$LINENO: checking for $ac_word" >&5
3457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458 if test "${ac_cv_path_CMP+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3486 if test -n "$CMP"; then
3487 echo "$as_me:$LINENO: result: $CMP" >&5
3488 echo "${ECHO_T}$CMP" >&6
3490 echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3494 # Extract the first word of "tbl", so it can be a program name with args.
3495 set dummy tbl; ac_word=$2
3496 echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_path_TBL+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3526 if test -n "$TBL"; then
3527 echo "$as_me:$LINENO: result: $TBL" >&5
3528 echo "${ECHO_T}$TBL" >&6
3530 echo "$as_me:$LINENO: result: no" >&5
3531 echo "${ECHO_T}no" >&6
3534 # Extract the first word of "ar", so it can be a program name with args.
3535 set dummy ar; ac_word=$2
3536 echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 if test "${ac_cv_path_AR+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3566 if test -n "$AR"; then
3567 echo "$as_me:$LINENO: result: $AR" >&5
3568 echo "${ECHO_T}$AR" >&6
3570 echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3574 # Extract the first word of "openssl", so it can be a program name with args.
3575 set dummy openssl; ac_word=$2
3576 echo "$as_me:$LINENO: checking for $ac_word" >&5
3577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3578 if test "${ac_cv_path_OPENSSL+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3604 OPENSSL=$ac_cv_path_OPENSSL
3606 if test -n "$OPENSSL"; then
3607 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3608 echo "${ECHO_T}$OPENSSL" >&6
3610 echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3614 # Extract the first word of "mtx", so it can be a program name with args.
3615 set dummy mtx; ac_word=$2
3616 echo "$as_me:$LINENO: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_path_MTX+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3646 if test -n "$MTX"; then
3647 echo "$as_me:$LINENO: result: $MTX" >&5
3648 echo "${ECHO_T}$MTX" >&6
3650 echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3654 # Extract the first word of "pkg-config", so it can be a program name with args.
3655 set dummy pkg-config; ac_word=$2
3656 echo "$as_me:$LINENO: checking for $ac_word" >&5
3657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3658 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3684 PKGCONFIG=$ac_cv_path_PKGCONFIG
3686 if test -n "$PKGCONFIG"; then
3687 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3688 echo "${ECHO_T}$PKGCONFIG" >&6
3690 echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6
3694 # Extract the first word of "wx-config", so it can be a program name with args.
3695 set dummy wx-config; ac_word=$2
3696 echo "$as_me:$LINENO: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 test -z "$as_dir" && as_dir=.
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3724 WXCONFIG=$ac_cv_path_WXCONFIG
3726 if test -n "$WXCONFIG"; then
3727 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3728 echo "${ECHO_T}$WXCONFIG" >&6
3730 echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6
3735 test -n "$ARFLAG" || ARFLAGS="cr"
3748 # Make sure we can run config.sub.
3749 $ac_config_sub sun4 >/dev/null 2>&1 ||
3750 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3751 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3752 { (exit 1); exit 1; }; }
3754 echo "$as_me:$LINENO: checking build system type" >&5
3755 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3756 if test "${ac_cv_build+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 ac_cv_build_alias=$build_alias
3760 test -z "$ac_cv_build_alias" &&
3761 ac_cv_build_alias=`$ac_config_guess`
3762 test -z "$ac_cv_build_alias" &&
3763 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3764 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3765 { (exit 1); exit 1; }; }
3766 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3767 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3768 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3769 { (exit 1); exit 1; }; }
3772 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3773 echo "${ECHO_T}$ac_cv_build" >&6
3775 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3776 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3777 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3781 echo "$as_me:$LINENO: checking host system type" >&5
3782 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3783 if test "${ac_cv_host+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 ac_cv_host_alias=$host_alias
3787 test -z "$ac_cv_host_alias" &&
3788 ac_cv_host_alias=$ac_cv_build_alias
3789 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3790 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3791 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3792 { (exit 1); exit 1; }; }
3795 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3796 echo "${ECHO_T}$ac_cv_host" >&6
3798 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3799 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3800 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3804 *cygwin* ) CYGWIN=yes;;
3808 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3814 HAVE_SUN_OS_FALSE='#'
3816 HAVE_SUN_OS_TRUE='#'
3819 cat >>confdefs.h <<\_ACEOF
3820 #define HAVE_SUN_OS 1
3828 HAVE_SUN_OS_FALSE='#'
3830 HAVE_SUN_OS_TRUE='#'
3835 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3841 HAVE_OSF1_OS_FALSE='#'
3843 HAVE_OSF1_OS_TRUE='#'
3846 cat >>confdefs.h <<\_ACEOF
3847 #define HAVE_OSF1_OS 1
3855 HAVE_OSF1_OS_FALSE='#'
3857 HAVE_OSF1_OS_TRUE='#'
3862 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3868 HAVE_AIX_OS_FALSE='#'
3870 HAVE_AIX_OS_TRUE='#'
3873 cat >>confdefs.h <<\_ACEOF
3874 #define HAVE_AIX_OS 1
3882 HAVE_AIX_OS_FALSE='#'
3884 HAVE_AIX_OS_TRUE='#'
3889 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3895 HAVE_HPUX_OS_FALSE='#'
3897 HAVE_HPUX_OS_TRUE='#'
3900 cat >>confdefs.h <<\_ACEOF
3901 #define HAVE_HPUX_OS 1
3909 HAVE_HPUX_OS_FALSE='#'
3911 HAVE_HPUX_OS_TRUE='#'
3916 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3922 HAVE_LINUX_OS_FALSE='#'
3924 HAVE_LINUX_OS_TRUE='#'
3925 HAVE_LINUX_OS_FALSE=
3927 cat >>confdefs.h <<\_ACEOF
3928 #define HAVE_LINUX_OS 1
3936 HAVE_LINUX_OS_FALSE='#'
3938 HAVE_LINUX_OS_TRUE='#'
3939 HAVE_LINUX_OS_FALSE=
3943 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3948 HAVE_FREEBSD_OS_TRUE=
3949 HAVE_FREEBSD_OS_FALSE='#'
3951 HAVE_FREEBSD_OS_TRUE='#'
3952 HAVE_FREEBSD_OS_FALSE=
3954 cat >>confdefs.h <<\_ACEOF
3955 #define HAVE_FREEBSD_OS 1
3962 HAVE_FREEBSD_OS_TRUE=
3963 HAVE_FREEBSD_OS_FALSE='#'
3965 HAVE_FREEBSD_OS_TRUE='#'
3966 HAVE_FREEBSD_OS_FALSE=
3970 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3975 HAVE_NETBSD_OS_TRUE=
3976 HAVE_NETBSD_OS_FALSE='#'
3978 HAVE_NETBSD_OS_TRUE='#'
3979 HAVE_NETBSD_OS_FALSE=
3981 cat >>confdefs.h <<\_ACEOF
3982 #define HAVE_NETBSD_OS 1
3989 HAVE_NETBSD_OS_TRUE=
3990 HAVE_NETBSD_OS_FALSE='#'
3992 HAVE_NETBSD_OS_TRUE='#'
3993 HAVE_NETBSD_OS_FALSE=
3997 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4002 HAVE_OPENBSD_OS_TRUE=
4003 HAVE_OPENBSD_OS_FALSE='#'
4005 HAVE_OPENBSD_OS_TRUE='#'
4006 HAVE_OPENBSD_OS_FALSE=
4008 cat >>confdefs.h <<\_ACEOF
4009 #define HAVE_OPENBSD_OS 1
4016 HAVE_OPENBSD_OS_TRUE=
4017 HAVE_OPENBSD_OS_FALSE='#'
4019 HAVE_OPENBSD_OS_TRUE='#'
4020 HAVE_OPENBSD_OS_FALSE=
4024 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4030 HAVE_BSDI_OS_FALSE='#'
4032 HAVE_BSDI_OS_TRUE='#'
4035 cat >>confdefs.h <<\_ACEOF
4036 #define HAVE_BSDI_OS 1
4044 HAVE_BSDI_OS_FALSE='#'
4046 HAVE_BSDI_OS_TRUE='#'
4051 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4057 HAVE_SGI_OS_FALSE='#'
4059 HAVE_SGI_OS_TRUE='#'
4062 cat >>confdefs.h <<\_ACEOF
4063 #define HAVE_SGI_OS 1
4071 HAVE_SGI_OS_FALSE='#'
4073 HAVE_SGI_OS_TRUE='#'
4078 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4084 HAVE_IRIX_OS_FALSE='#'
4086 HAVE_IRIX_OS_TRUE='#'
4089 cat >>confdefs.h <<\_ACEOF
4090 #define HAVE_IRIX_OS 1
4098 HAVE_IRIX_OS_FALSE='#'
4100 HAVE_IRIX_OS_TRUE='#'
4105 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4110 HAVE_DARWIN_OS_TRUE=
4111 HAVE_DARWIN_OS_FALSE='#'
4113 HAVE_DARWIN_OS_TRUE='#'
4114 HAVE_DARWIN_OS_FALSE=
4116 cat >>confdefs.h <<\_ACEOF
4117 #define HAVE_DARWIN_OS 1
4124 HAVE_DARWIN_OS_TRUE=
4125 HAVE_DARWIN_OS_FALSE='#'
4127 HAVE_DARWIN_OS_TRUE='#'
4128 HAVE_DARWIN_OS_FALSE=
4133 # -----------------------------------------------------------
4134 # ----------------------------------------------------------
4135 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4136 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4137 if test "x$DISTNAME" != "x"
4139 echo "distname set to $DISTNAME"
4140 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4143 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4146 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4149 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4152 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4155 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4158 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4161 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4164 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4167 elif test -f /etc/SuSE-release
4170 elif test -d /etc/SuSEconfig
4173 elif test -f /etc/mandrake-release
4176 elif test -f /etc/whitebox-release
4179 elif test -f /etc/redhat-release
4182 elif test -f /etc/gentoo-release
4185 elif test -f /etc/debian_version
4188 elif test -f /etc/slackware-version
4191 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4194 elif test -f /etc/engarde-version
4197 elif test "$CYGWIN" = yes
4200 cat >>confdefs.h <<\_ACEOF
4201 #define HAVE_CYGWIN 1
4207 echo "$as_me:$LINENO: result: done" >&5
4208 echo "${ECHO_T}done" >&6
4211 # -----------------------------------------------------------
4212 # ----------------------------------------------------------
4217 INSIDE_GNOME_COMMON_TRUE=
4218 INSIDE_GNOME_COMMON_FALSE='#'
4220 INSIDE_GNOME_COMMON_TRUE='#'
4221 INSIDE_GNOME_COMMON_FALSE=
4224 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4226 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4229 # ------------------------------------------------------------------
4230 # If the user has not set --prefix, we set our default to nothing.
4231 # In this case, if the user has not set --sysconfdir, we set it
4232 # to the package default of /etc/bacula. If either --prefix or
4233 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4234 # ------------------------------------------------------------------
4235 if test x${prefix} = xNONE ; then
4236 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4237 sysconfdir=/etc/bacula
4241 sysconfdir=`eval echo ${sysconfdir}`
4243 # -------------------------------------------------------------------------
4244 # If the user has not set --exec-prefix, we default to ${prefix}
4245 # -------------------------------------------------------------------------
4246 if test x${exec_prefix} = xNONE ; then
4247 exec_prefix=${prefix}
4250 # ------------------------------------------------------------------
4251 # If the user has not set --sbindir, we set our default as /sbin
4252 # ------------------------------------------------------------------
4253 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4254 sbindir=${exec_prefix}/sbin
4256 sbindir=`eval echo ${sbindir}`
4258 # ------------------------------------------------------------------
4259 # All list of languages for which a translation exist. Each
4260 # language is separated by a space.
4261 # ------------------------------------------------------------------
4264 for ac_prog in msgfmt
4266 # Extract the first word of "$ac_prog", so it can be a program name with args.
4267 set dummy $ac_prog; ac_word=$2
4268 echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4270 if test "${ac_cv_path_MSGFMT+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 MSGFMT=$ac_cv_path_MSGFMT
4297 if test -n "$MSGFMT"; then
4298 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4299 echo "${ECHO_T}$MSGFMT" >&6
4301 echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4305 test -n "$MSGFMT" && break
4307 test -n "$MSGFMT" || MSGFMT="no"
4309 if test "$MSGFMT" = "no"
4311 echo 'msgfmt program not found, disabling NLS !'
4313 USE_INCLUDED_LIBINTL=no
4321 support_postgresql=no
4322 support_smartalloc=yes
4323 support_readline=yes
4326 support_wx_console=no
4328 support_static_tools=no
4329 support_static_fd=no
4330 support_static_sd=no
4331 support_static_dir=no
4332 support_static_cons=no
4333 build_client_only=no
4339 # -------------------------------------------
4340 # gnome (default off)
4341 # -------------------------------------------
4342 # Check whether --enable-gnome or --disable-gnome was given.
4343 if test "${enable_gnome+set}" = set; then
4344 enableval="$enable_gnome"
4345 if test x$enableval = xyes; then
4351 if test x$support_gnome = xyes; then
4352 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4354 if test $pkg = 0; then
4355 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4356 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4357 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4358 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4363 GNOME_DIR=src/gnome2-console
4364 gnome_version="Version 2.x"
4377 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4378 if test "${with_gnome_includes+set}" = set; then
4379 withval="$with_gnome_includes"
4381 CFLAGS="$CFLAGS -I$withval"
4386 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4387 if test "${with_gnome_libs+set}" = set; then
4388 withval="$with_gnome_libs"
4390 LDFLAGS="$LDFLAGS -L$withval"
4391 gnome_prefix=$withval
4396 # Check whether --with-gnome or --without-gnome was given.
4397 if test "${with_gnome+set}" = set; then
4398 withval="$with_gnome"
4399 if test x$withval = xyes; then
4403 if test "x$withval" = xno; then
4407 LDFLAGS="$LDFLAGS -L$withval/lib"
4408 CFLAGS="$CFLAGS -I$withval/include"
4409 gnome_prefix=$withval/lib
4416 if test "x$want_gnome" = xyes; then
4418 # Extract the first word of "gnome-config", so it can be a program name with args.
4419 set dummy gnome-config; ac_word=$2
4420 echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4422 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 case $GNOME_CONFIG in
4427 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4448 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4450 if test -n "$GNOME_CONFIG"; then
4451 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4452 echo "${ECHO_T}$GNOME_CONFIG" >&6
4454 echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6
4458 if test "$GNOME_CONFIG" = "no"; then
4459 no_gnome_config="yes"
4461 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4462 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4463 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4464 echo "$as_me:$LINENO: result: yes" >&5
4465 echo "${ECHO_T}yes" >&6
4468 # Extract the first word of "orbit-config", so it can be a program name with args.
4469 set dummy orbit-config; ac_word=$2
4470 echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 case $ORBIT_CONFIG in
4477 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4498 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4500 if test -n "$ORBIT_CONFIG"; then
4501 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4502 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4504 echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6
4508 # Extract the first word of "orbit-idl", so it can be a program name with args.
4509 set dummy orbit-idl; ac_word=$2
4510 echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4538 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4540 if test -n "$ORBIT_IDL"; then
4541 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4542 echo "${ECHO_T}$ORBIT_IDL" >&6
4544 echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4548 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4549 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4550 if test "${gnome_cv_orbit_found+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4555 gnome_cv_orbit_found=no
4557 gnome_cv_orbit_found=yes
4561 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4562 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4565 if test x$gnome_cv_orbit_found = xyes; then
4567 HAVE_ORBIT_FALSE='#'
4572 if test x$gnome_cv_orbit_found = xyes; then
4574 ORBIT_CFLAGS=`orbit-config --cflags client server`
4575 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4579 if test xfail = xfailure; then
4580 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4581 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4582 { (exit 1); exit 1; }; }
4586 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4587 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4588 if test "${gnome_cv_gnorba_found+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 gnome_cv_gnorba_found=no
4593 if test x$gnome_cv_orbit_found = xyes; then
4594 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4595 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4596 if test -n "$GNORBA_LIBS"; then
4597 gnome_cv_gnorba_found=yes
4602 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4603 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4606 if test x$gnome_cv_gnorba_found = xyes; then
4608 HAVE_GNORBA_FALSE='#'
4610 HAVE_GNORBA_TRUE='#'
4613 if test x$gnome_cv_orbit_found = xyes; then
4615 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4616 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4620 if test xfail = xfailure; then
4621 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4622 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4623 { (exit 1); exit 1; }; }
4627 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4628 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4629 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4630 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4631 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4632 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4633 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4636 echo "$as_me:$LINENO: result: no" >&5
4637 echo "${ECHO_T}no" >&6
4638 no_gnome_config="yes"
4642 if test x$exec_prefix = xNONE; then
4643 if test x$prefix = xNONE; then
4644 gnome_prefix=$ac_default_prefix/lib
4646 gnome_prefix=$prefix/lib
4649 gnome_prefix=`eval echo \`echo $libdir\``
4652 if test "$no_gnome_config" = "yes"; then
4653 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4654 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4655 if test -f $gnome_prefix/gnomeConf.sh; then
4656 echo "$as_me:$LINENO: result: found" >&5
4657 echo "${ECHO_T}found" >&6
4658 echo "loading gnome configuration from" \
4659 "$gnome_prefix/gnomeConf.sh"
4660 . $gnome_prefix/gnomeConf.sh
4663 echo "$as_me:$LINENO: result: not found" >&5
4664 echo "${ECHO_T}not found" >&6
4665 if test xfail = xfail; then
4666 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4667 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4668 { (exit 1); exit 1; }; }
4677 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4678 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4682 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4683 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4684 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4687 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4688 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4689 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4692 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4693 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4694 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4696 echo "$as_me:$LINENO: result: unknown library" >&5
4697 echo "${ECHO_T}unknown library" >&6
4699 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4700 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4705 GNOME_DIR=src/gnome-console
4706 gnome_version="Version 1.4"
4712 # -------------------------------------------
4713 # wx-console (default off)
4714 # -------------------------------------------
4715 # Check whether --enable-wx-console or --disable-wx-console was given.
4716 if test "${enable_wx_console+set}" = set; then
4717 enableval="$enable_wx_console"
4718 if test x$enableval = xyes; then
4719 support_wx_console=yes
4724 if test x$support_wx_console = xyes; then
4725 abc=`$WXCONFIG --cppflags`
4727 if test $pkg = 0; then
4728 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4729 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4732 WX_DIR=src/wx-console
4735 echo "wx-config program not found. wx-console disabled."
4737 support_wx_console=no
4744 # -------------------------------------------
4745 # smartalloc (default off)
4746 # -------------------------------------------
4747 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4748 if test "${enable_smartalloc+set}" = set; then
4749 enableval="$enable_smartalloc"
4750 if test x$enableval = xno; then
4751 support_smartalloc=no
4755 if test x$support_smartalloc = xyes; then
4756 cat >>confdefs.h <<\_ACEOF
4757 #define SMARTALLOC 1
4762 # -------------------------------------------
4763 # static-tools (default off)
4764 # -------------------------------------------
4765 # Check whether --enable-static-tools or --disable-static-tools was given.
4766 if test "${enable_static_tools+set}" = set; then
4767 enableval="$enable_static_tools"
4768 if test x$enableval = xyes; then
4769 support_static_tools=yes
4774 if test x$support_static_tools = xyes; then
4775 TTOOL_LDFLAGS="-static"
4779 # -------------------------------------------
4780 # static-fd (default off)
4781 # -------------------------------------------
4782 # Check whether --enable-static-fd or --disable-static-fd was given.
4783 if test "${enable_static_fd+set}" = set; then
4784 enableval="$enable_static_fd"
4785 if test x$enableval = xyes; then
4786 support_static_fd=yes
4791 if test x$support_static_fd = xyes; then
4792 STATIC_FD="static-bacula-fd"
4796 # -------------------------------------------
4797 # static-sd (default off)
4798 # -------------------------------------------
4799 # Check whether --enable-static-sd or --disable-static-sd was given.
4800 if test "${enable_static_sd+set}" = set; then
4801 enableval="$enable_static_sd"
4802 if test x$enableval = xyes; then
4803 support_static_sd=yes
4808 if test x$support_static_sd = xyes; then
4809 STATIC_SD="static-bacula-sd"
4813 # -------------------------------------------
4814 # static-dir (default off)
4815 # -------------------------------------------
4816 # Check whether --enable-static-dir or --disable-static-dir was given.
4817 if test "${enable_static_dir+set}" = set; then
4818 enableval="$enable_static_dir"
4819 if test x$enableval = xyes; then
4820 support_static_dir=yes
4825 if test x$support_static_dir = xyes; then
4826 STATIC_DIR="static-bacula-dir"
4830 # -------------------------------------------
4831 # static-cons (default off)
4832 # -------------------------------------------
4833 # Check whether --enable-static-cons or --disable-static-cons was given.
4834 if test "${enable_static_cons+set}" = set; then
4835 enableval="$enable_static_cons"
4836 if test x$enableval = xyes; then
4837 support_static_cons=yes
4844 if test x$support_static_cons = xyes; then
4845 STATIC_CONS="static-bconsole"
4846 STATIC_GNOME_CONS="static-gnome-console"
4847 STATIC_WX_CONS="static-wx-console"
4853 # -------------------------------------------
4854 # client_only (default off)
4855 # -------------------------------------------
4856 # Check whether --enable-client-only or --disable-client-only was given.
4857 if test "${enable_client_only+set}" = set; then
4858 enableval="$enable_client_only"
4859 if test x$enableval = xyes; then
4860 build_client_only=yes
4865 if test x$build_client_only = xno; then
4872 # ---------------------------------------------------
4873 # Check for conio (Bacula readline substitute)(
4874 # ---------------------------------------------------
4875 # this allows you to turn it completely off
4876 # Check whether --enable-conio or --disable-conio was given.
4877 if test "${enable_conio+set}" = set; then
4878 enableval="$enable_conio"
4879 if test x$enableval = xno; then
4885 if test x$support_conio = xyes; then
4886 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4887 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4888 if test "${ac_cv_header_stdc+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 cat >conftest.$ac_ext <<_ACEOF
4892 #line $LINENO "configure"
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4911 rm -f conftest.$ac_objext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913 (eval $ac_compile) 2>&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } &&
4917 { ac_try='test -s conftest.$ac_objext'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; }; then
4923 ac_cv_header_stdc=yes
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4928 ac_cv_header_stdc=no
4930 rm -f conftest.$ac_objext conftest.$ac_ext
4932 if test $ac_cv_header_stdc = yes; then
4933 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4934 cat >conftest.$ac_ext <<_ACEOF
4935 #line $LINENO "configure"
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4945 $EGREP "memchr" >/dev/null 2>&1; then
4948 ac_cv_header_stdc=no
4954 if test $ac_cv_header_stdc = yes; then
4955 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4956 cat >conftest.$ac_ext <<_ACEOF
4957 #line $LINENO "configure"
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4967 $EGREP "free" >/dev/null 2>&1; then
4970 ac_cv_header_stdc=no
4976 if test $ac_cv_header_stdc = yes; then
4977 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4978 if test "$cross_compiling" = yes; then
4981 cat >conftest.$ac_ext <<_ACEOF
4982 #line $LINENO "configure"
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4989 #if ((' ' & 0x0FF) == 0x020)
4990 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4991 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4993 # define ISLOWER(c) \
4994 (('a' <= (c) && (c) <= 'i') \
4995 || ('j' <= (c) && (c) <= 'r') \
4996 || ('s' <= (c) && (c) <= 'z'))
4997 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5005 for (i = 0; i < 256; i++)
5006 if (XOR (islower (i), ISLOWER (i))
5007 || toupper (i) != TOUPPER (i))
5012 rm -f conftest$ac_exeext
5013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5014 (eval $ac_link) 2>&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; }; then
5025 echo "$as_me: program exited with status $ac_status" >&5
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5030 ac_cv_header_stdc=no
5032 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5036 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5037 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5038 if test $ac_cv_header_stdc = yes; then
5040 cat >>confdefs.h <<\_ACEOF
5041 #define STDC_HEADERS 1
5046 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5056 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5057 inttypes.h stdint.h unistd.h
5059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5060 echo "$as_me:$LINENO: checking for $ac_header" >&5
5061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 cat >conftest.$ac_ext <<_ACEOF
5066 #line $LINENO "configure"
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5072 $ac_includes_default
5074 #include <$ac_header>
5076 rm -f conftest.$ac_objext
5077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5078 (eval $ac_compile) 2>&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
5082 { ac_try='test -s conftest.$ac_objext'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; }; then
5088 eval "$as_ac_Header=yes"
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5093 eval "$as_ac_Header=no"
5095 rm -f conftest.$ac_objext conftest.$ac_ext
5097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5100 cat >>confdefs.h <<_ACEOF
5101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5109 if test "${ac_cv_header_termcap_h+set}" = set; then
5110 echo "$as_me:$LINENO: checking for termcap.h" >&5
5111 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5112 if test "${ac_cv_header_termcap_h+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5116 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5118 # Is the header compilable?
5119 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5120 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5121 cat >conftest.$ac_ext <<_ACEOF
5122 #line $LINENO "configure"
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 $ac_includes_default
5129 #include <termcap.h>
5131 rm -f conftest.$ac_objext
5132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5133 (eval $ac_compile) 2>&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } &&
5137 { ac_try='test -s conftest.$ac_objext'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; }; then
5143 ac_header_compiler=yes
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5148 ac_header_compiler=no
5150 rm -f conftest.$ac_objext conftest.$ac_ext
5151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5152 echo "${ECHO_T}$ac_header_compiler" >&6
5154 # Is the header present?
5155 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5156 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5157 cat >conftest.$ac_ext <<_ACEOF
5158 #line $LINENO "configure"
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h. */
5164 #include <termcap.h>
5166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5169 grep -v '^ *+' conftest.er1 >conftest.err
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } >/dev/null; then
5174 if test -s conftest.err; then
5175 ac_cpp_err=$ac_c_preproc_warn_flag
5182 if test -z "$ac_cpp_err"; then
5183 ac_header_preproc=yes
5185 echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.$ac_ext >&5
5188 ac_header_preproc=no
5190 rm -f conftest.err conftest.$ac_ext
5191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5192 echo "${ECHO_T}$ac_header_preproc" >&6
5194 # So? What about this header?
5195 case $ac_header_compiler:$ac_header_preproc in
5197 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5198 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5199 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5200 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5203 ## ------------------------------------ ##
5204 ## Report this to bug-autoconf@gnu.org. ##
5205 ## ------------------------------------ ##
5208 sed "s/^/$as_me: WARNING: /" >&2
5211 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5212 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5213 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5214 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5215 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5216 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5219 ## ------------------------------------ ##
5220 ## Report this to bug-autoconf@gnu.org. ##
5221 ## ------------------------------------ ##
5224 sed "s/^/$as_me: WARNING: /" >&2
5227 echo "$as_me:$LINENO: checking for termcap.h" >&5
5228 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5229 if test "${ac_cv_header_termcap_h+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 ac_cv_header_termcap_h=$ac_header_preproc
5234 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5235 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5238 if test $ac_cv_header_termcap_h = yes; then
5239 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5240 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5241 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 ac_check_lib_save_LIBS=$LIBS
5245 LIBS="-ltermcap $LIBS"
5246 cat >conftest.$ac_ext <<_ACEOF
5247 #line $LINENO "configure"
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5254 /* Override any gcc2 internal prototype to avoid an error. */
5258 /* We use char because int might match the return type of a gcc2
5259 builtin and then its argument prototype would still apply. */
5269 rm -f conftest.$ac_objext conftest$ac_exeext
5270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5271 (eval $ac_link) 2>&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } &&
5275 { ac_try='test -s conftest$ac_exeext'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5281 ac_cv_lib_termcap_tgetent=yes
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 ac_cv_lib_termcap_tgetent=no
5288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5289 LIBS=$ac_check_lib_save_LIBS
5291 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5292 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5293 if test $ac_cv_lib_termcap_tgetent = yes; then
5294 CONS_LIBS="-ltermcap"
5300 cat >>confdefs.h <<\_ACEOF
5301 #define HAVE_CONIO 1
5306 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5307 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5308 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 ac_check_lib_save_LIBS=$LIBS
5312 LIBS="-lncurses $LIBS"
5313 cat >conftest.$ac_ext <<_ACEOF
5314 #line $LINENO "configure"
5317 cat confdefs.h >>conftest.$ac_ext
5318 cat >>conftest.$ac_ext <<_ACEOF
5319 /* end confdefs.h. */
5321 /* Override any gcc2 internal prototype to avoid an error. */
5325 /* We use char because int might match the return type of a gcc2
5326 builtin and then its argument prototype would still apply. */
5336 rm -f conftest.$ac_objext conftest$ac_exeext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5338 (eval $ac_link) 2>&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try='test -s conftest$ac_exeext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 ac_cv_lib_ncurses_tgetent=yes
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 ac_cv_lib_ncurses_tgetent=no
5355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5356 LIBS=$ac_check_lib_save_LIBS
5358 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5359 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5360 if test $ac_cv_lib_ncurses_tgetent = yes; then
5361 CONS_LIBS="-lncurses"
5367 cat >>confdefs.h <<\_ACEOF
5368 #define HAVE_CONIO 1
5373 echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5381 echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5388 # ---------------------------------------------------
5389 # Check for readline support/directory (default off)
5390 # ---------------------------------------------------
5391 # this allows you to turn it completely off
5392 # Check whether --enable-readline or --disable-readline was given.
5393 if test "${enable_readline+set}" = set; then
5394 enableval="$enable_readline"
5395 if test x$enableval = xno; then
5402 if test x$support_readline = xyes; then
5404 # Check whether --with-readline or --without-readline was given.
5405 if test "${with_readline+set}" = set; then
5406 withval="$with_readline"
5408 case "$with_readline" in
5411 if test "$with_readline" != "yes"; then
5412 CONS_INC="-I${with_readline}"
5413 CONS_LDFLAGS="-L$with_readline"
5415 with_readline="/usr/include/readline"
5417 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5419 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5420 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5427 # Is the header compilable?
5428 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5429 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5430 cat >conftest.$ac_ext <<_ACEOF
5431 #line $LINENO "configure"
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5437 $ac_includes_default
5438 #include <${with_readline}/readline.h>
5440 rm -f conftest.$ac_objext
5441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5442 (eval $ac_compile) 2>&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } &&
5446 { ac_try='test -s conftest.$ac_objext'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; }; then
5452 ac_header_compiler=yes
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457 ac_header_compiler=no
5459 rm -f conftest.$ac_objext conftest.$ac_ext
5460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5461 echo "${ECHO_T}$ac_header_compiler" >&6
5463 # Is the header present?
5464 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5465 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5466 cat >conftest.$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5473 #include <${with_readline}/readline.h>
5475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5478 grep -v '^ *+' conftest.er1 >conftest.err
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } >/dev/null; then
5483 if test -s conftest.err; then
5484 ac_cpp_err=$ac_c_preproc_warn_flag
5491 if test -z "$ac_cpp_err"; then
5492 ac_header_preproc=yes
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5497 ac_header_preproc=no
5499 rm -f conftest.err conftest.$ac_ext
5500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5501 echo "${ECHO_T}$ac_header_preproc" >&6
5503 # So? What about this header?
5504 case $ac_header_compiler:$ac_header_preproc in
5506 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5507 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5508 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5509 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5512 ## ------------------------------------ ##
5513 ## Report this to bug-autoconf@gnu.org. ##
5514 ## ------------------------------------ ##
5517 sed "s/^/$as_me: WARNING: /" >&2
5520 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5521 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5522 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5523 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5525 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5528 ## ------------------------------------ ##
5529 ## Report this to bug-autoconf@gnu.org. ##
5530 ## ------------------------------------ ##
5533 sed "s/^/$as_me: WARNING: /" >&2
5536 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5537 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 eval "$as_ac_Header=$ac_header_preproc"
5543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5548 cat >>confdefs.h <<\_ACEOF
5549 #define HAVE_READLINE 1
5552 CONS_LIBS="-lreadline -ltermcap"
5557 echo "readline.h not found. readline turned off ..."
5569 # check for standard readline library
5570 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5571 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5572 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5573 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5577 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5579 # Is the header compilable?
5580 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5581 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5582 cat >conftest.$ac_ext <<_ACEOF
5583 #line $LINENO "configure"
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5589 $ac_includes_default
5590 #include </usr/include/readline/readline.h>
5592 rm -f conftest.$ac_objext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594 (eval $ac_compile) 2>&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } &&
5598 { ac_try='test -s conftest.$ac_objext'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5604 ac_header_compiler=yes
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5609 ac_header_compiler=no
5611 rm -f conftest.$ac_objext conftest.$ac_ext
5612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5613 echo "${ECHO_T}$ac_header_compiler" >&6
5615 # Is the header present?
5616 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5617 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $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 #include </usr/include/readline/readline.h>
5627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5630 grep -v '^ *+' conftest.er1 >conftest.err
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } >/dev/null; then
5635 if test -s conftest.err; then
5636 ac_cpp_err=$ac_c_preproc_warn_flag
5643 if test -z "$ac_cpp_err"; then
5644 ac_header_preproc=yes
5646 echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5649 ac_header_preproc=no
5651 rm -f conftest.err conftest.$ac_ext
5652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5653 echo "${ECHO_T}$ac_header_preproc" >&6
5655 # So? What about this header?
5656 case $ac_header_compiler:$ac_header_preproc in
5658 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5659 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5660 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5661 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5664 ## ------------------------------------ ##
5665 ## Report this to bug-autoconf@gnu.org. ##
5666 ## ------------------------------------ ##
5669 sed "s/^/$as_me: WARNING: /" >&2
5672 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5673 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5674 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5675 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5676 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5677 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5680 ## ------------------------------------ ##
5681 ## Report this to bug-autoconf@gnu.org. ##
5682 ## ------------------------------------ ##
5685 sed "s/^/$as_me: WARNING: /" >&2
5688 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5689 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5690 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5695 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5696 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5699 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5700 cat >>confdefs.h <<\_ACEOF
5701 #define HAVE_READLINE 1
5705 CONS_INC="-I/usr/include/readline"
5706 CONS_LIBS="-lreadline -ltermcap"
5710 # Did not find standard library, so try Bacula's default
5711 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5713 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5714 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5721 # Is the header compilable?
5722 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5723 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5724 cat >conftest.$ac_ext <<_ACEOF
5725 #line $LINENO "configure"
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 $ac_includes_default
5732 #include <${TOP_DIR}/depkgs/readline/readline.h>
5734 rm -f conftest.$ac_objext
5735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5736 (eval $ac_compile) 2>&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try='test -s conftest.$ac_objext'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5746 ac_header_compiler=yes
5748 echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5751 ac_header_compiler=no
5753 rm -f conftest.$ac_objext conftest.$ac_ext
5754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5755 echo "${ECHO_T}$ac_header_compiler" >&6
5757 # Is the header present?
5758 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5759 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5760 cat >conftest.$ac_ext <<_ACEOF
5761 #line $LINENO "configure"
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5767 #include <${TOP_DIR}/depkgs/readline/readline.h>
5769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5772 grep -v '^ *+' conftest.er1 >conftest.err
5774 cat conftest.err >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } >/dev/null; then
5777 if test -s conftest.err; then
5778 ac_cpp_err=$ac_c_preproc_warn_flag
5785 if test -z "$ac_cpp_err"; then
5786 ac_header_preproc=yes
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5791 ac_header_preproc=no
5793 rm -f conftest.err conftest.$ac_ext
5794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5795 echo "${ECHO_T}$ac_header_preproc" >&6
5797 # So? What about this header?
5798 case $ac_header_compiler:$ac_header_preproc in
5800 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5801 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5802 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5803 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5806 ## ------------------------------------ ##
5807 ## Report this to bug-autoconf@gnu.org. ##
5808 ## ------------------------------------ ##
5811 sed "s/^/$as_me: WARNING: /" >&2
5814 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5815 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5816 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5817 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5818 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5819 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5822 ## ------------------------------------ ##
5823 ## Report this to bug-autoconf@gnu.org. ##
5824 ## ------------------------------------ ##
5827 sed "s/^/$as_me: WARNING: /" >&2
5830 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5831 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 eval "$as_ac_Header=$ac_header_preproc"
5837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5842 cat >>confdefs.h <<\_ACEOF
5843 #define HAVE_READLINE 1
5847 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5848 CONS_LIBS="-lreadline -lhistory -ltermcap"
5849 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5850 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5854 echo "readline.h not found. readline turned off ..."
5880 # Minimal stuff for readline Makefile configuration
5883 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5884 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5885 if test "${ac_cv_header_stat_broken+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 cat >conftest.$ac_ext <<_ACEOF
5889 #line $LINENO "configure"
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 #include <sys/types.h>
5896 #include <sys/stat.h>
5898 #if defined(S_ISBLK) && defined(S_IFDIR)
5899 # if S_ISBLK (S_IFDIR)
5904 #if defined(S_ISBLK) && defined(S_IFCHR)
5905 # if S_ISBLK (S_IFCHR)
5910 #if defined(S_ISLNK) && defined(S_IFREG)
5911 # if S_ISLNK (S_IFREG)
5916 #if defined(S_ISSOCK) && defined(S_IFREG)
5917 # if S_ISSOCK (S_IFREG)
5923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5924 $EGREP "You lose" >/dev/null 2>&1; then
5925 ac_cv_header_stat_broken=yes
5927 ac_cv_header_stat_broken=no
5932 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5933 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5934 if test $ac_cv_header_stat_broken = yes; then
5936 cat >>confdefs.h <<\_ACEOF
5937 #define STAT_MACROS_BROKEN 1
5948 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5949 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5950 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5951 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
5962 #include <sys/types.h>
5974 rm -f conftest.$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976 (eval $ac_compile) 2>&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try='test -s conftest.$ac_objext'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; }; then
5986 eval "$as_ac_Header=yes"
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5991 eval "$as_ac_Header=no"
5993 rm -f conftest.$ac_objext conftest.$ac_ext
5995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5998 cat >>confdefs.h <<_ACEOF
5999 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6002 ac_header_dirent=$ac_hdr; break
6006 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6007 if test $ac_header_dirent = dirent.h; then
6008 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6009 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6010 if test "${ac_cv_search_opendir+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 ac_func_search_save_LIBS=$LIBS
6014 ac_cv_search_opendir=no
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6023 /* Override any gcc2 internal prototype to avoid an error. */
6027 /* We use char because int might match the return type of a gcc2
6028 builtin and then its argument prototype would still apply. */
6038 rm -f conftest.$ac_objext conftest$ac_exeext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6040 (eval $ac_link) 2>&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try='test -s conftest$ac_exeext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 ac_cv_search_opendir="none required"
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6057 if test "$ac_cv_search_opendir" = no; then
6058 for ac_lib in dir; do
6059 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6060 cat >conftest.$ac_ext <<_ACEOF
6061 #line $LINENO "configure"
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6068 /* Override any gcc2 internal prototype to avoid an error. */
6072 /* We use char because int might match the return type of a gcc2
6073 builtin and then its argument prototype would still apply. */
6083 rm -f conftest.$ac_objext conftest$ac_exeext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6085 (eval $ac_link) 2>&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try='test -s conftest$ac_exeext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_cv_search_opendir="-l$ac_lib"
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6105 LIBS=$ac_func_search_save_LIBS
6107 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6108 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6109 if test "$ac_cv_search_opendir" != no; then
6110 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6115 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6116 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6117 if test "${ac_cv_search_opendir+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 ac_func_search_save_LIBS=$LIBS
6121 ac_cv_search_opendir=no
6122 cat >conftest.$ac_ext <<_ACEOF
6123 #line $LINENO "configure"
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6130 /* Override any gcc2 internal prototype to avoid an error. */
6134 /* We use char because int might match the return type of a gcc2
6135 builtin and then its argument prototype would still apply. */
6145 rm -f conftest.$ac_objext conftest$ac_exeext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147 (eval $ac_link) 2>&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -s conftest$ac_exeext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 ac_cv_search_opendir="none required"
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6164 if test "$ac_cv_search_opendir" = no; then
6166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6167 cat >conftest.$ac_ext <<_ACEOF
6168 #line $LINENO "configure"
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6175 /* Override any gcc2 internal prototype to avoid an error. */
6179 /* We use char because int might match the return type of a gcc2
6180 builtin and then its argument prototype would still apply. */
6190 rm -f conftest.$ac_objext conftest$ac_exeext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192 (eval $ac_link) 2>&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try='test -s conftest$ac_exeext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 ac_cv_search_opendir="-l$ac_lib"
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6212 LIBS=$ac_func_search_save_LIBS
6214 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6215 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6216 if test "$ac_cv_search_opendir" != no; then
6217 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6231 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6234 echo "$as_me:$LINENO: checking for $ac_func" >&5
6235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6236 if eval "test \"\${$as_ac_var+set}\" = set"; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 cat >conftest.$ac_ext <<_ACEOF
6240 #line $LINENO "configure"
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6246 /* System header to define __stub macros and hopefully few prototypes,
6247 which can conflict with char $ac_func (); below.
6248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6249 <limits.h> exists even on freestanding compilers. */
6251 # include <limits.h>
6253 # include <assert.h>
6255 /* Override any gcc2 internal prototype to avoid an error. */
6260 /* We use char because int might match the return type of a gcc2
6261 builtin and then its argument prototype would still apply. */
6263 /* The GNU C library defines this for functions which it implements
6264 to always fail with ENOSYS. Some functions are actually named
6265 something starting with __ and the normal name is an alias. */
6266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6269 char (*f) () = $ac_func;
6278 return f != $ac_func;
6283 rm -f conftest.$ac_objext conftest$ac_exeext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285 (eval $ac_link) 2>&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -s conftest$ac_exeext'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 eval "$as_ac_var=yes"
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6300 eval "$as_ac_var=no"
6302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6306 if test `eval echo '${'$as_ac_var'}'` = yes; then
6307 cat >>confdefs.h <<_ACEOF
6308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6316 for ac_func in nanosleep nl_langinfo
6318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6319 echo "$as_me:$LINENO: checking for $ac_func" >&5
6320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6321 if eval "test \"\${$as_ac_var+set}\" = set"; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 cat >conftest.$ac_ext <<_ACEOF
6325 #line $LINENO "configure"
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 /* System header to define __stub macros and hopefully few prototypes,
6332 which can conflict with char $ac_func (); below.
6333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6334 <limits.h> exists even on freestanding compilers. */
6336 # include <limits.h>
6338 # include <assert.h>
6340 /* Override any gcc2 internal prototype to avoid an error. */
6345 /* We use char because int might match the return type of a gcc2
6346 builtin and then its argument prototype would still apply. */
6348 /* The GNU C library defines this for functions which it implements
6349 to always fail with ENOSYS. Some functions are actually named
6350 something starting with __ and the normal name is an alias. */
6351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6354 char (*f) () = $ac_func;
6363 return f != $ac_func;
6368 rm -f conftest.$ac_objext conftest$ac_exeext
6369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6370 (eval $ac_link) 2>&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); } &&
6374 { ac_try='test -s conftest$ac_exeext'
6375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }; }; then
6380 eval "$as_ac_var=yes"
6382 echo "$as_me: failed program was:" >&5
6383 sed 's/^/| /' conftest.$ac_ext >&5
6385 eval "$as_ac_var=no"
6387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6391 if test `eval echo '${'$as_ac_var'}'` = yes; then
6392 cat >>confdefs.h <<_ACEOF
6393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6400 for ac_header in varargs.h
6402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6404 echo "$as_me:$LINENO: checking for $ac_header" >&5
6405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6412 # Is the header compilable?
6413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6415 cat >conftest.$ac_ext <<_ACEOF
6416 #line $LINENO "configure"
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6422 $ac_includes_default
6423 #include <$ac_header>
6425 rm -f conftest.$ac_objext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427 (eval $ac_compile) 2>&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -s conftest.$ac_objext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6437 ac_header_compiler=yes
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6442 ac_header_compiler=no
6444 rm -f conftest.$ac_objext conftest.$ac_ext
6445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6446 echo "${ECHO_T}$ac_header_compiler" >&6
6448 # Is the header present?
6449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6451 cat >conftest.$ac_ext <<_ACEOF
6452 #line $LINENO "configure"
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6458 #include <$ac_header>
6460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6463 grep -v '^ *+' conftest.er1 >conftest.err
6465 cat conftest.err >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } >/dev/null; then
6468 if test -s conftest.err; then
6469 ac_cpp_err=$ac_c_preproc_warn_flag
6476 if test -z "$ac_cpp_err"; then
6477 ac_header_preproc=yes
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6482 ac_header_preproc=no
6484 rm -f conftest.err conftest.$ac_ext
6485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6486 echo "${ECHO_T}$ac_header_preproc" >&6
6488 # So? What about this header?
6489 case $ac_header_compiler:$ac_header_preproc in
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6497 ## ------------------------------------ ##
6498 ## Report this to bug-autoconf@gnu.org. ##
6499 ## ------------------------------------ ##
6502 sed "s/^/$as_me: WARNING: /" >&2
6505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6513 ## ------------------------------------ ##
6514 ## Report this to bug-autoconf@gnu.org. ##
6515 ## ------------------------------------ ##
6518 sed "s/^/$as_me: WARNING: /" >&2
6521 echo "$as_me:$LINENO: checking for $ac_header" >&5
6522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 eval "$as_ac_Header=$ac_header_preproc"
6528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6533 cat >>confdefs.h <<_ACEOF
6534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6542 # End of readline/conio stuff
6543 # -----------------------------------------------------------------------
6546 # ---------------------------------------------------
6547 # Check for GMP support/directory
6548 # ---------------------------------------------------
6552 # [ --with-gmp[=DIR] Specify gmp library directory],
6554 # case "$with_gmp" in
6557 # if test "$with_gmp" != "yes"; then
6558 # GMP_INC="-I$with_gmp"
6560 # GMP_LDFLAGS="-L$with_gmp"
6562 # with_gmp="/usr/include"
6564 # AC_CHECK_HEADER($with_gmp/gmp.h,
6565 # [ AC_MSG_RESULT(yes)
6566 # AC_DEFINE(HAVE_GMP)
6570 # [ AC_MSG_ERROR([*** gmp library missing])
6576 # # check for standard gmp library
6577 # AC_CHECK_HEADER(/usr/include/gmp.h,
6578 # [ AC_MSG_RESULT(yes)
6579 # AC_DEFINE(HAVE_GMP)
6584 # # Did not find standard library, so use our own
6585 # AC_MSG_RESULT(yes)
6586 # AC_DEFINE(HAVE_GMP)
6589 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6591 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6592 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6598 #AC_SUBST(GMP_LDFLAGS)
6602 # -----------------------------------------------------------------------
6605 # ---------------------------------------------------
6606 # Check for CWEB support/directory
6607 # ---------------------------------------------------
6612 # [ --with-cweb[=DIR] Specify cweb library directory],
6614 # case "$with_cweb" in
6617 # if test "$with_cweb" != "yes"; then
6618 # CWEB_INC="-I$with_cweb"
6619 # CWEB_LIBS="-lcweb"
6620 # CWEB_LDFLAGS="-L$with_cweb"
6622 # with_cweb="/usr/include"
6624 # AC_CHECK_HEADER($with_cweb/cweb.h,
6625 # [ AC_MSG_RESULT(yes)
6626 # AC_DEFINE(HAVE_CWEB)
6627 # CWEB_LIBS="-lcweb"
6630 # [ AC_MSG_ERROR([*** cweb library missing])
6636 # # check for standard cweb library
6637 # AC_CHECK_HEADER(/usr/include/cweb.h,
6638 # [ AC_MSG_RESULT(yes)
6639 # AC_DEFINE(HAVE_CWEB)
6642 # CWEB_LIBS="-lcweb"
6644 # # Did not find starndard library, so use our own
6645 # AC_MSG_RESULT(yes)
6646 # AC_DEFINE(HAVE_CWEB)
6649 # CWEB=${TOP_DIR}/depkgs/cweb
6650 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6651 # CWEB_LIBS="-lcweb"
6652 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6653 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6659 #AC_SUBST(CWEB_LIBS)
6660 #AC_SUBST(CWEB_LDFLAGS)
6664 # -----------------------------------------------------------------------
6668 # -----------------------------------------------------------
6669 # Check whether user wants TCP wrappers support (default off)
6670 # -----------------------------------------------------------
6673 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6674 if test "${with_tcp_wrappers+set}" = set; then
6675 withval="$with_tcp_wrappers"
6677 if test "x$withval" != "xno" ; then
6679 LIBS="$saved_LIBS -lwrap"
6680 echo "$as_me:$LINENO: checking for libwrap" >&5
6681 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6682 cat >conftest.$ac_ext <<_ACEOF
6683 #line $LINENO "configure"
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6690 int deny_severity = 0;
6691 int allow_severity = 0;
6692 struct request_info *req;
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703 (eval $ac_link) 2>&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } &&
6707 { ac_try='test -s conftest$ac_exeext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6714 echo "$as_me:$LINENO: result: yes" >&5
6715 echo "${ECHO_T}yes" >&6
6716 cat >>confdefs.h <<\_ACEOF
6717 #define HAVE_LIBWRAP 1
6723 echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6727 LIBS="$saved_LIBS -lwrap -lnsl"
6728 cat >conftest.$ac_ext <<_ACEOF
6729 #line $LINENO "configure"
6732 cat confdefs.h >>conftest.$ac_ext
6733 cat >>conftest.$ac_ext <<_ACEOF
6734 /* end confdefs.h. */
6736 int deny_severity = 0;
6737 int allow_severity = 0;
6738 struct request_info *req;
6747 rm -f conftest.$ac_objext conftest$ac_exeext
6748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6749 (eval $ac_link) 2>&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } &&
6753 { ac_try='test -s conftest$ac_exeext'
6754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; }; then
6760 echo "$as_me:$LINENO: result: yes" >&5
6761 echo "${ECHO_T}yes" >&6
6762 cat >>confdefs.h <<\_ACEOF
6763 #define HAVE_LIBWRAP 1
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6772 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6773 echo "$as_me: error: *** libwrap missing" >&2;}
6774 { (exit 1); exit 1; }; }
6777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6786 # ------------------------------------------
6787 # Where to place working dir
6788 # ------------------------------------------
6789 working_dir=`eval echo ${prefix}/var/bacula/working`
6791 # Check whether --with-working-dir or --without-working-dir was given.
6792 if test "${with_working_dir+set}" = set; then
6793 withval="$with_working_dir"
6795 if test "x$withval" != "xno" ; then
6796 working_dir=$withval
6805 # ------------------------------------------
6806 # Where to place scriptdir (script files)
6807 # ------------------------------------------
6808 scriptdir=`eval echo ${sysconfdir}`
6810 # Check whether --with-scriptdir or --without-scriptdir was given.
6811 if test "${with_scriptdir+set}" = set; then
6812 withval="$with_scriptdir"
6814 if test "x$withval" != "xno" ; then
6824 # ------------------------------------------
6825 # Where to send dump email
6826 # ------------------------------------------
6827 dump_email=root@localhost
6829 # Check whether --with-dump-email or --without-dump-email was given.
6830 if test "${with_dump_email+set}" = set; then
6831 withval="$with_dump_email"
6833 if test "x$withval" != "xno" ; then
6842 # ------------------------------------------
6843 # Where to send job email
6844 # ------------------------------------------
6845 job_email=root@localhost
6847 # Check whether --with-job-email or --without-job-email was given.
6848 if test "${with_job_email+set}" = set; then
6849 withval="$with_job_email"
6851 if test "x$withval" != "xno" ; then
6860 # ------------------------------------------
6861 # Where to find smtp host
6862 # ------------------------------------------
6865 # Check whether --with-smtp_host or --without-smtp_host was given.
6866 if test "${with_smtp_host+set}" = set; then
6867 withval="$with_smtp_host"
6869 if test "x$withval" != "xno" ; then
6879 # ------------------------------------
6880 # Where to place pid files
6881 # ------------------------------------
6884 # Check whether --with-pid-dir or --without-pid-dir was given.
6885 if test "${with_pid_dir+set}" = set; then
6886 withval="$with_pid_dir"
6888 if test "x$withval" != "xno" ; then
6895 cat >>confdefs.h <<_ACEOF
6896 #define _PATH_BACULA_PIDDIR "$piddir"
6902 # ------------------------------------
6903 # Where to place subsys "lock file"
6904 # ------------------------------------
6905 subsysdir=/var/run/subsys
6907 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6908 if test "${with_subsys_dir+set}" = set; then
6909 withval="$with_subsys_dir"
6911 if test "x$withval" != "xno" ; then
6922 # ------------------------------------
6923 # Where to start assigning ports
6924 # ------------------------------------
6927 # Check whether --with-baseport or --without-baseport was given.
6928 if test "${with_baseport+set}" = set; then
6929 withval="$with_baseport"
6931 if test "x$withval" != "xno" ; then
6939 dir_port=`expr $baseport`
6940 fd_port=`expr $baseport + 1`
6941 sd_port=`expr $fd_port + 1`
6948 # ------------------------------------------
6949 # Generate passwords
6950 # ------------------------------------------
6953 # Check whether --with-dir-password or --without-dir-password was given.
6954 if test "${with_dir_password+set}" = set; then
6955 withval="$with_dir_password"
6957 if test "x$withval" != "xno" ; then
6958 dir_password=$withval
6964 if test "x$dir_password" = "x" ; then
6965 if test "x$OPENSSL" = "xnone" ; then
6966 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6967 key=`autoconf/randpass 33`
6969 key=`openssl rand -base64 33`
6976 # Check whether --with-fd-password or --without-fd-password was given.
6977 if test "${with_fd_password+set}" = set; then
6978 withval="$with_fd_password"
6980 if test "x$withval" != "xno" ; then
6981 fd_password=$withval
6987 if test "x$fd_password" = "x" ; then
6988 if test "x$OPENSSL" = "xnone" ; then
6989 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6990 key=`autoconf/randpass 37`
6992 key=`openssl rand -base64 33`
6999 # Check whether --with-sd-password or --without-sd-password was given.
7000 if test "${with_sd_password+set}" = set; then
7001 withval="$with_sd_password"
7003 if test "x$withval" != "xno" ; then
7004 sd_password=$withval
7010 if test "x$sd_password" = "x" ; then
7011 if test "x$OPENSSL" = "xnone" ; then
7012 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7013 key=`autoconf/randpass 41`
7015 key=`openssl rand -base64 33`
7027 # Handle users and groups for each daemon
7031 # Check whether --with-dir_user or --without-dir_user was given.
7032 if test "${with_dir_user+set}" = set; then
7033 withval="$with_dir_user"
7035 if test "x$withval" != "x" ; then
7044 # Check whether --with-dir_group or --without-dir_group was given.
7045 if test "${with_dir_group+set}" = set; then
7046 withval="$with_dir_group"
7048 if test "x$withval" != "x" ; then
7057 # Check whether --with-sd_user or --without-sd_user was given.
7058 if test "${with_sd_user+set}" = set; then
7059 withval="$with_sd_user"
7061 if test "x$withval" != "x" ; then
7070 # Check whether --with-sd_group or --without-sd_group was given.
7071 if test "${with_sd_group+set}" = set; then
7072 withval="$with_sd_group"
7074 if test "x$withval" != "x" ; then
7083 # Check whether --with-fd_user or --without-fd_user was given.
7084 if test "${with_fd_user+set}" = set; then
7085 withval="$with_fd_user"
7087 if test "x$withval" != "x" ; then
7096 # Check whether --with-fd_group or --without-fd_group was given.
7097 if test "${with_fd_group+set}" = set; then
7098 withval="$with_fd_group"
7100 if test "x$withval" != "x" ; then
7118 # allow setting default executable permissions
7122 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7123 if test "${with_sbin_perm+set}" = set; then
7124 withval="$with_sbin_perm"
7126 if test "x$withval" != "x" ; then
7135 # ------------------------------------------------
7136 # Bacula check for various SQL database engines
7137 # ------------------------------------------------
7140 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7141 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7143 # Check whether --with-postgresql or --without-postgresql was given.
7144 if test "${with_postgresql+set}" = set; then
7145 withval="$with_postgresql"
7147 if test "$withval" != "no"; then
7148 if test "$db_found" = "yes"; then
7149 echo "$as_me:$LINENO: result: error" >&5
7150 echo "${ECHO_T}error" >&6
7151 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7152 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7153 { (exit 1); exit 1; }; };
7155 if test "$withval" = "yes"; then
7156 if test -f /usr/local/include/libpq-fe.h; then
7157 POSTGRESQL_INCDIR=/usr/local/include
7158 POSTGRESQL_LIBDIR=/usr/local/lib
7159 POSTGRESQL_BINDIR=/usr/local/bin
7160 elif test -f /usr/include/libpq-fe.h; then
7161 POSTGRESQL_INCDIR=/usr/include
7162 POSTGRESQL_LIBDIR=/usr/lib
7163 POSTGRESQL_BINDIR=/usr/bin
7164 elif test -f /usr/include/pgsql/libpq-fe.h; then
7165 POSTGRESQL_INCDIR=/usr/include/pgsql
7166 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7167 POSTGRESQL_BINDIR=/usr/bin
7168 elif test -f /usr/include/postgresql/libpq-fe.h; then
7169 POSTGRESQL_INCDIR=/usr/include/postgresql
7170 POSTGRESQL_LIBDIR=/usr/lib/postgresql
7171 POSTGRESQL_BINDIR=/usr/bin
7173 echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6
7175 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7176 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7177 { (exit 1); exit 1; }; }
7179 elif test -f $withval/include/libpq-fe.h; then
7180 POSTGRESQL_INCDIR=$withval/include
7181 POSTGRESQL_LIBDIR=$withval/lib
7182 POSTGRESQL_BINDIR=$withval/bin
7184 echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6
7186 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7187 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7188 { (exit 1); exit 1; }; }
7190 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7191 echo "$as_me:$LINENO: checking for crypt" >&5
7192 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7193 if test "${ac_cv_func_crypt+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 cat >conftest.$ac_ext <<_ACEOF
7197 #line $LINENO "configure"
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h. */
7203 /* System header to define __stub macros and hopefully few prototypes,
7204 which can conflict with char crypt (); below.
7205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7206 <limits.h> exists even on freestanding compilers. */
7208 # include <limits.h>
7210 # include <assert.h>
7212 /* Override any gcc2 internal prototype to avoid an error. */
7217 /* We use char because int might match the return type of a gcc2
7218 builtin and then its argument prototype would still apply. */
7220 /* The GNU C library defines this for functions which it implements
7221 to always fail with ENOSYS. Some functions are actually named
7222 something starting with __ and the normal name is an alias. */
7223 #if defined (__stub_crypt) || defined (__stub___crypt)
7226 char (*f) () = crypt;
7240 rm -f conftest.$ac_objext conftest$ac_exeext
7241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7242 (eval $ac_link) 2>&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } &&
7246 { ac_try='test -s conftest$ac_exeext'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; }; then
7252 ac_cv_func_crypt=yes
7254 echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7261 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7262 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7263 if test $ac_cv_func_crypt = yes; then
7266 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7267 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7268 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 ac_check_lib_save_LIBS=$LIBS
7272 LIBS="-lcrypt $LIBS"
7273 cat >conftest.$ac_ext <<_ACEOF
7274 #line $LINENO "configure"
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7281 /* Override any gcc2 internal prototype to avoid an error. */
7285 /* We use char because int might match the return type of a gcc2
7286 builtin and then its argument prototype would still apply. */
7296 rm -f conftest.$ac_objext conftest$ac_exeext
7297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7298 (eval $ac_link) 2>&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } &&
7302 { ac_try='test -s conftest$ac_exeext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 ac_cv_lib_crypt_crypt=yes
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7313 ac_cv_lib_crypt_crypt=no
7315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7316 LIBS=$ac_check_lib_save_LIBS
7318 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7319 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7320 if test $ac_cv_lib_crypt_crypt = yes; then
7321 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7326 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7327 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7328 SQL_BINDIR=$POSTGRESQL_BINDIR
7329 cat >>confdefs.h <<\_ACEOF
7330 #define HAVE_POSTGRESQL 1
7333 echo "$as_me:$LINENO: result: yes" >&5
7334 echo "${ECHO_T}yes" >&6
7336 support_postgresql=yes
7340 echo "$as_me:$LINENO: result: no" >&5
7341 echo "${ECHO_T}no" >&6
7346 echo "$as_me:$LINENO: result: no" >&5
7347 echo "${ECHO_T}no" >&6
7358 echo "$as_me:$LINENO: checking for MySQL support" >&5
7359 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7361 # Check whether --with-mysql or --without-mysql was given.
7362 if test "${with_mysql+set}" = set; then
7363 withval="$with_mysql"
7365 if test "$withval" != "no"; then
7366 if test "$withval" = "yes"; then
7367 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7368 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7369 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7370 MYSQL_BINDIR=/usr/local/mysql/bin
7371 elif test -f /usr/include/mysql/mysql.h; then
7372 MYSQL_INCDIR=/usr/include/mysql
7373 MYSQL_LIBDIR=/usr/lib/mysql
7374 MYSQL_BINDIR=/usr/bin
7375 elif test -f /usr/include/mysql.h; then
7376 MYSQL_INCDIR=/usr/include
7377 MYSQL_LIBDIR=/usr/lib
7378 MYSQL_BINDIR=/usr/bin
7379 elif test -f /usr/local/include/mysql/mysql.h; then
7380 MYSQL_INCDIR=/usr/local/include/mysql
7381 MYSQL_LIBDIR=/usr/local/lib/mysql
7382 MYSQL_BINDIR=/usr/local/bin
7383 elif test -f /usr/local/include/mysql.h; then
7384 MYSQL_INCDIR=/usr/local/include
7385 MYSQL_LIBDIR=/usr/local/lib
7386 MYSQL_BINDIR=/usr/local/bin
7388 echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6
7390 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7391 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7392 { (exit 1); exit 1; }; }
7395 if test -f $withval/include/mysql/mysql.h; then
7396 MYSQL_INCDIR=$withval/include/mysql
7397 MYSQL_LIBDIR=$withval/lib/mysql
7398 MYSQL_BINDIR=$withval/bin
7399 elif test -f $withval/include/mysql.h; then
7400 MYSQL_INCDIR=$withval/include
7401 MYSQL_LIBDIR=$withval/lib
7402 MYSQL_BINDIR=$withval/bin
7404 echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6
7406 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7407 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7408 { (exit 1); exit 1; }; }
7411 SQL_INCLUDE=-I$MYSQL_INCDIR
7412 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7413 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7414 cat >>confdefs.h <<\_ACEOF
7415 #define HAVE_THREAD_SAFE_MYSQL 1
7419 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7421 SQL_BINDIR=$MYSQL_BINDIR
7423 cat >>confdefs.h <<\_ACEOF
7424 #define HAVE_MYSQL 1
7427 echo "$as_me:$LINENO: result: yes" >&5
7428 echo "${ECHO_T}yes" >&6
7435 echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6
7443 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7444 if test "${with_embedded_mysql+set}" = set; then
7445 withval="$with_embedded_mysql"
7447 if test "$withval" != "no"; then
7448 if test "$withval" = "yes"; then
7449 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7450 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7451 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7452 MYSQL_BINDIR=/usr/local/mysql/bin
7453 elif test -f /usr/include/mysql/mysql.h; then
7454 MYSQL_INCDIR=/usr/include/mysql
7455 MYSQL_LIBDIR=/usr/lib/mysql
7456 MYSQL_BINDIR=/usr/bin
7457 elif test -f /usr/include/mysql.h; then
7458 MYSQL_INCDIR=/usr/include
7459 MYSQL_LIBDIR=/usr/lib
7460 MYSQL_BINDIR=/usr/bin
7461 elif test -f /usr/local/include/mysql/mysql.h; then
7462 MYSQL_INCDIR=/usr/local/include/mysql
7463 MYSQL_LIBDIR=/usr/local/lib/mysql
7464 MYSQL_BINDIR=/usr/local/bin
7465 elif test -f /usr/local/include/mysql.h; then
7466 MYSQL_INCDIR=/usr/local/include
7467 MYSQL_LIBDIR=/usr/local/lib
7468 MYSQL_BINDIR=/usr/local/bin
7470 echo "$as_me:$LINENO: result: no" >&5
7471 echo "${ECHO_T}no" >&6
7472 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7473 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7474 { (exit 1); exit 1; }; }
7477 if test -f $withval/include/mysql/mysql.h; then
7478 MYSQL_INCDIR=$withval/include/mysql
7479 MYSQL_LIBDIR=$withval/lib/mysql
7480 MYSQL_BINDIR=$withval/bin
7481 elif test -f $withval/include/mysql.h; then
7482 MYSQL_INCDIR=$withval/include
7483 MYSQL_LIBDIR=$withval/lib
7484 MYSQL_BINDIR=$withval/bin
7486 echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6
7488 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7489 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7490 { (exit 1); exit 1; }; }
7493 SQL_INCLUDE=-I$MYSQL_INCDIR
7494 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7495 SQL_BINDIR=$MYSQL_BINDIR
7497 cat >>confdefs.h <<\_ACEOF
7498 #define HAVE_MYSQL 1
7501 cat >>confdefs.h <<\_ACEOF
7502 #define HAVE_EMBEDDED_MYSQL 1
7505 echo "$as_me:$LINENO: result: yes" >&5
7506 echo "${ECHO_T}yes" >&6
7513 echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6
7529 echo "$as_me:$LINENO: checking for SQLite support" >&5
7530 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7532 # Check whether --with-sqlite or --without-sqlite was given.
7533 if test "${with_sqlite+set}" = set; then
7534 withval="$with_sqlite"
7536 if test "$withval" != "no"; then
7537 if test "$withval" = "yes"; then
7538 if test -f /usr/local/include/sqlite.h; then
7539 SQLITE_INCDIR=/usr/local/include
7540 SQLITE_LIBDIR=/usr/local/lib
7541 SQLITE_BINDIR=/usr/local/bin
7542 elif test -f /usr/include/sqlite.h; then
7543 SQLITE_INCDIR=/usr/include
7544 SQLITE_LIBDIR=/usr/lib
7545 SQLITE_BINDIR=/usr/bin
7547 echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6
7549 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7550 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7551 { (exit 1); exit 1; }; }
7554 if test -f $withval/sqlite.h; then
7555 SQLITE_INCDIR=$withval
7556 SQLITE_LIBDIR=$withval
7557 SQLITE_BINDIR=$withval
7559 echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6
7561 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7562 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7563 { (exit 1); exit 1; }; }
7566 SQL_INCLUDE=-I$SQLITE_INCDIR
7567 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7568 SQL_BINDIR=$SQLITE_BINDIR
7570 cat >>confdefs.h <<\_ACEOF
7571 #define HAVE_SQLITE 1
7574 echo "$as_me:$LINENO: result: yes" >&5
7575 echo "${ECHO_T}yes" >&6
7582 echo "$as_me:$LINENO: result: no" >&5
7583 echo "${ECHO_T}no" >&6
7588 echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6
7601 cat >>confdefs.h <<\_ACEOF
7602 #define PROTOTYPES 1
7606 if test -z "$CFLAGS"; then
7607 if test -z "$CCOPTS"; then
7616 largefile_support="no"
7618 # Check whether --enable-largefile or --disable-largefile was given.
7619 if test "${enable_largefile+set}" = set; then
7620 enableval="$enable_largefile"
7623 if test "$enable_largefile" != no; then
7624 if test -n "$ac_tool_prefix"; then
7625 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7626 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7627 echo "$as_me:$LINENO: checking for $ac_word" >&5
7628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7629 if test "${ac_cv_prog_GETCONF+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 if test -n "$GETCONF"; then
7633 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7642 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 GETCONF=$ac_cv_prog_GETCONF
7652 if test -n "$GETCONF"; then
7653 echo "$as_me:$LINENO: result: $GETCONF" >&5
7654 echo "${ECHO_T}$GETCONF" >&6
7656 echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6
7661 if test -z "$ac_cv_prog_GETCONF"; then
7662 ac_ct_GETCONF=$GETCONF
7663 # Extract the first word of "getconf", so it can be a program name with args.
7664 set dummy getconf; ac_word=$2
7665 echo "$as_me:$LINENO: checking for $ac_word" >&5
7666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7667 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 if test -n "$ac_ct_GETCONF"; then
7671 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7680 ac_cv_prog_ac_ct_GETCONF="getconf"
7681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7690 if test -n "$ac_ct_GETCONF"; then
7691 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7692 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7694 echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6
7698 GETCONF=$ac_ct_GETCONF
7700 GETCONF="$ac_cv_prog_GETCONF"
7703 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7704 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7705 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7709 ac_cv_sys_largefile_CFLAGS=no
7711 # IRIX 6.2 and later require cc -n32.
7712 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7713 if test "$GCC" != yes; then
7714 ac_cv_sys_largefile_CFLAGS=-n32
7717 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7718 cat >conftest.$ac_ext <<_ACEOF
7719 #line $LINENO "configure"
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h. */
7734 rm -f conftest.$ac_objext conftest$ac_exeext
7735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7736 (eval $ac_link) 2>&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try='test -s conftest$ac_exeext'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; }; then
7748 echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7751 ac_cv_sys_largefile_CFLAGS=no
7753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7758 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7759 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7760 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7761 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7762 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7765 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7766 ac_cv_sys_largefile_LDFLAGS=no
7770 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7771 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7772 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7773 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7774 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7778 ac_cv_sys_largefile_LIBS=no
7782 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7783 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7785 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7788 -D_FILE_OFFSET_BITS=*) ;;
7789 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7790 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7796 '') CPPFLAGS="$ac_flag" ;;
7797 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7805 '') CFLAGS="$ac_flag" ;;
7806 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7811 case "$ac_cv_sys_largefile_LDFLAGS" in
7815 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7816 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7819 case "$ac_cv_sys_largefile_LIBS" in
7823 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7824 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7827 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7828 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7829 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 ac_cv_sys_file_offset_bits=no
7834 # HP-UX 10.20 and later
7835 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7836 ac_cv_sys_file_offset_bits=64 ;;
7838 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7840 -D_FILE_OFFSET_BITS)
7841 ac_cv_sys_file_offset_bits=1 ;;
7842 -D_FILE_OFFSET_BITS=*)
7843 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7848 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7849 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7850 if test "$ac_cv_sys_file_offset_bits" != no; then
7852 cat >>confdefs.h <<_ACEOF
7853 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7857 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7858 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7859 if test "${ac_cv_sys_largefile_source+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 ac_cv_sys_largefile_source=no
7864 # HP-UX 10.20 and later
7865 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7866 ac_cv_sys_largefile_source=1 ;;
7868 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7870 -D_LARGEFILE_SOURCE)
7871 ac_cv_sys_largefile_source=1 ;;
7872 -D_LARGEFILE_SOURCE=*)
7873 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7878 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7879 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7880 if test "$ac_cv_sys_largefile_source" != no; then
7882 cat >>confdefs.h <<_ACEOF
7883 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7887 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7888 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7889 if test "${ac_cv_sys_large_files+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 ac_cv_sys_large_files=no
7895 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7896 ac_cv_sys_large_files=1 ;;
7898 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7901 ac_cv_sys_large_files=1 ;;
7903 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7908 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7909 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7910 if test "$ac_cv_sys_large_files" != no; then
7912 cat >>confdefs.h <<_ACEOF
7913 #define _LARGE_FILES $ac_cv_sys_large_files
7921 echo "$as_me:$LINENO: checking for X" >&5
7922 echo $ECHO_N "checking for X... $ECHO_C" >&6
7925 # Check whether --with-x or --without-x was given.
7926 if test "${with_x+set}" = set; then
7930 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7931 if test "x$with_x" = xno; then
7932 # The user explicitly disabled X.
7935 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7936 # Both variables are already set.
7939 if test "${ac_cv_have_x+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 # One or both of the vars are not set, and there is no cached value.
7943 ac_x_includes=no ac_x_libraries=no
7945 if mkdir conftest.dir; then
7947 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7948 cat >Imakefile <<'_ACEOF'
7950 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7952 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7953 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7954 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7955 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7956 for ac_extension in a so sl; do
7957 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7958 test -f $ac_im_libdir/libX11.$ac_extension; then
7959 ac_im_usrlibdir=$ac_im_libdir; break
7962 # Screen out bogus values from the imake configuration. They are
7963 # bogus both because they are the default anyway, and because
7964 # using them would break gcc on systems where it needs fixed includes.
7965 case $ac_im_incroot in
7967 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7969 case $ac_im_usrlibdir in
7971 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7978 # Standard set of common directories for X headers.
7979 # Check X11 before X11Rn because it is often a symlink to the current release.
7991 /usr/local/X11/include
7992 /usr/local/X11R6/include
7993 /usr/local/X11R5/include
7994 /usr/local/X11R4/include
7996 /usr/local/include/X11
7997 /usr/local/include/X11R6
7998 /usr/local/include/X11R5
7999 /usr/local/include/X11R4
8003 /usr/XFree86/include/X11
8007 /usr/unsupported/include
8009 /usr/local/x11r5/include
8010 /usr/lpp/Xamples/include
8012 /usr/openwin/include
8013 /usr/openwin/share/include'
8015 if test "$ac_x_includes" = no; then
8016 # Guess where to find include files, by looking for Intrinsic.h.
8017 # First, try using that file with no special directory specified.
8018 cat >conftest.$ac_ext <<_ACEOF
8019 #line $LINENO "configure"
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 #include <X11/Intrinsic.h>
8027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8030 grep -v '^ *+' conftest.er1 >conftest.err
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } >/dev/null; then
8035 if test -s conftest.err; then
8036 ac_cpp_err=$ac_c_preproc_warn_flag
8043 if test -z "$ac_cpp_err"; then
8044 # We can compile using X headers with no special include directory.
8047 echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8050 for ac_dir in $ac_x_header_dirs; do
8051 if test -r "$ac_dir/X11/Intrinsic.h"; then
8052 ac_x_includes=$ac_dir
8057 rm -f conftest.err conftest.$ac_ext
8058 fi # $ac_x_includes = no
8060 if test "$ac_x_libraries" = no; then
8061 # Check for the libraries.
8062 # See if we find them without any special options.
8063 # Don't add to $LIBS permanently.
8066 cat >conftest.$ac_ext <<_ACEOF
8067 #line $LINENO "configure"
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 #include <X11/Intrinsic.h>
8082 rm -f conftest.$ac_objext conftest$ac_exeext
8083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8084 (eval $ac_link) 2>&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } &&
8088 { ac_try='test -s conftest$ac_exeext'
8089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; }; then
8095 # We can link X programs with no special library path.
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8102 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8104 # Don't even attempt the hair of trying to link an X program!
8105 for ac_extension in a so sl; do
8106 if test -r $ac_dir/libXt.$ac_extension; then
8107 ac_x_libraries=$ac_dir
8113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8114 fi # $ac_x_libraries = no
8116 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8117 # Didn't find X anywhere. Cache the known absence of X.
8118 ac_cv_have_x="have_x=no"
8120 # Record where we found X for the cache.
8121 ac_cv_have_x="have_x=yes \
8122 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8127 eval "$ac_cv_have_x"
8130 if test "$have_x" != yes; then
8131 echo "$as_me:$LINENO: result: $have_x" >&5
8132 echo "${ECHO_T}$have_x" >&6
8135 # If each of the values was on the command line, it overrides each guess.
8136 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8137 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8138 # Update the cache value to reflect the command line values.
8139 ac_cv_have_x="have_x=yes \
8140 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8141 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8142 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8145 if test "$no_x" = yes; then
8146 # Not all programs may use this symbol, but it does not hurt to define it.
8148 cat >>confdefs.h <<\_ACEOF
8149 #define X_DISPLAY_MISSING 1
8152 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8154 if test -n "$x_includes"; then
8155 X_CFLAGS="$X_CFLAGS -I$x_includes"
8158 # It would also be nice to do this for all -L options, not just this one.
8159 if test -n "$x_libraries"; then
8160 X_LIBS="$X_LIBS -L$x_libraries"
8161 # For Solaris; some versions of Sun CC require a space after -R and
8162 # others require no space. Words are not sufficient . . . .
8163 case `(uname -sr) 2>/dev/null` in
8165 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8166 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8167 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8168 cat >conftest.$ac_ext <<_ACEOF
8169 #line $LINENO "configure"
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8184 rm -f conftest.$ac_objext conftest$ac_exeext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8186 (eval $ac_link) 2>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try='test -s conftest$ac_exeext'
8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; }; then
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8204 if test $ac_R_nospace = yes; then
8205 echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6
8207 X_LIBS="$X_LIBS -R$x_libraries"
8209 LIBS="$ac_xsave_LIBS -R $x_libraries"
8210 cat >conftest.$ac_ext <<_ACEOF
8211 #line $LINENO "configure"
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8228 (eval $ac_link) 2>&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } &&
8232 { ac_try='test -s conftest$ac_exeext'
8233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; }; then
8240 echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8246 if test $ac_R_space = yes; then
8247 echo "$as_me:$LINENO: result: yes" >&5
8248 echo "${ECHO_T}yes" >&6
8249 X_LIBS="$X_LIBS -R $x_libraries"
8251 echo "$as_me:$LINENO: result: neither works" >&5
8252 echo "${ECHO_T}neither works" >&6
8259 # Check for system-dependent libraries X programs must link with.
8260 # Do this before checking for the system-independent R6 libraries
8261 # (-lICE), since we may need -lsocket or whatever for X linking.
8263 if test "$ISC" = yes; then
8264 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8266 # Martyn Johnson says this is needed for Ultrix, if the X
8267 # libraries were built with DECnet support. And Karl Berry says
8268 # the Alpha needs dnet_stub (dnet does not exist).
8269 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8270 cat >conftest.$ac_ext <<_ACEOF
8271 #line $LINENO "configure"
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8278 /* Override any gcc2 internal prototype to avoid an error. */
8282 /* We use char because int might match the return type of a gcc2
8283 builtin and then its argument prototype would still apply. */
8284 char XOpenDisplay ();
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8295 (eval $ac_link) 2>&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } &&
8299 { ac_try='test -s conftest$ac_exeext'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; }; then
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8310 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8311 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8312 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 ac_check_lib_save_LIBS=$LIBS
8317 cat >conftest.$ac_ext <<_ACEOF
8318 #line $LINENO "configure"
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8325 /* Override any gcc2 internal prototype to avoid an error. */
8329 /* We use char because int might match the return type of a gcc2
8330 builtin and then its argument prototype would still apply. */
8340 rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8342 (eval $ac_link) 2>&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } &&
8346 { ac_try='test -s conftest$ac_exeext'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; }; then
8352 ac_cv_lib_dnet_dnet_ntoa=yes
8354 echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8357 ac_cv_lib_dnet_dnet_ntoa=no
8359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8360 LIBS=$ac_check_lib_save_LIBS
8362 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8363 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8364 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8365 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8368 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8369 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8370 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8371 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 ac_check_lib_save_LIBS=$LIBS
8375 LIBS="-ldnet_stub $LIBS"
8376 cat >conftest.$ac_ext <<_ACEOF
8377 #line $LINENO "configure"
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h. */
8384 /* Override any gcc2 internal prototype to avoid an error. */
8388 /* We use char because int might match the return type of a gcc2
8389 builtin and then its argument prototype would still apply. */
8399 rm -f conftest.$ac_objext conftest$ac_exeext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8401 (eval $ac_link) 2>&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } &&
8405 { ac_try='test -s conftest$ac_exeext'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8411 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8416 ac_cv_lib_dnet_stub_dnet_ntoa=no
8418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8419 LIBS=$ac_check_lib_save_LIBS
8421 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8422 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8423 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8424 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8430 LIBS="$ac_xsave_LIBS"
8432 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8433 # to get the SysV transport functions.
8434 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8436 # The nsl library prevents programs from opening the X display
8437 # on Irix 5.2, according to T.E. Dickey.
8438 # The functions gethostbyname, getservbyname, and inet_addr are
8439 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8440 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8441 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8442 if test "${ac_cv_func_gethostbyname+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 cat >conftest.$ac_ext <<_ACEOF
8446 #line $LINENO "configure"
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8452 /* System header to define __stub macros and hopefully few prototypes,
8453 which can conflict with char gethostbyname (); below.
8454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8455 <limits.h> exists even on freestanding compilers. */
8457 # include <limits.h>
8459 # include <assert.h>
8461 /* Override any gcc2 internal prototype to avoid an error. */
8466 /* We use char because int might match the return type of a gcc2
8467 builtin and then its argument prototype would still apply. */
8468 char gethostbyname ();
8469 /* The GNU C library defines this for functions which it implements
8470 to always fail with ENOSYS. Some functions are actually named
8471 something starting with __ and the normal name is an alias. */
8472 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8475 char (*f) () = gethostbyname;
8484 return f != gethostbyname;
8489 rm -f conftest.$ac_objext conftest$ac_exeext
8490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8491 (eval $ac_link) 2>&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } &&
8495 { ac_try='test -s conftest$ac_exeext'
8496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; }; then
8501 ac_cv_func_gethostbyname=yes
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8506 ac_cv_func_gethostbyname=no
8508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8510 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8511 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8513 if test $ac_cv_func_gethostbyname = no; then
8514 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8515 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8516 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 ac_check_lib_save_LIBS=$LIBS
8521 cat >conftest.$ac_ext <<_ACEOF
8522 #line $LINENO "configure"
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8529 /* Override any gcc2 internal prototype to avoid an error. */
8533 /* We use char because int might match the return type of a gcc2
8534 builtin and then its argument prototype would still apply. */
8535 char gethostbyname ();
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546 (eval $ac_link) 2>&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } &&
8550 { ac_try='test -s conftest$ac_exeext'
8551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; }; then
8556 ac_cv_lib_nsl_gethostbyname=yes
8558 echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8561 ac_cv_lib_nsl_gethostbyname=no
8563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8564 LIBS=$ac_check_lib_save_LIBS
8566 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8567 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8568 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8569 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8572 if test $ac_cv_lib_nsl_gethostbyname = no; then
8573 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8574 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8575 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 ac_check_lib_save_LIBS=$LIBS
8580 cat >conftest.$ac_ext <<_ACEOF
8581 #line $LINENO "configure"
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h. */
8588 /* Override any gcc2 internal prototype to avoid an error. */
8592 /* We use char because int might match the return type of a gcc2
8593 builtin and then its argument prototype would still apply. */
8594 char gethostbyname ();
8603 rm -f conftest.$ac_objext conftest$ac_exeext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8605 (eval $ac_link) 2>&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -s conftest$ac_exeext'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; }; then
8615 ac_cv_lib_bsd_gethostbyname=yes
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8620 ac_cv_lib_bsd_gethostbyname=no
8622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8623 LIBS=$ac_check_lib_save_LIBS
8625 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8626 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8627 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8628 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8634 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8635 # socket/setsockopt and other routines are undefined under SCO ODT
8636 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8637 # on later versions), says Simon Leinen: it contains gethostby*
8638 # variants that don't use the name server (or something). -lsocket
8639 # must be given before -lnsl if both are needed. We assume that
8640 # if connect needs -lnsl, so does gethostbyname.
8641 echo "$as_me:$LINENO: checking for connect" >&5
8642 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8643 if test "${ac_cv_func_connect+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8646 cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8653 /* System header to define __stub macros and hopefully few prototypes,
8654 which can conflict with char connect (); below.
8655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8656 <limits.h> exists even on freestanding compilers. */
8658 # include <limits.h>
8660 # include <assert.h>
8662 /* Override any gcc2 internal prototype to avoid an error. */
8667 /* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
8670 /* The GNU C library defines this for functions which it implements
8671 to always fail with ENOSYS. Some functions are actually named
8672 something starting with __ and the normal name is an alias. */
8673 #if defined (__stub_connect) || defined (__stub___connect)
8676 char (*f) () = connect;
8685 return f != connect;
8690 rm -f conftest.$ac_objext conftest$ac_exeext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692 (eval $ac_link) 2>&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } &&
8696 { ac_try='test -s conftest$ac_exeext'
8697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; }; then
8702 ac_cv_func_connect=yes
8704 echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8707 ac_cv_func_connect=no
8709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8711 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8712 echo "${ECHO_T}$ac_cv_func_connect" >&6
8714 if test $ac_cv_func_connect = no; then
8715 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8716 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8717 if test "${ac_cv_lib_socket_connect+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 ac_check_lib_save_LIBS=$LIBS
8721 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8722 cat >conftest.$ac_ext <<_ACEOF
8723 #line $LINENO "configure"
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8730 /* Override any gcc2 internal prototype to avoid an error. */
8734 /* We use char because int might match the return type of a gcc2
8735 builtin and then its argument prototype would still apply. */
8745 rm -f conftest.$ac_objext conftest$ac_exeext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8747 (eval $ac_link) 2>&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try='test -s conftest$ac_exeext'
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; }; then
8757 ac_cv_lib_socket_connect=yes
8759 echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8762 ac_cv_lib_socket_connect=no
8764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8765 LIBS=$ac_check_lib_save_LIBS
8767 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8768 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8769 if test $ac_cv_lib_socket_connect = yes; then
8770 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8775 # Guillermo Gomez says -lposix is necessary on A/UX.
8776 echo "$as_me:$LINENO: checking for remove" >&5
8777 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8778 if test "${ac_cv_func_remove+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8781 cat >conftest.$ac_ext <<_ACEOF
8782 #line $LINENO "configure"
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h. */
8788 /* System header to define __stub macros and hopefully few prototypes,
8789 which can conflict with char remove (); below.
8790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8791 <limits.h> exists even on freestanding compilers. */
8793 # include <limits.h>
8795 # include <assert.h>
8797 /* Override any gcc2 internal prototype to avoid an error. */
8802 /* We use char because int might match the return type of a gcc2
8803 builtin and then its argument prototype would still apply. */
8805 /* The GNU C library defines this for functions which it implements
8806 to always fail with ENOSYS. Some functions are actually named
8807 something starting with __ and the normal name is an alias. */
8808 #if defined (__stub_remove) || defined (__stub___remove)
8811 char (*f) () = remove;
8825 rm -f conftest.$ac_objext conftest$ac_exeext
8826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8827 (eval $ac_link) 2>&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -s conftest$ac_exeext'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; }; then
8837 ac_cv_func_remove=yes
8839 echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8842 ac_cv_func_remove=no
8844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8846 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8847 echo "${ECHO_T}$ac_cv_func_remove" >&6
8849 if test $ac_cv_func_remove = no; then
8850 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8851 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8852 if test "${ac_cv_lib_posix_remove+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8855 ac_check_lib_save_LIBS=$LIBS
8856 LIBS="-lposix $LIBS"
8857 cat >conftest.$ac_ext <<_ACEOF
8858 #line $LINENO "configure"
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8865 /* Override any gcc2 internal prototype to avoid an error. */
8869 /* We use char because int might match the return type of a gcc2
8870 builtin and then its argument prototype would still apply. */
8880 rm -f conftest.$ac_objext conftest$ac_exeext
8881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8882 (eval $ac_link) 2>&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } &&
8886 { ac_try='test -s conftest$ac_exeext'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; }; then
8892 ac_cv_lib_posix_remove=yes
8894 echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8897 ac_cv_lib_posix_remove=no
8899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8900 LIBS=$ac_check_lib_save_LIBS
8902 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8903 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8904 if test $ac_cv_lib_posix_remove = yes; then
8905 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8910 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8911 echo "$as_me:$LINENO: checking for shmat" >&5
8912 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8913 if test "${ac_cv_func_shmat+set}" = set; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 cat >conftest.$ac_ext <<_ACEOF
8917 #line $LINENO "configure"
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8923 /* System header to define __stub macros and hopefully few prototypes,
8924 which can conflict with char shmat (); below.
8925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8926 <limits.h> exists even on freestanding compilers. */
8928 # include <limits.h>
8930 # include <assert.h>
8932 /* Override any gcc2 internal prototype to avoid an error. */
8937 /* We use char because int might match the return type of a gcc2
8938 builtin and then its argument prototype would still apply. */
8940 /* The GNU C library defines this for functions which it implements
8941 to always fail with ENOSYS. Some functions are actually named
8942 something starting with __ and the normal name is an alias. */
8943 #if defined (__stub_shmat) || defined (__stub___shmat)
8946 char (*f) () = shmat;
8960 rm -f conftest.$ac_objext conftest$ac_exeext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8962 (eval $ac_link) 2>&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } &&
8966 { ac_try='test -s conftest$ac_exeext'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8972 ac_cv_func_shmat=yes
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8981 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8982 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8984 if test $ac_cv_func_shmat = no; then
8985 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8986 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8987 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8990 ac_check_lib_save_LIBS=$LIBS
8992 cat >conftest.$ac_ext <<_ACEOF
8993 #line $LINENO "configure"
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h. */
9000 /* Override any gcc2 internal prototype to avoid an error. */
9004 /* We use char because int might match the return type of a gcc2
9005 builtin and then its argument prototype would still apply. */
9015 rm -f conftest.$ac_objext conftest$ac_exeext
9016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9017 (eval $ac_link) 2>&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } &&
9021 { ac_try='test -s conftest$ac_exeext'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027 ac_cv_lib_ipc_shmat=yes
9029 echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9032 ac_cv_lib_ipc_shmat=no
9034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9035 LIBS=$ac_check_lib_save_LIBS
9037 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9038 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9039 if test $ac_cv_lib_ipc_shmat = yes; then
9040 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9046 # Check for libraries that X11R6 Xt/Xaw programs need.
9047 ac_save_LDFLAGS=$LDFLAGS
9048 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9049 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9050 # check for ICE first), but we must link in the order -lSM -lICE or
9051 # we get undefined symbols. So assume we have SM if we have ICE.
9052 # These have to be linked with before -lX11, unlike the other
9053 # libraries we check for below, so use a different variable.
9054 # John Interrante, Karl Berry
9055 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9056 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9057 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 ac_check_lib_save_LIBS=$LIBS
9061 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9062 cat >conftest.$ac_ext <<_ACEOF
9063 #line $LINENO "configure"
9066 cat confdefs.h >>conftest.$ac_ext
9067 cat >>conftest.$ac_ext <<_ACEOF
9068 /* end confdefs.h. */
9070 /* Override any gcc2 internal prototype to avoid an error. */
9074 /* We use char because int might match the return type of a gcc2
9075 builtin and then its argument prototype would still apply. */
9076 char IceConnectionNumber ();
9080 IceConnectionNumber ();
9085 rm -f conftest.$ac_objext conftest$ac_exeext
9086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9087 (eval $ac_link) 2>&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } &&
9091 { ac_try='test -s conftest$ac_exeext'
9092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); }; }; then
9097 ac_cv_lib_ICE_IceConnectionNumber=yes
9099 echo "$as_me: failed program was:" >&5
9100 sed 's/^/| /' conftest.$ac_ext >&5
9102 ac_cv_lib_ICE_IceConnectionNumber=no
9104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9105 LIBS=$ac_check_lib_save_LIBS
9107 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9108 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9109 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9110 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9113 LDFLAGS=$ac_save_LDFLAGS
9167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9169 echo "$as_me:$LINENO: checking for $ac_header" >&5
9170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9177 # Is the header compilable?
9178 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9180 cat >conftest.$ac_ext <<_ACEOF
9181 #line $LINENO "configure"
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h. */
9187 $ac_includes_default
9188 #include <$ac_header>
9190 rm -f conftest.$ac_objext
9191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9192 (eval $ac_compile) 2>&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } &&
9196 { ac_try='test -s conftest.$ac_objext'
9197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); }; }; then
9202 ac_header_compiler=yes
9204 echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9207 ac_header_compiler=no
9209 rm -f conftest.$ac_objext conftest.$ac_ext
9210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9211 echo "${ECHO_T}$ac_header_compiler" >&6
9213 # Is the header present?
9214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9216 cat >conftest.$ac_ext <<_ACEOF
9217 #line $LINENO "configure"
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9223 #include <$ac_header>
9225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9228 grep -v '^ *+' conftest.er1 >conftest.err
9230 cat conftest.err >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } >/dev/null; then
9233 if test -s conftest.err; then
9234 ac_cpp_err=$ac_c_preproc_warn_flag
9241 if test -z "$ac_cpp_err"; then
9242 ac_header_preproc=yes
9244 echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9247 ac_header_preproc=no
9249 rm -f conftest.err conftest.$ac_ext
9250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9251 echo "${ECHO_T}$ac_header_preproc" >&6
9253 # So? What about this header?
9254 case $ac_header_compiler:$ac_header_preproc in
9256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9262 ## ------------------------------------ ##
9263 ## Report this to bug-autoconf@gnu.org. ##
9264 ## ------------------------------------ ##
9267 sed "s/^/$as_me: WARNING: /" >&2
9270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9278 ## ------------------------------------ ##
9279 ## Report this to bug-autoconf@gnu.org. ##
9280 ## ------------------------------------ ##
9283 sed "s/^/$as_me: WARNING: /" >&2
9286 echo "$as_me:$LINENO: checking for $ac_header" >&5
9287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 eval "$as_ac_Header=$ac_header_preproc"
9293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9298 cat >>confdefs.h <<_ACEOF
9299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9306 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9307 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9308 if test "${ac_cv_header_stdc+set}" = set; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 cat >conftest.$ac_ext <<_ACEOF
9312 #line $LINENO "configure"
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h. */
9331 rm -f conftest.$ac_objext
9332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9333 (eval $ac_compile) 2>&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try='test -s conftest.$ac_objext'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
9343 ac_cv_header_stdc=yes
9345 echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.$ac_ext >&5
9348 ac_cv_header_stdc=no
9350 rm -f conftest.$ac_objext conftest.$ac_ext
9352 if test $ac_cv_header_stdc = yes; then
9353 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9354 cat >conftest.$ac_ext <<_ACEOF
9355 #line $LINENO "configure"
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9365 $EGREP "memchr" >/dev/null 2>&1; then
9368 ac_cv_header_stdc=no
9374 if test $ac_cv_header_stdc = yes; then
9375 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9376 cat >conftest.$ac_ext <<_ACEOF
9377 #line $LINENO "configure"
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9387 $EGREP "free" >/dev/null 2>&1; then
9390 ac_cv_header_stdc=no
9396 if test $ac_cv_header_stdc = yes; then
9397 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9398 if test "$cross_compiling" = yes; then
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. */
9409 #if ((' ' & 0x0FF) == 0x020)
9410 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9411 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9413 # define ISLOWER(c) \
9414 (('a' <= (c) && (c) <= 'i') \
9415 || ('j' <= (c) && (c) <= 'r') \
9416 || ('s' <= (c) && (c) <= 'z'))
9417 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9420 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9425 for (i = 0; i < 256; i++)
9426 if (XOR (islower (i), ISLOWER (i))
9427 || toupper (i) != TOUPPER (i))
9432 rm -f conftest$ac_exeext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9434 (eval $ac_link) 2>&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); }; }; then
9445 echo "$as_me: program exited with status $ac_status" >&5
9446 echo "$as_me: failed program was:" >&5
9447 sed 's/^/| /' conftest.$ac_ext >&5
9450 ac_cv_header_stdc=no
9452 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9456 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9457 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9458 if test $ac_cv_header_stdc = yes; then
9460 cat >>confdefs.h <<\_ACEOF
9461 #define STDC_HEADERS 1
9466 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9467 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9468 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 cat >conftest.$ac_ext <<_ACEOF
9472 #line $LINENO "configure"
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9478 #include <sys/types.h>
9482 return makedev(0, 0);
9487 rm -f conftest.$ac_objext conftest$ac_exeext
9488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9489 (eval $ac_link) 2>&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } &&
9493 { ac_try='test -s conftest$ac_exeext'
9494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; }; then
9499 ac_cv_header_sys_types_h_makedev=yes
9501 echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9504 ac_cv_header_sys_types_h_makedev=no
9506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9509 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9510 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9512 if test $ac_cv_header_sys_types_h_makedev = no; then
9513 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9514 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9515 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9516 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9517 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9520 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9522 # Is the header compilable?
9523 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9524 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9525 cat >conftest.$ac_ext <<_ACEOF
9526 #line $LINENO "configure"
9529 cat confdefs.h >>conftest.$ac_ext
9530 cat >>conftest.$ac_ext <<_ACEOF
9531 /* end confdefs.h. */
9532 $ac_includes_default
9533 #include <sys/mkdev.h>
9535 rm -f conftest.$ac_objext
9536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9537 (eval $ac_compile) 2>&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } &&
9541 { ac_try='test -s conftest.$ac_objext'
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; }; then
9547 ac_header_compiler=yes
9549 echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9552 ac_header_compiler=no
9554 rm -f conftest.$ac_objext conftest.$ac_ext
9555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9556 echo "${ECHO_T}$ac_header_compiler" >&6
9558 # Is the header present?
9559 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9560 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9561 cat >conftest.$ac_ext <<_ACEOF
9562 #line $LINENO "configure"
9565 cat confdefs.h >>conftest.$ac_ext
9566 cat >>conftest.$ac_ext <<_ACEOF
9567 /* end confdefs.h. */
9568 #include <sys/mkdev.h>
9570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9573 grep -v '^ *+' conftest.er1 >conftest.err
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } >/dev/null; then
9578 if test -s conftest.err; then
9579 ac_cpp_err=$ac_c_preproc_warn_flag
9586 if test -z "$ac_cpp_err"; then
9587 ac_header_preproc=yes
9589 echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9592 ac_header_preproc=no
9594 rm -f conftest.err conftest.$ac_ext
9595 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9596 echo "${ECHO_T}$ac_header_preproc" >&6
9598 # So? What about this header?
9599 case $ac_header_compiler:$ac_header_preproc in
9601 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9602 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9603 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9604 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9607 ## ------------------------------------ ##
9608 ## Report this to bug-autoconf@gnu.org. ##
9609 ## ------------------------------------ ##
9612 sed "s/^/$as_me: WARNING: /" >&2
9615 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9616 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9617 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9618 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9620 echo "$as_me: WARNING: sys/mkdev.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: checking for sys/mkdev.h" >&5
9632 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9633 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9638 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9639 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9642 if test $ac_cv_header_sys_mkdev_h = yes; then
9644 cat >>confdefs.h <<\_ACEOF
9645 #define MAJOR_IN_MKDEV 1
9652 if test $ac_cv_header_sys_mkdev_h = no; then
9653 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9654 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9655 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9656 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9660 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9662 # Is the header compilable?
9663 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9664 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9665 cat >conftest.$ac_ext <<_ACEOF
9666 #line $LINENO "configure"
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h. */
9672 $ac_includes_default
9673 #include <sys/sysmacros.h>
9675 rm -f conftest.$ac_objext
9676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9677 (eval $ac_compile) 2>&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } &&
9681 { ac_try='test -s conftest.$ac_objext'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9687 ac_header_compiler=yes
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9692 ac_header_compiler=no
9694 rm -f conftest.$ac_objext conftest.$ac_ext
9695 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9696 echo "${ECHO_T}$ac_header_compiler" >&6
9698 # Is the header present?
9699 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9700 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9701 cat >conftest.$ac_ext <<_ACEOF
9702 #line $LINENO "configure"
9705 cat confdefs.h >>conftest.$ac_ext
9706 cat >>conftest.$ac_ext <<_ACEOF
9707 /* end confdefs.h. */
9708 #include <sys/sysmacros.h>
9710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9713 grep -v '^ *+' conftest.er1 >conftest.err
9715 cat conftest.err >&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } >/dev/null; then
9718 if test -s conftest.err; then
9719 ac_cpp_err=$ac_c_preproc_warn_flag
9726 if test -z "$ac_cpp_err"; then
9727 ac_header_preproc=yes
9729 echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.$ac_ext >&5
9732 ac_header_preproc=no
9734 rm -f conftest.err conftest.$ac_ext
9735 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9736 echo "${ECHO_T}$ac_header_preproc" >&6
9738 # So? What about this header?
9739 case $ac_header_compiler:$ac_header_preproc in
9741 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9742 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9743 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9744 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9747 ## ------------------------------------ ##
9748 ## Report this to bug-autoconf@gnu.org. ##
9749 ## ------------------------------------ ##
9752 sed "s/^/$as_me: WARNING: /" >&2
9755 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9756 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9757 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9758 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9759 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9760 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9763 ## ------------------------------------ ##
9764 ## Report this to bug-autoconf@gnu.org. ##
9765 ## ------------------------------------ ##
9768 sed "s/^/$as_me: WARNING: /" >&2
9771 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9772 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9773 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9776 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9778 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9779 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9782 if test $ac_cv_header_sys_sysmacros_h = yes; then
9784 cat >>confdefs.h <<\_ACEOF
9785 #define MAJOR_IN_SYSMACROS 1
9800 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9801 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9802 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9803 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 cat >conftest.$ac_ext <<_ACEOF
9808 #line $LINENO "configure"
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9814 #include <sys/types.h>
9826 rm -f conftest.$ac_objext
9827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9828 (eval $ac_compile) 2>&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } &&
9832 { ac_try='test -s conftest.$ac_objext'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
9838 eval "$as_ac_Header=yes"
9840 echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9843 eval "$as_ac_Header=no"
9845 rm -f conftest.$ac_objext conftest.$ac_ext
9847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9850 cat >>confdefs.h <<_ACEOF
9851 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9854 ac_header_dirent=$ac_hdr; break
9858 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9859 if test $ac_header_dirent = dirent.h; then
9860 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9861 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9862 if test "${ac_cv_search_opendir+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 ac_func_search_save_LIBS=$LIBS
9866 ac_cv_search_opendir=no
9867 cat >conftest.$ac_ext <<_ACEOF
9868 #line $LINENO "configure"
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9875 /* Override any gcc2 internal prototype to avoid an error. */
9879 /* We use char because int might match the return type of a gcc2
9880 builtin and then its argument prototype would still apply. */
9890 rm -f conftest.$ac_objext conftest$ac_exeext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892 (eval $ac_link) 2>&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try='test -s conftest$ac_exeext'
9897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 ac_cv_search_opendir="none required"
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9909 if test "$ac_cv_search_opendir" = no; then
9910 for ac_lib in dir; do
9911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9912 cat >conftest.$ac_ext <<_ACEOF
9913 #line $LINENO "configure"
9916 cat confdefs.h >>conftest.$ac_ext
9917 cat >>conftest.$ac_ext <<_ACEOF
9918 /* end confdefs.h. */
9920 /* Override any gcc2 internal prototype to avoid an error. */
9924 /* We use char because int might match the return type of a gcc2
9925 builtin and then its argument prototype would still apply. */
9935 rm -f conftest.$ac_objext conftest$ac_exeext
9936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9937 (eval $ac_link) 2>&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -s conftest$ac_exeext'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9947 ac_cv_search_opendir="-l$ac_lib"
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9957 LIBS=$ac_func_search_save_LIBS
9959 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9960 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9961 if test "$ac_cv_search_opendir" != no; then
9962 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9967 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9968 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9969 if test "${ac_cv_search_opendir+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 ac_func_search_save_LIBS=$LIBS
9973 ac_cv_search_opendir=no
9974 cat >conftest.$ac_ext <<_ACEOF
9975 #line $LINENO "configure"
9978 cat confdefs.h >>conftest.$ac_ext
9979 cat >>conftest.$ac_ext <<_ACEOF
9980 /* end confdefs.h. */
9982 /* Override any gcc2 internal prototype to avoid an error. */
9986 /* We use char because int might match the return type of a gcc2
9987 builtin and then its argument prototype would still apply. */
9997 rm -f conftest.$ac_objext conftest$ac_exeext
9998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9999 (eval $ac_link) 2>&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } &&
10003 { ac_try='test -s conftest$ac_exeext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 ac_cv_search_opendir="none required"
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10016 if test "$ac_cv_search_opendir" = no; then
10017 for ac_lib in x; do
10018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10019 cat >conftest.$ac_ext <<_ACEOF
10020 #line $LINENO "configure"
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10027 /* Override any gcc2 internal prototype to avoid an error. */
10031 /* We use char because int might match the return type of a gcc2
10032 builtin and then its argument prototype would still apply. */
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10044 (eval $ac_link) 2>&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
10048 { ac_try='test -s conftest$ac_exeext'
10049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050 (eval $ac_try) 2>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; }; then
10054 ac_cv_search_opendir="-l$ac_lib"
10057 echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10064 LIBS=$ac_func_search_save_LIBS
10066 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10067 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10068 if test "$ac_cv_search_opendir" != no; then
10069 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10075 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10076 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10077 if test "${ac_cv_header_stat_broken+set}" = set; then
10078 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 cat >conftest.$ac_ext <<_ACEOF
10081 #line $LINENO "configure"
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10087 #include <sys/types.h>
10088 #include <sys/stat.h>
10090 #if defined(S_ISBLK) && defined(S_IFDIR)
10091 # if S_ISBLK (S_IFDIR)
10096 #if defined(S_ISBLK) && defined(S_IFCHR)
10097 # if S_ISBLK (S_IFCHR)
10102 #if defined(S_ISLNK) && defined(S_IFREG)
10103 # if S_ISLNK (S_IFREG)
10108 #if defined(S_ISSOCK) && defined(S_IFREG)
10109 # if S_ISSOCK (S_IFREG)
10115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10116 $EGREP "You lose" >/dev/null 2>&1; then
10117 ac_cv_header_stat_broken=yes
10119 ac_cv_header_stat_broken=no
10124 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10125 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10126 if test $ac_cv_header_stat_broken = yes; then
10128 cat >>confdefs.h <<\_ACEOF
10129 #define STAT_MACROS_BROKEN 1
10134 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10135 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10136 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10139 cat >conftest.$ac_ext <<_ACEOF
10140 #line $LINENO "configure"
10143 cat confdefs.h >>conftest.$ac_ext
10144 cat >>conftest.$ac_ext <<_ACEOF
10145 /* end confdefs.h. */
10146 #include <sys/types.h>
10147 #include <sys/wait.h>
10148 #ifndef WEXITSTATUS
10149 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10152 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10160 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10165 rm -f conftest.$ac_objext
10166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10167 (eval $ac_compile) 2>&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); } &&
10171 { ac_try='test -s conftest.$ac_objext'
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; }; then
10177 ac_cv_header_sys_wait_h=yes
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10182 ac_cv_header_sys_wait_h=no
10184 rm -f conftest.$ac_objext conftest.$ac_ext
10186 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10187 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10188 if test $ac_cv_header_sys_wait_h = yes; then
10190 cat >>confdefs.h <<\_ACEOF
10191 #define HAVE_SYS_WAIT_H 1
10196 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10197 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10198 if test "${ac_cv_header_time+set}" = set; then
10199 echo $ECHO_N "(cached) $ECHO_C" >&6
10201 cat >conftest.$ac_ext <<_ACEOF
10202 #line $LINENO "configure"
10205 cat confdefs.h >>conftest.$ac_ext
10206 cat >>conftest.$ac_ext <<_ACEOF
10207 /* end confdefs.h. */
10208 #include <sys/types.h>
10209 #include <sys/time.h>
10215 if ((struct tm *) 0)
10221 rm -f conftest.$ac_objext
10222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10223 (eval $ac_compile) 2>&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } &&
10227 { ac_try='test -s conftest.$ac_objext'
10228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229 (eval $ac_try) 2>&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; }; then
10233 ac_cv_header_time=yes
10235 echo "$as_me: failed program was:" >&5
10236 sed 's/^/| /' conftest.$ac_ext >&5
10238 ac_cv_header_time=no
10240 rm -f conftest.$ac_objext conftest.$ac_ext
10242 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10243 echo "${ECHO_T}$ac_cv_header_time" >&6
10244 if test $ac_cv_header_time = yes; then
10246 cat >>confdefs.h <<\_ACEOF
10247 #define TIME_WITH_SYS_TIME 1
10253 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10254 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10255 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10258 cat >conftest.$ac_ext <<_ACEOF
10259 #line $LINENO "configure"
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10265 $ac_includes_default
10269 static struct stat ac_aggr;
10270 if (ac_aggr.st_blksize)
10276 rm -f conftest.$ac_objext
10277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10278 (eval $ac_compile) 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } &&
10282 { ac_try='test -s conftest.$ac_objext'
10283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10284 (eval $ac_try) 2>&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }; }; then
10288 ac_cv_member_struct_stat_st_blksize=yes
10290 echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10293 cat >conftest.$ac_ext <<_ACEOF
10294 #line $LINENO "configure"
10297 cat confdefs.h >>conftest.$ac_ext
10298 cat >>conftest.$ac_ext <<_ACEOF
10299 /* end confdefs.h. */
10300 $ac_includes_default
10304 static struct stat ac_aggr;
10305 if (sizeof ac_aggr.st_blksize)
10311 rm -f conftest.$ac_objext
10312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10313 (eval $ac_compile) 2>&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } &&
10317 { ac_try='test -s conftest.$ac_objext'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; }; then
10323 ac_cv_member_struct_stat_st_blksize=yes
10325 echo "$as_me: failed program was:" >&5
10326 sed 's/^/| /' conftest.$ac_ext >&5
10328 ac_cv_member_struct_stat_st_blksize=no
10330 rm -f conftest.$ac_objext conftest.$ac_ext
10332 rm -f conftest.$ac_objext conftest.$ac_ext
10334 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10335 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10336 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10338 cat >>confdefs.h <<_ACEOF
10339 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10343 cat >>confdefs.h <<\_ACEOF
10344 #define HAVE_ST_BLKSIZE 1
10350 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10351 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10352 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 cat >conftest.$ac_ext <<_ACEOF
10356 #line $LINENO "configure"
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h. */
10362 $ac_includes_default
10366 static struct stat ac_aggr;
10367 if (ac_aggr.st_blocks)
10373 rm -f conftest.$ac_objext
10374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10375 (eval $ac_compile) 2>&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); } &&
10379 { ac_try='test -s conftest.$ac_objext'
10380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381 (eval $ac_try) 2>&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; }; then
10385 ac_cv_member_struct_stat_st_blocks=yes
10387 echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10390 cat >conftest.$ac_ext <<_ACEOF
10391 #line $LINENO "configure"
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h. */
10397 $ac_includes_default
10401 static struct stat ac_aggr;
10402 if (sizeof ac_aggr.st_blocks)
10408 rm -f conftest.$ac_objext
10409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10410 (eval $ac_compile) 2>&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } &&
10414 { ac_try='test -s conftest.$ac_objext'
10415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416 (eval $ac_try) 2>&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; }; then
10420 ac_cv_member_struct_stat_st_blocks=yes
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10425 ac_cv_member_struct_stat_st_blocks=no
10427 rm -f conftest.$ac_objext conftest.$ac_ext
10429 rm -f conftest.$ac_objext conftest.$ac_ext
10431 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10432 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10433 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10435 cat >>confdefs.h <<_ACEOF
10436 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10440 cat >>confdefs.h <<\_ACEOF
10441 #define HAVE_ST_BLOCKS 1
10445 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10449 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10450 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10451 if test "${ac_cv_struct_tm+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 cat >conftest.$ac_ext <<_ACEOF
10455 #line $LINENO "configure"
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461 #include <sys/types.h>
10467 struct tm *tp; tp->tm_sec;
10472 rm -f conftest.$ac_objext
10473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10474 (eval $ac_compile) 2>&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } &&
10478 { ac_try='test -s conftest.$ac_objext'
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 ac_cv_struct_tm=time.h
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10489 ac_cv_struct_tm=sys/time.h
10491 rm -f conftest.$ac_objext conftest.$ac_ext
10493 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10494 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10495 if test $ac_cv_struct_tm = sys/time.h; then
10497 cat >>confdefs.h <<\_ACEOF
10498 #define TM_IN_SYS_TIME 1
10503 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10504 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10505 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10508 cat >conftest.$ac_ext <<_ACEOF
10509 #line $LINENO "configure"
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10515 #include <sys/types.h>
10516 #include <$ac_cv_struct_tm>
10522 static struct tm ac_aggr;
10523 if (ac_aggr.tm_zone)
10529 rm -f conftest.$ac_objext
10530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10531 (eval $ac_compile) 2>&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } &&
10535 { ac_try='test -s conftest.$ac_objext'
10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537 (eval $ac_try) 2>&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; }; then
10541 ac_cv_member_struct_tm_tm_zone=yes
10543 echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10546 cat >conftest.$ac_ext <<_ACEOF
10547 #line $LINENO "configure"
10550 cat confdefs.h >>conftest.$ac_ext
10551 cat >>conftest.$ac_ext <<_ACEOF
10552 /* end confdefs.h. */
10553 #include <sys/types.h>
10554 #include <$ac_cv_struct_tm>
10560 static struct tm ac_aggr;
10561 if (sizeof ac_aggr.tm_zone)
10567 rm -f conftest.$ac_objext
10568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10569 (eval $ac_compile) 2>&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } &&
10573 { ac_try='test -s conftest.$ac_objext'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
10579 ac_cv_member_struct_tm_tm_zone=yes
10581 echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10584 ac_cv_member_struct_tm_tm_zone=no
10586 rm -f conftest.$ac_objext conftest.$ac_ext
10588 rm -f conftest.$ac_objext conftest.$ac_ext
10590 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10591 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10592 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10594 cat >>confdefs.h <<_ACEOF
10595 #define HAVE_STRUCT_TM_TM_ZONE 1
10601 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10603 cat >>confdefs.h <<\_ACEOF
10604 #define HAVE_TM_ZONE 1
10608 echo "$as_me:$LINENO: checking for tzname" >&5
10609 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10610 if test "${ac_cv_var_tzname+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 cat >conftest.$ac_ext <<_ACEOF
10614 #line $LINENO "configure"
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10621 #ifndef tzname /* For SGI. */
10622 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10633 rm -f conftest.$ac_objext conftest$ac_exeext
10634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10635 (eval $ac_link) 2>&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } &&
10639 { ac_try='test -s conftest$ac_exeext'
10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641 (eval $ac_try) 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; }; then
10645 ac_cv_var_tzname=yes
10647 echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10650 ac_cv_var_tzname=no
10652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10654 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10655 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10656 if test $ac_cv_var_tzname = yes; then
10658 cat >>confdefs.h <<\_ACEOF
10659 #define HAVE_TZNAME 1
10666 echo "$as_me:$LINENO: checking for utime.h" >&5
10667 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10668 if test "${ba_cv_header_utime_h+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 cat >conftest.$ac_ext <<_ACEOF
10672 #line $LINENO "configure"
10675 cat confdefs.h >>conftest.$ac_ext
10676 cat >>conftest.$ac_ext <<_ACEOF
10677 /* end confdefs.h. */
10679 #include <sys/types.h>
10689 rm -f conftest.$ac_objext
10690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10691 (eval $ac_compile) 2>&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } &&
10695 { ac_try='test -s conftest.$ac_objext'
10696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697 (eval $ac_try) 2>&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; }; then
10701 ba_cv_header_utime_h=yes
10703 echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.$ac_ext >&5
10706 ba_cv_header_utime_h=no
10708 rm -f conftest.$ac_objext conftest.$ac_ext
10710 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10711 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10712 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10713 #define HAVE_UTIME_H 1
10717 echo "$as_me:$LINENO: checking for socklen_t" >&5
10718 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10719 if test "${ba_cv_header_socklen_t+set}" = set; then
10720 echo $ECHO_N "(cached) $ECHO_C" >&6
10722 cat >conftest.$ac_ext <<_ACEOF
10723 #line $LINENO "configure"
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h. */
10730 #include <sys/types.h>
10731 #include <sys/socket.h>
10740 rm -f conftest.$ac_objext
10741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10742 (eval $ac_compile) 2>&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } &&
10746 { ac_try='test -s conftest.$ac_objext'
10747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10748 (eval $ac_try) 2>&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; }; then
10752 ba_cv_header_socklen_t=yes
10754 echo "$as_me: failed program was:" >&5
10755 sed 's/^/| /' conftest.$ac_ext >&5
10757 ba_cv_header_socklen_t=no
10759 rm -f conftest.$ac_objext conftest.$ac_ext
10761 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10762 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10763 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10764 #define HAVE_SOCKLEN_T 1
10768 echo "$as_me:$LINENO: checking for bigendian" >&5
10769 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10770 if test "${ba_cv_bigendian+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 if test "$cross_compiling" = yes; then
10776 cat >conftest.$ac_ext <<_ACEOF
10777 #line $LINENO "configure"
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h. */
10783 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10785 rm -f conftest$ac_exeext
10786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10787 (eval $ac_link) 2>&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792 (eval $ac_try) 2>&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; }; then
10796 ba_cv_bigendian=yes
10798 echo "$as_me: program exited with status $ac_status" >&5
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10802 ( exit $ac_status )
10805 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10808 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10809 echo "${ECHO_T}$ba_cv_bigendian" >&6
10810 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10811 #define HAVE_BIGENDIAN 1
10816 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10817 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10818 if test "${ac_cv_c_const+set}" = set; then
10819 echo $ECHO_N "(cached) $ECHO_C" >&6
10821 cat >conftest.$ac_ext <<_ACEOF
10822 #line $LINENO "configure"
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h. */
10832 /* FIXME: Include the comments suggested by Paul. */
10833 #ifndef __cplusplus
10834 /* Ultrix mips cc rejects this. */
10835 typedef int charset[2];
10837 /* SunOS 4.1.1 cc rejects this. */
10838 char const *const *ccp;
10840 /* NEC SVR4.0.2 mips cc rejects this. */
10841 struct point {int x, y;};
10842 static struct point const zero = {0,0};
10843 /* AIX XL C 1.02.0.0 rejects this.
10844 It does not let you subtract one const X* pointer from another in
10845 an arm of an if-expression whose if-part is not a constant
10847 const char *g = "string";
10848 ccp = &g + (g ? g-g : 0);
10849 /* HPUX 7.0 cc rejects these. */
10852 ccp = (char const *const *) p;
10853 { /* SCO 3.2v4 cc rejects this. */
10855 char const *s = 0 ? (char *) 0 : (char const *) 0;
10859 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10860 int x[] = {25, 17};
10861 const int *foo = &x[0];
10864 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10865 typedef const int *iptr;
10869 { /* AIX XL C 1.02.0.0 rejects this saying
10870 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10871 struct s { int j; const int *ap[3]; };
10872 struct s *b; b->j = 5;
10874 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10875 const int foo = 10;
10883 rm -f conftest.$ac_objext
10884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10885 (eval $ac_compile) 2>&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); } &&
10889 { ac_try='test -s conftest.$ac_objext'
10890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891 (eval $ac_try) 2>&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; }; then
10897 echo "$as_me: failed program was:" >&5
10898 sed 's/^/| /' conftest.$ac_ext >&5
10902 rm -f conftest.$ac_objext conftest.$ac_ext
10904 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10905 echo "${ECHO_T}$ac_cv_c_const" >&6
10906 if test $ac_cv_c_const = no; then
10908 cat >>confdefs.h <<\_ACEOF
10916 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10917 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10919 # The order of these tests is important.
10920 cat >conftest.$ac_ext <<_ACEOF
10921 #line $LINENO "configure"
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10927 #include <sys/statvfs.h>
10928 #include <sys/fstyp.h>
10930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10933 grep -v '^ *+' conftest.er1 >conftest.err
10935 cat conftest.err >&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } >/dev/null; then
10938 if test -s conftest.err; then
10939 ac_cpp_err=$ac_c_preproc_warn_flag
10946 if test -z "$ac_cpp_err"; then
10947 cat >>confdefs.h <<\_ACEOF
10948 #define FSTYPE_STATVFS 1
10952 echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.$ac_ext >&5
10957 rm -f conftest.err conftest.$ac_ext
10958 if test $fstype = no; then
10959 cat >conftest.$ac_ext <<_ACEOF
10960 #line $LINENO "configure"
10963 cat confdefs.h >>conftest.$ac_ext
10964 cat >>conftest.$ac_ext <<_ACEOF
10965 /* end confdefs.h. */
10966 #include <sys/statfs.h>
10967 #include <sys/fstyp.h>
10969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10972 grep -v '^ *+' conftest.er1 >conftest.err
10974 cat conftest.err >&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } >/dev/null; then
10977 if test -s conftest.err; then
10978 ac_cpp_err=$ac_c_preproc_warn_flag
10985 if test -z "$ac_cpp_err"; then
10986 cat >>confdefs.h <<\_ACEOF
10987 #define FSTYPE_USG_STATFS 1
10991 echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10996 rm -f conftest.err conftest.$ac_ext
10998 if test $fstype = no; then
10999 cat >conftest.$ac_ext <<_ACEOF
11000 #line $LINENO "configure"
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11006 #include <sys/statfs.h>
11007 #include <sys/vmount.h>
11009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11012 grep -v '^ *+' conftest.er1 >conftest.err
11014 cat conftest.err >&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); } >/dev/null; then
11017 if test -s conftest.err; then
11018 ac_cpp_err=$ac_c_preproc_warn_flag
11025 if test -z "$ac_cpp_err"; then
11026 cat >>confdefs.h <<\_ACEOF
11027 #define FSTYPE_AIX_STATFS 1
11031 echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11036 rm -f conftest.err conftest.$ac_ext
11038 if test $fstype = no; then
11039 cat >conftest.$ac_ext <<_ACEOF
11040 #line $LINENO "configure"
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11046 #include <mntent.h>
11048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11051 grep -v '^ *+' conftest.er1 >conftest.err
11053 cat conftest.err >&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } >/dev/null; then
11056 if test -s conftest.err; then
11057 ac_cpp_err=$ac_c_preproc_warn_flag
11064 if test -z "$ac_cpp_err"; then
11065 cat >>confdefs.h <<\_ACEOF
11066 #define FSTYPE_MNTENT 1
11070 echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11075 rm -f conftest.err conftest.$ac_ext
11077 if test $fstype = no; then
11078 cat >conftest.$ac_ext <<_ACEOF
11079 #line $LINENO "configure"
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11085 #include <sys/mount.h>
11088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11089 $EGREP "f_type;" >/dev/null 2>&1; then
11090 cat >>confdefs.h <<\_ACEOF
11091 #define FSTYPE_STATFS 1
11098 if test $fstype = no; then
11099 cat >conftest.$ac_ext <<_ACEOF
11100 #line $LINENO "configure"
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h. */
11106 #include <sys/mount.h>
11107 #include <sys/fs_types.h>
11109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11112 grep -v '^ *+' conftest.er1 >conftest.err
11114 cat conftest.err >&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); } >/dev/null; then
11117 if test -s conftest.err; then
11118 ac_cpp_err=$ac_c_preproc_warn_flag
11125 if test -z "$ac_cpp_err"; then
11126 cat >>confdefs.h <<\_ACEOF
11127 #define FSTYPE_GETMNT 1
11131 echo "$as_me: failed program was:" >&5
11132 sed 's/^/| /' conftest.$ac_ext >&5
11136 rm -f conftest.err conftest.$ac_ext
11138 echo "$as_me:$LINENO: result: $fstype" >&5
11139 echo "${ECHO_T}$fstype" >&6
11141 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11142 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11143 if test "${ac_cv_type_signal+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 cat >conftest.$ac_ext <<_ACEOF
11147 #line $LINENO "configure"
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11153 #include <sys/types.h>
11154 #include <signal.h>
11159 extern "C" void (*signal (int, void (*)(int)))(int);
11161 void (*signal ()) ();
11172 rm -f conftest.$ac_objext
11173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11174 (eval $ac_compile) 2>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } &&
11178 { ac_try='test -s conftest.$ac_objext'
11179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180 (eval $ac_try) 2>&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); }; }; then
11184 ac_cv_type_signal=void
11186 echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11189 ac_cv_type_signal=int
11191 rm -f conftest.$ac_objext conftest.$ac_ext
11193 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11194 echo "${ECHO_T}$ac_cv_type_signal" >&6
11196 cat >>confdefs.h <<_ACEOF
11197 #define RETSIGTYPE $ac_cv_type_signal
11202 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11203 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11204 if test "${bash_cv_signal_vintage+set}" = set; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 cat >conftest.$ac_ext <<_ACEOF
11209 #line $LINENO "configure"
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h. */
11215 #include <signal.h>
11221 struct sigaction sa;
11222 sigemptyset(&ss); sigsuspend(&ss);
11223 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11224 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11230 rm -f conftest.$ac_objext conftest$ac_exeext
11231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11232 (eval $ac_link) 2>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } &&
11236 { ac_try='test -s conftest$ac_exeext'
11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238 (eval $ac_try) 2>&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; }; then
11242 bash_cv_signal_vintage=posix
11244 echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11248 cat >conftest.$ac_ext <<_ACEOF
11249 #line $LINENO "configure"
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 #include <signal.h>
11260 int mask = sigmask(SIGINT);
11261 sigsetmask(mask); sigblock(mask); sigpause(mask);
11267 rm -f conftest.$ac_objext conftest$ac_exeext
11268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11269 (eval $ac_link) 2>&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } &&
11273 { ac_try='test -s conftest$ac_exeext'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; }; then
11279 bash_cv_signal_vintage=4.2bsd
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11285 cat >conftest.$ac_ext <<_ACEOF
11286 #line $LINENO "configure"
11289 cat confdefs.h >>conftest.$ac_ext
11290 cat >>conftest.$ac_ext <<_ACEOF
11291 /* end confdefs.h. */
11293 #include <signal.h>
11294 RETSIGTYPE foo() { }
11299 int mask = sigmask(SIGINT);
11300 sigset(SIGINT, foo); sigrelse(SIGINT);
11301 sighold(SIGINT); sigpause(SIGINT);
11307 rm -f conftest.$ac_objext conftest$ac_exeext
11308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11309 (eval $ac_link) 2>&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } &&
11313 { ac_try='test -s conftest$ac_exeext'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 bash_cv_signal_vintage=svr3
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11324 bash_cv_signal_vintage=v7
11327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11337 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11338 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11339 if test "$bash_cv_signal_vintage" = posix; then
11340 cat >>confdefs.h <<\_ACEOF
11341 #define HAVE_POSIX_SIGNALS 1
11344 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11345 cat >>confdefs.h <<\_ACEOF
11346 #define HAVE_BSD_SIGNALS 1
11349 elif test "$bash_cv_signal_vintage" = svr3; then
11350 cat >>confdefs.h <<\_ACEOF
11351 #define HAVE_USG_SIGHOLD 1
11356 echo "$as_me:$LINENO: checking for mode_t" >&5
11357 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11358 if test "${ac_cv_type_mode_t+set}" = set; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
11361 cat >conftest.$ac_ext <<_ACEOF
11362 #line $LINENO "configure"
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h. */
11368 $ac_includes_default
11374 if (sizeof (mode_t))
11380 rm -f conftest.$ac_objext
11381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11382 (eval $ac_compile) 2>&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } &&
11386 { ac_try='test -s conftest.$ac_objext'
11387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388 (eval $ac_try) 2>&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; }; then
11392 ac_cv_type_mode_t=yes
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11397 ac_cv_type_mode_t=no
11399 rm -f conftest.$ac_objext conftest.$ac_ext
11401 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11402 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11403 if test $ac_cv_type_mode_t = yes; then
11407 cat >>confdefs.h <<_ACEOF
11413 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11414 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11415 if test "${ac_cv_type_uid_t+set}" = set; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 cat >conftest.$ac_ext <<_ACEOF
11419 #line $LINENO "configure"
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 #include <sys/types.h>
11428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11429 $EGREP "uid_t" >/dev/null 2>&1; then
11430 ac_cv_type_uid_t=yes
11432 ac_cv_type_uid_t=no
11437 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11438 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11439 if test $ac_cv_type_uid_t = no; then
11441 cat >>confdefs.h <<\_ACEOF
11446 cat >>confdefs.h <<\_ACEOF
11452 echo "$as_me:$LINENO: checking for size_t" >&5
11453 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11454 if test "${ac_cv_type_size_t+set}" = set; then
11455 echo $ECHO_N "(cached) $ECHO_C" >&6
11457 cat >conftest.$ac_ext <<_ACEOF
11458 #line $LINENO "configure"
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h. */
11464 $ac_includes_default
11470 if (sizeof (size_t))
11476 rm -f conftest.$ac_objext
11477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11478 (eval $ac_compile) 2>&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); } &&
11482 { ac_try='test -s conftest.$ac_objext'
11483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; }; then
11488 ac_cv_type_size_t=yes
11490 echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11493 ac_cv_type_size_t=no
11495 rm -f conftest.$ac_objext conftest.$ac_ext
11497 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11498 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11499 if test $ac_cv_type_size_t = yes; then
11503 cat >>confdefs.h <<_ACEOF
11504 #define size_t unsigned
11509 echo "$as_me:$LINENO: checking for pid_t" >&5
11510 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11511 if test "${ac_cv_type_pid_t+set}" = set; then
11512 echo $ECHO_N "(cached) $ECHO_C" >&6
11514 cat >conftest.$ac_ext <<_ACEOF
11515 #line $LINENO "configure"
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11521 $ac_includes_default
11527 if (sizeof (pid_t))
11533 rm -f conftest.$ac_objext
11534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11535 (eval $ac_compile) 2>&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
11539 { ac_try='test -s conftest.$ac_objext'
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; }; then
11545 ac_cv_type_pid_t=yes
11547 echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11550 ac_cv_type_pid_t=no
11552 rm -f conftest.$ac_objext conftest.$ac_ext
11554 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11555 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11556 if test $ac_cv_type_pid_t = yes; then
11560 cat >>confdefs.h <<_ACEOF
11566 echo "$as_me:$LINENO: checking for off_t" >&5
11567 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11568 if test "${ac_cv_type_off_t+set}" = set; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
11571 cat >conftest.$ac_ext <<_ACEOF
11572 #line $LINENO "configure"
11575 cat confdefs.h >>conftest.$ac_ext
11576 cat >>conftest.$ac_ext <<_ACEOF
11577 /* end confdefs.h. */
11578 $ac_includes_default
11584 if (sizeof (off_t))
11590 rm -f conftest.$ac_objext
11591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11592 (eval $ac_compile) 2>&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } &&
11596 { ac_try='test -s conftest.$ac_objext'
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; }; then
11602 ac_cv_type_off_t=yes
11604 echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11607 ac_cv_type_off_t=no
11609 rm -f conftest.$ac_objext conftest.$ac_ext
11611 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11612 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11613 if test $ac_cv_type_off_t = yes; then
11617 cat >>confdefs.h <<_ACEOF
11623 echo "$as_me:$LINENO: checking for ino_t" >&5
11624 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11625 if test "${ac_cv_type_ino_t+set}" = set; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11628 cat >conftest.$ac_ext <<_ACEOF
11629 #line $LINENO "configure"
11632 cat confdefs.h >>conftest.$ac_ext
11633 cat >>conftest.$ac_ext <<_ACEOF
11634 /* end confdefs.h. */
11635 $ac_includes_default
11641 if (sizeof (ino_t))
11647 rm -f conftest.$ac_objext
11648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11649 (eval $ac_compile) 2>&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); } &&
11653 { ac_try='test -s conftest.$ac_objext'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; }; then
11659 ac_cv_type_ino_t=yes
11661 echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11664 ac_cv_type_ino_t=no
11666 rm -f conftest.$ac_objext conftest.$ac_ext
11668 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11669 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11670 if test $ac_cv_type_ino_t = yes; then
11674 cat >>confdefs.h <<_ACEOF
11675 #define ino_t unsigned long
11680 echo "$as_me:$LINENO: checking for dev_t" >&5
11681 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11682 if test "${ac_cv_type_dev_t+set}" = set; then
11683 echo $ECHO_N "(cached) $ECHO_C" >&6
11685 cat >conftest.$ac_ext <<_ACEOF
11686 #line $LINENO "configure"
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 $ac_includes_default
11698 if (sizeof (dev_t))
11704 rm -f conftest.$ac_objext
11705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11706 (eval $ac_compile) 2>&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } &&
11710 { ac_try='test -s conftest.$ac_objext'
11711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; }; then
11716 ac_cv_type_dev_t=yes
11718 echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11721 ac_cv_type_dev_t=no
11723 rm -f conftest.$ac_objext conftest.$ac_ext
11725 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11726 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11727 if test $ac_cv_type_dev_t = yes; then
11731 cat >>confdefs.h <<_ACEOF
11732 #define dev_t unsigned long
11737 echo "$as_me:$LINENO: checking for daddr_t" >&5
11738 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11739 if test "${ac_cv_type_daddr_t+set}" = set; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11742 cat >conftest.$ac_ext <<_ACEOF
11743 #line $LINENO "configure"
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11749 $ac_includes_default
11755 if (sizeof (daddr_t))
11761 rm -f conftest.$ac_objext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11763 (eval $ac_compile) 2>&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); } &&
11767 { ac_try='test -s conftest.$ac_objext'
11768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769 (eval $ac_try) 2>&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; }; then
11773 ac_cv_type_daddr_t=yes
11775 echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11778 ac_cv_type_daddr_t=no
11780 rm -f conftest.$ac_objext conftest.$ac_ext
11782 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11783 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11784 if test $ac_cv_type_daddr_t = yes; then
11788 cat >>confdefs.h <<_ACEOF
11789 #define daddr_t long
11794 echo "$as_me:$LINENO: checking for major_t" >&5
11795 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11796 if test "${ac_cv_type_major_t+set}" = set; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11799 cat >conftest.$ac_ext <<_ACEOF
11800 #line $LINENO "configure"
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806 $ac_includes_default
11812 if (sizeof (major_t))
11818 rm -f conftest.$ac_objext
11819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11820 (eval $ac_compile) 2>&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } &&
11824 { ac_try='test -s conftest.$ac_objext'
11825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826 (eval $ac_try) 2>&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; }; then
11830 ac_cv_type_major_t=yes
11832 echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.$ac_ext >&5
11835 ac_cv_type_major_t=no
11837 rm -f conftest.$ac_objext conftest.$ac_ext
11839 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11840 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11841 if test $ac_cv_type_major_t = yes; then
11845 cat >>confdefs.h <<_ACEOF
11846 #define major_t int
11851 echo "$as_me:$LINENO: checking for minor_t" >&5
11852 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11853 if test "${ac_cv_type_minor_t+set}" = set; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11856 cat >conftest.$ac_ext <<_ACEOF
11857 #line $LINENO "configure"
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863 $ac_includes_default
11869 if (sizeof (minor_t))
11875 rm -f conftest.$ac_objext
11876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11877 (eval $ac_compile) 2>&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -s conftest.$ac_objext'
11882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883 (eval $ac_try) 2>&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; }; then
11887 ac_cv_type_minor_t=yes
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11892 ac_cv_type_minor_t=no
11894 rm -f conftest.$ac_objext conftest.$ac_ext
11896 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11897 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11898 if test $ac_cv_type_minor_t = yes; then
11902 cat >>confdefs.h <<_ACEOF
11903 #define minor_t int
11908 echo "$as_me:$LINENO: checking for ssize_t" >&5
11909 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11910 if test "${ac_cv_type_ssize_t+set}" = set; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 cat >conftest.$ac_ext <<_ACEOF
11914 #line $LINENO "configure"
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h. */
11920 $ac_includes_default
11926 if (sizeof (ssize_t))
11932 rm -f conftest.$ac_objext
11933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11934 (eval $ac_compile) 2>&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } &&
11938 { ac_try='test -s conftest.$ac_objext'
11939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940 (eval $ac_try) 2>&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; }; then
11944 ac_cv_type_ssize_t=yes
11946 echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11949 ac_cv_type_ssize_t=no
11951 rm -f conftest.$ac_objext conftest.$ac_ext
11953 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11954 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11955 if test $ac_cv_type_ssize_t = yes; then
11959 cat >>confdefs.h <<_ACEOF
11960 #define ssize_t int
11965 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11966 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11967 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11970 cat >conftest.$ac_ext <<_ACEOF
11971 #line $LINENO "configure"
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h. */
11977 $ac_includes_default
11981 static struct stat ac_aggr;
11982 if (ac_aggr.st_blocks)
11988 rm -f conftest.$ac_objext
11989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11990 (eval $ac_compile) 2>&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } &&
11994 { ac_try='test -s conftest.$ac_objext'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; }; then
12000 ac_cv_member_struct_stat_st_blocks=yes
12002 echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12005 cat >conftest.$ac_ext <<_ACEOF
12006 #line $LINENO "configure"
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h. */
12012 $ac_includes_default
12016 static struct stat ac_aggr;
12017 if (sizeof ac_aggr.st_blocks)
12023 rm -f conftest.$ac_objext
12024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12025 (eval $ac_compile) 2>&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } &&
12029 { ac_try='test -s conftest.$ac_objext'
12030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031 (eval $ac_try) 2>&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; }; then
12035 ac_cv_member_struct_stat_st_blocks=yes
12037 echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12040 ac_cv_member_struct_stat_st_blocks=no
12042 rm -f conftest.$ac_objext conftest.$ac_ext
12044 rm -f conftest.$ac_objext conftest.$ac_ext
12046 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12047 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12048 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12050 cat >>confdefs.h <<_ACEOF
12051 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12055 cat >>confdefs.h <<\_ACEOF
12056 #define HAVE_ST_BLOCKS 1
12060 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12065 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12066 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12067 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12068 echo $ECHO_N "(cached) $ECHO_C" >&6
12070 cat >conftest.$ac_ext <<_ACEOF
12071 #line $LINENO "configure"
12074 cat confdefs.h >>conftest.$ac_ext
12075 cat >>conftest.$ac_ext <<_ACEOF
12076 /* end confdefs.h. */
12077 $ac_includes_default
12081 static struct stat ac_aggr;
12082 if (ac_aggr.st_rdev)
12088 rm -f conftest.$ac_objext
12089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12090 (eval $ac_compile) 2>&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } &&
12094 { ac_try='test -s conftest.$ac_objext'
12095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12096 (eval $ac_try) 2>&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; }; then
12100 ac_cv_member_struct_stat_st_rdev=yes
12102 echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12105 cat >conftest.$ac_ext <<_ACEOF
12106 #line $LINENO "configure"
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h. */
12112 $ac_includes_default
12116 static struct stat ac_aggr;
12117 if (sizeof ac_aggr.st_rdev)
12123 rm -f conftest.$ac_objext
12124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12125 (eval $ac_compile) 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } &&
12129 { ac_try='test -s conftest.$ac_objext'
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; }; then
12135 ac_cv_member_struct_stat_st_rdev=yes
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12140 ac_cv_member_struct_stat_st_rdev=no
12142 rm -f conftest.$ac_objext conftest.$ac_ext
12144 rm -f conftest.$ac_objext conftest.$ac_ext
12146 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12147 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12148 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12150 cat >>confdefs.h <<_ACEOF
12151 #define HAVE_STRUCT_STAT_ST_RDEV 1
12155 cat >>confdefs.h <<\_ACEOF
12156 #define HAVE_ST_RDEV 1
12162 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12163 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12164 if test "${ac_cv_struct_tm+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 cat >conftest.$ac_ext <<_ACEOF
12168 #line $LINENO "configure"
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 #include <sys/types.h>
12180 struct tm *tp; tp->tm_sec;
12185 rm -f conftest.$ac_objext
12186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12187 (eval $ac_compile) 2>&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); } &&
12191 { ac_try='test -s conftest.$ac_objext'
12192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193 (eval $ac_try) 2>&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; }; then
12197 ac_cv_struct_tm=time.h
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 ac_cv_struct_tm=sys/time.h
12204 rm -f conftest.$ac_objext conftest.$ac_ext
12206 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12207 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12208 if test $ac_cv_struct_tm = sys/time.h; then
12210 cat >>confdefs.h <<\_ACEOF
12211 #define TM_IN_SYS_TIME 1
12216 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12217 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12218 if test "${ac_cv_c_const+set}" = set; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12221 cat >conftest.$ac_ext <<_ACEOF
12222 #line $LINENO "configure"
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12232 /* FIXME: Include the comments suggested by Paul. */
12233 #ifndef __cplusplus
12234 /* Ultrix mips cc rejects this. */
12235 typedef int charset[2];
12237 /* SunOS 4.1.1 cc rejects this. */
12238 char const *const *ccp;
12240 /* NEC SVR4.0.2 mips cc rejects this. */
12241 struct point {int x, y;};
12242 static struct point const zero = {0,0};
12243 /* AIX XL C 1.02.0.0 rejects this.
12244 It does not let you subtract one const X* pointer from another in
12245 an arm of an if-expression whose if-part is not a constant
12247 const char *g = "string";
12248 ccp = &g + (g ? g-g : 0);
12249 /* HPUX 7.0 cc rejects these. */
12252 ccp = (char const *const *) p;
12253 { /* SCO 3.2v4 cc rejects this. */
12255 char const *s = 0 ? (char *) 0 : (char const *) 0;
12259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12260 int x[] = {25, 17};
12261 const int *foo = &x[0];
12264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12265 typedef const int *iptr;
12269 { /* AIX XL C 1.02.0.0 rejects this saying
12270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12271 struct s { int j; const int *ap[3]; };
12272 struct s *b; b->j = 5;
12274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12275 const int foo = 10;
12283 rm -f conftest.$ac_objext
12284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12285 (eval $ac_compile) 2>&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } &&
12289 { ac_try='test -s conftest.$ac_objext'
12290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291 (eval $ac_try) 2>&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }; }; then
12297 echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12302 rm -f conftest.$ac_objext conftest.$ac_ext
12304 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12305 echo "${ECHO_T}$ac_cv_c_const" >&6
12306 if test $ac_cv_c_const = no; then
12308 cat >>confdefs.h <<\_ACEOF
12316 echo "$as_me:$LINENO: checking for char" >&5
12317 echo $ECHO_N "checking for char... $ECHO_C" >&6
12318 if test "${ac_cv_type_char+set}" = set; then
12319 echo $ECHO_N "(cached) $ECHO_C" >&6
12321 cat >conftest.$ac_ext <<_ACEOF
12322 #line $LINENO "configure"
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12328 $ac_includes_default
12340 rm -f conftest.$ac_objext
12341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12342 (eval $ac_compile) 2>&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } &&
12346 { ac_try='test -s conftest.$ac_objext'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; }; then
12352 ac_cv_type_char=yes
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12359 rm -f conftest.$ac_objext conftest.$ac_ext
12361 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12362 echo "${ECHO_T}$ac_cv_type_char" >&6
12364 echo "$as_me:$LINENO: checking size of char" >&5
12365 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12366 if test "${ac_cv_sizeof_char+set}" = set; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12369 if test "$ac_cv_type_char" = yes; then
12370 # The cast to unsigned long works around a bug in the HP C Compiler
12371 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12372 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12373 # This bug is HP SR number 8606223364.
12374 if test "$cross_compiling" = yes; then
12375 # Depending upon the size, compute the lo and hi bounds.
12376 cat >conftest.$ac_ext <<_ACEOF
12377 #line $LINENO "configure"
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12383 $ac_includes_default
12387 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12394 rm -f conftest.$ac_objext
12395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12396 (eval $ac_compile) 2>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } &&
12400 { ac_try='test -s conftest.$ac_objext'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12408 cat >conftest.$ac_ext <<_ACEOF
12409 #line $LINENO "configure"
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12415 $ac_includes_default
12419 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12426 rm -f conftest.$ac_objext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12428 (eval $ac_compile) 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } &&
12432 { ac_try='test -s conftest.$ac_objext'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 ac_hi=$ac_mid; break
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 ac_lo=`expr $ac_mid + 1`
12444 if test $ac_lo -le $ac_mid; then
12448 ac_mid=`expr 2 '*' $ac_mid + 1`
12450 rm -f conftest.$ac_objext conftest.$ac_ext
12453 echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12456 cat >conftest.$ac_ext <<_ACEOF
12457 #line $LINENO "configure"
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12463 $ac_includes_default
12467 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12474 rm -f conftest.$ac_objext
12475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476 (eval $ac_compile) 2>&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } &&
12480 { ac_try='test -s conftest.$ac_objext'
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; }; then
12488 cat >conftest.$ac_ext <<_ACEOF
12489 #line $LINENO "configure"
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12495 $ac_includes_default
12499 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12506 rm -f conftest.$ac_objext
12507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12508 (eval $ac_compile) 2>&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); } &&
12512 { ac_try='test -s conftest.$ac_objext'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; }; then
12518 ac_lo=$ac_mid; break
12520 echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12523 ac_hi=`expr '(' $ac_mid ')' - 1`
12524 if test $ac_mid -le $ac_hi; then
12528 ac_mid=`expr 2 '*' $ac_mid`
12530 rm -f conftest.$ac_objext conftest.$ac_ext
12533 echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12538 rm -f conftest.$ac_objext conftest.$ac_ext
12540 rm -f conftest.$ac_objext conftest.$ac_ext
12541 # Binary search between lo and hi bounds.
12542 while test "x$ac_lo" != "x$ac_hi"; do
12543 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12544 cat >conftest.$ac_ext <<_ACEOF
12545 #line $LINENO "configure"
12548 cat confdefs.h >>conftest.$ac_ext
12549 cat >>conftest.$ac_ext <<_ACEOF
12550 /* end confdefs.h. */
12551 $ac_includes_default
12555 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12562 rm -f conftest.$ac_objext
12563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12564 (eval $ac_compile) 2>&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } &&
12568 { ac_try='test -s conftest.$ac_objext'
12569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570 (eval $ac_try) 2>&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; }; then
12576 echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12579 ac_lo=`expr '(' $ac_mid ')' + 1`
12581 rm -f conftest.$ac_objext conftest.$ac_ext
12584 ?*) ac_cv_sizeof_char=$ac_lo;;
12585 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12586 See \`config.log' for more details." >&5
12587 echo "$as_me: error: cannot compute sizeof (char), 77
12588 See \`config.log' for more details." >&2;}
12589 { (exit 1); exit 1; }; } ;;
12592 if test "$cross_compiling" = yes; then
12593 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12594 See \`config.log' for more details." >&5
12595 echo "$as_me: error: cannot run test program while cross compiling
12596 See \`config.log' for more details." >&2;}
12597 { (exit 1); exit 1; }; }
12599 cat >conftest.$ac_ext <<_ACEOF
12600 #line $LINENO "configure"
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h. */
12606 $ac_includes_default
12607 long longval () { return (long) (sizeof (char)); }
12608 unsigned long ulongval () { return (long) (sizeof (char)); }
12610 #include <stdlib.h>
12615 FILE *f = fopen ("conftest.val", "w");
12618 if (((long) (sizeof (char))) < 0)
12620 long i = longval ();
12621 if (i != ((long) (sizeof (char))))
12623 fprintf (f, "%ld\n", i);
12627 unsigned long i = ulongval ();
12628 if (i != ((long) (sizeof (char))))
12630 fprintf (f, "%lu\n", i);
12632 exit (ferror (f) || fclose (f) != 0);
12638 rm -f conftest$ac_exeext
12639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12640 (eval $ac_link) 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12645 (eval $ac_try) 2>&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; }; then
12649 ac_cv_sizeof_char=`cat conftest.val`
12651 echo "$as_me: program exited with status $ac_status" >&5
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12655 ( exit $ac_status )
12656 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12657 See \`config.log' for more details." >&5
12658 echo "$as_me: error: cannot compute sizeof (char), 77
12659 See \`config.log' for more details." >&2;}
12660 { (exit 1); exit 1; }; }
12662 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12667 ac_cv_sizeof_char=0
12670 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12671 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12672 cat >>confdefs.h <<_ACEOF
12673 #define SIZEOF_CHAR $ac_cv_sizeof_char
12677 echo "$as_me:$LINENO: checking for short int" >&5
12678 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12679 if test "${ac_cv_type_short_int+set}" = set; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 cat >conftest.$ac_ext <<_ACEOF
12683 #line $LINENO "configure"
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h. */
12689 $ac_includes_default
12693 if ((short int *) 0)
12695 if (sizeof (short int))
12701 rm -f conftest.$ac_objext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12703 (eval $ac_compile) 2>&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } &&
12707 { ac_try='test -s conftest.$ac_objext'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 ac_cv_type_short_int=yes
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12718 ac_cv_type_short_int=no
12720 rm -f conftest.$ac_objext conftest.$ac_ext
12722 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12723 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12725 echo "$as_me:$LINENO: checking size of short int" >&5
12726 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12727 if test "${ac_cv_sizeof_short_int+set}" = set; then
12728 echo $ECHO_N "(cached) $ECHO_C" >&6
12730 if test "$ac_cv_type_short_int" = yes; then
12731 # The cast to unsigned long works around a bug in the HP C Compiler
12732 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12733 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12734 # This bug is HP SR number 8606223364.
12735 if test "$cross_compiling" = yes; then
12736 # Depending upon the size, compute the lo and hi bounds.
12737 cat >conftest.$ac_ext <<_ACEOF
12738 #line $LINENO "configure"
12741 cat confdefs.h >>conftest.$ac_ext
12742 cat >>conftest.$ac_ext <<_ACEOF
12743 /* end confdefs.h. */
12744 $ac_includes_default
12748 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12755 rm -f conftest.$ac_objext
12756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12757 (eval $ac_compile) 2>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } &&
12761 { ac_try='test -s conftest.$ac_objext'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12769 cat >conftest.$ac_ext <<_ACEOF
12770 #line $LINENO "configure"
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12776 $ac_includes_default
12780 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12787 rm -f conftest.$ac_objext
12788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12789 (eval $ac_compile) 2>&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } &&
12793 { ac_try='test -s conftest.$ac_objext'
12794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795 (eval $ac_try) 2>&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; }; then
12799 ac_hi=$ac_mid; break
12801 echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12804 ac_lo=`expr $ac_mid + 1`
12805 if test $ac_lo -le $ac_mid; then
12809 ac_mid=`expr 2 '*' $ac_mid + 1`
12811 rm -f conftest.$ac_objext conftest.$ac_ext
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12817 cat >conftest.$ac_ext <<_ACEOF
12818 #line $LINENO "configure"
12821 cat confdefs.h >>conftest.$ac_ext
12822 cat >>conftest.$ac_ext <<_ACEOF
12823 /* end confdefs.h. */
12824 $ac_includes_default
12828 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12835 rm -f conftest.$ac_objext
12836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12837 (eval $ac_compile) 2>&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try='test -s conftest.$ac_objext'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; }; then
12849 cat >conftest.$ac_ext <<_ACEOF
12850 #line $LINENO "configure"
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12856 $ac_includes_default
12860 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12867 rm -f conftest.$ac_objext
12868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12869 (eval $ac_compile) 2>&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -s conftest.$ac_objext'
12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; }; then
12879 ac_lo=$ac_mid; break
12881 echo "$as_me: failed program was:" >&5
12882 sed 's/^/| /' conftest.$ac_ext >&5
12884 ac_hi=`expr '(' $ac_mid ')' - 1`
12885 if test $ac_mid -le $ac_hi; then
12889 ac_mid=`expr 2 '*' $ac_mid`
12891 rm -f conftest.$ac_objext conftest.$ac_ext
12894 echo "$as_me: failed program was:" >&5
12895 sed 's/^/| /' conftest.$ac_ext >&5
12899 rm -f conftest.$ac_objext conftest.$ac_ext
12901 rm -f conftest.$ac_objext conftest.$ac_ext
12902 # Binary search between lo and hi bounds.
12903 while test "x$ac_lo" != "x$ac_hi"; do
12904 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12905 cat >conftest.$ac_ext <<_ACEOF
12906 #line $LINENO "configure"
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h. */
12912 $ac_includes_default
12916 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12923 rm -f conftest.$ac_objext
12924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12925 (eval $ac_compile) 2>&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } &&
12929 { ac_try='test -s conftest.$ac_objext'
12930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931 (eval $ac_try) 2>&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; }; then
12937 echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12940 ac_lo=`expr '(' $ac_mid ')' + 1`
12942 rm -f conftest.$ac_objext conftest.$ac_ext
12945 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12946 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12947 See \`config.log' for more details." >&5
12948 echo "$as_me: error: cannot compute sizeof (short int), 77
12949 See \`config.log' for more details." >&2;}
12950 { (exit 1); exit 1; }; } ;;
12953 if test "$cross_compiling" = yes; then
12954 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12955 See \`config.log' for more details." >&5
12956 echo "$as_me: error: cannot run test program while cross compiling
12957 See \`config.log' for more details." >&2;}
12958 { (exit 1); exit 1; }; }
12960 cat >conftest.$ac_ext <<_ACEOF
12961 #line $LINENO "configure"
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h. */
12967 $ac_includes_default
12968 long longval () { return (long) (sizeof (short int)); }
12969 unsigned long ulongval () { return (long) (sizeof (short int)); }
12971 #include <stdlib.h>
12976 FILE *f = fopen ("conftest.val", "w");
12979 if (((long) (sizeof (short int))) < 0)
12981 long i = longval ();
12982 if (i != ((long) (sizeof (short int))))
12984 fprintf (f, "%ld\n", i);
12988 unsigned long i = ulongval ();
12989 if (i != ((long) (sizeof (short int))))
12991 fprintf (f, "%lu\n", i);
12993 exit (ferror (f) || fclose (f) != 0);
12999 rm -f conftest$ac_exeext
13000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13001 (eval $ac_link) 2>&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; }; then
13010 ac_cv_sizeof_short_int=`cat conftest.val`
13012 echo "$as_me: program exited with status $ac_status" >&5
13013 echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13016 ( exit $ac_status )
13017 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13018 See \`config.log' for more details." >&5
13019 echo "$as_me: error: cannot compute sizeof (short int), 77
13020 See \`config.log' for more details." >&2;}
13021 { (exit 1); exit 1; }; }
13023 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13028 ac_cv_sizeof_short_int=0
13031 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13032 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13033 cat >>confdefs.h <<_ACEOF
13034 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13038 echo "$as_me:$LINENO: checking for int" >&5
13039 echo $ECHO_N "checking for int... $ECHO_C" >&6
13040 if test "${ac_cv_type_int+set}" = set; then
13041 echo $ECHO_N "(cached) $ECHO_C" >&6
13043 cat >conftest.$ac_ext <<_ACEOF
13044 #line $LINENO "configure"
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h. */
13050 $ac_includes_default
13062 rm -f conftest.$ac_objext
13063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13064 (eval $ac_compile) 2>&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } &&
13068 { ac_try='test -s conftest.$ac_objext'
13069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070 (eval $ac_try) 2>&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; }; then
13076 echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13081 rm -f conftest.$ac_objext conftest.$ac_ext
13083 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13084 echo "${ECHO_T}$ac_cv_type_int" >&6
13086 echo "$as_me:$LINENO: checking size of int" >&5
13087 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13088 if test "${ac_cv_sizeof_int+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13091 if test "$ac_cv_type_int" = yes; then
13092 # The cast to unsigned long works around a bug in the HP C Compiler
13093 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13094 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13095 # This bug is HP SR number 8606223364.
13096 if test "$cross_compiling" = yes; then
13097 # Depending upon the size, compute the lo and hi bounds.
13098 cat >conftest.$ac_ext <<_ACEOF
13099 #line $LINENO "configure"
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h. */
13105 $ac_includes_default
13109 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13116 rm -f conftest.$ac_objext
13117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13118 (eval $ac_compile) 2>&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } &&
13122 { ac_try='test -s conftest.$ac_objext'
13123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124 (eval $ac_try) 2>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; }; then
13130 cat >conftest.$ac_ext <<_ACEOF
13131 #line $LINENO "configure"
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h. */
13137 $ac_includes_default
13141 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13148 rm -f conftest.$ac_objext
13149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13150 (eval $ac_compile) 2>&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } &&
13154 { ac_try='test -s conftest.$ac_objext'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13160 ac_hi=$ac_mid; break
13162 echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13165 ac_lo=`expr $ac_mid + 1`
13166 if test $ac_lo -le $ac_mid; then
13170 ac_mid=`expr 2 '*' $ac_mid + 1`
13172 rm -f conftest.$ac_objext conftest.$ac_ext
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13178 cat >conftest.$ac_ext <<_ACEOF
13179 #line $LINENO "configure"
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13185 $ac_includes_default
13189 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13196 rm -f conftest.$ac_objext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13198 (eval $ac_compile) 2>&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } &&
13202 { ac_try='test -s conftest.$ac_objext'
13203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
13210 cat >conftest.$ac_ext <<_ACEOF
13211 #line $LINENO "configure"
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h. */
13217 $ac_includes_default
13221 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13228 rm -f conftest.$ac_objext
13229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13230 (eval $ac_compile) 2>&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } &&
13234 { ac_try='test -s conftest.$ac_objext'
13235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13236 (eval $ac_try) 2>&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); }; }; then
13240 ac_lo=$ac_mid; break
13242 echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13245 ac_hi=`expr '(' $ac_mid ')' - 1`
13246 if test $ac_mid -le $ac_hi; then
13250 ac_mid=`expr 2 '*' $ac_mid`
13252 rm -f conftest.$ac_objext conftest.$ac_ext
13255 echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13260 rm -f conftest.$ac_objext conftest.$ac_ext
13262 rm -f conftest.$ac_objext conftest.$ac_ext
13263 # Binary search between lo and hi bounds.
13264 while test "x$ac_lo" != "x$ac_hi"; do
13265 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13266 cat >conftest.$ac_ext <<_ACEOF
13267 #line $LINENO "configure"
13270 cat confdefs.h >>conftest.$ac_ext
13271 cat >>conftest.$ac_ext <<_ACEOF
13272 /* end confdefs.h. */
13273 $ac_includes_default
13277 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13284 rm -f conftest.$ac_objext
13285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13286 (eval $ac_compile) 2>&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); } &&
13290 { ac_try='test -s conftest.$ac_objext'
13291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292 (eval $ac_try) 2>&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; }; then
13298 echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.$ac_ext >&5
13301 ac_lo=`expr '(' $ac_mid ')' + 1`
13303 rm -f conftest.$ac_objext conftest.$ac_ext
13306 ?*) ac_cv_sizeof_int=$ac_lo;;
13307 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13308 See \`config.log' for more details." >&5
13309 echo "$as_me: error: cannot compute sizeof (int), 77
13310 See \`config.log' for more details." >&2;}
13311 { (exit 1); exit 1; }; } ;;
13314 if test "$cross_compiling" = yes; then
13315 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13316 See \`config.log' for more details." >&5
13317 echo "$as_me: error: cannot run test program while cross compiling
13318 See \`config.log' for more details." >&2;}
13319 { (exit 1); exit 1; }; }
13321 cat >conftest.$ac_ext <<_ACEOF
13322 #line $LINENO "configure"
13325 cat confdefs.h >>conftest.$ac_ext
13326 cat >>conftest.$ac_ext <<_ACEOF
13327 /* end confdefs.h. */
13328 $ac_includes_default
13329 long longval () { return (long) (sizeof (int)); }
13330 unsigned long ulongval () { return (long) (sizeof (int)); }
13332 #include <stdlib.h>
13337 FILE *f = fopen ("conftest.val", "w");
13340 if (((long) (sizeof (int))) < 0)
13342 long i = longval ();
13343 if (i != ((long) (sizeof (int))))
13345 fprintf (f, "%ld\n", i);
13349 unsigned long i = ulongval ();
13350 if (i != ((long) (sizeof (int))))
13352 fprintf (f, "%lu\n", i);
13354 exit (ferror (f) || fclose (f) != 0);
13360 rm -f conftest$ac_exeext
13361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13362 (eval $ac_link) 2>&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13371 ac_cv_sizeof_int=`cat conftest.val`
13373 echo "$as_me: program exited with status $ac_status" >&5
13374 echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13377 ( exit $ac_status )
13378 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13379 See \`config.log' for more details." >&5
13380 echo "$as_me: error: cannot compute sizeof (int), 77
13381 See \`config.log' for more details." >&2;}
13382 { (exit 1); exit 1; }; }
13384 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13392 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13393 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13394 cat >>confdefs.h <<_ACEOF
13395 #define SIZEOF_INT $ac_cv_sizeof_int
13399 echo "$as_me:$LINENO: checking for long int" >&5
13400 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13401 if test "${ac_cv_type_long_int+set}" = set; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 cat >conftest.$ac_ext <<_ACEOF
13405 #line $LINENO "configure"
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13411 $ac_includes_default
13415 if ((long int *) 0)
13417 if (sizeof (long int))
13423 rm -f conftest.$ac_objext
13424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13425 (eval $ac_compile) 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } &&
13429 { ac_try='test -s conftest.$ac_objext'
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435 ac_cv_type_long_int=yes
13437 echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13440 ac_cv_type_long_int=no
13442 rm -f conftest.$ac_objext conftest.$ac_ext
13444 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13445 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13447 echo "$as_me:$LINENO: checking size of long int" >&5
13448 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13449 if test "${ac_cv_sizeof_long_int+set}" = set; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13452 if test "$ac_cv_type_long_int" = yes; then
13453 # The cast to unsigned long works around a bug in the HP C Compiler
13454 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13455 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13456 # This bug is HP SR number 8606223364.
13457 if test "$cross_compiling" = yes; then
13458 # Depending upon the size, compute the lo and hi bounds.
13459 cat >conftest.$ac_ext <<_ACEOF
13460 #line $LINENO "configure"
13463 cat confdefs.h >>conftest.$ac_ext
13464 cat >>conftest.$ac_ext <<_ACEOF
13465 /* end confdefs.h. */
13466 $ac_includes_default
13470 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13477 rm -f conftest.$ac_objext
13478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13479 (eval $ac_compile) 2>&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -s conftest.$ac_objext'
13484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485 (eval $ac_try) 2>&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; }; then
13491 cat >conftest.$ac_ext <<_ACEOF
13492 #line $LINENO "configure"
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13498 $ac_includes_default
13502 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13509 rm -f conftest.$ac_objext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13511 (eval $ac_compile) 2>&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } &&
13515 { ac_try='test -s conftest.$ac_objext'
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; }; then
13521 ac_hi=$ac_mid; break
13523 echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13526 ac_lo=`expr $ac_mid + 1`
13527 if test $ac_lo -le $ac_mid; then
13531 ac_mid=`expr 2 '*' $ac_mid + 1`
13533 rm -f conftest.$ac_objext conftest.$ac_ext
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 cat >conftest.$ac_ext <<_ACEOF
13540 #line $LINENO "configure"
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13546 $ac_includes_default
13550 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13557 rm -f conftest.$ac_objext
13558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13559 (eval $ac_compile) 2>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } &&
13563 { ac_try='test -s conftest.$ac_objext'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; }; then
13571 cat >conftest.$ac_ext <<_ACEOF
13572 #line $LINENO "configure"
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13578 $ac_includes_default
13582 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13589 rm -f conftest.$ac_objext
13590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13591 (eval $ac_compile) 2>&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } &&
13595 { ac_try='test -s conftest.$ac_objext'
13596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597 (eval $ac_try) 2>&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; }; then
13601 ac_lo=$ac_mid; break
13603 echo "$as_me: failed program was:" >&5
13604 sed 's/^/| /' conftest.$ac_ext >&5
13606 ac_hi=`expr '(' $ac_mid ')' - 1`
13607 if test $ac_mid -le $ac_hi; then
13611 ac_mid=`expr 2 '*' $ac_mid`
13613 rm -f conftest.$ac_objext conftest.$ac_ext
13616 echo "$as_me: failed program was:" >&5
13617 sed 's/^/| /' conftest.$ac_ext >&5
13621 rm -f conftest.$ac_objext conftest.$ac_ext
13623 rm -f conftest.$ac_objext conftest.$ac_ext
13624 # Binary search between lo and hi bounds.
13625 while test "x$ac_lo" != "x$ac_hi"; do
13626 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13627 cat >conftest.$ac_ext <<_ACEOF
13628 #line $LINENO "configure"
13631 cat confdefs.h >>conftest.$ac_ext
13632 cat >>conftest.$ac_ext <<_ACEOF
13633 /* end confdefs.h. */
13634 $ac_includes_default
13638 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13645 rm -f conftest.$ac_objext
13646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13647 (eval $ac_compile) 2>&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } &&
13651 { ac_try='test -s conftest.$ac_objext'
13652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; }; then
13659 echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13662 ac_lo=`expr '(' $ac_mid ')' + 1`
13664 rm -f conftest.$ac_objext conftest.$ac_ext
13667 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13668 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13669 See \`config.log' for more details." >&5
13670 echo "$as_me: error: cannot compute sizeof (long int), 77
13671 See \`config.log' for more details." >&2;}
13672 { (exit 1); exit 1; }; } ;;
13675 if test "$cross_compiling" = yes; then
13676 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13677 See \`config.log' for more details." >&5
13678 echo "$as_me: error: cannot run test program while cross compiling
13679 See \`config.log' for more details." >&2;}
13680 { (exit 1); exit 1; }; }
13682 cat >conftest.$ac_ext <<_ACEOF
13683 #line $LINENO "configure"
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h. */
13689 $ac_includes_default
13690 long longval () { return (long) (sizeof (long int)); }
13691 unsigned long ulongval () { return (long) (sizeof (long int)); }
13693 #include <stdlib.h>
13698 FILE *f = fopen ("conftest.val", "w");
13701 if (((long) (sizeof (long int))) < 0)
13703 long i = longval ();
13704 if (i != ((long) (sizeof (long int))))
13706 fprintf (f, "%ld\n", i);
13710 unsigned long i = ulongval ();
13711 if (i != ((long) (sizeof (long int))))
13713 fprintf (f, "%lu\n", i);
13715 exit (ferror (f) || fclose (f) != 0);
13721 rm -f conftest$ac_exeext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13723 (eval $ac_link) 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }; then
13732 ac_cv_sizeof_long_int=`cat conftest.val`
13734 echo "$as_me: program exited with status $ac_status" >&5
13735 echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13738 ( exit $ac_status )
13739 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13740 See \`config.log' for more details." >&5
13741 echo "$as_me: error: cannot compute sizeof (long int), 77
13742 See \`config.log' for more details." >&2;}
13743 { (exit 1); exit 1; }; }
13745 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13750 ac_cv_sizeof_long_int=0
13753 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13754 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13755 cat >>confdefs.h <<_ACEOF
13756 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13760 echo "$as_me:$LINENO: checking for long long int" >&5
13761 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13762 if test "${ac_cv_type_long_long_int+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13765 cat >conftest.$ac_ext <<_ACEOF
13766 #line $LINENO "configure"
13769 cat confdefs.h >>conftest.$ac_ext
13770 cat >>conftest.$ac_ext <<_ACEOF
13771 /* end confdefs.h. */
13772 $ac_includes_default
13776 if ((long long int *) 0)
13778 if (sizeof (long long int))
13784 rm -f conftest.$ac_objext
13785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13786 (eval $ac_compile) 2>&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } &&
13790 { ac_try='test -s conftest.$ac_objext'
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796 ac_cv_type_long_long_int=yes
13798 echo "$as_me: failed program was:" >&5
13799 sed 's/^/| /' conftest.$ac_ext >&5
13801 ac_cv_type_long_long_int=no
13803 rm -f conftest.$ac_objext conftest.$ac_ext
13805 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13806 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13808 echo "$as_me:$LINENO: checking size of long long int" >&5
13809 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13810 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13813 if test "$ac_cv_type_long_long_int" = yes; then
13814 # The cast to unsigned long works around a bug in the HP C Compiler
13815 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13816 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13817 # This bug is HP SR number 8606223364.
13818 if test "$cross_compiling" = yes; then
13819 # Depending upon the size, compute the lo and hi bounds.
13820 cat >conftest.$ac_ext <<_ACEOF
13821 #line $LINENO "configure"
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13827 $ac_includes_default
13831 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13838 rm -f conftest.$ac_objext
13839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13840 (eval $ac_compile) 2>&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } &&
13844 { ac_try='test -s conftest.$ac_objext'
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; }; then
13852 cat >conftest.$ac_ext <<_ACEOF
13853 #line $LINENO "configure"
13856 cat confdefs.h >>conftest.$ac_ext
13857 cat >>conftest.$ac_ext <<_ACEOF
13858 /* end confdefs.h. */
13859 $ac_includes_default
13863 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13870 rm -f conftest.$ac_objext
13871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13872 (eval $ac_compile) 2>&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } &&
13876 { ac_try='test -s conftest.$ac_objext'
13877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878 (eval $ac_try) 2>&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; }; then
13882 ac_hi=$ac_mid; break
13884 echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13887 ac_lo=`expr $ac_mid + 1`
13888 if test $ac_lo -le $ac_mid; then
13892 ac_mid=`expr 2 '*' $ac_mid + 1`
13894 rm -f conftest.$ac_objext conftest.$ac_ext
13897 echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13900 cat >conftest.$ac_ext <<_ACEOF
13901 #line $LINENO "configure"
13904 cat confdefs.h >>conftest.$ac_ext
13905 cat >>conftest.$ac_ext <<_ACEOF
13906 /* end confdefs.h. */
13907 $ac_includes_default
13911 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13918 rm -f conftest.$ac_objext
13919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13920 (eval $ac_compile) 2>&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); } &&
13924 { ac_try='test -s conftest.$ac_objext'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; }; then
13932 cat >conftest.$ac_ext <<_ACEOF
13933 #line $LINENO "configure"
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h. */
13939 $ac_includes_default
13943 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13950 rm -f conftest.$ac_objext
13951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13952 (eval $ac_compile) 2>&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } &&
13956 { ac_try='test -s conftest.$ac_objext'
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; }; then
13962 ac_lo=$ac_mid; break
13964 echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13967 ac_hi=`expr '(' $ac_mid ')' - 1`
13968 if test $ac_mid -le $ac_hi; then
13972 ac_mid=`expr 2 '*' $ac_mid`
13974 rm -f conftest.$ac_objext conftest.$ac_ext
13977 echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13982 rm -f conftest.$ac_objext conftest.$ac_ext
13984 rm -f conftest.$ac_objext conftest.$ac_ext
13985 # Binary search between lo and hi bounds.
13986 while test "x$ac_lo" != "x$ac_hi"; do
13987 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13988 cat >conftest.$ac_ext <<_ACEOF
13989 #line $LINENO "configure"
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h. */
13995 $ac_includes_default
13999 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14006 rm -f conftest.$ac_objext
14007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14008 (eval $ac_compile) 2>&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } &&
14012 { ac_try='test -s conftest.$ac_objext'
14013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14014 (eval $ac_try) 2>&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); }; }; then
14020 echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14023 ac_lo=`expr '(' $ac_mid ')' + 1`
14025 rm -f conftest.$ac_objext conftest.$ac_ext
14028 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14029 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14030 See \`config.log' for more details." >&5
14031 echo "$as_me: error: cannot compute sizeof (long long int), 77
14032 See \`config.log' for more details." >&2;}
14033 { (exit 1); exit 1; }; } ;;
14036 if test "$cross_compiling" = yes; then
14037 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14038 See \`config.log' for more details." >&5
14039 echo "$as_me: error: cannot run test program while cross compiling
14040 See \`config.log' for more details." >&2;}
14041 { (exit 1); exit 1; }; }
14043 cat >conftest.$ac_ext <<_ACEOF
14044 #line $LINENO "configure"
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h. */
14050 $ac_includes_default
14051 long longval () { return (long) (sizeof (long long int)); }
14052 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14054 #include <stdlib.h>
14059 FILE *f = fopen ("conftest.val", "w");
14062 if (((long) (sizeof (long long int))) < 0)
14064 long i = longval ();
14065 if (i != ((long) (sizeof (long long int))))
14067 fprintf (f, "%ld\n", i);
14071 unsigned long i = ulongval ();
14072 if (i != ((long) (sizeof (long long int))))
14074 fprintf (f, "%lu\n", i);
14076 exit (ferror (f) || fclose (f) != 0);
14082 rm -f conftest$ac_exeext
14083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14084 (eval $ac_link) 2>&5
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14089 (eval $ac_try) 2>&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; }; then
14093 ac_cv_sizeof_long_long_int=`cat conftest.val`
14095 echo "$as_me: program exited with status $ac_status" >&5
14096 echo "$as_me: failed program was:" >&5
14097 sed 's/^/| /' conftest.$ac_ext >&5
14099 ( exit $ac_status )
14100 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14101 See \`config.log' for more details." >&5
14102 echo "$as_me: error: cannot compute sizeof (long long int), 77
14103 See \`config.log' for more details." >&2;}
14104 { (exit 1); exit 1; }; }
14106 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14111 ac_cv_sizeof_long_long_int=0
14114 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14115 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14116 cat >>confdefs.h <<_ACEOF
14117 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14121 echo "$as_me:$LINENO: checking for int *" >&5
14122 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14123 if test "${ac_cv_type_int_p+set}" = set; then
14124 echo $ECHO_N "(cached) $ECHO_C" >&6
14126 cat >conftest.$ac_ext <<_ACEOF
14127 #line $LINENO "configure"
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14133 $ac_includes_default
14139 if (sizeof (int *))
14145 rm -f conftest.$ac_objext
14146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14147 (eval $ac_compile) 2>&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } &&
14151 { ac_try='test -s conftest.$ac_objext'
14152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14153 (eval $ac_try) 2>&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); }; }; then
14157 ac_cv_type_int_p=yes
14159 echo "$as_me: failed program was:" >&5
14160 sed 's/^/| /' conftest.$ac_ext >&5
14162 ac_cv_type_int_p=no
14164 rm -f conftest.$ac_objext conftest.$ac_ext
14166 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14167 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14169 echo "$as_me:$LINENO: checking size of int *" >&5
14170 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14171 if test "${ac_cv_sizeof_int_p+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14174 if test "$ac_cv_type_int_p" = yes; then
14175 # The cast to unsigned long works around a bug in the HP C Compiler
14176 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14177 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14178 # This bug is HP SR number 8606223364.
14179 if test "$cross_compiling" = yes; then
14180 # Depending upon the size, compute the lo and hi bounds.
14181 cat >conftest.$ac_ext <<_ACEOF
14182 #line $LINENO "configure"
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h. */
14188 $ac_includes_default
14192 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14199 rm -f conftest.$ac_objext
14200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14201 (eval $ac_compile) 2>&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } &&
14205 { ac_try='test -s conftest.$ac_objext'
14206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207 (eval $ac_try) 2>&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; }; then
14213 cat >conftest.$ac_ext <<_ACEOF
14214 #line $LINENO "configure"
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14220 $ac_includes_default
14224 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14231 rm -f conftest.$ac_objext
14232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14233 (eval $ac_compile) 2>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } &&
14237 { ac_try='test -s conftest.$ac_objext'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
14243 ac_hi=$ac_mid; break
14245 echo "$as_me: failed program was:" >&5
14246 sed 's/^/| /' conftest.$ac_ext >&5
14248 ac_lo=`expr $ac_mid + 1`
14249 if test $ac_lo -le $ac_mid; then
14253 ac_mid=`expr 2 '*' $ac_mid + 1`
14255 rm -f conftest.$ac_objext conftest.$ac_ext
14258 echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14261 cat >conftest.$ac_ext <<_ACEOF
14262 #line $LINENO "configure"
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h. */
14268 $ac_includes_default
14272 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14279 rm -f conftest.$ac_objext
14280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14281 (eval $ac_compile) 2>&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); } &&
14285 { ac_try='test -s conftest.$ac_objext'
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
14293 cat >conftest.$ac_ext <<_ACEOF
14294 #line $LINENO "configure"
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14300 $ac_includes_default
14304 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14311 rm -f conftest.$ac_objext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14313 (eval $ac_compile) 2>&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } &&
14317 { ac_try='test -s conftest.$ac_objext'
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }; then
14323 ac_lo=$ac_mid; break
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14328 ac_hi=`expr '(' $ac_mid ')' - 1`
14329 if test $ac_mid -le $ac_hi; then
14333 ac_mid=`expr 2 '*' $ac_mid`
14335 rm -f conftest.$ac_objext conftest.$ac_ext
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14343 rm -f conftest.$ac_objext conftest.$ac_ext
14345 rm -f conftest.$ac_objext conftest.$ac_ext
14346 # Binary search between lo and hi bounds.
14347 while test "x$ac_lo" != "x$ac_hi"; do
14348 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14349 cat >conftest.$ac_ext <<_ACEOF
14350 #line $LINENO "configure"
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h. */
14356 $ac_includes_default
14360 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14367 rm -f conftest.$ac_objext
14368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14369 (eval $ac_compile) 2>&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } &&
14373 { ac_try='test -s conftest.$ac_objext'
14374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375 (eval $ac_try) 2>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; }; then
14381 echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.$ac_ext >&5
14384 ac_lo=`expr '(' $ac_mid ')' + 1`
14386 rm -f conftest.$ac_objext conftest.$ac_ext
14389 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14390 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14391 See \`config.log' for more details." >&5
14392 echo "$as_me: error: cannot compute sizeof (int *), 77
14393 See \`config.log' for more details." >&2;}
14394 { (exit 1); exit 1; }; } ;;
14397 if test "$cross_compiling" = yes; then
14398 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14399 See \`config.log' for more details." >&5
14400 echo "$as_me: error: cannot run test program while cross compiling
14401 See \`config.log' for more details." >&2;}
14402 { (exit 1); exit 1; }; }
14404 cat >conftest.$ac_ext <<_ACEOF
14405 #line $LINENO "configure"
14408 cat confdefs.h >>conftest.$ac_ext
14409 cat >>conftest.$ac_ext <<_ACEOF
14410 /* end confdefs.h. */
14411 $ac_includes_default
14412 long longval () { return (long) (sizeof (int *)); }
14413 unsigned long ulongval () { return (long) (sizeof (int *)); }
14415 #include <stdlib.h>
14420 FILE *f = fopen ("conftest.val", "w");
14423 if (((long) (sizeof (int *))) < 0)
14425 long i = longval ();
14426 if (i != ((long) (sizeof (int *))))
14428 fprintf (f, "%ld\n", i);
14432 unsigned long i = ulongval ();
14433 if (i != ((long) (sizeof (int *))))
14435 fprintf (f, "%lu\n", i);
14437 exit (ferror (f) || fclose (f) != 0);
14443 rm -f conftest$ac_exeext
14444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14445 (eval $ac_link) 2>&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_cv_sizeof_int_p=`cat conftest.val`
14456 echo "$as_me: program exited with status $ac_status" >&5
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14460 ( exit $ac_status )
14461 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14462 See \`config.log' for more details." >&5
14463 echo "$as_me: error: cannot compute sizeof (int *), 77
14464 See \`config.log' for more details." >&2;}
14465 { (exit 1); exit 1; }; }
14467 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14472 ac_cv_sizeof_int_p=0
14475 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14476 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14477 cat >>confdefs.h <<_ACEOF
14478 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14483 # Check for sys/types.h types
14484 echo "$as_me:$LINENO: checking for u_int type" >&5
14485 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14486 if test "${ac_cv_have_u_int+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14490 cat >conftest.$ac_ext <<_ACEOF
14491 #line $LINENO "configure"
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14497 #include <sys/types.h>
14506 rm -f conftest.$ac_objext
14507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14508 (eval $ac_compile) 2>&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } &&
14512 { ac_try='test -s conftest.$ac_objext'
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; }; then
14518 ac_cv_have_u_int="yes"
14520 echo "$as_me: failed program was:" >&5
14521 sed 's/^/| /' conftest.$ac_ext >&5
14523 ac_cv_have_u_int="no"
14526 rm -f conftest.$ac_objext conftest.$ac_ext
14529 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14530 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14531 if test "x$ac_cv_have_u_int" = "xyes" ; then
14532 cat >>confdefs.h <<\_ACEOF
14533 #define HAVE_U_INT 1
14539 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14540 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14541 if test "${ac_cv_have_intmax_t+set}" = set; then
14542 echo $ECHO_N "(cached) $ECHO_C" >&6
14545 cat >conftest.$ac_ext <<_ACEOF
14546 #line $LINENO "configure"
14549 cat confdefs.h >>conftest.$ac_ext
14550 cat >>conftest.$ac_ext <<_ACEOF
14551 /* end confdefs.h. */
14552 #include <sys/types.h>
14561 rm -f conftest.$ac_objext
14562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14563 (eval $ac_compile) 2>&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try='test -s conftest.$ac_objext'
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; }; then
14573 ac_cv_have_intmax_t="yes"
14575 echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14579 cat >conftest.$ac_ext <<_ACEOF
14580 #line $LINENO "configure"
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h. */
14586 #include <stdint.h>
14595 rm -f conftest.$ac_objext
14596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14597 (eval $ac_compile) 2>&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); } &&
14601 { ac_try='test -s conftest.$ac_objext'
14602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603 (eval $ac_try) 2>&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; }; then
14607 ac_cv_have_intmax_t="yes"
14609 echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14612 ac_cv_have_intmax_t="no"
14615 rm -f conftest.$ac_objext conftest.$ac_ext
14619 rm -f conftest.$ac_objext conftest.$ac_ext
14623 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14624 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14625 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14626 cat >>confdefs.h <<\_ACEOF
14627 #define HAVE_INTMAX_T 1
14634 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14635 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14636 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14637 echo $ECHO_N "(cached) $ECHO_C" >&6
14640 cat >conftest.$ac_ext <<_ACEOF
14641 #line $LINENO "configure"
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h. */
14647 #include <sys/types.h>
14651 u_intmax_t a; a = 1;
14656 rm -f conftest.$ac_objext
14657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14658 (eval $ac_compile) 2>&5
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); } &&
14662 { ac_try='test -s conftest.$ac_objext'
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; }; then
14668 ac_cv_have_u_intmax_t="yes"
14670 echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
14674 cat >conftest.$ac_ext <<_ACEOF
14675 #line $LINENO "configure"
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14681 #include <stdint.h>
14685 u_intmax_t a; a = 1;
14690 rm -f conftest.$ac_objext
14691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14692 (eval $ac_compile) 2>&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); } &&
14696 { ac_try='test -s conftest.$ac_objext'
14697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14698 (eval $ac_try) 2>&5
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; }; then
14702 ac_cv_have_u_intmax_t="yes"
14704 echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14707 ac_cv_have_u_intmax_t="no"
14710 rm -f conftest.$ac_objext conftest.$ac_ext
14714 rm -f conftest.$ac_objext conftest.$ac_ext
14717 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14718 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14719 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14720 cat >>confdefs.h <<\_ACEOF
14721 #define HAVE_U_INTMAX_T 1
14728 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14729 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14730 if test "${ac_cv_have_intxx_t+set}" = set; then
14731 echo $ECHO_N "(cached) $ECHO_C" >&6
14734 cat >conftest.$ac_ext <<_ACEOF
14735 #line $LINENO "configure"
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h. */
14741 #include <sys/types.h>
14745 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14750 rm -f conftest.$ac_objext
14751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14752 (eval $ac_compile) 2>&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } &&
14756 { ac_try='test -s conftest.$ac_objext'
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; }; then
14762 ac_cv_have_intxx_t="yes"
14764 echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14767 ac_cv_have_intxx_t="no"
14770 rm -f conftest.$ac_objext conftest.$ac_ext
14773 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14774 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14775 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14776 cat >>confdefs.h <<\_ACEOF
14777 #define HAVE_INTXX_T 1
14783 echo "$as_me:$LINENO: checking for int64_t type" >&5
14784 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14785 if test "${ac_cv_have_int64_t+set}" = set; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14789 cat >conftest.$ac_ext <<_ACEOF
14790 #line $LINENO "configure"
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h. */
14796 #include <sys/types.h>
14805 rm -f conftest.$ac_objext
14806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14807 (eval $ac_compile) 2>&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); } &&
14811 { ac_try='test -s conftest.$ac_objext'
14812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813 (eval $ac_try) 2>&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; }; then
14817 ac_cv_have_int64_t="yes"
14819 echo "$as_me: failed program was:" >&5
14820 sed 's/^/| /' conftest.$ac_ext >&5
14822 ac_cv_have_int64_t="no"
14825 rm -f conftest.$ac_objext conftest.$ac_ext
14828 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14829 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14830 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14831 cat >>confdefs.h <<\_ACEOF
14832 #define HAVE_INT64_T 1
14838 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14839 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14840 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14844 cat >conftest.$ac_ext <<_ACEOF
14845 #line $LINENO "configure"
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14851 #include <sys/types.h>
14855 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14860 rm -f conftest.$ac_objext
14861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14862 (eval $ac_compile) 2>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } &&
14866 { ac_try='test -s conftest.$ac_objext'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; }; then
14872 ac_cv_have_u_intxx_t="yes"
14874 echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14877 ac_cv_have_u_intxx_t="no"
14880 rm -f conftest.$ac_objext conftest.$ac_ext
14883 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14884 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14885 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14886 cat >>confdefs.h <<\_ACEOF
14887 #define HAVE_U_INTXX_T 1
14893 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14894 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14895 if test "${ac_cv_have_u_int64_t+set}" = set; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14899 cat >conftest.$ac_ext <<_ACEOF
14900 #line $LINENO "configure"
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14906 #include <sys/types.h>
14910 u_int64_t a; a = 1;
14915 rm -f conftest.$ac_objext
14916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14917 (eval $ac_compile) 2>&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } &&
14921 { ac_try='test -s conftest.$ac_objext'
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; }; then
14927 ac_cv_have_u_int64_t="yes"
14929 echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14932 ac_cv_have_u_int64_t="no"
14935 rm -f conftest.$ac_objext conftest.$ac_ext
14938 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14939 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14940 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14941 cat >>confdefs.h <<\_ACEOF
14942 #define HAVE_U_INT64_T 1
14948 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14949 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14951 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14952 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14953 cat >conftest.$ac_ext <<_ACEOF
14954 #line $LINENO "configure"
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14960 #include <sys/bitypes.h>
14964 int8_t a; int16_t b; int32_t c;
14965 u_int8_t e; u_int16_t f; u_int32_t g;
14966 a = b = c = e = f = g = 1;
14971 rm -f conftest.$ac_objext
14972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14973 (eval $ac_compile) 2>&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); } &&
14977 { ac_try='test -s conftest.$ac_objext'
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; }; then
14983 cat >>confdefs.h <<\_ACEOF
14984 #define HAVE_U_INTXX_T 1
14987 cat >>confdefs.h <<\_ACEOF
14988 #define HAVE_INTXX_T 1
14991 cat >>confdefs.h <<\_ACEOF
14992 #define HAVE_SYS_BITYPES_H 1
14995 echo "$as_me:$LINENO: result: yes" >&5
14996 echo "${ECHO_T}yes" >&6
14998 echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15001 echo "$as_me:$LINENO: result: no" >&5
15002 echo "${ECHO_T}no" >&6
15005 rm -f conftest.$ac_objext conftest.$ac_ext
15008 if test -z "$have_u_intxx_t" ; then
15009 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15010 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15011 if test "${ac_cv_have_uintxx_t+set}" = set; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15015 cat >conftest.$ac_ext <<_ACEOF
15016 #line $LINENO "configure"
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15022 #include <sys/types.h>
15026 uint8_t a; uint16_t b;
15027 uint32_t c; a = b = c = 1;
15032 rm -f conftest.$ac_objext
15033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15034 (eval $ac_compile) 2>&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
15038 { ac_try='test -s conftest.$ac_objext'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 ac_cv_have_uintxx_t="yes"
15046 echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15049 ac_cv_have_uintxx_t="no"
15052 rm -f conftest.$ac_objext conftest.$ac_ext
15055 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15056 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15057 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15058 cat >>confdefs.h <<\_ACEOF
15059 #define HAVE_UINTXX_T 1
15095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15096 echo "$as_me:$LINENO: checking for $ac_func" >&5
15097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15098 if eval "test \"\${$as_ac_var+set}\" = set"; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15101 cat >conftest.$ac_ext <<_ACEOF
15102 #line $LINENO "configure"
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15108 /* System header to define __stub macros and hopefully few prototypes,
15109 which can conflict with char $ac_func (); below.
15110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15111 <limits.h> exists even on freestanding compilers. */
15113 # include <limits.h>
15115 # include <assert.h>
15117 /* Override any gcc2 internal prototype to avoid an error. */
15122 /* We use char because int might match the return type of a gcc2
15123 builtin and then its argument prototype would still apply. */
15125 /* The GNU C library defines this for functions which it implements
15126 to always fail with ENOSYS. Some functions are actually named
15127 something starting with __ and the normal name is an alias. */
15128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15131 char (*f) () = $ac_func;
15140 return f != $ac_func;
15145 rm -f conftest.$ac_objext conftest$ac_exeext
15146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15147 (eval $ac_link) 2>&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try='test -s conftest$ac_exeext'
15152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15153 (eval $ac_try) 2>&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; }; then
15157 eval "$as_ac_var=yes"
15159 echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15162 eval "$as_ac_var=no"
15164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15168 if test `eval echo '${'$as_ac_var'}'` = yes; then
15169 cat >>confdefs.h <<_ACEOF
15170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15174 echo 'configure: cannot find needed function.'; exit 1
15181 for ac_func in fchdir
15183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15184 echo "$as_me:$LINENO: checking for $ac_func" >&5
15185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15186 if eval "test \"\${$as_ac_var+set}\" = set"; then
15187 echo $ECHO_N "(cached) $ECHO_C" >&6
15189 cat >conftest.$ac_ext <<_ACEOF
15190 #line $LINENO "configure"
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h. */
15196 /* System header to define __stub macros and hopefully few prototypes,
15197 which can conflict with char $ac_func (); below.
15198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15199 <limits.h> exists even on freestanding compilers. */
15201 # include <limits.h>
15203 # include <assert.h>
15205 /* Override any gcc2 internal prototype to avoid an error. */
15210 /* We use char because int might match the return type of a gcc2
15211 builtin and then its argument prototype would still apply. */
15213 /* The GNU C library defines this for functions which it implements
15214 to always fail with ENOSYS. Some functions are actually named
15215 something starting with __ and the normal name is an alias. */
15216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15219 char (*f) () = $ac_func;
15228 return f != $ac_func;
15233 rm -f conftest.$ac_objext conftest$ac_exeext
15234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15235 (eval $ac_link) 2>&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } &&
15239 { ac_try='test -s conftest$ac_exeext'
15240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15241 (eval $ac_try) 2>&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; }; then
15245 eval "$as_ac_var=yes"
15247 echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.$ac_ext >&5
15250 eval "$as_ac_var=no"
15252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15256 if test `eval echo '${'$as_ac_var'}'` = yes; then
15257 cat >>confdefs.h <<_ACEOF
15258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15260 cat >>confdefs.h <<\_ACEOF
15261 #define HAVE_FCHDIR 1
15268 for ac_func in strtoll
15270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15271 echo "$as_me:$LINENO: checking for $ac_func" >&5
15272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15273 if eval "test \"\${$as_ac_var+set}\" = set"; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 cat >conftest.$ac_ext <<_ACEOF
15277 #line $LINENO "configure"
15280 cat confdefs.h >>conftest.$ac_ext
15281 cat >>conftest.$ac_ext <<_ACEOF
15282 /* end confdefs.h. */
15283 /* System header to define __stub macros and hopefully few prototypes,
15284 which can conflict with char $ac_func (); below.
15285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15286 <limits.h> exists even on freestanding compilers. */
15288 # include <limits.h>
15290 # include <assert.h>
15292 /* Override any gcc2 internal prototype to avoid an error. */
15297 /* We use char because int might match the return type of a gcc2
15298 builtin and then its argument prototype would still apply. */
15300 /* The GNU C library defines this for functions which it implements
15301 to always fail with ENOSYS. Some functions are actually named
15302 something starting with __ and the normal name is an alias. */
15303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15306 char (*f) () = $ac_func;
15315 return f != $ac_func;
15320 rm -f conftest.$ac_objext conftest$ac_exeext
15321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15322 (eval $ac_link) 2>&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); } &&
15326 { ac_try='test -s conftest$ac_exeext'
15327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328 (eval $ac_try) 2>&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; }; then
15332 eval "$as_ac_var=yes"
15334 echo "$as_me: failed program was:" >&5
15335 sed 's/^/| /' conftest.$ac_ext >&5
15337 eval "$as_ac_var=no"
15339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15342 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15343 if test `eval echo '${'$as_ac_var'}'` = yes; then
15344 cat >>confdefs.h <<_ACEOF
15345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15347 cat >>confdefs.h <<\_ACEOF
15348 #define HAVE_STRTOLL 1
15356 for ac_func in chflags
15358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15359 echo "$as_me:$LINENO: checking for $ac_func" >&5
15360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15361 if eval "test \"\${$as_ac_var+set}\" = set"; then
15362 echo $ECHO_N "(cached) $ECHO_C" >&6
15364 cat >conftest.$ac_ext <<_ACEOF
15365 #line $LINENO "configure"
15368 cat confdefs.h >>conftest.$ac_ext
15369 cat >>conftest.$ac_ext <<_ACEOF
15370 /* end confdefs.h. */
15371 /* System header to define __stub macros and hopefully few prototypes,
15372 which can conflict with char $ac_func (); below.
15373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15374 <limits.h> exists even on freestanding compilers. */
15376 # include <limits.h>
15378 # include <assert.h>
15380 /* Override any gcc2 internal prototype to avoid an error. */
15385 /* We use char because int might match the return type of a gcc2
15386 builtin and then its argument prototype would still apply. */
15388 /* The GNU C library defines this for functions which it implements
15389 to always fail with ENOSYS. Some functions are actually named
15390 something starting with __ and the normal name is an alias. */
15391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15394 char (*f) () = $ac_func;
15403 return f != $ac_func;
15408 rm -f conftest.$ac_objext conftest$ac_exeext
15409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15410 (eval $ac_link) 2>&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } &&
15414 { ac_try='test -s conftest$ac_exeext'
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; }; then
15420 eval "$as_ac_var=yes"
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15425 eval "$as_ac_var=no"
15427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15431 if test `eval echo '${'$as_ac_var'}'` = yes; then
15432 cat >>confdefs.h <<_ACEOF
15433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15444 for ac_func in snprintf vsnprintf gethostid getdomainname
15446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15447 echo "$as_me:$LINENO: checking for $ac_func" >&5
15448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15449 if eval "test \"\${$as_ac_var+set}\" = set"; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 cat >conftest.$ac_ext <<_ACEOF
15453 #line $LINENO "configure"
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h. */
15459 /* System header to define __stub macros and hopefully few prototypes,
15460 which can conflict with char $ac_func (); below.
15461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15462 <limits.h> exists even on freestanding compilers. */
15464 # include <limits.h>
15466 # include <assert.h>
15468 /* Override any gcc2 internal prototype to avoid an error. */
15473 /* We use char because int might match the return type of a gcc2
15474 builtin and then its argument prototype would still apply. */
15476 /* The GNU C library defines this for functions which it implements
15477 to always fail with ENOSYS. Some functions are actually named
15478 something starting with __ and the normal name is an alias. */
15479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15482 char (*f) () = $ac_func;
15491 return f != $ac_func;
15496 rm -f conftest.$ac_objext conftest$ac_exeext
15497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15498 (eval $ac_link) 2>&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } &&
15502 { ac_try='test -s conftest$ac_exeext'
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; }; then
15508 eval "$as_ac_var=yes"
15510 echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15513 eval "$as_ac_var=no"
15515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15518 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15519 if test `eval echo '${'$as_ac_var'}'` = yes; then
15520 cat >>confdefs.h <<_ACEOF
15521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15532 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15535 echo "$as_me:$LINENO: checking for $ac_func" >&5
15536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15537 if eval "test \"\${$as_ac_var+set}\" = set"; then
15538 echo $ECHO_N "(cached) $ECHO_C" >&6
15540 cat >conftest.$ac_ext <<_ACEOF
15541 #line $LINENO "configure"
15544 cat confdefs.h >>conftest.$ac_ext
15545 cat >>conftest.$ac_ext <<_ACEOF
15546 /* end confdefs.h. */
15547 /* System header to define __stub macros and hopefully few prototypes,
15548 which can conflict with char $ac_func (); below.
15549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15550 <limits.h> exists even on freestanding compilers. */
15552 # include <limits.h>
15554 # include <assert.h>
15556 /* Override any gcc2 internal prototype to avoid an error. */
15561 /* We use char because int might match the return type of a gcc2
15562 builtin and then its argument prototype would still apply. */
15564 /* The GNU C library defines this for functions which it implements
15565 to always fail with ENOSYS. Some functions are actually named
15566 something starting with __ and the normal name is an alias. */
15567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15570 char (*f) () = $ac_func;
15579 return f != $ac_func;
15584 rm -f conftest.$ac_objext conftest$ac_exeext
15585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15586 (eval $ac_link) 2>&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } &&
15590 { ac_try='test -s conftest$ac_exeext'
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; }; then
15596 eval "$as_ac_var=yes"
15598 echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15601 eval "$as_ac_var=no"
15603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15607 if test `eval echo '${'$as_ac_var'}'` = yes; then
15608 cat >>confdefs.h <<_ACEOF
15609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15616 # If resolver functions are not in libc check for -lnsl or -lresolv.
15617 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15618 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15619 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15622 cat >conftest.$ac_ext <<_ACEOF
15623 #line $LINENO "configure"
15626 cat confdefs.h >>conftest.$ac_ext
15627 cat >>conftest.$ac_ext <<_ACEOF
15628 /* end confdefs.h. */
15629 /* System header to define __stub macros and hopefully few prototypes,
15630 which can conflict with char gethostbyname_r (); below.
15631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15632 <limits.h> exists even on freestanding compilers. */
15634 # include <limits.h>
15636 # include <assert.h>
15638 /* Override any gcc2 internal prototype to avoid an error. */
15643 /* We use char because int might match the return type of a gcc2
15644 builtin and then its argument prototype would still apply. */
15645 char gethostbyname_r ();
15646 /* The GNU C library defines this for functions which it implements
15647 to always fail with ENOSYS. Some functions are actually named
15648 something starting with __ and the normal name is an alias. */
15649 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15652 char (*f) () = gethostbyname_r;
15661 return f != gethostbyname_r;
15666 rm -f conftest.$ac_objext conftest$ac_exeext
15667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15668 (eval $ac_link) 2>&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); } &&
15672 { ac_try='test -s conftest$ac_exeext'
15673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674 (eval $ac_try) 2>&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); }; }; then
15678 ac_cv_func_gethostbyname_r=yes
15680 echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15683 ac_cv_func_gethostbyname_r=no
15685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15687 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15688 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15689 if test $ac_cv_func_gethostbyname_r = yes; then
15690 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15691 echo "${ECHO_T}using libc's resolver" >&6
15694 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15695 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15696 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15697 echo $ECHO_N "(cached) $ECHO_C" >&6
15699 ac_check_lib_save_LIBS=$LIBS
15701 cat >conftest.$ac_ext <<_ACEOF
15702 #line $LINENO "configure"
15705 cat confdefs.h >>conftest.$ac_ext
15706 cat >>conftest.$ac_ext <<_ACEOF
15707 /* end confdefs.h. */
15709 /* Override any gcc2 internal prototype to avoid an error. */
15713 /* We use char because int might match the return type of a gcc2
15714 builtin and then its argument prototype would still apply. */
15715 char gethostbyname_r ();
15719 gethostbyname_r ();
15724 rm -f conftest.$ac_objext conftest$ac_exeext
15725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15726 (eval $ac_link) 2>&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } &&
15730 { ac_try='test -s conftest$ac_exeext'
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; }; then
15736 ac_cv_lib_nsl_gethostbyname_r=yes
15738 echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15741 ac_cv_lib_nsl_gethostbyname_r=no
15743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15744 LIBS=$ac_check_lib_save_LIBS
15746 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15747 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15748 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15749 cat >>confdefs.h <<_ACEOF
15750 #define HAVE_LIBNSL 1
15758 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15759 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15760 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15761 echo $ECHO_N "(cached) $ECHO_C" >&6
15763 ac_check_lib_save_LIBS=$LIBS
15764 LIBS="-lresolv $LIBS"
15765 cat >conftest.$ac_ext <<_ACEOF
15766 #line $LINENO "configure"
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15773 /* Override any gcc2 internal prototype to avoid an error. */
15777 /* We use char because int might match the return type of a gcc2
15778 builtin and then its argument prototype would still apply. */
15779 char gethostbyname_r ();
15783 gethostbyname_r ();
15788 rm -f conftest.$ac_objext conftest$ac_exeext
15789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15790 (eval $ac_link) 2>&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } &&
15794 { ac_try='test -s conftest$ac_exeext'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; }; then
15800 ac_cv_lib_resolv_gethostbyname_r=yes
15802 echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805 ac_cv_lib_resolv_gethostbyname_r=no
15807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15808 LIBS=$ac_check_lib_save_LIBS
15810 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15811 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15812 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15813 cat >>confdefs.h <<_ACEOF
15814 #define HAVE_LIBRESOLV 1
15817 LIBS="-lresolv $LIBS"
15825 # Find where sockets are (especially for Solaris)
15826 echo "$as_me:$LINENO: checking for socket" >&5
15827 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15828 if test "${ac_cv_func_socket+set}" = set; then
15829 echo $ECHO_N "(cached) $ECHO_C" >&6
15831 cat >conftest.$ac_ext <<_ACEOF
15832 #line $LINENO "configure"
15835 cat confdefs.h >>conftest.$ac_ext
15836 cat >>conftest.$ac_ext <<_ACEOF
15837 /* end confdefs.h. */
15838 /* System header to define __stub macros and hopefully few prototypes,
15839 which can conflict with char socket (); below.
15840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15841 <limits.h> exists even on freestanding compilers. */
15843 # include <limits.h>
15845 # include <assert.h>
15847 /* Override any gcc2 internal prototype to avoid an error. */
15852 /* We use char because int might match the return type of a gcc2
15853 builtin and then its argument prototype would still apply. */
15855 /* The GNU C library defines this for functions which it implements
15856 to always fail with ENOSYS. Some functions are actually named
15857 something starting with __ and the normal name is an alias. */
15858 #if defined (__stub_socket) || defined (__stub___socket)
15861 char (*f) () = socket;
15870 return f != socket;
15875 rm -f conftest.$ac_objext conftest$ac_exeext
15876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15877 (eval $ac_link) 2>&5
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } &&
15881 { ac_try='test -s conftest$ac_exeext'
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; }; then
15887 ac_cv_func_socket=yes
15889 echo "$as_me: failed program was:" >&5
15890 sed 's/^/| /' conftest.$ac_ext >&5
15892 ac_cv_func_socket=no
15894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15896 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15897 echo "${ECHO_T}$ac_cv_func_socket" >&6
15898 if test $ac_cv_func_socket = yes; then
15899 echo "$as_me:$LINENO: result: using libc's socket" >&5
15900 echo "${ECHO_T}using libc's socket" >&6
15903 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15904 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15905 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15908 ac_check_lib_save_LIBS=$LIBS
15909 LIBS="-lxnet $LIBS"
15910 cat >conftest.$ac_ext <<_ACEOF
15911 #line $LINENO "configure"
15914 cat confdefs.h >>conftest.$ac_ext
15915 cat >>conftest.$ac_ext <<_ACEOF
15916 /* end confdefs.h. */
15918 /* Override any gcc2 internal prototype to avoid an error. */
15922 /* We use char because int might match the return type of a gcc2
15923 builtin and then its argument prototype would still apply. */
15933 rm -f conftest.$ac_objext conftest$ac_exeext
15934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15935 (eval $ac_link) 2>&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); } &&
15939 { ac_try='test -s conftest$ac_exeext'
15940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941 (eval $ac_try) 2>&5
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); }; }; then
15945 ac_cv_lib_xnet_socket=yes
15947 echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15950 ac_cv_lib_xnet_socket=no
15952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15953 LIBS=$ac_check_lib_save_LIBS
15955 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15956 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15957 if test $ac_cv_lib_xnet_socket = yes; then
15958 cat >>confdefs.h <<_ACEOF
15959 #define HAVE_LIBXNET 1
15962 LIBS="-lxnet $LIBS"
15967 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15968 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15969 if test "${ac_cv_lib_socket_socket+set}" = set; then
15970 echo $ECHO_N "(cached) $ECHO_C" >&6
15972 ac_check_lib_save_LIBS=$LIBS
15973 LIBS="-lsocket $LIBS"
15974 cat >conftest.$ac_ext <<_ACEOF
15975 #line $LINENO "configure"
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15982 /* Override any gcc2 internal prototype to avoid an error. */
15986 /* We use char because int might match the return type of a gcc2
15987 builtin and then its argument prototype would still apply. */
15997 rm -f conftest.$ac_objext conftest$ac_exeext
15998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15999 (eval $ac_link) 2>&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); } &&
16003 { ac_try='test -s conftest$ac_exeext'
16004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005 (eval $ac_try) 2>&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); }; }; then
16009 ac_cv_lib_socket_socket=yes
16011 echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16014 ac_cv_lib_socket_socket=no
16016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16017 LIBS=$ac_check_lib_save_LIBS
16019 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16020 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16021 if test $ac_cv_lib_socket_socket = yes; then
16022 cat >>confdefs.h <<_ACEOF
16023 #define HAVE_LIBSOCKET 1
16026 LIBS="-lsocket $LIBS"
16031 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16032 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16033 if test "${ac_cv_lib_inet_socket+set}" = set; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16036 ac_check_lib_save_LIBS=$LIBS
16037 LIBS="-linet $LIBS"
16038 cat >conftest.$ac_ext <<_ACEOF
16039 #line $LINENO "configure"
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h. */
16046 /* Override any gcc2 internal prototype to avoid an error. */
16050 /* We use char because int might match the return type of a gcc2
16051 builtin and then its argument prototype would still apply. */
16061 rm -f conftest.$ac_objext conftest$ac_exeext
16062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16063 (eval $ac_link) 2>&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); } &&
16067 { ac_try='test -s conftest$ac_exeext'
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; }; then
16073 ac_cv_lib_inet_socket=yes
16075 echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16078 ac_cv_lib_inet_socket=no
16080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16081 LIBS=$ac_check_lib_save_LIBS
16083 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16084 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16085 if test $ac_cv_lib_inet_socket = yes; then
16086 cat >>confdefs.h <<_ACEOF
16087 #define HAVE_LIBINET 1
16090 LIBS="-linet $LIBS"
16098 for ac_func in inet_pton
16100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16101 echo "$as_me:$LINENO: checking for $ac_func" >&5
16102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16103 if eval "test \"\${$as_ac_var+set}\" = set"; then
16104 echo $ECHO_N "(cached) $ECHO_C" >&6
16106 cat >conftest.$ac_ext <<_ACEOF
16107 #line $LINENO "configure"
16110 cat confdefs.h >>conftest.$ac_ext
16111 cat >>conftest.$ac_ext <<_ACEOF
16112 /* end confdefs.h. */
16113 /* System header to define __stub macros and hopefully few prototypes,
16114 which can conflict with char $ac_func (); below.
16115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16116 <limits.h> exists even on freestanding compilers. */
16118 # include <limits.h>
16120 # include <assert.h>
16122 /* Override any gcc2 internal prototype to avoid an error. */
16127 /* We use char because int might match the return type of a gcc2
16128 builtin and then its argument prototype would still apply. */
16130 /* The GNU C library defines this for functions which it implements
16131 to always fail with ENOSYS. Some functions are actually named
16132 something starting with __ and the normal name is an alias. */
16133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16136 char (*f) () = $ac_func;
16145 return f != $ac_func;
16150 rm -f conftest.$ac_objext conftest$ac_exeext
16151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16152 (eval $ac_link) 2>&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } &&
16156 { ac_try='test -s conftest$ac_exeext'
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
16162 eval "$as_ac_var=yes"
16164 echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16167 eval "$as_ac_var=no"
16169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16173 if test `eval echo '${'$as_ac_var'}'` = yes; then
16174 cat >>confdefs.h <<_ACEOF
16175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16177 cat >>confdefs.h <<\_ACEOF
16178 #define HAVE_INET_PTON 1
16186 for ac_func in strftime
16188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16189 echo "$as_me:$LINENO: checking for $ac_func" >&5
16190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16191 if eval "test \"\${$as_ac_var+set}\" = set"; then
16192 echo $ECHO_N "(cached) $ECHO_C" >&6
16194 cat >conftest.$ac_ext <<_ACEOF
16195 #line $LINENO "configure"
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h. */
16201 /* System header to define __stub macros and hopefully few prototypes,
16202 which can conflict with char $ac_func (); below.
16203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16204 <limits.h> exists even on freestanding compilers. */
16206 # include <limits.h>
16208 # include <assert.h>
16210 /* Override any gcc2 internal prototype to avoid an error. */
16215 /* We use char because int might match the return type of a gcc2
16216 builtin and then its argument prototype would still apply. */
16218 /* The GNU C library defines this for functions which it implements
16219 to always fail with ENOSYS. Some functions are actually named
16220 something starting with __ and the normal name is an alias. */
16221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16224 char (*f) () = $ac_func;
16233 return f != $ac_func;
16238 rm -f conftest.$ac_objext conftest$ac_exeext
16239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16240 (eval $ac_link) 2>&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } &&
16244 { ac_try='test -s conftest$ac_exeext'
16245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16246 (eval $ac_try) 2>&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; }; then
16250 eval "$as_ac_var=yes"
16252 echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16255 eval "$as_ac_var=no"
16257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16261 if test `eval echo '${'$as_ac_var'}'` = yes; then
16262 cat >>confdefs.h <<_ACEOF
16263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16267 # strftime is in -lintl on SCO UNIX.
16268 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16269 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16270 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16271 echo $ECHO_N "(cached) $ECHO_C" >&6
16273 ac_check_lib_save_LIBS=$LIBS
16274 LIBS="-lintl $LIBS"
16275 cat >conftest.$ac_ext <<_ACEOF
16276 #line $LINENO "configure"
16279 cat confdefs.h >>conftest.$ac_ext
16280 cat >>conftest.$ac_ext <<_ACEOF
16281 /* end confdefs.h. */
16283 /* Override any gcc2 internal prototype to avoid an error. */
16287 /* We use char because int might match the return type of a gcc2
16288 builtin and then its argument prototype would still apply. */
16298 rm -f conftest.$ac_objext conftest$ac_exeext
16299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16300 (eval $ac_link) 2>&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } &&
16304 { ac_try='test -s conftest$ac_exeext'
16305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306 (eval $ac_try) 2>&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); }; }; then
16310 ac_cv_lib_intl_strftime=yes
16312 echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16315 ac_cv_lib_intl_strftime=no
16317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16318 LIBS=$ac_check_lib_save_LIBS
16320 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16321 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16322 if test $ac_cv_lib_intl_strftime = yes; then
16323 cat >>confdefs.h <<\_ACEOF
16324 #define HAVE_STRFTIME 1
16327 LIBS="-lintl $LIBS"
16334 for ac_func in vprintf
16336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16337 echo "$as_me:$LINENO: checking for $ac_func" >&5
16338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16339 if eval "test \"\${$as_ac_var+set}\" = set"; then
16340 echo $ECHO_N "(cached) $ECHO_C" >&6
16342 cat >conftest.$ac_ext <<_ACEOF
16343 #line $LINENO "configure"
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h. */
16349 /* System header to define __stub macros and hopefully few prototypes,
16350 which can conflict with char $ac_func (); below.
16351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16352 <limits.h> exists even on freestanding compilers. */
16354 # include <limits.h>
16356 # include <assert.h>
16358 /* Override any gcc2 internal prototype to avoid an error. */
16363 /* We use char because int might match the return type of a gcc2
16364 builtin and then its argument prototype would still apply. */
16366 /* The GNU C library defines this for functions which it implements
16367 to always fail with ENOSYS. Some functions are actually named
16368 something starting with __ and the normal name is an alias. */
16369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16372 char (*f) () = $ac_func;
16381 return f != $ac_func;
16386 rm -f conftest.$ac_objext conftest$ac_exeext
16387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16388 (eval $ac_link) 2>&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
16392 { ac_try='test -s conftest$ac_exeext'
16393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394 (eval $ac_try) 2>&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; }; then
16398 eval "$as_ac_var=yes"
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16403 eval "$as_ac_var=no"
16405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16409 if test `eval echo '${'$as_ac_var'}'` = yes; then
16410 cat >>confdefs.h <<_ACEOF
16411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16414 echo "$as_me:$LINENO: checking for _doprnt" >&5
16415 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16416 if test "${ac_cv_func__doprnt+set}" = set; then
16417 echo $ECHO_N "(cached) $ECHO_C" >&6
16419 cat >conftest.$ac_ext <<_ACEOF
16420 #line $LINENO "configure"
16423 cat confdefs.h >>conftest.$ac_ext
16424 cat >>conftest.$ac_ext <<_ACEOF
16425 /* end confdefs.h. */
16426 /* System header to define __stub macros and hopefully few prototypes,
16427 which can conflict with char _doprnt (); below.
16428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16429 <limits.h> exists even on freestanding compilers. */
16431 # include <limits.h>
16433 # include <assert.h>
16435 /* Override any gcc2 internal prototype to avoid an error. */
16440 /* We use char because int might match the return type of a gcc2
16441 builtin and then its argument prototype would still apply. */
16443 /* The GNU C library defines this for functions which it implements
16444 to always fail with ENOSYS. Some functions are actually named
16445 something starting with __ and the normal name is an alias. */
16446 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16449 char (*f) () = _doprnt;
16458 return f != _doprnt;
16463 rm -f conftest.$ac_objext conftest$ac_exeext
16464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16465 (eval $ac_link) 2>&5
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); } &&
16469 { ac_try='test -s conftest$ac_exeext'
16470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471 (eval $ac_try) 2>&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; }; then
16475 ac_cv_func__doprnt=yes
16477 echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16480 ac_cv_func__doprnt=no
16482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16484 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16485 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16486 if test $ac_cv_func__doprnt = yes; then
16488 cat >>confdefs.h <<\_ACEOF
16489 #define HAVE_DOPRNT 1
16498 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16499 # for constant arguments. Useless!
16500 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16501 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16502 if test "${ac_cv_working_alloca_h+set}" = set; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16505 cat >conftest.$ac_ext <<_ACEOF
16506 #line $LINENO "configure"
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h. */
16512 #include <alloca.h>
16516 char *p = (char *) alloca (2 * sizeof (int));
16521 rm -f conftest.$ac_objext conftest$ac_exeext
16522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16523 (eval $ac_link) 2>&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); } &&
16527 { ac_try='test -s conftest$ac_exeext'
16528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16529 (eval $ac_try) 2>&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; }; then
16533 ac_cv_working_alloca_h=yes
16535 echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16538 ac_cv_working_alloca_h=no
16540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16542 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16543 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16544 if test $ac_cv_working_alloca_h = yes; then
16546 cat >>confdefs.h <<\_ACEOF
16547 #define HAVE_ALLOCA_H 1
16552 echo "$as_me:$LINENO: checking for alloca" >&5
16553 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16554 if test "${ac_cv_func_alloca_works+set}" = set; then
16555 echo $ECHO_N "(cached) $ECHO_C" >&6
16557 cat >conftest.$ac_ext <<_ACEOF
16558 #line $LINENO "configure"
16561 cat confdefs.h >>conftest.$ac_ext
16562 cat >>conftest.$ac_ext <<_ACEOF
16563 /* end confdefs.h. */
16565 # define alloca __builtin_alloca
16568 # include <malloc.h>
16569 # define alloca _alloca
16572 # include <alloca.h>
16577 # ifndef alloca /* predefined by HP cc +Olibcalls */
16588 char *p = (char *) alloca (1);
16593 rm -f conftest.$ac_objext conftest$ac_exeext
16594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16595 (eval $ac_link) 2>&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } &&
16599 { ac_try='test -s conftest$ac_exeext'
16600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16601 (eval $ac_try) 2>&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; }; then
16605 ac_cv_func_alloca_works=yes
16607 echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16610 ac_cv_func_alloca_works=no
16612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16614 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16615 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16617 if test $ac_cv_func_alloca_works = yes; then
16619 cat >>confdefs.h <<\_ACEOF
16620 #define HAVE_ALLOCA 1
16624 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16625 # that cause trouble. Some versions do not even contain alloca or
16626 # contain a buggy version. If you still want to use their alloca,
16627 # use ar to extract alloca.o from them instead of compiling alloca.c.
16629 ALLOCA=alloca.$ac_objext
16631 cat >>confdefs.h <<\_ACEOF
16636 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16637 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16638 if test "${ac_cv_os_cray+set}" = set; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16641 cat >conftest.$ac_ext <<_ACEOF
16642 #line $LINENO "configure"
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h. */
16648 #if defined(CRAY) && ! defined(CRAY2)
16655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16656 $EGREP "webecray" >/dev/null 2>&1; then
16664 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16665 echo "${ECHO_T}$ac_cv_os_cray" >&6
16666 if test $ac_cv_os_cray = yes; then
16667 for ac_func in _getb67 GETB67 getb67; do
16668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16669 echo "$as_me:$LINENO: checking for $ac_func" >&5
16670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16671 if eval "test \"\${$as_ac_var+set}\" = set"; then
16672 echo $ECHO_N "(cached) $ECHO_C" >&6
16674 cat >conftest.$ac_ext <<_ACEOF
16675 #line $LINENO "configure"
16678 cat confdefs.h >>conftest.$ac_ext
16679 cat >>conftest.$ac_ext <<_ACEOF
16680 /* end confdefs.h. */
16681 /* System header to define __stub macros and hopefully few prototypes,
16682 which can conflict with char $ac_func (); below.
16683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16684 <limits.h> exists even on freestanding compilers. */
16686 # include <limits.h>
16688 # include <assert.h>
16690 /* Override any gcc2 internal prototype to avoid an error. */
16695 /* We use char because int might match the return type of a gcc2
16696 builtin and then its argument prototype would still apply. */
16698 /* The GNU C library defines this for functions which it implements
16699 to always fail with ENOSYS. Some functions are actually named
16700 something starting with __ and the normal name is an alias. */
16701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16704 char (*f) () = $ac_func;
16713 return f != $ac_func;
16718 rm -f conftest.$ac_objext conftest$ac_exeext
16719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16720 (eval $ac_link) 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } &&
16724 { ac_try='test -s conftest$ac_exeext'
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; }; then
16730 eval "$as_ac_var=yes"
16732 echo "$as_me: failed program was:" >&5
16733 sed 's/^/| /' conftest.$ac_ext >&5
16735 eval "$as_ac_var=no"
16737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16741 if test `eval echo '${'$as_ac_var'}'` = yes; then
16743 cat >>confdefs.h <<_ACEOF
16744 #define CRAY_STACKSEG_END $ac_func
16753 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16754 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16755 if test "${ac_cv_c_stack_direction+set}" = set; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16758 if test "$cross_compiling" = yes; then
16759 ac_cv_c_stack_direction=0
16761 cat >conftest.$ac_ext <<_ACEOF
16762 #line $LINENO "configure"
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16769 find_stack_direction ()
16771 static char *addr = 0;
16776 return find_stack_direction ();
16779 return (&dummy > addr) ? 1 : -1;
16785 exit (find_stack_direction () < 0);
16788 rm -f conftest$ac_exeext
16789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16790 (eval $ac_link) 2>&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795 (eval $ac_try) 2>&5
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; }; then
16799 ac_cv_c_stack_direction=1
16801 echo "$as_me: program exited with status $ac_status" >&5
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16805 ( exit $ac_status )
16806 ac_cv_c_stack_direction=-1
16808 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16811 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16812 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16814 cat >>confdefs.h <<_ACEOF
16815 #define STACK_DIRECTION $ac_cv_c_stack_direction
16821 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16822 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16823 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16824 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16825 echo $ECHO_N "(cached) $ECHO_C" >&6
16827 ac_check_lib_save_LIBS=$LIBS
16829 cat >conftest.$ac_ext <<_ACEOF
16830 #line $LINENO "configure"
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h. */
16837 /* Override any gcc2 internal prototype to avoid an error. */
16841 /* We use char because int might match the return type of a gcc2
16842 builtin and then its argument prototype would still apply. */
16852 rm -f conftest.$ac_objext conftest$ac_exeext
16853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16854 (eval $ac_link) 2>&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } &&
16858 { ac_try='test -s conftest$ac_exeext'
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 ac_cv_lib_sun_getmntent=yes
16866 echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16869 ac_cv_lib_sun_getmntent=no
16871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16872 LIBS=$ac_check_lib_save_LIBS
16874 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16875 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16876 if test $ac_cv_lib_sun_getmntent = yes; then
16879 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16880 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16881 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16884 ac_check_lib_save_LIBS=$LIBS
16886 cat >conftest.$ac_ext <<_ACEOF
16887 #line $LINENO "configure"
16890 cat confdefs.h >>conftest.$ac_ext
16891 cat >>conftest.$ac_ext <<_ACEOF
16892 /* end confdefs.h. */
16894 /* Override any gcc2 internal prototype to avoid an error. */
16898 /* We use char because int might match the return type of a gcc2
16899 builtin and then its argument prototype would still apply. */
16909 rm -f conftest.$ac_objext conftest$ac_exeext
16910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16911 (eval $ac_link) 2>&5
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); } &&
16915 { ac_try='test -s conftest$ac_exeext'
16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917 (eval $ac_try) 2>&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; }; then
16921 ac_cv_lib_seq_getmntent=yes
16923 echo "$as_me: failed program was:" >&5
16924 sed 's/^/| /' conftest.$ac_ext >&5
16926 ac_cv_lib_seq_getmntent=no
16928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16929 LIBS=$ac_check_lib_save_LIBS
16931 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16932 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16933 if test $ac_cv_lib_seq_getmntent = yes; then
16936 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16937 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16938 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16941 ac_check_lib_save_LIBS=$LIBS
16943 cat >conftest.$ac_ext <<_ACEOF
16944 #line $LINENO "configure"
16947 cat confdefs.h >>conftest.$ac_ext
16948 cat >>conftest.$ac_ext <<_ACEOF
16949 /* end confdefs.h. */
16951 /* Override any gcc2 internal prototype to avoid an error. */
16955 /* We use char because int might match the return type of a gcc2
16956 builtin and then its argument prototype would still apply. */
16966 rm -f conftest.$ac_objext conftest$ac_exeext
16967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16968 (eval $ac_link) 2>&5
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); } &&
16972 { ac_try='test -s conftest$ac_exeext'
16973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974 (eval $ac_try) 2>&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; }; then
16978 ac_cv_lib_gen_getmntent=yes
16980 echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16983 ac_cv_lib_gen_getmntent=no
16985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16986 LIBS=$ac_check_lib_save_LIBS
16988 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16989 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16990 if test $ac_cv_lib_gen_getmntent = yes; then
16999 for ac_func in getmntent
17001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17002 echo "$as_me:$LINENO: checking for $ac_func" >&5
17003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17004 if eval "test \"\${$as_ac_var+set}\" = set"; then
17005 echo $ECHO_N "(cached) $ECHO_C" >&6
17007 cat >conftest.$ac_ext <<_ACEOF
17008 #line $LINENO "configure"
17011 cat confdefs.h >>conftest.$ac_ext
17012 cat >>conftest.$ac_ext <<_ACEOF
17013 /* end confdefs.h. */
17014 /* System header to define __stub macros and hopefully few prototypes,
17015 which can conflict with char $ac_func (); below.
17016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17017 <limits.h> exists even on freestanding compilers. */
17019 # include <limits.h>
17021 # include <assert.h>
17023 /* Override any gcc2 internal prototype to avoid an error. */
17028 /* We use char because int might match the return type of a gcc2
17029 builtin and then its argument prototype would still apply. */
17031 /* The GNU C library defines this for functions which it implements
17032 to always fail with ENOSYS. Some functions are actually named
17033 something starting with __ and the normal name is an alias. */
17034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17037 char (*f) () = $ac_func;
17046 return f != $ac_func;
17051 rm -f conftest.$ac_objext conftest$ac_exeext
17052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17053 (eval $ac_link) 2>&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } &&
17057 { ac_try='test -s conftest$ac_exeext'
17058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059 (eval $ac_try) 2>&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; }; then
17063 eval "$as_ac_var=yes"
17065 echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17068 eval "$as_ac_var=no"
17070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17073 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17074 if test `eval echo '${'$as_ac_var'}'` = yes; then
17075 cat >>confdefs.h <<_ACEOF
17076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17083 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17084 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17085 if test "${ac_cv_func_closedir_void+set}" = set; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17088 if test "$cross_compiling" = yes; then
17089 ac_cv_func_closedir_void=yes
17091 cat >conftest.$ac_ext <<_ACEOF
17092 #line $LINENO "configure"
17095 cat confdefs.h >>conftest.$ac_ext
17096 cat >>conftest.$ac_ext <<_ACEOF
17097 /* end confdefs.h. */
17098 $ac_includes_default
17099 #include <$ac_header_dirent>
17100 #ifndef __cplusplus
17107 exit (closedir (opendir (".")) != 0);
17112 rm -f conftest$ac_exeext
17113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17114 (eval $ac_link) 2>&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17119 (eval $ac_try) 2>&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; }; then
17123 ac_cv_func_closedir_void=no
17125 echo "$as_me: program exited with status $ac_status" >&5
17126 echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17129 ( exit $ac_status )
17130 ac_cv_func_closedir_void=yes
17132 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17135 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17136 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17137 if test $ac_cv_func_closedir_void = yes; then
17139 cat >>confdefs.h <<\_ACEOF
17140 #define CLOSEDIR_VOID 1
17145 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17146 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17147 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 if test "$cross_compiling" = yes; then
17151 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17152 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17153 { (exit 1); exit 1; }; }
17155 cat >conftest.$ac_ext <<_ACEOF
17156 #line $LINENO "configure"
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17163 # include <unistd.h>
17169 /* If this system has a BSD-style setpgrp which takes arguments,
17170 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17171 exit successfully. */
17172 exit (setpgrp (1,1) == -1 ? 0 : 1);
17177 rm -f conftest$ac_exeext
17178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17179 (eval $ac_link) 2>&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17184 (eval $ac_try) 2>&5
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; }; then
17188 ac_cv_func_setpgrp_void=no
17190 echo "$as_me: program exited with status $ac_status" >&5
17191 echo "$as_me: failed program was:" >&5
17192 sed 's/^/| /' conftest.$ac_ext >&5
17194 ( exit $ac_status )
17195 ac_cv_func_setpgrp_void=yes
17197 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17200 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17201 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17202 if test $ac_cv_func_setpgrp_void = yes; then
17204 cat >>confdefs.h <<\_ACEOF
17205 #define SETPGRP_VOID 1
17209 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17210 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17211 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17212 echo $ECHO_N "(cached) $ECHO_C" >&6
17214 # Some versions of Solaris, SCO, and the GNU C Library
17215 # have a broken or incompatible fnmatch.
17216 # So we run a test program. If we are cross-compiling, take no chance.
17217 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17218 if test "$cross_compiling" = yes; then
17219 ac_cv_func_fnmatch_works=cross
17221 cat >conftest.$ac_ext <<_ACEOF
17222 #line $LINENO "configure"
17225 cat confdefs.h >>conftest.$ac_ext
17226 cat >>conftest.$ac_ext <<_ACEOF
17227 /* end confdefs.h. */
17228 #include <fnmatch.h>
17229 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17230 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17236 (!(y ("a*", "abc", 0)
17237 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17238 && y ("a\\\\bc", "abc", 0)
17239 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17240 && y ("*x", ".x", 0)
17241 && n ("*x", ".x", FNM_PERIOD)
17247 rm -f conftest$ac_exeext
17248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17249 (eval $ac_link) 2>&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17258 ac_cv_func_fnmatch_works=yes
17260 echo "$as_me: program exited with status $ac_status" >&5
17261 echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.$ac_ext >&5
17264 ( exit $ac_status )
17265 ac_cv_func_fnmatch_works=no
17267 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17270 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17271 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17272 if test $ac_cv_func_fnmatch_works = yes; then
17274 cat >>confdefs.h <<\_ACEOF
17275 #define HAVE_FNMATCH 1
17284 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17285 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17286 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17289 ac_check_lib_save_LIBS=$LIBS
17290 LIBS="-lxpg4 $LIBS"
17291 cat >conftest.$ac_ext <<_ACEOF
17292 #line $LINENO "configure"
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h. */
17299 /* Override any gcc2 internal prototype to avoid an error. */
17303 /* We use char because int might match the return type of a gcc2
17304 builtin and then its argument prototype would still apply. */
17314 rm -f conftest.$ac_objext conftest$ac_exeext
17315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17316 (eval $ac_link) 2>&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try='test -s conftest$ac_exeext'
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; }; then
17326 ac_cv_lib_xpg4_setlocale=yes
17328 echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17331 ac_cv_lib_xpg4_setlocale=no
17333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17334 LIBS=$ac_check_lib_save_LIBS
17336 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17337 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17338 if test $ac_cv_lib_xpg4_setlocale = yes; then
17339 LIBS="$LIBS -lxpg4"
17345 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17346 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17347 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17350 ac_check_lib_save_LIBS=$LIBS
17352 cat >conftest.$ac_ext <<_ACEOF
17353 #line $LINENO "configure"
17356 cat confdefs.h >>conftest.$ac_ext
17357 cat >>conftest.$ac_ext <<_ACEOF
17358 /* end confdefs.h. */
17360 /* Override any gcc2 internal prototype to avoid an error. */
17364 /* We use char because int might match the return type of a gcc2
17365 builtin and then its argument prototype would still apply. */
17375 rm -f conftest.$ac_objext conftest$ac_exeext
17376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17377 (eval $ac_link) 2>&5
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); } &&
17381 { ac_try='test -s conftest$ac_exeext'
17382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383 (eval $ac_try) 2>&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; }; then
17387 ac_cv_lib_sun_getpwnam=yes
17389 echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17392 ac_cv_lib_sun_getpwnam=no
17394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17395 LIBS=$ac_check_lib_save_LIBS
17397 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17398 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17399 if test $ac_cv_lib_sun_getpwnam = yes; then
17400 cat >>confdefs.h <<_ACEOF
17401 #define HAVE_LIBSUN 1
17410 for ac_header in zlib.h
17412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17414 echo "$as_me:$LINENO: checking for $ac_header" >&5
17415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17422 # Is the header compilable?
17423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17425 cat >conftest.$ac_ext <<_ACEOF
17426 #line $LINENO "configure"
17429 cat confdefs.h >>conftest.$ac_ext
17430 cat >>conftest.$ac_ext <<_ACEOF
17431 /* end confdefs.h. */
17432 $ac_includes_default
17433 #include <$ac_header>
17435 rm -f conftest.$ac_objext
17436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17437 (eval $ac_compile) 2>&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } &&
17441 { ac_try='test -s conftest.$ac_objext'
17442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443 (eval $ac_try) 2>&5
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; }; then
17447 ac_header_compiler=yes
17449 echo "$as_me: failed program was:" >&5
17450 sed 's/^/| /' conftest.$ac_ext >&5
17452 ac_header_compiler=no
17454 rm -f conftest.$ac_objext conftest.$ac_ext
17455 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17456 echo "${ECHO_T}$ac_header_compiler" >&6
17458 # Is the header present?
17459 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17461 cat >conftest.$ac_ext <<_ACEOF
17462 #line $LINENO "configure"
17465 cat confdefs.h >>conftest.$ac_ext
17466 cat >>conftest.$ac_ext <<_ACEOF
17467 /* end confdefs.h. */
17468 #include <$ac_header>
17470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17473 grep -v '^ *+' conftest.er1 >conftest.err
17475 cat conftest.err >&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); } >/dev/null; then
17478 if test -s conftest.err; then
17479 ac_cpp_err=$ac_c_preproc_warn_flag
17486 if test -z "$ac_cpp_err"; then
17487 ac_header_preproc=yes
17489 echo "$as_me: failed program was:" >&5
17490 sed 's/^/| /' conftest.$ac_ext >&5
17492 ac_header_preproc=no
17494 rm -f conftest.err conftest.$ac_ext
17495 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17496 echo "${ECHO_T}$ac_header_preproc" >&6
17498 # So? What about this header?
17499 case $ac_header_compiler:$ac_header_preproc in
17501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17507 ## ------------------------------------ ##
17508 ## Report this to bug-autoconf@gnu.org. ##
17509 ## ------------------------------------ ##
17512 sed "s/^/$as_me: WARNING: /" >&2
17515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17523 ## ------------------------------------ ##
17524 ## Report this to bug-autoconf@gnu.org. ##
17525 ## ------------------------------------ ##
17528 sed "s/^/$as_me: WARNING: /" >&2
17531 echo "$as_me:$LINENO: checking for $ac_header" >&5
17532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17534 echo $ECHO_N "(cached) $ECHO_C" >&6
17536 eval "$as_ac_Header=$ac_header_preproc"
17538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17543 cat >>confdefs.h <<_ACEOF
17544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17551 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17552 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17553 if test "${ac_cv_lib_z_deflate+set}" = set; then
17554 echo $ECHO_N "(cached) $ECHO_C" >&6
17556 ac_check_lib_save_LIBS=$LIBS
17558 cat >conftest.$ac_ext <<_ACEOF
17559 #line $LINENO "configure"
17562 cat confdefs.h >>conftest.$ac_ext
17563 cat >>conftest.$ac_ext <<_ACEOF
17564 /* end confdefs.h. */
17566 /* Override any gcc2 internal prototype to avoid an error. */
17570 /* We use char because int might match the return type of a gcc2
17571 builtin and then its argument prototype would still apply. */
17581 rm -f conftest.$ac_objext conftest$ac_exeext
17582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17583 (eval $ac_link) 2>&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); } &&
17587 { ac_try='test -s conftest$ac_exeext'
17588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589 (eval $ac_try) 2>&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; }; then
17593 ac_cv_lib_z_deflate=yes
17595 echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17598 ac_cv_lib_z_deflate=no
17600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17601 LIBS=$ac_check_lib_save_LIBS
17603 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17604 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17605 if test $ac_cv_lib_z_deflate = yes; then
17610 if test x$FDLIBS = x-lz; then
17611 cat >>confdefs.h <<\_ACEOF
17612 #define HAVE_LIBZ 1
17618 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17619 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17620 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17621 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17624 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17625 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17627 # Is the header compilable?
17628 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
17629 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
17630 cat >conftest.$ac_ext <<_ACEOF
17631 #line $LINENO "configure"
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h. */
17637 $ac_includes_default
17638 #include <sys/acl.h>
17640 rm -f conftest.$ac_objext
17641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17642 (eval $ac_compile) 2>&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try='test -s conftest.$ac_objext'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; }; then
17652 ac_header_compiler=yes
17654 echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17657 ac_header_compiler=no
17659 rm -f conftest.$ac_objext conftest.$ac_ext
17660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17661 echo "${ECHO_T}$ac_header_compiler" >&6
17663 # Is the header present?
17664 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
17665 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
17666 cat >conftest.$ac_ext <<_ACEOF
17667 #line $LINENO "configure"
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h. */
17673 #include <sys/acl.h>
17675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17678 grep -v '^ *+' conftest.er1 >conftest.err
17680 cat conftest.err >&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); } >/dev/null; then
17683 if test -s conftest.err; then
17684 ac_cpp_err=$ac_c_preproc_warn_flag
17691 if test -z "$ac_cpp_err"; then
17692 ac_header_preproc=yes
17694 echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17697 ac_header_preproc=no
17699 rm -f conftest.err conftest.$ac_ext
17700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17701 echo "${ECHO_T}$ac_header_preproc" >&6
17703 # So? What about this header?
17704 case $ac_header_compiler:$ac_header_preproc in
17706 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17707 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17708 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17709 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17712 ## ------------------------------------ ##
17713 ## Report this to bug-autoconf@gnu.org. ##
17714 ## ------------------------------------ ##
17717 sed "s/^/$as_me: WARNING: /" >&2
17720 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
17721 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
17722 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
17723 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
17724 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17725 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17728 ## ------------------------------------ ##
17729 ## Report this to bug-autoconf@gnu.org. ##
17730 ## ------------------------------------ ##
17733 sed "s/^/$as_me: WARNING: /" >&2
17736 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17737 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17738 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17739 echo $ECHO_N "(cached) $ECHO_C" >&6
17741 ac_cv_header_sys_acl_h=$ac_header_preproc
17743 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17744 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17749 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
17750 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
17751 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
17754 ac_check_lib_save_LIBS=$LIBS
17756 cat >conftest.$ac_ext <<_ACEOF
17757 #line $LINENO "configure"
17760 cat confdefs.h >>conftest.$ac_ext
17761 cat >>conftest.$ac_ext <<_ACEOF
17762 /* end confdefs.h. */
17764 /* Override any gcc2 internal prototype to avoid an error. */
17768 /* We use char because int might match the return type of a gcc2
17769 builtin and then its argument prototype would still apply. */
17770 char acl_get_file ();
17779 rm -f conftest.$ac_objext conftest$ac_exeext
17780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17781 (eval $ac_link) 2>&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); } &&
17785 { ac_try='test -s conftest$ac_exeext'
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; }; then
17791 ac_cv_lib_acl_acl_get_file=yes
17793 echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17796 ac_cv_lib_acl_acl_get_file=no
17798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17799 LIBS=$ac_check_lib_save_LIBS
17801 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
17802 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
17803 if test $ac_cv_lib_acl_acl_get_file = yes; then
17804 FDLIBS="-lacl $FDLIBS"
17808 if test $ac_cv_lib_acl_acl_get_file = yes; then
17809 cat >>confdefs.h <<\_ACEOF
17817 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17818 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17819 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17820 echo $ECHO_N "(cached) $ECHO_C" >&6
17822 ac_check_lib_save_LIBS=$LIBS
17823 LIBS="-lpthread $LIBS"
17824 cat >conftest.$ac_ext <<_ACEOF
17825 #line $LINENO "configure"
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h. */
17832 /* Override any gcc2 internal prototype to avoid an error. */
17836 /* We use char because int might match the return type of a gcc2
17837 builtin and then its argument prototype would still apply. */
17838 char pthread_create ();
17847 rm -f conftest.$ac_objext conftest$ac_exeext
17848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17849 (eval $ac_link) 2>&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); } &&
17853 { ac_try='test -s conftest$ac_exeext'
17854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; }; then
17859 ac_cv_lib_pthread_pthread_create=yes
17861 echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17864 ac_cv_lib_pthread_pthread_create=no
17866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17867 LIBS=$ac_check_lib_save_LIBS
17869 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17870 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17871 if test $ac_cv_lib_pthread_pthread_create = yes; then
17872 PTHREAD_LIB="-lpthread"
17874 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17875 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17876 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17877 echo $ECHO_N "(cached) $ECHO_C" >&6
17879 ac_check_lib_save_LIBS=$LIBS
17880 LIBS="-lpthreads $LIBS"
17881 cat >conftest.$ac_ext <<_ACEOF
17882 #line $LINENO "configure"
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h. */
17889 /* Override any gcc2 internal prototype to avoid an error. */
17893 /* We use char because int might match the return type of a gcc2
17894 builtin and then its argument prototype would still apply. */
17895 char pthread_create ();
17904 rm -f conftest.$ac_objext conftest$ac_exeext
17905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17906 (eval $ac_link) 2>&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); } &&
17910 { ac_try='test -s conftest$ac_exeext'
17911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912 (eval $ac_try) 2>&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; }; then
17916 ac_cv_lib_pthreads_pthread_create=yes
17918 echo "$as_me: failed program was:" >&5
17919 sed 's/^/| /' conftest.$ac_ext >&5
17921 ac_cv_lib_pthreads_pthread_create=no
17923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17924 LIBS=$ac_check_lib_save_LIBS
17926 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17927 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17928 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17929 PTHREAD_LIB="-lpthreads"
17931 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17932 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17933 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17934 echo $ECHO_N "(cached) $ECHO_C" >&6
17936 ac_check_lib_save_LIBS=$LIBS
17938 cat >conftest.$ac_ext <<_ACEOF
17939 #line $LINENO "configure"
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h. */
17946 /* Override any gcc2 internal prototype to avoid an error. */
17950 /* We use char because int might match the return type of a gcc2
17951 builtin and then its argument prototype would still apply. */
17952 char pthread_create ();
17961 rm -f conftest.$ac_objext conftest$ac_exeext
17962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17963 (eval $ac_link) 2>&5
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); } &&
17967 { ac_try='test -s conftest$ac_exeext'
17968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17969 (eval $ac_try) 2>&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); }; }; then
17973 ac_cv_lib_c_r_pthread_create=yes
17975 echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17978 ac_cv_lib_c_r_pthread_create=no
17980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17981 LIBS=$ac_check_lib_save_LIBS
17983 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17984 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17985 if test $ac_cv_lib_c_r_pthread_create = yes; then
17986 PTHREAD_LIB="-lc_r"
17988 echo "$as_me:$LINENO: checking for pthread_create" >&5
17989 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17990 if test "${ac_cv_func_pthread_create+set}" = set; then
17991 echo $ECHO_N "(cached) $ECHO_C" >&6
17993 cat >conftest.$ac_ext <<_ACEOF
17994 #line $LINENO "configure"
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h. */
18000 /* System header to define __stub macros and hopefully few prototypes,
18001 which can conflict with char pthread_create (); below.
18002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18003 <limits.h> exists even on freestanding compilers. */
18005 # include <limits.h>
18007 # include <assert.h>
18009 /* Override any gcc2 internal prototype to avoid an error. */
18014 /* We use char because int might match the return type of a gcc2
18015 builtin and then its argument prototype would still apply. */
18016 char pthread_create ();
18017 /* The GNU C library defines this for functions which it implements
18018 to always fail with ENOSYS. Some functions are actually named
18019 something starting with __ and the normal name is an alias. */
18020 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18023 char (*f) () = pthread_create;
18032 return f != pthread_create;
18037 rm -f conftest.$ac_objext conftest$ac_exeext
18038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18039 (eval $ac_link) 2>&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); } &&
18043 { ac_try='test -s conftest$ac_exeext'
18044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18045 (eval $ac_try) 2>&5
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); }; }; then
18049 ac_cv_func_pthread_create=yes
18051 echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18054 ac_cv_func_pthread_create=no
18056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18058 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18059 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18072 cat >>confdefs.h <<\_ACEOF
18078 CFLAGS=${CFLAGS--O}
18079 LDFLAGS=${LDFLAGS--O}
18080 DB_LIBS="${SQL_LFLAGS}"
18082 CPPFLAGS="$CPPFLAGS"
18107 # Finally we set appropriate distribution specific
18108 # variables and defaults
18110 # PFILES are platform specific files
18111 PFILES="platforms/Makefile"
18115 hostname=`uname -n | cut -d '.' -f 1`
18116 case "$DISTNAME" in
18119 PSCMD="ps -e -o pid,comm"
18120 PFILES="${PFILES} \
18121 platforms/aix/Makefile"
18122 TAPEDRIVE="/dev/rmt0.1"
18126 PTHREAD_LIB="-lpthread -lexc"
18127 if test "${CC}" = "gcc" ; then
18134 TAPEDRIVE="/dev/nrmt0"
18137 DISTVER=`uname -a |awk '{print $3}'`
18138 TAPEDRIVE="/dev/nrmt0"
18139 PTHREAD_LIB="-pthread"
18140 CFLAGS="${CFLAGS} -pthread"
18141 PSCMD="ps -x -o pid,command"
18144 PFILES="${PFILES} \
18145 platforms/bsdi/Makefile \
18146 platforms/bsdi/bacula-fd \
18147 platforms/bsdi/bacula-sd \
18148 platforms/bsdi/bacula-dir"
18149 largefile_support="yes"
18152 DISTVER=`uname -a |awk '{print $3}'`
18153 TAPEDRIVE="/dev/nrst0"
18155 WCFLAGS="-mwindows"
18156 WLDFLAGS="-mwindows"
18160 TAPEDRIVE="/dev/nst0"
18161 PSCMD="ps -e -o pid,command"
18163 PFILES="${PFILES} \
18164 platforms/darwin/Makefile"
18167 DISTVER=`cat /etc/debian_version`
18168 TAPEDRIVE="/dev/nrst0"
18169 PSCMD="ps -e -o pid,command"
18172 DISTVER=`uname -a |awk '{print $3}'`
18173 VER=`echo $DISTVER | cut -c 1`
18174 if test x$VER = x4 ; then
18175 PTHREAD_LIB="-pthread"
18176 CFLAGS="${CFLAGS} -pthread"
18180 TAPEDRIVE="/dev/nrsa0"
18181 PSCMD="ps -x -o pid,command"
18182 PFILES="${PFILES} \
18183 platforms/freebsd/Makefile \
18184 platforms/freebsd/bacula-fd \
18185 platforms/freebsd/bacula-sd \
18186 platforms/freebsd/bacula-dir"
18187 largefile_support="yes"
18190 PSCMD="UNIX95=1 ps -e -o pid,comm"
18191 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18193 TAPEDRIVE="/dev/rmt/0hnb"
18197 TAPEDRIVE="/dev/rmt/0cbn"
18198 PSCMD="ps -e -o pid,comm"
18199 PFILES="${PFILES} \
18200 platforms/irix/Makefile \
18201 platforms/irix/bacula-fd \
18202 platforms/irix/bacula-sd \
18203 platforms/irix/bacula-dir"
18206 DISTVER=`uname -a |awk '{print $3}'`
18209 TAPEDRIVE="/dev/nrst0"
18210 PSCMD="ps -a -o pid,command"
18211 PTHREAD_LIB="-pthread"
18212 CFLAGS="${CFLAGS} -pthread"
18215 DISTVER=`uname -a |awk '{print $3}'`
18218 TAPEDRIVE="/dev/nrst0"
18219 PSCMD="ps -a -o pid,command"
18220 PTHREAD_LIB="-pthread"
18221 CFLAGS="${CFLAGS} -pthread"
18222 PFILES="${PFILES} \
18223 platforms/openbsd/Makefile \
18224 platforms/openbsd/bacula-fd \
18225 platforms/openbsd/bacula-sd \
18226 platforms/openbsd/bacula-dir"
18229 if test -f /etc/whitebox-release ; then
18230 f=/etc/whitebox-release
18232 f=/etc/redhat-release
18234 if test `cat $f | grep release |\
18235 cut -f 3 -d ' '`x = "Enterprise"x ; then
18236 DISTVER="Enterprise "`cat $f | grep release |\
18239 DISTVER=`cat /etc/redhat-release | grep release |\
18242 TAPEDRIVE="/dev/nst0"
18243 PSCMD="ps -e -o pid,command"
18244 PFILES="${PFILES} \
18245 platforms/redhat/Makefile \
18246 platforms/redhat/bacula-fd \
18247 platforms/redhat/bacula-sd \
18248 platforms/redhat/bacula-dir \
18249 platforms/redhat/bacula.spec \
18251 hostname=`hostname -s`
18254 DISTVER=`cat /etc/mandrake-release | grep release |\
18256 TAPEDRIVE="/dev/nst0"
18257 PSCMD="ps -e -o pid,command"
18258 PFILES="${PFILES} \
18259 platforms/mandrake/Makefile \
18260 platforms/mandrake/bacula-fd \
18261 platforms/mandrake/bacula-sd \
18262 platforms/mandrake/bacula-dir \
18263 platforms/mandrake/bacula.spec \
18267 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18268 TAPEDRIVE="/dev/nst0"
18269 PSCMD="ps -e -o pid,command"
18270 PFILES="${PFILES} \
18271 platforms/gentoo/Makefile \
18272 platforms/gentoo/bacula-fd \
18273 platforms/gentoo/bacula-sd \
18274 platforms/gentoo/bacula-dir"
18277 DISTVER=`cat /etc/slackware-version`
18278 TAPEDRIVE="/dev/nst0"
18279 PSCMD="ps -e -o pid,command"
18280 PFILES="${PFILES} \
18281 platforms/slackware/Makefile \
18282 platforms/slackware/rc.bacula-fd \
18283 platforms/slackware/rc.bacula-sd \
18284 platforms/slackware/rc.bacula-dir\
18285 platforms/slackware/functions.bacula"
18289 TAPEDRIVE="/dev/rmt/0cbn"
18290 PSCMD="ps -e -o pid,comm"
18291 PFILES="${PFILES} \
18292 platforms/solaris/Makefile \
18293 platforms/solaris/bacula-fd \
18294 platforms/solaris/bacula-sd \
18295 platforms/solaris/bacula-dir"
18296 if test x$DISTVER = x5.6 ; then
18297 cat >>confdefs.h <<\_ACEOF
18298 #define HAVE_OLD_SOCKOPT 1
18304 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18306 TAPEDRIVE="/dev/nst0"
18307 PSCMD="ps -e -o pid,command"
18308 PFILES="${PFILES} \
18309 platforms/suse/Makefile \
18310 platforms/suse/bacula-fd \
18311 platforms/suse/bacula-sd \
18312 platforms/suse/bacula-dir \
18313 platforms/suse/bacula \
18314 platforms/suse/bacula.spec"
18319 TAPEDRIVE="/dev/nst0"
18320 PSCMD="ps -e -o pid,command"
18321 PFILES="${PFILES} \
18322 platforms/suse/Makefile \
18323 platforms/suse/bacula-fd \
18324 platforms/suse/bacula-sd \
18325 platforms/suse/bacula-dir"
18329 TAPEDRIVE="/dev/nst0"
18332 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18338 LIBS="$PTHREAD_LIB $LIBS"
18340 cat >>confdefs.h <<_ACEOF
18344 cat >>confdefs.h <<_ACEOF
18355 MCOMMON=./autoconf/Make.common
18358 if test "x${subsysdir}" = "x${sbindir}" ; then
18361 echo "You have set both --sbindir and --with-subsys-dir"
18362 echo " equal to: ${subsysdir} "
18363 echo "This is not permitted. Please reconfigure."
18365 echo "Aborting configuration ..."
18371 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
18372 ac_config_commands="$ac_config_commands default"
18373 cat >confcache <<\_ACEOF
18374 # This file is a shell script that caches the results of configure
18375 # tests run on this system so they can be shared between configure
18376 # scripts and configure runs, see configure's option --config-cache.
18377 # It is not useful on other systems. If it contains results you don't
18378 # want to keep, you may remove or edit it.
18380 # config.status only pays attention to the cache file if you give it
18381 # the --recheck option to rerun configure.
18383 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18384 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18385 # following values.
18389 # The following way of writing the cache mishandles newlines in values,
18390 # but we know of no workaround that is simple, portable, and efficient.
18391 # So, don't put newlines in cache variables' values.
18392 # Ultrix sh set writes to stderr and can't be redirected directly,
18393 # and sets the high bit in the cache file unless we assign to the vars.
18396 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18398 # `set' does not quote correctly, so add quotes (double-quote
18399 # substitution turns \\\\ into \\, and sed turns \\ into \).
18402 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18405 # `set' quotes correctly as required by POSIX, so do not add quotes.
18407 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18414 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18416 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18418 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18419 if test -w $cache_file; then
18420 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18421 cat confcache >$cache_file
18423 echo "not updating unwritable cache $cache_file"
18428 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18429 # Let make expand exec_prefix.
18430 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18432 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18433 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18434 # trailing colons and then remove the whole line if VPATH becomes empty
18435 # (actually we leave an empty line to preserve line numbers).
18436 if test "x$srcdir" = x.; then
18437 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18438 s/:*\$(srcdir):*/:/;
18439 s/:*\${srcdir}:*/:/;
18441 s/^\([^=]*=[ ]*\):*/\1/;
18447 DEFS=-DHAVE_CONFIG_H
18451 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18452 # 1. Remove the extension, and $U if already installed.
18453 ac_i=`echo "$ac_i" |
18454 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18456 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18457 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18459 LIBOBJS=$ac_libobjs
18461 LTLIBOBJS=$ac_ltlibobjs
18465 : ${CONFIG_STATUS=./config.status}
18466 ac_clean_files_save=$ac_clean_files
18467 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18468 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18469 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18470 cat >$CONFIG_STATUS <<_ACEOF
18472 # Generated by $as_me.
18473 # Run this file to recreate the current configuration.
18474 # Compiler output produced by configure, useful for debugging
18475 # configure, is in config.log if it exists.
18478 ac_cs_recheck=false
18480 SHELL=\${CONFIG_SHELL-$SHELL}
18483 cat >>$CONFIG_STATUS <<\_ACEOF
18484 ## --------------------- ##
18485 ## M4sh Initialization. ##
18486 ## --------------------- ##
18488 # Be Bourne compatible
18489 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18492 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18493 # is contrary to our usage. Disable this feature.
18494 alias -g '${1+"$@"}'='"$@"'
18495 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18499 # Support unset when possible.
18500 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18507 # Work around bugs in pre-3.0 UWIN ksh.
18508 $as_unset ENV MAIL MAILPATH
18515 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18516 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18517 LC_TELEPHONE LC_TIME
18519 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18520 eval $as_var=C; export $as_var
18526 # Required to use basename.
18527 if expr a : '\(a\)' >/dev/null 2>&1; then
18533 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18534 as_basename=basename
18540 # Name of the executable.
18541 as_me=`$as_basename "$0" ||
18542 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18543 X"$0" : 'X\(//\)$' \| \
18544 X"$0" : 'X\(/\)$' \| \
18545 . : '\(.\)' 2>/dev/null ||
18547 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18548 /^X\/\(\/\/\)$/{ s//\1/; q; }
18549 /^X\/\(\/\).*/{ s//\1/; q; }
18553 # PATH needs CR, and LINENO needs CR and PATH.
18554 # Avoid depending upon Character Ranges.
18555 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18556 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18557 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18558 as_cr_digits='0123456789'
18559 as_cr_alnum=$as_cr_Letters$as_cr_digits
18561 # The user is always right.
18562 if test "${PATH_SEPARATOR+set}" != set; then
18563 echo "#! /bin/sh" >conf$$.sh
18564 echo "exit 0" >>conf$$.sh
18566 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18575 as_lineno_1=$LINENO
18576 as_lineno_2=$LINENO
18577 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18578 test "x$as_lineno_1" != "x$as_lineno_2" &&
18579 test "x$as_lineno_3" = "x$as_lineno_2" || {
18580 # Find who we are. Look in the path if we contain no path at all
18583 *[\\/]* ) as_myself=$0 ;;
18584 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18585 for as_dir in $PATH
18588 test -z "$as_dir" && as_dir=.
18589 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18594 # We did not find ourselves, most probably we were run as `sh COMMAND'
18595 # in which case we are not to be found in the path.
18596 if test "x$as_myself" = x; then
18599 if test ! -f "$as_myself"; then
18600 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18601 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18602 { (exit 1); exit 1; }; }
18604 case $CONFIG_SHELL in
18606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18607 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18610 test -z "$as_dir" && as_dir=.
18611 for as_base in sh bash ksh sh5; do
18614 if ("$as_dir/$as_base" -c '
18615 as_lineno_1=$LINENO
18616 as_lineno_2=$LINENO
18617 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18618 test "x$as_lineno_1" != "x$as_lineno_2" &&
18619 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18620 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18621 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18622 CONFIG_SHELL=$as_dir/$as_base
18623 export CONFIG_SHELL
18624 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18632 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18633 # uniformly replaced by the line number. The first 'sed' inserts a
18634 # line-number line before each line; the second 'sed' does the real
18635 # work. The second script uses 'N' to pair each line-number line
18636 # with the numbered line, and appends trailing '-' during
18637 # substitution so that $LINENO is not a special case at line end.
18638 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18639 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18640 sed '=' <$as_myself |
18645 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18648 s,^['$as_cr_digits']*\n,,
18649 ' >$as_me.lineno &&
18650 chmod +x $as_me.lineno ||
18651 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18652 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18653 { (exit 1); exit 1; }; }
18655 # Don't try to exec as it changes $[0], causing all sort of problems
18656 # (the dirname of $[0] is not the place where we might find the
18657 # original and so on. Autoconf is especially sensible to this).
18659 # Exit status is that of the last command.
18664 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18665 *c*,-n*) ECHO_N= ECHO_C='
18667 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18668 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18671 if expr a : '\(a\)' >/dev/null 2>&1; then
18677 rm -f conf$$ conf$$.exe conf$$.file
18679 if ln -s conf$$.file conf$$ 2>/dev/null; then
18680 # We could just check for DJGPP; but this test a) works b) is more generic
18681 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18682 if test -f conf$$.exe; then
18683 # Don't use ln at all; we don't have any links
18688 elif ln conf$$.file conf$$ 2>/dev/null; then
18693 rm -f conf$$ conf$$.exe conf$$.file
18695 if mkdir -p . 2>/dev/null; then
18701 as_executable_p="test -f"
18703 # Sed expression to map a string onto a valid CPP name.
18704 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18706 # Sed expression to map a string onto a valid variable name.
18707 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18711 # We need space, tab and new line, in precisely that order.
18721 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18722 # report actual input values of CONFIG_FILES etc. instead of their
18723 # values after options handling. Logging --version etc. is OK.
18727 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18728 ## Running $as_me. ##
18733 This file was extended by $as_me, which was
18734 generated by GNU Autoconf 2.57. Invocation command line was
18736 CONFIG_FILES = $CONFIG_FILES
18737 CONFIG_HEADERS = $CONFIG_HEADERS
18738 CONFIG_LINKS = $CONFIG_LINKS
18739 CONFIG_COMMANDS = $CONFIG_COMMANDS
18743 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18747 # Files that config.status was made for.
18748 if test -n "$ac_config_files"; then
18749 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18752 if test -n "$ac_config_headers"; then
18753 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18756 if test -n "$ac_config_links"; then
18757 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18760 if test -n "$ac_config_commands"; then
18761 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18764 cat >>$CONFIG_STATUS <<\_ACEOF
18767 \`$as_me' instantiates files from templates according to the
18768 current configuration.
18770 Usage: $0 [OPTIONS] [FILE]...
18772 -h, --help print this help, then exit
18773 -V, --version print version number, then exit
18774 -q, --quiet do not print progress messages
18775 -d, --debug don't remove temporary files
18776 --recheck update $as_me by reconfiguring in the same conditions
18777 --file=FILE[:TEMPLATE]
18778 instantiate the configuration file FILE
18779 --header=FILE[:TEMPLATE]
18780 instantiate the configuration header FILE
18782 Configuration files:
18785 Configuration headers:
18788 Configuration commands:
18791 Report bugs to <bug-autoconf@gnu.org>."
18794 cat >>$CONFIG_STATUS <<_ACEOF
18797 configured by $0, generated by GNU Autoconf 2.57,
18798 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18800 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18801 Free Software Foundation, Inc.
18802 This config.status script is free software; the Free Software Foundation
18803 gives unlimited permission to copy, distribute and modify it."
18808 cat >>$CONFIG_STATUS <<\_ACEOF
18809 # If no file are specified by the user, then we need to provide default
18810 # value. By we need to know if files were specified by the user.
18816 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18817 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18825 *) # This is not an option, so the user has probably given explicit
18828 ac_need_defaults=false;;
18832 # Handling of the options.
18834 cat >>$CONFIG_STATUS <<\_ACEOF
18835 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18837 --version | --vers* | -V )
18838 echo "$ac_cs_version"; exit 0 ;;
18840 # Conflict between --help and --header
18841 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18842 Try \`$0 --help' for more information." >&5
18843 echo "$as_me: error: ambiguous option: $1
18844 Try \`$0 --help' for more information." >&2;}
18845 { (exit 1); exit 1; }; };;
18846 --help | --hel | -h )
18847 echo "$ac_cs_usage"; exit 0 ;;
18848 --debug | --d* | -d )
18850 --file | --fil | --fi | --f )
18852 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18853 ac_need_defaults=false;;
18854 --header | --heade | --head | --hea )
18856 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18857 ac_need_defaults=false;;
18858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18859 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18862 # This is an error.
18863 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18864 Try \`$0 --help' for more information." >&5
18865 echo "$as_me: error: unrecognized option: $1
18866 Try \`$0 --help' for more information." >&2;}
18867 { (exit 1); exit 1; }; } ;;
18869 *) ac_config_targets="$ac_config_targets $1" ;;
18875 ac_configure_extra_args=
18877 if $ac_cs_silent; then
18879 ac_configure_extra_args="$ac_configure_extra_args --silent"
18883 cat >>$CONFIG_STATUS <<_ACEOF
18884 if \$ac_cs_recheck; then
18885 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18886 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18895 cat >>$CONFIG_STATUS <<\_ACEOF
18896 for ac_config_target in $ac_config_targets
18898 case "$ac_config_target" in
18899 # Handling of arguments.
18900 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18901 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18902 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18903 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18904 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18905 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18906 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18907 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18908 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18909 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18910 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18911 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18912 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18913 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18914 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18915 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18916 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18917 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18918 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18919 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
18920 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
18921 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
18922 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
18923 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
18924 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18925 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18926 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18927 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18928 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18929 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18930 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18931 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18932 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18933 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18934 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
18935 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
18936 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18937 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18938 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18939 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18940 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18941 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18942 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18943 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18944 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18945 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18946 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18947 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18948 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18949 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18950 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18951 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18952 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18953 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18954 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18955 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18956 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18957 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18958 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18959 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18960 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18961 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18962 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18963 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18964 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18965 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18966 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18967 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18968 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18969 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18970 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18971 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18972 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18973 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18974 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18975 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18976 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18977 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18978 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18979 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18980 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18981 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
18982 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
18983 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
18984 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
18985 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
18986 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18987 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18988 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18989 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18990 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18991 { (exit 1); exit 1; }; };;
18995 # If the user did not use the arguments to specify the items to instantiate,
18996 # then the envvar interface is used. Set only those that are not.
18997 # We use the long form for the default assignment because of an extremely
18998 # bizarre bug on SunOS 4.1.3.
18999 if $ac_need_defaults; then
19000 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19001 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19002 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19005 # Have a temporary directory for convenience. Make it in the build tree
19006 # simply because there is no reason to put it here, and in addition,
19007 # creating and moving files from /tmp can sometimes cause problems.
19008 # Create a temporary directory, and hook for its removal unless debugging.
19011 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19012 trap '{ (exit 1); exit 1; }' 1 2 13 15
19015 # Create a (secure) tmp directory for tmp files.
19018 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19019 test -n "$tmp" && test -d "$tmp"
19022 tmp=./confstat$$-$RANDOM
19023 (umask 077 && mkdir $tmp)
19026 echo "$me: cannot create a temporary directory in ." >&2
19027 { (exit 1); exit 1; }
19032 cat >>$CONFIG_STATUS <<_ACEOF
19035 # CONFIG_FILES section.
19038 # No need to generate the scripts if there are no CONFIG_FILES.
19039 # This happens for instance when ./config.status config.h
19040 if test -n "\$CONFIG_FILES"; then
19041 # Protect against being on the right side of a sed subst in config.status.
19042 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19043 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19044 s,@SHELL@,$SHELL,;t t
19045 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19046 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19047 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19048 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19049 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19050 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19051 s,@exec_prefix@,$exec_prefix,;t t
19052 s,@prefix@,$prefix,;t t
19053 s,@program_transform_name@,$program_transform_name,;t t
19054 s,@bindir@,$bindir,;t t
19055 s,@sbindir@,$sbindir,;t t
19056 s,@libexecdir@,$libexecdir,;t t
19057 s,@datadir@,$datadir,;t t
19058 s,@sysconfdir@,$sysconfdir,;t t
19059 s,@sharedstatedir@,$sharedstatedir,;t t
19060 s,@localstatedir@,$localstatedir,;t t
19061 s,@libdir@,$libdir,;t t
19062 s,@includedir@,$includedir,;t t
19063 s,@oldincludedir@,$oldincludedir,;t t
19064 s,@infodir@,$infodir,;t t
19065 s,@mandir@,$mandir,;t t
19066 s,@build_alias@,$build_alias,;t t
19067 s,@host_alias@,$host_alias,;t t
19068 s,@target_alias@,$target_alias,;t t
19069 s,@DEFS@,$DEFS,;t t
19070 s,@ECHO_C@,$ECHO_C,;t t
19071 s,@ECHO_N@,$ECHO_N,;t t
19072 s,@ECHO_T@,$ECHO_T,;t t
19073 s,@LIBS@,$LIBS,;t t
19074 s,@BUILD_DIR@,$BUILD_DIR,;t t
19075 s,@TRUEPRG@,$TRUEPRG,;t t
19076 s,@FALSEPRG@,$FALSEPRG,;t t
19077 s,@VERSION@,$VERSION,;t t
19078 s,@DATE@,$DATE,;t t
19079 s,@LSMDATE@,$LSMDATE,;t t
19081 s,@CFLAGS@,$CFLAGS,;t t
19082 s,@LDFLAGS@,$LDFLAGS,;t t
19083 s,@CPPFLAGS@,$CPPFLAGS,;t t
19084 s,@ac_ct_CC@,$ac_ct_CC,;t t
19085 s,@EXEEXT@,$EXEEXT,;t t
19086 s,@OBJEXT@,$OBJEXT,;t t
19088 s,@CXXFLAGS@,$CXXFLAGS,;t t
19089 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19091 s,@EGREP@,$EGREP,;t t
19092 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19093 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19094 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19095 s,@RANLIB@,$RANLIB,;t t
19096 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19102 s,@ECHO@,$ECHO,;t t
19106 s,@OPENSSL@,$OPENSSL,;t t
19108 s,@PKGCONFIG@,$PKGCONFIG,;t t
19109 s,@WXCONFIG@,$WXCONFIG,;t t
19110 s,@ARFLAGS@,$ARFLAGS,;t t
19111 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19112 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19113 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19114 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19115 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19116 s,@build@,$build,;t t
19117 s,@build_cpu@,$build_cpu,;t t
19118 s,@build_vendor@,$build_vendor,;t t
19119 s,@build_os@,$build_os,;t t
19120 s,@host@,$host,;t t
19121 s,@host_cpu@,$host_cpu,;t t
19122 s,@host_vendor@,$host_vendor,;t t
19123 s,@host_os@,$host_os,;t t
19124 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19125 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19126 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19127 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19128 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19129 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19130 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19131 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19132 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19133 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19134 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19135 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19136 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19137 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19138 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19139 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19140 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19141 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19142 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19143 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19144 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19145 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19146 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19147 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19148 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19149 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19150 s,@MSGFMT@,$MSGFMT,;t t
19151 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19152 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19153 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19154 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19155 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19156 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19157 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19158 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19159 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19160 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19161 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19162 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19163 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19164 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19165 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19166 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19167 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19168 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19169 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19170 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19171 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19172 s,@GNOME_DIR@,$GNOME_DIR,;t t
19173 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19174 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19175 s,@WX_DIR@,$WX_DIR,;t t
19176 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19177 s,@STATIC_FD@,$STATIC_FD,;t t
19178 s,@STATIC_SD@,$STATIC_SD,;t t
19179 s,@STATIC_DIR@,$STATIC_DIR,;t t
19180 s,@STATIC_CONS@,$STATIC_CONS,;t t
19181 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19182 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19183 s,@ALL_DIRS@,$ALL_DIRS,;t t
19184 s,@CONS_INC@,$CONS_INC,;t t
19185 s,@CONS_OBJ@,$CONS_OBJ,;t t
19186 s,@CONS_SRC@,$CONS_SRC,;t t
19187 s,@CONS_LIBS@,$CONS_LIBS,;t t
19188 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19189 s,@READLINE_SRC@,$READLINE_SRC,;t t
19190 s,@working_dir@,$working_dir,;t t
19191 s,@scriptdir@,$scriptdir,;t t
19192 s,@dump_email@,$dump_email,;t t
19193 s,@job_email@,$job_email,;t t
19194 s,@smtp_host@,$smtp_host,;t t
19195 s,@piddir@,$piddir,;t t
19196 s,@subsysdir@,$subsysdir,;t t
19197 s,@baseport@,$baseport,;t t
19198 s,@dir_port@,$dir_port,;t t
19199 s,@fd_port@,$fd_port,;t t
19200 s,@sd_port@,$sd_port,;t t
19201 s,@dir_password@,$dir_password,;t t
19202 s,@fd_password@,$fd_password,;t t
19203 s,@sd_password@,$sd_password,;t t
19204 s,@dir_user@,$dir_user,;t t
19205 s,@dir_group@,$dir_group,;t t
19206 s,@sd_user@,$sd_user,;t t
19207 s,@sd_group@,$sd_group,;t t
19208 s,@fd_user@,$fd_user,;t t
19209 s,@fd_group@,$fd_group,;t t
19210 s,@SBINPERM@,$SBINPERM,;t t
19211 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19212 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19213 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19214 s,@cats@,$cats,;t t
19215 s,@DB_NAME@,$DB_NAME,;t t
19216 s,@GETCONF@,$GETCONF,;t t
19217 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19218 s,@X_CFLAGS@,$X_CFLAGS,;t t
19219 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19220 s,@X_LIBS@,$X_LIBS,;t t
19221 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19222 s,@LIBOBJS@,$LIBOBJS,;t t
19223 s,@ALLOCA@,$ALLOCA,;t t
19224 s,@FDLIBS@,$FDLIBS,;t t
19225 s,@DEBUG@,$DEBUG,;t t
19226 s,@DINCLUDE@,$DINCLUDE,;t t
19227 s,@DLIB@,$DLIB,;t t
19228 s,@DB_LIBS@,$DB_LIBS,;t t
19229 s,@WCFLAGS@,$WCFLAGS,;t t
19230 s,@WLDFLAGS@,$WLDFLAGS,;t t
19231 s,@OBJLIST@,$OBJLIST,;t t
19232 s,@hostname@,$hostname,;t t
19233 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19234 s,@PSCMD@,$PSCMD,;t t
19235 s,@WIN32@,$WIN32,;t t
19236 s,@MACOSX@,$MACOSX,;t t
19237 s,@DISTNAME@,$DISTNAME,;t t
19238 s,@DISTVER@,$DISTVER,;t t
19239 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19240 /@MCOMMON@/r $MCOMMON
19246 cat >>$CONFIG_STATUS <<\_ACEOF
19247 # Split the substitutions into bite-sized pieces for seds with
19248 # small command number limits, like on Digital OSF/1 and HP-UX.
19249 ac_max_sed_lines=48
19250 ac_sed_frag=1 # Number of current file.
19251 ac_beg=1 # First line for current file.
19252 ac_end=$ac_max_sed_lines # Line after last line for current file.
19255 while $ac_more_lines; do
19256 if test $ac_beg -gt 1; then
19257 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19259 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19261 if test ! -s $tmp/subs.frag; then
19262 ac_more_lines=false
19264 # The purpose of the label and of the branching condition is to
19265 # speed up the sed processing (if there are no `@' at all, there
19266 # is no need to browse any of the substitutions).
19267 # These are the two extra sed commands mentioned above.
19269 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19270 if test -z "$ac_sed_cmds"; then
19271 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19273 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19275 ac_sed_frag=`expr $ac_sed_frag + 1`
19277 ac_end=`expr $ac_end + $ac_max_sed_lines`
19280 if test -z "$ac_sed_cmds"; then
19283 fi # test -n "$CONFIG_FILES"
19286 cat >>$CONFIG_STATUS <<\_ACEOF
19287 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19288 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19290 - | *:- | *:-:* ) # input from stdin
19292 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19293 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19294 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19295 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19296 * ) ac_file_in=$ac_file.in ;;
19299 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19300 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19301 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19302 X"$ac_file" : 'X\(//\)[^/]' \| \
19303 X"$ac_file" : 'X\(//\)$' \| \
19304 X"$ac_file" : 'X\(/\)' \| \
19305 . : '\(.\)' 2>/dev/null ||
19307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19309 /^X\(\/\/\)$/{ s//\1/; q; }
19310 /^X\(\/\).*/{ s//\1/; q; }
19312 { if $as_mkdir_p; then
19317 while test ! -d "$as_dir"; do
19318 as_dirs="$as_dir $as_dirs"
19319 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19321 X"$as_dir" : 'X\(//\)[^/]' \| \
19322 X"$as_dir" : 'X\(//\)$' \| \
19323 X"$as_dir" : 'X\(/\)' \| \
19324 . : '\(.\)' 2>/dev/null ||
19326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19327 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19328 /^X\(\/\/\)$/{ s//\1/; q; }
19329 /^X\(\/\).*/{ s//\1/; q; }
19332 test ! -n "$as_dirs" || mkdir $as_dirs
19333 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19334 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19335 { (exit 1); exit 1; }; }; }
19339 if test "$ac_dir" != .; then
19340 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19341 # A "../" for each directory in $ac_dir_suffix.
19342 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19344 ac_dir_suffix= ac_top_builddir=
19348 .) # No --srcdir option. We are building in place.
19350 if test -z "$ac_top_builddir"; then
19353 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19355 [\\/]* | ?:[\\/]* ) # Absolute path.
19356 ac_srcdir=$srcdir$ac_dir_suffix;
19357 ac_top_srcdir=$srcdir ;;
19358 *) # Relative path.
19359 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19360 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19362 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19364 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19365 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19366 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19367 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19371 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19372 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19375 if test x"$ac_file" != x-; then
19376 { echo "$as_me:$LINENO: creating $ac_file" >&5
19377 echo "$as_me: creating $ac_file" >&6;}
19380 # Let's still pretend it is `configure' which instantiates (i.e., don't
19381 # use $as_me), people would be surprised to read:
19382 # /* config.h. Generated by config.status. */
19383 if test x"$ac_file" = x-; then
19386 configure_input="$ac_file. "
19388 configure_input=$configure_input"Generated from `echo $ac_file_in |
19389 sed 's,.*/,,'` by configure."
19391 # First look for the input files in the build tree, otherwise in the
19393 ac_file_inputs=`IFS=:
19394 for f in $ac_file_in; do
19396 -) echo $tmp/stdin ;;
19398 # Absolute (can't be DOS-style, as IFS=:)
19399 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19400 echo "$as_me: error: cannot find input file: $f" >&2;}
19401 { (exit 1); exit 1; }; }
19404 if test -f "$f"; then
19407 elif test -f "$srcdir/$f"; then
19412 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19413 echo "$as_me: error: cannot find input file: $f" >&2;}
19414 { (exit 1); exit 1; }; }
19417 done` || { (exit 1); exit 1; }
19419 cat >>$CONFIG_STATUS <<_ACEOF
19423 cat >>$CONFIG_STATUS <<\_ACEOF
19425 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19426 s,@configure_input@,$configure_input,;t t
19427 s,@srcdir@,$ac_srcdir,;t t
19428 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19429 s,@top_srcdir@,$ac_top_srcdir,;t t
19430 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19431 s,@builddir@,$ac_builddir,;t t
19432 s,@abs_builddir@,$ac_abs_builddir,;t t
19433 s,@top_builddir@,$ac_top_builddir,;t t
19434 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19435 s,@INSTALL@,$ac_INSTALL,;t t
19436 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19438 if test x"$ac_file" != x-; then
19439 mv $tmp/out $ac_file
19447 cat >>$CONFIG_STATUS <<\_ACEOF
19450 # CONFIG_HEADER section.
19453 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19454 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19456 # ac_d sets the value in "#define NAME VALUE" lines.
19457 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19458 ac_dB='[ ].*$,\1#\2'
19461 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19462 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19463 ac_uB='$,\1#\2define\3'
19467 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19468 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19470 - | *:- | *:-:* ) # input from stdin
19472 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19473 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19474 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19475 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19476 * ) ac_file_in=$ac_file.in ;;
19479 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19480 echo "$as_me: creating $ac_file" >&6;}
19482 # First look for the input files in the build tree, otherwise in the
19484 ac_file_inputs=`IFS=:
19485 for f in $ac_file_in; do
19487 -) echo $tmp/stdin ;;
19489 # Absolute (can't be DOS-style, as IFS=:)
19490 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19491 echo "$as_me: error: cannot find input file: $f" >&2;}
19492 { (exit 1); exit 1; }; }
19495 if test -f "$f"; then
19498 elif test -f "$srcdir/$f"; then
19503 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19504 echo "$as_me: error: cannot find input file: $f" >&2;}
19505 { (exit 1); exit 1; }; }
19508 done` || { (exit 1); exit 1; }
19509 # Remove the trailing spaces.
19510 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19514 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19515 # `conftest.undefs', that substitutes the proper values into
19516 # config.h.in to produce config.h. The first handles `#define'
19517 # templates, and the second `#undef' templates.
19518 # And first: Protect against being on the right side of a sed subst in
19519 # config.status. Protect against being in an unquoted here document
19520 # in config.status.
19521 rm -f conftest.defines conftest.undefs
19522 # Using a here document instead of a string reduces the quoting nightmare.
19523 # Putting comments in sed scripts is not portable.
19525 # `end' is used to avoid that the second main sed command (meant for
19526 # 0-ary CPP macros) applies to n-ary macro definitions.
19527 # See the Autoconf documentation for `clear'.
19528 cat >confdef2sed.sed <<\_ACEOF
19533 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19535 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19538 # If some macros were called several times there might be several times
19539 # the same #defines, which is useless. Nevertheless, we may not want to
19540 # sort them, since we want the *last* AC-DEFINE to be honored.
19541 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19542 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19543 rm -f confdef2sed.sed
19545 # This sed command replaces #undef with comments. This is necessary, for
19546 # example, in the case of _POSIX_SOURCE, which is predefined and required
19547 # on some systems where configure will not decide to define it.
19548 cat >>conftest.undefs <<\_ACEOF
19549 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19552 # Break up conftest.defines because some shells have a limit on the size
19553 # of here documents, and old seds have small limits too (100 cmds).
19554 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19555 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19556 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19557 echo ' :' >>$CONFIG_STATUS
19558 rm -f conftest.tail
19559 while grep . conftest.defines >/dev/null
19561 # Write a limited-size here document to $tmp/defines.sed.
19562 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19563 # Speed up: don't consider the non `#define' lines.
19564 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19565 # Work around the forget-to-reset-the-flag bug.
19566 echo 't clr' >>$CONFIG_STATUS
19567 echo ': clr' >>$CONFIG_STATUS
19568 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19570 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19572 mv $tmp/out $tmp/in
19574 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19575 rm -f conftest.defines
19576 mv conftest.tail conftest.defines
19578 rm -f conftest.defines
19579 echo ' fi # grep' >>$CONFIG_STATUS
19580 echo >>$CONFIG_STATUS
19582 # Break up conftest.undefs because some shells have a limit on the size
19583 # of here documents, and old seds have small limits too (100 cmds).
19584 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19585 rm -f conftest.tail
19586 while grep . conftest.undefs >/dev/null
19588 # Write a limited-size here document to $tmp/undefs.sed.
19589 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19590 # Speed up: don't consider the non `#undef'
19591 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19592 # Work around the forget-to-reset-the-flag bug.
19593 echo 't clr' >>$CONFIG_STATUS
19594 echo ': clr' >>$CONFIG_STATUS
19595 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19597 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19599 mv $tmp/out $tmp/in
19601 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19602 rm -f conftest.undefs
19603 mv conftest.tail conftest.undefs
19605 rm -f conftest.undefs
19607 cat >>$CONFIG_STATUS <<\_ACEOF
19608 # Let's still pretend it is `configure' which instantiates (i.e., don't
19609 # use $as_me), people would be surprised to read:
19610 # /* config.h. Generated by config.status. */
19611 if test x"$ac_file" = x-; then
19612 echo "/* Generated by configure. */" >$tmp/config.h
19614 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19616 cat $tmp/in >>$tmp/config.h
19618 if test x"$ac_file" != x-; then
19619 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19620 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19621 echo "$as_me: $ac_file is unchanged" >&6;}
19623 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19624 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19625 X"$ac_file" : 'X\(//\)[^/]' \| \
19626 X"$ac_file" : 'X\(//\)$' \| \
19627 X"$ac_file" : 'X\(/\)' \| \
19628 . : '\(.\)' 2>/dev/null ||
19630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19631 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19632 /^X\(\/\/\)$/{ s//\1/; q; }
19633 /^X\(\/\).*/{ s//\1/; q; }
19635 { if $as_mkdir_p; then
19640 while test ! -d "$as_dir"; do
19641 as_dirs="$as_dir $as_dirs"
19642 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19643 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19644 X"$as_dir" : 'X\(//\)[^/]' \| \
19645 X"$as_dir" : 'X\(//\)$' \| \
19646 X"$as_dir" : 'X\(/\)' \| \
19647 . : '\(.\)' 2>/dev/null ||
19649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19650 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19651 /^X\(\/\/\)$/{ s//\1/; q; }
19652 /^X\(\/\).*/{ s//\1/; q; }
19655 test ! -n "$as_dirs" || mkdir $as_dirs
19656 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19657 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19658 { (exit 1); exit 1; }; }; }
19661 mv $tmp/config.h $ac_file
19665 rm -f $tmp/config.h
19669 cat >>$CONFIG_STATUS <<\_ACEOF
19672 # CONFIG_COMMANDS section.
19674 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19675 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19676 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19677 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19678 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19679 X"$ac_dest" : 'X\(//\)[^/]' \| \
19680 X"$ac_dest" : 'X\(//\)$' \| \
19681 X"$ac_dest" : 'X\(/\)' \| \
19682 . : '\(.\)' 2>/dev/null ||
19684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19686 /^X\(\/\/\)$/{ s//\1/; q; }
19687 /^X\(\/\).*/{ s//\1/; q; }
19691 if test "$ac_dir" != .; then
19692 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19693 # A "../" for each directory in $ac_dir_suffix.
19694 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19696 ac_dir_suffix= ac_top_builddir=
19700 .) # No --srcdir option. We are building in place.
19702 if test -z "$ac_top_builddir"; then
19705 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19707 [\\/]* | ?:[\\/]* ) # Absolute path.
19708 ac_srcdir=$srcdir$ac_dir_suffix;
19709 ac_top_srcdir=$srcdir ;;
19710 *) # Relative path.
19711 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19712 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19714 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19716 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19717 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19718 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19719 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19722 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19723 echo "$as_me: executing $ac_dest commands" >&6;}
19725 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
19731 cat >>$CONFIG_STATUS <<\_ACEOF
19733 { (exit 0); exit 0; }
19735 chmod +x $CONFIG_STATUS
19736 ac_clean_files=$ac_clean_files_save
19739 # configure is writing to config.log, and then calls config.status.
19740 # config.status does its own redirection, appending to config.log.
19741 # Unfortunately, on DOS this fails, as config.log is still kept open
19742 # by configure, so config.status won't be able to write to it; its
19743 # output is simply discarded. So we exec the FD to /dev/null,
19744 # effectively closing config.log, so it can be properly (re)opened and
19745 # appended to by config.status. When coming back to configure, we
19746 # need to make the FD available again.
19747 if test "$no_create" != yes; then
19749 ac_config_status_args=
19750 test "$silent" = yes &&
19751 ac_config_status_args="$ac_config_status_args --quiet"
19753 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19755 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19756 # would make configure fail if this is the last instruction.
19757 $ac_cs_success || { (exit 1); exit 1; }
19762 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19763 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19768 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
19769 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
19771 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
19772 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
19774 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
19775 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
19777 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
19778 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
19780 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
19781 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
19783 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19784 chmod 755 $c/sqlite
19787 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19788 largefile_support="yes"
19792 # A whole lot of hand springs to get the compiler version.
19793 # This is because gcc changed the output in version 3.0
19795 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19796 if test "x${CCVERSION}" = "x" ; then
19797 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19799 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19800 if test x"${CXXVERSION}" = x ; then
19801 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19804 if test "x${subsysdir}" = "x${sbindir}" ; then
19807 echo "You have set --sbindir and --with-subsys-dir"
19808 echo " both equal to: ${subsysdir} "
19809 echo " This is not permitted. Please reconfigure."
19811 echo "Aborting configuration ..."
19817 if test "x${db_name}" = "xInternal" ; then
19820 echo "You have not specified either --enable-client-only or one of the"
19821 echo " supported databases: MySQL, PostgreSQL, or SQLite".
19822 echo " This is not permitted. Please reconfigure."
19824 echo "Aborting the configuration ..."
19831 Configuration on `date`:
19833 Host: $host -- ${DISTNAME} ${DISTVER}
19834 Bacula version: ${VERSION} (${DATE})
19835 Source code location: ${srcdir}
19836 Install binaries: ${sbindir}
19837 Install config files: ${sysconfdir}
19838 Scripts directory: ${scriptdir}
19839 Working directory: ${working_dir}
19840 PID directory: ${piddir}
19841 Subsys directory: ${subsysdir}
19842 C Compiler: ${CC} ${CCVERSION}
19843 C++ Compiler: ${CXX} ${CXXVERSION}
19844 Compiler flags: ${WCFLAGS} ${CFLAGS}
19845 Linker flags: ${WLDFLAGS} ${LDFLAGS}
19847 Statically Linked Tools: ${support_static_tools}
19848 Statically Linked FD: ${support_static_fd}
19849 Statically Linked SD: ${support_static_sd}
19850 Statically Linked DIR: ${support_static_dir}
19851 Statically Linked CONS: ${support_static_cons}
19852 Database type: ${db_name}
19853 Database lib: ${DB_LIBS}
19855 Job Output Email: ${job_email}
19856 Traceback Email: ${dump_email}
19857 SMTP Host Address: ${smtp_host}
19859 Director Port: ${dir_port}
19860 File daemon Port: ${fd_port}
19861 Storage daemon Port: ${sd_port}
19863 Director User: ${dir_user}
19864 Director Group: ${dir_group}
19865 Storage Daemon User: ${sd_user}
19866 Storage DaemonGroup: ${sd_group}
19867 File Daemon User: ${fd_user}
19868 File Daemon Group: ${fd_group}
19870 SQL binaries Directory ${SQL_BINDIR}
19872 Large file support: $largefile_support
19873 Bacula conio support: ${got_conio} ${CONS_LIBS}
19874 readline support: ${got_readline} ${PRTREADLINE_SRC}
19875 TCP Wrappers support: ${TCPW_MSG}
19876 ZLIB support: ${have_zlib}
19877 enable-smartalloc: ${support_smartalloc}
19878 enable-gnome: ${support_gnome} ${gnome_version}
19879 enable-wx-console: ${support_wx_console}
19880 client-only: ${build_client_only}
19881 ACL support: ${have_acl}
19888 # cweb support: ${got_cweb} ${CWEB_SRC}
19889 # gmp support: ${got_gmp} ${GMP_SRC}