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/'`
3780 echo "$as_me:$LINENO: checking for Operating System" >&5
3781 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3782 echo "$as_me:$LINENO: checking host system type" >&5
3783 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3784 if test "${ac_cv_host+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 ac_cv_host_alias=$host_alias
3788 test -z "$ac_cv_host_alias" &&
3789 ac_cv_host_alias=$ac_cv_build_alias
3790 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3791 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3792 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3793 { (exit 1); exit 1; }; }
3796 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3797 echo "${ECHO_T}$ac_cv_host" >&6
3799 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3800 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3801 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3805 *cygwin* ) CYGWIN=yes;;
3809 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3815 HAVE_SUN_OS_FALSE='#'
3817 HAVE_SUN_OS_TRUE='#'
3820 cat >>confdefs.h <<\_ACEOF
3821 #define HAVE_SUN_OS 1
3829 HAVE_SUN_OS_FALSE='#'
3831 HAVE_SUN_OS_TRUE='#'
3836 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3842 HAVE_OSF1_OS_FALSE='#'
3844 HAVE_OSF1_OS_TRUE='#'
3847 cat >>confdefs.h <<\_ACEOF
3848 #define HAVE_OSF1_OS 1
3856 HAVE_OSF1_OS_FALSE='#'
3858 HAVE_OSF1_OS_TRUE='#'
3863 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3869 HAVE_AIX_OS_FALSE='#'
3871 HAVE_AIX_OS_TRUE='#'
3874 cat >>confdefs.h <<\_ACEOF
3875 #define HAVE_AIX_OS 1
3883 HAVE_AIX_OS_FALSE='#'
3885 HAVE_AIX_OS_TRUE='#'
3890 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3896 HAVE_HPUX_OS_FALSE='#'
3898 HAVE_HPUX_OS_TRUE='#'
3901 cat >>confdefs.h <<\_ACEOF
3902 #define HAVE_HPUX_OS 1
3910 HAVE_HPUX_OS_FALSE='#'
3912 HAVE_HPUX_OS_TRUE='#'
3917 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3923 HAVE_LINUX_OS_FALSE='#'
3925 HAVE_LINUX_OS_TRUE='#'
3926 HAVE_LINUX_OS_FALSE=
3928 cat >>confdefs.h <<\_ACEOF
3929 #define HAVE_LINUX_OS 1
3937 HAVE_LINUX_OS_FALSE='#'
3939 HAVE_LINUX_OS_TRUE='#'
3940 HAVE_LINUX_OS_FALSE=
3944 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3949 HAVE_FREEBSD_OS_TRUE=
3950 HAVE_FREEBSD_OS_FALSE='#'
3952 HAVE_FREEBSD_OS_TRUE='#'
3953 HAVE_FREEBSD_OS_FALSE=
3955 cat >>confdefs.h <<\_ACEOF
3956 #define HAVE_FREEBSD_OS 1
3963 HAVE_FREEBSD_OS_TRUE=
3964 HAVE_FREEBSD_OS_FALSE='#'
3966 HAVE_FREEBSD_OS_TRUE='#'
3967 HAVE_FREEBSD_OS_FALSE=
3971 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3976 HAVE_NETBSD_OS_TRUE=
3977 HAVE_NETBSD_OS_FALSE='#'
3979 HAVE_NETBSD_OS_TRUE='#'
3980 HAVE_NETBSD_OS_FALSE=
3982 cat >>confdefs.h <<\_ACEOF
3983 #define HAVE_NETBSD_OS 1
3990 HAVE_NETBSD_OS_TRUE=
3991 HAVE_NETBSD_OS_FALSE='#'
3993 HAVE_NETBSD_OS_TRUE='#'
3994 HAVE_NETBSD_OS_FALSE=
3998 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4003 HAVE_OPENBSD_OS_TRUE=
4004 HAVE_OPENBSD_OS_FALSE='#'
4006 HAVE_OPENBSD_OS_TRUE='#'
4007 HAVE_OPENBSD_OS_FALSE=
4009 cat >>confdefs.h <<\_ACEOF
4010 #define HAVE_OPENBSD_OS 1
4017 HAVE_OPENBSD_OS_TRUE=
4018 HAVE_OPENBSD_OS_FALSE='#'
4020 HAVE_OPENBSD_OS_TRUE='#'
4021 HAVE_OPENBSD_OS_FALSE=
4025 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4031 HAVE_BSDI_OS_FALSE='#'
4033 HAVE_BSDI_OS_TRUE='#'
4036 cat >>confdefs.h <<\_ACEOF
4037 #define HAVE_BSDI_OS 1
4045 HAVE_BSDI_OS_FALSE='#'
4047 HAVE_BSDI_OS_TRUE='#'
4052 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4058 HAVE_SGI_OS_FALSE='#'
4060 HAVE_SGI_OS_TRUE='#'
4063 cat >>confdefs.h <<\_ACEOF
4064 #define HAVE_SGI_OS 1
4072 HAVE_SGI_OS_FALSE='#'
4074 HAVE_SGI_OS_TRUE='#'
4079 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4085 HAVE_IRIX_OS_FALSE='#'
4087 HAVE_IRIX_OS_TRUE='#'
4090 cat >>confdefs.h <<\_ACEOF
4091 #define HAVE_IRIX_OS 1
4099 HAVE_IRIX_OS_FALSE='#'
4101 HAVE_IRIX_OS_TRUE='#'
4106 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4111 HAVE_DARWIN_OS_TRUE=
4112 HAVE_DARWIN_OS_FALSE='#'
4114 HAVE_DARWIN_OS_TRUE='#'
4115 HAVE_DARWIN_OS_FALSE=
4117 cat >>confdefs.h <<\_ACEOF
4118 #define HAVE_DARWIN_OS 1
4125 HAVE_DARWIN_OS_TRUE=
4126 HAVE_DARWIN_OS_FALSE='#'
4128 HAVE_DARWIN_OS_TRUE='#'
4129 HAVE_DARWIN_OS_FALSE=
4133 echo "$as_me:$LINENO: result: \" \"" >&5
4134 echo "${ECHO_T}\" \"" >&6
4137 # -----------------------------------------------------------
4138 # ----------------------------------------------------------
4139 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4140 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4141 if test "x$DISTNAME" != "x"
4143 echo "distname set to $DISTNAME"
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4162 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4165 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4168 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4171 elif test -f /etc/SuSE-release
4174 elif test -d /etc/SuSEconfig
4177 elif test -f /etc/mandrake-release
4180 elif test -f /etc/redhat-release
4183 elif test -f /etc/gentoo-release
4186 elif test -f /etc/debian_version
4189 elif test -f /etc/slackware-version
4192 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4195 elif test -f /etc/engarde-version
4198 elif test "$CYGWIN" = yes
4201 cat >>confdefs.h <<\_ACEOF
4202 #define HAVE_CYGWIN 1
4208 echo "$as_me:$LINENO: result: \" \"" >&5
4209 echo "${ECHO_T}\" \"" >&6
4212 # -----------------------------------------------------------
4213 # ----------------------------------------------------------
4218 INSIDE_GNOME_COMMON_TRUE=
4219 INSIDE_GNOME_COMMON_FALSE='#'
4221 INSIDE_GNOME_COMMON_TRUE='#'
4222 INSIDE_GNOME_COMMON_FALSE=
4225 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4227 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4230 # ------------------------------------------------------------------
4231 # If the user has not set --prefix, we set our default to nothing.
4232 # In this case, if the user has not set --sysconfdir, we set it
4233 # to the package default of /etc/bacula. If either --prefix or
4234 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4235 # ------------------------------------------------------------------
4236 if test x${prefix} = xNONE ; then
4237 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4238 sysconfdir=/etc/bacula
4242 sysconfdir=`eval echo ${sysconfdir}`
4244 # -------------------------------------------------------------------------
4245 # If the user has not set --exec-prefix, we default to ${prefix}
4246 # -------------------------------------------------------------------------
4247 if test x${exec_prefix} = xNONE ; then
4248 exec_prefix=${prefix}
4251 # ------------------------------------------------------------------
4252 # If the user has not set --sbindir, we set our default as /sbin
4253 # ------------------------------------------------------------------
4254 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4255 sbindir=${exec_prefix}/sbin
4257 sbindir=`eval echo ${sbindir}`
4259 # ------------------------------------------------------------------
4260 # All list of languages for which a translation exist. Each
4261 # language is separated by a space.
4262 # ------------------------------------------------------------------
4265 for ac_prog in msgfmt
4267 # Extract the first word of "$ac_prog", so it can be a program name with args.
4268 set dummy $ac_prog; ac_word=$2
4269 echo "$as_me:$LINENO: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4271 if test "${ac_cv_path_MSGFMT+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 MSGFMT=$ac_cv_path_MSGFMT
4298 if test -n "$MSGFMT"; then
4299 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4300 echo "${ECHO_T}$MSGFMT" >&6
4302 echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4306 test -n "$MSGFMT" && break
4308 test -n "$MSGFMT" || MSGFMT="no"
4310 if test "$MSGFMT" = "no"
4312 echo 'msgfmt program not found, disabling NLS !'
4314 USE_INCLUDED_LIBINTL=no
4322 support_postgresql=no
4323 support_smartalloc=yes
4324 support_readline=yes
4327 support_wx_console=no
4329 support_static_tools=no
4330 support_static_fd=no
4331 support_static_sd=no
4332 support_static_dir=no
4333 support_static_cons=no
4334 build_client_only=no
4340 # -------------------------------------------
4341 # gnome (default off)
4342 # -------------------------------------------
4343 # Check whether --enable-gnome or --disable-gnome was given.
4344 if test "${enable_gnome+set}" = set; then
4345 enableval="$enable_gnome"
4346 if test x$enableval = xyes; then
4352 if test x$support_gnome = xyes; then
4353 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4355 if test $pkg = 0; then
4356 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4357 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4358 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4359 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4364 GNOME_DIR=src/gnome2-console
4365 gnome_version="Version 2.x"
4378 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4379 if test "${with_gnome_includes+set}" = set; then
4380 withval="$with_gnome_includes"
4382 CFLAGS="$CFLAGS -I$withval"
4387 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4388 if test "${with_gnome_libs+set}" = set; then
4389 withval="$with_gnome_libs"
4391 LDFLAGS="$LDFLAGS -L$withval"
4392 gnome_prefix=$withval
4397 # Check whether --with-gnome or --without-gnome was given.
4398 if test "${with_gnome+set}" = set; then
4399 withval="$with_gnome"
4400 if test x$withval = xyes; then
4404 if test "x$withval" = xno; then
4408 LDFLAGS="$LDFLAGS -L$withval/lib"
4409 CFLAGS="$CFLAGS -I$withval/include"
4410 gnome_prefix=$withval/lib
4417 if test "x$want_gnome" = xyes; then
4419 # Extract the first word of "gnome-config", so it can be a program name with args.
4420 set dummy gnome-config; ac_word=$2
4421 echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 case $GNOME_CONFIG in
4428 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4449 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4451 if test -n "$GNOME_CONFIG"; then
4452 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4453 echo "${ECHO_T}$GNOME_CONFIG" >&6
4455 echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4459 if test "$GNOME_CONFIG" = "no"; then
4460 no_gnome_config="yes"
4462 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4463 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4464 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4465 echo "$as_me:$LINENO: result: yes" >&5
4466 echo "${ECHO_T}yes" >&6
4469 # Extract the first word of "orbit-config", so it can be a program name with args.
4470 set dummy orbit-config; ac_word=$2
4471 echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4473 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 case $ORBIT_CONFIG in
4478 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4499 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4501 if test -n "$ORBIT_CONFIG"; then
4502 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4503 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4505 echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6
4509 # Extract the first word of "orbit-idl", so it can be a program name with args.
4510 set dummy orbit-idl; ac_word=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4539 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4541 if test -n "$ORBIT_IDL"; then
4542 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4543 echo "${ECHO_T}$ORBIT_IDL" >&6
4545 echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4549 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4550 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4551 if test "${gnome_cv_orbit_found+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4556 gnome_cv_orbit_found=no
4558 gnome_cv_orbit_found=yes
4562 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4563 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4566 if test x$gnome_cv_orbit_found = xyes; then
4568 HAVE_ORBIT_FALSE='#'
4573 if test x$gnome_cv_orbit_found = xyes; then
4575 ORBIT_CFLAGS=`orbit-config --cflags client server`
4576 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4580 if test xfail = xfailure; then
4581 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4582 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4583 { (exit 1); exit 1; }; }
4587 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4588 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4589 if test "${gnome_cv_gnorba_found+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 gnome_cv_gnorba_found=no
4594 if test x$gnome_cv_orbit_found = xyes; then
4595 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4596 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4597 if test -n "$GNORBA_LIBS"; then
4598 gnome_cv_gnorba_found=yes
4603 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4604 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4607 if test x$gnome_cv_gnorba_found = xyes; then
4609 HAVE_GNORBA_FALSE='#'
4611 HAVE_GNORBA_TRUE='#'
4614 if test x$gnome_cv_orbit_found = xyes; then
4616 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4617 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4621 if test xfail = xfailure; then
4622 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4623 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4624 { (exit 1); exit 1; }; }
4628 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4629 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4630 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4631 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4632 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4633 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4634 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4637 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4639 no_gnome_config="yes"
4643 if test x$exec_prefix = xNONE; then
4644 if test x$prefix = xNONE; then
4645 gnome_prefix=$ac_default_prefix/lib
4647 gnome_prefix=$prefix/lib
4650 gnome_prefix=`eval echo \`echo $libdir\``
4653 if test "$no_gnome_config" = "yes"; then
4654 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4655 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4656 if test -f $gnome_prefix/gnomeConf.sh; then
4657 echo "$as_me:$LINENO: result: found" >&5
4658 echo "${ECHO_T}found" >&6
4659 echo "loading gnome configuration from" \
4660 "$gnome_prefix/gnomeConf.sh"
4661 . $gnome_prefix/gnomeConf.sh
4664 echo "$as_me:$LINENO: result: not found" >&5
4665 echo "${ECHO_T}not found" >&6
4666 if test xfail = xfail; then
4667 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4668 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4669 { (exit 1); exit 1; }; }
4678 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4679 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4683 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4684 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4685 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4688 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4689 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4690 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4693 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4694 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4695 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4697 echo "$as_me:$LINENO: result: unknown library" >&5
4698 echo "${ECHO_T}unknown library" >&6
4700 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4701 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4706 GNOME_DIR=src/gnome-console
4707 gnome_version="Version 1.4"
4713 # -------------------------------------------
4714 # wx-console (default off)
4715 # -------------------------------------------
4716 # Check whether --enable-wx-console or --disable-wx-console was given.
4717 if test "${enable_wx_console+set}" = set; then
4718 enableval="$enable_wx_console"
4719 if test x$enableval = xyes; then
4720 support_wx_console=yes
4725 if test x$support_wx_console = xyes; then
4726 abc=`$WXCONFIG --cppflags`
4728 if test $pkg = 0; then
4729 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4730 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4733 WX_DIR=src/wx-console
4736 echo "wx-config program not found. wx-console disabled."
4738 support_wx_console=no
4745 # -------------------------------------------
4746 # smartalloc (default off)
4747 # -------------------------------------------
4748 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4749 if test "${enable_smartalloc+set}" = set; then
4750 enableval="$enable_smartalloc"
4751 if test x$enableval = xno; then
4752 support_smartalloc=no
4756 if test x$support_smartalloc = xyes; then
4757 cat >>confdefs.h <<\_ACEOF
4758 #define SMARTALLOC 1
4763 # -------------------------------------------
4764 # static-tools (default off)
4765 # -------------------------------------------
4766 # Check whether --enable-static-tools or --disable-static-tools was given.
4767 if test "${enable_static_tools+set}" = set; then
4768 enableval="$enable_static_tools"
4769 if test x$enableval = xyes; then
4770 support_static_tools=yes
4775 if test x$support_static_tools = xyes; then
4776 TTOOL_LDFLAGS="-static"
4780 # -------------------------------------------
4781 # static-fd (default off)
4782 # -------------------------------------------
4783 # Check whether --enable-static-fd or --disable-static-fd was given.
4784 if test "${enable_static_fd+set}" = set; then
4785 enableval="$enable_static_fd"
4786 if test x$enableval = xyes; then
4787 support_static_fd=yes
4792 if test x$support_static_fd = xyes; then
4793 STATIC_FD="static-bacula-fd"
4797 # -------------------------------------------
4798 # static-sd (default off)
4799 # -------------------------------------------
4800 # Check whether --enable-static-sd or --disable-static-sd was given.
4801 if test "${enable_static_sd+set}" = set; then
4802 enableval="$enable_static_sd"
4803 if test x$enableval = xyes; then
4804 support_static_sd=yes
4809 if test x$support_static_sd = xyes; then
4810 STATIC_SD="static-bacula-sd"
4814 # -------------------------------------------
4815 # static-dir (default off)
4816 # -------------------------------------------
4817 # Check whether --enable-static-dir or --disable-static-dir was given.
4818 if test "${enable_static_dir+set}" = set; then
4819 enableval="$enable_static_dir"
4820 if test x$enableval = xyes; then
4821 support_static_dir=yes
4826 if test x$support_static_dir = xyes; then
4827 STATIC_DIR="static-bacula-dir"
4831 # -------------------------------------------
4832 # static-cons (default off)
4833 # -------------------------------------------
4834 # Check whether --enable-static-cons or --disable-static-cons was given.
4835 if test "${enable_static_cons+set}" = set; then
4836 enableval="$enable_static_cons"
4837 if test x$enableval = xyes; then
4838 support_static_cons=yes
4845 if test x$support_static_cons = xyes; then
4846 STATIC_CONS="static-bconsole"
4847 STATIC_GNOME_CONS="static-gnome-console"
4848 STATIC_WX_CONS="static-wx-console"
4854 # -------------------------------------------
4855 # client_only (default off)
4856 # -------------------------------------------
4857 # Check whether --enable-client-only or --disable-client-only was given.
4858 if test "${enable_client_only+set}" = set; then
4859 enableval="$enable_client_only"
4860 if test x$enableval = xyes; then
4861 build_client_only=yes
4866 if test x$build_client_only = xno; then
4873 # ---------------------------------------------------
4874 # Check for conio (Bacula readline substitute)(
4875 # ---------------------------------------------------
4876 # this allows you to turn it completely off
4877 # Check whether --enable-conio or --disable-conio was given.
4878 if test "${enable_conio+set}" = set; then
4879 enableval="$enable_conio"
4880 if test x$enableval = xno; then
4886 if test x$support_conio = xyes; then
4887 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4888 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4889 if test "${ac_cv_header_stdc+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 cat >conftest.$ac_ext <<_ACEOF
4893 #line $LINENO "configure"
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h. */
4912 rm -f conftest.$ac_objext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914 (eval $ac_compile) 2>&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } &&
4918 { ac_try='test -s conftest.$ac_objext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4924 ac_cv_header_stdc=yes
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4929 ac_cv_header_stdc=no
4931 rm -f conftest.$ac_objext conftest.$ac_ext
4933 if test $ac_cv_header_stdc = yes; then
4934 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4935 cat >conftest.$ac_ext <<_ACEOF
4936 #line $LINENO "configure"
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4946 $EGREP "memchr" >/dev/null 2>&1; then
4949 ac_cv_header_stdc=no
4955 if test $ac_cv_header_stdc = yes; then
4956 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4957 cat >conftest.$ac_ext <<_ACEOF
4958 #line $LINENO "configure"
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4968 $EGREP "free" >/dev/null 2>&1; then
4971 ac_cv_header_stdc=no
4977 if test $ac_cv_header_stdc = yes; then
4978 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4979 if test "$cross_compiling" = yes; then
4982 cat >conftest.$ac_ext <<_ACEOF
4983 #line $LINENO "configure"
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4990 #if ((' ' & 0x0FF) == 0x020)
4991 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4992 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4994 # define ISLOWER(c) \
4995 (('a' <= (c) && (c) <= 'i') \
4996 || ('j' <= (c) && (c) <= 'r') \
4997 || ('s' <= (c) && (c) <= 'z'))
4998 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5001 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5006 for (i = 0; i < 256; i++)
5007 if (XOR (islower (i), ISLOWER (i))
5008 || toupper (i) != TOUPPER (i))
5013 rm -f conftest$ac_exeext
5014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5015 (eval $ac_link) 2>&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5026 echo "$as_me: program exited with status $ac_status" >&5
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5031 ac_cv_header_stdc=no
5033 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5037 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5038 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5039 if test $ac_cv_header_stdc = yes; then
5041 cat >>confdefs.h <<\_ACEOF
5042 #define STDC_HEADERS 1
5047 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5057 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5058 inttypes.h stdint.h unistd.h
5060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5061 echo "$as_me:$LINENO: checking for $ac_header" >&5
5062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 cat >conftest.$ac_ext <<_ACEOF
5067 #line $LINENO "configure"
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5073 $ac_includes_default
5075 #include <$ac_header>
5077 rm -f conftest.$ac_objext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079 (eval $ac_compile) 2>&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try='test -s conftest.$ac_objext'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; }; then
5089 eval "$as_ac_Header=yes"
5091 echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5094 eval "$as_ac_Header=no"
5096 rm -f conftest.$ac_objext conftest.$ac_ext
5098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5101 cat >>confdefs.h <<_ACEOF
5102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5110 if test "${ac_cv_header_termcap_h+set}" = set; then
5111 echo "$as_me:$LINENO: checking for termcap.h" >&5
5112 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5113 if test "${ac_cv_header_termcap_h+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5116 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5117 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5119 # Is the header compilable?
5120 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5121 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5122 cat >conftest.$ac_ext <<_ACEOF
5123 #line $LINENO "configure"
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5129 $ac_includes_default
5130 #include <termcap.h>
5132 rm -f conftest.$ac_objext
5133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5134 (eval $ac_compile) 2>&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } &&
5138 { ac_try='test -s conftest.$ac_objext'
5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; }; then
5144 ac_header_compiler=yes
5146 echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5149 ac_header_compiler=no
5151 rm -f conftest.$ac_objext conftest.$ac_ext
5152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5153 echo "${ECHO_T}$ac_header_compiler" >&6
5155 # Is the header present?
5156 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5157 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5158 cat >conftest.$ac_ext <<_ACEOF
5159 #line $LINENO "configure"
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5165 #include <termcap.h>
5167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5170 grep -v '^ *+' conftest.er1 >conftest.err
5172 cat conftest.err >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } >/dev/null; then
5175 if test -s conftest.err; then
5176 ac_cpp_err=$ac_c_preproc_warn_flag
5183 if test -z "$ac_cpp_err"; then
5184 ac_header_preproc=yes
5186 echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5189 ac_header_preproc=no
5191 rm -f conftest.err conftest.$ac_ext
5192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5193 echo "${ECHO_T}$ac_header_preproc" >&6
5195 # So? What about this header?
5196 case $ac_header_compiler:$ac_header_preproc in
5198 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5199 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5200 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5201 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5204 ## ------------------------------------ ##
5205 ## Report this to bug-autoconf@gnu.org. ##
5206 ## ------------------------------------ ##
5209 sed "s/^/$as_me: WARNING: /" >&2
5212 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5213 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5214 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5215 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5216 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5217 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5220 ## ------------------------------------ ##
5221 ## Report this to bug-autoconf@gnu.org. ##
5222 ## ------------------------------------ ##
5225 sed "s/^/$as_me: WARNING: /" >&2
5228 echo "$as_me:$LINENO: checking for termcap.h" >&5
5229 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5230 if test "${ac_cv_header_termcap_h+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 ac_cv_header_termcap_h=$ac_header_preproc
5235 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5236 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5239 if test $ac_cv_header_termcap_h = yes; then
5240 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5241 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5242 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 ac_check_lib_save_LIBS=$LIBS
5246 LIBS="-ltermcap $LIBS"
5247 cat >conftest.$ac_ext <<_ACEOF
5248 #line $LINENO "configure"
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5255 /* Override any gcc2 internal prototype to avoid an error. */
5259 /* We use char because int might match the return type of a gcc2
5260 builtin and then its argument prototype would still apply. */
5270 rm -f conftest.$ac_objext conftest$ac_exeext
5271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5272 (eval $ac_link) 2>&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } &&
5276 { ac_try='test -s conftest$ac_exeext'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
5282 ac_cv_lib_termcap_tgetent=yes
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5287 ac_cv_lib_termcap_tgetent=no
5289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5290 LIBS=$ac_check_lib_save_LIBS
5292 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5293 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5294 if test $ac_cv_lib_termcap_tgetent = yes; then
5295 CONS_LIBS="-ltermcap"
5301 cat >>confdefs.h <<\_ACEOF
5302 #define HAVE_CONIO 1
5307 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5308 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5309 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 ac_check_lib_save_LIBS=$LIBS
5313 LIBS="-lncurses $LIBS"
5314 cat >conftest.$ac_ext <<_ACEOF
5315 #line $LINENO "configure"
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5322 /* Override any gcc2 internal prototype to avoid an error. */
5326 /* We use char because int might match the return type of a gcc2
5327 builtin and then its argument prototype would still apply. */
5337 rm -f conftest.$ac_objext conftest$ac_exeext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5339 (eval $ac_link) 2>&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } &&
5343 { ac_try='test -s conftest$ac_exeext'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5349 ac_cv_lib_ncurses_tgetent=yes
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5354 ac_cv_lib_ncurses_tgetent=no
5356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5357 LIBS=$ac_check_lib_save_LIBS
5359 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5360 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5361 if test $ac_cv_lib_ncurses_tgetent = yes; then
5362 CONS_LIBS="-lncurses"
5368 cat >>confdefs.h <<\_ACEOF
5369 #define HAVE_CONIO 1
5374 echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5382 echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5389 # ---------------------------------------------------
5390 # Check for readline support/directory (default off)
5391 # ---------------------------------------------------
5392 # this allows you to turn it completely off
5393 # Check whether --enable-readline or --disable-readline was given.
5394 if test "${enable_readline+set}" = set; then
5395 enableval="$enable_readline"
5396 if test x$enableval = xno; then
5403 if test x$support_readline = xyes; then
5405 # Check whether --with-readline or --without-readline was given.
5406 if test "${with_readline+set}" = set; then
5407 withval="$with_readline"
5409 case "$with_readline" in
5412 if test "$with_readline" != "yes"; then
5413 CONS_INC="-I${with_readline}"
5414 CONS_LDFLAGS="-L$with_readline"
5416 with_readline="/usr/include/readline"
5418 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5420 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5421 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5428 # Is the header compilable?
5429 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5430 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5431 cat >conftest.$ac_ext <<_ACEOF
5432 #line $LINENO "configure"
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 $ac_includes_default
5439 #include <${with_readline}/readline.h>
5441 rm -f conftest.$ac_objext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443 (eval $ac_compile) 2>&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try='test -s conftest.$ac_objext'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; }; then
5453 ac_header_compiler=yes
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5458 ac_header_compiler=no
5460 rm -f conftest.$ac_objext conftest.$ac_ext
5461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5462 echo "${ECHO_T}$ac_header_compiler" >&6
5464 # Is the header present?
5465 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5466 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5467 cat >conftest.$ac_ext <<_ACEOF
5468 #line $LINENO "configure"
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 #include <${with_readline}/readline.h>
5476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5479 grep -v '^ *+' conftest.er1 >conftest.err
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } >/dev/null; then
5484 if test -s conftest.err; then
5485 ac_cpp_err=$ac_c_preproc_warn_flag
5492 if test -z "$ac_cpp_err"; then
5493 ac_header_preproc=yes
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5498 ac_header_preproc=no
5500 rm -f conftest.err conftest.$ac_ext
5501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5502 echo "${ECHO_T}$ac_header_preproc" >&6
5504 # So? What about this header?
5505 case $ac_header_compiler:$ac_header_preproc in
5507 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5508 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5509 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5510 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5513 ## ------------------------------------ ##
5514 ## Report this to bug-autoconf@gnu.org. ##
5515 ## ------------------------------------ ##
5518 sed "s/^/$as_me: WARNING: /" >&2
5521 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5522 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5523 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5524 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5525 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5526 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5529 ## ------------------------------------ ##
5530 ## Report this to bug-autoconf@gnu.org. ##
5531 ## ------------------------------------ ##
5534 sed "s/^/$as_me: WARNING: /" >&2
5537 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5538 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 eval "$as_ac_Header=$ac_header_preproc"
5544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5549 cat >>confdefs.h <<\_ACEOF
5550 #define HAVE_READLINE 1
5553 CONS_LIBS="-lreadline -ltermcap"
5558 echo "readline.h not found. readline turned off ..."
5570 # check for standard readline library
5571 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5572 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5573 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5574 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5578 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5580 # Is the header compilable?
5581 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5582 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5583 cat >conftest.$ac_ext <<_ACEOF
5584 #line $LINENO "configure"
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 $ac_includes_default
5591 #include </usr/include/readline/readline.h>
5593 rm -f conftest.$ac_objext
5594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5595 (eval $ac_compile) 2>&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try='test -s conftest.$ac_objext'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5605 ac_header_compiler=yes
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5610 ac_header_compiler=no
5612 rm -f conftest.$ac_objext conftest.$ac_ext
5613 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5614 echo "${ECHO_T}$ac_header_compiler" >&6
5616 # Is the header present?
5617 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5618 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5619 cat >conftest.$ac_ext <<_ACEOF
5620 #line $LINENO "configure"
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 #include </usr/include/readline/readline.h>
5628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5631 grep -v '^ *+' conftest.er1 >conftest.err
5633 cat conftest.err >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } >/dev/null; then
5636 if test -s conftest.err; then
5637 ac_cpp_err=$ac_c_preproc_warn_flag
5644 if test -z "$ac_cpp_err"; then
5645 ac_header_preproc=yes
5647 echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5650 ac_header_preproc=no
5652 rm -f conftest.err conftest.$ac_ext
5653 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5654 echo "${ECHO_T}$ac_header_preproc" >&6
5656 # So? What about this header?
5657 case $ac_header_compiler:$ac_header_preproc in
5659 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5660 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5661 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5662 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5665 ## ------------------------------------ ##
5666 ## Report this to bug-autoconf@gnu.org. ##
5667 ## ------------------------------------ ##
5670 sed "s/^/$as_me: WARNING: /" >&2
5673 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5674 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5675 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5676 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5677 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5678 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5681 ## ------------------------------------ ##
5682 ## Report this to bug-autoconf@gnu.org. ##
5683 ## ------------------------------------ ##
5686 sed "s/^/$as_me: WARNING: /" >&2
5689 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5690 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5691 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5696 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5697 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5700 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5701 cat >>confdefs.h <<\_ACEOF
5702 #define HAVE_READLINE 1
5706 CONS_INC="-I/usr/include/readline"
5707 CONS_LIBS="-lreadline -ltermcap"
5711 # Did not find standard library, so try Bacula's default
5712 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5714 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5715 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5722 # Is the header compilable?
5723 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5724 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5725 cat >conftest.$ac_ext <<_ACEOF
5726 #line $LINENO "configure"
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5732 $ac_includes_default
5733 #include <${TOP_DIR}/depkgs/readline/readline.h>
5735 rm -f conftest.$ac_objext
5736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5737 (eval $ac_compile) 2>&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } &&
5741 { ac_try='test -s conftest.$ac_objext'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5747 ac_header_compiler=yes
5749 echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.$ac_ext >&5
5752 ac_header_compiler=no
5754 rm -f conftest.$ac_objext conftest.$ac_ext
5755 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5756 echo "${ECHO_T}$ac_header_compiler" >&6
5758 # Is the header present?
5759 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5760 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5761 cat >conftest.$ac_ext <<_ACEOF
5762 #line $LINENO "configure"
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h. */
5768 #include <${TOP_DIR}/depkgs/readline/readline.h>
5770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5773 grep -v '^ *+' conftest.er1 >conftest.err
5775 cat conftest.err >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } >/dev/null; then
5778 if test -s conftest.err; then
5779 ac_cpp_err=$ac_c_preproc_warn_flag
5786 if test -z "$ac_cpp_err"; then
5787 ac_header_preproc=yes
5789 echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5792 ac_header_preproc=no
5794 rm -f conftest.err conftest.$ac_ext
5795 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5796 echo "${ECHO_T}$ac_header_preproc" >&6
5798 # So? What about this header?
5799 case $ac_header_compiler:$ac_header_preproc in
5801 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5802 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5803 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5804 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5807 ## ------------------------------------ ##
5808 ## Report this to bug-autoconf@gnu.org. ##
5809 ## ------------------------------------ ##
5812 sed "s/^/$as_me: WARNING: /" >&2
5815 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5816 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5817 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5818 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5819 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5820 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5823 ## ------------------------------------ ##
5824 ## Report this to bug-autoconf@gnu.org. ##
5825 ## ------------------------------------ ##
5828 sed "s/^/$as_me: WARNING: /" >&2
5831 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5832 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 eval "$as_ac_Header=$ac_header_preproc"
5838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5843 cat >>confdefs.h <<\_ACEOF
5844 #define HAVE_READLINE 1
5848 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5849 CONS_LIBS="-lreadline -lhistory -ltermcap"
5850 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5851 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5855 echo "readline.h not found. readline turned off ..."
5881 # Minimal stuff for readline Makefile configuration
5885 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5886 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5887 if test "${ac_cv_header_stat_broken+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 cat >conftest.$ac_ext <<_ACEOF
5891 #line $LINENO "configure"
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5897 #include <sys/types.h>
5898 #include <sys/stat.h>
5900 #if defined(S_ISBLK) && defined(S_IFDIR)
5901 # if S_ISBLK (S_IFDIR)
5906 #if defined(S_ISBLK) && defined(S_IFCHR)
5907 # if S_ISBLK (S_IFCHR)
5912 #if defined(S_ISLNK) && defined(S_IFREG)
5913 # if S_ISLNK (S_IFREG)
5918 #if defined(S_ISSOCK) && defined(S_IFREG)
5919 # if S_ISSOCK (S_IFREG)
5925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5926 $EGREP "You lose" >/dev/null 2>&1; then
5927 ac_cv_header_stat_broken=yes
5929 ac_cv_header_stat_broken=no
5934 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5935 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5936 if test $ac_cv_header_stat_broken = yes; then
5938 cat >>confdefs.h <<\_ACEOF
5939 #define STAT_MACROS_BROKEN 1
5950 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5951 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5952 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5953 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 cat >conftest.$ac_ext <<_ACEOF
5958 #line $LINENO "configure"
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h. */
5964 #include <sys/types.h>
5976 rm -f conftest.$ac_objext
5977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5978 (eval $ac_compile) 2>&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } &&
5982 { ac_try='test -s conftest.$ac_objext'
5983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; }; then
5988 eval "$as_ac_Header=yes"
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5993 eval "$as_ac_Header=no"
5995 rm -f conftest.$ac_objext conftest.$ac_ext
5997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6000 cat >>confdefs.h <<_ACEOF
6001 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6004 ac_header_dirent=$ac_hdr; break
6008 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6009 if test $ac_header_dirent = dirent.h; then
6010 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6011 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6012 if test "${ac_cv_search_opendir+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 ac_func_search_save_LIBS=$LIBS
6016 ac_cv_search_opendir=no
6017 cat >conftest.$ac_ext <<_ACEOF
6018 #line $LINENO "configure"
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6025 /* Override any gcc2 internal prototype to avoid an error. */
6029 /* We use char because int might match the return type of a gcc2
6030 builtin and then its argument prototype would still apply. */
6040 rm -f conftest.$ac_objext conftest$ac_exeext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6042 (eval $ac_link) 2>&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } &&
6046 { ac_try='test -s conftest$ac_exeext'
6047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; }; then
6052 ac_cv_search_opendir="none required"
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6059 if test "$ac_cv_search_opendir" = no; then
6060 for ac_lib in dir; do
6061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6062 cat >conftest.$ac_ext <<_ACEOF
6063 #line $LINENO "configure"
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6070 /* Override any gcc2 internal prototype to avoid an error. */
6074 /* We use char because int might match the return type of a gcc2
6075 builtin and then its argument prototype would still apply. */
6085 rm -f conftest.$ac_objext conftest$ac_exeext
6086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6087 (eval $ac_link) 2>&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } &&
6091 { ac_try='test -s conftest$ac_exeext'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_cv_search_opendir="-l$ac_lib"
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6107 LIBS=$ac_func_search_save_LIBS
6109 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6110 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6111 if test "$ac_cv_search_opendir" != no; then
6112 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6117 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6118 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6119 if test "${ac_cv_search_opendir+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 ac_func_search_save_LIBS=$LIBS
6123 ac_cv_search_opendir=no
6124 cat >conftest.$ac_ext <<_ACEOF
6125 #line $LINENO "configure"
6128 cat confdefs.h >>conftest.$ac_ext
6129 cat >>conftest.$ac_ext <<_ACEOF
6130 /* end confdefs.h. */
6132 /* Override any gcc2 internal prototype to avoid an error. */
6136 /* We use char because int might match the return type of a gcc2
6137 builtin and then its argument prototype would still apply. */
6147 rm -f conftest.$ac_objext conftest$ac_exeext
6148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6149 (eval $ac_link) 2>&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } &&
6153 { ac_try='test -s conftest$ac_exeext'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 ac_cv_search_opendir="none required"
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6166 if test "$ac_cv_search_opendir" = no; then
6168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6169 cat >conftest.$ac_ext <<_ACEOF
6170 #line $LINENO "configure"
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6177 /* Override any gcc2 internal prototype to avoid an error. */
6181 /* We use char because int might match the return type of a gcc2
6182 builtin and then its argument prototype would still apply. */
6192 rm -f conftest.$ac_objext conftest$ac_exeext
6193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6194 (eval $ac_link) 2>&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try='test -s conftest$ac_exeext'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; }; then
6204 ac_cv_search_opendir="-l$ac_lib"
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6214 LIBS=$ac_func_search_save_LIBS
6216 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6217 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6218 if test "$ac_cv_search_opendir" != no; then
6219 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6234 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6237 echo "$as_me:$LINENO: checking for $ac_func" >&5
6238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6239 if eval "test \"\${$as_ac_var+set}\" = set"; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 cat >conftest.$ac_ext <<_ACEOF
6243 #line $LINENO "configure"
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6249 /* System header to define __stub macros and hopefully few prototypes,
6250 which can conflict with char $ac_func (); below.
6251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6252 <limits.h> exists even on freestanding compilers. */
6254 # include <limits.h>
6256 # include <assert.h>
6258 /* Override any gcc2 internal prototype to avoid an error. */
6263 /* We use char because int might match the return type of a gcc2
6264 builtin and then its argument prototype would still apply. */
6266 /* The GNU C library defines this for functions which it implements
6267 to always fail with ENOSYS. Some functions are actually named
6268 something starting with __ and the normal name is an alias. */
6269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6272 char (*f) () = $ac_func;
6281 return f != $ac_func;
6286 rm -f conftest.$ac_objext conftest$ac_exeext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6288 (eval $ac_link) 2>&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } &&
6292 { ac_try='test -s conftest$ac_exeext'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
6298 eval "$as_ac_var=yes"
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6303 eval "$as_ac_var=no"
6305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6309 if test `eval echo '${'$as_ac_var'}'` = yes; then
6310 cat >>confdefs.h <<_ACEOF
6311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6319 for ac_func in nanosleep nl_langinfo
6321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6322 echo "$as_me:$LINENO: checking for $ac_func" >&5
6323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6324 if eval "test \"\${$as_ac_var+set}\" = set"; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 cat >conftest.$ac_ext <<_ACEOF
6328 #line $LINENO "configure"
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 /* System header to define __stub macros and hopefully few prototypes,
6335 which can conflict with char $ac_func (); below.
6336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6337 <limits.h> exists even on freestanding compilers. */
6339 # include <limits.h>
6341 # include <assert.h>
6343 /* Override any gcc2 internal prototype to avoid an error. */
6348 /* We use char because int might match the return type of a gcc2
6349 builtin and then its argument prototype would still apply. */
6351 /* The GNU C library defines this for functions which it implements
6352 to always fail with ENOSYS. Some functions are actually named
6353 something starting with __ and the normal name is an alias. */
6354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6357 char (*f) () = $ac_func;
6366 return f != $ac_func;
6371 rm -f conftest.$ac_objext conftest$ac_exeext
6372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6373 (eval $ac_link) 2>&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } &&
6377 { ac_try='test -s conftest$ac_exeext'
6378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then
6383 eval "$as_ac_var=yes"
6385 echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6388 eval "$as_ac_var=no"
6390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6394 if test `eval echo '${'$as_ac_var'}'` = yes; then
6395 cat >>confdefs.h <<_ACEOF
6396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6404 for ac_header in varargs.h
6406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408 echo "$as_me:$LINENO: checking for $ac_header" >&5
6409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6416 # Is the header compilable?
6417 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6419 cat >conftest.$ac_ext <<_ACEOF
6420 #line $LINENO "configure"
6423 cat confdefs.h >>conftest.$ac_ext
6424 cat >>conftest.$ac_ext <<_ACEOF
6425 /* end confdefs.h. */
6426 $ac_includes_default
6427 #include <$ac_header>
6429 rm -f conftest.$ac_objext
6430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6431 (eval $ac_compile) 2>&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } &&
6435 { ac_try='test -s conftest.$ac_objext'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; }; then
6441 ac_header_compiler=yes
6443 echo "$as_me: failed program was:" >&5
6444 sed 's/^/| /' conftest.$ac_ext >&5
6446 ac_header_compiler=no
6448 rm -f conftest.$ac_objext conftest.$ac_ext
6449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6450 echo "${ECHO_T}$ac_header_compiler" >&6
6452 # Is the header present?
6453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6455 cat >conftest.$ac_ext <<_ACEOF
6456 #line $LINENO "configure"
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6462 #include <$ac_header>
6464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6467 grep -v '^ *+' conftest.er1 >conftest.err
6469 cat conftest.err >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } >/dev/null; then
6472 if test -s conftest.err; then
6473 ac_cpp_err=$ac_c_preproc_warn_flag
6480 if test -z "$ac_cpp_err"; then
6481 ac_header_preproc=yes
6483 echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6486 ac_header_preproc=no
6488 rm -f conftest.err conftest.$ac_ext
6489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6490 echo "${ECHO_T}$ac_header_preproc" >&6
6492 # So? What about this header?
6493 case $ac_header_compiler:$ac_header_preproc in
6495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6501 ## ------------------------------------ ##
6502 ## Report this to bug-autoconf@gnu.org. ##
6503 ## ------------------------------------ ##
6506 sed "s/^/$as_me: WARNING: /" >&2
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6517 ## ------------------------------------ ##
6518 ## Report this to bug-autoconf@gnu.org. ##
6519 ## ------------------------------------ ##
6522 sed "s/^/$as_me: WARNING: /" >&2
6525 echo "$as_me:$LINENO: checking for $ac_header" >&5
6526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 eval "$as_ac_Header=$ac_header_preproc"
6532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6537 cat >>confdefs.h <<_ACEOF
6538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6546 # End of readline/conio stuff
6547 # -----------------------------------------------------------------------
6550 # ---------------------------------------------------
6551 # Check for GMP support/directory
6552 # ---------------------------------------------------
6556 # [ --with-gmp[=DIR] Specify gmp library directory],
6558 # case "$with_gmp" in
6561 # if test "$with_gmp" != "yes"; then
6562 # GMP_INC="-I$with_gmp"
6564 # GMP_LDFLAGS="-L$with_gmp"
6566 # with_gmp="/usr/include"
6568 # AC_CHECK_HEADER($with_gmp/gmp.h,
6569 # [ AC_MSG_RESULT(yes)
6570 # AC_DEFINE(HAVE_GMP)
6574 # [ AC_MSG_ERROR([*** gmp library missing])
6580 # # check for standard gmp library
6581 # AC_CHECK_HEADER(/usr/include/gmp.h,
6582 # [ AC_MSG_RESULT(yes)
6583 # AC_DEFINE(HAVE_GMP)
6588 # # Did not find standard library, so use our own
6589 # AC_MSG_RESULT(yes)
6590 # AC_DEFINE(HAVE_GMP)
6593 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6595 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6596 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6602 #AC_SUBST(GMP_LDFLAGS)
6606 # -----------------------------------------------------------------------
6609 # ---------------------------------------------------
6610 # Check for CWEB support/directory
6611 # ---------------------------------------------------
6616 # [ --with-cweb[=DIR] Specify cweb library directory],
6618 # case "$with_cweb" in
6621 # if test "$with_cweb" != "yes"; then
6622 # CWEB_INC="-I$with_cweb"
6623 # CWEB_LIBS="-lcweb"
6624 # CWEB_LDFLAGS="-L$with_cweb"
6626 # with_cweb="/usr/include"
6628 # AC_CHECK_HEADER($with_cweb/cweb.h,
6629 # [ AC_MSG_RESULT(yes)
6630 # AC_DEFINE(HAVE_CWEB)
6631 # CWEB_LIBS="-lcweb"
6634 # [ AC_MSG_ERROR([*** cweb library missing])
6640 # # check for standard cweb library
6641 # AC_CHECK_HEADER(/usr/include/cweb.h,
6642 # [ AC_MSG_RESULT(yes)
6643 # AC_DEFINE(HAVE_CWEB)
6646 # CWEB_LIBS="-lcweb"
6648 # # Did not find starndard library, so use our own
6649 # AC_MSG_RESULT(yes)
6650 # AC_DEFINE(HAVE_CWEB)
6653 # CWEB=${TOP_DIR}/depkgs/cweb
6654 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6655 # CWEB_LIBS="-lcweb"
6656 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6657 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6663 #AC_SUBST(CWEB_LIBS)
6664 #AC_SUBST(CWEB_LDFLAGS)
6668 # -----------------------------------------------------------------------
6672 # -----------------------------------------------------------
6673 # Check whether user wants TCP wrappers support (default off)
6674 # -----------------------------------------------------------
6677 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6678 if test "${with_tcp_wrappers+set}" = set; then
6679 withval="$with_tcp_wrappers"
6681 if test "x$withval" != "xno" ; then
6683 LIBS="$saved_LIBS -lwrap"
6684 echo "$as_me:$LINENO: checking for libwrap" >&5
6685 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6686 cat >conftest.$ac_ext <<_ACEOF
6687 #line $LINENO "configure"
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6694 int deny_severity = 0;
6695 int allow_severity = 0;
6696 struct request_info *req;
6705 rm -f conftest.$ac_objext conftest$ac_exeext
6706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6707 (eval $ac_link) 2>&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } &&
6711 { ac_try='test -s conftest$ac_exeext'
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6718 echo "$as_me:$LINENO: result: yes" >&5
6719 echo "${ECHO_T}yes" >&6
6720 cat >>confdefs.h <<\_ACEOF
6721 #define HAVE_LIBWRAP 1
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6731 LIBS="$saved_LIBS -lwrap -lnsl"
6732 cat >conftest.$ac_ext <<_ACEOF
6733 #line $LINENO "configure"
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6740 int deny_severity = 0;
6741 int allow_severity = 0;
6742 struct request_info *req;
6751 rm -f conftest.$ac_objext conftest$ac_exeext
6752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6753 (eval $ac_link) 2>&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try='test -s conftest$ac_exeext'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; }; then
6764 echo "$as_me:$LINENO: result: yes" >&5
6765 echo "${ECHO_T}yes" >&6
6766 cat >>confdefs.h <<\_ACEOF
6767 #define HAVE_LIBWRAP 1
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6776 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6777 echo "$as_me: error: *** libwrap missing" >&2;}
6778 { (exit 1); exit 1; }; }
6781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6790 # ------------------------------------------
6791 # Where to place working dir
6792 # ------------------------------------------
6793 working_dir=`eval echo ${prefix}/var/bacula/working`
6795 # Check whether --with-working-dir or --without-working-dir was given.
6796 if test "${with_working_dir+set}" = set; then
6797 withval="$with_working_dir"
6799 if test "x$withval" != "xno" ; then
6800 working_dir=$withval
6809 # ------------------------------------------
6810 # Where to place scriptdir (script files)
6811 # ------------------------------------------
6812 scriptdir=`eval echo ${sysconfdir}`
6814 # Check whether --with-scriptdir or --without-scriptdir was given.
6815 if test "${with_scriptdir+set}" = set; then
6816 withval="$with_scriptdir"
6818 if test "x$withval" != "xno" ; then
6828 # ------------------------------------------
6829 # Where to send dump email
6830 # ------------------------------------------
6831 dump_email=root@localhost
6833 # Check whether --with-dump-email or --without-dump-email was given.
6834 if test "${with_dump_email+set}" = set; then
6835 withval="$with_dump_email"
6837 if test "x$withval" != "xno" ; then
6846 # ------------------------------------------
6847 # Where to send job email
6848 # ------------------------------------------
6849 job_email=root@localhost
6851 # Check whether --with-job-email or --without-job-email was given.
6852 if test "${with_job_email+set}" = set; then
6853 withval="$with_job_email"
6855 if test "x$withval" != "xno" ; then
6864 # ------------------------------------------
6865 # Where to find smtp host
6866 # ------------------------------------------
6869 # Check whether --with-smtp_host or --without-smtp_host was given.
6870 if test "${with_smtp_host+set}" = set; then
6871 withval="$with_smtp_host"
6873 if test "x$withval" != "xno" ; then
6883 # ------------------------------------
6884 # Where to place pid files
6885 # ------------------------------------
6888 # Check whether --with-pid-dir or --without-pid-dir was given.
6889 if test "${with_pid_dir+set}" = set; then
6890 withval="$with_pid_dir"
6892 if test "x$withval" != "xno" ; then
6899 cat >>confdefs.h <<_ACEOF
6900 #define _PATH_BACULA_PIDDIR "$piddir"
6906 # ------------------------------------
6907 # Where to place subsys "lock file"
6908 # ------------------------------------
6909 subsysdir=/var/run/subsys
6911 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6912 if test "${with_subsys_dir+set}" = set; then
6913 withval="$with_subsys_dir"
6915 if test "x$withval" != "xno" ; then
6926 # ------------------------------------
6927 # Where to start assigning ports
6928 # ------------------------------------
6931 # Check whether --with-baseport or --without-baseport was given.
6932 if test "${with_baseport+set}" = set; then
6933 withval="$with_baseport"
6935 if test "x$withval" != "xno" ; then
6943 dir_port=`expr $baseport`
6944 fd_port=`expr $baseport + 1`
6945 sd_port=`expr $fd_port + 1`
6952 # ------------------------------------------
6953 # Generate passwords
6954 # ------------------------------------------
6957 # Check whether --with-dir-password or --without-dir-password was given.
6958 if test "${with_dir_password+set}" = set; then
6959 withval="$with_dir_password"
6961 if test "x$withval" != "xno" ; then
6962 dir_password=$withval
6968 if test "x$dir_password" = "x" ; then
6969 if test "x$OPENSSL" = "xnone" ; then
6970 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6971 key=`autoconf/randpass 33`
6973 key=`openssl rand -base64 33`
6980 # Check whether --with-fd-password or --without-fd-password was given.
6981 if test "${with_fd_password+set}" = set; then
6982 withval="$with_fd_password"
6984 if test "x$withval" != "xno" ; then
6985 fd_password=$withval
6991 if test "x$fd_password" = "x" ; then
6992 if test "x$OPENSSL" = "xnone" ; then
6993 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6994 key=`autoconf/randpass 37`
6996 key=`openssl rand -base64 33`
7003 # Check whether --with-sd-password or --without-sd-password was given.
7004 if test "${with_sd_password+set}" = set; then
7005 withval="$with_sd_password"
7007 if test "x$withval" != "xno" ; then
7008 sd_password=$withval
7014 if test "x$sd_password" = "x" ; then
7015 if test "x$OPENSSL" = "xnone" ; then
7016 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7017 key=`autoconf/randpass 41`
7019 key=`openssl rand -base64 33`
7031 # Handle users and groups for each daemon
7035 # Check whether --with-dir_user or --without-dir_user was given.
7036 if test "${with_dir_user+set}" = set; then
7037 withval="$with_dir_user"
7039 if test "x$withval" != "x" ; then
7048 # Check whether --with-dir_group or --without-dir_group was given.
7049 if test "${with_dir_group+set}" = set; then
7050 withval="$with_dir_group"
7052 if test "x$withval" != "x" ; then
7061 # Check whether --with-sd_user or --without-sd_user was given.
7062 if test "${with_sd_user+set}" = set; then
7063 withval="$with_sd_user"
7065 if test "x$withval" != "x" ; then
7074 # Check whether --with-sd_group or --without-sd_group was given.
7075 if test "${with_sd_group+set}" = set; then
7076 withval="$with_sd_group"
7078 if test "x$withval" != "x" ; then
7087 # Check whether --with-fd_user or --without-fd_user was given.
7088 if test "${with_fd_user+set}" = set; then
7089 withval="$with_fd_user"
7091 if test "x$withval" != "x" ; then
7100 # Check whether --with-fd_group or --without-fd_group was given.
7101 if test "${with_fd_group+set}" = set; then
7102 withval="$with_fd_group"
7104 if test "x$withval" != "x" ; then
7122 # allow setting default executable permissions
7126 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7127 if test "${with_sbin_perm+set}" = set; then
7128 withval="$with_sbin_perm"
7130 if test "x$withval" != "x" ; then
7139 # ------------------------------------------------
7140 # Bacula check for various SQL database engines
7141 # ------------------------------------------------
7144 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7145 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7147 # Check whether --with-postgresql or --without-postgresql was given.
7148 if test "${with_postgresql+set}" = set; then
7149 withval="$with_postgresql"
7151 if test "$withval" != "no"; then
7152 if test "$db_found" = "yes"; then
7153 echo "$as_me:$LINENO: result: error" >&5
7154 echo "${ECHO_T}error" >&6
7155 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7156 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7157 { (exit 1); exit 1; }; };
7159 if test "$withval" = "yes"; then
7160 if test -f /usr/local/include/libpq-fe.h; then
7161 POSTGRESQL_INCDIR=/usr/local/include
7162 POSTGRESQL_LIBDIR=/usr/local/lib
7163 POSTGRESQL_BINDIR=/usr/local/bin
7164 elif test -f /usr/include/libpq-fe.h; then
7165 POSTGRESQL_INCDIR=/usr/include
7166 POSTGRESQL_LIBDIR=/usr/lib
7167 POSTGRESQL_BINDIR=/usr/bin
7168 elif test -f /usr/include/pgsql/libpq-fe.h; then
7169 POSTGRESQL_INCDIR=/usr/include/pgsql
7170 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7171 POSTGRESQL_BINDIR=/usr/bin
7172 elif test -f /usr/include/postgresql/libpq-fe.h; then
7173 POSTGRESQL_INCDIR=/usr/include/postgresql
7174 POSTGRESQL_LIBDIR=/usr/lib/postgresql
7175 POSTGRESQL_BINDIR=/usr/bin
7177 echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6
7179 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7180 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7181 { (exit 1); exit 1; }; }
7183 elif test -f $withval/include/libpq-fe.h; then
7184 POSTGRESQL_INCDIR=$withval/include
7185 POSTGRESQL_LIBDIR=$withval/lib
7186 POSTGRESQL_BINDIR=$withval/bin
7188 echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6
7190 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7191 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7192 { (exit 1); exit 1; }; }
7194 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7195 echo "$as_me:$LINENO: checking for crypt" >&5
7196 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7197 if test "${ac_cv_func_crypt+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 cat >conftest.$ac_ext <<_ACEOF
7201 #line $LINENO "configure"
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7207 /* System header to define __stub macros and hopefully few prototypes,
7208 which can conflict with char crypt (); below.
7209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7210 <limits.h> exists even on freestanding compilers. */
7212 # include <limits.h>
7214 # include <assert.h>
7216 /* Override any gcc2 internal prototype to avoid an error. */
7221 /* We use char because int might match the return type of a gcc2
7222 builtin and then its argument prototype would still apply. */
7224 /* The GNU C library defines this for functions which it implements
7225 to always fail with ENOSYS. Some functions are actually named
7226 something starting with __ and the normal name is an alias. */
7227 #if defined (__stub_crypt) || defined (__stub___crypt)
7230 char (*f) () = crypt;
7244 rm -f conftest.$ac_objext conftest$ac_exeext
7245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7246 (eval $ac_link) 2>&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); } &&
7250 { ac_try='test -s conftest$ac_exeext'
7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); }; }; then
7256 ac_cv_func_crypt=yes
7258 echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7265 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7266 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7267 if test $ac_cv_func_crypt = yes; then
7270 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7271 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7272 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 ac_check_lib_save_LIBS=$LIBS
7276 LIBS="-lcrypt $LIBS"
7277 cat >conftest.$ac_ext <<_ACEOF
7278 #line $LINENO "configure"
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7285 /* Override any gcc2 internal prototype to avoid an error. */
7289 /* We use char because int might match the return type of a gcc2
7290 builtin and then its argument prototype would still apply. */
7300 rm -f conftest.$ac_objext conftest$ac_exeext
7301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7302 (eval $ac_link) 2>&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } &&
7306 { ac_try='test -s conftest$ac_exeext'
7307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); }; }; then
7312 ac_cv_lib_crypt_crypt=yes
7314 echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7317 ac_cv_lib_crypt_crypt=no
7319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7320 LIBS=$ac_check_lib_save_LIBS
7322 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7323 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7324 if test $ac_cv_lib_crypt_crypt = yes; then
7325 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7330 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7331 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7332 SQL_BINDIR=$POSTGRESQL_BINDIR
7333 cat >>confdefs.h <<\_ACEOF
7334 #define HAVE_POSTGRESQL 1
7337 echo "$as_me:$LINENO: result: yes" >&5
7338 echo "${ECHO_T}yes" >&6
7340 support_postgresql=yes
7344 echo "$as_me:$LINENO: result: no" >&5
7345 echo "${ECHO_T}no" >&6
7350 echo "$as_me:$LINENO: result: no" >&5
7351 echo "${ECHO_T}no" >&6
7362 echo "$as_me:$LINENO: checking for MySQL support" >&5
7363 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7365 # Check whether --with-mysql or --without-mysql was given.
7366 if test "${with_mysql+set}" = set; then
7367 withval="$with_mysql"
7369 if test "$withval" != "no"; then
7370 if test "$withval" = "yes"; then
7371 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7372 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7373 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7374 MYSQL_BINDIR=/usr/local/mysql/bin
7375 elif test -f /usr/include/mysql/mysql.h; then
7376 MYSQL_INCDIR=/usr/include/mysql
7377 MYSQL_LIBDIR=/usr/lib/mysql
7378 MYSQL_BINDIR=/usr/bin
7379 elif test -f /usr/include/mysql.h; then
7380 MYSQL_INCDIR=/usr/include
7381 MYSQL_LIBDIR=/usr/lib
7382 MYSQL_BINDIR=/usr/bin
7383 elif test -f /usr/local/include/mysql/mysql.h; then
7384 MYSQL_INCDIR=/usr/local/include/mysql
7385 MYSQL_LIBDIR=/usr/local/lib/mysql
7386 MYSQL_BINDIR=/usr/local/bin
7387 elif test -f /usr/local/include/mysql.h; then
7388 MYSQL_INCDIR=/usr/local/include
7389 MYSQL_LIBDIR=/usr/local/lib
7390 MYSQL_BINDIR=/usr/local/bin
7392 echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6
7394 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7395 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7396 { (exit 1); exit 1; }; }
7399 if test -f $withval/include/mysql/mysql.h; then
7400 MYSQL_INCDIR=$withval/include/mysql
7401 MYSQL_LIBDIR=$withval/lib/mysql
7402 MYSQL_BINDIR=$withval/bin
7403 elif test -f $withval/include/mysql.h; then
7404 MYSQL_INCDIR=$withval/include
7405 MYSQL_LIBDIR=$withval/lib
7406 MYSQL_BINDIR=$withval/bin
7408 echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6
7410 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7411 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7412 { (exit 1); exit 1; }; }
7415 SQL_INCLUDE=-I$MYSQL_INCDIR
7416 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7417 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7418 cat >>confdefs.h <<\_ACEOF
7419 #define HAVE_THREAD_SAFE_MYSQL 1
7423 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7425 SQL_BINDIR=$MYSQL_BINDIR
7427 cat >>confdefs.h <<\_ACEOF
7428 #define HAVE_MYSQL 1
7431 echo "$as_me:$LINENO: result: yes" >&5
7432 echo "${ECHO_T}yes" >&6
7439 echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6
7445 echo "$as_me:$LINENO: result: no" >&5
7446 echo "${ECHO_T}no" >&6
7451 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7452 if test "${with_embedded_mysql+set}" = set; then
7453 withval="$with_embedded_mysql"
7455 if test "$withval" != "no"; then
7456 if test "$withval" = "yes"; then
7457 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7458 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7459 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7460 MYSQL_BINDIR=/usr/local/mysql/bin
7461 elif test -f /usr/include/mysql/mysql.h; then
7462 MYSQL_INCDIR=/usr/include/mysql
7463 MYSQL_LIBDIR=/usr/lib/mysql
7464 MYSQL_BINDIR=/usr/bin
7465 elif test -f /usr/include/mysql.h; then
7466 MYSQL_INCDIR=/usr/include
7467 MYSQL_LIBDIR=/usr/lib
7468 MYSQL_BINDIR=/usr/bin
7469 elif test -f /usr/local/include/mysql/mysql.h; then
7470 MYSQL_INCDIR=/usr/local/include/mysql
7471 MYSQL_LIBDIR=/usr/local/lib/mysql
7472 MYSQL_BINDIR=/usr/local/bin
7473 elif test -f /usr/local/include/mysql.h; then
7474 MYSQL_INCDIR=/usr/local/include
7475 MYSQL_LIBDIR=/usr/local/lib
7476 MYSQL_BINDIR=/usr/local/bin
7478 echo "$as_me:$LINENO: result: no" >&5
7479 echo "${ECHO_T}no" >&6
7480 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7481 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7482 { (exit 1); exit 1; }; }
7485 if test -f $withval/include/mysql/mysql.h; then
7486 MYSQL_INCDIR=$withval/include/mysql
7487 MYSQL_LIBDIR=$withval/lib/mysql
7488 MYSQL_BINDIR=$withval/bin
7489 elif test -f $withval/include/mysql.h; then
7490 MYSQL_INCDIR=$withval/include
7491 MYSQL_LIBDIR=$withval/lib
7492 MYSQL_BINDIR=$withval/bin
7494 echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6
7496 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7497 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7498 { (exit 1); exit 1; }; }
7501 SQL_INCLUDE=-I$MYSQL_INCDIR
7502 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7503 SQL_BINDIR=$MYSQL_BINDIR
7505 cat >>confdefs.h <<\_ACEOF
7506 #define HAVE_MYSQL 1
7509 cat >>confdefs.h <<\_ACEOF
7510 #define HAVE_EMBEDDED_MYSQL 1
7513 echo "$as_me:$LINENO: result: yes" >&5
7514 echo "${ECHO_T}yes" >&6
7521 echo "$as_me:$LINENO: result: no" >&5
7522 echo "${ECHO_T}no" >&6
7527 echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6
7541 echo "$as_me:$LINENO: checking for SQLite support" >&5
7542 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7544 # Check whether --with-sqlite or --without-sqlite was given.
7545 if test "${with_sqlite+set}" = set; then
7546 withval="$with_sqlite"
7548 if test "$withval" != "no"; then
7549 if test "$withval" = "yes"; then
7550 if test -f /usr/local/include/sqlite.h; then
7551 SQLITE_INCDIR=/usr/local/include
7552 SQLITE_LIBDIR=/usr/local/lib
7553 SQLITE_BINDIR=/usr/local/bin
7554 elif test -f /usr/include/sqlite.h; then
7555 SQLITE_INCDIR=/usr/include
7556 SQLITE_LIBDIR=/usr/lib
7557 SQLITE_BINDIR=/usr/bin
7559 echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6
7561 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7562 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7563 { (exit 1); exit 1; }; }
7566 if test -f $withval/sqlite.h; then
7567 SQLITE_INCDIR=$withval
7568 SQLITE_LIBDIR=$withval
7569 SQLITE_BINDIR=$withval
7571 echo "$as_me:$LINENO: result: no" >&5
7572 echo "${ECHO_T}no" >&6
7573 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7574 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7575 { (exit 1); exit 1; }; }
7578 SQL_INCLUDE=-I$SQLITE_INCDIR
7579 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7580 SQL_BINDIR=$SQLITE_BINDIR
7582 cat >>confdefs.h <<\_ACEOF
7583 #define HAVE_SQLITE 1
7586 echo "$as_me:$LINENO: result: yes" >&5
7587 echo "${ECHO_T}yes" >&6
7594 echo "$as_me:$LINENO: result: no" >&5
7595 echo "${ECHO_T}no" >&6
7600 echo "$as_me:$LINENO: result: no" >&5
7601 echo "${ECHO_T}no" >&6
7613 cat >>confdefs.h <<\_ACEOF
7614 #define PROTOTYPES 1
7618 if test -z "$CFLAGS"; then
7619 if test -z "$CCOPTS"; then
7628 largefile_support="no"
7630 # Check whether --enable-largefile or --disable-largefile was given.
7631 if test "${enable_largefile+set}" = set; then
7632 enableval="$enable_largefile"
7635 if test "$enable_largefile" != no; then
7636 if test -n "$ac_tool_prefix"; then
7637 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7638 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7639 echo "$as_me:$LINENO: checking for $ac_word" >&5
7640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7641 if test "${ac_cv_prog_GETCONF+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 if test -n "$GETCONF"; then
7645 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 test -z "$as_dir" && as_dir=.
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7654 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 GETCONF=$ac_cv_prog_GETCONF
7664 if test -n "$GETCONF"; then
7665 echo "$as_me:$LINENO: result: $GETCONF" >&5
7666 echo "${ECHO_T}$GETCONF" >&6
7668 echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6
7673 if test -z "$ac_cv_prog_GETCONF"; then
7674 ac_ct_GETCONF=$GETCONF
7675 # Extract the first word of "getconf", so it can be a program name with args.
7676 set dummy getconf; ac_word=$2
7677 echo "$as_me:$LINENO: checking for $ac_word" >&5
7678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7679 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 if test -n "$ac_ct_GETCONF"; then
7683 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692 ac_cv_prog_ac_ct_GETCONF="getconf"
7693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7702 if test -n "$ac_ct_GETCONF"; then
7703 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7704 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7706 echo "$as_me:$LINENO: result: no" >&5
7707 echo "${ECHO_T}no" >&6
7710 GETCONF=$ac_ct_GETCONF
7712 GETCONF="$ac_cv_prog_GETCONF"
7715 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7716 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7717 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7721 ac_cv_sys_largefile_CFLAGS=no
7723 # IRIX 6.2 and later require cc -n32.
7724 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7725 if test "$GCC" != yes; then
7726 ac_cv_sys_largefile_CFLAGS=-n32
7729 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7730 cat >conftest.$ac_ext <<_ACEOF
7731 #line $LINENO "configure"
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748 (eval $ac_link) 2>&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } &&
7752 { ac_try='test -s conftest$ac_exeext'
7753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; }; then
7760 echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7763 ac_cv_sys_largefile_CFLAGS=no
7765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7770 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7771 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7772 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7773 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7774 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7778 ac_cv_sys_largefile_LDFLAGS=no
7782 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7783 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7784 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7785 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7786 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7790 ac_cv_sys_largefile_LIBS=no
7794 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7795 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7797 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7800 -D_FILE_OFFSET_BITS=*) ;;
7801 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7802 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7808 '') CPPFLAGS="$ac_flag" ;;
7809 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7817 '') CFLAGS="$ac_flag" ;;
7818 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7823 case "$ac_cv_sys_largefile_LDFLAGS" in
7827 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7828 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7831 case "$ac_cv_sys_largefile_LIBS" in
7835 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7836 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7839 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7840 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7841 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 ac_cv_sys_file_offset_bits=no
7846 # HP-UX 10.20 and later
7847 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7848 ac_cv_sys_file_offset_bits=64 ;;
7850 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7852 -D_FILE_OFFSET_BITS)
7853 ac_cv_sys_file_offset_bits=1 ;;
7854 -D_FILE_OFFSET_BITS=*)
7855 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7860 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7861 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7862 if test "$ac_cv_sys_file_offset_bits" != no; then
7864 cat >>confdefs.h <<_ACEOF
7865 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7869 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7870 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7871 if test "${ac_cv_sys_largefile_source+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 ac_cv_sys_largefile_source=no
7876 # HP-UX 10.20 and later
7877 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7878 ac_cv_sys_largefile_source=1 ;;
7880 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7882 -D_LARGEFILE_SOURCE)
7883 ac_cv_sys_largefile_source=1 ;;
7884 -D_LARGEFILE_SOURCE=*)
7885 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7890 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7891 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7892 if test "$ac_cv_sys_largefile_source" != no; then
7894 cat >>confdefs.h <<_ACEOF
7895 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7899 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7900 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7901 if test "${ac_cv_sys_large_files+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 ac_cv_sys_large_files=no
7907 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7908 ac_cv_sys_large_files=1 ;;
7910 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7913 ac_cv_sys_large_files=1 ;;
7915 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7920 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7921 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7922 if test "$ac_cv_sys_large_files" != no; then
7924 cat >>confdefs.h <<_ACEOF
7925 #define _LARGE_FILES $ac_cv_sys_large_files
7933 echo "$as_me:$LINENO: checking for X" >&5
7934 echo $ECHO_N "checking for X... $ECHO_C" >&6
7937 # Check whether --with-x or --without-x was given.
7938 if test "${with_x+set}" = set; then
7942 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7943 if test "x$with_x" = xno; then
7944 # The user explicitly disabled X.
7947 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7948 # Both variables are already set.
7951 if test "${ac_cv_have_x+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 # One or both of the vars are not set, and there is no cached value.
7955 ac_x_includes=no ac_x_libraries=no
7957 if mkdir conftest.dir; then
7959 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7960 cat >Imakefile <<'_ACEOF'
7962 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7964 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7965 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7966 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7967 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7968 for ac_extension in a so sl; do
7969 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7970 test -f $ac_im_libdir/libX11.$ac_extension; then
7971 ac_im_usrlibdir=$ac_im_libdir; break
7974 # Screen out bogus values from the imake configuration. They are
7975 # bogus both because they are the default anyway, and because
7976 # using them would break gcc on systems where it needs fixed includes.
7977 case $ac_im_incroot in
7979 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7981 case $ac_im_usrlibdir in
7983 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7990 # Standard set of common directories for X headers.
7991 # Check X11 before X11Rn because it is often a symlink to the current release.
8003 /usr/local/X11/include
8004 /usr/local/X11R6/include
8005 /usr/local/X11R5/include
8006 /usr/local/X11R4/include
8008 /usr/local/include/X11
8009 /usr/local/include/X11R6
8010 /usr/local/include/X11R5
8011 /usr/local/include/X11R4
8015 /usr/XFree86/include/X11
8019 /usr/unsupported/include
8021 /usr/local/x11r5/include
8022 /usr/lpp/Xamples/include
8024 /usr/openwin/include
8025 /usr/openwin/share/include'
8027 if test "$ac_x_includes" = no; then
8028 # Guess where to find include files, by looking for Intrinsic.h.
8029 # First, try using that file with no special directory specified.
8030 cat >conftest.$ac_ext <<_ACEOF
8031 #line $LINENO "configure"
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8037 #include <X11/Intrinsic.h>
8039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8042 grep -v '^ *+' conftest.er1 >conftest.err
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } >/dev/null; then
8047 if test -s conftest.err; then
8048 ac_cpp_err=$ac_c_preproc_warn_flag
8055 if test -z "$ac_cpp_err"; then
8056 # We can compile using X headers with no special include directory.
8059 echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8062 for ac_dir in $ac_x_header_dirs; do
8063 if test -r "$ac_dir/X11/Intrinsic.h"; then
8064 ac_x_includes=$ac_dir
8069 rm -f conftest.err conftest.$ac_ext
8070 fi # $ac_x_includes = no
8072 if test "$ac_x_libraries" = no; then
8073 # Check for the libraries.
8074 # See if we find them without any special options.
8075 # Don't add to $LIBS permanently.
8078 cat >conftest.$ac_ext <<_ACEOF
8079 #line $LINENO "configure"
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8085 #include <X11/Intrinsic.h>
8094 rm -f conftest.$ac_objext conftest$ac_exeext
8095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8096 (eval $ac_link) 2>&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } &&
8100 { ac_try='test -s conftest$ac_exeext'
8101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; }; then
8107 # We can link X programs with no special library path.
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8114 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8116 # Don't even attempt the hair of trying to link an X program!
8117 for ac_extension in a so sl; do
8118 if test -r $ac_dir/libXt.$ac_extension; then
8119 ac_x_libraries=$ac_dir
8125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8126 fi # $ac_x_libraries = no
8128 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8129 # Didn't find X anywhere. Cache the known absence of X.
8130 ac_cv_have_x="have_x=no"
8132 # Record where we found X for the cache.
8133 ac_cv_have_x="have_x=yes \
8134 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8139 eval "$ac_cv_have_x"
8142 if test "$have_x" != yes; then
8143 echo "$as_me:$LINENO: result: $have_x" >&5
8144 echo "${ECHO_T}$have_x" >&6
8147 # If each of the values was on the command line, it overrides each guess.
8148 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8149 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8150 # Update the cache value to reflect the command line values.
8151 ac_cv_have_x="have_x=yes \
8152 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8153 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8154 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8157 if test "$no_x" = yes; then
8158 # Not all programs may use this symbol, but it does not hurt to define it.
8160 cat >>confdefs.h <<\_ACEOF
8161 #define X_DISPLAY_MISSING 1
8164 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8166 if test -n "$x_includes"; then
8167 X_CFLAGS="$X_CFLAGS -I$x_includes"
8170 # It would also be nice to do this for all -L options, not just this one.
8171 if test -n "$x_libraries"; then
8172 X_LIBS="$X_LIBS -L$x_libraries"
8173 # For Solaris; some versions of Sun CC require a space after -R and
8174 # others require no space. Words are not sufficient . . . .
8175 case `(uname -sr) 2>/dev/null` in
8177 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8178 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8179 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8180 cat >conftest.$ac_ext <<_ACEOF
8181 #line $LINENO "configure"
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h. */
8196 rm -f conftest.$ac_objext conftest$ac_exeext
8197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8198 (eval $ac_link) 2>&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } &&
8202 { ac_try='test -s conftest$ac_exeext'
8203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; }; then
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8216 if test $ac_R_nospace = yes; then
8217 echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6
8219 X_LIBS="$X_LIBS -R$x_libraries"
8221 LIBS="$ac_xsave_LIBS -R $x_libraries"
8222 cat >conftest.$ac_ext <<_ACEOF
8223 #line $LINENO "configure"
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8238 rm -f conftest.$ac_objext conftest$ac_exeext
8239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8240 (eval $ac_link) 2>&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } &&
8244 { ac_try='test -s conftest$ac_exeext'
8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; }; then
8252 echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8258 if test $ac_R_space = yes; then
8259 echo "$as_me:$LINENO: result: yes" >&5
8260 echo "${ECHO_T}yes" >&6
8261 X_LIBS="$X_LIBS -R $x_libraries"
8263 echo "$as_me:$LINENO: result: neither works" >&5
8264 echo "${ECHO_T}neither works" >&6
8271 # Check for system-dependent libraries X programs must link with.
8272 # Do this before checking for the system-independent R6 libraries
8273 # (-lICE), since we may need -lsocket or whatever for X linking.
8275 if test "$ISC" = yes; then
8276 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8278 # Martyn Johnson says this is needed for Ultrix, if the X
8279 # libraries were built with DECnet support. And Karl Berry says
8280 # the Alpha needs dnet_stub (dnet does not exist).
8281 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8282 cat >conftest.$ac_ext <<_ACEOF
8283 #line $LINENO "configure"
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8290 /* Override any gcc2 internal prototype to avoid an error. */
8294 /* We use char because int might match the return type of a gcc2
8295 builtin and then its argument prototype would still apply. */
8296 char XOpenDisplay ();
8305 rm -f conftest.$ac_objext conftest$ac_exeext
8306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8307 (eval $ac_link) 2>&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } &&
8311 { ac_try='test -s conftest$ac_exeext'
8312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; }; then
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8322 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8323 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8324 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 ac_check_lib_save_LIBS=$LIBS
8329 cat >conftest.$ac_ext <<_ACEOF
8330 #line $LINENO "configure"
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8337 /* Override any gcc2 internal prototype to avoid an error. */
8341 /* We use char because int might match the return type of a gcc2
8342 builtin and then its argument prototype would still apply. */
8352 rm -f conftest.$ac_objext conftest$ac_exeext
8353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8354 (eval $ac_link) 2>&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try='test -s conftest$ac_exeext'
8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8364 ac_cv_lib_dnet_dnet_ntoa=yes
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8369 ac_cv_lib_dnet_dnet_ntoa=no
8371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8372 LIBS=$ac_check_lib_save_LIBS
8374 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8375 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8376 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8377 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8380 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8381 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8382 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8383 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 ac_check_lib_save_LIBS=$LIBS
8387 LIBS="-ldnet_stub $LIBS"
8388 cat >conftest.$ac_ext <<_ACEOF
8389 #line $LINENO "configure"
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h. */
8396 /* Override any gcc2 internal prototype to avoid an error. */
8400 /* We use char because int might match the return type of a gcc2
8401 builtin and then its argument prototype would still apply. */
8411 rm -f conftest.$ac_objext conftest$ac_exeext
8412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8413 (eval $ac_link) 2>&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try='test -s conftest$ac_exeext'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8423 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8428 ac_cv_lib_dnet_stub_dnet_ntoa=no
8430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8431 LIBS=$ac_check_lib_save_LIBS
8433 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8434 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8435 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8436 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8442 LIBS="$ac_xsave_LIBS"
8444 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8445 # to get the SysV transport functions.
8446 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8448 # The nsl library prevents programs from opening the X display
8449 # on Irix 5.2, according to T.E. Dickey.
8450 # The functions gethostbyname, getservbyname, and inet_addr are
8451 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8452 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8453 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8454 if test "${ac_cv_func_gethostbyname+set}" = set; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 cat >conftest.$ac_ext <<_ACEOF
8458 #line $LINENO "configure"
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8464 /* System header to define __stub macros and hopefully few prototypes,
8465 which can conflict with char gethostbyname (); below.
8466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8467 <limits.h> exists even on freestanding compilers. */
8469 # include <limits.h>
8471 # include <assert.h>
8473 /* Override any gcc2 internal prototype to avoid an error. */
8478 /* We use char because int might match the return type of a gcc2
8479 builtin and then its argument prototype would still apply. */
8480 char gethostbyname ();
8481 /* The GNU C library defines this for functions which it implements
8482 to always fail with ENOSYS. Some functions are actually named
8483 something starting with __ and the normal name is an alias. */
8484 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8487 char (*f) () = gethostbyname;
8496 return f != gethostbyname;
8501 rm -f conftest.$ac_objext conftest$ac_exeext
8502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8503 (eval $ac_link) 2>&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } &&
8507 { ac_try='test -s conftest$ac_exeext'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
8513 ac_cv_func_gethostbyname=yes
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8518 ac_cv_func_gethostbyname=no
8520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8522 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8523 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8525 if test $ac_cv_func_gethostbyname = no; then
8526 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8527 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8528 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 ac_check_lib_save_LIBS=$LIBS
8533 cat >conftest.$ac_ext <<_ACEOF
8534 #line $LINENO "configure"
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8541 /* Override any gcc2 internal prototype to avoid an error. */
8545 /* We use char because int might match the return type of a gcc2
8546 builtin and then its argument prototype would still apply. */
8547 char gethostbyname ();
8556 rm -f conftest.$ac_objext conftest$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558 (eval $ac_link) 2>&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } &&
8562 { ac_try='test -s conftest$ac_exeext'
8563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; }; then
8568 ac_cv_lib_nsl_gethostbyname=yes
8570 echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8573 ac_cv_lib_nsl_gethostbyname=no
8575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8576 LIBS=$ac_check_lib_save_LIBS
8578 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8579 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8580 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8581 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8584 if test $ac_cv_lib_nsl_gethostbyname = no; then
8585 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8586 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8587 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 ac_check_lib_save_LIBS=$LIBS
8592 cat >conftest.$ac_ext <<_ACEOF
8593 #line $LINENO "configure"
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8600 /* Override any gcc2 internal prototype to avoid an error. */
8604 /* We use char because int might match the return type of a gcc2
8605 builtin and then its argument prototype would still apply. */
8606 char gethostbyname ();
8615 rm -f conftest.$ac_objext conftest$ac_exeext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8617 (eval $ac_link) 2>&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
8621 { ac_try='test -s conftest$ac_exeext'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; }; then
8627 ac_cv_lib_bsd_gethostbyname=yes
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8632 ac_cv_lib_bsd_gethostbyname=no
8634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8635 LIBS=$ac_check_lib_save_LIBS
8637 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8638 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8639 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8640 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8646 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8647 # socket/setsockopt and other routines are undefined under SCO ODT
8648 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8649 # on later versions), says Simon Leinen: it contains gethostby*
8650 # variants that don't use the name server (or something). -lsocket
8651 # must be given before -lnsl if both are needed. We assume that
8652 # if connect needs -lnsl, so does gethostbyname.
8653 echo "$as_me:$LINENO: checking for connect" >&5
8654 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8655 if test "${ac_cv_func_connect+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 cat >conftest.$ac_ext <<_ACEOF
8659 #line $LINENO "configure"
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8665 /* System header to define __stub macros and hopefully few prototypes,
8666 which can conflict with char connect (); below.
8667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8668 <limits.h> exists even on freestanding compilers. */
8670 # include <limits.h>
8672 # include <assert.h>
8674 /* Override any gcc2 internal prototype to avoid an error. */
8679 /* We use char because int might match the return type of a gcc2
8680 builtin and then its argument prototype would still apply. */
8682 /* The GNU C library defines this for functions which it implements
8683 to always fail with ENOSYS. Some functions are actually named
8684 something starting with __ and the normal name is an alias. */
8685 #if defined (__stub_connect) || defined (__stub___connect)
8688 char (*f) () = connect;
8697 return f != connect;
8702 rm -f conftest.$ac_objext conftest$ac_exeext
8703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8704 (eval $ac_link) 2>&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } &&
8708 { ac_try='test -s conftest$ac_exeext'
8709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; }; then
8714 ac_cv_func_connect=yes
8716 echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8719 ac_cv_func_connect=no
8721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8723 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8724 echo "${ECHO_T}$ac_cv_func_connect" >&6
8726 if test $ac_cv_func_connect = no; then
8727 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8728 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8729 if test "${ac_cv_lib_socket_connect+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8732 ac_check_lib_save_LIBS=$LIBS
8733 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8734 cat >conftest.$ac_ext <<_ACEOF
8735 #line $LINENO "configure"
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h. */
8742 /* Override any gcc2 internal prototype to avoid an error. */
8746 /* We use char because int might match the return type of a gcc2
8747 builtin and then its argument prototype would still apply. */
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759 (eval $ac_link) 2>&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } &&
8763 { ac_try='test -s conftest$ac_exeext'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
8769 ac_cv_lib_socket_connect=yes
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 ac_cv_lib_socket_connect=no
8776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8777 LIBS=$ac_check_lib_save_LIBS
8779 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8780 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8781 if test $ac_cv_lib_socket_connect = yes; then
8782 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8787 # Guillermo Gomez says -lposix is necessary on A/UX.
8788 echo "$as_me:$LINENO: checking for remove" >&5
8789 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8790 if test "${ac_cv_func_remove+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 cat >conftest.$ac_ext <<_ACEOF
8794 #line $LINENO "configure"
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800 /* System header to define __stub macros and hopefully few prototypes,
8801 which can conflict with char remove (); below.
8802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8803 <limits.h> exists even on freestanding compilers. */
8805 # include <limits.h>
8807 # include <assert.h>
8809 /* Override any gcc2 internal prototype to avoid an error. */
8814 /* We use char because int might match the return type of a gcc2
8815 builtin and then its argument prototype would still apply. */
8817 /* The GNU C library defines this for functions which it implements
8818 to always fail with ENOSYS. Some functions are actually named
8819 something starting with __ and the normal name is an alias. */
8820 #if defined (__stub_remove) || defined (__stub___remove)
8823 char (*f) () = remove;
8837 rm -f conftest.$ac_objext conftest$ac_exeext
8838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8839 (eval $ac_link) 2>&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); } &&
8843 { ac_try='test -s conftest$ac_exeext'
8844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
8849 ac_cv_func_remove=yes
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 ac_cv_func_remove=no
8856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8858 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8859 echo "${ECHO_T}$ac_cv_func_remove" >&6
8861 if test $ac_cv_func_remove = no; then
8862 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8863 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8864 if test "${ac_cv_lib_posix_remove+set}" = set; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8867 ac_check_lib_save_LIBS=$LIBS
8868 LIBS="-lposix $LIBS"
8869 cat >conftest.$ac_ext <<_ACEOF
8870 #line $LINENO "configure"
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h. */
8877 /* Override any gcc2 internal prototype to avoid an error. */
8881 /* We use char because int might match the return type of a gcc2
8882 builtin and then its argument prototype would still apply. */
8892 rm -f conftest.$ac_objext conftest$ac_exeext
8893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8894 (eval $ac_link) 2>&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } &&
8898 { ac_try='test -s conftest$ac_exeext'
8899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); }; }; then
8904 ac_cv_lib_posix_remove=yes
8906 echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8909 ac_cv_lib_posix_remove=no
8911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8912 LIBS=$ac_check_lib_save_LIBS
8914 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8915 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8916 if test $ac_cv_lib_posix_remove = yes; then
8917 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8922 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8923 echo "$as_me:$LINENO: checking for shmat" >&5
8924 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8925 if test "${ac_cv_func_shmat+set}" = set; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8928 cat >conftest.$ac_ext <<_ACEOF
8929 #line $LINENO "configure"
8932 cat confdefs.h >>conftest.$ac_ext
8933 cat >>conftest.$ac_ext <<_ACEOF
8934 /* end confdefs.h. */
8935 /* System header to define __stub macros and hopefully few prototypes,
8936 which can conflict with char shmat (); below.
8937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8938 <limits.h> exists even on freestanding compilers. */
8940 # include <limits.h>
8942 # include <assert.h>
8944 /* Override any gcc2 internal prototype to avoid an error. */
8949 /* We use char because int might match the return type of a gcc2
8950 builtin and then its argument prototype would still apply. */
8952 /* The GNU C library defines this for functions which it implements
8953 to always fail with ENOSYS. Some functions are actually named
8954 something starting with __ and the normal name is an alias. */
8955 #if defined (__stub_shmat) || defined (__stub___shmat)
8958 char (*f) () = shmat;
8972 rm -f conftest.$ac_objext conftest$ac_exeext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8974 (eval $ac_link) 2>&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } &&
8978 { ac_try='test -s conftest$ac_exeext'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; }; then
8984 ac_cv_func_shmat=yes
8986 echo "$as_me: failed program was:" >&5
8987 sed 's/^/| /' conftest.$ac_ext >&5
8991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8993 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8994 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8996 if test $ac_cv_func_shmat = no; then
8997 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8998 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8999 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9000 echo $ECHO_N "(cached) $ECHO_C" >&6
9002 ac_check_lib_save_LIBS=$LIBS
9004 cat >conftest.$ac_ext <<_ACEOF
9005 #line $LINENO "configure"
9008 cat confdefs.h >>conftest.$ac_ext
9009 cat >>conftest.$ac_ext <<_ACEOF
9010 /* end confdefs.h. */
9012 /* Override any gcc2 internal prototype to avoid an error. */
9016 /* We use char because int might match the return type of a gcc2
9017 builtin and then its argument prototype would still apply. */
9027 rm -f conftest.$ac_objext conftest$ac_exeext
9028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9029 (eval $ac_link) 2>&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); } &&
9033 { ac_try='test -s conftest$ac_exeext'
9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; }; then
9039 ac_cv_lib_ipc_shmat=yes
9041 echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9044 ac_cv_lib_ipc_shmat=no
9046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9047 LIBS=$ac_check_lib_save_LIBS
9049 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9050 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9051 if test $ac_cv_lib_ipc_shmat = yes; then
9052 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9058 # Check for libraries that X11R6 Xt/Xaw programs need.
9059 ac_save_LDFLAGS=$LDFLAGS
9060 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9061 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9062 # check for ICE first), but we must link in the order -lSM -lICE or
9063 # we get undefined symbols. So assume we have SM if we have ICE.
9064 # These have to be linked with before -lX11, unlike the other
9065 # libraries we check for below, so use a different variable.
9066 # John Interrante, Karl Berry
9067 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9068 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9069 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9072 ac_check_lib_save_LIBS=$LIBS
9073 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9074 cat >conftest.$ac_ext <<_ACEOF
9075 #line $LINENO "configure"
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9082 /* Override any gcc2 internal prototype to avoid an error. */
9086 /* We use char because int might match the return type of a gcc2
9087 builtin and then its argument prototype would still apply. */
9088 char IceConnectionNumber ();
9092 IceConnectionNumber ();
9097 rm -f conftest.$ac_objext conftest$ac_exeext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9099 (eval $ac_link) 2>&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } &&
9103 { ac_try='test -s conftest$ac_exeext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 ac_cv_lib_ICE_IceConnectionNumber=yes
9111 echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9114 ac_cv_lib_ICE_IceConnectionNumber=no
9116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9117 LIBS=$ac_check_lib_save_LIBS
9119 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9120 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9121 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9122 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9125 LDFLAGS=$ac_save_LDFLAGS
9177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9179 echo "$as_me:$LINENO: checking for $ac_header" >&5
9180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9187 # Is the header compilable?
9188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9190 cat >conftest.$ac_ext <<_ACEOF
9191 #line $LINENO "configure"
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9197 $ac_includes_default
9198 #include <$ac_header>
9200 rm -f conftest.$ac_objext
9201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9202 (eval $ac_compile) 2>&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } &&
9206 { ac_try='test -s conftest.$ac_objext'
9207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }; }; then
9212 ac_header_compiler=yes
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9217 ac_header_compiler=no
9219 rm -f conftest.$ac_objext conftest.$ac_ext
9220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9221 echo "${ECHO_T}$ac_header_compiler" >&6
9223 # Is the header present?
9224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9226 cat >conftest.$ac_ext <<_ACEOF
9227 #line $LINENO "configure"
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9233 #include <$ac_header>
9235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9238 grep -v '^ *+' conftest.er1 >conftest.err
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } >/dev/null; then
9243 if test -s conftest.err; then
9244 ac_cpp_err=$ac_c_preproc_warn_flag
9251 if test -z "$ac_cpp_err"; then
9252 ac_header_preproc=yes
9254 echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.$ac_ext >&5
9257 ac_header_preproc=no
9259 rm -f conftest.err conftest.$ac_ext
9260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9261 echo "${ECHO_T}$ac_header_preproc" >&6
9263 # So? What about this header?
9264 case $ac_header_compiler:$ac_header_preproc in
9266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9272 ## ------------------------------------ ##
9273 ## Report this to bug-autoconf@gnu.org. ##
9274 ## ------------------------------------ ##
9277 sed "s/^/$as_me: WARNING: /" >&2
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9288 ## ------------------------------------ ##
9289 ## Report this to bug-autoconf@gnu.org. ##
9290 ## ------------------------------------ ##
9293 sed "s/^/$as_me: WARNING: /" >&2
9296 echo "$as_me:$LINENO: checking for $ac_header" >&5
9297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9301 eval "$as_ac_Header=$ac_header_preproc"
9303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9308 cat >>confdefs.h <<_ACEOF
9309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9316 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9317 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9318 if test "${ac_cv_header_stdc+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 cat >conftest.$ac_ext <<_ACEOF
9322 #line $LINENO "configure"
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9341 rm -f conftest.$ac_objext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9343 (eval $ac_compile) 2>&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
9347 { ac_try='test -s conftest.$ac_objext'
9348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); }; }; then
9353 ac_cv_header_stdc=yes
9355 echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9358 ac_cv_header_stdc=no
9360 rm -f conftest.$ac_objext conftest.$ac_ext
9362 if test $ac_cv_header_stdc = yes; then
9363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9364 cat >conftest.$ac_ext <<_ACEOF
9365 #line $LINENO "configure"
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h. */
9374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9375 $EGREP "memchr" >/dev/null 2>&1; then
9378 ac_cv_header_stdc=no
9384 if test $ac_cv_header_stdc = yes; then
9385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9386 cat >conftest.$ac_ext <<_ACEOF
9387 #line $LINENO "configure"
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h. */
9396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9397 $EGREP "free" >/dev/null 2>&1; then
9400 ac_cv_header_stdc=no
9406 if test $ac_cv_header_stdc = yes; then
9407 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9408 if test "$cross_compiling" = yes; then
9411 cat >conftest.$ac_ext <<_ACEOF
9412 #line $LINENO "configure"
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9419 #if ((' ' & 0x0FF) == 0x020)
9420 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9421 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9423 # define ISLOWER(c) \
9424 (('a' <= (c) && (c) <= 'i') \
9425 || ('j' <= (c) && (c) <= 'r') \
9426 || ('s' <= (c) && (c) <= 'z'))
9427 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9430 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9435 for (i = 0; i < 256; i++)
9436 if (XOR (islower (i), ISLOWER (i))
9437 || toupper (i) != TOUPPER (i))
9442 rm -f conftest$ac_exeext
9443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9444 (eval $ac_link) 2>&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; }; then
9455 echo "$as_me: program exited with status $ac_status" >&5
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9460 ac_cv_header_stdc=no
9462 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9466 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9467 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9468 if test $ac_cv_header_stdc = yes; then
9470 cat >>confdefs.h <<\_ACEOF
9471 #define STDC_HEADERS 1
9476 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9477 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9478 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 cat >conftest.$ac_ext <<_ACEOF
9482 #line $LINENO "configure"
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9488 #include <sys/types.h>
9492 return makedev(0, 0);
9497 rm -f conftest.$ac_objext conftest$ac_exeext
9498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9499 (eval $ac_link) 2>&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } &&
9503 { ac_try='test -s conftest$ac_exeext'
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; }; then
9509 ac_cv_header_sys_types_h_makedev=yes
9511 echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9514 ac_cv_header_sys_types_h_makedev=no
9516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9519 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9520 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9522 if test $ac_cv_header_sys_types_h_makedev = no; then
9523 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9524 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9525 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9526 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9529 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9530 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9532 # Is the header compilable?
9533 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9534 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9535 cat >conftest.$ac_ext <<_ACEOF
9536 #line $LINENO "configure"
9539 cat confdefs.h >>conftest.$ac_ext
9540 cat >>conftest.$ac_ext <<_ACEOF
9541 /* end confdefs.h. */
9542 $ac_includes_default
9543 #include <sys/mkdev.h>
9545 rm -f conftest.$ac_objext
9546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9547 (eval $ac_compile) 2>&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } &&
9551 { ac_try='test -s conftest.$ac_objext'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; }; then
9557 ac_header_compiler=yes
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9562 ac_header_compiler=no
9564 rm -f conftest.$ac_objext conftest.$ac_ext
9565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9566 echo "${ECHO_T}$ac_header_compiler" >&6
9568 # Is the header present?
9569 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9570 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9571 cat >conftest.$ac_ext <<_ACEOF
9572 #line $LINENO "configure"
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9578 #include <sys/mkdev.h>
9580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9583 grep -v '^ *+' conftest.er1 >conftest.err
9585 cat conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } >/dev/null; then
9588 if test -s conftest.err; then
9589 ac_cpp_err=$ac_c_preproc_warn_flag
9596 if test -z "$ac_cpp_err"; then
9597 ac_header_preproc=yes
9599 echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9602 ac_header_preproc=no
9604 rm -f conftest.err conftest.$ac_ext
9605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9606 echo "${ECHO_T}$ac_header_preproc" >&6
9608 # So? What about this header?
9609 case $ac_header_compiler:$ac_header_preproc in
9611 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9612 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9613 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9614 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9617 ## ------------------------------------ ##
9618 ## Report this to bug-autoconf@gnu.org. ##
9619 ## ------------------------------------ ##
9622 sed "s/^/$as_me: WARNING: /" >&2
9625 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9626 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9627 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9628 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9629 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9630 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9633 ## ------------------------------------ ##
9634 ## Report this to bug-autoconf@gnu.org. ##
9635 ## ------------------------------------ ##
9638 sed "s/^/$as_me: WARNING: /" >&2
9641 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9642 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9643 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9648 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9649 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9652 if test $ac_cv_header_sys_mkdev_h = yes; then
9654 cat >>confdefs.h <<\_ACEOF
9655 #define MAJOR_IN_MKDEV 1
9662 if test $ac_cv_header_sys_mkdev_h = no; then
9663 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9664 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9665 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9666 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9667 echo $ECHO_N "(cached) $ECHO_C" >&6
9669 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9670 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9672 # Is the header compilable?
9673 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9674 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9675 cat >conftest.$ac_ext <<_ACEOF
9676 #line $LINENO "configure"
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h. */
9682 $ac_includes_default
9683 #include <sys/sysmacros.h>
9685 rm -f conftest.$ac_objext
9686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9687 (eval $ac_compile) 2>&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } &&
9691 { ac_try='test -s conftest.$ac_objext'
9692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; }; then
9697 ac_header_compiler=yes
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9702 ac_header_compiler=no
9704 rm -f conftest.$ac_objext conftest.$ac_ext
9705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9706 echo "${ECHO_T}$ac_header_compiler" >&6
9708 # Is the header present?
9709 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9710 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9711 cat >conftest.$ac_ext <<_ACEOF
9712 #line $LINENO "configure"
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9718 #include <sys/sysmacros.h>
9720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9723 grep -v '^ *+' conftest.er1 >conftest.err
9725 cat conftest.err >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); } >/dev/null; then
9728 if test -s conftest.err; then
9729 ac_cpp_err=$ac_c_preproc_warn_flag
9736 if test -z "$ac_cpp_err"; then
9737 ac_header_preproc=yes
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9742 ac_header_preproc=no
9744 rm -f conftest.err conftest.$ac_ext
9745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9746 echo "${ECHO_T}$ac_header_preproc" >&6
9748 # So? What about this header?
9749 case $ac_header_compiler:$ac_header_preproc in
9751 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9752 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9753 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9754 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9757 ## ------------------------------------ ##
9758 ## Report this to bug-autoconf@gnu.org. ##
9759 ## ------------------------------------ ##
9762 sed "s/^/$as_me: WARNING: /" >&2
9765 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9766 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9767 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9768 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9769 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9770 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9773 ## ------------------------------------ ##
9774 ## Report this to bug-autoconf@gnu.org. ##
9775 ## ------------------------------------ ##
9778 sed "s/^/$as_me: WARNING: /" >&2
9781 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9782 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9783 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9788 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9789 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9792 if test $ac_cv_header_sys_sysmacros_h = yes; then
9794 cat >>confdefs.h <<\_ACEOF
9795 #define MAJOR_IN_SYSMACROS 1
9810 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9811 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9812 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9813 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 cat >conftest.$ac_ext <<_ACEOF
9818 #line $LINENO "configure"
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h. */
9824 #include <sys/types.h>
9836 rm -f conftest.$ac_objext
9837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9838 (eval $ac_compile) 2>&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } &&
9842 { ac_try='test -s conftest.$ac_objext'
9843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; }; then
9848 eval "$as_ac_Header=yes"
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9853 eval "$as_ac_Header=no"
9855 rm -f conftest.$ac_objext conftest.$ac_ext
9857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9860 cat >>confdefs.h <<_ACEOF
9861 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9864 ac_header_dirent=$ac_hdr; break
9868 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9869 if test $ac_header_dirent = dirent.h; then
9870 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9871 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9872 if test "${ac_cv_search_opendir+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 ac_func_search_save_LIBS=$LIBS
9876 ac_cv_search_opendir=no
9877 cat >conftest.$ac_ext <<_ACEOF
9878 #line $LINENO "configure"
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h. */
9885 /* Override any gcc2 internal prototype to avoid an error. */
9889 /* We use char because int might match the return type of a gcc2
9890 builtin and then its argument prototype would still apply. */
9900 rm -f conftest.$ac_objext conftest$ac_exeext
9901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9902 (eval $ac_link) 2>&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 ac_cv_search_opendir="none required"
9914 echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9919 if test "$ac_cv_search_opendir" = no; then
9920 for ac_lib in dir; do
9921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9922 cat >conftest.$ac_ext <<_ACEOF
9923 #line $LINENO "configure"
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9930 /* Override any gcc2 internal prototype to avoid an error. */
9934 /* We use char because int might match the return type of a gcc2
9935 builtin and then its argument prototype would still apply. */
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947 (eval $ac_link) 2>&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } &&
9951 { ac_try='test -s conftest$ac_exeext'
9952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); }; }; then
9957 ac_cv_search_opendir="-l$ac_lib"
9960 echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9967 LIBS=$ac_func_search_save_LIBS
9969 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9970 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9971 if test "$ac_cv_search_opendir" != no; then
9972 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9977 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9978 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9979 if test "${ac_cv_search_opendir+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 ac_func_search_save_LIBS=$LIBS
9983 ac_cv_search_opendir=no
9984 cat >conftest.$ac_ext <<_ACEOF
9985 #line $LINENO "configure"
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9992 /* Override any gcc2 internal prototype to avoid an error. */
9996 /* We use char because int might match the return type of a gcc2
9997 builtin and then its argument prototype would still apply. */
10007 rm -f conftest.$ac_objext conftest$ac_exeext
10008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10009 (eval $ac_link) 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
10013 { ac_try='test -s conftest$ac_exeext'
10014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015 (eval $ac_try) 2>&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; }; then
10019 ac_cv_search_opendir="none required"
10021 echo "$as_me: failed program was:" >&5
10022 sed 's/^/| /' conftest.$ac_ext >&5
10025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10026 if test "$ac_cv_search_opendir" = no; then
10027 for ac_lib in x; do
10028 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10029 cat >conftest.$ac_ext <<_ACEOF
10030 #line $LINENO "configure"
10033 cat confdefs.h >>conftest.$ac_ext
10034 cat >>conftest.$ac_ext <<_ACEOF
10035 /* end confdefs.h. */
10037 /* Override any gcc2 internal prototype to avoid an error. */
10041 /* We use char because int might match the return type of a gcc2
10042 builtin and then its argument prototype would still apply. */
10052 rm -f conftest.$ac_objext conftest$ac_exeext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10054 (eval $ac_link) 2>&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -s conftest$ac_exeext'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; }; then
10064 ac_cv_search_opendir="-l$ac_lib"
10067 echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10074 LIBS=$ac_func_search_save_LIBS
10076 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10077 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10078 if test "$ac_cv_search_opendir" != no; then
10079 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10085 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10086 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10087 if test "${ac_cv_header_stat_broken+set}" = set; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 cat >conftest.$ac_ext <<_ACEOF
10091 #line $LINENO "configure"
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10097 #include <sys/types.h>
10098 #include <sys/stat.h>
10100 #if defined(S_ISBLK) && defined(S_IFDIR)
10101 # if S_ISBLK (S_IFDIR)
10106 #if defined(S_ISBLK) && defined(S_IFCHR)
10107 # if S_ISBLK (S_IFCHR)
10112 #if defined(S_ISLNK) && defined(S_IFREG)
10113 # if S_ISLNK (S_IFREG)
10118 #if defined(S_ISSOCK) && defined(S_IFREG)
10119 # if S_ISSOCK (S_IFREG)
10125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10126 $EGREP "You lose" >/dev/null 2>&1; then
10127 ac_cv_header_stat_broken=yes
10129 ac_cv_header_stat_broken=no
10134 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10135 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10136 if test $ac_cv_header_stat_broken = yes; then
10138 cat >>confdefs.h <<\_ACEOF
10139 #define STAT_MACROS_BROKEN 1
10144 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10145 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10146 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 cat >conftest.$ac_ext <<_ACEOF
10150 #line $LINENO "configure"
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10156 #include <sys/types.h>
10157 #include <sys/wait.h>
10158 #ifndef WEXITSTATUS
10159 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10162 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10170 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10175 rm -f conftest.$ac_objext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10177 (eval $ac_compile) 2>&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } &&
10181 { ac_try='test -s conftest.$ac_objext'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; }; then
10187 ac_cv_header_sys_wait_h=yes
10189 echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10192 ac_cv_header_sys_wait_h=no
10194 rm -f conftest.$ac_objext conftest.$ac_ext
10196 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10197 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10198 if test $ac_cv_header_sys_wait_h = yes; then
10200 cat >>confdefs.h <<\_ACEOF
10201 #define HAVE_SYS_WAIT_H 1
10206 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10207 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10208 if test "${ac_cv_header_time+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 cat >conftest.$ac_ext <<_ACEOF
10212 #line $LINENO "configure"
10215 cat confdefs.h >>conftest.$ac_ext
10216 cat >>conftest.$ac_ext <<_ACEOF
10217 /* end confdefs.h. */
10218 #include <sys/types.h>
10219 #include <sys/time.h>
10225 if ((struct tm *) 0)
10231 rm -f conftest.$ac_objext
10232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10233 (eval $ac_compile) 2>&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } &&
10237 { ac_try='test -s conftest.$ac_objext'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; }; then
10243 ac_cv_header_time=yes
10245 echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.$ac_ext >&5
10248 ac_cv_header_time=no
10250 rm -f conftest.$ac_objext conftest.$ac_ext
10252 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10253 echo "${ECHO_T}$ac_cv_header_time" >&6
10254 if test $ac_cv_header_time = yes; then
10256 cat >>confdefs.h <<\_ACEOF
10257 #define TIME_WITH_SYS_TIME 1
10263 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10264 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10265 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 cat >conftest.$ac_ext <<_ACEOF
10269 #line $LINENO "configure"
10272 cat confdefs.h >>conftest.$ac_ext
10273 cat >>conftest.$ac_ext <<_ACEOF
10274 /* end confdefs.h. */
10275 $ac_includes_default
10279 static struct stat ac_aggr;
10280 if (ac_aggr.st_blksize)
10286 rm -f conftest.$ac_objext
10287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10288 (eval $ac_compile) 2>&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); } &&
10292 { ac_try='test -s conftest.$ac_objext'
10293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294 (eval $ac_try) 2>&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); }; }; then
10298 ac_cv_member_struct_stat_st_blksize=yes
10300 echo "$as_me: failed program was:" >&5
10301 sed 's/^/| /' conftest.$ac_ext >&5
10303 cat >conftest.$ac_ext <<_ACEOF
10304 #line $LINENO "configure"
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10310 $ac_includes_default
10314 static struct stat ac_aggr;
10315 if (sizeof ac_aggr.st_blksize)
10321 rm -f conftest.$ac_objext
10322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10323 (eval $ac_compile) 2>&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try='test -s conftest.$ac_objext'
10328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329 (eval $ac_try) 2>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; }; then
10333 ac_cv_member_struct_stat_st_blksize=yes
10335 echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10338 ac_cv_member_struct_stat_st_blksize=no
10340 rm -f conftest.$ac_objext conftest.$ac_ext
10342 rm -f conftest.$ac_objext conftest.$ac_ext
10344 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10345 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10346 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10348 cat >>confdefs.h <<_ACEOF
10349 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10353 cat >>confdefs.h <<\_ACEOF
10354 #define HAVE_ST_BLKSIZE 1
10360 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10361 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10362 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 cat >conftest.$ac_ext <<_ACEOF
10366 #line $LINENO "configure"
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10372 $ac_includes_default
10376 static struct stat ac_aggr;
10377 if (ac_aggr.st_blocks)
10383 rm -f conftest.$ac_objext
10384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10385 (eval $ac_compile) 2>&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } &&
10389 { ac_try='test -s conftest.$ac_objext'
10390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391 (eval $ac_try) 2>&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; }; then
10395 ac_cv_member_struct_stat_st_blocks=yes
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10400 cat >conftest.$ac_ext <<_ACEOF
10401 #line $LINENO "configure"
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h. */
10407 $ac_includes_default
10411 static struct stat ac_aggr;
10412 if (sizeof ac_aggr.st_blocks)
10418 rm -f conftest.$ac_objext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10420 (eval $ac_compile) 2>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } &&
10424 { ac_try='test -s conftest.$ac_objext'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; }; then
10430 ac_cv_member_struct_stat_st_blocks=yes
10432 echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.$ac_ext >&5
10435 ac_cv_member_struct_stat_st_blocks=no
10437 rm -f conftest.$ac_objext conftest.$ac_ext
10439 rm -f conftest.$ac_objext conftest.$ac_ext
10441 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10442 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10443 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10445 cat >>confdefs.h <<_ACEOF
10446 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10450 cat >>confdefs.h <<\_ACEOF
10451 #define HAVE_ST_BLOCKS 1
10455 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10459 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10460 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10461 if test "${ac_cv_struct_tm+set}" = set; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6
10464 cat >conftest.$ac_ext <<_ACEOF
10465 #line $LINENO "configure"
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10471 #include <sys/types.h>
10477 struct tm *tp; tp->tm_sec;
10482 rm -f conftest.$ac_objext
10483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10484 (eval $ac_compile) 2>&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } &&
10488 { ac_try='test -s conftest.$ac_objext'
10489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490 (eval $ac_try) 2>&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; }; then
10494 ac_cv_struct_tm=time.h
10496 echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10499 ac_cv_struct_tm=sys/time.h
10501 rm -f conftest.$ac_objext conftest.$ac_ext
10503 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10504 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10505 if test $ac_cv_struct_tm = sys/time.h; then
10507 cat >>confdefs.h <<\_ACEOF
10508 #define TM_IN_SYS_TIME 1
10513 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10514 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10515 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 cat >conftest.$ac_ext <<_ACEOF
10519 #line $LINENO "configure"
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10525 #include <sys/types.h>
10526 #include <$ac_cv_struct_tm>
10532 static struct tm ac_aggr;
10533 if (ac_aggr.tm_zone)
10539 rm -f conftest.$ac_objext
10540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10541 (eval $ac_compile) 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } &&
10545 { ac_try='test -s conftest.$ac_objext'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_cv_member_struct_tm_tm_zone=yes
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10556 cat >conftest.$ac_ext <<_ACEOF
10557 #line $LINENO "configure"
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h. */
10563 #include <sys/types.h>
10564 #include <$ac_cv_struct_tm>
10570 static struct tm ac_aggr;
10571 if (sizeof ac_aggr.tm_zone)
10577 rm -f conftest.$ac_objext
10578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10579 (eval $ac_compile) 2>&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } &&
10583 { ac_try='test -s conftest.$ac_objext'
10584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585 (eval $ac_try) 2>&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; }; then
10589 ac_cv_member_struct_tm_tm_zone=yes
10591 echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.$ac_ext >&5
10594 ac_cv_member_struct_tm_tm_zone=no
10596 rm -f conftest.$ac_objext conftest.$ac_ext
10598 rm -f conftest.$ac_objext conftest.$ac_ext
10600 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10601 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10602 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10604 cat >>confdefs.h <<_ACEOF
10605 #define HAVE_STRUCT_TM_TM_ZONE 1
10611 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10613 cat >>confdefs.h <<\_ACEOF
10614 #define HAVE_TM_ZONE 1
10618 echo "$as_me:$LINENO: checking for tzname" >&5
10619 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10620 if test "${ac_cv_var_tzname+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 cat >conftest.$ac_ext <<_ACEOF
10624 #line $LINENO "configure"
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h. */
10631 #ifndef tzname /* For SGI. */
10632 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10645 (eval $ac_link) 2>&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } &&
10649 { ac_try='test -s conftest$ac_exeext'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655 ac_cv_var_tzname=yes
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10660 ac_cv_var_tzname=no
10662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10664 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10665 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10666 if test $ac_cv_var_tzname = yes; then
10668 cat >>confdefs.h <<\_ACEOF
10669 #define HAVE_TZNAME 1
10676 echo "$as_me:$LINENO: checking for utime.h" >&5
10677 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10678 if test "${ba_cv_header_utime_h+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 cat >conftest.$ac_ext <<_ACEOF
10682 #line $LINENO "configure"
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10689 #include <sys/types.h>
10699 rm -f conftest.$ac_objext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10701 (eval $ac_compile) 2>&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } &&
10705 { ac_try='test -s conftest.$ac_objext'
10706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 (eval $ac_try) 2>&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; }; then
10711 ba_cv_header_utime_h=yes
10713 echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10716 ba_cv_header_utime_h=no
10718 rm -f conftest.$ac_objext conftest.$ac_ext
10720 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10721 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10722 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10723 #define HAVE_UTIME_H 1
10727 echo "$as_me:$LINENO: checking for socklen_t" >&5
10728 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10729 if test "${ba_cv_header_socklen_t+set}" = set; then
10730 echo $ECHO_N "(cached) $ECHO_C" >&6
10732 cat >conftest.$ac_ext <<_ACEOF
10733 #line $LINENO "configure"
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h. */
10740 #include <sys/types.h>
10741 #include <sys/socket.h>
10750 rm -f conftest.$ac_objext
10751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10752 (eval $ac_compile) 2>&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } &&
10756 { ac_try='test -s conftest.$ac_objext'
10757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758 (eval $ac_try) 2>&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; }; then
10762 ba_cv_header_socklen_t=yes
10764 echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10767 ba_cv_header_socklen_t=no
10769 rm -f conftest.$ac_objext conftest.$ac_ext
10771 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10772 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10773 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10774 #define HAVE_SOCKLEN_T 1
10778 echo "$as_me:$LINENO: checking for bigendian" >&5
10779 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10780 if test "${ba_cv_bigendian+set}" = set; then
10781 echo $ECHO_N "(cached) $ECHO_C" >&6
10783 if test "$cross_compiling" = yes; then
10786 cat >conftest.$ac_ext <<_ACEOF
10787 #line $LINENO "configure"
10790 cat confdefs.h >>conftest.$ac_ext
10791 cat >>conftest.$ac_ext <<_ACEOF
10792 /* end confdefs.h. */
10793 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10795 rm -f conftest$ac_exeext
10796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10797 (eval $ac_link) 2>&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802 (eval $ac_try) 2>&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; }; then
10806 ba_cv_bigendian=yes
10808 echo "$as_me: program exited with status $ac_status" >&5
10809 echo "$as_me: failed program was:" >&5
10810 sed 's/^/| /' conftest.$ac_ext >&5
10812 ( exit $ac_status )
10815 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10818 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10819 echo "${ECHO_T}$ba_cv_bigendian" >&6
10820 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10821 #define HAVE_BIGENDIAN 1
10826 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10827 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10828 if test "${ac_cv_c_const+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 cat >conftest.$ac_ext <<_ACEOF
10832 #line $LINENO "configure"
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h. */
10842 /* FIXME: Include the comments suggested by Paul. */
10843 #ifndef __cplusplus
10844 /* Ultrix mips cc rejects this. */
10845 typedef int charset[2];
10847 /* SunOS 4.1.1 cc rejects this. */
10848 char const *const *ccp;
10850 /* NEC SVR4.0.2 mips cc rejects this. */
10851 struct point {int x, y;};
10852 static struct point const zero = {0,0};
10853 /* AIX XL C 1.02.0.0 rejects this.
10854 It does not let you subtract one const X* pointer from another in
10855 an arm of an if-expression whose if-part is not a constant
10857 const char *g = "string";
10858 ccp = &g + (g ? g-g : 0);
10859 /* HPUX 7.0 cc rejects these. */
10862 ccp = (char const *const *) p;
10863 { /* SCO 3.2v4 cc rejects this. */
10865 char const *s = 0 ? (char *) 0 : (char const *) 0;
10869 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10870 int x[] = {25, 17};
10871 const int *foo = &x[0];
10874 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10875 typedef const int *iptr;
10879 { /* AIX XL C 1.02.0.0 rejects this saying
10880 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10881 struct s { int j; const int *ap[3]; };
10882 struct s *b; b->j = 5;
10884 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10885 const int foo = 10;
10893 rm -f conftest.$ac_objext
10894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10895 (eval $ac_compile) 2>&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } &&
10899 { ac_try='test -s conftest.$ac_objext'
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; }; then
10907 echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10912 rm -f conftest.$ac_objext conftest.$ac_ext
10914 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10915 echo "${ECHO_T}$ac_cv_c_const" >&6
10916 if test $ac_cv_c_const = no; then
10918 cat >>confdefs.h <<\_ACEOF
10926 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10927 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10929 # The order of these tests is important.
10930 cat >conftest.$ac_ext <<_ACEOF
10931 #line $LINENO "configure"
10934 cat confdefs.h >>conftest.$ac_ext
10935 cat >>conftest.$ac_ext <<_ACEOF
10936 /* end confdefs.h. */
10937 #include <sys/statvfs.h>
10938 #include <sys/fstyp.h>
10940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10943 grep -v '^ *+' conftest.er1 >conftest.err
10945 cat conftest.err >&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } >/dev/null; then
10948 if test -s conftest.err; then
10949 ac_cpp_err=$ac_c_preproc_warn_flag
10956 if test -z "$ac_cpp_err"; then
10957 cat >>confdefs.h <<\_ACEOF
10958 #define FSTYPE_STATVFS 1
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10967 rm -f conftest.err conftest.$ac_ext
10968 if test $fstype = no; then
10969 cat >conftest.$ac_ext <<_ACEOF
10970 #line $LINENO "configure"
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h. */
10976 #include <sys/statfs.h>
10977 #include <sys/fstyp.h>
10979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10982 grep -v '^ *+' conftest.er1 >conftest.err
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } >/dev/null; then
10987 if test -s conftest.err; then
10988 ac_cpp_err=$ac_c_preproc_warn_flag
10995 if test -z "$ac_cpp_err"; then
10996 cat >>confdefs.h <<\_ACEOF
10997 #define FSTYPE_USG_STATFS 1
11001 echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11006 rm -f conftest.err conftest.$ac_ext
11008 if test $fstype = no; then
11009 cat >conftest.$ac_ext <<_ACEOF
11010 #line $LINENO "configure"
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h. */
11016 #include <sys/statfs.h>
11017 #include <sys/vmount.h>
11019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11022 grep -v '^ *+' conftest.er1 >conftest.err
11024 cat conftest.err >&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } >/dev/null; then
11027 if test -s conftest.err; then
11028 ac_cpp_err=$ac_c_preproc_warn_flag
11035 if test -z "$ac_cpp_err"; then
11036 cat >>confdefs.h <<\_ACEOF
11037 #define FSTYPE_AIX_STATFS 1
11041 echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11046 rm -f conftest.err conftest.$ac_ext
11048 if test $fstype = no; then
11049 cat >conftest.$ac_ext <<_ACEOF
11050 #line $LINENO "configure"
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h. */
11056 #include <mntent.h>
11058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11061 grep -v '^ *+' conftest.er1 >conftest.err
11063 cat conftest.err >&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } >/dev/null; then
11066 if test -s conftest.err; then
11067 ac_cpp_err=$ac_c_preproc_warn_flag
11074 if test -z "$ac_cpp_err"; then
11075 cat >>confdefs.h <<\_ACEOF
11076 #define FSTYPE_MNTENT 1
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11085 rm -f conftest.err conftest.$ac_ext
11087 if test $fstype = no; then
11088 cat >conftest.$ac_ext <<_ACEOF
11089 #line $LINENO "configure"
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h. */
11095 #include <sys/mount.h>
11098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11099 $EGREP "f_type;" >/dev/null 2>&1; then
11100 cat >>confdefs.h <<\_ACEOF
11101 #define FSTYPE_STATFS 1
11108 if test $fstype = no; then
11109 cat >conftest.$ac_ext <<_ACEOF
11110 #line $LINENO "configure"
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11116 #include <sys/mount.h>
11117 #include <sys/fs_types.h>
11119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11122 grep -v '^ *+' conftest.er1 >conftest.err
11124 cat conftest.err >&5
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } >/dev/null; then
11127 if test -s conftest.err; then
11128 ac_cpp_err=$ac_c_preproc_warn_flag
11135 if test -z "$ac_cpp_err"; then
11136 cat >>confdefs.h <<\_ACEOF
11137 #define FSTYPE_GETMNT 1
11141 echo "$as_me: failed program was:" >&5
11142 sed 's/^/| /' conftest.$ac_ext >&5
11146 rm -f conftest.err conftest.$ac_ext
11148 echo "$as_me:$LINENO: result: $fstype" >&5
11149 echo "${ECHO_T}$fstype" >&6
11151 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11152 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11153 if test "${ac_cv_type_signal+set}" = set; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11156 cat >conftest.$ac_ext <<_ACEOF
11157 #line $LINENO "configure"
11160 cat confdefs.h >>conftest.$ac_ext
11161 cat >>conftest.$ac_ext <<_ACEOF
11162 /* end confdefs.h. */
11163 #include <sys/types.h>
11164 #include <signal.h>
11169 extern "C" void (*signal (int, void (*)(int)))(int);
11171 void (*signal ()) ();
11182 rm -f conftest.$ac_objext
11183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11184 (eval $ac_compile) 2>&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); } &&
11188 { ac_try='test -s conftest.$ac_objext'
11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; }; then
11194 ac_cv_type_signal=void
11196 echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11199 ac_cv_type_signal=int
11201 rm -f conftest.$ac_objext conftest.$ac_ext
11203 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11204 echo "${ECHO_T}$ac_cv_type_signal" >&6
11206 cat >>confdefs.h <<_ACEOF
11207 #define RETSIGTYPE $ac_cv_type_signal
11212 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11213 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11214 if test "${bash_cv_signal_vintage+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11218 cat >conftest.$ac_ext <<_ACEOF
11219 #line $LINENO "configure"
11222 cat confdefs.h >>conftest.$ac_ext
11223 cat >>conftest.$ac_ext <<_ACEOF
11224 /* end confdefs.h. */
11225 #include <signal.h>
11231 struct sigaction sa;
11232 sigemptyset(&ss); sigsuspend(&ss);
11233 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11234 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11240 rm -f conftest.$ac_objext conftest$ac_exeext
11241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11242 (eval $ac_link) 2>&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } &&
11246 { ac_try='test -s conftest$ac_exeext'
11247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248 (eval $ac_try) 2>&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; }; then
11252 bash_cv_signal_vintage=posix
11254 echo "$as_me: failed program was:" >&5
11255 sed 's/^/| /' conftest.$ac_ext >&5
11258 cat >conftest.$ac_ext <<_ACEOF
11259 #line $LINENO "configure"
11262 cat confdefs.h >>conftest.$ac_ext
11263 cat >>conftest.$ac_ext <<_ACEOF
11264 /* end confdefs.h. */
11265 #include <signal.h>
11270 int mask = sigmask(SIGINT);
11271 sigsetmask(mask); sigblock(mask); sigpause(mask);
11277 rm -f conftest.$ac_objext conftest$ac_exeext
11278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11279 (eval $ac_link) 2>&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } &&
11283 { ac_try='test -s conftest$ac_exeext'
11284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11285 (eval $ac_try) 2>&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; }; then
11289 bash_cv_signal_vintage=4.2bsd
11291 echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11295 cat >conftest.$ac_ext <<_ACEOF
11296 #line $LINENO "configure"
11299 cat confdefs.h >>conftest.$ac_ext
11300 cat >>conftest.$ac_ext <<_ACEOF
11301 /* end confdefs.h. */
11303 #include <signal.h>
11304 RETSIGTYPE foo() { }
11309 int mask = sigmask(SIGINT);
11310 sigset(SIGINT, foo); sigrelse(SIGINT);
11311 sighold(SIGINT); sigpause(SIGINT);
11317 rm -f conftest.$ac_objext conftest$ac_exeext
11318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11319 (eval $ac_link) 2>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } &&
11323 { ac_try='test -s conftest$ac_exeext'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
11329 bash_cv_signal_vintage=svr3
11331 echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11334 bash_cv_signal_vintage=v7
11337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11347 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11348 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11349 if test "$bash_cv_signal_vintage" = posix; then
11350 cat >>confdefs.h <<\_ACEOF
11351 #define HAVE_POSIX_SIGNALS 1
11354 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11355 cat >>confdefs.h <<\_ACEOF
11356 #define HAVE_BSD_SIGNALS 1
11359 elif test "$bash_cv_signal_vintage" = svr3; then
11360 cat >>confdefs.h <<\_ACEOF
11361 #define HAVE_USG_SIGHOLD 1
11366 echo "$as_me:$LINENO: checking for mode_t" >&5
11367 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11368 if test "${ac_cv_type_mode_t+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 cat >conftest.$ac_ext <<_ACEOF
11372 #line $LINENO "configure"
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h. */
11378 $ac_includes_default
11384 if (sizeof (mode_t))
11390 rm -f conftest.$ac_objext
11391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11392 (eval $ac_compile) 2>&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } &&
11396 { ac_try='test -s conftest.$ac_objext'
11397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11398 (eval $ac_try) 2>&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); }; }; then
11402 ac_cv_type_mode_t=yes
11404 echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11407 ac_cv_type_mode_t=no
11409 rm -f conftest.$ac_objext conftest.$ac_ext
11411 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11412 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11413 if test $ac_cv_type_mode_t = yes; then
11417 cat >>confdefs.h <<_ACEOF
11423 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11424 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11425 if test "${ac_cv_type_uid_t+set}" = set; then
11426 echo $ECHO_N "(cached) $ECHO_C" >&6
11428 cat >conftest.$ac_ext <<_ACEOF
11429 #line $LINENO "configure"
11432 cat confdefs.h >>conftest.$ac_ext
11433 cat >>conftest.$ac_ext <<_ACEOF
11434 /* end confdefs.h. */
11435 #include <sys/types.h>
11438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11439 $EGREP "uid_t" >/dev/null 2>&1; then
11440 ac_cv_type_uid_t=yes
11442 ac_cv_type_uid_t=no
11447 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11448 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11449 if test $ac_cv_type_uid_t = no; then
11451 cat >>confdefs.h <<\_ACEOF
11456 cat >>confdefs.h <<\_ACEOF
11462 echo "$as_me:$LINENO: checking for size_t" >&5
11463 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11464 if test "${ac_cv_type_size_t+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11467 cat >conftest.$ac_ext <<_ACEOF
11468 #line $LINENO "configure"
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11474 $ac_includes_default
11480 if (sizeof (size_t))
11486 rm -f conftest.$ac_objext
11487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11488 (eval $ac_compile) 2>&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } &&
11492 { ac_try='test -s conftest.$ac_objext'
11493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; }; then
11498 ac_cv_type_size_t=yes
11500 echo "$as_me: failed program was:" >&5
11501 sed 's/^/| /' conftest.$ac_ext >&5
11503 ac_cv_type_size_t=no
11505 rm -f conftest.$ac_objext conftest.$ac_ext
11507 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11508 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11509 if test $ac_cv_type_size_t = yes; then
11513 cat >>confdefs.h <<_ACEOF
11514 #define size_t unsigned
11519 echo "$as_me:$LINENO: checking for pid_t" >&5
11520 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11521 if test "${ac_cv_type_pid_t+set}" = set; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
11524 cat >conftest.$ac_ext <<_ACEOF
11525 #line $LINENO "configure"
11528 cat confdefs.h >>conftest.$ac_ext
11529 cat >>conftest.$ac_ext <<_ACEOF
11530 /* end confdefs.h. */
11531 $ac_includes_default
11537 if (sizeof (pid_t))
11543 rm -f conftest.$ac_objext
11544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11545 (eval $ac_compile) 2>&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); } &&
11549 { ac_try='test -s conftest.$ac_objext'
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11555 ac_cv_type_pid_t=yes
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11560 ac_cv_type_pid_t=no
11562 rm -f conftest.$ac_objext conftest.$ac_ext
11564 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11565 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11566 if test $ac_cv_type_pid_t = yes; then
11570 cat >>confdefs.h <<_ACEOF
11576 echo "$as_me:$LINENO: checking for off_t" >&5
11577 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11578 if test "${ac_cv_type_off_t+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11581 cat >conftest.$ac_ext <<_ACEOF
11582 #line $LINENO "configure"
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h. */
11588 $ac_includes_default
11594 if (sizeof (off_t))
11600 rm -f conftest.$ac_objext
11601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11602 (eval $ac_compile) 2>&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } &&
11606 { ac_try='test -s conftest.$ac_objext'
11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608 (eval $ac_try) 2>&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; }; then
11612 ac_cv_type_off_t=yes
11614 echo "$as_me: failed program was:" >&5
11615 sed 's/^/| /' conftest.$ac_ext >&5
11617 ac_cv_type_off_t=no
11619 rm -f conftest.$ac_objext conftest.$ac_ext
11621 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11622 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11623 if test $ac_cv_type_off_t = yes; then
11627 cat >>confdefs.h <<_ACEOF
11633 echo "$as_me:$LINENO: checking for ino_t" >&5
11634 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11635 if test "${ac_cv_type_ino_t+set}" = set; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 cat >conftest.$ac_ext <<_ACEOF
11639 #line $LINENO "configure"
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11645 $ac_includes_default
11651 if (sizeof (ino_t))
11657 rm -f conftest.$ac_objext
11658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11659 (eval $ac_compile) 2>&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } &&
11663 { ac_try='test -s conftest.$ac_objext'
11664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665 (eval $ac_try) 2>&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; }; then
11669 ac_cv_type_ino_t=yes
11671 echo "$as_me: failed program was:" >&5
11672 sed 's/^/| /' conftest.$ac_ext >&5
11674 ac_cv_type_ino_t=no
11676 rm -f conftest.$ac_objext conftest.$ac_ext
11678 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11679 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11680 if test $ac_cv_type_ino_t = yes; then
11684 cat >>confdefs.h <<_ACEOF
11685 #define ino_t unsigned long
11690 echo "$as_me:$LINENO: checking for dev_t" >&5
11691 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11692 if test "${ac_cv_type_dev_t+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11695 cat >conftest.$ac_ext <<_ACEOF
11696 #line $LINENO "configure"
11699 cat confdefs.h >>conftest.$ac_ext
11700 cat >>conftest.$ac_ext <<_ACEOF
11701 /* end confdefs.h. */
11702 $ac_includes_default
11708 if (sizeof (dev_t))
11714 rm -f conftest.$ac_objext
11715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11716 (eval $ac_compile) 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); } &&
11720 { ac_try='test -s conftest.$ac_objext'
11721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722 (eval $ac_try) 2>&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then
11726 ac_cv_type_dev_t=yes
11728 echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11731 ac_cv_type_dev_t=no
11733 rm -f conftest.$ac_objext conftest.$ac_ext
11735 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11736 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11737 if test $ac_cv_type_dev_t = yes; then
11741 cat >>confdefs.h <<_ACEOF
11742 #define dev_t unsigned long
11747 echo "$as_me:$LINENO: checking for daddr_t" >&5
11748 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11749 if test "${ac_cv_type_daddr_t+set}" = set; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 cat >conftest.$ac_ext <<_ACEOF
11753 #line $LINENO "configure"
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h. */
11759 $ac_includes_default
11765 if (sizeof (daddr_t))
11771 rm -f conftest.$ac_objext
11772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11773 (eval $ac_compile) 2>&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } &&
11777 { ac_try='test -s conftest.$ac_objext'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; }; then
11783 ac_cv_type_daddr_t=yes
11785 echo "$as_me: failed program was:" >&5
11786 sed 's/^/| /' conftest.$ac_ext >&5
11788 ac_cv_type_daddr_t=no
11790 rm -f conftest.$ac_objext conftest.$ac_ext
11792 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11793 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11794 if test $ac_cv_type_daddr_t = yes; then
11798 cat >>confdefs.h <<_ACEOF
11799 #define daddr_t long
11804 echo "$as_me:$LINENO: checking for major_t" >&5
11805 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11806 if test "${ac_cv_type_major_t+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11809 cat >conftest.$ac_ext <<_ACEOF
11810 #line $LINENO "configure"
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 $ac_includes_default
11822 if (sizeof (major_t))
11828 rm -f conftest.$ac_objext
11829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11830 (eval $ac_compile) 2>&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } &&
11834 { ac_try='test -s conftest.$ac_objext'
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
11840 ac_cv_type_major_t=yes
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11845 ac_cv_type_major_t=no
11847 rm -f conftest.$ac_objext conftest.$ac_ext
11849 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11850 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11851 if test $ac_cv_type_major_t = yes; then
11855 cat >>confdefs.h <<_ACEOF
11856 #define major_t int
11861 echo "$as_me:$LINENO: checking for minor_t" >&5
11862 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11863 if test "${ac_cv_type_minor_t+set}" = set; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 cat >conftest.$ac_ext <<_ACEOF
11867 #line $LINENO "configure"
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11873 $ac_includes_default
11879 if (sizeof (minor_t))
11885 rm -f conftest.$ac_objext
11886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11887 (eval $ac_compile) 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } &&
11891 { ac_try='test -s conftest.$ac_objext'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
11897 ac_cv_type_minor_t=yes
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11902 ac_cv_type_minor_t=no
11904 rm -f conftest.$ac_objext conftest.$ac_ext
11906 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11907 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11908 if test $ac_cv_type_minor_t = yes; then
11912 cat >>confdefs.h <<_ACEOF
11913 #define minor_t int
11918 echo "$as_me:$LINENO: checking for ssize_t" >&5
11919 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11920 if test "${ac_cv_type_ssize_t+set}" = set; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11923 cat >conftest.$ac_ext <<_ACEOF
11924 #line $LINENO "configure"
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11930 $ac_includes_default
11936 if (sizeof (ssize_t))
11942 rm -f conftest.$ac_objext
11943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11944 (eval $ac_compile) 2>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
11948 { ac_try='test -s conftest.$ac_objext'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 ac_cv_type_ssize_t=yes
11956 echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11959 ac_cv_type_ssize_t=no
11961 rm -f conftest.$ac_objext conftest.$ac_ext
11963 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11964 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11965 if test $ac_cv_type_ssize_t = yes; then
11969 cat >>confdefs.h <<_ACEOF
11970 #define ssize_t int
11975 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11976 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11977 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11980 cat >conftest.$ac_ext <<_ACEOF
11981 #line $LINENO "configure"
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h. */
11987 $ac_includes_default
11991 static struct stat ac_aggr;
11992 if (ac_aggr.st_blocks)
11998 rm -f conftest.$ac_objext
11999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12000 (eval $ac_compile) 2>&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } &&
12004 { ac_try='test -s conftest.$ac_objext'
12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; }; then
12010 ac_cv_member_struct_stat_st_blocks=yes
12012 echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12015 cat >conftest.$ac_ext <<_ACEOF
12016 #line $LINENO "configure"
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h. */
12022 $ac_includes_default
12026 static struct stat ac_aggr;
12027 if (sizeof ac_aggr.st_blocks)
12033 rm -f conftest.$ac_objext
12034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12035 (eval $ac_compile) 2>&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } &&
12039 { ac_try='test -s conftest.$ac_objext'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045 ac_cv_member_struct_stat_st_blocks=yes
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12050 ac_cv_member_struct_stat_st_blocks=no
12052 rm -f conftest.$ac_objext conftest.$ac_ext
12054 rm -f conftest.$ac_objext conftest.$ac_ext
12056 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12057 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12058 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12060 cat >>confdefs.h <<_ACEOF
12061 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12065 cat >>confdefs.h <<\_ACEOF
12066 #define HAVE_ST_BLOCKS 1
12070 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12075 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12076 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12077 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12078 echo $ECHO_N "(cached) $ECHO_C" >&6
12080 cat >conftest.$ac_ext <<_ACEOF
12081 #line $LINENO "configure"
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12087 $ac_includes_default
12091 static struct stat ac_aggr;
12092 if (ac_aggr.st_rdev)
12098 rm -f conftest.$ac_objext
12099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12100 (eval $ac_compile) 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } &&
12104 { ac_try='test -s conftest.$ac_objext'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; }; then
12110 ac_cv_member_struct_stat_st_rdev=yes
12112 echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12115 cat >conftest.$ac_ext <<_ACEOF
12116 #line $LINENO "configure"
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h. */
12122 $ac_includes_default
12126 static struct stat ac_aggr;
12127 if (sizeof ac_aggr.st_rdev)
12133 rm -f conftest.$ac_objext
12134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12135 (eval $ac_compile) 2>&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } &&
12139 { ac_try='test -s conftest.$ac_objext'
12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12145 ac_cv_member_struct_stat_st_rdev=yes
12147 echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12150 ac_cv_member_struct_stat_st_rdev=no
12152 rm -f conftest.$ac_objext conftest.$ac_ext
12154 rm -f conftest.$ac_objext conftest.$ac_ext
12156 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12157 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12158 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12160 cat >>confdefs.h <<_ACEOF
12161 #define HAVE_STRUCT_STAT_ST_RDEV 1
12165 cat >>confdefs.h <<\_ACEOF
12166 #define HAVE_ST_RDEV 1
12172 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12173 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12174 if test "${ac_cv_struct_tm+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 cat >conftest.$ac_ext <<_ACEOF
12178 #line $LINENO "configure"
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h. */
12184 #include <sys/types.h>
12190 struct tm *tp; tp->tm_sec;
12195 rm -f conftest.$ac_objext
12196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12197 (eval $ac_compile) 2>&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); } &&
12201 { ac_try='test -s conftest.$ac_objext'
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; }; then
12207 ac_cv_struct_tm=time.h
12209 echo "$as_me: failed program was:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12212 ac_cv_struct_tm=sys/time.h
12214 rm -f conftest.$ac_objext conftest.$ac_ext
12216 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12217 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12218 if test $ac_cv_struct_tm = sys/time.h; then
12220 cat >>confdefs.h <<\_ACEOF
12221 #define TM_IN_SYS_TIME 1
12226 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12227 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12228 if test "${ac_cv_c_const+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12231 cat >conftest.$ac_ext <<_ACEOF
12232 #line $LINENO "configure"
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12242 /* FIXME: Include the comments suggested by Paul. */
12243 #ifndef __cplusplus
12244 /* Ultrix mips cc rejects this. */
12245 typedef int charset[2];
12247 /* SunOS 4.1.1 cc rejects this. */
12248 char const *const *ccp;
12250 /* NEC SVR4.0.2 mips cc rejects this. */
12251 struct point {int x, y;};
12252 static struct point const zero = {0,0};
12253 /* AIX XL C 1.02.0.0 rejects this.
12254 It does not let you subtract one const X* pointer from another in
12255 an arm of an if-expression whose if-part is not a constant
12257 const char *g = "string";
12258 ccp = &g + (g ? g-g : 0);
12259 /* HPUX 7.0 cc rejects these. */
12262 ccp = (char const *const *) p;
12263 { /* SCO 3.2v4 cc rejects this. */
12265 char const *s = 0 ? (char *) 0 : (char const *) 0;
12269 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12270 int x[] = {25, 17};
12271 const int *foo = &x[0];
12274 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12275 typedef const int *iptr;
12279 { /* AIX XL C 1.02.0.0 rejects this saying
12280 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12281 struct s { int j; const int *ap[3]; };
12282 struct s *b; b->j = 5;
12284 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12285 const int foo = 10;
12293 rm -f conftest.$ac_objext
12294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12295 (eval $ac_compile) 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } &&
12299 { ac_try='test -s conftest.$ac_objext'
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; }; then
12307 echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12312 rm -f conftest.$ac_objext conftest.$ac_ext
12314 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12315 echo "${ECHO_T}$ac_cv_c_const" >&6
12316 if test $ac_cv_c_const = no; then
12318 cat >>confdefs.h <<\_ACEOF
12326 echo "$as_me:$LINENO: checking for char" >&5
12327 echo $ECHO_N "checking for char... $ECHO_C" >&6
12328 if test "${ac_cv_type_char+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 cat >conftest.$ac_ext <<_ACEOF
12332 #line $LINENO "configure"
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h. */
12338 $ac_includes_default
12350 rm -f conftest.$ac_objext
12351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12352 (eval $ac_compile) 2>&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } &&
12356 { ac_try='test -s conftest.$ac_objext'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
12362 ac_cv_type_char=yes
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12369 rm -f conftest.$ac_objext conftest.$ac_ext
12371 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12372 echo "${ECHO_T}$ac_cv_type_char" >&6
12374 echo "$as_me:$LINENO: checking size of char" >&5
12375 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12376 if test "${ac_cv_sizeof_char+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 if test "$ac_cv_type_char" = yes; then
12380 # The cast to unsigned long works around a bug in the HP C Compiler
12381 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12382 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12383 # This bug is HP SR number 8606223364.
12384 if test "$cross_compiling" = yes; then
12385 # Depending upon the size, compute the lo and hi bounds.
12386 cat >conftest.$ac_ext <<_ACEOF
12387 #line $LINENO "configure"
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12393 $ac_includes_default
12397 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12404 rm -f conftest.$ac_objext
12405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12406 (eval $ac_compile) 2>&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); } &&
12410 { ac_try='test -s conftest.$ac_objext'
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; }; then
12418 cat >conftest.$ac_ext <<_ACEOF
12419 #line $LINENO "configure"
12422 cat confdefs.h >>conftest.$ac_ext
12423 cat >>conftest.$ac_ext <<_ACEOF
12424 /* end confdefs.h. */
12425 $ac_includes_default
12429 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12436 rm -f conftest.$ac_objext
12437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12438 (eval $ac_compile) 2>&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); } &&
12442 { ac_try='test -s conftest.$ac_objext'
12443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444 (eval $ac_try) 2>&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; }; then
12448 ac_hi=$ac_mid; break
12450 echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.$ac_ext >&5
12453 ac_lo=`expr $ac_mid + 1`
12454 if test $ac_lo -le $ac_mid; then
12458 ac_mid=`expr 2 '*' $ac_mid + 1`
12460 rm -f conftest.$ac_objext conftest.$ac_ext
12463 echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12466 cat >conftest.$ac_ext <<_ACEOF
12467 #line $LINENO "configure"
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12473 $ac_includes_default
12477 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12484 rm -f conftest.$ac_objext
12485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12486 (eval $ac_compile) 2>&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
12490 { ac_try='test -s conftest.$ac_objext'
12491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492 (eval $ac_try) 2>&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; }; then
12498 cat >conftest.$ac_ext <<_ACEOF
12499 #line $LINENO "configure"
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12505 $ac_includes_default
12509 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12516 rm -f conftest.$ac_objext
12517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12518 (eval $ac_compile) 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } &&
12522 { ac_try='test -s conftest.$ac_objext'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; }; then
12528 ac_lo=$ac_mid; break
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12533 ac_hi=`expr '(' $ac_mid ')' - 1`
12534 if test $ac_mid -le $ac_hi; then
12538 ac_mid=`expr 2 '*' $ac_mid`
12540 rm -f conftest.$ac_objext conftest.$ac_ext
12543 echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12548 rm -f conftest.$ac_objext conftest.$ac_ext
12550 rm -f conftest.$ac_objext conftest.$ac_ext
12551 # Binary search between lo and hi bounds.
12552 while test "x$ac_lo" != "x$ac_hi"; do
12553 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12554 cat >conftest.$ac_ext <<_ACEOF
12555 #line $LINENO "configure"
12558 cat confdefs.h >>conftest.$ac_ext
12559 cat >>conftest.$ac_ext <<_ACEOF
12560 /* end confdefs.h. */
12561 $ac_includes_default
12565 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12572 rm -f conftest.$ac_objext
12573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12574 (eval $ac_compile) 2>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
12578 { ac_try='test -s conftest.$ac_objext'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
12586 echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.$ac_ext >&5
12589 ac_lo=`expr '(' $ac_mid ')' + 1`
12591 rm -f conftest.$ac_objext conftest.$ac_ext
12594 ?*) ac_cv_sizeof_char=$ac_lo;;
12595 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12596 See \`config.log' for more details." >&5
12597 echo "$as_me: error: cannot compute sizeof (char), 77
12598 See \`config.log' for more details." >&2;}
12599 { (exit 1); exit 1; }; } ;;
12602 if test "$cross_compiling" = yes; then
12603 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12604 See \`config.log' for more details." >&5
12605 echo "$as_me: error: cannot run test program while cross compiling
12606 See \`config.log' for more details." >&2;}
12607 { (exit 1); exit 1; }; }
12609 cat >conftest.$ac_ext <<_ACEOF
12610 #line $LINENO "configure"
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12616 $ac_includes_default
12617 long longval () { return (long) (sizeof (char)); }
12618 unsigned long ulongval () { return (long) (sizeof (char)); }
12620 #include <stdlib.h>
12625 FILE *f = fopen ("conftest.val", "w");
12628 if (((long) (sizeof (char))) < 0)
12630 long i = longval ();
12631 if (i != ((long) (sizeof (char))))
12633 fprintf (f, "%ld\n", i);
12637 unsigned long i = ulongval ();
12638 if (i != ((long) (sizeof (char))))
12640 fprintf (f, "%lu\n", i);
12642 exit (ferror (f) || fclose (f) != 0);
12648 rm -f conftest$ac_exeext
12649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12650 (eval $ac_link) 2>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
12659 ac_cv_sizeof_char=`cat conftest.val`
12661 echo "$as_me: program exited with status $ac_status" >&5
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12665 ( exit $ac_status )
12666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12667 See \`config.log' for more details." >&5
12668 echo "$as_me: error: cannot compute sizeof (char), 77
12669 See \`config.log' for more details." >&2;}
12670 { (exit 1); exit 1; }; }
12672 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12677 ac_cv_sizeof_char=0
12680 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12681 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12682 cat >>confdefs.h <<_ACEOF
12683 #define SIZEOF_CHAR $ac_cv_sizeof_char
12687 echo "$as_me:$LINENO: checking for short int" >&5
12688 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12689 if test "${ac_cv_type_short_int+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12692 cat >conftest.$ac_ext <<_ACEOF
12693 #line $LINENO "configure"
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12699 $ac_includes_default
12703 if ((short int *) 0)
12705 if (sizeof (short int))
12711 rm -f conftest.$ac_objext
12712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12713 (eval $ac_compile) 2>&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } &&
12717 { ac_try='test -s conftest.$ac_objext'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
12723 ac_cv_type_short_int=yes
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12728 ac_cv_type_short_int=no
12730 rm -f conftest.$ac_objext conftest.$ac_ext
12732 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12733 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12735 echo "$as_me:$LINENO: checking size of short int" >&5
12736 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12737 if test "${ac_cv_sizeof_short_int+set}" = set; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
12740 if test "$ac_cv_type_short_int" = yes; then
12741 # The cast to unsigned long works around a bug in the HP C Compiler
12742 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12743 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12744 # This bug is HP SR number 8606223364.
12745 if test "$cross_compiling" = yes; then
12746 # Depending upon the size, compute the lo and hi bounds.
12747 cat >conftest.$ac_ext <<_ACEOF
12748 #line $LINENO "configure"
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12754 $ac_includes_default
12758 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12765 rm -f conftest.$ac_objext
12766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12767 (eval $ac_compile) 2>&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
12771 { ac_try='test -s conftest.$ac_objext'
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; }; then
12779 cat >conftest.$ac_ext <<_ACEOF
12780 #line $LINENO "configure"
12783 cat confdefs.h >>conftest.$ac_ext
12784 cat >>conftest.$ac_ext <<_ACEOF
12785 /* end confdefs.h. */
12786 $ac_includes_default
12790 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12797 rm -f conftest.$ac_objext
12798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12799 (eval $ac_compile) 2>&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } &&
12803 { ac_try='test -s conftest.$ac_objext'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; }; then
12809 ac_hi=$ac_mid; break
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12814 ac_lo=`expr $ac_mid + 1`
12815 if test $ac_lo -le $ac_mid; then
12819 ac_mid=`expr 2 '*' $ac_mid + 1`
12821 rm -f conftest.$ac_objext conftest.$ac_ext
12824 echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12827 cat >conftest.$ac_ext <<_ACEOF
12828 #line $LINENO "configure"
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12834 $ac_includes_default
12838 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12845 rm -f conftest.$ac_objext
12846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12847 (eval $ac_compile) 2>&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } &&
12851 { ac_try='test -s conftest.$ac_objext'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12859 cat >conftest.$ac_ext <<_ACEOF
12860 #line $LINENO "configure"
12863 cat confdefs.h >>conftest.$ac_ext
12864 cat >>conftest.$ac_ext <<_ACEOF
12865 /* end confdefs.h. */
12866 $ac_includes_default
12870 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12877 rm -f conftest.$ac_objext
12878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12879 (eval $ac_compile) 2>&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
12883 { ac_try='test -s conftest.$ac_objext'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; }; then
12889 ac_lo=$ac_mid; break
12891 echo "$as_me: failed program was:" >&5
12892 sed 's/^/| /' conftest.$ac_ext >&5
12894 ac_hi=`expr '(' $ac_mid ')' - 1`
12895 if test $ac_mid -le $ac_hi; then
12899 ac_mid=`expr 2 '*' $ac_mid`
12901 rm -f conftest.$ac_objext conftest.$ac_ext
12904 echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12909 rm -f conftest.$ac_objext conftest.$ac_ext
12911 rm -f conftest.$ac_objext conftest.$ac_ext
12912 # Binary search between lo and hi bounds.
12913 while test "x$ac_lo" != "x$ac_hi"; do
12914 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12915 cat >conftest.$ac_ext <<_ACEOF
12916 #line $LINENO "configure"
12919 cat confdefs.h >>conftest.$ac_ext
12920 cat >>conftest.$ac_ext <<_ACEOF
12921 /* end confdefs.h. */
12922 $ac_includes_default
12926 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12933 rm -f conftest.$ac_objext
12934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12935 (eval $ac_compile) 2>&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } &&
12939 { ac_try='test -s conftest.$ac_objext'
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; }; then
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12950 ac_lo=`expr '(' $ac_mid ')' + 1`
12952 rm -f conftest.$ac_objext conftest.$ac_ext
12955 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12956 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12957 See \`config.log' for more details." >&5
12958 echo "$as_me: error: cannot compute sizeof (short int), 77
12959 See \`config.log' for more details." >&2;}
12960 { (exit 1); exit 1; }; } ;;
12963 if test "$cross_compiling" = yes; then
12964 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12965 See \`config.log' for more details." >&5
12966 echo "$as_me: error: cannot run test program while cross compiling
12967 See \`config.log' for more details." >&2;}
12968 { (exit 1); exit 1; }; }
12970 cat >conftest.$ac_ext <<_ACEOF
12971 #line $LINENO "configure"
12974 cat confdefs.h >>conftest.$ac_ext
12975 cat >>conftest.$ac_ext <<_ACEOF
12976 /* end confdefs.h. */
12977 $ac_includes_default
12978 long longval () { return (long) (sizeof (short int)); }
12979 unsigned long ulongval () { return (long) (sizeof (short int)); }
12981 #include <stdlib.h>
12986 FILE *f = fopen ("conftest.val", "w");
12989 if (((long) (sizeof (short int))) < 0)
12991 long i = longval ();
12992 if (i != ((long) (sizeof (short int))))
12994 fprintf (f, "%ld\n", i);
12998 unsigned long i = ulongval ();
12999 if (i != ((long) (sizeof (short int))))
13001 fprintf (f, "%lu\n", i);
13003 exit (ferror (f) || fclose (f) != 0);
13009 rm -f conftest$ac_exeext
13010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13011 (eval $ac_link) 2>&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; }; then
13020 ac_cv_sizeof_short_int=`cat conftest.val`
13022 echo "$as_me: program exited with status $ac_status" >&5
13023 echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13026 ( exit $ac_status )
13027 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13028 See \`config.log' for more details." >&5
13029 echo "$as_me: error: cannot compute sizeof (short int), 77
13030 See \`config.log' for more details." >&2;}
13031 { (exit 1); exit 1; }; }
13033 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13038 ac_cv_sizeof_short_int=0
13041 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13042 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13043 cat >>confdefs.h <<_ACEOF
13044 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13048 echo "$as_me:$LINENO: checking for int" >&5
13049 echo $ECHO_N "checking for int... $ECHO_C" >&6
13050 if test "${ac_cv_type_int+set}" = set; then
13051 echo $ECHO_N "(cached) $ECHO_C" >&6
13053 cat >conftest.$ac_ext <<_ACEOF
13054 #line $LINENO "configure"
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h. */
13060 $ac_includes_default
13072 rm -f conftest.$ac_objext
13073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13074 (eval $ac_compile) 2>&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } &&
13078 { ac_try='test -s conftest.$ac_objext'
13079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080 (eval $ac_try) 2>&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; }; then
13086 echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13091 rm -f conftest.$ac_objext conftest.$ac_ext
13093 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13094 echo "${ECHO_T}$ac_cv_type_int" >&6
13096 echo "$as_me:$LINENO: checking size of int" >&5
13097 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13098 if test "${ac_cv_sizeof_int+set}" = set; then
13099 echo $ECHO_N "(cached) $ECHO_C" >&6
13101 if test "$ac_cv_type_int" = yes; then
13102 # The cast to unsigned long works around a bug in the HP C Compiler
13103 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13104 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13105 # This bug is HP SR number 8606223364.
13106 if test "$cross_compiling" = yes; then
13107 # Depending upon the size, compute the lo and hi bounds.
13108 cat >conftest.$ac_ext <<_ACEOF
13109 #line $LINENO "configure"
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13115 $ac_includes_default
13119 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13126 rm -f conftest.$ac_objext
13127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13128 (eval $ac_compile) 2>&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } &&
13132 { ac_try='test -s conftest.$ac_objext'
13133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134 (eval $ac_try) 2>&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; }; then
13140 cat >conftest.$ac_ext <<_ACEOF
13141 #line $LINENO "configure"
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147 $ac_includes_default
13151 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13158 rm -f conftest.$ac_objext
13159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13160 (eval $ac_compile) 2>&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } &&
13164 { ac_try='test -s conftest.$ac_objext'
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166 (eval $ac_try) 2>&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; }; then
13170 ac_hi=$ac_mid; break
13172 echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13175 ac_lo=`expr $ac_mid + 1`
13176 if test $ac_lo -le $ac_mid; then
13180 ac_mid=`expr 2 '*' $ac_mid + 1`
13182 rm -f conftest.$ac_objext conftest.$ac_ext
13185 echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.$ac_ext >&5
13188 cat >conftest.$ac_ext <<_ACEOF
13189 #line $LINENO "configure"
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13195 $ac_includes_default
13199 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13206 rm -f conftest.$ac_objext
13207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13208 (eval $ac_compile) 2>&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } &&
13212 { ac_try='test -s conftest.$ac_objext'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13220 cat >conftest.$ac_ext <<_ACEOF
13221 #line $LINENO "configure"
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h. */
13227 $ac_includes_default
13231 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13238 rm -f conftest.$ac_objext
13239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13240 (eval $ac_compile) 2>&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); } &&
13244 { ac_try='test -s conftest.$ac_objext'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; }; then
13250 ac_lo=$ac_mid; break
13252 echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13255 ac_hi=`expr '(' $ac_mid ')' - 1`
13256 if test $ac_mid -le $ac_hi; then
13260 ac_mid=`expr 2 '*' $ac_mid`
13262 rm -f conftest.$ac_objext conftest.$ac_ext
13265 echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13270 rm -f conftest.$ac_objext conftest.$ac_ext
13272 rm -f conftest.$ac_objext conftest.$ac_ext
13273 # Binary search between lo and hi bounds.
13274 while test "x$ac_lo" != "x$ac_hi"; do
13275 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13276 cat >conftest.$ac_ext <<_ACEOF
13277 #line $LINENO "configure"
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h. */
13283 $ac_includes_default
13287 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13294 rm -f conftest.$ac_objext
13295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13296 (eval $ac_compile) 2>&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } &&
13300 { ac_try='test -s conftest.$ac_objext'
13301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302 (eval $ac_try) 2>&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }; }; then
13308 echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13311 ac_lo=`expr '(' $ac_mid ')' + 1`
13313 rm -f conftest.$ac_objext conftest.$ac_ext
13316 ?*) ac_cv_sizeof_int=$ac_lo;;
13317 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13318 See \`config.log' for more details." >&5
13319 echo "$as_me: error: cannot compute sizeof (int), 77
13320 See \`config.log' for more details." >&2;}
13321 { (exit 1); exit 1; }; } ;;
13324 if test "$cross_compiling" = yes; then
13325 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13326 See \`config.log' for more details." >&5
13327 echo "$as_me: error: cannot run test program while cross compiling
13328 See \`config.log' for more details." >&2;}
13329 { (exit 1); exit 1; }; }
13331 cat >conftest.$ac_ext <<_ACEOF
13332 #line $LINENO "configure"
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h. */
13338 $ac_includes_default
13339 long longval () { return (long) (sizeof (int)); }
13340 unsigned long ulongval () { return (long) (sizeof (int)); }
13342 #include <stdlib.h>
13347 FILE *f = fopen ("conftest.val", "w");
13350 if (((long) (sizeof (int))) < 0)
13352 long i = longval ();
13353 if (i != ((long) (sizeof (int))))
13355 fprintf (f, "%ld\n", i);
13359 unsigned long i = ulongval ();
13360 if (i != ((long) (sizeof (int))))
13362 fprintf (f, "%lu\n", i);
13364 exit (ferror (f) || fclose (f) != 0);
13370 rm -f conftest$ac_exeext
13371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13372 (eval $ac_link) 2>&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13381 ac_cv_sizeof_int=`cat conftest.val`
13383 echo "$as_me: program exited with status $ac_status" >&5
13384 echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13387 ( exit $ac_status )
13388 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13389 See \`config.log' for more details." >&5
13390 echo "$as_me: error: cannot compute sizeof (int), 77
13391 See \`config.log' for more details." >&2;}
13392 { (exit 1); exit 1; }; }
13394 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13402 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13403 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13404 cat >>confdefs.h <<_ACEOF
13405 #define SIZEOF_INT $ac_cv_sizeof_int
13409 echo "$as_me:$LINENO: checking for long int" >&5
13410 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13411 if test "${ac_cv_type_long_int+set}" = set; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13414 cat >conftest.$ac_ext <<_ACEOF
13415 #line $LINENO "configure"
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13421 $ac_includes_default
13425 if ((long int *) 0)
13427 if (sizeof (long int))
13433 rm -f conftest.$ac_objext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13435 (eval $ac_compile) 2>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } &&
13439 { ac_try='test -s conftest.$ac_objext'
13440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441 (eval $ac_try) 2>&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
13445 ac_cv_type_long_int=yes
13447 echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13450 ac_cv_type_long_int=no
13452 rm -f conftest.$ac_objext conftest.$ac_ext
13454 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13455 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13457 echo "$as_me:$LINENO: checking size of long int" >&5
13458 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13459 if test "${ac_cv_sizeof_long_int+set}" = set; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 if test "$ac_cv_type_long_int" = yes; then
13463 # The cast to unsigned long works around a bug in the HP C Compiler
13464 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13465 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13466 # This bug is HP SR number 8606223364.
13467 if test "$cross_compiling" = yes; then
13468 # Depending upon the size, compute the lo and hi bounds.
13469 cat >conftest.$ac_ext <<_ACEOF
13470 #line $LINENO "configure"
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h. */
13476 $ac_includes_default
13480 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13487 rm -f conftest.$ac_objext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13489 (eval $ac_compile) 2>&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); } &&
13493 { ac_try='test -s conftest.$ac_objext'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13501 cat >conftest.$ac_ext <<_ACEOF
13502 #line $LINENO "configure"
13505 cat confdefs.h >>conftest.$ac_ext
13506 cat >>conftest.$ac_ext <<_ACEOF
13507 /* end confdefs.h. */
13508 $ac_includes_default
13512 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13519 rm -f conftest.$ac_objext
13520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13521 (eval $ac_compile) 2>&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } &&
13525 { ac_try='test -s conftest.$ac_objext'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 ac_hi=$ac_mid; break
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13536 ac_lo=`expr $ac_mid + 1`
13537 if test $ac_lo -le $ac_mid; then
13541 ac_mid=`expr 2 '*' $ac_mid + 1`
13543 rm -f conftest.$ac_objext conftest.$ac_ext
13546 echo "$as_me: failed program was:" >&5
13547 sed 's/^/| /' conftest.$ac_ext >&5
13549 cat >conftest.$ac_ext <<_ACEOF
13550 #line $LINENO "configure"
13553 cat confdefs.h >>conftest.$ac_ext
13554 cat >>conftest.$ac_ext <<_ACEOF
13555 /* end confdefs.h. */
13556 $ac_includes_default
13560 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13567 rm -f conftest.$ac_objext
13568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13569 (eval $ac_compile) 2>&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } &&
13573 { ac_try='test -s conftest.$ac_objext'
13574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575 (eval $ac_try) 2>&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; }; then
13581 cat >conftest.$ac_ext <<_ACEOF
13582 #line $LINENO "configure"
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h. */
13588 $ac_includes_default
13592 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13599 rm -f conftest.$ac_objext
13600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13601 (eval $ac_compile) 2>&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); } &&
13605 { ac_try='test -s conftest.$ac_objext'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; }; then
13611 ac_lo=$ac_mid; break
13613 echo "$as_me: failed program was:" >&5
13614 sed 's/^/| /' conftest.$ac_ext >&5
13616 ac_hi=`expr '(' $ac_mid ')' - 1`
13617 if test $ac_mid -le $ac_hi; then
13621 ac_mid=`expr 2 '*' $ac_mid`
13623 rm -f conftest.$ac_objext conftest.$ac_ext
13626 echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13631 rm -f conftest.$ac_objext conftest.$ac_ext
13633 rm -f conftest.$ac_objext conftest.$ac_ext
13634 # Binary search between lo and hi bounds.
13635 while test "x$ac_lo" != "x$ac_hi"; do
13636 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13637 cat >conftest.$ac_ext <<_ACEOF
13638 #line $LINENO "configure"
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h. */
13644 $ac_includes_default
13648 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13655 rm -f conftest.$ac_objext
13656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13657 (eval $ac_compile) 2>&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } &&
13661 { ac_try='test -s conftest.$ac_objext'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; }; then
13669 echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13672 ac_lo=`expr '(' $ac_mid ')' + 1`
13674 rm -f conftest.$ac_objext conftest.$ac_ext
13677 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13678 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13679 See \`config.log' for more details." >&5
13680 echo "$as_me: error: cannot compute sizeof (long int), 77
13681 See \`config.log' for more details." >&2;}
13682 { (exit 1); exit 1; }; } ;;
13685 if test "$cross_compiling" = yes; then
13686 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13687 See \`config.log' for more details." >&5
13688 echo "$as_me: error: cannot run test program while cross compiling
13689 See \`config.log' for more details." >&2;}
13690 { (exit 1); exit 1; }; }
13692 cat >conftest.$ac_ext <<_ACEOF
13693 #line $LINENO "configure"
13696 cat confdefs.h >>conftest.$ac_ext
13697 cat >>conftest.$ac_ext <<_ACEOF
13698 /* end confdefs.h. */
13699 $ac_includes_default
13700 long longval () { return (long) (sizeof (long int)); }
13701 unsigned long ulongval () { return (long) (sizeof (long int)); }
13703 #include <stdlib.h>
13708 FILE *f = fopen ("conftest.val", "w");
13711 if (((long) (sizeof (long int))) < 0)
13713 long i = longval ();
13714 if (i != ((long) (sizeof (long int))))
13716 fprintf (f, "%ld\n", i);
13720 unsigned long i = ulongval ();
13721 if (i != ((long) (sizeof (long int))))
13723 fprintf (f, "%lu\n", i);
13725 exit (ferror (f) || fclose (f) != 0);
13731 rm -f conftest$ac_exeext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13733 (eval $ac_link) 2>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; }; then
13742 ac_cv_sizeof_long_int=`cat conftest.val`
13744 echo "$as_me: program exited with status $ac_status" >&5
13745 echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13748 ( exit $ac_status )
13749 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13750 See \`config.log' for more details." >&5
13751 echo "$as_me: error: cannot compute sizeof (long int), 77
13752 See \`config.log' for more details." >&2;}
13753 { (exit 1); exit 1; }; }
13755 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13760 ac_cv_sizeof_long_int=0
13763 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13764 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13765 cat >>confdefs.h <<_ACEOF
13766 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13770 echo "$as_me:$LINENO: checking for long long int" >&5
13771 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13772 if test "${ac_cv_type_long_long_int+set}" = set; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
13775 cat >conftest.$ac_ext <<_ACEOF
13776 #line $LINENO "configure"
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13782 $ac_includes_default
13786 if ((long long int *) 0)
13788 if (sizeof (long long int))
13794 rm -f conftest.$ac_objext
13795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13796 (eval $ac_compile) 2>&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); } &&
13800 { ac_try='test -s conftest.$ac_objext'
13801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802 (eval $ac_try) 2>&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); }; }; then
13806 ac_cv_type_long_long_int=yes
13808 echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.$ac_ext >&5
13811 ac_cv_type_long_long_int=no
13813 rm -f conftest.$ac_objext conftest.$ac_ext
13815 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13816 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13818 echo "$as_me:$LINENO: checking size of long long int" >&5
13819 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13820 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13823 if test "$ac_cv_type_long_long_int" = yes; then
13824 # The cast to unsigned long works around a bug in the HP C Compiler
13825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13827 # This bug is HP SR number 8606223364.
13828 if test "$cross_compiling" = yes; then
13829 # Depending upon the size, compute the lo and hi bounds.
13830 cat >conftest.$ac_ext <<_ACEOF
13831 #line $LINENO "configure"
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h. */
13837 $ac_includes_default
13841 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13848 rm -f conftest.$ac_objext
13849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13850 (eval $ac_compile) 2>&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } &&
13854 { ac_try='test -s conftest.$ac_objext'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; }; then
13862 cat >conftest.$ac_ext <<_ACEOF
13863 #line $LINENO "configure"
13866 cat confdefs.h >>conftest.$ac_ext
13867 cat >>conftest.$ac_ext <<_ACEOF
13868 /* end confdefs.h. */
13869 $ac_includes_default
13873 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13880 rm -f conftest.$ac_objext
13881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13882 (eval $ac_compile) 2>&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } &&
13886 { ac_try='test -s conftest.$ac_objext'
13887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888 (eval $ac_try) 2>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; }; then
13892 ac_hi=$ac_mid; break
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 ac_lo=`expr $ac_mid + 1`
13898 if test $ac_lo -le $ac_mid; then
13902 ac_mid=`expr 2 '*' $ac_mid + 1`
13904 rm -f conftest.$ac_objext conftest.$ac_ext
13907 echo "$as_me: failed program was:" >&5
13908 sed 's/^/| /' conftest.$ac_ext >&5
13910 cat >conftest.$ac_ext <<_ACEOF
13911 #line $LINENO "configure"
13914 cat confdefs.h >>conftest.$ac_ext
13915 cat >>conftest.$ac_ext <<_ACEOF
13916 /* end confdefs.h. */
13917 $ac_includes_default
13921 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13928 rm -f conftest.$ac_objext
13929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13930 (eval $ac_compile) 2>&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } &&
13934 { ac_try='test -s conftest.$ac_objext'
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; }; then
13942 cat >conftest.$ac_ext <<_ACEOF
13943 #line $LINENO "configure"
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h. */
13949 $ac_includes_default
13953 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13960 rm -f conftest.$ac_objext
13961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13962 (eval $ac_compile) 2>&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); } &&
13966 { ac_try='test -s conftest.$ac_objext'
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; }; then
13972 ac_lo=$ac_mid; break
13974 echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.$ac_ext >&5
13977 ac_hi=`expr '(' $ac_mid ')' - 1`
13978 if test $ac_mid -le $ac_hi; then
13982 ac_mid=`expr 2 '*' $ac_mid`
13984 rm -f conftest.$ac_objext conftest.$ac_ext
13987 echo "$as_me: failed program was:" >&5
13988 sed 's/^/| /' conftest.$ac_ext >&5
13992 rm -f conftest.$ac_objext conftest.$ac_ext
13994 rm -f conftest.$ac_objext conftest.$ac_ext
13995 # Binary search between lo and hi bounds.
13996 while test "x$ac_lo" != "x$ac_hi"; do
13997 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13998 cat >conftest.$ac_ext <<_ACEOF
13999 #line $LINENO "configure"
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h. */
14005 $ac_includes_default
14009 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14016 rm -f conftest.$ac_objext
14017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14018 (eval $ac_compile) 2>&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); } &&
14022 { ac_try='test -s conftest.$ac_objext'
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; }; then
14030 echo "$as_me: failed program was:" >&5
14031 sed 's/^/| /' conftest.$ac_ext >&5
14033 ac_lo=`expr '(' $ac_mid ')' + 1`
14035 rm -f conftest.$ac_objext conftest.$ac_ext
14038 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14039 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14040 See \`config.log' for more details." >&5
14041 echo "$as_me: error: cannot compute sizeof (long long int), 77
14042 See \`config.log' for more details." >&2;}
14043 { (exit 1); exit 1; }; } ;;
14046 if test "$cross_compiling" = yes; then
14047 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14048 See \`config.log' for more details." >&5
14049 echo "$as_me: error: cannot run test program while cross compiling
14050 See \`config.log' for more details." >&2;}
14051 { (exit 1); exit 1; }; }
14053 cat >conftest.$ac_ext <<_ACEOF
14054 #line $LINENO "configure"
14057 cat confdefs.h >>conftest.$ac_ext
14058 cat >>conftest.$ac_ext <<_ACEOF
14059 /* end confdefs.h. */
14060 $ac_includes_default
14061 long longval () { return (long) (sizeof (long long int)); }
14062 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14064 #include <stdlib.h>
14069 FILE *f = fopen ("conftest.val", "w");
14072 if (((long) (sizeof (long long int))) < 0)
14074 long i = longval ();
14075 if (i != ((long) (sizeof (long long int))))
14077 fprintf (f, "%ld\n", i);
14081 unsigned long i = ulongval ();
14082 if (i != ((long) (sizeof (long long int))))
14084 fprintf (f, "%lu\n", i);
14086 exit (ferror (f) || fclose (f) != 0);
14092 rm -f conftest$ac_exeext
14093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14094 (eval $ac_link) 2>&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
14103 ac_cv_sizeof_long_long_int=`cat conftest.val`
14105 echo "$as_me: program exited with status $ac_status" >&5
14106 echo "$as_me: failed program was:" >&5
14107 sed 's/^/| /' conftest.$ac_ext >&5
14109 ( exit $ac_status )
14110 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14111 See \`config.log' for more details." >&5
14112 echo "$as_me: error: cannot compute sizeof (long long int), 77
14113 See \`config.log' for more details." >&2;}
14114 { (exit 1); exit 1; }; }
14116 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14121 ac_cv_sizeof_long_long_int=0
14124 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14125 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14126 cat >>confdefs.h <<_ACEOF
14127 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14131 echo "$as_me:$LINENO: checking for int *" >&5
14132 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14133 if test "${ac_cv_type_int_p+set}" = set; then
14134 echo $ECHO_N "(cached) $ECHO_C" >&6
14136 cat >conftest.$ac_ext <<_ACEOF
14137 #line $LINENO "configure"
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14143 $ac_includes_default
14149 if (sizeof (int *))
14155 rm -f conftest.$ac_objext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14157 (eval $ac_compile) 2>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } &&
14161 { ac_try='test -s conftest.$ac_objext'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; }; then
14167 ac_cv_type_int_p=yes
14169 echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14172 ac_cv_type_int_p=no
14174 rm -f conftest.$ac_objext conftest.$ac_ext
14176 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14177 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14179 echo "$as_me:$LINENO: checking size of int *" >&5
14180 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14181 if test "${ac_cv_sizeof_int_p+set}" = set; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
14184 if test "$ac_cv_type_int_p" = yes; then
14185 # The cast to unsigned long works around a bug in the HP C Compiler
14186 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14187 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14188 # This bug is HP SR number 8606223364.
14189 if test "$cross_compiling" = yes; then
14190 # Depending upon the size, compute the lo and hi bounds.
14191 cat >conftest.$ac_ext <<_ACEOF
14192 #line $LINENO "configure"
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h. */
14198 $ac_includes_default
14202 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14209 rm -f conftest.$ac_objext
14210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14211 (eval $ac_compile) 2>&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } &&
14215 { ac_try='test -s conftest.$ac_objext'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; }; then
14223 cat >conftest.$ac_ext <<_ACEOF
14224 #line $LINENO "configure"
14227 cat confdefs.h >>conftest.$ac_ext
14228 cat >>conftest.$ac_ext <<_ACEOF
14229 /* end confdefs.h. */
14230 $ac_includes_default
14234 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14241 rm -f conftest.$ac_objext
14242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14243 (eval $ac_compile) 2>&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); } &&
14247 { ac_try='test -s conftest.$ac_objext'
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; }; then
14253 ac_hi=$ac_mid; break
14255 echo "$as_me: failed program was:" >&5
14256 sed 's/^/| /' conftest.$ac_ext >&5
14258 ac_lo=`expr $ac_mid + 1`
14259 if test $ac_lo -le $ac_mid; then
14263 ac_mid=`expr 2 '*' $ac_mid + 1`
14265 rm -f conftest.$ac_objext conftest.$ac_ext
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14271 cat >conftest.$ac_ext <<_ACEOF
14272 #line $LINENO "configure"
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h. */
14278 $ac_includes_default
14282 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14289 rm -f conftest.$ac_objext
14290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14291 (eval $ac_compile) 2>&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } &&
14295 { ac_try='test -s conftest.$ac_objext'
14296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297 (eval $ac_try) 2>&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; }; then
14303 cat >conftest.$ac_ext <<_ACEOF
14304 #line $LINENO "configure"
14307 cat confdefs.h >>conftest.$ac_ext
14308 cat >>conftest.$ac_ext <<_ACEOF
14309 /* end confdefs.h. */
14310 $ac_includes_default
14314 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14321 rm -f conftest.$ac_objext
14322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14323 (eval $ac_compile) 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } &&
14327 { ac_try='test -s conftest.$ac_objext'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
14333 ac_lo=$ac_mid; break
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14338 ac_hi=`expr '(' $ac_mid ')' - 1`
14339 if test $ac_mid -le $ac_hi; then
14343 ac_mid=`expr 2 '*' $ac_mid`
14345 rm -f conftest.$ac_objext conftest.$ac_ext
14348 echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14353 rm -f conftest.$ac_objext conftest.$ac_ext
14355 rm -f conftest.$ac_objext conftest.$ac_ext
14356 # Binary search between lo and hi bounds.
14357 while test "x$ac_lo" != "x$ac_hi"; do
14358 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14359 cat >conftest.$ac_ext <<_ACEOF
14360 #line $LINENO "configure"
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14366 $ac_includes_default
14370 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14377 rm -f conftest.$ac_objext
14378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14379 (eval $ac_compile) 2>&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
14383 { ac_try='test -s conftest.$ac_objext'
14384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385 (eval $ac_try) 2>&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; }; then
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14394 ac_lo=`expr '(' $ac_mid ')' + 1`
14396 rm -f conftest.$ac_objext conftest.$ac_ext
14399 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14400 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14401 See \`config.log' for more details." >&5
14402 echo "$as_me: error: cannot compute sizeof (int *), 77
14403 See \`config.log' for more details." >&2;}
14404 { (exit 1); exit 1; }; } ;;
14407 if test "$cross_compiling" = yes; then
14408 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14409 See \`config.log' for more details." >&5
14410 echo "$as_me: error: cannot run test program while cross compiling
14411 See \`config.log' for more details." >&2;}
14412 { (exit 1); exit 1; }; }
14414 cat >conftest.$ac_ext <<_ACEOF
14415 #line $LINENO "configure"
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h. */
14421 $ac_includes_default
14422 long longval () { return (long) (sizeof (int *)); }
14423 unsigned long ulongval () { return (long) (sizeof (int *)); }
14425 #include <stdlib.h>
14430 FILE *f = fopen ("conftest.val", "w");
14433 if (((long) (sizeof (int *))) < 0)
14435 long i = longval ();
14436 if (i != ((long) (sizeof (int *))))
14438 fprintf (f, "%ld\n", i);
14442 unsigned long i = ulongval ();
14443 if (i != ((long) (sizeof (int *))))
14445 fprintf (f, "%lu\n", i);
14447 exit (ferror (f) || fclose (f) != 0);
14453 rm -f conftest$ac_exeext
14454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14455 (eval $ac_link) 2>&5
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; }; then
14464 ac_cv_sizeof_int_p=`cat conftest.val`
14466 echo "$as_me: program exited with status $ac_status" >&5
14467 echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14470 ( exit $ac_status )
14471 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14472 See \`config.log' for more details." >&5
14473 echo "$as_me: error: cannot compute sizeof (int *), 77
14474 See \`config.log' for more details." >&2;}
14475 { (exit 1); exit 1; }; }
14477 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14482 ac_cv_sizeof_int_p=0
14485 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14486 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14487 cat >>confdefs.h <<_ACEOF
14488 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14493 # Check for sys/types.h types
14494 echo "$as_me:$LINENO: checking for u_int type" >&5
14495 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14496 if test "${ac_cv_have_u_int+set}" = set; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
14500 cat >conftest.$ac_ext <<_ACEOF
14501 #line $LINENO "configure"
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h. */
14507 #include <sys/types.h>
14516 rm -f conftest.$ac_objext
14517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14518 (eval $ac_compile) 2>&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } &&
14522 { ac_try='test -s conftest.$ac_objext'
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14528 ac_cv_have_u_int="yes"
14530 echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14533 ac_cv_have_u_int="no"
14536 rm -f conftest.$ac_objext conftest.$ac_ext
14539 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14540 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14541 if test "x$ac_cv_have_u_int" = "xyes" ; then
14542 cat >>confdefs.h <<\_ACEOF
14543 #define HAVE_U_INT 1
14549 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14550 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14551 if test "${ac_cv_have_intmax_t+set}" = set; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
14555 cat >conftest.$ac_ext <<_ACEOF
14556 #line $LINENO "configure"
14559 cat confdefs.h >>conftest.$ac_ext
14560 cat >>conftest.$ac_ext <<_ACEOF
14561 /* end confdefs.h. */
14562 #include <sys/types.h>
14571 rm -f conftest.$ac_objext
14572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14573 (eval $ac_compile) 2>&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } &&
14577 { ac_try='test -s conftest.$ac_objext'
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; }; then
14583 ac_cv_have_intmax_t="yes"
14585 echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14589 cat >conftest.$ac_ext <<_ACEOF
14590 #line $LINENO "configure"
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h. */
14596 #include <stdint.h>
14605 rm -f conftest.$ac_objext
14606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14607 (eval $ac_compile) 2>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } &&
14611 { ac_try='test -s conftest.$ac_objext'
14612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613 (eval $ac_try) 2>&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; }; then
14617 ac_cv_have_intmax_t="yes"
14619 echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14622 ac_cv_have_intmax_t="no"
14625 rm -f conftest.$ac_objext conftest.$ac_ext
14629 rm -f conftest.$ac_objext conftest.$ac_ext
14633 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14634 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14635 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14636 cat >>confdefs.h <<\_ACEOF
14637 #define HAVE_INTMAX_T 1
14644 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14645 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14646 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14650 cat >conftest.$ac_ext <<_ACEOF
14651 #line $LINENO "configure"
14654 cat confdefs.h >>conftest.$ac_ext
14655 cat >>conftest.$ac_ext <<_ACEOF
14656 /* end confdefs.h. */
14657 #include <sys/types.h>
14661 u_intmax_t a; a = 1;
14666 rm -f conftest.$ac_objext
14667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14668 (eval $ac_compile) 2>&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
14672 { ac_try='test -s conftest.$ac_objext'
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; }; then
14678 ac_cv_have_u_intmax_t="yes"
14680 echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.$ac_ext >&5
14684 cat >conftest.$ac_ext <<_ACEOF
14685 #line $LINENO "configure"
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h. */
14691 #include <stdint.h>
14695 u_intmax_t a; a = 1;
14700 rm -f conftest.$ac_objext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14702 (eval $ac_compile) 2>&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } &&
14706 { ac_try='test -s conftest.$ac_objext'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
14712 ac_cv_have_u_intmax_t="yes"
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14717 ac_cv_have_u_intmax_t="no"
14720 rm -f conftest.$ac_objext conftest.$ac_ext
14724 rm -f conftest.$ac_objext conftest.$ac_ext
14727 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14728 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14729 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14730 cat >>confdefs.h <<\_ACEOF
14731 #define HAVE_U_INTMAX_T 1
14738 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14739 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14740 if test "${ac_cv_have_intxx_t+set}" = set; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14744 cat >conftest.$ac_ext <<_ACEOF
14745 #line $LINENO "configure"
14748 cat confdefs.h >>conftest.$ac_ext
14749 cat >>conftest.$ac_ext <<_ACEOF
14750 /* end confdefs.h. */
14751 #include <sys/types.h>
14755 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14760 rm -f conftest.$ac_objext
14761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14762 (eval $ac_compile) 2>&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); } &&
14766 { ac_try='test -s conftest.$ac_objext'
14767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768 (eval $ac_try) 2>&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; }; then
14772 ac_cv_have_intxx_t="yes"
14774 echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.$ac_ext >&5
14777 ac_cv_have_intxx_t="no"
14780 rm -f conftest.$ac_objext conftest.$ac_ext
14783 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14784 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14785 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14786 cat >>confdefs.h <<\_ACEOF
14787 #define HAVE_INTXX_T 1
14793 echo "$as_me:$LINENO: checking for int64_t type" >&5
14794 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14795 if test "${ac_cv_have_int64_t+set}" = set; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14799 cat >conftest.$ac_ext <<_ACEOF
14800 #line $LINENO "configure"
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h. */
14806 #include <sys/types.h>
14815 rm -f conftest.$ac_objext
14816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14817 (eval $ac_compile) 2>&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); } &&
14821 { ac_try='test -s conftest.$ac_objext'
14822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823 (eval $ac_try) 2>&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; }; then
14827 ac_cv_have_int64_t="yes"
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14832 ac_cv_have_int64_t="no"
14835 rm -f conftest.$ac_objext conftest.$ac_ext
14838 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14839 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14840 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14841 cat >>confdefs.h <<\_ACEOF
14842 #define HAVE_INT64_T 1
14848 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14849 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14850 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 cat >conftest.$ac_ext <<_ACEOF
14855 #line $LINENO "configure"
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h. */
14861 #include <sys/types.h>
14865 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14870 rm -f conftest.$ac_objext
14871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14872 (eval $ac_compile) 2>&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
14876 { ac_try='test -s conftest.$ac_objext'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14882 ac_cv_have_u_intxx_t="yes"
14884 echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14887 ac_cv_have_u_intxx_t="no"
14890 rm -f conftest.$ac_objext conftest.$ac_ext
14893 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14894 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14895 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14896 cat >>confdefs.h <<\_ACEOF
14897 #define HAVE_U_INTXX_T 1
14903 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14904 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14905 if test "${ac_cv_have_u_int64_t+set}" = set; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14909 cat >conftest.$ac_ext <<_ACEOF
14910 #line $LINENO "configure"
14913 cat confdefs.h >>conftest.$ac_ext
14914 cat >>conftest.$ac_ext <<_ACEOF
14915 /* end confdefs.h. */
14916 #include <sys/types.h>
14920 u_int64_t a; a = 1;
14925 rm -f conftest.$ac_objext
14926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14927 (eval $ac_compile) 2>&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } &&
14931 { ac_try='test -s conftest.$ac_objext'
14932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14933 (eval $ac_try) 2>&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); }; }; then
14937 ac_cv_have_u_int64_t="yes"
14939 echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14942 ac_cv_have_u_int64_t="no"
14945 rm -f conftest.$ac_objext conftest.$ac_ext
14948 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14949 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14950 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14951 cat >>confdefs.h <<\_ACEOF
14952 #define HAVE_U_INT64_T 1
14958 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14959 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14961 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14962 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14963 cat >conftest.$ac_ext <<_ACEOF
14964 #line $LINENO "configure"
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h. */
14970 #include <sys/bitypes.h>
14974 int8_t a; int16_t b; int32_t c;
14975 u_int8_t e; u_int16_t f; u_int32_t g;
14976 a = b = c = e = f = g = 1;
14981 rm -f conftest.$ac_objext
14982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14983 (eval $ac_compile) 2>&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } &&
14987 { ac_try='test -s conftest.$ac_objext'
14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; }; then
14993 cat >>confdefs.h <<\_ACEOF
14994 #define HAVE_U_INTXX_T 1
14997 cat >>confdefs.h <<\_ACEOF
14998 #define HAVE_INTXX_T 1
15001 cat >>confdefs.h <<\_ACEOF
15002 #define HAVE_SYS_BITYPES_H 1
15005 echo "$as_me:$LINENO: result: yes" >&5
15006 echo "${ECHO_T}yes" >&6
15008 echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15011 echo "$as_me:$LINENO: result: no" >&5
15012 echo "${ECHO_T}no" >&6
15015 rm -f conftest.$ac_objext conftest.$ac_ext
15018 if test -z "$have_u_intxx_t" ; then
15019 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15020 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15021 if test "${ac_cv_have_uintxx_t+set}" = set; then
15022 echo $ECHO_N "(cached) $ECHO_C" >&6
15025 cat >conftest.$ac_ext <<_ACEOF
15026 #line $LINENO "configure"
15029 cat confdefs.h >>conftest.$ac_ext
15030 cat >>conftest.$ac_ext <<_ACEOF
15031 /* end confdefs.h. */
15032 #include <sys/types.h>
15036 uint8_t a; uint16_t b;
15037 uint32_t c; a = b = c = 1;
15042 rm -f conftest.$ac_objext
15043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15044 (eval $ac_compile) 2>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try='test -s conftest.$ac_objext'
15049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050 (eval $ac_try) 2>&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; }; then
15054 ac_cv_have_uintxx_t="yes"
15056 echo "$as_me: failed program was:" >&5
15057 sed 's/^/| /' conftest.$ac_ext >&5
15059 ac_cv_have_uintxx_t="no"
15062 rm -f conftest.$ac_objext conftest.$ac_ext
15065 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15066 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15067 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15068 cat >>confdefs.h <<\_ACEOF
15069 #define HAVE_UINTXX_T 1
15105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15106 echo "$as_me:$LINENO: checking for $ac_func" >&5
15107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15108 if eval "test \"\${$as_ac_var+set}\" = set"; then
15109 echo $ECHO_N "(cached) $ECHO_C" >&6
15111 cat >conftest.$ac_ext <<_ACEOF
15112 #line $LINENO "configure"
15115 cat confdefs.h >>conftest.$ac_ext
15116 cat >>conftest.$ac_ext <<_ACEOF
15117 /* end confdefs.h. */
15118 /* System header to define __stub macros and hopefully few prototypes,
15119 which can conflict with char $ac_func (); below.
15120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15121 <limits.h> exists even on freestanding compilers. */
15123 # include <limits.h>
15125 # include <assert.h>
15127 /* Override any gcc2 internal prototype to avoid an error. */
15132 /* We use char because int might match the return type of a gcc2
15133 builtin and then its argument prototype would still apply. */
15135 /* The GNU C library defines this for functions which it implements
15136 to always fail with ENOSYS. Some functions are actually named
15137 something starting with __ and the normal name is an alias. */
15138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15141 char (*f) () = $ac_func;
15150 return f != $ac_func;
15155 rm -f conftest.$ac_objext conftest$ac_exeext
15156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15157 (eval $ac_link) 2>&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } &&
15161 { ac_try='test -s conftest$ac_exeext'
15162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163 (eval $ac_try) 2>&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; }; then
15167 eval "$as_ac_var=yes"
15169 echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15172 eval "$as_ac_var=no"
15174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15178 if test `eval echo '${'$as_ac_var'}'` = yes; then
15179 cat >>confdefs.h <<_ACEOF
15180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15184 echo 'configure: cannot find needed function.'; exit 1
15191 for ac_func in fchdir
15193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15194 echo "$as_me:$LINENO: checking for $ac_func" >&5
15195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15196 if eval "test \"\${$as_ac_var+set}\" = set"; then
15197 echo $ECHO_N "(cached) $ECHO_C" >&6
15199 cat >conftest.$ac_ext <<_ACEOF
15200 #line $LINENO "configure"
15203 cat confdefs.h >>conftest.$ac_ext
15204 cat >>conftest.$ac_ext <<_ACEOF
15205 /* end confdefs.h. */
15206 /* System header to define __stub macros and hopefully few prototypes,
15207 which can conflict with char $ac_func (); below.
15208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15209 <limits.h> exists even on freestanding compilers. */
15211 # include <limits.h>
15213 # include <assert.h>
15215 /* Override any gcc2 internal prototype to avoid an error. */
15220 /* We use char because int might match the return type of a gcc2
15221 builtin and then its argument prototype would still apply. */
15223 /* The GNU C library defines this for functions which it implements
15224 to always fail with ENOSYS. Some functions are actually named
15225 something starting with __ and the normal name is an alias. */
15226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15229 char (*f) () = $ac_func;
15238 return f != $ac_func;
15243 rm -f conftest.$ac_objext conftest$ac_exeext
15244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15245 (eval $ac_link) 2>&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); } &&
15249 { ac_try='test -s conftest$ac_exeext'
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; }; then
15255 eval "$as_ac_var=yes"
15257 echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15260 eval "$as_ac_var=no"
15262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15266 if test `eval echo '${'$as_ac_var'}'` = yes; then
15267 cat >>confdefs.h <<_ACEOF
15268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15270 cat >>confdefs.h <<\_ACEOF
15271 #define HAVE_FCHDIR 1
15278 for ac_func in strtoll
15280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15281 echo "$as_me:$LINENO: checking for $ac_func" >&5
15282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15283 if eval "test \"\${$as_ac_var+set}\" = set"; then
15284 echo $ECHO_N "(cached) $ECHO_C" >&6
15286 cat >conftest.$ac_ext <<_ACEOF
15287 #line $LINENO "configure"
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15293 /* System header to define __stub macros and hopefully few prototypes,
15294 which can conflict with char $ac_func (); below.
15295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15296 <limits.h> exists even on freestanding compilers. */
15298 # include <limits.h>
15300 # include <assert.h>
15302 /* Override any gcc2 internal prototype to avoid an error. */
15307 /* We use char because int might match the return type of a gcc2
15308 builtin and then its argument prototype would still apply. */
15310 /* The GNU C library defines this for functions which it implements
15311 to always fail with ENOSYS. Some functions are actually named
15312 something starting with __ and the normal name is an alias. */
15313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15316 char (*f) () = $ac_func;
15325 return f != $ac_func;
15330 rm -f conftest.$ac_objext conftest$ac_exeext
15331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15332 (eval $ac_link) 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } &&
15336 { ac_try='test -s conftest$ac_exeext'
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
15342 eval "$as_ac_var=yes"
15344 echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.$ac_ext >&5
15347 eval "$as_ac_var=no"
15349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15353 if test `eval echo '${'$as_ac_var'}'` = yes; then
15354 cat >>confdefs.h <<_ACEOF
15355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15357 cat >>confdefs.h <<\_ACEOF
15358 #define HAVE_STRTOLL 1
15366 for ac_func in chflags
15368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15369 echo "$as_me:$LINENO: checking for $ac_func" >&5
15370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15371 if eval "test \"\${$as_ac_var+set}\" = set"; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15374 cat >conftest.$ac_ext <<_ACEOF
15375 #line $LINENO "configure"
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15381 /* System header to define __stub macros and hopefully few prototypes,
15382 which can conflict with char $ac_func (); below.
15383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15384 <limits.h> exists even on freestanding compilers. */
15386 # include <limits.h>
15388 # include <assert.h>
15390 /* Override any gcc2 internal prototype to avoid an error. */
15395 /* We use char because int might match the return type of a gcc2
15396 builtin and then its argument prototype would still apply. */
15398 /* The GNU C library defines this for functions which it implements
15399 to always fail with ENOSYS. Some functions are actually named
15400 something starting with __ and the normal name is an alias. */
15401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15404 char (*f) () = $ac_func;
15413 return f != $ac_func;
15418 rm -f conftest.$ac_objext conftest$ac_exeext
15419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15420 (eval $ac_link) 2>&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } &&
15424 { ac_try='test -s conftest$ac_exeext'
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; }; then
15430 eval "$as_ac_var=yes"
15432 echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15435 eval "$as_ac_var=no"
15437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15440 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15441 if test `eval echo '${'$as_ac_var'}'` = yes; then
15442 cat >>confdefs.h <<_ACEOF
15443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15454 for ac_func in snprintf vsnprintf gethostid getdomainname
15456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15457 echo "$as_me:$LINENO: checking for $ac_func" >&5
15458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15459 if eval "test \"\${$as_ac_var+set}\" = set"; then
15460 echo $ECHO_N "(cached) $ECHO_C" >&6
15462 cat >conftest.$ac_ext <<_ACEOF
15463 #line $LINENO "configure"
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15469 /* System header to define __stub macros and hopefully few prototypes,
15470 which can conflict with char $ac_func (); below.
15471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15472 <limits.h> exists even on freestanding compilers. */
15474 # include <limits.h>
15476 # include <assert.h>
15478 /* Override any gcc2 internal prototype to avoid an error. */
15483 /* We use char because int might match the return type of a gcc2
15484 builtin and then its argument prototype would still apply. */
15486 /* The GNU C library defines this for functions which it implements
15487 to always fail with ENOSYS. Some functions are actually named
15488 something starting with __ and the normal name is an alias. */
15489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15492 char (*f) () = $ac_func;
15501 return f != $ac_func;
15506 rm -f conftest.$ac_objext conftest$ac_exeext
15507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15508 (eval $ac_link) 2>&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); } &&
15512 { ac_try='test -s conftest$ac_exeext'
15513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514 (eval $ac_try) 2>&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }; then
15518 eval "$as_ac_var=yes"
15520 echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15523 eval "$as_ac_var=no"
15525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15529 if test `eval echo '${'$as_ac_var'}'` = yes; then
15530 cat >>confdefs.h <<_ACEOF
15531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15542 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15545 echo "$as_me:$LINENO: checking for $ac_func" >&5
15546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15547 if eval "test \"\${$as_ac_var+set}\" = set"; then
15548 echo $ECHO_N "(cached) $ECHO_C" >&6
15550 cat >conftest.$ac_ext <<_ACEOF
15551 #line $LINENO "configure"
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15557 /* System header to define __stub macros and hopefully few prototypes,
15558 which can conflict with char $ac_func (); below.
15559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15560 <limits.h> exists even on freestanding compilers. */
15562 # include <limits.h>
15564 # include <assert.h>
15566 /* Override any gcc2 internal prototype to avoid an error. */
15571 /* We use char because int might match the return type of a gcc2
15572 builtin and then its argument prototype would still apply. */
15574 /* The GNU C library defines this for functions which it implements
15575 to always fail with ENOSYS. Some functions are actually named
15576 something starting with __ and the normal name is an alias. */
15577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15580 char (*f) () = $ac_func;
15589 return f != $ac_func;
15594 rm -f conftest.$ac_objext conftest$ac_exeext
15595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15596 (eval $ac_link) 2>&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } &&
15600 { ac_try='test -s conftest$ac_exeext'
15601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15602 (eval $ac_try) 2>&5
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); }; }; then
15606 eval "$as_ac_var=yes"
15608 echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15611 eval "$as_ac_var=no"
15613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15617 if test `eval echo '${'$as_ac_var'}'` = yes; then
15618 cat >>confdefs.h <<_ACEOF
15619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15626 # If resolver functions are not in libc check for -lnsl or -lresolv.
15627 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15628 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15629 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15630 echo $ECHO_N "(cached) $ECHO_C" >&6
15632 cat >conftest.$ac_ext <<_ACEOF
15633 #line $LINENO "configure"
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h. */
15639 /* System header to define __stub macros and hopefully few prototypes,
15640 which can conflict with char gethostbyname_r (); below.
15641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15642 <limits.h> exists even on freestanding compilers. */
15644 # include <limits.h>
15646 # include <assert.h>
15648 /* Override any gcc2 internal prototype to avoid an error. */
15653 /* We use char because int might match the return type of a gcc2
15654 builtin and then its argument prototype would still apply. */
15655 char gethostbyname_r ();
15656 /* The GNU C library defines this for functions which it implements
15657 to always fail with ENOSYS. Some functions are actually named
15658 something starting with __ and the normal name is an alias. */
15659 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15662 char (*f) () = gethostbyname_r;
15671 return f != gethostbyname_r;
15676 rm -f conftest.$ac_objext conftest$ac_exeext
15677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15678 (eval $ac_link) 2>&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } &&
15682 { ac_try='test -s conftest$ac_exeext'
15683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684 (eval $ac_try) 2>&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; }; then
15688 ac_cv_func_gethostbyname_r=yes
15690 echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15693 ac_cv_func_gethostbyname_r=no
15695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15697 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15698 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15699 if test $ac_cv_func_gethostbyname_r = yes; then
15700 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15701 echo "${ECHO_T}using libc's resolver" >&6
15704 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15705 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15706 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15707 echo $ECHO_N "(cached) $ECHO_C" >&6
15709 ac_check_lib_save_LIBS=$LIBS
15711 cat >conftest.$ac_ext <<_ACEOF
15712 #line $LINENO "configure"
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h. */
15719 /* Override any gcc2 internal prototype to avoid an error. */
15723 /* We use char because int might match the return type of a gcc2
15724 builtin and then its argument prototype would still apply. */
15725 char gethostbyname_r ();
15729 gethostbyname_r ();
15734 rm -f conftest.$ac_objext conftest$ac_exeext
15735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15736 (eval $ac_link) 2>&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } &&
15740 { ac_try='test -s conftest$ac_exeext'
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; }; then
15746 ac_cv_lib_nsl_gethostbyname_r=yes
15748 echo "$as_me: failed program was:" >&5
15749 sed 's/^/| /' conftest.$ac_ext >&5
15751 ac_cv_lib_nsl_gethostbyname_r=no
15753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15754 LIBS=$ac_check_lib_save_LIBS
15756 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15757 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15758 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15759 cat >>confdefs.h <<_ACEOF
15760 #define HAVE_LIBNSL 1
15768 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15769 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15770 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15771 echo $ECHO_N "(cached) $ECHO_C" >&6
15773 ac_check_lib_save_LIBS=$LIBS
15774 LIBS="-lresolv $LIBS"
15775 cat >conftest.$ac_ext <<_ACEOF
15776 #line $LINENO "configure"
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15783 /* Override any gcc2 internal prototype to avoid an error. */
15787 /* We use char because int might match the return type of a gcc2
15788 builtin and then its argument prototype would still apply. */
15789 char gethostbyname_r ();
15793 gethostbyname_r ();
15798 rm -f conftest.$ac_objext conftest$ac_exeext
15799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15800 (eval $ac_link) 2>&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } &&
15804 { ac_try='test -s conftest$ac_exeext'
15805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806 (eval $ac_try) 2>&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); }; }; then
15810 ac_cv_lib_resolv_gethostbyname_r=yes
15812 echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15815 ac_cv_lib_resolv_gethostbyname_r=no
15817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15818 LIBS=$ac_check_lib_save_LIBS
15820 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15821 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15822 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15823 cat >>confdefs.h <<_ACEOF
15824 #define HAVE_LIBRESOLV 1
15827 LIBS="-lresolv $LIBS"
15835 # Find where sockets are (especially for Solaris)
15836 echo "$as_me:$LINENO: checking for socket" >&5
15837 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15838 if test "${ac_cv_func_socket+set}" = set; then
15839 echo $ECHO_N "(cached) $ECHO_C" >&6
15841 cat >conftest.$ac_ext <<_ACEOF
15842 #line $LINENO "configure"
15845 cat confdefs.h >>conftest.$ac_ext
15846 cat >>conftest.$ac_ext <<_ACEOF
15847 /* end confdefs.h. */
15848 /* System header to define __stub macros and hopefully few prototypes,
15849 which can conflict with char socket (); below.
15850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15851 <limits.h> exists even on freestanding compilers. */
15853 # include <limits.h>
15855 # include <assert.h>
15857 /* Override any gcc2 internal prototype to avoid an error. */
15862 /* We use char because int might match the return type of a gcc2
15863 builtin and then its argument prototype would still apply. */
15865 /* The GNU C library defines this for functions which it implements
15866 to always fail with ENOSYS. Some functions are actually named
15867 something starting with __ and the normal name is an alias. */
15868 #if defined (__stub_socket) || defined (__stub___socket)
15871 char (*f) () = socket;
15880 return f != socket;
15885 rm -f conftest.$ac_objext conftest$ac_exeext
15886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15887 (eval $ac_link) 2>&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); } &&
15891 { ac_try='test -s conftest$ac_exeext'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; }; then
15897 ac_cv_func_socket=yes
15899 echo "$as_me: failed program was:" >&5
15900 sed 's/^/| /' conftest.$ac_ext >&5
15902 ac_cv_func_socket=no
15904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15906 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15907 echo "${ECHO_T}$ac_cv_func_socket" >&6
15908 if test $ac_cv_func_socket = yes; then
15909 echo "$as_me:$LINENO: result: using libc's socket" >&5
15910 echo "${ECHO_T}using libc's socket" >&6
15913 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15914 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15915 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15916 echo $ECHO_N "(cached) $ECHO_C" >&6
15918 ac_check_lib_save_LIBS=$LIBS
15919 LIBS="-lxnet $LIBS"
15920 cat >conftest.$ac_ext <<_ACEOF
15921 #line $LINENO "configure"
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h. */
15928 /* Override any gcc2 internal prototype to avoid an error. */
15932 /* We use char because int might match the return type of a gcc2
15933 builtin and then its argument prototype would still apply. */
15943 rm -f conftest.$ac_objext conftest$ac_exeext
15944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15945 (eval $ac_link) 2>&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } &&
15949 { ac_try='test -s conftest$ac_exeext'
15950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951 (eval $ac_try) 2>&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }; }; then
15955 ac_cv_lib_xnet_socket=yes
15957 echo "$as_me: failed program was:" >&5
15958 sed 's/^/| /' conftest.$ac_ext >&5
15960 ac_cv_lib_xnet_socket=no
15962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15963 LIBS=$ac_check_lib_save_LIBS
15965 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15966 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15967 if test $ac_cv_lib_xnet_socket = yes; then
15968 cat >>confdefs.h <<_ACEOF
15969 #define HAVE_LIBXNET 1
15972 LIBS="-lxnet $LIBS"
15977 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15978 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15979 if test "${ac_cv_lib_socket_socket+set}" = set; then
15980 echo $ECHO_N "(cached) $ECHO_C" >&6
15982 ac_check_lib_save_LIBS=$LIBS
15983 LIBS="-lsocket $LIBS"
15984 cat >conftest.$ac_ext <<_ACEOF
15985 #line $LINENO "configure"
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h. */
15992 /* Override any gcc2 internal prototype to avoid an error. */
15996 /* We use char because int might match the return type of a gcc2
15997 builtin and then its argument prototype would still apply. */
16007 rm -f conftest.$ac_objext conftest$ac_exeext
16008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16009 (eval $ac_link) 2>&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); } &&
16013 { ac_try='test -s conftest$ac_exeext'
16014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; }; then
16019 ac_cv_lib_socket_socket=yes
16021 echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16024 ac_cv_lib_socket_socket=no
16026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16027 LIBS=$ac_check_lib_save_LIBS
16029 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16030 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16031 if test $ac_cv_lib_socket_socket = yes; then
16032 cat >>confdefs.h <<_ACEOF
16033 #define HAVE_LIBSOCKET 1
16036 LIBS="-lsocket $LIBS"
16041 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16042 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16043 if test "${ac_cv_lib_inet_socket+set}" = set; then
16044 echo $ECHO_N "(cached) $ECHO_C" >&6
16046 ac_check_lib_save_LIBS=$LIBS
16047 LIBS="-linet $LIBS"
16048 cat >conftest.$ac_ext <<_ACEOF
16049 #line $LINENO "configure"
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h. */
16056 /* Override any gcc2 internal prototype to avoid an error. */
16060 /* We use char because int might match the return type of a gcc2
16061 builtin and then its argument prototype would still apply. */
16071 rm -f conftest.$ac_objext conftest$ac_exeext
16072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16073 (eval $ac_link) 2>&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); } &&
16077 { ac_try='test -s conftest$ac_exeext'
16078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079 (eval $ac_try) 2>&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; }; then
16083 ac_cv_lib_inet_socket=yes
16085 echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16088 ac_cv_lib_inet_socket=no
16090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16091 LIBS=$ac_check_lib_save_LIBS
16093 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16094 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16095 if test $ac_cv_lib_inet_socket = yes; then
16096 cat >>confdefs.h <<_ACEOF
16097 #define HAVE_LIBINET 1
16100 LIBS="-linet $LIBS"
16108 for ac_func in inet_pton
16110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16111 echo "$as_me:$LINENO: checking for $ac_func" >&5
16112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16113 if eval "test \"\${$as_ac_var+set}\" = set"; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16116 cat >conftest.$ac_ext <<_ACEOF
16117 #line $LINENO "configure"
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h. */
16123 /* System header to define __stub macros and hopefully few prototypes,
16124 which can conflict with char $ac_func (); below.
16125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16126 <limits.h> exists even on freestanding compilers. */
16128 # include <limits.h>
16130 # include <assert.h>
16132 /* Override any gcc2 internal prototype to avoid an error. */
16137 /* We use char because int might match the return type of a gcc2
16138 builtin and then its argument prototype would still apply. */
16140 /* The GNU C library defines this for functions which it implements
16141 to always fail with ENOSYS. Some functions are actually named
16142 something starting with __ and the normal name is an alias. */
16143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16146 char (*f) () = $ac_func;
16155 return f != $ac_func;
16160 rm -f conftest.$ac_objext conftest$ac_exeext
16161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16162 (eval $ac_link) 2>&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); } &&
16166 { ac_try='test -s conftest$ac_exeext'
16167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16168 (eval $ac_try) 2>&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); }; }; then
16172 eval "$as_ac_var=yes"
16174 echo "$as_me: failed program was:" >&5
16175 sed 's/^/| /' conftest.$ac_ext >&5
16177 eval "$as_ac_var=no"
16179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16183 if test `eval echo '${'$as_ac_var'}'` = yes; then
16184 cat >>confdefs.h <<_ACEOF
16185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16187 cat >>confdefs.h <<\_ACEOF
16188 #define HAVE_INET_PTON 1
16196 for ac_func in strftime
16198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16199 echo "$as_me:$LINENO: checking for $ac_func" >&5
16200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16201 if eval "test \"\${$as_ac_var+set}\" = set"; then
16202 echo $ECHO_N "(cached) $ECHO_C" >&6
16204 cat >conftest.$ac_ext <<_ACEOF
16205 #line $LINENO "configure"
16208 cat confdefs.h >>conftest.$ac_ext
16209 cat >>conftest.$ac_ext <<_ACEOF
16210 /* end confdefs.h. */
16211 /* System header to define __stub macros and hopefully few prototypes,
16212 which can conflict with char $ac_func (); below.
16213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16214 <limits.h> exists even on freestanding compilers. */
16216 # include <limits.h>
16218 # include <assert.h>
16220 /* Override any gcc2 internal prototype to avoid an error. */
16225 /* We use char because int might match the return type of a gcc2
16226 builtin and then its argument prototype would still apply. */
16228 /* The GNU C library defines this for functions which it implements
16229 to always fail with ENOSYS. Some functions are actually named
16230 something starting with __ and the normal name is an alias. */
16231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16234 char (*f) () = $ac_func;
16243 return f != $ac_func;
16248 rm -f conftest.$ac_objext conftest$ac_exeext
16249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16250 (eval $ac_link) 2>&5
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); } &&
16254 { ac_try='test -s conftest$ac_exeext'
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; }; then
16260 eval "$as_ac_var=yes"
16262 echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16265 eval "$as_ac_var=no"
16267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16271 if test `eval echo '${'$as_ac_var'}'` = yes; then
16272 cat >>confdefs.h <<_ACEOF
16273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16277 # strftime is in -lintl on SCO UNIX.
16278 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16279 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16280 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16281 echo $ECHO_N "(cached) $ECHO_C" >&6
16283 ac_check_lib_save_LIBS=$LIBS
16284 LIBS="-lintl $LIBS"
16285 cat >conftest.$ac_ext <<_ACEOF
16286 #line $LINENO "configure"
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h. */
16293 /* Override any gcc2 internal prototype to avoid an error. */
16297 /* We use char because int might match the return type of a gcc2
16298 builtin and then its argument prototype would still apply. */
16308 rm -f conftest.$ac_objext conftest$ac_exeext
16309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16310 (eval $ac_link) 2>&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } &&
16314 { ac_try='test -s conftest$ac_exeext'
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; }; then
16320 ac_cv_lib_intl_strftime=yes
16322 echo "$as_me: failed program was:" >&5
16323 sed 's/^/| /' conftest.$ac_ext >&5
16325 ac_cv_lib_intl_strftime=no
16327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16328 LIBS=$ac_check_lib_save_LIBS
16330 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16331 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16332 if test $ac_cv_lib_intl_strftime = yes; then
16333 cat >>confdefs.h <<\_ACEOF
16334 #define HAVE_STRFTIME 1
16337 LIBS="-lintl $LIBS"
16344 for ac_func in vprintf
16346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16347 echo "$as_me:$LINENO: checking for $ac_func" >&5
16348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16349 if eval "test \"\${$as_ac_var+set}\" = set"; then
16350 echo $ECHO_N "(cached) $ECHO_C" >&6
16352 cat >conftest.$ac_ext <<_ACEOF
16353 #line $LINENO "configure"
16356 cat confdefs.h >>conftest.$ac_ext
16357 cat >>conftest.$ac_ext <<_ACEOF
16358 /* end confdefs.h. */
16359 /* System header to define __stub macros and hopefully few prototypes,
16360 which can conflict with char $ac_func (); below.
16361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16362 <limits.h> exists even on freestanding compilers. */
16364 # include <limits.h>
16366 # include <assert.h>
16368 /* Override any gcc2 internal prototype to avoid an error. */
16373 /* We use char because int might match the return type of a gcc2
16374 builtin and then its argument prototype would still apply. */
16376 /* The GNU C library defines this for functions which it implements
16377 to always fail with ENOSYS. Some functions are actually named
16378 something starting with __ and the normal name is an alias. */
16379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16382 char (*f) () = $ac_func;
16391 return f != $ac_func;
16396 rm -f conftest.$ac_objext conftest$ac_exeext
16397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16398 (eval $ac_link) 2>&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } &&
16402 { ac_try='test -s conftest$ac_exeext'
16403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404 (eval $ac_try) 2>&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); }; }; then
16408 eval "$as_ac_var=yes"
16410 echo "$as_me: failed program was:" >&5
16411 sed 's/^/| /' conftest.$ac_ext >&5
16413 eval "$as_ac_var=no"
16415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16419 if test `eval echo '${'$as_ac_var'}'` = yes; then
16420 cat >>confdefs.h <<_ACEOF
16421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16424 echo "$as_me:$LINENO: checking for _doprnt" >&5
16425 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16426 if test "${ac_cv_func__doprnt+set}" = set; then
16427 echo $ECHO_N "(cached) $ECHO_C" >&6
16429 cat >conftest.$ac_ext <<_ACEOF
16430 #line $LINENO "configure"
16433 cat confdefs.h >>conftest.$ac_ext
16434 cat >>conftest.$ac_ext <<_ACEOF
16435 /* end confdefs.h. */
16436 /* System header to define __stub macros and hopefully few prototypes,
16437 which can conflict with char _doprnt (); below.
16438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16439 <limits.h> exists even on freestanding compilers. */
16441 # include <limits.h>
16443 # include <assert.h>
16445 /* Override any gcc2 internal prototype to avoid an error. */
16450 /* We use char because int might match the return type of a gcc2
16451 builtin and then its argument prototype would still apply. */
16453 /* The GNU C library defines this for functions which it implements
16454 to always fail with ENOSYS. Some functions are actually named
16455 something starting with __ and the normal name is an alias. */
16456 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16459 char (*f) () = _doprnt;
16468 return f != _doprnt;
16473 rm -f conftest.$ac_objext conftest$ac_exeext
16474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16475 (eval $ac_link) 2>&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } &&
16479 { ac_try='test -s conftest$ac_exeext'
16480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16481 (eval $ac_try) 2>&5
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); }; }; then
16485 ac_cv_func__doprnt=yes
16487 echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.$ac_ext >&5
16490 ac_cv_func__doprnt=no
16492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16494 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16495 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16496 if test $ac_cv_func__doprnt = yes; then
16498 cat >>confdefs.h <<\_ACEOF
16499 #define HAVE_DOPRNT 1
16508 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16509 # for constant arguments. Useless!
16510 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16511 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16512 if test "${ac_cv_working_alloca_h+set}" = set; then
16513 echo $ECHO_N "(cached) $ECHO_C" >&6
16515 cat >conftest.$ac_ext <<_ACEOF
16516 #line $LINENO "configure"
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h. */
16522 #include <alloca.h>
16526 char *p = (char *) alloca (2 * sizeof (int));
16531 rm -f conftest.$ac_objext conftest$ac_exeext
16532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16533 (eval $ac_link) 2>&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } &&
16537 { ac_try='test -s conftest$ac_exeext'
16538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539 (eval $ac_try) 2>&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; }; then
16543 ac_cv_working_alloca_h=yes
16545 echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16548 ac_cv_working_alloca_h=no
16550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16552 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16553 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16554 if test $ac_cv_working_alloca_h = yes; then
16556 cat >>confdefs.h <<\_ACEOF
16557 #define HAVE_ALLOCA_H 1
16562 echo "$as_me:$LINENO: checking for alloca" >&5
16563 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16564 if test "${ac_cv_func_alloca_works+set}" = set; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16567 cat >conftest.$ac_ext <<_ACEOF
16568 #line $LINENO "configure"
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h. */
16575 # define alloca __builtin_alloca
16578 # include <malloc.h>
16579 # define alloca _alloca
16582 # include <alloca.h>
16587 # ifndef alloca /* predefined by HP cc +Olibcalls */
16598 char *p = (char *) alloca (1);
16603 rm -f conftest.$ac_objext conftest$ac_exeext
16604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16605 (eval $ac_link) 2>&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); } &&
16609 { ac_try='test -s conftest$ac_exeext'
16610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611 (eval $ac_try) 2>&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; }; then
16615 ac_cv_func_alloca_works=yes
16617 echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16620 ac_cv_func_alloca_works=no
16622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16624 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16625 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16627 if test $ac_cv_func_alloca_works = yes; then
16629 cat >>confdefs.h <<\_ACEOF
16630 #define HAVE_ALLOCA 1
16634 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16635 # that cause trouble. Some versions do not even contain alloca or
16636 # contain a buggy version. If you still want to use their alloca,
16637 # use ar to extract alloca.o from them instead of compiling alloca.c.
16639 ALLOCA=alloca.$ac_objext
16641 cat >>confdefs.h <<\_ACEOF
16646 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16647 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16648 if test "${ac_cv_os_cray+set}" = set; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16651 cat >conftest.$ac_ext <<_ACEOF
16652 #line $LINENO "configure"
16655 cat confdefs.h >>conftest.$ac_ext
16656 cat >>conftest.$ac_ext <<_ACEOF
16657 /* end confdefs.h. */
16658 #if defined(CRAY) && ! defined(CRAY2)
16665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16666 $EGREP "webecray" >/dev/null 2>&1; then
16674 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16675 echo "${ECHO_T}$ac_cv_os_cray" >&6
16676 if test $ac_cv_os_cray = yes; then
16677 for ac_func in _getb67 GETB67 getb67; do
16678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16679 echo "$as_me:$LINENO: checking for $ac_func" >&5
16680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16681 if eval "test \"\${$as_ac_var+set}\" = set"; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
16684 cat >conftest.$ac_ext <<_ACEOF
16685 #line $LINENO "configure"
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h. */
16691 /* System header to define __stub macros and hopefully few prototypes,
16692 which can conflict with char $ac_func (); below.
16693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16694 <limits.h> exists even on freestanding compilers. */
16696 # include <limits.h>
16698 # include <assert.h>
16700 /* Override any gcc2 internal prototype to avoid an error. */
16705 /* We use char because int might match the return type of a gcc2
16706 builtin and then its argument prototype would still apply. */
16708 /* The GNU C library defines this for functions which it implements
16709 to always fail with ENOSYS. Some functions are actually named
16710 something starting with __ and the normal name is an alias. */
16711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16714 char (*f) () = $ac_func;
16723 return f != $ac_func;
16728 rm -f conftest.$ac_objext conftest$ac_exeext
16729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16730 (eval $ac_link) 2>&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } &&
16734 { ac_try='test -s conftest$ac_exeext'
16735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 (eval $ac_try) 2>&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; }; then
16740 eval "$as_ac_var=yes"
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16745 eval "$as_ac_var=no"
16747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16751 if test `eval echo '${'$as_ac_var'}'` = yes; then
16753 cat >>confdefs.h <<_ACEOF
16754 #define CRAY_STACKSEG_END $ac_func
16763 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16764 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16765 if test "${ac_cv_c_stack_direction+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16768 if test "$cross_compiling" = yes; then
16769 ac_cv_c_stack_direction=0
16771 cat >conftest.$ac_ext <<_ACEOF
16772 #line $LINENO "configure"
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h. */
16779 find_stack_direction ()
16781 static char *addr = 0;
16786 return find_stack_direction ();
16789 return (&dummy > addr) ? 1 : -1;
16795 exit (find_stack_direction () < 0);
16798 rm -f conftest$ac_exeext
16799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16800 (eval $ac_link) 2>&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; }; then
16809 ac_cv_c_stack_direction=1
16811 echo "$as_me: program exited with status $ac_status" >&5
16812 echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16815 ( exit $ac_status )
16816 ac_cv_c_stack_direction=-1
16818 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16821 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16822 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16824 cat >>confdefs.h <<_ACEOF
16825 #define STACK_DIRECTION $ac_cv_c_stack_direction
16831 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16832 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16833 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16834 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16835 echo $ECHO_N "(cached) $ECHO_C" >&6
16837 ac_check_lib_save_LIBS=$LIBS
16839 cat >conftest.$ac_ext <<_ACEOF
16840 #line $LINENO "configure"
16843 cat confdefs.h >>conftest.$ac_ext
16844 cat >>conftest.$ac_ext <<_ACEOF
16845 /* end confdefs.h. */
16847 /* Override any gcc2 internal prototype to avoid an error. */
16851 /* We use char because int might match the return type of a gcc2
16852 builtin and then its argument prototype would still apply. */
16862 rm -f conftest.$ac_objext conftest$ac_exeext
16863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16864 (eval $ac_link) 2>&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } &&
16868 { ac_try='test -s conftest$ac_exeext'
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; }; then
16874 ac_cv_lib_sun_getmntent=yes
16876 echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16879 ac_cv_lib_sun_getmntent=no
16881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16882 LIBS=$ac_check_lib_save_LIBS
16884 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16885 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16886 if test $ac_cv_lib_sun_getmntent = yes; then
16889 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16890 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16891 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16892 echo $ECHO_N "(cached) $ECHO_C" >&6
16894 ac_check_lib_save_LIBS=$LIBS
16896 cat >conftest.$ac_ext <<_ACEOF
16897 #line $LINENO "configure"
16900 cat confdefs.h >>conftest.$ac_ext
16901 cat >>conftest.$ac_ext <<_ACEOF
16902 /* end confdefs.h. */
16904 /* Override any gcc2 internal prototype to avoid an error. */
16908 /* We use char because int might match the return type of a gcc2
16909 builtin and then its argument prototype would still apply. */
16919 rm -f conftest.$ac_objext conftest$ac_exeext
16920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16921 (eval $ac_link) 2>&5
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); } &&
16925 { ac_try='test -s conftest$ac_exeext'
16926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927 (eval $ac_try) 2>&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 ac_cv_lib_seq_getmntent=yes
16933 echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16936 ac_cv_lib_seq_getmntent=no
16938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16939 LIBS=$ac_check_lib_save_LIBS
16941 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16942 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16943 if test $ac_cv_lib_seq_getmntent = yes; then
16946 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16947 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16948 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16949 echo $ECHO_N "(cached) $ECHO_C" >&6
16951 ac_check_lib_save_LIBS=$LIBS
16953 cat >conftest.$ac_ext <<_ACEOF
16954 #line $LINENO "configure"
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16961 /* Override any gcc2 internal prototype to avoid an error. */
16965 /* We use char because int might match the return type of a gcc2
16966 builtin and then its argument prototype would still apply. */
16976 rm -f conftest.$ac_objext conftest$ac_exeext
16977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16978 (eval $ac_link) 2>&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } &&
16982 { ac_try='test -s conftest$ac_exeext'
16983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16984 (eval $ac_try) 2>&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); }; }; then
16988 ac_cv_lib_gen_getmntent=yes
16990 echo "$as_me: failed program was:" >&5
16991 sed 's/^/| /' conftest.$ac_ext >&5
16993 ac_cv_lib_gen_getmntent=no
16995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16996 LIBS=$ac_check_lib_save_LIBS
16998 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16999 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17000 if test $ac_cv_lib_gen_getmntent = yes; then
17009 for ac_func in getmntent
17011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17012 echo "$as_me:$LINENO: checking for $ac_func" >&5
17013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17014 if eval "test \"\${$as_ac_var+set}\" = set"; then
17015 echo $ECHO_N "(cached) $ECHO_C" >&6
17017 cat >conftest.$ac_ext <<_ACEOF
17018 #line $LINENO "configure"
17021 cat confdefs.h >>conftest.$ac_ext
17022 cat >>conftest.$ac_ext <<_ACEOF
17023 /* end confdefs.h. */
17024 /* System header to define __stub macros and hopefully few prototypes,
17025 which can conflict with char $ac_func (); below.
17026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17027 <limits.h> exists even on freestanding compilers. */
17029 # include <limits.h>
17031 # include <assert.h>
17033 /* Override any gcc2 internal prototype to avoid an error. */
17038 /* We use char because int might match the return type of a gcc2
17039 builtin and then its argument prototype would still apply. */
17041 /* The GNU C library defines this for functions which it implements
17042 to always fail with ENOSYS. Some functions are actually named
17043 something starting with __ and the normal name is an alias. */
17044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17047 char (*f) () = $ac_func;
17056 return f != $ac_func;
17061 rm -f conftest.$ac_objext conftest$ac_exeext
17062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17063 (eval $ac_link) 2>&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); } &&
17067 { ac_try='test -s conftest$ac_exeext'
17068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069 (eval $ac_try) 2>&5
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; }; then
17073 eval "$as_ac_var=yes"
17075 echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17078 eval "$as_ac_var=no"
17080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17083 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17084 if test `eval echo '${'$as_ac_var'}'` = yes; then
17085 cat >>confdefs.h <<_ACEOF
17086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17093 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17094 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17095 if test "${ac_cv_func_closedir_void+set}" = set; then
17096 echo $ECHO_N "(cached) $ECHO_C" >&6
17098 if test "$cross_compiling" = yes; then
17099 ac_cv_func_closedir_void=yes
17101 cat >conftest.$ac_ext <<_ACEOF
17102 #line $LINENO "configure"
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h. */
17108 $ac_includes_default
17109 #include <$ac_header_dirent>
17110 #ifndef __cplusplus
17117 exit (closedir (opendir (".")) != 0);
17122 rm -f conftest$ac_exeext
17123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17124 (eval $ac_link) 2>&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129 (eval $ac_try) 2>&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); }; }; then
17133 ac_cv_func_closedir_void=no
17135 echo "$as_me: program exited with status $ac_status" >&5
17136 echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17139 ( exit $ac_status )
17140 ac_cv_func_closedir_void=yes
17142 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17145 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17146 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17147 if test $ac_cv_func_closedir_void = yes; then
17149 cat >>confdefs.h <<\_ACEOF
17150 #define CLOSEDIR_VOID 1
17155 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17156 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17157 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17158 echo $ECHO_N "(cached) $ECHO_C" >&6
17160 if test "$cross_compiling" = yes; then
17161 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17162 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17163 { (exit 1); exit 1; }; }
17165 cat >conftest.$ac_ext <<_ACEOF
17166 #line $LINENO "configure"
17169 cat confdefs.h >>conftest.$ac_ext
17170 cat >>conftest.$ac_ext <<_ACEOF
17171 /* end confdefs.h. */
17173 # include <unistd.h>
17179 /* If this system has a BSD-style setpgrp which takes arguments,
17180 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17181 exit successfully. */
17182 exit (setpgrp (1,1) == -1 ? 0 : 1);
17187 rm -f conftest$ac_exeext
17188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17189 (eval $ac_link) 2>&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; }; then
17198 ac_cv_func_setpgrp_void=no
17200 echo "$as_me: program exited with status $ac_status" >&5
17201 echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17204 ( exit $ac_status )
17205 ac_cv_func_setpgrp_void=yes
17207 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17210 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17211 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17212 if test $ac_cv_func_setpgrp_void = yes; then
17214 cat >>confdefs.h <<\_ACEOF
17215 #define SETPGRP_VOID 1
17219 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17220 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17221 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17222 echo $ECHO_N "(cached) $ECHO_C" >&6
17224 # Some versions of Solaris, SCO, and the GNU C Library
17225 # have a broken or incompatible fnmatch.
17226 # So we run a test program. If we are cross-compiling, take no chance.
17227 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17228 if test "$cross_compiling" = yes; then
17229 ac_cv_func_fnmatch_works=cross
17231 cat >conftest.$ac_ext <<_ACEOF
17232 #line $LINENO "configure"
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h. */
17238 #include <fnmatch.h>
17239 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17240 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17246 (!(y ("a*", "abc", 0)
17247 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17248 && y ("a\\\\bc", "abc", 0)
17249 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17250 && y ("*x", ".x", 0)
17251 && n ("*x", ".x", FNM_PERIOD)
17257 rm -f conftest$ac_exeext
17258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17259 (eval $ac_link) 2>&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; }; then
17268 ac_cv_func_fnmatch_works=yes
17270 echo "$as_me: program exited with status $ac_status" >&5
17271 echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17274 ( exit $ac_status )
17275 ac_cv_func_fnmatch_works=no
17277 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17280 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17281 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17282 if test $ac_cv_func_fnmatch_works = yes; then
17284 cat >>confdefs.h <<\_ACEOF
17285 #define HAVE_FNMATCH 1
17294 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17295 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17296 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17297 echo $ECHO_N "(cached) $ECHO_C" >&6
17299 ac_check_lib_save_LIBS=$LIBS
17300 LIBS="-lxpg4 $LIBS"
17301 cat >conftest.$ac_ext <<_ACEOF
17302 #line $LINENO "configure"
17305 cat confdefs.h >>conftest.$ac_ext
17306 cat >>conftest.$ac_ext <<_ACEOF
17307 /* end confdefs.h. */
17309 /* Override any gcc2 internal prototype to avoid an error. */
17313 /* We use char because int might match the return type of a gcc2
17314 builtin and then its argument prototype would still apply. */
17324 rm -f conftest.$ac_objext conftest$ac_exeext
17325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17326 (eval $ac_link) 2>&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } &&
17330 { ac_try='test -s conftest$ac_exeext'
17331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; }; then
17336 ac_cv_lib_xpg4_setlocale=yes
17338 echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17341 ac_cv_lib_xpg4_setlocale=no
17343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17344 LIBS=$ac_check_lib_save_LIBS
17346 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17347 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17348 if test $ac_cv_lib_xpg4_setlocale = yes; then
17349 LIBS="$LIBS -lxpg4"
17355 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17356 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17357 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17358 echo $ECHO_N "(cached) $ECHO_C" >&6
17360 ac_check_lib_save_LIBS=$LIBS
17362 cat >conftest.$ac_ext <<_ACEOF
17363 #line $LINENO "configure"
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h. */
17370 /* Override any gcc2 internal prototype to avoid an error. */
17374 /* We use char because int might match the return type of a gcc2
17375 builtin and then its argument prototype would still apply. */
17385 rm -f conftest.$ac_objext conftest$ac_exeext
17386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17387 (eval $ac_link) 2>&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } &&
17391 { ac_try='test -s conftest$ac_exeext'
17392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393 (eval $ac_try) 2>&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; }; then
17397 ac_cv_lib_sun_getpwnam=yes
17399 echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17402 ac_cv_lib_sun_getpwnam=no
17404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17405 LIBS=$ac_check_lib_save_LIBS
17407 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17408 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17409 if test $ac_cv_lib_sun_getpwnam = yes; then
17410 cat >>confdefs.h <<_ACEOF
17411 #define HAVE_LIBSUN 1
17420 for ac_header in zlib.h
17422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17424 echo "$as_me:$LINENO: checking for $ac_header" >&5
17425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17427 echo $ECHO_N "(cached) $ECHO_C" >&6
17429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17432 # Is the header compilable?
17433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17435 cat >conftest.$ac_ext <<_ACEOF
17436 #line $LINENO "configure"
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h. */
17442 $ac_includes_default
17443 #include <$ac_header>
17445 rm -f conftest.$ac_objext
17446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17447 (eval $ac_compile) 2>&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } &&
17451 { ac_try='test -s conftest.$ac_objext'
17452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; }; then
17457 ac_header_compiler=yes
17459 echo "$as_me: failed program was:" >&5
17460 sed 's/^/| /' conftest.$ac_ext >&5
17462 ac_header_compiler=no
17464 rm -f conftest.$ac_objext conftest.$ac_ext
17465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17466 echo "${ECHO_T}$ac_header_compiler" >&6
17468 # Is the header present?
17469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17471 cat >conftest.$ac_ext <<_ACEOF
17472 #line $LINENO "configure"
17475 cat confdefs.h >>conftest.$ac_ext
17476 cat >>conftest.$ac_ext <<_ACEOF
17477 /* end confdefs.h. */
17478 #include <$ac_header>
17480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17483 grep -v '^ *+' conftest.er1 >conftest.err
17485 cat conftest.err >&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } >/dev/null; then
17488 if test -s conftest.err; then
17489 ac_cpp_err=$ac_c_preproc_warn_flag
17496 if test -z "$ac_cpp_err"; then
17497 ac_header_preproc=yes
17499 echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17502 ac_header_preproc=no
17504 rm -f conftest.err conftest.$ac_ext
17505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17506 echo "${ECHO_T}$ac_header_preproc" >&6
17508 # So? What about this header?
17509 case $ac_header_compiler:$ac_header_preproc in
17511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17517 ## ------------------------------------ ##
17518 ## Report this to bug-autoconf@gnu.org. ##
17519 ## ------------------------------------ ##
17522 sed "s/^/$as_me: WARNING: /" >&2
17525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17533 ## ------------------------------------ ##
17534 ## Report this to bug-autoconf@gnu.org. ##
17535 ## ------------------------------------ ##
17538 sed "s/^/$as_me: WARNING: /" >&2
17541 echo "$as_me:$LINENO: checking for $ac_header" >&5
17542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17546 eval "$as_ac_Header=$ac_header_preproc"
17548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17553 cat >>confdefs.h <<_ACEOF
17554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17561 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17562 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17563 if test "${ac_cv_lib_z_deflate+set}" = set; then
17564 echo $ECHO_N "(cached) $ECHO_C" >&6
17566 ac_check_lib_save_LIBS=$LIBS
17568 cat >conftest.$ac_ext <<_ACEOF
17569 #line $LINENO "configure"
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h. */
17576 /* Override any gcc2 internal prototype to avoid an error. */
17580 /* We use char because int might match the return type of a gcc2
17581 builtin and then its argument prototype would still apply. */
17591 rm -f conftest.$ac_objext conftest$ac_exeext
17592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17593 (eval $ac_link) 2>&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); } &&
17597 { ac_try='test -s conftest$ac_exeext'
17598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17599 (eval $ac_try) 2>&5
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; }; then
17603 ac_cv_lib_z_deflate=yes
17605 echo "$as_me: failed program was:" >&5
17606 sed 's/^/| /' conftest.$ac_ext >&5
17608 ac_cv_lib_z_deflate=no
17610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17611 LIBS=$ac_check_lib_save_LIBS
17613 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17614 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17615 if test $ac_cv_lib_z_deflate = yes; then
17620 if test x$FDLIBS = x-lz; then
17621 cat >>confdefs.h <<\_ACEOF
17622 #define HAVE_LIBZ 1
17628 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17629 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17630 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17631 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17632 echo $ECHO_N "(cached) $ECHO_C" >&6
17634 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17635 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17637 # Is the header compilable?
17638 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
17639 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
17640 cat >conftest.$ac_ext <<_ACEOF
17641 #line $LINENO "configure"
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h. */
17647 $ac_includes_default
17648 #include <sys/acl.h>
17650 rm -f conftest.$ac_objext
17651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17652 (eval $ac_compile) 2>&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } &&
17656 { ac_try='test -s conftest.$ac_objext'
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; }; then
17662 ac_header_compiler=yes
17664 echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17667 ac_header_compiler=no
17669 rm -f conftest.$ac_objext conftest.$ac_ext
17670 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17671 echo "${ECHO_T}$ac_header_compiler" >&6
17673 # Is the header present?
17674 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
17675 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
17676 cat >conftest.$ac_ext <<_ACEOF
17677 #line $LINENO "configure"
17680 cat confdefs.h >>conftest.$ac_ext
17681 cat >>conftest.$ac_ext <<_ACEOF
17682 /* end confdefs.h. */
17683 #include <sys/acl.h>
17685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17688 grep -v '^ *+' conftest.er1 >conftest.err
17690 cat conftest.err >&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); } >/dev/null; then
17693 if test -s conftest.err; then
17694 ac_cpp_err=$ac_c_preproc_warn_flag
17701 if test -z "$ac_cpp_err"; then
17702 ac_header_preproc=yes
17704 echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17707 ac_header_preproc=no
17709 rm -f conftest.err conftest.$ac_ext
17710 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17711 echo "${ECHO_T}$ac_header_preproc" >&6
17713 # So? What about this header?
17714 case $ac_header_compiler:$ac_header_preproc in
17716 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17717 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17718 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17719 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17722 ## ------------------------------------ ##
17723 ## Report this to bug-autoconf@gnu.org. ##
17724 ## ------------------------------------ ##
17727 sed "s/^/$as_me: WARNING: /" >&2
17730 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
17731 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
17732 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
17733 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
17734 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17735 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17738 ## ------------------------------------ ##
17739 ## Report this to bug-autoconf@gnu.org. ##
17740 ## ------------------------------------ ##
17743 sed "s/^/$as_me: WARNING: /" >&2
17746 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17747 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17748 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17749 echo $ECHO_N "(cached) $ECHO_C" >&6
17751 ac_cv_header_sys_acl_h=$ac_header_preproc
17753 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17754 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17759 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
17760 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
17761 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17764 ac_check_lib_save_LIBS=$LIBS
17766 cat >conftest.$ac_ext <<_ACEOF
17767 #line $LINENO "configure"
17770 cat confdefs.h >>conftest.$ac_ext
17771 cat >>conftest.$ac_ext <<_ACEOF
17772 /* end confdefs.h. */
17774 /* Override any gcc2 internal prototype to avoid an error. */
17778 /* We use char because int might match the return type of a gcc2
17779 builtin and then its argument prototype would still apply. */
17780 char acl_get_file ();
17789 rm -f conftest.$ac_objext conftest$ac_exeext
17790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17791 (eval $ac_link) 2>&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } &&
17795 { ac_try='test -s conftest$ac_exeext'
17796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17797 (eval $ac_try) 2>&5
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); }; }; then
17801 ac_cv_lib_acl_acl_get_file=yes
17803 echo "$as_me: failed program was:" >&5
17804 sed 's/^/| /' conftest.$ac_ext >&5
17806 ac_cv_lib_acl_acl_get_file=no
17808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17809 LIBS=$ac_check_lib_save_LIBS
17811 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
17812 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
17813 if test $ac_cv_lib_acl_acl_get_file = yes; then
17814 FDLIBS="-lacl $FDLIBS"
17818 if test $ac_cv_lib_acl_acl_get_file = yes; then
17819 cat >>confdefs.h <<\_ACEOF
17827 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17828 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17829 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17830 echo $ECHO_N "(cached) $ECHO_C" >&6
17832 ac_check_lib_save_LIBS=$LIBS
17833 LIBS="-lpthread $LIBS"
17834 cat >conftest.$ac_ext <<_ACEOF
17835 #line $LINENO "configure"
17838 cat confdefs.h >>conftest.$ac_ext
17839 cat >>conftest.$ac_ext <<_ACEOF
17840 /* end confdefs.h. */
17842 /* Override any gcc2 internal prototype to avoid an error. */
17846 /* We use char because int might match the return type of a gcc2
17847 builtin and then its argument prototype would still apply. */
17848 char pthread_create ();
17857 rm -f conftest.$ac_objext conftest$ac_exeext
17858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17859 (eval $ac_link) 2>&5
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); } &&
17863 { ac_try='test -s conftest$ac_exeext'
17864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865 (eval $ac_try) 2>&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; }; then
17869 ac_cv_lib_pthread_pthread_create=yes
17871 echo "$as_me: failed program was:" >&5
17872 sed 's/^/| /' conftest.$ac_ext >&5
17874 ac_cv_lib_pthread_pthread_create=no
17876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17877 LIBS=$ac_check_lib_save_LIBS
17879 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17880 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17881 if test $ac_cv_lib_pthread_pthread_create = yes; then
17882 PTHREAD_LIB="-lpthread"
17884 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17885 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17886 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17887 echo $ECHO_N "(cached) $ECHO_C" >&6
17889 ac_check_lib_save_LIBS=$LIBS
17890 LIBS="-lpthreads $LIBS"
17891 cat >conftest.$ac_ext <<_ACEOF
17892 #line $LINENO "configure"
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h. */
17899 /* Override any gcc2 internal prototype to avoid an error. */
17903 /* We use char because int might match the return type of a gcc2
17904 builtin and then its argument prototype would still apply. */
17905 char pthread_create ();
17914 rm -f conftest.$ac_objext conftest$ac_exeext
17915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17916 (eval $ac_link) 2>&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); } &&
17920 { ac_try='test -s conftest$ac_exeext'
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17926 ac_cv_lib_pthreads_pthread_create=yes
17928 echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17931 ac_cv_lib_pthreads_pthread_create=no
17933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17934 LIBS=$ac_check_lib_save_LIBS
17936 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17937 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17938 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17939 PTHREAD_LIB="-lpthreads"
17941 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17942 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17943 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17944 echo $ECHO_N "(cached) $ECHO_C" >&6
17946 ac_check_lib_save_LIBS=$LIBS
17948 cat >conftest.$ac_ext <<_ACEOF
17949 #line $LINENO "configure"
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h. */
17956 /* Override any gcc2 internal prototype to avoid an error. */
17960 /* We use char because int might match the return type of a gcc2
17961 builtin and then its argument prototype would still apply. */
17962 char pthread_create ();
17971 rm -f conftest.$ac_objext conftest$ac_exeext
17972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17973 (eval $ac_link) 2>&5
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); } &&
17977 { ac_try='test -s conftest$ac_exeext'
17978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979 (eval $ac_try) 2>&5
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); }; }; then
17983 ac_cv_lib_c_r_pthread_create=yes
17985 echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.$ac_ext >&5
17988 ac_cv_lib_c_r_pthread_create=no
17990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17991 LIBS=$ac_check_lib_save_LIBS
17993 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17994 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17995 if test $ac_cv_lib_c_r_pthread_create = yes; then
17996 PTHREAD_LIB="-lc_r"
17998 echo "$as_me:$LINENO: checking for pthread_create" >&5
17999 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18000 if test "${ac_cv_func_pthread_create+set}" = set; then
18001 echo $ECHO_N "(cached) $ECHO_C" >&6
18003 cat >conftest.$ac_ext <<_ACEOF
18004 #line $LINENO "configure"
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18010 /* System header to define __stub macros and hopefully few prototypes,
18011 which can conflict with char pthread_create (); below.
18012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18013 <limits.h> exists even on freestanding compilers. */
18015 # include <limits.h>
18017 # include <assert.h>
18019 /* Override any gcc2 internal prototype to avoid an error. */
18024 /* We use char because int might match the return type of a gcc2
18025 builtin and then its argument prototype would still apply. */
18026 char pthread_create ();
18027 /* The GNU C library defines this for functions which it implements
18028 to always fail with ENOSYS. Some functions are actually named
18029 something starting with __ and the normal name is an alias. */
18030 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18033 char (*f) () = pthread_create;
18042 return f != pthread_create;
18047 rm -f conftest.$ac_objext conftest$ac_exeext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18049 (eval $ac_link) 2>&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); } &&
18053 { ac_try='test -s conftest$ac_exeext'
18054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18055 (eval $ac_try) 2>&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); }; }; then
18059 ac_cv_func_pthread_create=yes
18061 echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.$ac_ext >&5
18064 ac_cv_func_pthread_create=no
18066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18068 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18069 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18082 cat >>confdefs.h <<\_ACEOF
18088 CFLAGS=${CFLAGS--O}
18089 LDFLAGS=${LDFLAGS--O}
18090 DB_LIBS="${SQL_LFLAGS}"
18092 CPPFLAGS="$CPPFLAGS"
18117 # Finally we set appropriate distribution specific
18118 # variables and defaults
18120 # PFILES are platform specific files
18121 PFILES="platforms/Makefile"
18125 hostname=`uname -n | cut -d '.' -f 1`
18126 case "$DISTNAME" in
18129 PSCMD="ps -e -o pid,comm"
18130 PFILES="${PFILES} \
18131 platforms/aix/Makefile"
18132 TAPEDRIVE="/dev/rmt0.1"
18136 PTHREAD_LIB="-lpthread -lexc"
18137 if test "${CC}" = "gcc" ; then
18144 TAPEDRIVE="/dev/nrmt0"
18147 DISTVER=`uname -a |awk '{print $3}'`
18148 TAPEDRIVE="/dev/nrmt0"
18149 PTHREAD_LIB="-pthread"
18150 CFLAGS="${CFLAGS} -pthread"
18151 PSCMD="ps -x -o pid,command"
18154 PFILES="${PFILES} \
18155 platforms/bsdi/Makefile \
18156 platforms/bsdi/bacula-fd \
18157 platforms/bsdi/bacula-sd \
18158 platforms/bsdi/bacula-dir"
18159 largefile_support="yes"
18162 DISTVER=`uname -a |awk '{print $3}'`
18163 TAPEDRIVE="/dev/nrst0"
18165 WCFLAGS="-mwindows"
18166 WLDFLAGS="-mwindows"
18170 TAPEDRIVE="/dev/nst0"
18171 PSCMD="ps -e -o pid,command"
18173 PFILES="${PFILES} \
18174 platforms/darwin/Makefile"
18177 DISTVER=`cat /etc/debian_version`
18178 TAPEDRIVE="/dev/nrst0"
18179 PSCMD="ps -e -o pid,command"
18182 DISTVER=`uname -a |awk '{print $3}'`
18183 VER=`echo $DISTVER | cut -c 1`
18184 if test x$VER = x4 ; then
18185 PTHREAD_LIB="-pthread"
18186 CFLAGS="${CFLAGS} -pthread"
18190 TAPEDRIVE="/dev/nrsa0"
18191 PSCMD="ps -x -o pid,command"
18192 PFILES="${PFILES} \
18193 platforms/freebsd/Makefile \
18194 platforms/freebsd/bacula-fd \
18195 platforms/freebsd/bacula-sd \
18196 platforms/freebsd/bacula-dir"
18197 largefile_support="yes"
18200 PSCMD="UNIX95=1 ps -e -o pid,comm"
18201 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18203 TAPEDRIVE="/dev/rmt/0hnb"
18207 TAPEDRIVE="/dev/rmt/0cbn"
18208 PSCMD="ps -e -o pid,comm"
18209 PFILES="${PFILES} \
18210 platforms/irix/Makefile \
18211 platforms/irix/bacula-fd \
18212 platforms/irix/bacula-sd \
18213 platforms/irix/bacula-dir"
18216 DISTVER=`uname -a |awk '{print $3}'`
18219 TAPEDRIVE="/dev/nrst0"
18220 PSCMD="ps -a -o pid,command"
18221 PTHREAD_LIB="-pthread"
18222 CFLAGS="${CFLAGS} -pthread"
18225 DISTVER=`uname -a |awk '{print $3}'`
18228 TAPEDRIVE="/dev/nrst0"
18229 PSCMD="ps -a -o pid,command"
18230 PTHREAD_LIB="-pthread"
18231 CFLAGS="${CFLAGS} -pthread"
18232 PFILES="${PFILES} \
18233 platforms/openbsd/Makefile \
18234 platforms/openbsd/bacula-fd \
18235 platforms/openbsd/bacula-sd \
18236 platforms/openbsd/bacula-dir"
18239 if test `cat /etc/redhat-release | grep release |\
18240 cut -f 3 -d ' '`x = "Enterprise"x ; then
18241 DISTVER="Enterprise "`cat /etc/redhat-release | grep release |\
18244 DISTVER=`cat /etc/redhat-release | grep release |\
18247 TAPEDRIVE="/dev/nst0"
18248 PSCMD="ps -e -o pid,command"
18249 PFILES="${PFILES} \
18250 platforms/redhat/Makefile \
18251 platforms/redhat/bacula-fd \
18252 platforms/redhat/bacula-sd \
18253 platforms/redhat/bacula-dir \
18254 platforms/redhat/bacula.spec \
18256 hostname=`hostname -s`
18259 DISTVER=`cat /etc/mandrake-release | grep release |\
18261 TAPEDRIVE="/dev/nst0"
18262 PSCMD="ps -e -o pid,command"
18263 PFILES="${PFILES} \
18264 platforms/mandrake/Makefile \
18265 platforms/mandrake/bacula-fd \
18266 platforms/mandrake/bacula-sd \
18267 platforms/mandrake/bacula-dir \
18268 platforms/mandrake/bacula.spec \
18272 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18273 TAPEDRIVE="/dev/nst0"
18274 PSCMD="ps -e -o pid,command"
18275 PFILES="${PFILES} \
18276 platforms/gentoo/Makefile \
18277 platforms/gentoo/bacula-fd \
18278 platforms/gentoo/bacula-sd \
18279 platforms/gentoo/bacula-dir"
18282 DISTVER=`cat /etc/slackware-version`
18283 TAPEDRIVE="/dev/nst0"
18284 PSCMD="ps -e -o pid,command"
18285 PFILES="${PFILES} \
18286 platforms/slackware/Makefile \
18287 platforms/slackware/rc.bacula-fd \
18288 platforms/slackware/rc.bacula-sd \
18289 platforms/slackware/rc.bacula-dir\
18290 platforms/slackware/functions.bacula"
18294 TAPEDRIVE="/dev/rmt/0cbn"
18295 PSCMD="ps -e -o pid,comm"
18296 PFILES="${PFILES} \
18297 platforms/solaris/Makefile \
18298 platforms/solaris/bacula-fd \
18299 platforms/solaris/bacula-sd \
18300 platforms/solaris/bacula-dir"
18301 if test x$DISTVER = x5.6 ; then
18302 cat >>confdefs.h <<\_ACEOF
18303 #define HAVE_OLD_SOCKOPT 1
18309 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18311 TAPEDRIVE="/dev/nst0"
18312 PSCMD="ps -e -o pid,command"
18313 PFILES="${PFILES} \
18314 platforms/suse/Makefile \
18315 platforms/suse/bacula-fd \
18316 platforms/suse/bacula-sd \
18317 platforms/suse/bacula-dir \
18318 platforms/suse/bacula \
18319 platforms/suse/bacula.spec"
18324 TAPEDRIVE="/dev/nst0"
18325 PSCMD="ps -e -o pid,command"
18326 PFILES="${PFILES} \
18327 platforms/suse/Makefile \
18328 platforms/suse/bacula-fd \
18329 platforms/suse/bacula-sd \
18330 platforms/suse/bacula-dir"
18334 TAPEDRIVE="/dev/nst0"
18337 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18343 LIBS="$PTHREAD_LIB $LIBS"
18345 cat >>confdefs.h <<_ACEOF
18349 cat >>confdefs.h <<_ACEOF
18360 MCOMMON=./autoconf/Make.common
18363 if test "x${subsysdir}" = "x${sbindir}" ; then
18366 echo "You have set both --sbindir and --with-subsys-dir"
18367 echo " equal to: ${subsysdir} "
18368 echo "This is not permitted. Please reconfigure."
18370 echo "Aborting configuration ..."
18376 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/fd 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"
18377 ac_config_commands="$ac_config_commands default"
18378 cat >confcache <<\_ACEOF
18379 # This file is a shell script that caches the results of configure
18380 # tests run on this system so they can be shared between configure
18381 # scripts and configure runs, see configure's option --config-cache.
18382 # It is not useful on other systems. If it contains results you don't
18383 # want to keep, you may remove or edit it.
18385 # config.status only pays attention to the cache file if you give it
18386 # the --recheck option to rerun configure.
18388 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18389 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18390 # following values.
18394 # The following way of writing the cache mishandles newlines in values,
18395 # but we know of no workaround that is simple, portable, and efficient.
18396 # So, don't put newlines in cache variables' values.
18397 # Ultrix sh set writes to stderr and can't be redirected directly,
18398 # and sets the high bit in the cache file unless we assign to the vars.
18401 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18403 # `set' does not quote correctly, so add quotes (double-quote
18404 # substitution turns \\\\ into \\, and sed turns \\ into \).
18407 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18410 # `set' quotes correctly as required by POSIX, so do not add quotes.
18412 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18419 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18421 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18423 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18424 if test -w $cache_file; then
18425 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18426 cat confcache >$cache_file
18428 echo "not updating unwritable cache $cache_file"
18433 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18434 # Let make expand exec_prefix.
18435 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18437 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18438 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18439 # trailing colons and then remove the whole line if VPATH becomes empty
18440 # (actually we leave an empty line to preserve line numbers).
18441 if test "x$srcdir" = x.; then
18442 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18443 s/:*\$(srcdir):*/:/;
18444 s/:*\${srcdir}:*/:/;
18446 s/^\([^=]*=[ ]*\):*/\1/;
18452 DEFS=-DHAVE_CONFIG_H
18456 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18457 # 1. Remove the extension, and $U if already installed.
18458 ac_i=`echo "$ac_i" |
18459 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18461 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18462 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18464 LIBOBJS=$ac_libobjs
18466 LTLIBOBJS=$ac_ltlibobjs
18470 : ${CONFIG_STATUS=./config.status}
18471 ac_clean_files_save=$ac_clean_files
18472 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18473 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18474 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18475 cat >$CONFIG_STATUS <<_ACEOF
18477 # Generated by $as_me.
18478 # Run this file to recreate the current configuration.
18479 # Compiler output produced by configure, useful for debugging
18480 # configure, is in config.log if it exists.
18483 ac_cs_recheck=false
18485 SHELL=\${CONFIG_SHELL-$SHELL}
18488 cat >>$CONFIG_STATUS <<\_ACEOF
18489 ## --------------------- ##
18490 ## M4sh Initialization. ##
18491 ## --------------------- ##
18493 # Be Bourne compatible
18494 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18497 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18498 # is contrary to our usage. Disable this feature.
18499 alias -g '${1+"$@"}'='"$@"'
18500 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18504 # Support unset when possible.
18505 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18512 # Work around bugs in pre-3.0 UWIN ksh.
18513 $as_unset ENV MAIL MAILPATH
18520 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18521 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18522 LC_TELEPHONE LC_TIME
18524 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18525 eval $as_var=C; export $as_var
18531 # Required to use basename.
18532 if expr a : '\(a\)' >/dev/null 2>&1; then
18538 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18539 as_basename=basename
18545 # Name of the executable.
18546 as_me=`$as_basename "$0" ||
18547 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18548 X"$0" : 'X\(//\)$' \| \
18549 X"$0" : 'X\(/\)$' \| \
18550 . : '\(.\)' 2>/dev/null ||
18552 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18553 /^X\/\(\/\/\)$/{ s//\1/; q; }
18554 /^X\/\(\/\).*/{ s//\1/; q; }
18558 # PATH needs CR, and LINENO needs CR and PATH.
18559 # Avoid depending upon Character Ranges.
18560 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18561 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18562 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18563 as_cr_digits='0123456789'
18564 as_cr_alnum=$as_cr_Letters$as_cr_digits
18566 # The user is always right.
18567 if test "${PATH_SEPARATOR+set}" != set; then
18568 echo "#! /bin/sh" >conf$$.sh
18569 echo "exit 0" >>conf$$.sh
18571 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18580 as_lineno_1=$LINENO
18581 as_lineno_2=$LINENO
18582 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18583 test "x$as_lineno_1" != "x$as_lineno_2" &&
18584 test "x$as_lineno_3" = "x$as_lineno_2" || {
18585 # Find who we are. Look in the path if we contain no path at all
18588 *[\\/]* ) as_myself=$0 ;;
18589 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18590 for as_dir in $PATH
18593 test -z "$as_dir" && as_dir=.
18594 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18599 # We did not find ourselves, most probably we were run as `sh COMMAND'
18600 # in which case we are not to be found in the path.
18601 if test "x$as_myself" = x; then
18604 if test ! -f "$as_myself"; then
18605 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18606 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18607 { (exit 1); exit 1; }; }
18609 case $CONFIG_SHELL in
18611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18612 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18615 test -z "$as_dir" && as_dir=.
18616 for as_base in sh bash ksh sh5; do
18619 if ("$as_dir/$as_base" -c '
18620 as_lineno_1=$LINENO
18621 as_lineno_2=$LINENO
18622 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18623 test "x$as_lineno_1" != "x$as_lineno_2" &&
18624 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18625 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18626 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18627 CONFIG_SHELL=$as_dir/$as_base
18628 export CONFIG_SHELL
18629 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18637 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18638 # uniformly replaced by the line number. The first 'sed' inserts a
18639 # line-number line before each line; the second 'sed' does the real
18640 # work. The second script uses 'N' to pair each line-number line
18641 # with the numbered line, and appends trailing '-' during
18642 # substitution so that $LINENO is not a special case at line end.
18643 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18644 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18645 sed '=' <$as_myself |
18650 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18653 s,^['$as_cr_digits']*\n,,
18654 ' >$as_me.lineno &&
18655 chmod +x $as_me.lineno ||
18656 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18657 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18658 { (exit 1); exit 1; }; }
18660 # Don't try to exec as it changes $[0], causing all sort of problems
18661 # (the dirname of $[0] is not the place where we might find the
18662 # original and so on. Autoconf is especially sensible to this).
18664 # Exit status is that of the last command.
18669 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18670 *c*,-n*) ECHO_N= ECHO_C='
18672 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18673 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18676 if expr a : '\(a\)' >/dev/null 2>&1; then
18682 rm -f conf$$ conf$$.exe conf$$.file
18684 if ln -s conf$$.file conf$$ 2>/dev/null; then
18685 # We could just check for DJGPP; but this test a) works b) is more generic
18686 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18687 if test -f conf$$.exe; then
18688 # Don't use ln at all; we don't have any links
18693 elif ln conf$$.file conf$$ 2>/dev/null; then
18698 rm -f conf$$ conf$$.exe conf$$.file
18700 if mkdir -p . 2>/dev/null; then
18706 as_executable_p="test -f"
18708 # Sed expression to map a string onto a valid CPP name.
18709 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18711 # Sed expression to map a string onto a valid variable name.
18712 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18716 # We need space, tab and new line, in precisely that order.
18726 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18727 # report actual input values of CONFIG_FILES etc. instead of their
18728 # values after options handling. Logging --version etc. is OK.
18732 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18733 ## Running $as_me. ##
18738 This file was extended by $as_me, which was
18739 generated by GNU Autoconf 2.57. Invocation command line was
18741 CONFIG_FILES = $CONFIG_FILES
18742 CONFIG_HEADERS = $CONFIG_HEADERS
18743 CONFIG_LINKS = $CONFIG_LINKS
18744 CONFIG_COMMANDS = $CONFIG_COMMANDS
18748 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18752 # Files that config.status was made for.
18753 if test -n "$ac_config_files"; then
18754 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18757 if test -n "$ac_config_headers"; then
18758 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18761 if test -n "$ac_config_links"; then
18762 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18765 if test -n "$ac_config_commands"; then
18766 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18769 cat >>$CONFIG_STATUS <<\_ACEOF
18772 \`$as_me' instantiates files from templates according to the
18773 current configuration.
18775 Usage: $0 [OPTIONS] [FILE]...
18777 -h, --help print this help, then exit
18778 -V, --version print version number, then exit
18779 -q, --quiet do not print progress messages
18780 -d, --debug don't remove temporary files
18781 --recheck update $as_me by reconfiguring in the same conditions
18782 --file=FILE[:TEMPLATE]
18783 instantiate the configuration file FILE
18784 --header=FILE[:TEMPLATE]
18785 instantiate the configuration header FILE
18787 Configuration files:
18790 Configuration headers:
18793 Configuration commands:
18796 Report bugs to <bug-autoconf@gnu.org>."
18799 cat >>$CONFIG_STATUS <<_ACEOF
18802 configured by $0, generated by GNU Autoconf 2.57,
18803 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18805 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18806 Free Software Foundation, Inc.
18807 This config.status script is free software; the Free Software Foundation
18808 gives unlimited permission to copy, distribute and modify it."
18813 cat >>$CONFIG_STATUS <<\_ACEOF
18814 # If no file are specified by the user, then we need to provide default
18815 # value. By we need to know if files were specified by the user.
18821 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18822 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18830 *) # This is not an option, so the user has probably given explicit
18833 ac_need_defaults=false;;
18837 # Handling of the options.
18839 cat >>$CONFIG_STATUS <<\_ACEOF
18840 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18842 --version | --vers* | -V )
18843 echo "$ac_cs_version"; exit 0 ;;
18845 # Conflict between --help and --header
18846 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18847 Try \`$0 --help' for more information." >&5
18848 echo "$as_me: error: ambiguous option: $1
18849 Try \`$0 --help' for more information." >&2;}
18850 { (exit 1); exit 1; }; };;
18851 --help | --hel | -h )
18852 echo "$ac_cs_usage"; exit 0 ;;
18853 --debug | --d* | -d )
18855 --file | --fil | --fi | --f )
18857 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18858 ac_need_defaults=false;;
18859 --header | --heade | --head | --hea )
18861 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18862 ac_need_defaults=false;;
18863 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18864 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18867 # This is an error.
18868 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18869 Try \`$0 --help' for more information." >&5
18870 echo "$as_me: error: unrecognized option: $1
18871 Try \`$0 --help' for more information." >&2;}
18872 { (exit 1); exit 1; }; } ;;
18874 *) ac_config_targets="$ac_config_targets $1" ;;
18880 ac_configure_extra_args=
18882 if $ac_cs_silent; then
18884 ac_configure_extra_args="$ac_configure_extra_args --silent"
18888 cat >>$CONFIG_STATUS <<_ACEOF
18889 if \$ac_cs_recheck; then
18890 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18891 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18900 cat >>$CONFIG_STATUS <<\_ACEOF
18901 for ac_config_target in $ac_config_targets
18903 case "$ac_config_target" in
18904 # Handling of arguments.
18905 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18906 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18907 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18908 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18909 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18910 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18911 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18912 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18913 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18914 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18915 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18916 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18917 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18918 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18919 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18920 "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18921 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18922 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18923 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18924 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18925 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
18926 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
18927 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
18928 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
18929 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
18930 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18931 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18932 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18933 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18934 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18935 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18936 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18937 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18938 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18939 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18940 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
18941 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
18942 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18943 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18944 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18945 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18946 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18947 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18948 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18949 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18950 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18951 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18952 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18953 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18954 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18955 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18956 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18957 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18958 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18959 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18960 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18961 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18962 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18963 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18964 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18965 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18966 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18967 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18968 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18969 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18970 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18971 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18972 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18973 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18974 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18975 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18976 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18977 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18978 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18979 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18980 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18981 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18982 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18983 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18984 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18985 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18986 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18987 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
18988 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
18989 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
18990 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
18991 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
18992 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18993 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18994 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18995 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18996 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18997 { (exit 1); exit 1; }; };;
19001 # If the user did not use the arguments to specify the items to instantiate,
19002 # then the envvar interface is used. Set only those that are not.
19003 # We use the long form for the default assignment because of an extremely
19004 # bizarre bug on SunOS 4.1.3.
19005 if $ac_need_defaults; then
19006 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19007 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19008 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19011 # Have a temporary directory for convenience. Make it in the build tree
19012 # simply because there is no reason to put it here, and in addition,
19013 # creating and moving files from /tmp can sometimes cause problems.
19014 # Create a temporary directory, and hook for its removal unless debugging.
19017 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19018 trap '{ (exit 1); exit 1; }' 1 2 13 15
19021 # Create a (secure) tmp directory for tmp files.
19024 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19025 test -n "$tmp" && test -d "$tmp"
19028 tmp=./confstat$$-$RANDOM
19029 (umask 077 && mkdir $tmp)
19032 echo "$me: cannot create a temporary directory in ." >&2
19033 { (exit 1); exit 1; }
19038 cat >>$CONFIG_STATUS <<_ACEOF
19041 # CONFIG_FILES section.
19044 # No need to generate the scripts if there are no CONFIG_FILES.
19045 # This happens for instance when ./config.status config.h
19046 if test -n "\$CONFIG_FILES"; then
19047 # Protect against being on the right side of a sed subst in config.status.
19048 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19049 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19050 s,@SHELL@,$SHELL,;t t
19051 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19052 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19053 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19054 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19055 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19056 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19057 s,@exec_prefix@,$exec_prefix,;t t
19058 s,@prefix@,$prefix,;t t
19059 s,@program_transform_name@,$program_transform_name,;t t
19060 s,@bindir@,$bindir,;t t
19061 s,@sbindir@,$sbindir,;t t
19062 s,@libexecdir@,$libexecdir,;t t
19063 s,@datadir@,$datadir,;t t
19064 s,@sysconfdir@,$sysconfdir,;t t
19065 s,@sharedstatedir@,$sharedstatedir,;t t
19066 s,@localstatedir@,$localstatedir,;t t
19067 s,@libdir@,$libdir,;t t
19068 s,@includedir@,$includedir,;t t
19069 s,@oldincludedir@,$oldincludedir,;t t
19070 s,@infodir@,$infodir,;t t
19071 s,@mandir@,$mandir,;t t
19072 s,@build_alias@,$build_alias,;t t
19073 s,@host_alias@,$host_alias,;t t
19074 s,@target_alias@,$target_alias,;t t
19075 s,@DEFS@,$DEFS,;t t
19076 s,@ECHO_C@,$ECHO_C,;t t
19077 s,@ECHO_N@,$ECHO_N,;t t
19078 s,@ECHO_T@,$ECHO_T,;t t
19079 s,@LIBS@,$LIBS,;t t
19080 s,@BUILD_DIR@,$BUILD_DIR,;t t
19081 s,@TRUEPRG@,$TRUEPRG,;t t
19082 s,@FALSEPRG@,$FALSEPRG,;t t
19083 s,@VERSION@,$VERSION,;t t
19084 s,@DATE@,$DATE,;t t
19085 s,@LSMDATE@,$LSMDATE,;t t
19087 s,@CFLAGS@,$CFLAGS,;t t
19088 s,@LDFLAGS@,$LDFLAGS,;t t
19089 s,@CPPFLAGS@,$CPPFLAGS,;t t
19090 s,@ac_ct_CC@,$ac_ct_CC,;t t
19091 s,@EXEEXT@,$EXEEXT,;t t
19092 s,@OBJEXT@,$OBJEXT,;t t
19094 s,@CXXFLAGS@,$CXXFLAGS,;t t
19095 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19097 s,@EGREP@,$EGREP,;t t
19098 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19099 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19100 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19101 s,@RANLIB@,$RANLIB,;t t
19102 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19108 s,@ECHO@,$ECHO,;t t
19112 s,@OPENSSL@,$OPENSSL,;t t
19114 s,@PKGCONFIG@,$PKGCONFIG,;t t
19115 s,@WXCONFIG@,$WXCONFIG,;t t
19116 s,@ARFLAGS@,$ARFLAGS,;t t
19117 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19118 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19119 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19120 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19121 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19122 s,@build@,$build,;t t
19123 s,@build_cpu@,$build_cpu,;t t
19124 s,@build_vendor@,$build_vendor,;t t
19125 s,@build_os@,$build_os,;t t
19126 s,@host@,$host,;t t
19127 s,@host_cpu@,$host_cpu,;t t
19128 s,@host_vendor@,$host_vendor,;t t
19129 s,@host_os@,$host_os,;t t
19130 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19131 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19132 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19133 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19134 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19135 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19136 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19137 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19138 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19139 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19140 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19141 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19142 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19143 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19144 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19145 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19146 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19147 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19148 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19149 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19150 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19151 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19152 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19153 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19154 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19155 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19156 s,@MSGFMT@,$MSGFMT,;t t
19157 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19158 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19159 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19160 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19161 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19162 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19163 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19164 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19165 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19166 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19167 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19168 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19169 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19170 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19171 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19172 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19173 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19174 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19175 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19176 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19177 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19178 s,@GNOME_DIR@,$GNOME_DIR,;t t
19179 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19180 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19181 s,@WX_DIR@,$WX_DIR,;t t
19182 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19183 s,@STATIC_FD@,$STATIC_FD,;t t
19184 s,@STATIC_SD@,$STATIC_SD,;t t
19185 s,@STATIC_DIR@,$STATIC_DIR,;t t
19186 s,@STATIC_CONS@,$STATIC_CONS,;t t
19187 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19188 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19189 s,@ALL_DIRS@,$ALL_DIRS,;t t
19190 s,@CONS_INC@,$CONS_INC,;t t
19191 s,@CONS_OBJ@,$CONS_OBJ,;t t
19192 s,@CONS_SRC@,$CONS_SRC,;t t
19193 s,@CONS_LIBS@,$CONS_LIBS,;t t
19194 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19195 s,@READLINE_SRC@,$READLINE_SRC,;t t
19196 s,@working_dir@,$working_dir,;t t
19197 s,@scriptdir@,$scriptdir,;t t
19198 s,@dump_email@,$dump_email,;t t
19199 s,@job_email@,$job_email,;t t
19200 s,@smtp_host@,$smtp_host,;t t
19201 s,@piddir@,$piddir,;t t
19202 s,@subsysdir@,$subsysdir,;t t
19203 s,@baseport@,$baseport,;t t
19204 s,@dir_port@,$dir_port,;t t
19205 s,@fd_port@,$fd_port,;t t
19206 s,@sd_port@,$sd_port,;t t
19207 s,@dir_password@,$dir_password,;t t
19208 s,@fd_password@,$fd_password,;t t
19209 s,@sd_password@,$sd_password,;t t
19210 s,@dir_user@,$dir_user,;t t
19211 s,@dir_group@,$dir_group,;t t
19212 s,@sd_user@,$sd_user,;t t
19213 s,@sd_group@,$sd_group,;t t
19214 s,@fd_user@,$fd_user,;t t
19215 s,@fd_group@,$fd_group,;t t
19216 s,@SBINPERM@,$SBINPERM,;t t
19217 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19218 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19219 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19220 s,@cats@,$cats,;t t
19221 s,@DB_NAME@,$DB_NAME,;t t
19222 s,@GETCONF@,$GETCONF,;t t
19223 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19224 s,@X_CFLAGS@,$X_CFLAGS,;t t
19225 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19226 s,@X_LIBS@,$X_LIBS,;t t
19227 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19228 s,@LIBOBJS@,$LIBOBJS,;t t
19229 s,@ALLOCA@,$ALLOCA,;t t
19230 s,@FDLIBS@,$FDLIBS,;t t
19231 s,@DEBUG@,$DEBUG,;t t
19232 s,@DINCLUDE@,$DINCLUDE,;t t
19233 s,@DLIB@,$DLIB,;t t
19234 s,@DB_LIBS@,$DB_LIBS,;t t
19235 s,@WCFLAGS@,$WCFLAGS,;t t
19236 s,@WLDFLAGS@,$WLDFLAGS,;t t
19237 s,@OBJLIST@,$OBJLIST,;t t
19238 s,@hostname@,$hostname,;t t
19239 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19240 s,@PSCMD@,$PSCMD,;t t
19241 s,@WIN32@,$WIN32,;t t
19242 s,@MACOSX@,$MACOSX,;t t
19243 s,@DISTNAME@,$DISTNAME,;t t
19244 s,@DISTVER@,$DISTVER,;t t
19245 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19246 /@MCOMMON@/r $MCOMMON
19252 cat >>$CONFIG_STATUS <<\_ACEOF
19253 # Split the substitutions into bite-sized pieces for seds with
19254 # small command number limits, like on Digital OSF/1 and HP-UX.
19255 ac_max_sed_lines=48
19256 ac_sed_frag=1 # Number of current file.
19257 ac_beg=1 # First line for current file.
19258 ac_end=$ac_max_sed_lines # Line after last line for current file.
19261 while $ac_more_lines; do
19262 if test $ac_beg -gt 1; then
19263 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19265 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19267 if test ! -s $tmp/subs.frag; then
19268 ac_more_lines=false
19270 # The purpose of the label and of the branching condition is to
19271 # speed up the sed processing (if there are no `@' at all, there
19272 # is no need to browse any of the substitutions).
19273 # These are the two extra sed commands mentioned above.
19275 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19276 if test -z "$ac_sed_cmds"; then
19277 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19279 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19281 ac_sed_frag=`expr $ac_sed_frag + 1`
19283 ac_end=`expr $ac_end + $ac_max_sed_lines`
19286 if test -z "$ac_sed_cmds"; then
19289 fi # test -n "$CONFIG_FILES"
19292 cat >>$CONFIG_STATUS <<\_ACEOF
19293 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19294 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19296 - | *:- | *:-:* ) # input from stdin
19298 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19299 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19300 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19301 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19302 * ) ac_file_in=$ac_file.in ;;
19305 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19306 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19307 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19308 X"$ac_file" : 'X\(//\)[^/]' \| \
19309 X"$ac_file" : 'X\(//\)$' \| \
19310 X"$ac_file" : 'X\(/\)' \| \
19311 . : '\(.\)' 2>/dev/null ||
19313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19315 /^X\(\/\/\)$/{ s//\1/; q; }
19316 /^X\(\/\).*/{ s//\1/; q; }
19318 { if $as_mkdir_p; then
19323 while test ! -d "$as_dir"; do
19324 as_dirs="$as_dir $as_dirs"
19325 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19327 X"$as_dir" : 'X\(//\)[^/]' \| \
19328 X"$as_dir" : 'X\(//\)$' \| \
19329 X"$as_dir" : 'X\(/\)' \| \
19330 . : '\(.\)' 2>/dev/null ||
19332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19334 /^X\(\/\/\)$/{ s//\1/; q; }
19335 /^X\(\/\).*/{ s//\1/; q; }
19338 test ! -n "$as_dirs" || mkdir $as_dirs
19339 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19340 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19341 { (exit 1); exit 1; }; }; }
19345 if test "$ac_dir" != .; then
19346 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19347 # A "../" for each directory in $ac_dir_suffix.
19348 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19350 ac_dir_suffix= ac_top_builddir=
19354 .) # No --srcdir option. We are building in place.
19356 if test -z "$ac_top_builddir"; then
19359 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19361 [\\/]* | ?:[\\/]* ) # Absolute path.
19362 ac_srcdir=$srcdir$ac_dir_suffix;
19363 ac_top_srcdir=$srcdir ;;
19364 *) # Relative path.
19365 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19366 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19368 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19370 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19371 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19372 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19373 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19377 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19378 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19381 if test x"$ac_file" != x-; then
19382 { echo "$as_me:$LINENO: creating $ac_file" >&5
19383 echo "$as_me: creating $ac_file" >&6;}
19386 # Let's still pretend it is `configure' which instantiates (i.e., don't
19387 # use $as_me), people would be surprised to read:
19388 # /* config.h. Generated by config.status. */
19389 if test x"$ac_file" = x-; then
19392 configure_input="$ac_file. "
19394 configure_input=$configure_input"Generated from `echo $ac_file_in |
19395 sed 's,.*/,,'` by configure."
19397 # First look for the input files in the build tree, otherwise in the
19399 ac_file_inputs=`IFS=:
19400 for f in $ac_file_in; do
19402 -) echo $tmp/stdin ;;
19404 # Absolute (can't be DOS-style, as IFS=:)
19405 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19406 echo "$as_me: error: cannot find input file: $f" >&2;}
19407 { (exit 1); exit 1; }; }
19410 if test -f "$f"; then
19413 elif test -f "$srcdir/$f"; then
19418 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19419 echo "$as_me: error: cannot find input file: $f" >&2;}
19420 { (exit 1); exit 1; }; }
19423 done` || { (exit 1); exit 1; }
19425 cat >>$CONFIG_STATUS <<_ACEOF
19429 cat >>$CONFIG_STATUS <<\_ACEOF
19431 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19432 s,@configure_input@,$configure_input,;t t
19433 s,@srcdir@,$ac_srcdir,;t t
19434 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19435 s,@top_srcdir@,$ac_top_srcdir,;t t
19436 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19437 s,@builddir@,$ac_builddir,;t t
19438 s,@abs_builddir@,$ac_abs_builddir,;t t
19439 s,@top_builddir@,$ac_top_builddir,;t t
19440 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19441 s,@INSTALL@,$ac_INSTALL,;t t
19442 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19444 if test x"$ac_file" != x-; then
19445 mv $tmp/out $ac_file
19453 cat >>$CONFIG_STATUS <<\_ACEOF
19456 # CONFIG_HEADER section.
19459 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19460 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19462 # ac_d sets the value in "#define NAME VALUE" lines.
19463 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19464 ac_dB='[ ].*$,\1#\2'
19467 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19468 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19469 ac_uB='$,\1#\2define\3'
19473 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19474 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19476 - | *:- | *:-:* ) # input from stdin
19478 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19479 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19480 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19481 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19482 * ) ac_file_in=$ac_file.in ;;
19485 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19486 echo "$as_me: creating $ac_file" >&6;}
19488 # First look for the input files in the build tree, otherwise in the
19490 ac_file_inputs=`IFS=:
19491 for f in $ac_file_in; do
19493 -) echo $tmp/stdin ;;
19495 # Absolute (can't be DOS-style, as IFS=:)
19496 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19497 echo "$as_me: error: cannot find input file: $f" >&2;}
19498 { (exit 1); exit 1; }; }
19501 if test -f "$f"; then
19504 elif test -f "$srcdir/$f"; then
19509 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19510 echo "$as_me: error: cannot find input file: $f" >&2;}
19511 { (exit 1); exit 1; }; }
19514 done` || { (exit 1); exit 1; }
19515 # Remove the trailing spaces.
19516 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19520 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19521 # `conftest.undefs', that substitutes the proper values into
19522 # config.h.in to produce config.h. The first handles `#define'
19523 # templates, and the second `#undef' templates.
19524 # And first: Protect against being on the right side of a sed subst in
19525 # config.status. Protect against being in an unquoted here document
19526 # in config.status.
19527 rm -f conftest.defines conftest.undefs
19528 # Using a here document instead of a string reduces the quoting nightmare.
19529 # Putting comments in sed scripts is not portable.
19531 # `end' is used to avoid that the second main sed command (meant for
19532 # 0-ary CPP macros) applies to n-ary macro definitions.
19533 # See the Autoconf documentation for `clear'.
19534 cat >confdef2sed.sed <<\_ACEOF
19539 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19541 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19544 # If some macros were called several times there might be several times
19545 # the same #defines, which is useless. Nevertheless, we may not want to
19546 # sort them, since we want the *last* AC-DEFINE to be honored.
19547 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19548 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19549 rm -f confdef2sed.sed
19551 # This sed command replaces #undef with comments. This is necessary, for
19552 # example, in the case of _POSIX_SOURCE, which is predefined and required
19553 # on some systems where configure will not decide to define it.
19554 cat >>conftest.undefs <<\_ACEOF
19555 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19558 # Break up conftest.defines because some shells have a limit on the size
19559 # of here documents, and old seds have small limits too (100 cmds).
19560 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19561 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19562 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19563 echo ' :' >>$CONFIG_STATUS
19564 rm -f conftest.tail
19565 while grep . conftest.defines >/dev/null
19567 # Write a limited-size here document to $tmp/defines.sed.
19568 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19569 # Speed up: don't consider the non `#define' lines.
19570 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19571 # Work around the forget-to-reset-the-flag bug.
19572 echo 't clr' >>$CONFIG_STATUS
19573 echo ': clr' >>$CONFIG_STATUS
19574 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19576 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19578 mv $tmp/out $tmp/in
19580 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19581 rm -f conftest.defines
19582 mv conftest.tail conftest.defines
19584 rm -f conftest.defines
19585 echo ' fi # grep' >>$CONFIG_STATUS
19586 echo >>$CONFIG_STATUS
19588 # Break up conftest.undefs because some shells have a limit on the size
19589 # of here documents, and old seds have small limits too (100 cmds).
19590 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19591 rm -f conftest.tail
19592 while grep . conftest.undefs >/dev/null
19594 # Write a limited-size here document to $tmp/undefs.sed.
19595 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19596 # Speed up: don't consider the non `#undef'
19597 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19598 # Work around the forget-to-reset-the-flag bug.
19599 echo 't clr' >>$CONFIG_STATUS
19600 echo ': clr' >>$CONFIG_STATUS
19601 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19603 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19605 mv $tmp/out $tmp/in
19607 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19608 rm -f conftest.undefs
19609 mv conftest.tail conftest.undefs
19611 rm -f conftest.undefs
19613 cat >>$CONFIG_STATUS <<\_ACEOF
19614 # Let's still pretend it is `configure' which instantiates (i.e., don't
19615 # use $as_me), people would be surprised to read:
19616 # /* config.h. Generated by config.status. */
19617 if test x"$ac_file" = x-; then
19618 echo "/* Generated by configure. */" >$tmp/config.h
19620 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19622 cat $tmp/in >>$tmp/config.h
19624 if test x"$ac_file" != x-; then
19625 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19626 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19627 echo "$as_me: $ac_file is unchanged" >&6;}
19629 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19630 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19631 X"$ac_file" : 'X\(//\)[^/]' \| \
19632 X"$ac_file" : 'X\(//\)$' \| \
19633 X"$ac_file" : 'X\(/\)' \| \
19634 . : '\(.\)' 2>/dev/null ||
19636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19637 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19638 /^X\(\/\/\)$/{ s//\1/; q; }
19639 /^X\(\/\).*/{ s//\1/; q; }
19641 { if $as_mkdir_p; then
19646 while test ! -d "$as_dir"; do
19647 as_dirs="$as_dir $as_dirs"
19648 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19649 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19650 X"$as_dir" : 'X\(//\)[^/]' \| \
19651 X"$as_dir" : 'X\(//\)$' \| \
19652 X"$as_dir" : 'X\(/\)' \| \
19653 . : '\(.\)' 2>/dev/null ||
19655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19656 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19657 /^X\(\/\/\)$/{ s//\1/; q; }
19658 /^X\(\/\).*/{ s//\1/; q; }
19661 test ! -n "$as_dirs" || mkdir $as_dirs
19662 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19663 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19664 { (exit 1); exit 1; }; }; }
19667 mv $tmp/config.h $ac_file
19671 rm -f $tmp/config.h
19675 cat >>$CONFIG_STATUS <<\_ACEOF
19678 # CONFIG_COMMANDS section.
19680 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19681 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19682 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19683 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19684 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19685 X"$ac_dest" : 'X\(//\)[^/]' \| \
19686 X"$ac_dest" : 'X\(//\)$' \| \
19687 X"$ac_dest" : 'X\(/\)' \| \
19688 . : '\(.\)' 2>/dev/null ||
19690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19691 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19692 /^X\(\/\/\)$/{ s//\1/; q; }
19693 /^X\(\/\).*/{ s//\1/; q; }
19697 if test "$ac_dir" != .; then
19698 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19699 # A "../" for each directory in $ac_dir_suffix.
19700 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19702 ac_dir_suffix= ac_top_builddir=
19706 .) # No --srcdir option. We are building in place.
19708 if test -z "$ac_top_builddir"; then
19711 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19713 [\\/]* | ?:[\\/]* ) # Absolute path.
19714 ac_srcdir=$srcdir$ac_dir_suffix;
19715 ac_top_srcdir=$srcdir ;;
19716 *) # Relative path.
19717 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19718 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19720 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19722 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19723 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19724 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19725 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19728 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19729 echo "$as_me: executing $ac_dest commands" >&6;}
19731 default ) (echo "Doing make of dependencies"; make depend;)
19737 cat >>$CONFIG_STATUS <<\_ACEOF
19739 { (exit 0); exit 0; }
19741 chmod +x $CONFIG_STATUS
19742 ac_clean_files=$ac_clean_files_save
19745 # configure is writing to config.log, and then calls config.status.
19746 # config.status does its own redirection, appending to config.log.
19747 # Unfortunately, on DOS this fails, as config.log is still kept open
19748 # by configure, so config.status won't be able to write to it; its
19749 # output is simply discarded. So we exec the FD to /dev/null,
19750 # effectively closing config.log, so it can be properly (re)opened and
19751 # appended to by config.status. When coming back to configure, we
19752 # need to make the FD available again.
19753 if test "$no_create" != yes; then
19755 ac_config_status_args=
19756 test "$silent" = yes &&
19757 ac_config_status_args="$ac_config_status_args --quiet"
19759 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19761 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19762 # would make configure fail if this is the last instruction.
19763 $ac_cs_success || { (exit 1); exit 1; }
19768 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19769 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19774 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
19775 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
19777 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
19778 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
19780 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
19781 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
19783 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
19784 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
19786 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
19787 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
19789 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19790 chmod 755 $c/sqlite
19793 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19794 largefile_support="yes"
19798 # A whole lot of hand springs to get the compiler version.
19799 # This is because gcc changed the output in version 3.0
19801 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19802 if test "x${CCVERSION}" = "x" ; then
19803 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19805 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19806 if test x"${CXXVERSION}" = x ; then
19807 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19810 if test "x${subsysdir}" = "x${sbindir}" ; then
19813 echo "You have set --sbindir and --with-subsys-dir"
19814 echo " both equal to: ${subsysdir} "
19815 echo " This is not permitted. Please reconfigure."
19817 echo "Aborting configuration ..."
19823 if test "x${db_name}" = "xInternal" ; then
19826 echo "You have not specified either --enable-client-only or one of the"
19827 echo " supported databases: MySQL, PostgreSQL, or SQLite".
19828 echo " This is not permitted. Please reconfigure."
19830 echo "Aborting the configuration ..."
19837 Configuration on `date`:
19839 Host: $host -- ${DISTNAME} ${DISTVER}
19840 Bacula version: ${VERSION} (${DATE})
19841 Source code location: ${srcdir}
19842 Install binaries: ${sbindir}
19843 Install config files: ${sysconfdir}
19844 Scripts directory: ${scriptdir}
19845 Working directory: ${working_dir}
19846 PID directory: ${piddir}
19847 Subsys directory: ${subsysdir}
19848 C Compiler: ${CC} ${CCVERSION}
19849 C++ Compiler: ${CXX} ${CXXVERSION}
19850 Compiler flags: ${WCFLAGS} ${CFLAGS}
19851 Linker flags: ${WLDFLAGS} ${LDFLAGS}
19853 Statically Linked Tools: ${support_static_tools}
19854 Statically Linked FD: ${support_static_fd}
19855 Statically Linked SD: ${support_static_sd}
19856 Statically Linked DIR: ${support_static_dir}
19857 Statically Linked CONS: ${support_static_cons}
19858 Database type: ${db_name}
19859 Database lib: ${DB_LIBS}
19861 Job Output Email: ${job_email}
19862 Traceback Email: ${dump_email}
19863 SMTP Host Address: ${smtp_host}
19865 Director Port: ${dir_port}
19866 File daemon Port: ${fd_port}
19867 Storage daemon Port: ${sd_port}
19869 Director User: ${dir_user}
19870 Director Group: ${dir_group}
19871 Storage Daemon User: ${sd_user}
19872 Storage DaemonGroup: ${sd_group}
19873 File Daemon User: ${fd_user}
19874 File Daemon Group: ${fd_group}
19876 SQL binaries Directory ${SQL_BINDIR}
19878 Large file support: $largefile_support
19879 Bacula conio support: ${got_conio} ${CONS_LIBS}
19880 readline support: ${got_readline} ${PRTREADLINE_SRC}
19881 TCP Wrappers support: ${TCPW_MSG}
19882 ZLIB support: ${have_zlib}
19883 enable-smartalloc: ${support_smartalloc}
19884 enable-gnome: ${support_gnome} ${gnome_version}
19885 enable-wx-console: ${support_wx_console}
19886 client-only: ${build_client_only}
19887 ACL support: ${have_acl}
19894 # cweb support: ${got_cweb} ${CWEB_SRC}
19895 # gmp support: ${got_gmp} ${GMP_SRC}