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 CDRECORD ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC CDSTL working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures this package to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --x-includes=DIR X include files are in DIR
843 --x-libraries=DIR X library files are in DIR
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 if test -n "$ac_init_help"; then
856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
858 --enable-gnome enable build of gnome-console GUI disabled
859 --enable-wx-console enable build of wxWidgets console disabled
860 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
861 --enable-smartalloc enable smartalloc debugging support disabled
862 --enable-static-tools enable static tape tools disabled
863 --enable-static-fd enable static File daemon disabled
864 --enable-static-sd enable static Storage daemon disabled
865 --enable-static-dir enable static Director disabled
866 --enable-static-cons enable static Console disabled
867 --enable-client-only build client (File daemon) only disabled
868 --disable-conio disable conio support enabled
870 --disable-readline disable readline support disable
872 --disable-largefile omit support for large files
875 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
876 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
877 --with-gnome-includes Specify location of GNOME headers
878 --with-gnome-libs Specify location of GNOME libs
879 --with-gnome Specify prefix for GNOME files
880 --with-readline=DIR specify readline library directory
881 --with-tcp-wrappers=DIR enable tcpwrappers support
882 --with-working-dir=PATH specify path of Bacula working directory
883 --with-scriptdir=PATH specify path of Bacula scripts directory
884 --with-dump-email=EMAIL dump email address
885 --with-job-email=EMAIL job output email address
886 --with-smtp-host=HOST SMTP mail host address
887 --with-pid-dir=PATH specify location of Bacula pid files
888 --with-subsys-dir=PATH specify location of Bacula subsys file
889 --with-baseport=PORT specify base port address for daemons
890 --with-dir-password=PASSWORD specify Director's password
891 --with-fd-password=PASSWORD specify Client's password
892 --with-sd-password=PASSWORD specify Storage daemon's password
893 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
894 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
895 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
896 --with-bimagemgr-cgidir=DIR specify bimagemgr cgi-bin dir
897 --with-bimagemgr-docdir=DIR specify bimagemgr doc root dir
898 --with-bimagemgr-binowner=USER specify bimagemgr binary file owner
899 --with-bimagemgr-bingroup=USER specify bimagemgr binary file group
900 --with-bimagemgr-dataowner=USER specify bimagemgr data file owner
901 --with-bimagemgr-datagroup=USER specify bimagemgr data file group
902 --with-dir-user=USER specify user for Director daemon
903 --with-dir-group=GROUP specify group for Director daemon
904 --with-sd-user=USER specify user for Storage daemon
905 --with-sd-group=GROUP specify group for Storage daemon
906 --with-fd-user=USER specify user for File daemon
907 --with-fd-group=GROUP specify group for File daemon
908 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
909 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
910 base install directory, defaults to /usr/local/pgsql
912 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
913 install directory, default is to search through
914 a number of common places for the MySQL files.
916 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
917 install directory, default is to search through
918 a number of common places for the MySQL files.
920 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
921 install directory, default is to search through
922 a number of common places for the SQLite files.
923 --with-x use the X Window System
925 Some influential environment variables:
926 CC C compiler command
927 CFLAGS C compiler flags
928 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
929 nonstandard directory <lib dir>
930 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
931 headers in a nonstandard directory <include dir>
932 CXX C++ compiler command
933 CXXFLAGS C++ compiler flags
936 Use these variables to override the choices made by `configure' or to help
937 it to find libraries and programs with nonstandard names/locations.
942 if test "$ac_init_help" = "recursive"; then
943 # If there are subdirs, report their specific --help.
945 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
946 test -d $ac_dir || continue
949 if test "$ac_dir" != .; then
950 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
951 # A "../" for each directory in $ac_dir_suffix.
952 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
954 ac_dir_suffix= ac_top_builddir=
958 .) # No --srcdir option. We are building in place.
960 if test -z "$ac_top_builddir"; then
963 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
965 [\\/]* | ?:[\\/]* ) # Absolute path.
966 ac_srcdir=$srcdir$ac_dir_suffix;
967 ac_top_srcdir=$srcdir ;;
969 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
970 ac_top_srcdir=$ac_top_builddir$srcdir ;;
972 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
974 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
975 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
976 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
977 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
980 # Check for guested configure; otherwise get Cygnus style configure.
981 if test -f $ac_srcdir/configure.gnu; then
983 $SHELL $ac_srcdir/configure.gnu --help=recursive
984 elif test -f $ac_srcdir/configure; then
986 $SHELL $ac_srcdir/configure --help=recursive
987 elif test -f $ac_srcdir/configure.ac ||
988 test -f $ac_srcdir/configure.in; then
992 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
998 test -n "$ac_init_help" && exit 0
999 if $ac_init_version; then
1002 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1003 Free Software Foundation, Inc.
1004 This configure script is free software; the Free Software Foundation
1005 gives unlimited permission to copy, distribute and modify it.
1011 This file contains any messages produced by compilers while
1012 running configure, to aid debugging if configure makes a mistake.
1014 It was created by $as_me, which was
1015 generated by GNU Autoconf 2.57. Invocation command line was
1026 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1027 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1028 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1029 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1030 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1032 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1033 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1035 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1036 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1037 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1038 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1039 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1040 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1041 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1049 test -z "$as_dir" && as_dir=.
1050 echo "PATH: $as_dir"
1065 # Keep a trace of the command line.
1066 # Strip out --no-create and --no-recursion so they do not pile up.
1067 # Strip out --silent because we don't want to record it for future runs.
1068 # Also quote any args containing shell meta-characters.
1069 # Make two passes to allow for proper duplicate-argument suppression.
1074 ac_must_keep_next=false
1080 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1084 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1085 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1088 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1090 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1091 if test $ac_must_keep_next = true; then
1092 ac_must_keep_next=false # Got value, back to normal.
1095 *=* | --config-cache | -C | -disable-* | --disable-* \
1096 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1097 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1098 | -with-* | --with-* | -without-* | --without-* | --x)
1099 case "$ac_configure_args0 " in
1100 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1103 -* ) ac_must_keep_next=true ;;
1106 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1107 # Get rid of the leading space.
1113 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1114 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1116 # When interrupted or exit'd, cleanup temporary files, and complete
1117 # config.log. We remove comments because anyway the quotes in there
1118 # would cause problems or look ugly.
1119 # WARNING: Be sure not to use single quotes in there, as some shells,
1120 # such as our DU 5.0 friend, will then `close' the trap.
1121 trap 'exit_status=$?
1122 # Save into config.log some information that might help in debugging.
1127 ## ---------------- ##
1128 ## Cache variables. ##
1129 ## ---------------- ##
1132 # The following way of writing the cache mishandles newlines in values,
1135 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1138 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1143 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1150 ## ----------------- ##
1151 ## Output variables. ##
1152 ## ----------------- ##
1155 for ac_var in $ac_subst_vars
1157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1162 if test -n "$ac_subst_files"; then
1169 for ac_var in $ac_subst_files
1171 eval ac_val=$`echo $ac_var`
1172 echo "$ac_var='"'"'$ac_val'"'"'"
1177 if test -s confdefs.h; then
1184 sed "/^$/d" confdefs.h | sort
1187 test "$ac_signal" != 0 &&
1188 echo "$as_me: caught signal $ac_signal"
1189 echo "$as_me: exit $exit_status"
1191 rm -f core core.* *.core &&
1192 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1195 for ac_signal in 1 2 13 15; do
1196 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1200 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1201 rm -rf conftest* confdefs.h
1202 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1205 # Predefined preprocessor variables.
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_NAME "$PACKAGE_NAME"
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_STRING "$PACKAGE_STRING"
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1232 # Let the site file select an alternate cache file if it wants to.
1233 # Prefer explicitly selected file to automatically selected ones.
1234 if test -z "$CONFIG_SITE"; then
1235 if test "x$prefix" != xNONE; then
1236 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1238 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1241 for ac_site_file in $CONFIG_SITE; do
1242 if test -r "$ac_site_file"; then
1243 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1244 echo "$as_me: loading site script $ac_site_file" >&6;}
1245 sed 's/^/| /' "$ac_site_file" >&5
1250 if test -r "$cache_file"; then
1251 # Some versions of bash will fail to source /dev/null (special
1252 # files actually), so we avoid doing that.
1253 if test -f "$cache_file"; then
1254 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1255 echo "$as_me: loading cache $cache_file" >&6;}
1257 [\\/]* | ?:[\\/]* ) . $cache_file;;
1258 *) . ./$cache_file;;
1262 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1263 echo "$as_me: creating cache $cache_file" >&6;}
1267 # Check that the precious variables saved in the cache have kept the same
1269 ac_cache_corrupted=false
1270 for ac_var in `(set) 2>&1 |
1271 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1273 eval ac_new_set=\$ac_env_${ac_var}_set
1274 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1275 eval ac_new_val="\$ac_env_${ac_var}_value"
1276 case $ac_old_set,$ac_new_set in
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1282 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1283 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1287 if test "x$ac_old_val" != "x$ac_new_val"; then
1288 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1289 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1290 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1291 echo "$as_me: former value: $ac_old_val" >&2;}
1292 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1293 echo "$as_me: current value: $ac_new_val" >&2;}
1294 ac_cache_corrupted=:
1297 # Pass precious variables to config.status.
1298 if test "$ac_new_set" = set; then
1300 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1302 *) ac_arg=$ac_var=$ac_new_val ;;
1304 case " $ac_configure_args " in
1305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1306 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1310 if $ac_cache_corrupted; then
1311 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1312 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1313 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1314 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1315 { (exit 1); exit 1; }; }
1319 ac_cpp='$CPP $CPPFLAGS'
1320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1348 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1349 if test -f $ac_dir/install-sh; then
1351 ac_install_sh="$ac_aux_dir/install-sh -c"
1353 elif test -f $ac_dir/install.sh; then
1355 ac_install_sh="$ac_aux_dir/install.sh -c"
1357 elif test -f $ac_dir/shtool; then
1359 ac_install_sh="$ac_aux_dir/shtool install -c"
1363 if test -z "$ac_aux_dir"; then
1364 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1365 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1366 { (exit 1); exit 1; }; }
1368 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1369 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1370 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1372 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1380 # Extract the first word of "$ac_prog", so it can be a program name with args.
1381 set dummy $ac_prog; ac_word=$2
1382 echo "$as_me:$LINENO: checking for $ac_word" >&5
1383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1384 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1389 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1396 test -z "$as_dir" && as_dir=.
1397 for ac_exec_ext in '' $ac_executable_extensions; do
1398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1399 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1409 TRUEPRG=$ac_cv_path_TRUEPRG
1411 if test -n "$TRUEPRG"; then
1412 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1413 echo "${ECHO_T}$TRUEPRG" >&6
1415 echo "$as_me:$LINENO: result: no" >&5
1416 echo "${ECHO_T}no" >&6
1419 test -n "$TRUEPRG" && break
1421 test -n "$TRUEPRG" || TRUEPRG=":"
1423 for ac_prog in false
1425 # Extract the first word of "$ac_prog", so it can be a program name with args.
1426 set dummy $ac_prog; ac_word=$2
1427 echo "$as_me:$LINENO: checking for $ac_word" >&5
1428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1429 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441 test -z "$as_dir" && as_dir=.
1442 for ac_exec_ext in '' $ac_executable_extensions; do
1443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1444 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 FALSEPRG=$ac_cv_path_FALSEPRG
1456 if test -n "$FALSEPRG"; then
1457 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1458 echo "${ECHO_T}$FALSEPRG" >&6
1460 echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1464 test -n "$FALSEPRG" && break
1466 test -n "$FALSEPRG" || FALSEPRG=":"
1471 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1472 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1473 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1474 echo "configuring for bacula $VERSION ($DATE)"
1479 ac_cpp='$CPP $CPPFLAGS'
1480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1483 if test -n "$ac_tool_prefix"; then
1484 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1485 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1486 echo "$as_me:$LINENO: checking for $ac_word" >&5
1487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488 if test "${ac_cv_prog_CC+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1491 if test -n "$CC"; then
1492 ac_cv_prog_CC="$CC" # Let the user override the test.
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498 test -z "$as_dir" && as_dir=.
1499 for ac_exec_ext in '' $ac_executable_extensions; do
1500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1511 if test -n "$CC"; then
1512 echo "$as_me:$LINENO: result: $CC" >&5
1513 echo "${ECHO_T}$CC" >&6
1515 echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1520 if test -z "$ac_cv_prog_CC"; then
1522 # Extract the first word of "gcc", so it can be a program name with args.
1523 set dummy gcc; ac_word=$2
1524 echo "$as_me:$LINENO: checking for $ac_word" >&5
1525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 if test -n "$ac_ct_CC"; then
1530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 test -z "$as_dir" && as_dir=.
1537 for ac_exec_ext in '' $ac_executable_extensions; do
1538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539 ac_cv_prog_ac_ct_CC="gcc"
1540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1549 if test -n "$ac_ct_CC"; then
1550 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1551 echo "${ECHO_T}$ac_ct_CC" >&6
1553 echo "$as_me:$LINENO: result: no" >&5
1554 echo "${ECHO_T}no" >&6
1562 if test -z "$CC"; then
1563 if test -n "$ac_tool_prefix"; then
1564 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1565 set dummy ${ac_tool_prefix}cc; ac_word=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_CC+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 if test -n "$CC"; then
1572 ac_cv_prog_CC="$CC" # Let the user override the test.
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 test -z "$as_dir" && as_dir=.
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581 ac_cv_prog_CC="${ac_tool_prefix}cc"
1582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1591 if test -n "$CC"; then
1592 echo "$as_me:$LINENO: result: $CC" >&5
1593 echo "${ECHO_T}$CC" >&6
1595 echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1600 if test -z "$ac_cv_prog_CC"; then
1602 # Extract the first word of "cc", so it can be a program name with args.
1603 set dummy cc; ac_word=$2
1604 echo "$as_me:$LINENO: checking for $ac_word" >&5
1605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1606 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1609 if test -n "$ac_ct_CC"; then
1610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 test -z "$as_dir" && as_dir=.
1617 for ac_exec_ext in '' $ac_executable_extensions; do
1618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1619 ac_cv_prog_ac_ct_CC="cc"
1620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1629 if test -n "$ac_ct_CC"; then
1630 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1631 echo "${ECHO_T}$ac_ct_CC" >&6
1633 echo "$as_me:$LINENO: result: no" >&5
1634 echo "${ECHO_T}no" >&6
1643 if test -z "$CC"; then
1644 # Extract the first word of "cc", so it can be a program name with args.
1645 set dummy cc; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_CC+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 if test -n "$CC"; then
1652 ac_cv_prog_CC="$CC" # Let the user override the test.
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1663 ac_prog_rejected=yes
1667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673 if test $ac_prog_rejected = yes; then
1674 # We found a bogon in the path, so make sure we never use it.
1675 set dummy $ac_cv_prog_CC
1677 if test $# != 0; then
1678 # We chose a different compiler from the bogus one.
1679 # However, it has the same basename, so the bogon will be chosen
1680 # first if we set CC to just the basename; use the full file name.
1682 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1688 if test -n "$CC"; then
1689 echo "$as_me:$LINENO: result: $CC" >&5
1690 echo "${ECHO_T}$CC" >&6
1692 echo "$as_me:$LINENO: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1697 if test -z "$CC"; then
1698 if test -n "$ac_tool_prefix"; then
1701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1702 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1703 echo "$as_me:$LINENO: checking for $ac_word" >&5
1704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705 if test "${ac_cv_prog_CC+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1708 if test -n "$CC"; then
1709 ac_cv_prog_CC="$CC" # Let the user override the test.
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir=.
1716 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728 if test -n "$CC"; then
1729 echo "$as_me:$LINENO: result: $CC" >&5
1730 echo "${ECHO_T}$CC" >&6
1732 echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1736 test -n "$CC" && break
1739 if test -z "$CC"; then
1743 # Extract the first word of "$ac_prog", so it can be a program name with args.
1744 set dummy $ac_prog; ac_word=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1750 if test -n "$ac_ct_CC"; then
1751 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 test -z "$as_dir" && as_dir=.
1758 for ac_exec_ext in '' $ac_executable_extensions; do
1759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760 ac_cv_prog_ac_ct_CC="$ac_prog"
1761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1770 if test -n "$ac_ct_CC"; then
1771 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1772 echo "${ECHO_T}$ac_ct_CC" >&6
1774 echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1778 test -n "$ac_ct_CC" && break
1787 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1788 See \`config.log' for more details." >&5
1789 echo "$as_me: error: no acceptable C compiler found in \$PATH
1790 See \`config.log' for more details." >&2;}
1791 { (exit 1); exit 1; }; }
1793 # Provide some information about the compiler.
1794 echo "$as_me:$LINENO:" \
1795 "checking for C compiler version" >&5
1796 ac_compiler=`set X $ac_compile; echo $2`
1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1798 (eval $ac_compiler --version </dev/null >&5) 2>&5
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 (exit $ac_status); }
1802 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1803 (eval $ac_compiler -v </dev/null >&5) 2>&5
1805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806 (exit $ac_status); }
1807 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1808 (eval $ac_compiler -V </dev/null >&5) 2>&5
1810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1811 (exit $ac_status); }
1813 cat >conftest.$ac_ext <<_ACEOF
1814 #line $LINENO "configure"
1817 cat confdefs.h >>conftest.$ac_ext
1818 cat >>conftest.$ac_ext <<_ACEOF
1819 /* end confdefs.h. */
1829 ac_clean_files_save=$ac_clean_files
1830 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1831 # Try to create an executable without -o first, disregard a.out.
1832 # It will help us diagnose broken compilers, and finding out an intuition
1834 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1835 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1836 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1837 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1838 (eval $ac_link_default) 2>&5
1840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841 (exit $ac_status); }; then
1842 # Find the output, starting from the most likely. This scheme is
1843 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1846 # Be careful to initialize this variable, since it used to be cached.
1847 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1849 # b.out is created by i960 compilers.
1850 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1852 test -f "$ac_file" || continue
1854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1857 # This is the source file.
1860 # We found the default executable, but exeext='' is most
1864 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1865 # FIXME: I believe we export ac_cv_exeext for Libtool,
1866 # but it would be cool to find out if it's true. Does anybody
1867 # maintain Libtool? --akim.
1875 echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1878 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1879 See \`config.log' for more details." >&5
1880 echo "$as_me: error: C compiler cannot create executables
1881 See \`config.log' for more details." >&2;}
1882 { (exit 77); exit 77; }; }
1885 ac_exeext=$ac_cv_exeext
1886 echo "$as_me:$LINENO: result: $ac_file" >&5
1887 echo "${ECHO_T}$ac_file" >&6
1889 # Check the compiler produces executables we can run. If not, either
1890 # the compiler is broken, or we cross compile.
1891 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1892 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1893 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1894 # If not cross compiling, check that we can run a simple program.
1895 if test "$cross_compiling" != yes; then
1896 if { ac_try='./$ac_file'
1897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1901 (exit $ac_status); }; }; then
1904 if test "$cross_compiling" = maybe; then
1907 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1908 If you meant to cross compile, use \`--host'.
1909 See \`config.log' for more details." >&5
1910 echo "$as_me: error: cannot run C compiled programs.
1911 If you meant to cross compile, use \`--host'.
1912 See \`config.log' for more details." >&2;}
1913 { (exit 1); exit 1; }; }
1917 echo "$as_me:$LINENO: result: yes" >&5
1918 echo "${ECHO_T}yes" >&6
1920 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1921 ac_clean_files=$ac_clean_files_save
1922 # Check the compiler produces executables we can run. If not, either
1923 # the compiler is broken, or we cross compile.
1924 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1925 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1926 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1927 echo "${ECHO_T}$cross_compiling" >&6
1929 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1930 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1932 (eval $ac_link) 2>&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }; then
1936 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1937 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1938 # work properly (i.e., refer to `conftest.exe'), while it won't with
1940 for ac_file in conftest.exe conftest conftest.*; do
1941 test -f "$ac_file" || continue
1943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1944 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1951 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1952 See \`config.log' for more details." >&5
1953 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1954 See \`config.log' for more details." >&2;}
1955 { (exit 1); exit 1; }; }
1958 rm -f conftest$ac_cv_exeext
1959 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1960 echo "${ECHO_T}$ac_cv_exeext" >&6
1962 rm -f conftest.$ac_ext
1963 EXEEXT=$ac_cv_exeext
1965 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1966 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1967 if test "${ac_cv_objext+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 cat >conftest.$ac_ext <<_ACEOF
1971 #line $LINENO "configure"
1974 cat confdefs.h >>conftest.$ac_ext
1975 cat >>conftest.$ac_ext <<_ACEOF
1976 /* end confdefs.h. */
1986 rm -f conftest.o conftest.obj
1987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1988 (eval $ac_compile) 2>&5
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }; then
1992 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1995 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2000 echo "$as_me: failed program was:" >&5
2001 sed 's/^/| /' conftest.$ac_ext >&5
2003 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2004 See \`config.log' for more details." >&5
2005 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2006 See \`config.log' for more details." >&2;}
2007 { (exit 1); exit 1; }; }
2010 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2012 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2013 echo "${ECHO_T}$ac_cv_objext" >&6
2014 OBJEXT=$ac_cv_objext
2016 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2017 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2018 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 cat >conftest.$ac_ext <<_ACEOF
2022 #line $LINENO "configure"
2025 cat confdefs.h >>conftest.$ac_ext
2026 cat >>conftest.$ac_ext <<_ACEOF
2027 /* end confdefs.h. */
2040 rm -f conftest.$ac_objext
2041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2042 (eval $ac_compile) 2>&5
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); } &&
2046 { ac_try='test -s conftest.$ac_objext'
2047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2054 echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2059 rm -f conftest.$ac_objext conftest.$ac_ext
2060 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2063 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2064 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2065 GCC=`test $ac_compiler_gnu = yes && echo yes`
2066 ac_test_CFLAGS=${CFLAGS+set}
2067 ac_save_CFLAGS=$CFLAGS
2069 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2070 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2071 if test "${ac_cv_prog_cc_g+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 cat >conftest.$ac_ext <<_ACEOF
2075 #line $LINENO "configure"
2078 cat confdefs.h >>conftest.$ac_ext
2079 cat >>conftest.$ac_ext <<_ACEOF
2080 /* end confdefs.h. */
2090 rm -f conftest.$ac_objext
2091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092 (eval $ac_compile) 2>&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); } &&
2096 { ac_try='test -s conftest.$ac_objext'
2097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }; }; then
2104 echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2109 rm -f conftest.$ac_objext conftest.$ac_ext
2111 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2112 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2113 if test "$ac_test_CFLAGS" = set; then
2114 CFLAGS=$ac_save_CFLAGS
2115 elif test $ac_cv_prog_cc_g = yes; then
2116 if test "$GCC" = yes; then
2122 if test "$GCC" = yes; then
2128 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2129 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2130 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 ac_cv_prog_cc_stdc=no
2135 cat >conftest.$ac_ext <<_ACEOF
2136 #line $LINENO "configure"
2139 cat confdefs.h >>conftest.$ac_ext
2140 cat >>conftest.$ac_ext <<_ACEOF
2141 /* end confdefs.h. */
2144 #include <sys/types.h>
2145 #include <sys/stat.h>
2146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2147 struct buf { int x; };
2148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2149 static char *e (p, i)
2155 static char *f (char * (*g) (char **, int), char **p, ...)
2160 s = g (p, va_arg (v,int));
2164 int test (int i, double x);
2165 struct s1 {int (*f) (int a);};
2166 struct s2 {int (*f) (double a);};
2167 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2173 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2178 # Don't try gcc -ansi; that turns off useful extensions and
2179 # breaks some systems' header files.
2180 # AIX -qlanglvl=ansi
2181 # Ultrix and OSF/1 -std1
2182 # HP-UX 10.20 and later -Ae
2183 # HP-UX older versions -Aa -D_HPUX_SOURCE
2184 # SVR4 -Xc -D__EXTENSIONS__
2185 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2187 CC="$ac_save_CC $ac_arg"
2188 rm -f conftest.$ac_objext
2189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190 (eval $ac_compile) 2>&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); } &&
2194 { ac_try='test -s conftest.$ac_objext'
2195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; }; then
2200 ac_cv_prog_cc_stdc=$ac_arg
2203 echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2207 rm -f conftest.$ac_objext
2209 rm -f conftest.$ac_ext conftest.$ac_objext
2214 case "x$ac_cv_prog_cc_stdc" in
2216 echo "$as_me:$LINENO: result: none needed" >&5
2217 echo "${ECHO_T}none needed" >&6 ;;
2219 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2220 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2221 CC="$CC $ac_cv_prog_cc_stdc" ;;
2224 # Some people use a C++ compiler to compile C. Since we use `exit',
2225 # in C++ we need to declare it. In case someone uses the same compiler
2226 # for both compiling C and C++ we need to have the C++ compiler decide
2227 # the declaration of exit, since it's the most demanding environment.
2228 cat >conftest.$ac_ext <<_ACEOF
2233 rm -f conftest.$ac_objext
2234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235 (eval $ac_compile) 2>&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); } &&
2239 { ac_try='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 for ac_declaration in \
2247 '#include <stdlib.h>' \
2248 'extern "C" void std::exit (int) throw (); using std::exit;' \
2249 'extern "C" void std::exit (int); using std::exit;' \
2250 'extern "C" void exit (int) throw ();' \
2251 'extern "C" void exit (int);' \
2254 cat >conftest.$ac_ext <<_ACEOF
2255 #line $LINENO "configure"
2258 cat confdefs.h >>conftest.$ac_ext
2259 cat >>conftest.$ac_ext <<_ACEOF
2260 /* end confdefs.h. */
2271 rm -f conftest.$ac_objext
2272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273 (eval $ac_compile) 2>&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); } &&
2277 { ac_try='test -s conftest.$ac_objext'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2285 echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2290 rm -f conftest.$ac_objext conftest.$ac_ext
2291 cat >conftest.$ac_ext <<_ACEOF
2292 #line $LINENO "configure"
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2307 rm -f conftest.$ac_objext
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309 (eval $ac_compile) 2>&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); } &&
2313 { ac_try='test -s conftest.$ac_objext'
2314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; }; then
2321 echo "$as_me: failed program was:" >&5
2322 sed 's/^/| /' conftest.$ac_ext >&5
2325 rm -f conftest.$ac_objext conftest.$ac_ext
2328 if test -n "$ac_declaration"; then
2329 echo '#ifdef __cplusplus' >>confdefs.h
2330 echo $ac_declaration >>confdefs.h
2331 echo '#endif' >>confdefs.h
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2339 rm -f conftest.$ac_objext conftest.$ac_ext
2341 ac_cpp='$CPP $CPPFLAGS'
2342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347 ac_cpp='$CXXCPP $CPPFLAGS'
2348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2351 if test -n "$ac_tool_prefix"; then
2352 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2356 echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2358 if test "${ac_cv_prog_CXX+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 if test -n "$CXX"; then
2362 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2371 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 if test -n "$CXX"; then
2382 echo "$as_me:$LINENO: result: $CXX" >&5
2383 echo "${ECHO_T}$CXX" >&6
2385 echo "$as_me:$LINENO: result: no" >&5
2386 echo "${ECHO_T}no" >&6
2389 test -n "$CXX" && break
2392 if test -z "$CXX"; then
2394 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2396 # Extract the first word of "$ac_prog", so it can be a program name with args.
2397 set dummy $ac_prog; ac_word=$2
2398 echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 if test -n "$ac_ct_CXX"; then
2404 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413 ac_cv_prog_ac_ct_CXX="$ac_prog"
2414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2423 if test -n "$ac_ct_CXX"; then
2424 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2425 echo "${ECHO_T}$ac_ct_CXX" >&6
2427 echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6
2431 test -n "$ac_ct_CXX" && break
2433 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2439 # Provide some information about the compiler.
2440 echo "$as_me:$LINENO:" \
2441 "checking for C++ compiler version" >&5
2442 ac_compiler=`set X $ac_compile; echo $2`
2443 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2444 (eval $ac_compiler --version </dev/null >&5) 2>&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }
2448 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2449 (eval $ac_compiler -v </dev/null >&5) 2>&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }
2453 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2454 (eval $ac_compiler -V </dev/null >&5) 2>&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }
2459 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2460 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2461 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 cat >conftest.$ac_ext <<_ACEOF
2465 #line $LINENO "configure"
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2483 rm -f conftest.$ac_objext
2484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2485 (eval $ac_compile) 2>&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); } &&
2489 { ac_try='test -s conftest.$ac_objext'
2490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2497 echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2502 rm -f conftest.$ac_objext conftest.$ac_ext
2503 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2506 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2507 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2508 GXX=`test $ac_compiler_gnu = yes && echo yes`
2509 ac_test_CXXFLAGS=${CXXFLAGS+set}
2510 ac_save_CXXFLAGS=$CXXFLAGS
2512 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2513 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2514 if test "${ac_cv_prog_cxx_g+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 cat >conftest.$ac_ext <<_ACEOF
2518 #line $LINENO "configure"
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>conftest.$ac_ext <<_ACEOF
2523 /* end confdefs.h. */
2533 rm -f conftest.$ac_objext
2534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535 (eval $ac_compile) 2>&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); } &&
2539 { ac_try='test -s conftest.$ac_objext'
2540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; }; then
2545 ac_cv_prog_cxx_g=yes
2547 echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2552 rm -f conftest.$ac_objext conftest.$ac_ext
2554 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2555 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2556 if test "$ac_test_CXXFLAGS" = set; then
2557 CXXFLAGS=$ac_save_CXXFLAGS
2558 elif test $ac_cv_prog_cxx_g = yes; then
2559 if test "$GXX" = yes; then
2565 if test "$GXX" = yes; then
2571 for ac_declaration in \
2573 '#include <stdlib.h>' \
2574 'extern "C" void std::exit (int) throw (); using std::exit;' \
2575 'extern "C" void std::exit (int); using std::exit;' \
2576 'extern "C" void exit (int) throw ();' \
2577 'extern "C" void exit (int);' \
2580 cat >conftest.$ac_ext <<_ACEOF
2581 #line $LINENO "configure"
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2597 rm -f conftest.$ac_objext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599 (eval $ac_compile) 2>&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -s conftest.$ac_objext'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; }; then
2611 echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2616 rm -f conftest.$ac_objext conftest.$ac_ext
2617 cat >conftest.$ac_ext <<_ACEOF
2618 #line $LINENO "configure"
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h. */
2633 rm -f conftest.$ac_objext
2634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2635 (eval $ac_compile) 2>&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); } &&
2639 { ac_try='test -s conftest.$ac_objext'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2647 echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2651 rm -f conftest.$ac_objext conftest.$ac_ext
2654 if test -n "$ac_declaration"; then
2655 echo '#ifdef __cplusplus' >>confdefs.h
2656 echo $ac_declaration >>confdefs.h
2657 echo '#endif' >>confdefs.h
2661 ac_cpp='$CPP $CPPFLAGS'
2662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2666 if test "x$CC" != xcc; then
2667 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2668 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2670 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2671 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2673 set dummy $CC; ac_cc=`echo $2 |
2674 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2675 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 cat >conftest.$ac_ext <<_ACEOF
2679 #line $LINENO "configure"
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2694 # Make sure it works both with $CC and with simple cc.
2695 # We do the test twice because some compilers refuse to overwrite an
2696 # existing .o file with -o, though they will create one.
2697 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2698 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } &&
2703 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); };
2709 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2710 if test "x$CC" != xcc; then
2711 # Test first that cc exists at all.
2712 if { ac_try='cc -c conftest.$ac_ext >&5'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2718 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2719 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); } &&
2724 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); };
2733 # cc exists but doesn't like -o.
2734 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2739 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2744 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2745 echo "$as_me:$LINENO: result: yes" >&5
2746 echo "${ECHO_T}yes" >&6
2748 echo "$as_me:$LINENO: result: no" >&5
2749 echo "${ECHO_T}no" >&6
2751 cat >>confdefs.h <<\_ACEOF
2752 #define NO_MINUS_C_MINUS_O 1
2758 ac_cpp='$CPP $CPPFLAGS'
2759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2762 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2763 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2764 # On Suns, sometimes $CPP names a directory.
2765 if test -n "$CPP" && test -d "$CPP"; then
2768 if test -z "$CPP"; then
2769 if test "${ac_cv_prog_CPP+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 # Double quotes because CPP needs to be expanded
2773 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2776 for ac_c_preproc_warn_flag in '' yes
2778 # Use a header file that comes with gcc, so configuring glibc
2779 # with a fresh cross-compiler works.
2780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2781 # <limits.h> exists even on freestanding compilers.
2782 # On the NeXT, cc -E runs the code through the compiler's parser,
2783 # not just through cpp. "Syntax error" is here to catch this case.
2784 cat >conftest.$ac_ext <<_ACEOF
2785 #line $LINENO "configure"
2788 cat confdefs.h >>conftest.$ac_ext
2789 cat >>conftest.$ac_ext <<_ACEOF
2790 /* end confdefs.h. */
2792 # include <limits.h>
2794 # include <assert.h>
2798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2801 grep -v '^ *+' conftest.er1 >conftest.err
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } >/dev/null; then
2806 if test -s conftest.err; then
2807 ac_cpp_err=$ac_c_preproc_warn_flag
2814 if test -z "$ac_cpp_err"; then
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2820 # Broken: fails on valid input.
2823 rm -f conftest.err conftest.$ac_ext
2825 # OK, works on sane cases. Now check whether non-existent headers
2826 # can be detected and how.
2827 cat >conftest.$ac_ext <<_ACEOF
2828 #line $LINENO "configure"
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2834 #include <ac_nonexistent.h>
2836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2839 grep -v '^ *+' conftest.er1 >conftest.err
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } >/dev/null; then
2844 if test -s conftest.err; then
2845 ac_cpp_err=$ac_c_preproc_warn_flag
2852 if test -z "$ac_cpp_err"; then
2853 # Broken: success on invalid input.
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2859 # Passes both tests.
2863 rm -f conftest.err conftest.$ac_ext
2866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2867 rm -f conftest.err conftest.$ac_ext
2868 if $ac_preproc_ok; then
2880 echo "$as_me:$LINENO: result: $CPP" >&5
2881 echo "${ECHO_T}$CPP" >&6
2883 for ac_c_preproc_warn_flag in '' yes
2885 # Use a header file that comes with gcc, so configuring glibc
2886 # with a fresh cross-compiler works.
2887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2888 # <limits.h> exists even on freestanding compilers.
2889 # On the NeXT, cc -E runs the code through the compiler's parser,
2890 # not just through cpp. "Syntax error" is here to catch this case.
2891 cat >conftest.$ac_ext <<_ACEOF
2892 #line $LINENO "configure"
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h. */
2899 # include <limits.h>
2901 # include <assert.h>
2905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2908 grep -v '^ *+' conftest.er1 >conftest.err
2910 cat conftest.err >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } >/dev/null; then
2913 if test -s conftest.err; then
2914 ac_cpp_err=$ac_c_preproc_warn_flag
2921 if test -z "$ac_cpp_err"; then
2924 echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2927 # Broken: fails on valid input.
2930 rm -f conftest.err conftest.$ac_ext
2932 # OK, works on sane cases. Now check whether non-existent headers
2933 # can be detected and how.
2934 cat >conftest.$ac_ext <<_ACEOF
2935 #line $LINENO "configure"
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2941 #include <ac_nonexistent.h>
2943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2946 grep -v '^ *+' conftest.er1 >conftest.err
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } >/dev/null; then
2951 if test -s conftest.err; then
2952 ac_cpp_err=$ac_c_preproc_warn_flag
2959 if test -z "$ac_cpp_err"; then
2960 # Broken: success on invalid input.
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2966 # Passes both tests.
2970 rm -f conftest.err conftest.$ac_ext
2973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2974 rm -f conftest.err conftest.$ac_ext
2975 if $ac_preproc_ok; then
2978 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2979 See \`config.log' for more details." >&5
2980 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2981 See \`config.log' for more details." >&2;}
2982 { (exit 1); exit 1; }; }
2986 ac_cpp='$CPP $CPPFLAGS'
2987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2992 echo "$as_me:$LINENO: checking for egrep" >&5
2993 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2994 if test "${ac_cv_prog_egrep+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2998 then ac_cv_prog_egrep='grep -E'
2999 else ac_cv_prog_egrep='egrep'
3002 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3003 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3004 EGREP=$ac_cv_prog_egrep
3007 if test $ac_cv_c_compiler_gnu = yes; then
3008 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3009 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3010 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 ac_pattern="Autoconf.*'x'"
3014 cat >conftest.$ac_ext <<_ACEOF
3015 #line $LINENO "configure"
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3025 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3026 ac_cv_prog_gcc_traditional=yes
3028 ac_cv_prog_gcc_traditional=no
3033 if test $ac_cv_prog_gcc_traditional = no; then
3034 cat >conftest.$ac_ext <<_ACEOF
3035 #line $LINENO "configure"
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h. */
3044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3045 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3046 ac_cv_prog_gcc_traditional=yes
3052 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3053 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3054 if test $ac_cv_prog_gcc_traditional = yes; then
3055 CC="$CC -traditional"
3059 if test "x$CC" = xgcc
3061 cat >>confdefs.h <<\_ACEOF
3067 # Find a good install program. We prefer a C program (faster),
3068 # so one script is as good as another. But avoid the broken or
3069 # incompatible versions:
3070 # SysV /etc/install, /usr/sbin/install
3071 # SunOS /usr/etc/install
3072 # IRIX /sbin/install
3074 # AmigaOS /C/install, which installs bootblocks on floppy discs
3075 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3076 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3077 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3078 # ./install, which can be erroneously created by make from ./install.sh.
3079 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3080 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3081 if test -z "$INSTALL"; then
3082 if test "${ac_cv_path_install+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 # Account for people who put trailing slashes in PATH elements.
3092 ./ | .// | /cC/* | \
3093 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3096 # OSF1 and SCO ODT 3.0 have their own names for install.
3097 # Don't use installbsd from OSF since it installs stuff as root
3099 for ac_prog in ginstall scoinst install; do
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3102 if test $ac_prog = install &&
3103 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3104 # AIX install. It has an incompatible calling convention.
3106 elif test $ac_prog = install &&
3107 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3108 # program-specific install script used by HP pwplus--don't use.
3111 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3123 if test "${ac_cv_path_install+set}" = set; then
3124 INSTALL=$ac_cv_path_install
3126 # As a last resort, use the slow shell script. We don't cache a
3127 # path for INSTALL within a source directory, because that will
3128 # break other packages using the cache if that directory is
3129 # removed, or if the path is relative.
3130 INSTALL=$ac_install_sh
3133 echo "$as_me:$LINENO: result: $INSTALL" >&5
3134 echo "${ECHO_T}$INSTALL" >&6
3136 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3137 # It thinks the first close brace ends the variable substitution.
3138 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3140 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3142 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3144 if test -n "$ac_tool_prefix"; then
3145 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3146 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3147 echo "$as_me:$LINENO: checking for $ac_word" >&5
3148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3149 if test "${ac_cv_prog_RANLIB+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 if test -n "$RANLIB"; then
3153 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 RANLIB=$ac_cv_prog_RANLIB
3172 if test -n "$RANLIB"; then
3173 echo "$as_me:$LINENO: result: $RANLIB" >&5
3174 echo "${ECHO_T}$RANLIB" >&6
3176 echo "$as_me:$LINENO: result: no" >&5
3177 echo "${ECHO_T}no" >&6
3181 if test -z "$ac_cv_prog_RANLIB"; then
3182 ac_ct_RANLIB=$RANLIB
3183 # Extract the first word of "ranlib", so it can be a program name with args.
3184 set dummy ranlib; ac_word=$2
3185 echo "$as_me:$LINENO: checking for $ac_word" >&5
3186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3187 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 if test -n "$ac_ct_RANLIB"; then
3191 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200 ac_cv_prog_ac_ct_RANLIB="ranlib"
3201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3210 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3211 if test -n "$ac_ct_RANLIB"; then
3212 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3213 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3215 echo "$as_me:$LINENO: result: no" >&5
3216 echo "${ECHO_T}no" >&6
3219 RANLIB=$ac_ct_RANLIB
3221 RANLIB="$ac_cv_prog_RANLIB"
3224 # Extract the first word of "mv", so it can be a program name with args.
3225 set dummy mv; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_path_MV+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3256 if test -n "$MV"; then
3257 echo "$as_me:$LINENO: result: $MV" >&5
3258 echo "${ECHO_T}$MV" >&6
3260 echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3264 # Extract the first word of "rm", so it can be a program name with args.
3265 set dummy rm; ac_word=$2
3266 echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3268 if test "${ac_cv_path_RM+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3296 if test -n "$RM"; then
3297 echo "$as_me:$LINENO: result: $RM" >&5
3298 echo "${ECHO_T}$RM" >&6
3300 echo "$as_me:$LINENO: result: no" >&5
3301 echo "${ECHO_T}no" >&6
3304 # Extract the first word of "cp", so it can be a program name with args.
3305 set dummy cp; ac_word=$2
3306 echo "$as_me:$LINENO: checking for $ac_word" >&5
3307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3308 if test "${ac_cv_path_CP+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3336 if test -n "$CP"; then
3337 echo "$as_me:$LINENO: result: $CP" >&5
3338 echo "${ECHO_T}$CP" >&6
3340 echo "$as_me:$LINENO: result: no" >&5
3341 echo "${ECHO_T}no" >&6
3344 # Extract the first word of "sed", so it can be a program name with args.
3345 set dummy sed; ac_word=$2
3346 echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348 if test "${ac_cv_path_SED+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3363 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3376 if test -n "$SED"; then
3377 echo "$as_me:$LINENO: result: $SED" >&5
3378 echo "${ECHO_T}$SED" >&6
3380 echo "$as_me:$LINENO: result: no" >&5
3381 echo "${ECHO_T}no" >&6
3384 # Extract the first word of "awk", so it can be a program name with args.
3385 set dummy awk; ac_word=$2
3386 echo "$as_me:$LINENO: checking for $ac_word" >&5
3387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3388 if test "${ac_cv_path_AWK+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 test -z "$as_dir" && as_dir=.
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3416 if test -n "$AWK"; then
3417 echo "$as_me:$LINENO: result: $AWK" >&5
3418 echo "${ECHO_T}$AWK" >&6
3420 echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3424 # Extract the first word of "echo", so it can be a program name with args.
3425 set dummy echo; ac_word=$2
3426 echo "$as_me:$LINENO: checking for $ac_word" >&5
3427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3428 if test "${ac_cv_path_ECHO+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3454 ECHO=$ac_cv_path_ECHO
3456 if test -n "$ECHO"; then
3457 echo "$as_me:$LINENO: result: $ECHO" >&5
3458 echo "${ECHO_T}$ECHO" >&6
3460 echo "$as_me:$LINENO: result: no" >&5
3461 echo "${ECHO_T}no" >&6
3464 # Extract the first word of "cmp", so it can be a program name with args.
3465 set dummy cmp; ac_word=$2
3466 echo "$as_me:$LINENO: checking for $ac_word" >&5
3467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3468 if test "${ac_cv_path_CMP+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3496 if test -n "$CMP"; then
3497 echo "$as_me:$LINENO: result: $CMP" >&5
3498 echo "${ECHO_T}$CMP" >&6
3500 echo "$as_me:$LINENO: result: no" >&5
3501 echo "${ECHO_T}no" >&6
3504 # Extract the first word of "tbl", so it can be a program name with args.
3505 set dummy tbl; ac_word=$2
3506 echo "$as_me:$LINENO: checking for $ac_word" >&5
3507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3508 if test "${ac_cv_path_TBL+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3536 if test -n "$TBL"; then
3537 echo "$as_me:$LINENO: result: $TBL" >&5
3538 echo "${ECHO_T}$TBL" >&6
3540 echo "$as_me:$LINENO: result: no" >&5
3541 echo "${ECHO_T}no" >&6
3544 # Extract the first word of "ar", so it can be a program name with args.
3545 set dummy ar; ac_word=$2
3546 echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_path_AR+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3563 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3576 if test -n "$AR"; then
3577 echo "$as_me:$LINENO: result: $AR" >&5
3578 echo "${ECHO_T}$AR" >&6
3580 echo "$as_me:$LINENO: result: no" >&5
3581 echo "${ECHO_T}no" >&6
3584 # Extract the first word of "openssl", so it can be a program name with args.
3585 set dummy openssl; ac_word=$2
3586 echo "$as_me:$LINENO: checking for $ac_word" >&5
3587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3588 if test "${ac_cv_path_OPENSSL+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3603 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3614 OPENSSL=$ac_cv_path_OPENSSL
3616 if test -n "$OPENSSL"; then
3617 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3618 echo "${ECHO_T}$OPENSSL" >&6
3620 echo "$as_me:$LINENO: result: no" >&5
3621 echo "${ECHO_T}no" >&6
3624 # Extract the first word of "mtx", so it can be a program name with args.
3625 set dummy mtx; ac_word=$2
3626 echo "$as_me:$LINENO: checking for $ac_word" >&5
3627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3628 if test "${ac_cv_path_MTX+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3656 if test -n "$MTX"; then
3657 echo "$as_me:$LINENO: result: $MTX" >&5
3658 echo "${ECHO_T}$MTX" >&6
3660 echo "$as_me:$LINENO: result: no" >&5
3661 echo "${ECHO_T}no" >&6
3664 # Extract the first word of "pkg-config", so it can be a program name with args.
3665 set dummy pkg-config; ac_word=$2
3666 echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3668 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3683 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3690 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3694 PKGCONFIG=$ac_cv_path_PKGCONFIG
3696 if test -n "$PKGCONFIG"; then
3697 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3698 echo "${ECHO_T}$PKGCONFIG" >&6
3700 echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6
3704 # Extract the first word of "wx-config", so it can be a program name with args.
3705 set dummy wx-config; ac_word=$2
3706 echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3708 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3730 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3734 WXCONFIG=$ac_cv_path_WXCONFIG
3736 if test -n "$WXCONFIG"; then
3737 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3738 echo "${ECHO_T}$WXCONFIG" >&6
3740 echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6
3744 # Extract the first word of "cdrecord", so it can be a program name with args.
3745 set dummy cdrecord; ac_word=$2
3746 echo "$as_me:$LINENO: checking for $ac_word" >&5
3747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3748 if test "${ac_cv_path_CDRECORD+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 test -z "$as_dir" && as_dir=.
3761 for ac_exec_ext in '' $ac_executable_extensions; do
3762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3763 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
3764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 CDRECORD=$ac_cv_path_CDRECORD
3775 if test -n "$CDRECORD"; then
3776 echo "$as_me:$LINENO: result: $CDRECORD" >&5
3777 echo "${ECHO_T}$CDRECORD" >&6
3779 echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6
3784 test -n "$ARFLAG" || ARFLAGS="cr"
3797 # Make sure we can run config.sub.
3798 $ac_config_sub sun4 >/dev/null 2>&1 ||
3799 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3800 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3801 { (exit 1); exit 1; }; }
3803 echo "$as_me:$LINENO: checking build system type" >&5
3804 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3805 if test "${ac_cv_build+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 ac_cv_build_alias=$build_alias
3809 test -z "$ac_cv_build_alias" &&
3810 ac_cv_build_alias=`$ac_config_guess`
3811 test -z "$ac_cv_build_alias" &&
3812 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3813 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3814 { (exit 1); exit 1; }; }
3815 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3816 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3817 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3818 { (exit 1); exit 1; }; }
3821 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3822 echo "${ECHO_T}$ac_cv_build" >&6
3824 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3825 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3826 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3830 echo "$as_me:$LINENO: checking host system type" >&5
3831 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3832 if test "${ac_cv_host+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 ac_cv_host_alias=$host_alias
3836 test -z "$ac_cv_host_alias" &&
3837 ac_cv_host_alias=$ac_cv_build_alias
3838 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3839 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3840 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3841 { (exit 1); exit 1; }; }
3844 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3845 echo "${ECHO_T}$ac_cv_host" >&6
3847 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3848 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3849 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3853 *cygwin* ) CYGWIN=yes;;
3857 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3863 HAVE_SUN_OS_FALSE='#'
3865 HAVE_SUN_OS_TRUE='#'
3868 cat >>confdefs.h <<\_ACEOF
3869 #define HAVE_SUN_OS 1
3877 HAVE_SUN_OS_FALSE='#'
3879 HAVE_SUN_OS_TRUE='#'
3884 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3890 HAVE_OSF1_OS_FALSE='#'
3892 HAVE_OSF1_OS_TRUE='#'
3895 cat >>confdefs.h <<\_ACEOF
3896 #define HAVE_OSF1_OS 1
3904 HAVE_OSF1_OS_FALSE='#'
3906 HAVE_OSF1_OS_TRUE='#'
3911 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3917 HAVE_AIX_OS_FALSE='#'
3919 HAVE_AIX_OS_TRUE='#'
3922 cat >>confdefs.h <<\_ACEOF
3923 #define HAVE_AIX_OS 1
3931 HAVE_AIX_OS_FALSE='#'
3933 HAVE_AIX_OS_TRUE='#'
3938 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3944 HAVE_HPUX_OS_FALSE='#'
3946 HAVE_HPUX_OS_TRUE='#'
3949 cat >>confdefs.h <<\_ACEOF
3950 #define HAVE_HPUX_OS 1
3958 HAVE_HPUX_OS_FALSE='#'
3960 HAVE_HPUX_OS_TRUE='#'
3965 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3971 HAVE_LINUX_OS_FALSE='#'
3973 HAVE_LINUX_OS_TRUE='#'
3974 HAVE_LINUX_OS_FALSE=
3976 cat >>confdefs.h <<\_ACEOF
3977 #define HAVE_LINUX_OS 1
3985 HAVE_LINUX_OS_FALSE='#'
3987 HAVE_LINUX_OS_TRUE='#'
3988 HAVE_LINUX_OS_FALSE=
3992 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3997 HAVE_FREEBSD_OS_TRUE=
3998 HAVE_FREEBSD_OS_FALSE='#'
4000 HAVE_FREEBSD_OS_TRUE='#'
4001 HAVE_FREEBSD_OS_FALSE=
4003 cat >>confdefs.h <<\_ACEOF
4004 #define HAVE_FREEBSD_OS 1
4011 HAVE_FREEBSD_OS_TRUE=
4012 HAVE_FREEBSD_OS_FALSE='#'
4014 HAVE_FREEBSD_OS_TRUE='#'
4015 HAVE_FREEBSD_OS_FALSE=
4019 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4024 HAVE_NETBSD_OS_TRUE=
4025 HAVE_NETBSD_OS_FALSE='#'
4027 HAVE_NETBSD_OS_TRUE='#'
4028 HAVE_NETBSD_OS_FALSE=
4030 cat >>confdefs.h <<\_ACEOF
4031 #define HAVE_NETBSD_OS 1
4038 HAVE_NETBSD_OS_TRUE=
4039 HAVE_NETBSD_OS_FALSE='#'
4041 HAVE_NETBSD_OS_TRUE='#'
4042 HAVE_NETBSD_OS_FALSE=
4046 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4051 HAVE_OPENBSD_OS_TRUE=
4052 HAVE_OPENBSD_OS_FALSE='#'
4054 HAVE_OPENBSD_OS_TRUE='#'
4055 HAVE_OPENBSD_OS_FALSE=
4057 cat >>confdefs.h <<\_ACEOF
4058 #define HAVE_OPENBSD_OS 1
4065 HAVE_OPENBSD_OS_TRUE=
4066 HAVE_OPENBSD_OS_FALSE='#'
4068 HAVE_OPENBSD_OS_TRUE='#'
4069 HAVE_OPENBSD_OS_FALSE=
4073 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4079 HAVE_BSDI_OS_FALSE='#'
4081 HAVE_BSDI_OS_TRUE='#'
4084 cat >>confdefs.h <<\_ACEOF
4085 #define HAVE_BSDI_OS 1
4093 HAVE_BSDI_OS_FALSE='#'
4095 HAVE_BSDI_OS_TRUE='#'
4100 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4106 HAVE_SGI_OS_FALSE='#'
4108 HAVE_SGI_OS_TRUE='#'
4111 cat >>confdefs.h <<\_ACEOF
4112 #define HAVE_SGI_OS 1
4120 HAVE_SGI_OS_FALSE='#'
4122 HAVE_SGI_OS_TRUE='#'
4127 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4133 HAVE_IRIX_OS_FALSE='#'
4135 HAVE_IRIX_OS_TRUE='#'
4138 cat >>confdefs.h <<\_ACEOF
4139 #define HAVE_IRIX_OS 1
4147 HAVE_IRIX_OS_FALSE='#'
4149 HAVE_IRIX_OS_TRUE='#'
4154 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4159 HAVE_DARWIN_OS_TRUE=
4160 HAVE_DARWIN_OS_FALSE='#'
4162 HAVE_DARWIN_OS_TRUE='#'
4163 HAVE_DARWIN_OS_FALSE=
4165 cat >>confdefs.h <<\_ACEOF
4166 #define HAVE_DARWIN_OS 1
4173 HAVE_DARWIN_OS_TRUE=
4174 HAVE_DARWIN_OS_FALSE='#'
4176 HAVE_DARWIN_OS_TRUE='#'
4177 HAVE_DARWIN_OS_FALSE=
4182 # -----------------------------------------------------------
4183 # ----------------------------------------------------------
4184 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4185 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4186 if test "x$DISTNAME" != "x"
4188 echo "distname set to $DISTNAME"
4189 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4192 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4195 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4198 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4201 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4204 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4207 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4210 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4213 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4216 elif test -f /etc/SuSE-release
4219 elif test -d /etc/SuSEconfig
4222 elif test -f /etc/mandrake-release
4225 elif test -f /etc/whitebox-release
4228 elif test -f /etc/redhat-release
4231 elif test -f /etc/gentoo-release
4234 elif test -f /etc/debian_version
4237 elif test -f /etc/slackware-version
4240 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4243 elif test -f /etc/engarde-version
4246 elif test "$CYGWIN" = yes
4249 cat >>confdefs.h <<\_ACEOF
4250 #define HAVE_CYGWIN 1
4256 echo "$as_me:$LINENO: result: done" >&5
4257 echo "${ECHO_T}done" >&6
4260 # -----------------------------------------------------------
4261 # ----------------------------------------------------------
4266 INSIDE_GNOME_COMMON_TRUE=
4267 INSIDE_GNOME_COMMON_FALSE='#'
4269 INSIDE_GNOME_COMMON_TRUE='#'
4270 INSIDE_GNOME_COMMON_FALSE=
4273 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4275 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4278 # ------------------------------------------------------------------
4279 # If the user has not set --prefix, we set our default to nothing.
4280 # In this case, if the user has not set --sysconfdir, we set it
4281 # to the package default of /etc/bacula. If either --prefix or
4282 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4283 # ------------------------------------------------------------------
4284 if test x${prefix} = xNONE ; then
4285 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4286 sysconfdir=/etc/bacula
4290 sysconfdir=`eval echo ${sysconfdir}`
4292 # -------------------------------------------------------------------------
4293 # If the user has not set --exec-prefix, we default to ${prefix}
4294 # -------------------------------------------------------------------------
4295 if test x${exec_prefix} = xNONE ; then
4296 exec_prefix=${prefix}
4299 # ------------------------------------------------------------------
4300 # If the user has not set --sbindir, we set our default as /sbin
4301 # ------------------------------------------------------------------
4302 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4303 sbindir=${exec_prefix}/sbin
4305 sbindir=`eval echo ${sbindir}`
4307 # ------------------------------------------------------------------
4308 # All list of languages for which a translation exist. Each
4309 # language is separated by a space.
4310 # ------------------------------------------------------------------
4313 for ac_prog in msgfmt
4315 # Extract the first word of "$ac_prog", so it can be a program name with args.
4316 set dummy $ac_prog; ac_word=$2
4317 echo "$as_me:$LINENO: checking for $ac_word" >&5
4318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4319 if test "${ac_cv_path_MSGFMT+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 test -z "$as_dir" && as_dir=.
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4334 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 MSGFMT=$ac_cv_path_MSGFMT
4346 if test -n "$MSGFMT"; then
4347 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4348 echo "${ECHO_T}$MSGFMT" >&6
4350 echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6
4354 test -n "$MSGFMT" && break
4356 test -n "$MSGFMT" || MSGFMT="no"
4358 if test "$MSGFMT" = "no"
4360 echo 'msgfmt program not found, disabling NLS !'
4362 USE_INCLUDED_LIBINTL=no
4370 support_postgresql=no
4371 support_smartalloc=yes
4372 support_readline=yes
4375 support_wx_console=no
4377 support_static_tools=no
4378 support_static_fd=no
4379 support_static_sd=no
4380 support_static_dir=no
4381 support_static_cons=no
4382 build_client_only=no
4388 # -------------------------------------------
4389 # gnome (default off)
4390 # -------------------------------------------
4391 # Check whether --enable-gnome or --disable-gnome was given.
4392 if test "${enable_gnome+set}" = set; then
4393 enableval="$enable_gnome"
4394 if test x$enableval = xyes; then
4400 if test x$support_gnome = xyes; then
4401 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4403 if test $pkg = 0; then
4404 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4405 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4406 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4407 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4412 GNOME_DIR=src/gnome2-console
4413 gnome_version="Version 2.x"
4426 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4427 if test "${with_gnome_includes+set}" = set; then
4428 withval="$with_gnome_includes"
4430 CFLAGS="$CFLAGS -I$withval"
4435 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4436 if test "${with_gnome_libs+set}" = set; then
4437 withval="$with_gnome_libs"
4439 LDFLAGS="$LDFLAGS -L$withval"
4440 gnome_prefix=$withval
4445 # Check whether --with-gnome or --without-gnome was given.
4446 if test "${with_gnome+set}" = set; then
4447 withval="$with_gnome"
4448 if test x$withval = xyes; then
4452 if test "x$withval" = xno; then
4456 LDFLAGS="$LDFLAGS -L$withval/lib"
4457 CFLAGS="$CFLAGS -I$withval/include"
4458 gnome_prefix=$withval/lib
4465 if test "x$want_gnome" = xyes; then
4467 # Extract the first word of "gnome-config", so it can be a program name with args.
4468 set dummy gnome-config; ac_word=$2
4469 echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 case $GNOME_CONFIG in
4476 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4486 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4497 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4499 if test -n "$GNOME_CONFIG"; then
4500 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4501 echo "${ECHO_T}$GNOME_CONFIG" >&6
4503 echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6
4507 if test "$GNOME_CONFIG" = "no"; then
4508 no_gnome_config="yes"
4510 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4511 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4512 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4513 echo "$as_me:$LINENO: result: yes" >&5
4514 echo "${ECHO_T}yes" >&6
4517 # Extract the first word of "orbit-config", so it can be a program name with args.
4518 set dummy orbit-config; ac_word=$2
4519 echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4521 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 case $ORBIT_CONFIG in
4526 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4536 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4547 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4549 if test -n "$ORBIT_CONFIG"; then
4550 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4551 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4553 echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6
4557 # Extract the first word of "orbit-idl", so it can be a program name with args.
4558 set dummy orbit-idl; ac_word=$2
4559 echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4561 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4576 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4587 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4589 if test -n "$ORBIT_IDL"; then
4590 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4591 echo "${ECHO_T}$ORBIT_IDL" >&6
4593 echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6
4597 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4598 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4599 if test "${gnome_cv_orbit_found+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4604 gnome_cv_orbit_found=no
4606 gnome_cv_orbit_found=yes
4610 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4611 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4614 if test x$gnome_cv_orbit_found = xyes; then
4616 HAVE_ORBIT_FALSE='#'
4621 if test x$gnome_cv_orbit_found = xyes; then
4623 ORBIT_CFLAGS=`orbit-config --cflags client server`
4624 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4628 if test xfail = xfailure; then
4629 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4630 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4631 { (exit 1); exit 1; }; }
4635 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4636 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4637 if test "${gnome_cv_gnorba_found+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 gnome_cv_gnorba_found=no
4642 if test x$gnome_cv_orbit_found = xyes; then
4643 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4644 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4645 if test -n "$GNORBA_LIBS"; then
4646 gnome_cv_gnorba_found=yes
4651 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4652 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4655 if test x$gnome_cv_gnorba_found = xyes; then
4657 HAVE_GNORBA_FALSE='#'
4659 HAVE_GNORBA_TRUE='#'
4662 if test x$gnome_cv_orbit_found = xyes; then
4664 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4665 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4669 if test xfail = xfailure; then
4670 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4671 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4672 { (exit 1); exit 1; }; }
4676 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4677 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4678 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4679 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4680 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4681 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4682 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4685 echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6
4687 no_gnome_config="yes"
4691 if test x$exec_prefix = xNONE; then
4692 if test x$prefix = xNONE; then
4693 gnome_prefix=$ac_default_prefix/lib
4695 gnome_prefix=$prefix/lib
4698 gnome_prefix=`eval echo \`echo $libdir\``
4701 if test "$no_gnome_config" = "yes"; then
4702 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4703 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4704 if test -f $gnome_prefix/gnomeConf.sh; then
4705 echo "$as_me:$LINENO: result: found" >&5
4706 echo "${ECHO_T}found" >&6
4707 echo "loading gnome configuration from" \
4708 "$gnome_prefix/gnomeConf.sh"
4709 . $gnome_prefix/gnomeConf.sh
4712 echo "$as_me:$LINENO: result: not found" >&5
4713 echo "${ECHO_T}not found" >&6
4714 if test xfail = xfail; then
4715 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4716 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4717 { (exit 1); exit 1; }; }
4726 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4727 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4731 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4732 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4733 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4736 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4737 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4738 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4741 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4742 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4743 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4745 echo "$as_me:$LINENO: result: unknown library" >&5
4746 echo "${ECHO_T}unknown library" >&6
4748 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4749 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4754 GNOME_DIR=src/gnome-console
4755 gnome_version="Version 1.4"
4761 # -------------------------------------------
4762 # wx-console (default off)
4763 # -------------------------------------------
4764 # Check whether --enable-wx-console or --disable-wx-console was given.
4765 if test "${enable_wx_console+set}" = set; then
4766 enableval="$enable_wx_console"
4767 if test x$enableval = xyes; then
4768 support_wx_console=yes
4773 if test x$support_wx_console = xyes; then
4774 abc=`$WXCONFIG --cppflags`
4776 if test $pkg = 0; then
4777 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4778 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4781 WX_DIR=src/wx-console
4784 echo "wx-config program not found. wx-console disabled."
4786 support_wx_console=no
4792 # -------------------------------------------
4793 # tray-monitor (default off)
4794 # -------------------------------------------
4795 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4796 if test "${enable_tray_monitor+set}" = set; then
4797 enableval="$enable_tray_monitor"
4798 if test x$enableval = xyes; then
4799 support_tray_monitor=yes
4804 if test x$support_tray_monitor = xyes; then
4805 abc=`$PKGCONFIG --exists gtk+-2.0`
4807 if test $pkg = 0; then
4808 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4809 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4812 TRAY_MONITOR_DIR=src/tray-monitor
4813 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4815 if test $pkg = 0; then
4816 cat >>confdefs.h <<\_ACEOF
4817 #define HAVE_GTK_2_4 1
4825 # -------------------------------------------
4826 # smartalloc (default off)
4827 # -------------------------------------------
4828 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4829 if test "${enable_smartalloc+set}" = set; then
4830 enableval="$enable_smartalloc"
4831 if test x$enableval = xno; then
4832 support_smartalloc=no
4836 if test x$support_smartalloc = xyes; then
4837 cat >>confdefs.h <<\_ACEOF
4838 #define SMARTALLOC 1
4843 # -------------------------------------------
4844 # static-tools (default off)
4845 # -------------------------------------------
4846 # Check whether --enable-static-tools or --disable-static-tools was given.
4847 if test "${enable_static_tools+set}" = set; then
4848 enableval="$enable_static_tools"
4849 if test x$enableval = xyes; then
4850 support_static_tools=yes
4855 if test x$support_static_tools = xyes; then
4856 TTOOL_LDFLAGS="-static"
4860 # -------------------------------------------
4861 # static-fd (default off)
4862 # -------------------------------------------
4863 # Check whether --enable-static-fd or --disable-static-fd was given.
4864 if test "${enable_static_fd+set}" = set; then
4865 enableval="$enable_static_fd"
4866 if test x$enableval = xyes; then
4867 support_static_fd=yes
4872 if test x$support_static_fd = xyes; then
4873 STATIC_FD="static-bacula-fd"
4877 # -------------------------------------------
4878 # static-sd (default off)
4879 # -------------------------------------------
4880 # Check whether --enable-static-sd or --disable-static-sd was given.
4881 if test "${enable_static_sd+set}" = set; then
4882 enableval="$enable_static_sd"
4883 if test x$enableval = xyes; then
4884 support_static_sd=yes
4889 if test x$support_static_sd = xyes; then
4890 STATIC_SD="static-bacula-sd"
4894 # -------------------------------------------
4895 # static-dir (default off)
4896 # -------------------------------------------
4897 # Check whether --enable-static-dir or --disable-static-dir was given.
4898 if test "${enable_static_dir+set}" = set; then
4899 enableval="$enable_static_dir"
4900 if test x$enableval = xyes; then
4901 support_static_dir=yes
4906 if test x$support_static_dir = xyes; then
4907 STATIC_DIR="static-bacula-dir"
4911 # -------------------------------------------
4912 # static-cons (default off)
4913 # -------------------------------------------
4914 # Check whether --enable-static-cons or --disable-static-cons was given.
4915 if test "${enable_static_cons+set}" = set; then
4916 enableval="$enable_static_cons"
4917 if test x$enableval = xyes; then
4918 support_static_cons=yes
4925 if test x$support_static_cons = xyes; then
4926 STATIC_CONS="static-bconsole"
4927 STATIC_GNOME_CONS="static-gnome-console"
4928 STATIC_WX_CONS="static-wx-console"
4934 # -------------------------------------------
4935 # client_only (default off)
4936 # -------------------------------------------
4937 # Check whether --enable-client-only or --disable-client-only was given.
4938 if test "${enable_client_only+set}" = set; then
4939 enableval="$enable_client_only"
4940 if test x$enableval = xyes; then
4941 build_client_only=yes
4946 if test x$build_client_only = xno; then
4953 # ---------------------------------------------------
4954 # Check for conio (Bacula readline substitute)(
4955 # ---------------------------------------------------
4956 # this allows you to turn it completely off
4957 # Check whether --enable-conio or --disable-conio was given.
4958 if test "${enable_conio+set}" = set; then
4959 enableval="$enable_conio"
4960 if test x$enableval = xno; then
4966 if test x$support_conio = xyes; then
4967 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4968 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4969 if test "${ac_cv_header_stdc+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 cat >conftest.$ac_ext <<_ACEOF
4973 #line $LINENO "configure"
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4992 rm -f conftest.$ac_objext
4993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4994 (eval $ac_compile) 2>&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } &&
4998 { ac_try='test -s conftest.$ac_objext'
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; }; then
5004 ac_cv_header_stdc=yes
5006 echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5009 ac_cv_header_stdc=no
5011 rm -f conftest.$ac_objext conftest.$ac_ext
5013 if test $ac_cv_header_stdc = yes; then
5014 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5015 cat >conftest.$ac_ext <<_ACEOF
5016 #line $LINENO "configure"
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5026 $EGREP "memchr" >/dev/null 2>&1; then
5029 ac_cv_header_stdc=no
5035 if test $ac_cv_header_stdc = yes; then
5036 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5037 cat >conftest.$ac_ext <<_ACEOF
5038 #line $LINENO "configure"
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5048 $EGREP "free" >/dev/null 2>&1; then
5051 ac_cv_header_stdc=no
5057 if test $ac_cv_header_stdc = yes; then
5058 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5059 if test "$cross_compiling" = yes; then
5062 cat >conftest.$ac_ext <<_ACEOF
5063 #line $LINENO "configure"
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5070 #if ((' ' & 0x0FF) == 0x020)
5071 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5072 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5074 # define ISLOWER(c) \
5075 (('a' <= (c) && (c) <= 'i') \
5076 || ('j' <= (c) && (c) <= 'r') \
5077 || ('s' <= (c) && (c) <= 'z'))
5078 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5081 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5086 for (i = 0; i < 256; i++)
5087 if (XOR (islower (i), ISLOWER (i))
5088 || toupper (i) != TOUPPER (i))
5093 rm -f conftest$ac_exeext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5095 (eval $ac_link) 2>&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; }; then
5106 echo "$as_me: program exited with status $ac_status" >&5
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5111 ac_cv_header_stdc=no
5113 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5117 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5118 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5119 if test $ac_cv_header_stdc = yes; then
5121 cat >>confdefs.h <<\_ACEOF
5122 #define STDC_HEADERS 1
5127 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5137 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5138 inttypes.h stdint.h unistd.h
5140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5141 echo "$as_me:$LINENO: checking for $ac_header" >&5
5142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 cat >conftest.$ac_ext <<_ACEOF
5147 #line $LINENO "configure"
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5153 $ac_includes_default
5155 #include <$ac_header>
5157 rm -f conftest.$ac_objext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5159 (eval $ac_compile) 2>&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } &&
5163 { ac_try='test -s conftest.$ac_objext'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; }; then
5169 eval "$as_ac_Header=yes"
5171 echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5174 eval "$as_ac_Header=no"
5176 rm -f conftest.$ac_objext conftest.$ac_ext
5178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5181 cat >>confdefs.h <<_ACEOF
5182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5190 if test "${ac_cv_header_termcap_h+set}" = set; then
5191 echo "$as_me:$LINENO: checking for termcap.h" >&5
5192 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5193 if test "${ac_cv_header_termcap_h+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5197 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5199 # Is the header compilable?
5200 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5201 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5202 cat >conftest.$ac_ext <<_ACEOF
5203 #line $LINENO "configure"
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 $ac_includes_default
5210 #include <termcap.h>
5212 rm -f conftest.$ac_objext
5213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5214 (eval $ac_compile) 2>&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); } &&
5218 { ac_try='test -s conftest.$ac_objext'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; }; then
5224 ac_header_compiler=yes
5226 echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.$ac_ext >&5
5229 ac_header_compiler=no
5231 rm -f conftest.$ac_objext conftest.$ac_ext
5232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5233 echo "${ECHO_T}$ac_header_compiler" >&6
5235 # Is the header present?
5236 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5237 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5238 cat >conftest.$ac_ext <<_ACEOF
5239 #line $LINENO "configure"
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h. */
5245 #include <termcap.h>
5247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5250 grep -v '^ *+' conftest.er1 >conftest.err
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } >/dev/null; then
5255 if test -s conftest.err; then
5256 ac_cpp_err=$ac_c_preproc_warn_flag
5263 if test -z "$ac_cpp_err"; then
5264 ac_header_preproc=yes
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5269 ac_header_preproc=no
5271 rm -f conftest.err conftest.$ac_ext
5272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5273 echo "${ECHO_T}$ac_header_preproc" >&6
5275 # So? What about this header?
5276 case $ac_header_compiler:$ac_header_preproc in
5278 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5279 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5280 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5281 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5284 ## ------------------------------------ ##
5285 ## Report this to bug-autoconf@gnu.org. ##
5286 ## ------------------------------------ ##
5289 sed "s/^/$as_me: WARNING: /" >&2
5292 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5293 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5294 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5295 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5296 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5297 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5300 ## ------------------------------------ ##
5301 ## Report this to bug-autoconf@gnu.org. ##
5302 ## ------------------------------------ ##
5305 sed "s/^/$as_me: WARNING: /" >&2
5308 echo "$as_me:$LINENO: checking for termcap.h" >&5
5309 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5310 if test "${ac_cv_header_termcap_h+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 ac_cv_header_termcap_h=$ac_header_preproc
5315 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5316 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5319 if test $ac_cv_header_termcap_h = yes; then
5320 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5321 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5322 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 ac_check_lib_save_LIBS=$LIBS
5326 LIBS="-ltermcap $LIBS"
5327 cat >conftest.$ac_ext <<_ACEOF
5328 #line $LINENO "configure"
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h. */
5335 /* Override any gcc2 internal prototype to avoid an error. */
5339 /* We use char because int might match the return type of a gcc2
5340 builtin and then its argument prototype would still apply. */
5350 rm -f conftest.$ac_objext conftest$ac_exeext
5351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5352 (eval $ac_link) 2>&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } &&
5356 { ac_try='test -s conftest$ac_exeext'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5362 ac_cv_lib_termcap_tgetent=yes
5364 echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5367 ac_cv_lib_termcap_tgetent=no
5369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5370 LIBS=$ac_check_lib_save_LIBS
5372 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5373 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5374 if test $ac_cv_lib_termcap_tgetent = yes; then
5375 CONS_LIBS="-ltermcap"
5381 cat >>confdefs.h <<\_ACEOF
5382 #define HAVE_CONIO 1
5387 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5388 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5389 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 ac_check_lib_save_LIBS=$LIBS
5393 LIBS="-lncurses $LIBS"
5394 cat >conftest.$ac_ext <<_ACEOF
5395 #line $LINENO "configure"
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h. */
5402 /* Override any gcc2 internal prototype to avoid an error. */
5406 /* We use char because int might match the return type of a gcc2
5407 builtin and then its argument prototype would still apply. */
5417 rm -f conftest.$ac_objext conftest$ac_exeext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5419 (eval $ac_link) 2>&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } &&
5423 { ac_try='test -s conftest$ac_exeext'
5424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }; }; then
5429 ac_cv_lib_ncurses_tgetent=yes
5431 echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5434 ac_cv_lib_ncurses_tgetent=no
5436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5437 LIBS=$ac_check_lib_save_LIBS
5439 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5440 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5441 if test $ac_cv_lib_ncurses_tgetent = yes; then
5442 CONS_LIBS="-lncurses"
5448 cat >>confdefs.h <<\_ACEOF
5449 #define HAVE_CONIO 1
5462 for ac_header in curses.h
5464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5466 echo "$as_me:$LINENO: checking for $ac_header" >&5
5467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5474 # Is the header compilable?
5475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5477 cat >conftest.$ac_ext <<_ACEOF
5478 #line $LINENO "configure"
5481 cat confdefs.h >>conftest.$ac_ext
5482 cat >>conftest.$ac_ext <<_ACEOF
5483 /* end confdefs.h. */
5484 $ac_includes_default
5485 #include <$ac_header>
5487 rm -f conftest.$ac_objext
5488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5489 (eval $ac_compile) 2>&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } &&
5493 { ac_try='test -s conftest.$ac_objext'
5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; }; then
5499 ac_header_compiler=yes
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5504 ac_header_compiler=no
5506 rm -f conftest.$ac_objext conftest.$ac_ext
5507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5508 echo "${ECHO_T}$ac_header_compiler" >&6
5510 # Is the header present?
5511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5513 cat >conftest.$ac_ext <<_ACEOF
5514 #line $LINENO "configure"
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 #include <$ac_header>
5522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5525 grep -v '^ *+' conftest.er1 >conftest.err
5527 cat conftest.err >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } >/dev/null; then
5530 if test -s conftest.err; then
5531 ac_cpp_err=$ac_c_preproc_warn_flag
5538 if test -z "$ac_cpp_err"; then
5539 ac_header_preproc=yes
5541 echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5544 ac_header_preproc=no
5546 rm -f conftest.err conftest.$ac_ext
5547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5548 echo "${ECHO_T}$ac_header_preproc" >&6
5550 # So? What about this header?
5551 case $ac_header_compiler:$ac_header_preproc in
5553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5559 ## ------------------------------------ ##
5560 ## Report this to bug-autoconf@gnu.org. ##
5561 ## ------------------------------------ ##
5564 sed "s/^/$as_me: WARNING: /" >&2
5567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5575 ## ------------------------------------ ##
5576 ## Report this to bug-autoconf@gnu.org. ##
5577 ## ------------------------------------ ##
5580 sed "s/^/$as_me: WARNING: /" >&2
5583 echo "$as_me:$LINENO: checking for $ac_header" >&5
5584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 eval "$as_ac_Header=$ac_header_preproc"
5590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5595 cat >>confdefs.h <<_ACEOF
5596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5603 echo "$as_me:$LINENO: checking for term.h" >&5
5604 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5605 if test "${ac_cv_header_term_h+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 cat >conftest.$ac_ext <<_ACEOF
5609 #line $LINENO "configure"
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5622 rm -f conftest.$ac_objext
5623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5624 (eval $ac_compile) 2>&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } &&
5628 { ac_try='test -s conftest.$ac_objext'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; }; then
5634 ac_cv_header_term_h=yes
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5639 ac_cv_header_term_h=no
5641 rm -f conftest.$ac_objext conftest.$ac_ext
5643 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5644 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5645 if test $ac_cv_header_term_h = yes; then
5646 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5647 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5648 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 ac_check_lib_save_LIBS=$LIBS
5652 LIBS="-lcurses $LIBS"
5653 cat >conftest.$ac_ext <<_ACEOF
5654 #line $LINENO "configure"
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5661 /* Override any gcc2 internal prototype to avoid an error. */
5665 /* We use char because int might match the return type of a gcc2
5666 builtin and then its argument prototype would still apply. */
5676 rm -f conftest.$ac_objext conftest$ac_exeext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5678 (eval $ac_link) 2>&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } &&
5682 { ac_try='test -s conftest$ac_exeext'
5683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; }; then
5688 ac_cv_lib_curses_tgetent=yes
5690 echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5693 ac_cv_lib_curses_tgetent=no
5695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5696 LIBS=$ac_check_lib_save_LIBS
5698 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5699 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5700 if test $ac_cv_lib_curses_tgetent = yes; then
5701 CONS_LIBS="-lcurses"
5707 cat >>confdefs.h <<\_ACEOF
5708 #define HAVE_CONIO 1
5716 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5727 # ---------------------------------------------------
5728 # Check for readline support/directory (default off)
5729 # ---------------------------------------------------
5730 # this allows you to turn it completely off
5731 # Check whether --enable-readline or --disable-readline was given.
5732 if test "${enable_readline+set}" = set; then
5733 enableval="$enable_readline"
5734 if test x$enableval = xno; then
5741 if test x$support_readline = xyes; then
5743 # Check whether --with-readline or --without-readline was given.
5744 if test "${with_readline+set}" = set; then
5745 withval="$with_readline"
5747 case "$with_readline" in
5750 if test "$with_readline" != "yes"; then
5751 CONS_INC="-I${with_readline}"
5752 CONS_LDFLAGS="-L$with_readline"
5754 with_readline="/usr/include/readline"
5756 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5758 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5759 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5766 # Is the header compilable?
5767 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5768 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5769 cat >conftest.$ac_ext <<_ACEOF
5770 #line $LINENO "configure"
5773 cat confdefs.h >>conftest.$ac_ext
5774 cat >>conftest.$ac_ext <<_ACEOF
5775 /* end confdefs.h. */
5776 $ac_includes_default
5777 #include <${with_readline}/readline.h>
5779 rm -f conftest.$ac_objext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781 (eval $ac_compile) 2>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try='test -s conftest.$ac_objext'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 ac_header_compiler=yes
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5796 ac_header_compiler=no
5798 rm -f conftest.$ac_objext conftest.$ac_ext
5799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5800 echo "${ECHO_T}$ac_header_compiler" >&6
5802 # Is the header present?
5803 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5804 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5805 cat >conftest.$ac_ext <<_ACEOF
5806 #line $LINENO "configure"
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5812 #include <${with_readline}/readline.h>
5814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5817 grep -v '^ *+' conftest.er1 >conftest.err
5819 cat conftest.err >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); } >/dev/null; then
5822 if test -s conftest.err; then
5823 ac_cpp_err=$ac_c_preproc_warn_flag
5830 if test -z "$ac_cpp_err"; then
5831 ac_header_preproc=yes
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5836 ac_header_preproc=no
5838 rm -f conftest.err conftest.$ac_ext
5839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5840 echo "${ECHO_T}$ac_header_preproc" >&6
5842 # So? What about this header?
5843 case $ac_header_compiler:$ac_header_preproc in
5845 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5846 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5847 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5848 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5851 ## ------------------------------------ ##
5852 ## Report this to bug-autoconf@gnu.org. ##
5853 ## ------------------------------------ ##
5856 sed "s/^/$as_me: WARNING: /" >&2
5859 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5860 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5861 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5862 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5863 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5864 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5867 ## ------------------------------------ ##
5868 ## Report this to bug-autoconf@gnu.org. ##
5869 ## ------------------------------------ ##
5872 sed "s/^/$as_me: WARNING: /" >&2
5875 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5876 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 eval "$as_ac_Header=$ac_header_preproc"
5882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5887 cat >>confdefs.h <<\_ACEOF
5888 #define HAVE_READLINE 1
5891 CONS_LIBS="-lreadline -ltermcap"
5896 echo "readline.h not found. readline turned off ..."
5908 # check for standard readline library
5909 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5910 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5911 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5912 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5916 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5918 # Is the header compilable?
5919 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5920 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5921 cat >conftest.$ac_ext <<_ACEOF
5922 #line $LINENO "configure"
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5928 $ac_includes_default
5929 #include </usr/include/readline/readline.h>
5931 rm -f conftest.$ac_objext
5932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5933 (eval $ac_compile) 2>&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -s conftest.$ac_objext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 ac_header_compiler=yes
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5948 ac_header_compiler=no
5950 rm -f conftest.$ac_objext conftest.$ac_ext
5951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5952 echo "${ECHO_T}$ac_header_compiler" >&6
5954 # Is the header present?
5955 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5956 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $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 </usr/include/readline/readline.h>
5966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5969 grep -v '^ *+' conftest.er1 >conftest.err
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } >/dev/null; then
5974 if test -s conftest.err; then
5975 ac_cpp_err=$ac_c_preproc_warn_flag
5982 if test -z "$ac_cpp_err"; then
5983 ac_header_preproc=yes
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5988 ac_header_preproc=no
5990 rm -f conftest.err conftest.$ac_ext
5991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5992 echo "${ECHO_T}$ac_header_preproc" >&6
5994 # So? What about this header?
5995 case $ac_header_compiler:$ac_header_preproc in
5997 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5998 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5999 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6000 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6003 ## ------------------------------------ ##
6004 ## Report this to bug-autoconf@gnu.org. ##
6005 ## ------------------------------------ ##
6008 sed "s/^/$as_me: WARNING: /" >&2
6011 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6012 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6013 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6014 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6015 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6016 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6019 ## ------------------------------------ ##
6020 ## Report this to bug-autoconf@gnu.org. ##
6021 ## ------------------------------------ ##
6024 sed "s/^/$as_me: WARNING: /" >&2
6027 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6028 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6029 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6034 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6035 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6038 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6039 cat >>confdefs.h <<\_ACEOF
6040 #define HAVE_READLINE 1
6044 CONS_INC="-I/usr/include/readline"
6045 CONS_LIBS="-lreadline -ltermcap"
6049 # Did not find standard library, so try Bacula's default
6050 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6052 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6053 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6060 # Is the header compilable?
6061 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6062 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6063 cat >conftest.$ac_ext <<_ACEOF
6064 #line $LINENO "configure"
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 $ac_includes_default
6071 #include <${TOP_DIR}/depkgs/readline/readline.h>
6073 rm -f conftest.$ac_objext
6074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6075 (eval $ac_compile) 2>&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } &&
6079 { ac_try='test -s conftest.$ac_objext'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6085 ac_header_compiler=yes
6087 echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6090 ac_header_compiler=no
6092 rm -f conftest.$ac_objext conftest.$ac_ext
6093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6094 echo "${ECHO_T}$ac_header_compiler" >&6
6096 # Is the header present?
6097 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6098 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6099 cat >conftest.$ac_ext <<_ACEOF
6100 #line $LINENO "configure"
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h. */
6106 #include <${TOP_DIR}/depkgs/readline/readline.h>
6108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6111 grep -v '^ *+' conftest.er1 >conftest.err
6113 cat conftest.err >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } >/dev/null; then
6116 if test -s conftest.err; then
6117 ac_cpp_err=$ac_c_preproc_warn_flag
6124 if test -z "$ac_cpp_err"; then
6125 ac_header_preproc=yes
6127 echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6130 ac_header_preproc=no
6132 rm -f conftest.err conftest.$ac_ext
6133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6134 echo "${ECHO_T}$ac_header_preproc" >&6
6136 # So? What about this header?
6137 case $ac_header_compiler:$ac_header_preproc in
6139 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6140 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6141 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6142 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6145 ## ------------------------------------ ##
6146 ## Report this to bug-autoconf@gnu.org. ##
6147 ## ------------------------------------ ##
6150 sed "s/^/$as_me: WARNING: /" >&2
6153 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6154 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6155 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6156 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6157 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6158 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6161 ## ------------------------------------ ##
6162 ## Report this to bug-autoconf@gnu.org. ##
6163 ## ------------------------------------ ##
6166 sed "s/^/$as_me: WARNING: /" >&2
6169 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6170 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 eval "$as_ac_Header=$ac_header_preproc"
6176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6181 cat >>confdefs.h <<\_ACEOF
6182 #define HAVE_READLINE 1
6186 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6187 CONS_LIBS="-lreadline -lhistory -ltermcap"
6188 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6189 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6193 echo "readline.h not found. readline turned off ..."
6219 # Minimal stuff for readline Makefile configuration
6222 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6223 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6224 if test "${ac_cv_header_stat_broken+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 cat >conftest.$ac_ext <<_ACEOF
6228 #line $LINENO "configure"
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 #include <sys/types.h>
6235 #include <sys/stat.h>
6237 #if defined(S_ISBLK) && defined(S_IFDIR)
6238 # if S_ISBLK (S_IFDIR)
6243 #if defined(S_ISBLK) && defined(S_IFCHR)
6244 # if S_ISBLK (S_IFCHR)
6249 #if defined(S_ISLNK) && defined(S_IFREG)
6250 # if S_ISLNK (S_IFREG)
6255 #if defined(S_ISSOCK) && defined(S_IFREG)
6256 # if S_ISSOCK (S_IFREG)
6262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6263 $EGREP "You lose" >/dev/null 2>&1; then
6264 ac_cv_header_stat_broken=yes
6266 ac_cv_header_stat_broken=no
6271 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6272 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6273 if test $ac_cv_header_stat_broken = yes; then
6275 cat >>confdefs.h <<\_ACEOF
6276 #define STAT_MACROS_BROKEN 1
6287 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6288 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6289 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6290 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 cat >conftest.$ac_ext <<_ACEOF
6295 #line $LINENO "configure"
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6301 #include <sys/types.h>
6313 rm -f conftest.$ac_objext
6314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6315 (eval $ac_compile) 2>&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } &&
6319 { ac_try='test -s conftest.$ac_objext'
6320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
6325 eval "$as_ac_Header=yes"
6327 echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6330 eval "$as_ac_Header=no"
6332 rm -f conftest.$ac_objext conftest.$ac_ext
6334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6337 cat >>confdefs.h <<_ACEOF
6338 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6341 ac_header_dirent=$ac_hdr; break
6345 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6346 if test $ac_header_dirent = dirent.h; then
6347 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6348 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6349 if test "${ac_cv_search_opendir+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 ac_func_search_save_LIBS=$LIBS
6353 ac_cv_search_opendir=no
6354 cat >conftest.$ac_ext <<_ACEOF
6355 #line $LINENO "configure"
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6362 /* Override any gcc2 internal prototype to avoid an error. */
6366 /* We use char because int might match the return type of a gcc2
6367 builtin and then its argument prototype would still apply. */
6377 rm -f conftest.$ac_objext conftest$ac_exeext
6378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6379 (eval $ac_link) 2>&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); } &&
6383 { ac_try='test -s conftest$ac_exeext'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; }; then
6389 ac_cv_search_opendir="none required"
6391 echo "$as_me: failed program was:" >&5
6392 sed 's/^/| /' conftest.$ac_ext >&5
6395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6396 if test "$ac_cv_search_opendir" = no; then
6397 for ac_lib in dir; do
6398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6399 cat >conftest.$ac_ext <<_ACEOF
6400 #line $LINENO "configure"
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6407 /* Override any gcc2 internal prototype to avoid an error. */
6411 /* We use char because int might match the return type of a gcc2
6412 builtin and then its argument prototype would still apply. */
6422 rm -f conftest.$ac_objext conftest$ac_exeext
6423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6424 (eval $ac_link) 2>&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); } &&
6428 { ac_try='test -s conftest$ac_exeext'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 ac_cv_search_opendir="-l$ac_lib"
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6444 LIBS=$ac_func_search_save_LIBS
6446 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6447 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6448 if test "$ac_cv_search_opendir" != no; then
6449 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6454 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6455 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6456 if test "${ac_cv_search_opendir+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 ac_func_search_save_LIBS=$LIBS
6460 ac_cv_search_opendir=no
6461 cat >conftest.$ac_ext <<_ACEOF
6462 #line $LINENO "configure"
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6469 /* Override any gcc2 internal prototype to avoid an error. */
6473 /* We use char because int might match the return type of a gcc2
6474 builtin and then its argument prototype would still apply. */
6484 rm -f conftest.$ac_objext conftest$ac_exeext
6485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6486 (eval $ac_link) 2>&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } &&
6490 { ac_try='test -s conftest$ac_exeext'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 ac_cv_search_opendir="none required"
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6503 if test "$ac_cv_search_opendir" = no; then
6505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6506 cat >conftest.$ac_ext <<_ACEOF
6507 #line $LINENO "configure"
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6514 /* Override any gcc2 internal prototype to avoid an error. */
6518 /* We use char because int might match the return type of a gcc2
6519 builtin and then its argument prototype would still apply. */
6529 rm -f conftest.$ac_objext conftest$ac_exeext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531 (eval $ac_link) 2>&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } &&
6535 { ac_try='test -s conftest$ac_exeext'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; }; then
6541 ac_cv_search_opendir="-l$ac_lib"
6544 echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6551 LIBS=$ac_func_search_save_LIBS
6553 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6554 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6555 if test "$ac_cv_search_opendir" != no; then
6556 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6570 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6573 echo "$as_me:$LINENO: checking for $ac_func" >&5
6574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6575 if eval "test \"\${$as_ac_var+set}\" = set"; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 cat >conftest.$ac_ext <<_ACEOF
6579 #line $LINENO "configure"
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h. */
6585 /* System header to define __stub macros and hopefully few prototypes,
6586 which can conflict with char $ac_func (); below.
6587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6588 <limits.h> exists even on freestanding compilers. */
6590 # include <limits.h>
6592 # include <assert.h>
6594 /* Override any gcc2 internal prototype to avoid an error. */
6599 /* We use char because int might match the return type of a gcc2
6600 builtin and then its argument prototype would still apply. */
6602 /* The GNU C library defines this for functions which it implements
6603 to always fail with ENOSYS. Some functions are actually named
6604 something starting with __ and the normal name is an alias. */
6605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6608 char (*f) () = $ac_func;
6617 return f != $ac_func;
6622 rm -f conftest.$ac_objext conftest$ac_exeext
6623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6624 (eval $ac_link) 2>&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try='test -s conftest$ac_exeext'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6634 eval "$as_ac_var=yes"
6636 echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6639 eval "$as_ac_var=no"
6641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6645 if test `eval echo '${'$as_ac_var'}'` = yes; then
6646 cat >>confdefs.h <<_ACEOF
6647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6655 for ac_func in nanosleep nl_langinfo
6657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6658 echo "$as_me:$LINENO: checking for $ac_func" >&5
6659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6660 if eval "test \"\${$as_ac_var+set}\" = set"; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 cat >conftest.$ac_ext <<_ACEOF
6664 #line $LINENO "configure"
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670 /* System header to define __stub macros and hopefully few prototypes,
6671 which can conflict with char $ac_func (); below.
6672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6673 <limits.h> exists even on freestanding compilers. */
6675 # include <limits.h>
6677 # include <assert.h>
6679 /* Override any gcc2 internal prototype to avoid an error. */
6684 /* We use char because int might match the return type of a gcc2
6685 builtin and then its argument prototype would still apply. */
6687 /* The GNU C library defines this for functions which it implements
6688 to always fail with ENOSYS. Some functions are actually named
6689 something starting with __ and the normal name is an alias. */
6690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6693 char (*f) () = $ac_func;
6702 return f != $ac_func;
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6709 (eval $ac_link) 2>&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } &&
6713 { ac_try='test -s conftest$ac_exeext'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; }; then
6719 eval "$as_ac_var=yes"
6721 echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6724 eval "$as_ac_var=no"
6726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6730 if test `eval echo '${'$as_ac_var'}'` = yes; then
6731 cat >>confdefs.h <<_ACEOF
6732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6739 for ac_header in varargs.h
6741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6743 echo "$as_me:$LINENO: checking for $ac_header" >&5
6744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6751 # Is the header compilable?
6752 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6754 cat >conftest.$ac_ext <<_ACEOF
6755 #line $LINENO "configure"
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6761 $ac_includes_default
6762 #include <$ac_header>
6764 rm -f conftest.$ac_objext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6766 (eval $ac_compile) 2>&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); } &&
6770 { ac_try='test -s conftest.$ac_objext'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6776 ac_header_compiler=yes
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6781 ac_header_compiler=no
6783 rm -f conftest.$ac_objext conftest.$ac_ext
6784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6785 echo "${ECHO_T}$ac_header_compiler" >&6
6787 # Is the header present?
6788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6790 cat >conftest.$ac_ext <<_ACEOF
6791 #line $LINENO "configure"
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h. */
6797 #include <$ac_header>
6799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6802 grep -v '^ *+' conftest.er1 >conftest.err
6804 cat conftest.err >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } >/dev/null; then
6807 if test -s conftest.err; then
6808 ac_cpp_err=$ac_c_preproc_warn_flag
6815 if test -z "$ac_cpp_err"; then
6816 ac_header_preproc=yes
6818 echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.$ac_ext >&5
6821 ac_header_preproc=no
6823 rm -f conftest.err conftest.$ac_ext
6824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6825 echo "${ECHO_T}$ac_header_preproc" >&6
6827 # So? What about this header?
6828 case $ac_header_compiler:$ac_header_preproc in
6830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6836 ## ------------------------------------ ##
6837 ## Report this to bug-autoconf@gnu.org. ##
6838 ## ------------------------------------ ##
6841 sed "s/^/$as_me: WARNING: /" >&2
6844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6852 ## ------------------------------------ ##
6853 ## Report this to bug-autoconf@gnu.org. ##
6854 ## ------------------------------------ ##
6857 sed "s/^/$as_me: WARNING: /" >&2
6860 echo "$as_me:$LINENO: checking for $ac_header" >&5
6861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 eval "$as_ac_Header=$ac_header_preproc"
6867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6872 cat >>confdefs.h <<_ACEOF
6873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6881 # End of readline/conio stuff
6882 # -----------------------------------------------------------------------
6884 # -------------------------------------------
6885 # check for cdrecord writer location
6886 # get scsibus,target,lun
6887 # -------------------------------------------
6889 if test ! x$CDRECORD = x ; then
6890 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
6891 if test x${CDSTL} = x ; then
6892 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
6894 if test x${CDSTL} = x ; then
6901 # ---------------------------------------------------
6902 # Check for GMP support/directory
6903 # ---------------------------------------------------
6907 # [ --with-gmp[=DIR] Specify gmp library directory],
6909 # case "$with_gmp" in
6912 # if test "$with_gmp" != "yes"; then
6913 # GMP_INC="-I$with_gmp"
6915 # GMP_LDFLAGS="-L$with_gmp"
6917 # with_gmp="/usr/include"
6919 # AC_CHECK_HEADER($with_gmp/gmp.h,
6920 # [ AC_MSG_RESULT(yes)
6921 # AC_DEFINE(HAVE_GMP)
6925 # [ AC_MSG_ERROR([*** gmp library missing])
6931 # # check for standard gmp library
6932 # AC_CHECK_HEADER(/usr/include/gmp.h,
6933 # [ AC_MSG_RESULT(yes)
6934 # AC_DEFINE(HAVE_GMP)
6939 # # Did not find standard library, so use our own
6940 # AC_MSG_RESULT(yes)
6941 # AC_DEFINE(HAVE_GMP)
6944 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6946 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6947 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6953 #AC_SUBST(GMP_LDFLAGS)
6957 # -----------------------------------------------------------------------
6960 # ---------------------------------------------------
6961 # Check for CWEB support/directory
6962 # ---------------------------------------------------
6967 # [ --with-cweb[=DIR] Specify cweb library directory],
6969 # case "$with_cweb" in
6972 # if test "$with_cweb" != "yes"; then
6973 # CWEB_INC="-I$with_cweb"
6974 # CWEB_LIBS="-lcweb"
6975 # CWEB_LDFLAGS="-L$with_cweb"
6977 # with_cweb="/usr/include"
6979 # AC_CHECK_HEADER($with_cweb/cweb.h,
6980 # [ AC_MSG_RESULT(yes)
6981 # AC_DEFINE(HAVE_CWEB)
6982 # CWEB_LIBS="-lcweb"
6985 # [ AC_MSG_ERROR([*** cweb library missing])
6991 # # check for standard cweb library
6992 # AC_CHECK_HEADER(/usr/include/cweb.h,
6993 # [ AC_MSG_RESULT(yes)
6994 # AC_DEFINE(HAVE_CWEB)
6997 # CWEB_LIBS="-lcweb"
6999 # # Did not find starndard library, so use our own
7000 # AC_MSG_RESULT(yes)
7001 # AC_DEFINE(HAVE_CWEB)
7004 # CWEB=${TOP_DIR}/depkgs/cweb
7005 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
7006 # CWEB_LIBS="-lcweb"
7007 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
7008 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
7014 #AC_SUBST(CWEB_LIBS)
7015 #AC_SUBST(CWEB_LDFLAGS)
7019 # -----------------------------------------------------------------------
7022 # Find where sockets are (especially for Solaris)
7023 # Do this before the TCP Wrappers test since tcp wrappers
7024 # uses the socket library and some linkers are stupid.
7026 echo "$as_me:$LINENO: checking for socket" >&5
7027 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7028 if test "${ac_cv_func_socket+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 cat >conftest.$ac_ext <<_ACEOF
7032 #line $LINENO "configure"
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 /* System header to define __stub macros and hopefully few prototypes,
7039 which can conflict with char socket (); below.
7040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7041 <limits.h> exists even on freestanding compilers. */
7043 # include <limits.h>
7045 # include <assert.h>
7047 /* Override any gcc2 internal prototype to avoid an error. */
7052 /* We use char because int might match the return type of a gcc2
7053 builtin and then its argument prototype would still apply. */
7055 /* The GNU C library defines this for functions which it implements
7056 to always fail with ENOSYS. Some functions are actually named
7057 something starting with __ and the normal name is an alias. */
7058 #if defined (__stub_socket) || defined (__stub___socket)
7061 char (*f) () = socket;
7075 rm -f conftest.$ac_objext conftest$ac_exeext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7077 (eval $ac_link) 2>&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } &&
7081 { ac_try='test -s conftest$ac_exeext'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7087 ac_cv_func_socket=yes
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7092 ac_cv_func_socket=no
7094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7096 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7097 echo "${ECHO_T}$ac_cv_func_socket" >&6
7098 if test $ac_cv_func_socket = yes; then
7099 echo "$as_me:$LINENO: result: using libc's socket" >&5
7100 echo "${ECHO_T}using libc's socket" >&6
7103 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7104 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7105 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 ac_check_lib_save_LIBS=$LIBS
7110 cat >conftest.$ac_ext <<_ACEOF
7111 #line $LINENO "configure"
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h. */
7118 /* Override any gcc2 internal prototype to avoid an error. */
7122 /* We use char because int might match the return type of a gcc2
7123 builtin and then its argument prototype would still apply. */
7133 rm -f conftest.$ac_objext conftest$ac_exeext
7134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7135 (eval $ac_link) 2>&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } &&
7139 { ac_try='test -s conftest$ac_exeext'
7140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); }; }; then
7145 ac_cv_lib_xnet_socket=yes
7147 echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7150 ac_cv_lib_xnet_socket=no
7152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7153 LIBS=$ac_check_lib_save_LIBS
7155 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7156 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7157 if test $ac_cv_lib_xnet_socket = yes; then
7158 cat >>confdefs.h <<_ACEOF
7159 #define HAVE_LIBXNET 1
7167 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7168 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7169 if test "${ac_cv_lib_socket_socket+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 ac_check_lib_save_LIBS=$LIBS
7173 LIBS="-lsocket $LIBS"
7174 cat >conftest.$ac_ext <<_ACEOF
7175 #line $LINENO "configure"
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7182 /* Override any gcc2 internal prototype to avoid an error. */
7186 /* We use char because int might match the return type of a gcc2
7187 builtin and then its argument prototype would still apply. */
7197 rm -f conftest.$ac_objext conftest$ac_exeext
7198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7199 (eval $ac_link) 2>&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } &&
7203 { ac_try='test -s conftest$ac_exeext'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; }; then
7209 ac_cv_lib_socket_socket=yes
7211 echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7214 ac_cv_lib_socket_socket=no
7216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7217 LIBS=$ac_check_lib_save_LIBS
7219 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7220 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7221 if test $ac_cv_lib_socket_socket = yes; then
7222 cat >>confdefs.h <<_ACEOF
7223 #define HAVE_LIBSOCKET 1
7226 LIBS="-lsocket $LIBS"
7231 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7232 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7233 if test "${ac_cv_lib_inet_socket+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 ac_check_lib_save_LIBS=$LIBS
7238 cat >conftest.$ac_ext <<_ACEOF
7239 #line $LINENO "configure"
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7246 /* Override any gcc2 internal prototype to avoid an error. */
7250 /* We use char because int might match the return type of a gcc2
7251 builtin and then its argument prototype would still apply. */
7261 rm -f conftest.$ac_objext conftest$ac_exeext
7262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7263 (eval $ac_link) 2>&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); } &&
7267 { ac_try='test -s conftest$ac_exeext'
7268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); }; }; then
7273 ac_cv_lib_inet_socket=yes
7275 echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7278 ac_cv_lib_inet_socket=no
7280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7281 LIBS=$ac_check_lib_save_LIBS
7283 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7284 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7285 if test $ac_cv_lib_inet_socket = yes; then
7286 cat >>confdefs.h <<_ACEOF
7287 #define HAVE_LIBINET 1
7298 # -----------------------------------------------------------
7299 # Check whether user wants TCP wrappers support (default off)
7300 # -----------------------------------------------------------
7303 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7304 if test "${with_tcp_wrappers+set}" = set; then
7305 withval="$with_tcp_wrappers"
7307 if test "x$withval" != "xno" ; then
7309 LIBS="$saved_LIBS -lwrap"
7310 echo "$as_me:$LINENO: checking for libwrap" >&5
7311 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7312 cat >conftest.$ac_ext <<_ACEOF
7313 #line $LINENO "configure"
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7320 int deny_severity = 0;
7321 int allow_severity = 0;
7322 struct request_info *req;
7331 rm -f conftest.$ac_objext conftest$ac_exeext
7332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7333 (eval $ac_link) 2>&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } &&
7337 { ac_try='test -s conftest$ac_exeext'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; }; then
7344 echo "$as_me:$LINENO: result: yes" >&5
7345 echo "${ECHO_T}yes" >&6
7346 cat >>confdefs.h <<\_ACEOF
7347 #define HAVE_LIBWRAP 1
7353 echo "$as_me: failed program was:" >&5
7354 sed 's/^/| /' conftest.$ac_ext >&5
7357 LIBS="$saved_LIBS -lwrap -lnsl"
7358 cat >conftest.$ac_ext <<_ACEOF
7359 #line $LINENO "configure"
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7366 int deny_severity = 0;
7367 int allow_severity = 0;
7368 struct request_info *req;
7377 rm -f conftest.$ac_objext conftest$ac_exeext
7378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7379 (eval $ac_link) 2>&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } &&
7383 { ac_try='test -s conftest$ac_exeext'
7384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; }; then
7390 echo "$as_me:$LINENO: result: yes" >&5
7391 echo "${ECHO_T}yes" >&6
7392 cat >>confdefs.h <<\_ACEOF
7393 #define HAVE_LIBWRAP 1
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7402 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7403 echo "$as_me: error: *** libwrap missing" >&2;}
7404 { (exit 1); exit 1; }; }
7407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7416 # ------------------------------------------
7417 # Where to place working dir
7418 # ------------------------------------------
7419 working_dir=`eval echo ${prefix}/var/bacula/working`
7421 # Check whether --with-working-dir or --without-working-dir was given.
7422 if test "${with_working_dir+set}" = set; then
7423 withval="$with_working_dir"
7425 if test "x$withval" != "xno" ; then
7426 working_dir=$withval
7435 # ------------------------------------------
7436 # Where to place scriptdir (script files)
7437 # ------------------------------------------
7438 scriptdir=`eval echo ${sysconfdir}`
7440 # Check whether --with-scriptdir or --without-scriptdir was given.
7441 if test "${with_scriptdir+set}" = set; then
7442 withval="$with_scriptdir"
7444 if test "x$withval" != "xno" ; then
7454 # ------------------------------------------
7455 # Where to send dump email
7456 # ------------------------------------------
7457 dump_email=root@localhost
7459 # Check whether --with-dump-email or --without-dump-email was given.
7460 if test "${with_dump_email+set}" = set; then
7461 withval="$with_dump_email"
7463 if test "x$withval" != "xno" ; then
7472 # ------------------------------------------
7473 # Where to send job email
7474 # ------------------------------------------
7475 job_email=root@localhost
7477 # Check whether --with-job-email or --without-job-email was given.
7478 if test "${with_job_email+set}" = set; then
7479 withval="$with_job_email"
7481 if test "x$withval" != "xno" ; then
7490 # ------------------------------------------
7491 # Where to find smtp host
7492 # ------------------------------------------
7495 # Check whether --with-smtp_host or --without-smtp_host was given.
7496 if test "${with_smtp_host+set}" = set; then
7497 withval="$with_smtp_host"
7499 if test "x$withval" != "xno" ; then
7509 # ------------------------------------
7510 # Where to place pid files
7511 # ------------------------------------
7514 # Check whether --with-pid-dir or --without-pid-dir was given.
7515 if test "${with_pid_dir+set}" = set; then
7516 withval="$with_pid_dir"
7518 if test "x$withval" != "xno" ; then
7525 cat >>confdefs.h <<_ACEOF
7526 #define _PATH_BACULA_PIDDIR "$piddir"
7532 # ------------------------------------
7533 # Where to place subsys "lock file"
7534 # ------------------------------------
7535 subsysdir=/var/run/subsys
7537 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7538 if test "${with_subsys_dir+set}" = set; then
7539 withval="$with_subsys_dir"
7541 if test "x$withval" != "xno" ; then
7552 # ------------------------------------
7553 # Where to start assigning ports
7554 # ------------------------------------
7557 # Check whether --with-baseport or --without-baseport was given.
7558 if test "${with_baseport+set}" = set; then
7559 withval="$with_baseport"
7561 if test "x$withval" != "xno" ; then
7569 dir_port=`expr $baseport`
7570 fd_port=`expr $baseport + 1`
7571 sd_port=`expr $fd_port + 1`
7578 # ------------------------------------------
7579 # Generate passwords
7580 # ------------------------------------------
7583 # Check whether --with-dir-password or --without-dir-password was given.
7584 if test "${with_dir_password+set}" = set; then
7585 withval="$with_dir_password"
7587 if test "x$withval" != "xno" ; then
7588 dir_password=$withval
7594 if test "x$dir_password" = "x" ; then
7595 if test "x$OPENSSL" = "xnone" ; then
7596 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7597 key=`autoconf/randpass 33`
7599 key=`openssl rand -base64 33`
7606 # Check whether --with-fd-password or --without-fd-password was given.
7607 if test "${with_fd_password+set}" = set; then
7608 withval="$with_fd_password"
7610 if test "x$withval" != "xno" ; then
7611 fd_password=$withval
7617 if test "x$fd_password" = "x" ; then
7618 if test "x$OPENSSL" = "xnone" ; then
7619 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7620 key=`autoconf/randpass 37`
7622 key=`openssl rand -base64 33`
7629 # Check whether --with-sd-password or --without-sd-password was given.
7630 if test "${with_sd_password+set}" = set; then
7631 withval="$with_sd_password"
7633 if test "x$withval" != "xno" ; then
7634 sd_password=$withval
7640 if test "x$sd_password" = "x" ; then
7641 if test "x$OPENSSL" = "xnone" ; then
7642 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7643 key=`autoconf/randpass 41`
7645 key=`openssl rand -base64 33`
7652 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
7653 if test "${with_mon_dir_password+set}" = set; then
7654 withval="$with_mon_dir_password"
7656 if test "x$withval" != "xno" ; then
7657 mon_dir_password=$withval
7663 if test "x$mon_dir_password" = "x" ; then
7664 if test "x$OPENSSL" = "xnone" ; then
7665 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7666 key=`autoconf/randpass 33`
7668 key=`openssl rand -base64 33`
7670 mon_dir_password=$key
7675 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
7676 if test "${with_mon_fd_password+set}" = set; then
7677 withval="$with_mon_fd_password"
7679 if test "x$withval" != "xno" ; then
7680 mon_fd_password=$withval
7686 if test "x$mon_fd_password" = "x" ; then
7687 if test "x$OPENSSL" = "xnone" ; then
7688 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7689 key=`autoconf/randpass 37`
7691 key=`openssl rand -base64 33`
7693 mon_fd_password=$key
7698 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
7699 if test "${with_mon_sd_password+set}" = set; then
7700 withval="$with_mon_sd_password"
7702 if test "x$withval" != "xno" ; then
7703 mon_sd_password=$withval
7709 if test "x$mon_sd_password" = "x" ; then
7710 if test "x$OPENSSL" = "xnone" ; then
7711 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7712 key=`autoconf/randpass 41`
7714 key=`openssl rand -base64 33`
7716 mon_sd_password=$key
7726 # -------------------------------------------------------------------------
7727 # Set variables for bimagemgr installation
7728 # -------------------------------------------------------------------------
7729 bimagemgr_cgidir=/var/www/cgi-bin
7731 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
7732 if test "${with_bimagemgr_cgidir+set}" = set; then
7733 withval="$with_bimagemgr_cgidir"
7735 if test "x$withval" != "xno" ; then
7736 bimagemgr_cgidir=$withval
7742 bimagemgr_docdir=/var/www/html
7744 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
7745 if test "${with_bimagemgr_docdir+set}" = set; then
7746 withval="$with_bimagemgr_docdir"
7748 if test "x$withval" != "xno" ; then
7749 bimagemgr_docdir=$withval
7755 bimagemgr_binowner=root
7757 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
7758 if test "${with_bimagemgr_binowner+set}" = set; then
7759 withval="$with_bimagemgr_binowner"
7761 if test "x$withval" != "xno" ; then
7762 bimagemgr_binowner=$withval
7768 bimagemgr_bingroup=root
7770 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
7771 if test "${with_bimagemgr_bingroup+set}" = set; then
7772 withval="$with_bimagemgr_bingroup"
7774 if test "x$withval" != "xno" ; then
7775 bimagemgr_bingroup=$withval
7781 bimagemgr_dataowner=apache
7783 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
7784 if test "${with_bimagemgr_dataowner+set}" = set; then
7785 withval="$with_bimagemgr_dataowner"
7787 if test "x$withval" != "xno" ; then
7788 bimagemgr_dataowner=$withval
7794 bimagemgr_datagroup=apache
7796 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
7797 if test "${with_bimagemgr_datagroup+set}" = set; then
7798 withval="$with_bimagemgr_datagroup"
7800 if test "x$withval" != "xno" ; then
7801 bimagemgr_datagroup=$withval
7815 # Handle users and groups for each daemon
7819 # Check whether --with-dir_user or --without-dir_user was given.
7820 if test "${with_dir_user+set}" = set; then
7821 withval="$with_dir_user"
7823 if test "x$withval" != "x" ; then
7832 # Check whether --with-dir_group or --without-dir_group was given.
7833 if test "${with_dir_group+set}" = set; then
7834 withval="$with_dir_group"
7836 if test "x$withval" != "x" ; then
7845 # Check whether --with-sd_user or --without-sd_user was given.
7846 if test "${with_sd_user+set}" = set; then
7847 withval="$with_sd_user"
7849 if test "x$withval" != "x" ; then
7858 # Check whether --with-sd_group or --without-sd_group was given.
7859 if test "${with_sd_group+set}" = set; then
7860 withval="$with_sd_group"
7862 if test "x$withval" != "x" ; then
7871 # Check whether --with-fd_user or --without-fd_user was given.
7872 if test "${with_fd_user+set}" = set; then
7873 withval="$with_fd_user"
7875 if test "x$withval" != "x" ; then
7884 # Check whether --with-fd_group or --without-fd_group was given.
7885 if test "${with_fd_group+set}" = set; then
7886 withval="$with_fd_group"
7888 if test "x$withval" != "x" ; then
7906 # allow setting default executable permissions
7910 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7911 if test "${with_sbin_perm+set}" = set; then
7912 withval="$with_sbin_perm"
7914 if test "x$withval" != "x" ; then
7923 # ------------------------------------------------
7924 # Bacula check for various SQL database engines
7925 # ------------------------------------------------
7928 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7929 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7931 # Check whether --with-postgresql or --without-postgresql was given.
7932 if test "${with_postgresql+set}" = set; then
7933 withval="$with_postgresql"
7935 if test "$withval" != "no"; then
7936 if test "$db_found" = "yes"; then
7937 echo "$as_me:$LINENO: result: error" >&5
7938 echo "${ECHO_T}error" >&6
7939 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7940 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7941 { (exit 1); exit 1; }; };
7943 if test "$withval" = "yes"; then
7944 if test -f /usr/local/include/libpq-fe.h; then
7945 POSTGRESQL_INCDIR=/usr/local/include
7946 POSTGRESQL_LIBDIR=/usr/local/lib
7947 POSTGRESQL_BINDIR=/usr/local/bin
7948 elif test -f /usr/include/libpq-fe.h; then
7949 POSTGRESQL_INCDIR=/usr/include
7950 POSTGRESQL_LIBDIR=/usr/lib
7951 POSTGRESQL_BINDIR=/usr/bin
7952 elif test -f /usr/include/pgsql/libpq-fe.h; then
7953 POSTGRESQL_INCDIR=/usr/include/pgsql
7954 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7955 POSTGRESQL_BINDIR=/usr/bin
7956 elif test -f /usr/include/postgresql/libpq-fe.h; then
7957 POSTGRESQL_INCDIR=/usr/include/postgresql
7958 POSTGRESQL_LIBDIR=/usr/lib/postgresql
7959 POSTGRESQL_BINDIR=/usr/bin
7961 echo "$as_me:$LINENO: result: no" >&5
7962 echo "${ECHO_T}no" >&6
7963 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7964 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7965 { (exit 1); exit 1; }; }
7967 elif test -f $withval/include/libpq-fe.h; then
7968 POSTGRESQL_INCDIR=$withval/include
7969 POSTGRESQL_LIBDIR=$withval/lib
7970 POSTGRESQL_BINDIR=$withval/bin
7971 elif test -f $withval/include/postgresql/libpq-fe.h; then
7972 POSTGRESQL_INCDIR=$withval/include/postgresql
7973 POSTGRESQL_LIBDIR=$withval/lib
7974 POSTGRESQL_BINDIR=$withval/bin
7976 echo "$as_me:$LINENO: result: no" >&5
7977 echo "${ECHO_T}no" >&6
7978 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7979 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7980 { (exit 1); exit 1; }; }
7982 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7983 echo "$as_me:$LINENO: checking for crypt" >&5
7984 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7985 if test "${ac_cv_func_crypt+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7988 cat >conftest.$ac_ext <<_ACEOF
7989 #line $LINENO "configure"
7992 cat confdefs.h >>conftest.$ac_ext
7993 cat >>conftest.$ac_ext <<_ACEOF
7994 /* end confdefs.h. */
7995 /* System header to define __stub macros and hopefully few prototypes,
7996 which can conflict with char crypt (); below.
7997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7998 <limits.h> exists even on freestanding compilers. */
8000 # include <limits.h>
8002 # include <assert.h>
8004 /* Override any gcc2 internal prototype to avoid an error. */
8009 /* We use char because int might match the return type of a gcc2
8010 builtin and then its argument prototype would still apply. */
8012 /* The GNU C library defines this for functions which it implements
8013 to always fail with ENOSYS. Some functions are actually named
8014 something starting with __ and the normal name is an alias. */
8015 #if defined (__stub_crypt) || defined (__stub___crypt)
8018 char (*f) () = crypt;
8032 rm -f conftest.$ac_objext conftest$ac_exeext
8033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8034 (eval $ac_link) 2>&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } &&
8038 { ac_try='test -s conftest$ac_exeext'
8039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; }; then
8044 ac_cv_func_crypt=yes
8046 echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8053 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8054 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8055 if test $ac_cv_func_crypt = yes; then
8058 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8059 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8060 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 ac_check_lib_save_LIBS=$LIBS
8064 LIBS="-lcrypt $LIBS"
8065 cat >conftest.$ac_ext <<_ACEOF
8066 #line $LINENO "configure"
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8073 /* Override any gcc2 internal prototype to avoid an error. */
8077 /* We use char because int might match the return type of a gcc2
8078 builtin and then its argument prototype would still apply. */
8088 rm -f conftest.$ac_objext conftest$ac_exeext
8089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8090 (eval $ac_link) 2>&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } &&
8094 { ac_try='test -s conftest$ac_exeext'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; }; then
8100 ac_cv_lib_crypt_crypt=yes
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8105 ac_cv_lib_crypt_crypt=no
8107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8108 LIBS=$ac_check_lib_save_LIBS
8110 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8111 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8112 if test $ac_cv_lib_crypt_crypt = yes; then
8113 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8118 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8119 SQL_LFLAGS=$POSTGRESQL_LFLAGS
8120 SQL_BINDIR=$POSTGRESQL_BINDIR
8121 cat >>confdefs.h <<\_ACEOF
8122 #define HAVE_POSTGRESQL 1
8125 echo "$as_me:$LINENO: result: yes" >&5
8126 echo "${ECHO_T}yes" >&6
8128 support_postgresql=yes
8132 echo "$as_me:$LINENO: result: no" >&5
8133 echo "${ECHO_T}no" >&6
8138 echo "$as_me:$LINENO: result: no" >&5
8139 echo "${ECHO_T}no" >&6
8150 echo "$as_me:$LINENO: checking for MySQL support" >&5
8151 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8153 # Check whether --with-mysql or --without-mysql was given.
8154 if test "${with_mysql+set}" = set; then
8155 withval="$with_mysql"
8157 if test "$withval" != "no"; then
8158 if test "$withval" = "yes"; then
8159 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8160 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8161 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8162 MYSQL_BINDIR=/usr/local/mysql/bin
8163 elif test -f /usr/include/mysql/mysql.h; then
8164 MYSQL_INCDIR=/usr/include/mysql
8165 MYSQL_LIBDIR=/usr/lib/mysql
8166 MYSQL_BINDIR=/usr/bin
8167 elif test -f /usr/include/mysql.h; then
8168 MYSQL_INCDIR=/usr/include
8169 MYSQL_LIBDIR=/usr/lib
8170 MYSQL_BINDIR=/usr/bin
8171 elif test -f /usr/local/include/mysql/mysql.h; then
8172 MYSQL_INCDIR=/usr/local/include/mysql
8173 MYSQL_LIBDIR=/usr/local/lib/mysql
8174 MYSQL_BINDIR=/usr/local/bin
8175 elif test -f /usr/local/include/mysql.h; then
8176 MYSQL_INCDIR=/usr/local/include
8177 MYSQL_LIBDIR=/usr/local/lib
8178 MYSQL_BINDIR=/usr/local/bin
8180 echo "$as_me:$LINENO: result: no" >&5
8181 echo "${ECHO_T}no" >&6
8182 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8183 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8184 { (exit 1); exit 1; }; }
8187 if test -f $withval/include/mysql/mysql.h; then
8188 MYSQL_INCDIR=$withval/include/mysql
8189 MYSQL_LIBDIR=$withval/lib/mysql
8190 MYSQL_BINDIR=$withval/bin
8191 elif test -f $withval/include/mysql.h; then
8192 MYSQL_INCDIR=$withval/include
8193 MYSQL_LIBDIR=$withval/lib
8194 MYSQL_BINDIR=$withval/bin
8196 echo "$as_me:$LINENO: result: no" >&5
8197 echo "${ECHO_T}no" >&6
8198 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8199 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8200 { (exit 1); exit 1; }; }
8203 SQL_INCLUDE=-I$MYSQL_INCDIR
8204 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8205 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8206 cat >>confdefs.h <<\_ACEOF
8207 #define HAVE_THREAD_SAFE_MYSQL 1
8211 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8213 SQL_BINDIR=$MYSQL_BINDIR
8215 cat >>confdefs.h <<\_ACEOF
8216 #define HAVE_MYSQL 1
8219 echo "$as_me:$LINENO: result: yes" >&5
8220 echo "${ECHO_T}yes" >&6
8227 echo "$as_me:$LINENO: result: no" >&5
8228 echo "${ECHO_T}no" >&6
8235 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8236 if test "${with_embedded_mysql+set}" = set; then
8237 withval="$with_embedded_mysql"
8239 if test "$withval" != "no"; then
8240 if test "$withval" = "yes"; then
8241 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8242 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8243 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8244 MYSQL_BINDIR=/usr/local/mysql/bin
8245 elif test -f /usr/include/mysql/mysql.h; then
8246 MYSQL_INCDIR=/usr/include/mysql
8247 MYSQL_LIBDIR=/usr/lib/mysql
8248 MYSQL_BINDIR=/usr/bin
8249 elif test -f /usr/include/mysql.h; then
8250 MYSQL_INCDIR=/usr/include
8251 MYSQL_LIBDIR=/usr/lib
8252 MYSQL_BINDIR=/usr/bin
8253 elif test -f /usr/local/include/mysql/mysql.h; then
8254 MYSQL_INCDIR=/usr/local/include/mysql
8255 MYSQL_LIBDIR=/usr/local/lib/mysql
8256 MYSQL_BINDIR=/usr/local/bin
8257 elif test -f /usr/local/include/mysql.h; then
8258 MYSQL_INCDIR=/usr/local/include
8259 MYSQL_LIBDIR=/usr/local/lib
8260 MYSQL_BINDIR=/usr/local/bin
8262 echo "$as_me:$LINENO: result: no" >&5
8263 echo "${ECHO_T}no" >&6
8264 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8265 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8266 { (exit 1); exit 1; }; }
8269 if test -f $withval/include/mysql/mysql.h; then
8270 MYSQL_INCDIR=$withval/include/mysql
8271 MYSQL_LIBDIR=$withval/lib/mysql
8272 MYSQL_BINDIR=$withval/bin
8273 elif test -f $withval/include/mysql.h; then
8274 MYSQL_INCDIR=$withval/include
8275 MYSQL_LIBDIR=$withval/lib
8276 MYSQL_BINDIR=$withval/bin
8278 echo "$as_me:$LINENO: result: no" >&5
8279 echo "${ECHO_T}no" >&6
8280 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8281 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8282 { (exit 1); exit 1; }; }
8285 SQL_INCLUDE=-I$MYSQL_INCDIR
8286 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8287 SQL_BINDIR=$MYSQL_BINDIR
8289 cat >>confdefs.h <<\_ACEOF
8290 #define HAVE_MYSQL 1
8293 cat >>confdefs.h <<\_ACEOF
8294 #define HAVE_EMBEDDED_MYSQL 1
8297 echo "$as_me:$LINENO: result: yes" >&5
8298 echo "${ECHO_T}yes" >&6
8305 echo "$as_me:$LINENO: result: no" >&5
8306 echo "${ECHO_T}no" >&6
8321 echo "$as_me:$LINENO: checking for SQLite support" >&5
8322 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
8324 # Check whether --with-sqlite or --without-sqlite was given.
8325 if test "${with_sqlite+set}" = set; then
8326 withval="$with_sqlite"
8328 if test "$withval" != "no"; then
8329 if test "$withval" = "yes"; then
8330 if test -f /usr/local/include/sqlite.h; then
8331 SQLITE_INCDIR=/usr/local/include
8332 SQLITE_LIBDIR=/usr/local/lib
8333 SQLITE_BINDIR=/usr/local/bin
8334 elif test -f /usr/include/sqlite.h; then
8335 SQLITE_INCDIR=/usr/include
8336 SQLITE_LIBDIR=/usr/lib
8337 SQLITE_BINDIR=/usr/bin
8338 elif test -f $prefix/include/sqlite.h; then
8339 SQLITE_INCDIR=$prefix/include
8340 SQLITE_LIBDIR=$prefix/lib
8341 SQLITE_BINDIR=$prefix/bin
8343 echo "$as_me:$LINENO: result: no" >&5
8344 echo "${ECHO_T}no" >&6
8345 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
8346 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
8347 { (exit 1); exit 1; }; }
8350 if test -f $withval/sqlite.h; then
8351 SQLITE_INCDIR=$withval
8352 SQLITE_LIBDIR=$withval
8353 SQLITE_BINDIR=$withval
8354 elif test -f $withval/include/sqlite.h; then
8355 SQLITE_INCDIR=$withval/include
8356 SQLITE_LIBDIR=$withval/lib
8357 SQLITE_BINDIR=$withval/bin
8359 echo "$as_me:$LINENO: result: no" >&5
8360 echo "${ECHO_T}no" >&6
8361 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8362 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8363 { (exit 1); exit 1; }; }
8366 SQL_INCLUDE=-I$SQLITE_INCDIR
8367 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8368 SQL_BINDIR=$SQLITE_BINDIR
8370 cat >>confdefs.h <<\_ACEOF
8371 #define HAVE_SQLITE 1
8374 echo "$as_me:$LINENO: result: yes" >&5
8375 echo "${ECHO_T}yes" >&6
8382 echo "$as_me:$LINENO: result: no" >&5
8383 echo "${ECHO_T}no" >&6
8388 echo "$as_me:$LINENO: result: no" >&5
8389 echo "${ECHO_T}no" >&6
8401 cat >>confdefs.h <<\_ACEOF
8402 #define PROTOTYPES 1
8406 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8407 if test -z "$CCOPTS"; then
8408 CCOPTS='-g -O2 -Wall'
8416 largefile_support="no"
8418 # Check whether --enable-largefile or --disable-largefile was given.
8419 if test "${enable_largefile+set}" = set; then
8420 enableval="$enable_largefile"
8423 if test "$enable_largefile" != no; then
8424 if test -n "$ac_tool_prefix"; then
8425 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8426 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8427 echo "$as_me:$LINENO: checking for $ac_word" >&5
8428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8429 if test "${ac_cv_prog_GETCONF+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 if test -n "$GETCONF"; then
8433 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 test -z "$as_dir" && as_dir=.
8440 for ac_exec_ext in '' $ac_executable_extensions; do
8441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8442 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8451 GETCONF=$ac_cv_prog_GETCONF
8452 if test -n "$GETCONF"; then
8453 echo "$as_me:$LINENO: result: $GETCONF" >&5
8454 echo "${ECHO_T}$GETCONF" >&6
8456 echo "$as_me:$LINENO: result: no" >&5
8457 echo "${ECHO_T}no" >&6
8461 if test -z "$ac_cv_prog_GETCONF"; then
8462 ac_ct_GETCONF=$GETCONF
8463 # Extract the first word of "getconf", so it can be a program name with args.
8464 set dummy getconf; ac_word=$2
8465 echo "$as_me:$LINENO: checking for $ac_word" >&5
8466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8467 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 if test -n "$ac_ct_GETCONF"; then
8471 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477 test -z "$as_dir" && as_dir=.
8478 for ac_exec_ext in '' $ac_executable_extensions; do
8479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8480 ac_cv_prog_ac_ct_GETCONF="getconf"
8481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8489 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8490 if test -n "$ac_ct_GETCONF"; then
8491 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8492 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8494 echo "$as_me:$LINENO: result: no" >&5
8495 echo "${ECHO_T}no" >&6
8498 GETCONF=$ac_ct_GETCONF
8500 GETCONF="$ac_cv_prog_GETCONF"
8503 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8504 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8505 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8506 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8509 ac_cv_sys_largefile_CFLAGS=no
8511 # IRIX 6.2 and later require cc -n32.
8512 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8513 if test "$GCC" != yes; then
8514 ac_cv_sys_largefile_CFLAGS=-n32
8517 CC="$CC $ac_cv_sys_largefile_CFLAGS"
8518 cat >conftest.$ac_ext <<_ACEOF
8519 #line $LINENO "configure"
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h. */
8534 rm -f conftest.$ac_objext conftest$ac_exeext
8535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8536 (eval $ac_link) 2>&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } &&
8540 { ac_try='test -s conftest$ac_exeext'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8551 ac_cv_sys_largefile_CFLAGS=no
8553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8558 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
8559 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
8560 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
8561 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
8562 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
8566 ac_cv_sys_largefile_LDFLAGS=no
8570 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
8571 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
8572 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
8573 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
8574 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
8575 echo $ECHO_N "(cached) $ECHO_C" >&6
8577 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
8578 ac_cv_sys_largefile_LIBS=no
8582 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
8583 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
8585 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8588 -D_FILE_OFFSET_BITS=*) ;;
8589 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
8590 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
8596 '') CPPFLAGS="$ac_flag" ;;
8597 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
8605 '') CFLAGS="$ac_flag" ;;
8606 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
8611 case "$ac_cv_sys_largefile_LDFLAGS" in
8615 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
8616 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
8619 case "$ac_cv_sys_largefile_LIBS" in
8623 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
8624 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
8627 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
8628 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
8629 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8632 ac_cv_sys_file_offset_bits=no
8633 ac_cv_sys_file_offset_bits=64
8634 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8636 -D_FILE_OFFSET_BITS)
8637 ac_cv_sys_file_offset_bits=1 ;;
8638 -D_FILE_OFFSET_BITS=*)
8639 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8644 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8645 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8646 if test "$ac_cv_sys_file_offset_bits" != no; then
8648 cat >>confdefs.h <<_ACEOF
8649 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8653 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
8654 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
8655 if test "${ac_cv_sys_largefile_source+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 ac_cv_sys_largefile_source=no
8659 ac_cv_sys_largefile_source=1
8660 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8662 -D_LARGEFILE_SOURCE)
8663 ac_cv_sys_largefile_source=1 ;;
8664 -D_LARGEFILE_SOURCE=*)
8665 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8670 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8671 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8672 if test "$ac_cv_sys_largefile_source" != no; then
8674 cat >>confdefs.h <<_ACEOF
8675 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8679 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8680 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8681 if test "${ac_cv_sys_large_files+set}" = set; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 ac_cv_sys_large_files=no
8685 ac_cv_sys_large_files=1
8686 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8689 ac_cv_sys_large_files=1 ;;
8691 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8696 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8697 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8698 if test "$ac_cv_sys_large_files" != no; then
8700 cat >>confdefs.h <<_ACEOF
8701 #define _LARGE_FILES $ac_cv_sys_large_files
8709 echo "$as_me:$LINENO: checking for X" >&5
8710 echo $ECHO_N "checking for X... $ECHO_C" >&6
8713 # Check whether --with-x or --without-x was given.
8714 if test "${with_x+set}" = set; then
8718 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8719 if test "x$with_x" = xno; then
8720 # The user explicitly disabled X.
8723 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8724 # Both variables are already set.
8727 if test "${ac_cv_have_x+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 # One or both of the vars are not set, and there is no cached value.
8731 ac_x_includes=no ac_x_libraries=no
8733 if mkdir conftest.dir; then
8735 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8736 cat >Imakefile <<'_ACEOF'
8738 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8740 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8741 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8742 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8743 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8744 for ac_extension in a so sl; do
8745 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8746 test -f $ac_im_libdir/libX11.$ac_extension; then
8747 ac_im_usrlibdir=$ac_im_libdir; break
8750 # Screen out bogus values from the imake configuration. They are
8751 # bogus both because they are the default anyway, and because
8752 # using them would break gcc on systems where it needs fixed includes.
8753 case $ac_im_incroot in
8755 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8757 case $ac_im_usrlibdir in
8759 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8766 # Standard set of common directories for X headers.
8767 # Check X11 before X11Rn because it is often a symlink to the current release.
8779 /usr/local/X11/include
8780 /usr/local/X11R6/include
8781 /usr/local/X11R5/include
8782 /usr/local/X11R4/include
8784 /usr/local/include/X11
8785 /usr/local/include/X11R6
8786 /usr/local/include/X11R5
8787 /usr/local/include/X11R4
8791 /usr/XFree86/include/X11
8795 /usr/unsupported/include
8797 /usr/local/x11r5/include
8798 /usr/lpp/Xamples/include
8800 /usr/openwin/include
8801 /usr/openwin/share/include'
8803 if test "$ac_x_includes" = no; then
8804 # Guess where to find include files, by looking for Intrinsic.h.
8805 # First, try using that file with no special directory specified.
8806 cat >conftest.$ac_ext <<_ACEOF
8807 #line $LINENO "configure"
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8813 #include <X11/Intrinsic.h>
8815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8818 grep -v '^ *+' conftest.er1 >conftest.err
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } >/dev/null; then
8823 if test -s conftest.err; then
8824 ac_cpp_err=$ac_c_preproc_warn_flag
8831 if test -z "$ac_cpp_err"; then
8832 # We can compile using X headers with no special include directory.
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8838 for ac_dir in $ac_x_header_dirs; do
8839 if test -r "$ac_dir/X11/Intrinsic.h"; then
8840 ac_x_includes=$ac_dir
8845 rm -f conftest.err conftest.$ac_ext
8846 fi # $ac_x_includes = no
8848 if test "$ac_x_libraries" = no; then
8849 # Check for the libraries.
8850 # See if we find them without any special options.
8851 # Don't add to $LIBS permanently.
8854 cat >conftest.$ac_ext <<_ACEOF
8855 #line $LINENO "configure"
8858 cat confdefs.h >>conftest.$ac_ext
8859 cat >>conftest.$ac_ext <<_ACEOF
8860 /* end confdefs.h. */
8861 #include <X11/Intrinsic.h>
8870 rm -f conftest.$ac_objext conftest$ac_exeext
8871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8872 (eval $ac_link) 2>&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } &&
8876 { ac_try='test -s conftest$ac_exeext'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; }; then
8883 # We can link X programs with no special library path.
8886 echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8890 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8892 # Don't even attempt the hair of trying to link an X program!
8893 for ac_extension in a so sl; do
8894 if test -r $ac_dir/libXt.$ac_extension; then
8895 ac_x_libraries=$ac_dir
8901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8902 fi # $ac_x_libraries = no
8904 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8905 # Didn't find X anywhere. Cache the known absence of X.
8906 ac_cv_have_x="have_x=no"
8908 # Record where we found X for the cache.
8909 ac_cv_have_x="have_x=yes \
8910 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8915 eval "$ac_cv_have_x"
8918 if test "$have_x" != yes; then
8919 echo "$as_me:$LINENO: result: $have_x" >&5
8920 echo "${ECHO_T}$have_x" >&6
8923 # If each of the values was on the command line, it overrides each guess.
8924 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8925 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8926 # Update the cache value to reflect the command line values.
8927 ac_cv_have_x="have_x=yes \
8928 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8929 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8930 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8933 if test "$no_x" = yes; then
8934 # Not all programs may use this symbol, but it does not hurt to define it.
8936 cat >>confdefs.h <<\_ACEOF
8937 #define X_DISPLAY_MISSING 1
8940 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8942 if test -n "$x_includes"; then
8943 X_CFLAGS="$X_CFLAGS -I$x_includes"
8946 # It would also be nice to do this for all -L options, not just this one.
8947 if test -n "$x_libraries"; then
8948 X_LIBS="$X_LIBS -L$x_libraries"
8949 # For Solaris; some versions of Sun CC require a space after -R and
8950 # others require no space. Words are not sufficient . . . .
8951 case `(uname -sr) 2>/dev/null` in
8953 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8954 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8955 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8956 cat >conftest.$ac_ext <<_ACEOF
8957 #line $LINENO "configure"
8960 cat confdefs.h >>conftest.$ac_ext
8961 cat >>conftest.$ac_ext <<_ACEOF
8962 /* end confdefs.h. */
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
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
8992 if test $ac_R_nospace = yes; then
8993 echo "$as_me:$LINENO: result: no" >&5
8994 echo "${ECHO_T}no" >&6
8995 X_LIBS="$X_LIBS -R$x_libraries"
8997 LIBS="$ac_xsave_LIBS -R $x_libraries"
8998 cat >conftest.$ac_ext <<_ACEOF
8999 #line $LINENO "configure"
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h. */
9014 rm -f conftest.$ac_objext conftest$ac_exeext
9015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9016 (eval $ac_link) 2>&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } &&
9020 { ac_try='test -s conftest$ac_exeext'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; }; then
9028 echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9034 if test $ac_R_space = yes; then
9035 echo "$as_me:$LINENO: result: yes" >&5
9036 echo "${ECHO_T}yes" >&6
9037 X_LIBS="$X_LIBS -R $x_libraries"
9039 echo "$as_me:$LINENO: result: neither works" >&5
9040 echo "${ECHO_T}neither works" >&6
9047 # Check for system-dependent libraries X programs must link with.
9048 # Do this before checking for the system-independent R6 libraries
9049 # (-lICE), since we may need -lsocket or whatever for X linking.
9051 if test "$ISC" = yes; then
9052 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9054 # Martyn Johnson says this is needed for Ultrix, if the X
9055 # libraries were built with DECnet support. And Karl Berry says
9056 # the Alpha needs dnet_stub (dnet does not exist).
9057 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9058 cat >conftest.$ac_ext <<_ACEOF
9059 #line $LINENO "configure"
9062 cat confdefs.h >>conftest.$ac_ext
9063 cat >>conftest.$ac_ext <<_ACEOF
9064 /* end confdefs.h. */
9066 /* Override any gcc2 internal prototype to avoid an error. */
9070 /* We use char because int might match the return type of a gcc2
9071 builtin and then its argument prototype would still apply. */
9072 char XOpenDisplay ();
9081 rm -f conftest.$ac_objext conftest$ac_exeext
9082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9083 (eval $ac_link) 2>&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } &&
9087 { ac_try='test -s conftest$ac_exeext'
9088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; }; then
9095 echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9098 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9099 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9100 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 ac_check_lib_save_LIBS=$LIBS
9105 cat >conftest.$ac_ext <<_ACEOF
9106 #line $LINENO "configure"
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9113 /* Override any gcc2 internal prototype to avoid an error. */
9117 /* We use char because int might match the return type of a gcc2
9118 builtin and then its argument prototype would still apply. */
9128 rm -f conftest.$ac_objext conftest$ac_exeext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9130 (eval $ac_link) 2>&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } &&
9134 { ac_try='test -s conftest$ac_exeext'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; }; then
9140 ac_cv_lib_dnet_dnet_ntoa=yes
9142 echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.$ac_ext >&5
9145 ac_cv_lib_dnet_dnet_ntoa=no
9147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9148 LIBS=$ac_check_lib_save_LIBS
9150 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9151 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9152 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9153 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9156 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9157 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9158 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9159 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 ac_check_lib_save_LIBS=$LIBS
9163 LIBS="-ldnet_stub $LIBS"
9164 cat >conftest.$ac_ext <<_ACEOF
9165 #line $LINENO "configure"
9168 cat confdefs.h >>conftest.$ac_ext
9169 cat >>conftest.$ac_ext <<_ACEOF
9170 /* end confdefs.h. */
9172 /* Override any gcc2 internal prototype to avoid an error. */
9176 /* We use char because int might match the return type of a gcc2
9177 builtin and then its argument prototype would still apply. */
9187 rm -f conftest.$ac_objext conftest$ac_exeext
9188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9189 (eval $ac_link) 2>&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } &&
9193 { ac_try='test -s conftest$ac_exeext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9204 ac_cv_lib_dnet_stub_dnet_ntoa=no
9206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9207 LIBS=$ac_check_lib_save_LIBS
9209 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9210 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9211 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9212 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9218 LIBS="$ac_xsave_LIBS"
9220 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9221 # to get the SysV transport functions.
9222 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9224 # The nsl library prevents programs from opening the X display
9225 # on Irix 5.2, according to T.E. Dickey.
9226 # The functions gethostbyname, getservbyname, and inet_addr are
9227 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9228 echo "$as_me:$LINENO: checking for gethostbyname" >&5
9229 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9230 if test "${ac_cv_func_gethostbyname+set}" = set; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9233 cat >conftest.$ac_ext <<_ACEOF
9234 #line $LINENO "configure"
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 /* System header to define __stub macros and hopefully few prototypes,
9241 which can conflict with char gethostbyname (); below.
9242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9243 <limits.h> exists even on freestanding compilers. */
9245 # include <limits.h>
9247 # include <assert.h>
9249 /* Override any gcc2 internal prototype to avoid an error. */
9254 /* We use char because int might match the return type of a gcc2
9255 builtin and then its argument prototype would still apply. */
9256 char gethostbyname ();
9257 /* The GNU C library defines this for functions which it implements
9258 to always fail with ENOSYS. Some functions are actually named
9259 something starting with __ and the normal name is an alias. */
9260 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9263 char (*f) () = gethostbyname;
9272 return f != gethostbyname;
9277 rm -f conftest.$ac_objext conftest$ac_exeext
9278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9279 (eval $ac_link) 2>&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } &&
9283 { ac_try='test -s conftest$ac_exeext'
9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; }; then
9289 ac_cv_func_gethostbyname=yes
9291 echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.$ac_ext >&5
9294 ac_cv_func_gethostbyname=no
9296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9298 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9299 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9301 if test $ac_cv_func_gethostbyname = no; then
9302 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9303 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9304 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 ac_check_lib_save_LIBS=$LIBS
9309 cat >conftest.$ac_ext <<_ACEOF
9310 #line $LINENO "configure"
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9317 /* Override any gcc2 internal prototype to avoid an error. */
9321 /* We use char because int might match the return type of a gcc2
9322 builtin and then its argument prototype would still apply. */
9323 char gethostbyname ();
9332 rm -f conftest.$ac_objext conftest$ac_exeext
9333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9334 (eval $ac_link) 2>&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); } &&
9338 { ac_try='test -s conftest$ac_exeext'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; }; then
9344 ac_cv_lib_nsl_gethostbyname=yes
9346 echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9349 ac_cv_lib_nsl_gethostbyname=no
9351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9352 LIBS=$ac_check_lib_save_LIBS
9354 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9355 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9356 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9357 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9360 if test $ac_cv_lib_nsl_gethostbyname = no; then
9361 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9362 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9363 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9364 echo $ECHO_N "(cached) $ECHO_C" >&6
9366 ac_check_lib_save_LIBS=$LIBS
9368 cat >conftest.$ac_ext <<_ACEOF
9369 #line $LINENO "configure"
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9376 /* Override any gcc2 internal prototype to avoid an error. */
9380 /* We use char because int might match the return type of a gcc2
9381 builtin and then its argument prototype would still apply. */
9382 char gethostbyname ();
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393 (eval $ac_link) 2>&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } &&
9397 { ac_try='test -s conftest$ac_exeext'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 ac_cv_lib_bsd_gethostbyname=yes
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9408 ac_cv_lib_bsd_gethostbyname=no
9410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9411 LIBS=$ac_check_lib_save_LIBS
9413 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9414 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9415 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9416 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9422 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9423 # socket/setsockopt and other routines are undefined under SCO ODT
9424 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9425 # on later versions), says Simon Leinen: it contains gethostby*
9426 # variants that don't use the name server (or something). -lsocket
9427 # must be given before -lnsl if both are needed. We assume that
9428 # if connect needs -lnsl, so does gethostbyname.
9429 echo "$as_me:$LINENO: checking for connect" >&5
9430 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9431 if test "${ac_cv_func_connect+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9434 cat >conftest.$ac_ext <<_ACEOF
9435 #line $LINENO "configure"
9438 cat confdefs.h >>conftest.$ac_ext
9439 cat >>conftest.$ac_ext <<_ACEOF
9440 /* end confdefs.h. */
9441 /* System header to define __stub macros and hopefully few prototypes,
9442 which can conflict with char connect (); below.
9443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9444 <limits.h> exists even on freestanding compilers. */
9446 # include <limits.h>
9448 # include <assert.h>
9450 /* Override any gcc2 internal prototype to avoid an error. */
9455 /* We use char because int might match the return type of a gcc2
9456 builtin and then its argument prototype would still apply. */
9458 /* The GNU C library defines this for functions which it implements
9459 to always fail with ENOSYS. Some functions are actually named
9460 something starting with __ and the normal name is an alias. */
9461 #if defined (__stub_connect) || defined (__stub___connect)
9464 char (*f) () = connect;
9473 return f != connect;
9478 rm -f conftest.$ac_objext conftest$ac_exeext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9480 (eval $ac_link) 2>&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } &&
9484 { ac_try='test -s conftest$ac_exeext'
9485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; }; then
9490 ac_cv_func_connect=yes
9492 echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9495 ac_cv_func_connect=no
9497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9499 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9500 echo "${ECHO_T}$ac_cv_func_connect" >&6
9502 if test $ac_cv_func_connect = no; then
9503 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9504 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9505 if test "${ac_cv_lib_socket_connect+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 ac_check_lib_save_LIBS=$LIBS
9509 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9510 cat >conftest.$ac_ext <<_ACEOF
9511 #line $LINENO "configure"
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h. */
9518 /* Override any gcc2 internal prototype to avoid an error. */
9522 /* We use char because int might match the return type of a gcc2
9523 builtin and then its argument prototype would still apply. */
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9535 (eval $ac_link) 2>&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } &&
9539 { ac_try='test -s conftest$ac_exeext'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; }; then
9545 ac_cv_lib_socket_connect=yes
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9550 ac_cv_lib_socket_connect=no
9552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9553 LIBS=$ac_check_lib_save_LIBS
9555 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9556 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9557 if test $ac_cv_lib_socket_connect = yes; then
9558 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9563 # Guillermo Gomez says -lposix is necessary on A/UX.
9564 echo "$as_me:$LINENO: checking for remove" >&5
9565 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9566 if test "${ac_cv_func_remove+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9569 cat >conftest.$ac_ext <<_ACEOF
9570 #line $LINENO "configure"
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h. */
9576 /* System header to define __stub macros and hopefully few prototypes,
9577 which can conflict with char remove (); below.
9578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9579 <limits.h> exists even on freestanding compilers. */
9581 # include <limits.h>
9583 # include <assert.h>
9585 /* Override any gcc2 internal prototype to avoid an error. */
9590 /* We use char because int might match the return type of a gcc2
9591 builtin and then its argument prototype would still apply. */
9593 /* The GNU C library defines this for functions which it implements
9594 to always fail with ENOSYS. Some functions are actually named
9595 something starting with __ and the normal name is an alias. */
9596 #if defined (__stub_remove) || defined (__stub___remove)
9599 char (*f) () = remove;
9613 rm -f conftest.$ac_objext conftest$ac_exeext
9614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9615 (eval $ac_link) 2>&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } &&
9619 { ac_try='test -s conftest$ac_exeext'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; }; then
9625 ac_cv_func_remove=yes
9627 echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9630 ac_cv_func_remove=no
9632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9634 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9635 echo "${ECHO_T}$ac_cv_func_remove" >&6
9637 if test $ac_cv_func_remove = no; then
9638 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9639 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9640 if test "${ac_cv_lib_posix_remove+set}" = set; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9643 ac_check_lib_save_LIBS=$LIBS
9644 LIBS="-lposix $LIBS"
9645 cat >conftest.$ac_ext <<_ACEOF
9646 #line $LINENO "configure"
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9653 /* Override any gcc2 internal prototype to avoid an error. */
9657 /* We use char because int might match the return type of a gcc2
9658 builtin and then its argument prototype would still apply. */
9668 rm -f conftest.$ac_objext conftest$ac_exeext
9669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9670 (eval $ac_link) 2>&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } &&
9674 { ac_try='test -s conftest$ac_exeext'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; }; then
9680 ac_cv_lib_posix_remove=yes
9682 echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9685 ac_cv_lib_posix_remove=no
9687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9688 LIBS=$ac_check_lib_save_LIBS
9690 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9691 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9692 if test $ac_cv_lib_posix_remove = yes; then
9693 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9698 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9699 echo "$as_me:$LINENO: checking for shmat" >&5
9700 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9701 if test "${ac_cv_func_shmat+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 cat >conftest.$ac_ext <<_ACEOF
9705 #line $LINENO "configure"
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9711 /* System header to define __stub macros and hopefully few prototypes,
9712 which can conflict with char shmat (); below.
9713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9714 <limits.h> exists even on freestanding compilers. */
9716 # include <limits.h>
9718 # include <assert.h>
9720 /* Override any gcc2 internal prototype to avoid an error. */
9725 /* We use char because int might match the return type of a gcc2
9726 builtin and then its argument prototype would still apply. */
9728 /* The GNU C library defines this for functions which it implements
9729 to always fail with ENOSYS. Some functions are actually named
9730 something starting with __ and the normal name is an alias. */
9731 #if defined (__stub_shmat) || defined (__stub___shmat)
9734 char (*f) () = shmat;
9748 rm -f conftest.$ac_objext conftest$ac_exeext
9749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9750 (eval $ac_link) 2>&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
9754 { ac_try='test -s conftest$ac_exeext'
9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; }; then
9760 ac_cv_func_shmat=yes
9762 echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9769 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9770 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9772 if test $ac_cv_func_shmat = no; then
9773 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9774 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9775 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 ac_check_lib_save_LIBS=$LIBS
9780 cat >conftest.$ac_ext <<_ACEOF
9781 #line $LINENO "configure"
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9788 /* Override any gcc2 internal prototype to avoid an error. */
9792 /* We use char because int might match the return type of a gcc2
9793 builtin and then its argument prototype would still apply. */
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9805 (eval $ac_link) 2>&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } &&
9809 { ac_try='test -s conftest$ac_exeext'
9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815 ac_cv_lib_ipc_shmat=yes
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9820 ac_cv_lib_ipc_shmat=no
9822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9823 LIBS=$ac_check_lib_save_LIBS
9825 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9826 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9827 if test $ac_cv_lib_ipc_shmat = yes; then
9828 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9834 # Check for libraries that X11R6 Xt/Xaw programs need.
9835 ac_save_LDFLAGS=$LDFLAGS
9836 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9837 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9838 # check for ICE first), but we must link in the order -lSM -lICE or
9839 # we get undefined symbols. So assume we have SM if we have ICE.
9840 # These have to be linked with before -lX11, unlike the other
9841 # libraries we check for below, so use a different variable.
9842 # John Interrante, Karl Berry
9843 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9844 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9845 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9848 ac_check_lib_save_LIBS=$LIBS
9849 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9850 cat >conftest.$ac_ext <<_ACEOF
9851 #line $LINENO "configure"
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9858 /* Override any gcc2 internal prototype to avoid an error. */
9862 /* We use char because int might match the return type of a gcc2
9863 builtin and then its argument prototype would still apply. */
9864 char IceConnectionNumber ();
9868 IceConnectionNumber ();
9873 rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9875 (eval $ac_link) 2>&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } &&
9879 { ac_try='test -s conftest$ac_exeext'
9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; }; then
9885 ac_cv_lib_ICE_IceConnectionNumber=yes
9887 echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9890 ac_cv_lib_ICE_IceConnectionNumber=no
9892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9893 LIBS=$ac_check_lib_save_LIBS
9895 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9896 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9897 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9898 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9901 LDFLAGS=$ac_save_LDFLAGS
9963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9965 echo "$as_me:$LINENO: checking for $ac_header" >&5
9966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9973 # Is the header compilable?
9974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9976 cat >conftest.$ac_ext <<_ACEOF
9977 #line $LINENO "configure"
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9983 $ac_includes_default
9984 #include <$ac_header>
9986 rm -f conftest.$ac_objext
9987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9988 (eval $ac_compile) 2>&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } &&
9992 { ac_try='test -s conftest.$ac_objext'
9993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; }; then
9998 ac_header_compiler=yes
10000 echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10003 ac_header_compiler=no
10005 rm -f conftest.$ac_objext conftest.$ac_ext
10006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10007 echo "${ECHO_T}$ac_header_compiler" >&6
10009 # Is the header present?
10010 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10012 cat >conftest.$ac_ext <<_ACEOF
10013 #line $LINENO "configure"
10016 cat confdefs.h >>conftest.$ac_ext
10017 cat >>conftest.$ac_ext <<_ACEOF
10018 /* end confdefs.h. */
10019 #include <$ac_header>
10021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10024 grep -v '^ *+' conftest.er1 >conftest.err
10026 cat conftest.err >&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } >/dev/null; then
10029 if test -s conftest.err; then
10030 ac_cpp_err=$ac_c_preproc_warn_flag
10037 if test -z "$ac_cpp_err"; then
10038 ac_header_preproc=yes
10040 echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10043 ac_header_preproc=no
10045 rm -f conftest.err conftest.$ac_ext
10046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10047 echo "${ECHO_T}$ac_header_preproc" >&6
10049 # So? What about this header?
10050 case $ac_header_compiler:$ac_header_preproc in
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10058 ## ------------------------------------ ##
10059 ## Report this to bug-autoconf@gnu.org. ##
10060 ## ------------------------------------ ##
10063 sed "s/^/$as_me: WARNING: /" >&2
10066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10074 ## ------------------------------------ ##
10075 ## Report this to bug-autoconf@gnu.org. ##
10076 ## ------------------------------------ ##
10079 sed "s/^/$as_me: WARNING: /" >&2
10082 echo "$as_me:$LINENO: checking for $ac_header" >&5
10083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 eval "$as_ac_Header=$ac_header_preproc"
10089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10094 cat >>confdefs.h <<_ACEOF
10095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10102 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10103 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10104 if test "${ac_cv_header_stdc+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 cat >conftest.$ac_ext <<_ACEOF
10108 #line $LINENO "configure"
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10114 #include <stdlib.h>
10115 #include <stdarg.h>
10116 #include <string.h>
10127 rm -f conftest.$ac_objext
10128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10129 (eval $ac_compile) 2>&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); } &&
10133 { ac_try='test -s conftest.$ac_objext'
10134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10135 (eval $ac_try) 2>&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; }; then
10139 ac_cv_header_stdc=yes
10141 echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10144 ac_cv_header_stdc=no
10146 rm -f conftest.$ac_objext conftest.$ac_ext
10148 if test $ac_cv_header_stdc = yes; then
10149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10150 cat >conftest.$ac_ext <<_ACEOF
10151 #line $LINENO "configure"
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10157 #include <string.h>
10160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10161 $EGREP "memchr" >/dev/null 2>&1; then
10164 ac_cv_header_stdc=no
10170 if test $ac_cv_header_stdc = yes; then
10171 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10172 cat >conftest.$ac_ext <<_ACEOF
10173 #line $LINENO "configure"
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h. */
10179 #include <stdlib.h>
10182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10183 $EGREP "free" >/dev/null 2>&1; then
10186 ac_cv_header_stdc=no
10192 if test $ac_cv_header_stdc = yes; then
10193 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10194 if test "$cross_compiling" = yes; then
10197 cat >conftest.$ac_ext <<_ACEOF
10198 #line $LINENO "configure"
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10205 #if ((' ' & 0x0FF) == 0x020)
10206 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10207 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10209 # define ISLOWER(c) \
10210 (('a' <= (c) && (c) <= 'i') \
10211 || ('j' <= (c) && (c) <= 'r') \
10212 || ('s' <= (c) && (c) <= 'z'))
10213 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10216 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10221 for (i = 0; i < 256; i++)
10222 if (XOR (islower (i), ISLOWER (i))
10223 || toupper (i) != TOUPPER (i))
10228 rm -f conftest$ac_exeext
10229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10230 (eval $ac_link) 2>&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10235 (eval $ac_try) 2>&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); }; }; then
10241 echo "$as_me: program exited with status $ac_status" >&5
10242 echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10245 ( exit $ac_status )
10246 ac_cv_header_stdc=no
10248 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10252 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10253 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10254 if test $ac_cv_header_stdc = yes; then
10256 cat >>confdefs.h <<\_ACEOF
10257 #define STDC_HEADERS 1
10262 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10263 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10264 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10265 echo $ECHO_N "(cached) $ECHO_C" >&6
10267 cat >conftest.$ac_ext <<_ACEOF
10268 #line $LINENO "configure"
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10274 #include <sys/types.h>
10278 return makedev(0, 0);
10283 rm -f conftest.$ac_objext conftest$ac_exeext
10284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10285 (eval $ac_link) 2>&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } &&
10289 { ac_try='test -s conftest$ac_exeext'
10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291 (eval $ac_try) 2>&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; }; then
10295 ac_cv_header_sys_types_h_makedev=yes
10297 echo "$as_me: failed program was:" >&5
10298 sed 's/^/| /' conftest.$ac_ext >&5
10300 ac_cv_header_sys_types_h_makedev=no
10302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10305 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
10306 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
10308 if test $ac_cv_header_sys_types_h_makedev = no; then
10309 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10310 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10311 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10312 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10315 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10316 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10318 # Is the header compilable?
10319 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
10320 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
10321 cat >conftest.$ac_ext <<_ACEOF
10322 #line $LINENO "configure"
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10328 $ac_includes_default
10329 #include <sys/mkdev.h>
10331 rm -f conftest.$ac_objext
10332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } &&
10337 { ac_try='test -s conftest.$ac_objext'
10338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339 (eval $ac_try) 2>&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; }; then
10343 ac_header_compiler=yes
10345 echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10348 ac_header_compiler=no
10350 rm -f conftest.$ac_objext conftest.$ac_ext
10351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10352 echo "${ECHO_T}$ac_header_compiler" >&6
10354 # Is the header present?
10355 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
10356 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
10357 cat >conftest.$ac_ext <<_ACEOF
10358 #line $LINENO "configure"
10361 cat confdefs.h >>conftest.$ac_ext
10362 cat >>conftest.$ac_ext <<_ACEOF
10363 /* end confdefs.h. */
10364 #include <sys/mkdev.h>
10366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10369 grep -v '^ *+' conftest.er1 >conftest.err
10371 cat conftest.err >&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); } >/dev/null; then
10374 if test -s conftest.err; then
10375 ac_cpp_err=$ac_c_preproc_warn_flag
10382 if test -z "$ac_cpp_err"; then
10383 ac_header_preproc=yes
10385 echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10388 ac_header_preproc=no
10390 rm -f conftest.err conftest.$ac_ext
10391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10392 echo "${ECHO_T}$ac_header_preproc" >&6
10394 # So? What about this header?
10395 case $ac_header_compiler:$ac_header_preproc in
10397 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
10398 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10399 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10400 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10403 ## ------------------------------------ ##
10404 ## Report this to bug-autoconf@gnu.org. ##
10405 ## ------------------------------------ ##
10408 sed "s/^/$as_me: WARNING: /" >&2
10411 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
10412 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
10413 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
10414 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
10415 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10416 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10419 ## ------------------------------------ ##
10420 ## Report this to bug-autoconf@gnu.org. ##
10421 ## ------------------------------------ ##
10424 sed "s/^/$as_me: WARNING: /" >&2
10427 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10428 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10429 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 ac_cv_header_sys_mkdev_h=$ac_header_preproc
10434 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10435 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10438 if test $ac_cv_header_sys_mkdev_h = yes; then
10440 cat >>confdefs.h <<\_ACEOF
10441 #define MAJOR_IN_MKDEV 1
10448 if test $ac_cv_header_sys_mkdev_h = no; then
10449 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10450 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10451 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10452 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10455 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10456 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10458 # Is the header compilable?
10459 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
10460 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
10461 cat >conftest.$ac_ext <<_ACEOF
10462 #line $LINENO "configure"
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10468 $ac_includes_default
10469 #include <sys/sysmacros.h>
10471 rm -f conftest.$ac_objext
10472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10473 (eval $ac_compile) 2>&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } &&
10477 { ac_try='test -s conftest.$ac_objext'
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
10483 ac_header_compiler=yes
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10488 ac_header_compiler=no
10490 rm -f conftest.$ac_objext conftest.$ac_ext
10491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10492 echo "${ECHO_T}$ac_header_compiler" >&6
10494 # Is the header present?
10495 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
10496 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
10497 cat >conftest.$ac_ext <<_ACEOF
10498 #line $LINENO "configure"
10501 cat confdefs.h >>conftest.$ac_ext
10502 cat >>conftest.$ac_ext <<_ACEOF
10503 /* end confdefs.h. */
10504 #include <sys/sysmacros.h>
10506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10509 grep -v '^ *+' conftest.er1 >conftest.err
10511 cat conftest.err >&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } >/dev/null; then
10514 if test -s conftest.err; then
10515 ac_cpp_err=$ac_c_preproc_warn_flag
10522 if test -z "$ac_cpp_err"; then
10523 ac_header_preproc=yes
10525 echo "$as_me: failed program was:" >&5
10526 sed 's/^/| /' conftest.$ac_ext >&5
10528 ac_header_preproc=no
10530 rm -f conftest.err conftest.$ac_ext
10531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10532 echo "${ECHO_T}$ac_header_preproc" >&6
10534 # So? What about this header?
10535 case $ac_header_compiler:$ac_header_preproc in
10537 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10538 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10539 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10540 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10543 ## ------------------------------------ ##
10544 ## Report this to bug-autoconf@gnu.org. ##
10545 ## ------------------------------------ ##
10548 sed "s/^/$as_me: WARNING: /" >&2
10551 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10552 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10553 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
10554 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
10555 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10556 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10559 ## ------------------------------------ ##
10560 ## Report this to bug-autoconf@gnu.org. ##
10561 ## ------------------------------------ ##
10564 sed "s/^/$as_me: WARNING: /" >&2
10567 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10568 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10569 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10570 echo $ECHO_N "(cached) $ECHO_C" >&6
10572 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10574 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10575 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10578 if test $ac_cv_header_sys_sysmacros_h = yes; then
10580 cat >>confdefs.h <<\_ACEOF
10581 #define MAJOR_IN_SYSMACROS 1
10595 ac_header_dirent=no
10596 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10597 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10598 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10599 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10603 cat >conftest.$ac_ext <<_ACEOF
10604 #line $LINENO "configure"
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h. */
10610 #include <sys/types.h>
10622 rm -f conftest.$ac_objext
10623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10624 (eval $ac_compile) 2>&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } &&
10628 { ac_try='test -s conftest.$ac_objext'
10629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630 (eval $ac_try) 2>&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; }; then
10634 eval "$as_ac_Header=yes"
10636 echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10639 eval "$as_ac_Header=no"
10641 rm -f conftest.$ac_objext conftest.$ac_ext
10643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10646 cat >>confdefs.h <<_ACEOF
10647 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10650 ac_header_dirent=$ac_hdr; break
10654 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10655 if test $ac_header_dirent = dirent.h; then
10656 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10657 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10658 if test "${ac_cv_search_opendir+set}" = set; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 ac_func_search_save_LIBS=$LIBS
10662 ac_cv_search_opendir=no
10663 cat >conftest.$ac_ext <<_ACEOF
10664 #line $LINENO "configure"
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10671 /* Override any gcc2 internal prototype to avoid an error. */
10675 /* We use char because int might match the return type of a gcc2
10676 builtin and then its argument prototype would still apply. */
10686 rm -f conftest.$ac_objext conftest$ac_exeext
10687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10688 (eval $ac_link) 2>&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } &&
10692 { ac_try='test -s conftest$ac_exeext'
10693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; }; then
10698 ac_cv_search_opendir="none required"
10700 echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.$ac_ext >&5
10704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10705 if test "$ac_cv_search_opendir" = no; then
10706 for ac_lib in dir; do
10707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10708 cat >conftest.$ac_ext <<_ACEOF
10709 #line $LINENO "configure"
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10716 /* Override any gcc2 internal prototype to avoid an error. */
10720 /* We use char because int might match the return type of a gcc2
10721 builtin and then its argument prototype would still apply. */
10731 rm -f conftest.$ac_objext conftest$ac_exeext
10732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10733 (eval $ac_link) 2>&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); } &&
10737 { ac_try='test -s conftest$ac_exeext'
10738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739 (eval $ac_try) 2>&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; }; then
10743 ac_cv_search_opendir="-l$ac_lib"
10746 echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10753 LIBS=$ac_func_search_save_LIBS
10755 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10756 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10757 if test "$ac_cv_search_opendir" != no; then
10758 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10763 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10764 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10765 if test "${ac_cv_search_opendir+set}" = set; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 ac_func_search_save_LIBS=$LIBS
10769 ac_cv_search_opendir=no
10770 cat >conftest.$ac_ext <<_ACEOF
10771 #line $LINENO "configure"
10774 cat confdefs.h >>conftest.$ac_ext
10775 cat >>conftest.$ac_ext <<_ACEOF
10776 /* end confdefs.h. */
10778 /* Override any gcc2 internal prototype to avoid an error. */
10782 /* We use char because int might match the return type of a gcc2
10783 builtin and then its argument prototype would still apply. */
10793 rm -f conftest.$ac_objext conftest$ac_exeext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10795 (eval $ac_link) 2>&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } &&
10799 { ac_try='test -s conftest$ac_exeext'
10800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; }; then
10805 ac_cv_search_opendir="none required"
10807 echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.$ac_ext >&5
10811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10812 if test "$ac_cv_search_opendir" = no; then
10813 for ac_lib in x; do
10814 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10815 cat >conftest.$ac_ext <<_ACEOF
10816 #line $LINENO "configure"
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10823 /* Override any gcc2 internal prototype to avoid an error. */
10827 /* We use char because int might match the return type of a gcc2
10828 builtin and then its argument prototype would still apply. */
10838 rm -f conftest.$ac_objext conftest$ac_exeext
10839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10840 (eval $ac_link) 2>&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
10844 { ac_try='test -s conftest$ac_exeext'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; }; then
10850 ac_cv_search_opendir="-l$ac_lib"
10853 echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10860 LIBS=$ac_func_search_save_LIBS
10862 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10863 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10864 if test "$ac_cv_search_opendir" != no; then
10865 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10871 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10872 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10873 if test "${ac_cv_header_stat_broken+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10876 cat >conftest.$ac_ext <<_ACEOF
10877 #line $LINENO "configure"
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
10883 #include <sys/types.h>
10884 #include <sys/stat.h>
10886 #if defined(S_ISBLK) && defined(S_IFDIR)
10887 # if S_ISBLK (S_IFDIR)
10892 #if defined(S_ISBLK) && defined(S_IFCHR)
10893 # if S_ISBLK (S_IFCHR)
10898 #if defined(S_ISLNK) && defined(S_IFREG)
10899 # if S_ISLNK (S_IFREG)
10904 #if defined(S_ISSOCK) && defined(S_IFREG)
10905 # if S_ISSOCK (S_IFREG)
10911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10912 $EGREP "You lose" >/dev/null 2>&1; then
10913 ac_cv_header_stat_broken=yes
10915 ac_cv_header_stat_broken=no
10920 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10921 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10922 if test $ac_cv_header_stat_broken = yes; then
10924 cat >>confdefs.h <<\_ACEOF
10925 #define STAT_MACROS_BROKEN 1
10930 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10931 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10932 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10935 cat >conftest.$ac_ext <<_ACEOF
10936 #line $LINENO "configure"
10939 cat confdefs.h >>conftest.$ac_ext
10940 cat >>conftest.$ac_ext <<_ACEOF
10941 /* end confdefs.h. */
10942 #include <sys/types.h>
10943 #include <sys/wait.h>
10944 #ifndef WEXITSTATUS
10945 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10948 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10956 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10961 rm -f conftest.$ac_objext
10962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10963 (eval $ac_compile) 2>&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } &&
10967 { ac_try='test -s conftest.$ac_objext'
10968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; }; then
10973 ac_cv_header_sys_wait_h=yes
10975 echo "$as_me: failed program was:" >&5
10976 sed 's/^/| /' conftest.$ac_ext >&5
10978 ac_cv_header_sys_wait_h=no
10980 rm -f conftest.$ac_objext conftest.$ac_ext
10982 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10983 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10984 if test $ac_cv_header_sys_wait_h = yes; then
10986 cat >>confdefs.h <<\_ACEOF
10987 #define HAVE_SYS_WAIT_H 1
10992 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10993 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10994 if test "${ac_cv_header_time+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10997 cat >conftest.$ac_ext <<_ACEOF
10998 #line $LINENO "configure"
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h. */
11004 #include <sys/types.h>
11005 #include <sys/time.h>
11011 if ((struct tm *) 0)
11017 rm -f conftest.$ac_objext
11018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11019 (eval $ac_compile) 2>&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } &&
11023 { ac_try='test -s conftest.$ac_objext'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; }; then
11029 ac_cv_header_time=yes
11031 echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11034 ac_cv_header_time=no
11036 rm -f conftest.$ac_objext conftest.$ac_ext
11038 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11039 echo "${ECHO_T}$ac_cv_header_time" >&6
11040 if test $ac_cv_header_time = yes; then
11042 cat >>confdefs.h <<\_ACEOF
11043 #define TIME_WITH_SYS_TIME 1
11049 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11050 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11051 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11052 echo $ECHO_N "(cached) $ECHO_C" >&6
11054 cat >conftest.$ac_ext <<_ACEOF
11055 #line $LINENO "configure"
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h. */
11061 $ac_includes_default
11065 static struct stat ac_aggr;
11066 if (ac_aggr.st_blksize)
11072 rm -f conftest.$ac_objext
11073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11074 (eval $ac_compile) 2>&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } &&
11078 { ac_try='test -s conftest.$ac_objext'
11079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11080 (eval $ac_try) 2>&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; }; then
11084 ac_cv_member_struct_stat_st_blksize=yes
11086 echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11089 cat >conftest.$ac_ext <<_ACEOF
11090 #line $LINENO "configure"
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11096 $ac_includes_default
11100 static struct stat ac_aggr;
11101 if (sizeof ac_aggr.st_blksize)
11107 rm -f conftest.$ac_objext
11108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11109 (eval $ac_compile) 2>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } &&
11113 { ac_try='test -s conftest.$ac_objext'
11114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115 (eval $ac_try) 2>&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
11119 ac_cv_member_struct_stat_st_blksize=yes
11121 echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11124 ac_cv_member_struct_stat_st_blksize=no
11126 rm -f conftest.$ac_objext conftest.$ac_ext
11128 rm -f conftest.$ac_objext conftest.$ac_ext
11130 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11131 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11132 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11134 cat >>confdefs.h <<_ACEOF
11135 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11139 cat >>confdefs.h <<\_ACEOF
11140 #define HAVE_ST_BLKSIZE 1
11146 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11147 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11148 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11151 cat >conftest.$ac_ext <<_ACEOF
11152 #line $LINENO "configure"
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h. */
11158 $ac_includes_default
11162 static struct stat ac_aggr;
11163 if (ac_aggr.st_blocks)
11169 rm -f conftest.$ac_objext
11170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11171 (eval $ac_compile) 2>&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } &&
11175 { ac_try='test -s conftest.$ac_objext'
11176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11177 (eval $ac_try) 2>&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }; }; then
11181 ac_cv_member_struct_stat_st_blocks=yes
11183 echo "$as_me: failed program was:" >&5
11184 sed 's/^/| /' conftest.$ac_ext >&5
11186 cat >conftest.$ac_ext <<_ACEOF
11187 #line $LINENO "configure"
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 $ac_includes_default
11197 static struct stat ac_aggr;
11198 if (sizeof ac_aggr.st_blocks)
11204 rm -f conftest.$ac_objext
11205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11206 (eval $ac_compile) 2>&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } &&
11210 { ac_try='test -s conftest.$ac_objext'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; }; then
11216 ac_cv_member_struct_stat_st_blocks=yes
11218 echo "$as_me: failed program was:" >&5
11219 sed 's/^/| /' conftest.$ac_ext >&5
11221 ac_cv_member_struct_stat_st_blocks=no
11223 rm -f conftest.$ac_objext conftest.$ac_ext
11225 rm -f conftest.$ac_objext conftest.$ac_ext
11227 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11228 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11229 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11231 cat >>confdefs.h <<_ACEOF
11232 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11236 cat >>confdefs.h <<\_ACEOF
11237 #define HAVE_ST_BLOCKS 1
11241 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11245 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11246 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11247 if test "${ac_cv_struct_tm+set}" = set; then
11248 echo $ECHO_N "(cached) $ECHO_C" >&6
11250 cat >conftest.$ac_ext <<_ACEOF
11251 #line $LINENO "configure"
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h. */
11257 #include <sys/types.h>
11263 struct tm *tp; tp->tm_sec;
11268 rm -f conftest.$ac_objext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11270 (eval $ac_compile) 2>&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } &&
11274 { ac_try='test -s conftest.$ac_objext'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 ac_cv_struct_tm=time.h
11282 echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11285 ac_cv_struct_tm=sys/time.h
11287 rm -f conftest.$ac_objext conftest.$ac_ext
11289 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11290 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11291 if test $ac_cv_struct_tm = sys/time.h; then
11293 cat >>confdefs.h <<\_ACEOF
11294 #define TM_IN_SYS_TIME 1
11299 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11300 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11301 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 cat >conftest.$ac_ext <<_ACEOF
11305 #line $LINENO "configure"
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h. */
11311 #include <sys/types.h>
11312 #include <$ac_cv_struct_tm>
11318 static struct tm ac_aggr;
11319 if (ac_aggr.tm_zone)
11325 rm -f conftest.$ac_objext
11326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11327 (eval $ac_compile) 2>&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } &&
11331 { ac_try='test -s conftest.$ac_objext'
11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333 (eval $ac_try) 2>&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; }; then
11337 ac_cv_member_struct_tm_tm_zone=yes
11339 echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11342 cat >conftest.$ac_ext <<_ACEOF
11343 #line $LINENO "configure"
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 #include <sys/types.h>
11350 #include <$ac_cv_struct_tm>
11356 static struct tm ac_aggr;
11357 if (sizeof ac_aggr.tm_zone)
11363 rm -f conftest.$ac_objext
11364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11365 (eval $ac_compile) 2>&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
11369 { ac_try='test -s conftest.$ac_objext'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; }; then
11375 ac_cv_member_struct_tm_tm_zone=yes
11377 echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.$ac_ext >&5
11380 ac_cv_member_struct_tm_tm_zone=no
11382 rm -f conftest.$ac_objext conftest.$ac_ext
11384 rm -f conftest.$ac_objext conftest.$ac_ext
11386 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11387 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11388 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11390 cat >>confdefs.h <<_ACEOF
11391 #define HAVE_STRUCT_TM_TM_ZONE 1
11397 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11399 cat >>confdefs.h <<\_ACEOF
11400 #define HAVE_TM_ZONE 1
11404 echo "$as_me:$LINENO: checking for tzname" >&5
11405 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11406 if test "${ac_cv_var_tzname+set}" = set; then
11407 echo $ECHO_N "(cached) $ECHO_C" >&6
11409 cat >conftest.$ac_ext <<_ACEOF
11410 #line $LINENO "configure"
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11417 #ifndef tzname /* For SGI. */
11418 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11429 rm -f conftest.$ac_objext conftest$ac_exeext
11430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11431 (eval $ac_link) 2>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
11435 { ac_try='test -s conftest$ac_exeext'
11436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437 (eval $ac_try) 2>&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); }; }; then
11441 ac_cv_var_tzname=yes
11443 echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11446 ac_cv_var_tzname=no
11448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11450 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11451 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11452 if test $ac_cv_var_tzname = yes; then
11454 cat >>confdefs.h <<\_ACEOF
11455 #define HAVE_TZNAME 1
11462 echo "$as_me:$LINENO: checking for utime.h" >&5
11463 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
11464 if test "${ba_cv_header_utime_h+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. */
11475 #include <sys/types.h>
11485 rm -f conftest.$ac_objext
11486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11487 (eval $ac_compile) 2>&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -s conftest.$ac_objext'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 ba_cv_header_utime_h=yes
11499 echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11502 ba_cv_header_utime_h=no
11504 rm -f conftest.$ac_objext conftest.$ac_ext
11506 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
11507 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
11508 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
11509 #define HAVE_UTIME_H 1
11513 echo "$as_me:$LINENO: checking for socklen_t" >&5
11514 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11515 if test "${ba_cv_header_socklen_t+set}" = set; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11518 cat >conftest.$ac_ext <<_ACEOF
11519 #line $LINENO "configure"
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h. */
11526 #include <sys/types.h>
11527 #include <sys/socket.h>
11536 rm -f conftest.$ac_objext
11537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11538 (eval $ac_compile) 2>&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); } &&
11542 { ac_try='test -s conftest.$ac_objext'
11543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11544 (eval $ac_try) 2>&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); }; }; then
11548 ba_cv_header_socklen_t=yes
11550 echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11553 ba_cv_header_socklen_t=no
11555 rm -f conftest.$ac_objext conftest.$ac_ext
11557 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
11558 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
11559 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
11560 #define HAVE_SOCKLEN_T 1
11564 echo "$as_me:$LINENO: checking for bigendian" >&5
11565 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
11566 if test "${ba_cv_bigendian+set}" = set; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11569 if test "$cross_compiling" = yes; then
11572 cat >conftest.$ac_ext <<_ACEOF
11573 #line $LINENO "configure"
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 main(){long a=1L; char *p=(char *)&a; exit(*p);}
11581 rm -f conftest$ac_exeext
11582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11583 (eval $ac_link) 2>&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; }; then
11592 ba_cv_bigendian=yes
11594 echo "$as_me: program exited with status $ac_status" >&5
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11598 ( exit $ac_status )
11601 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11604 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
11605 echo "${ECHO_T}$ba_cv_bigendian" >&6
11606 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
11607 #define HAVE_BIGENDIAN 1
11612 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11613 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11614 if test "${ac_cv_c_const+set}" = set; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11617 cat >conftest.$ac_ext <<_ACEOF
11618 #line $LINENO "configure"
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h. */
11628 /* FIXME: Include the comments suggested by Paul. */
11629 #ifndef __cplusplus
11630 /* Ultrix mips cc rejects this. */
11631 typedef int charset[2];
11633 /* SunOS 4.1.1 cc rejects this. */
11634 char const *const *ccp;
11636 /* NEC SVR4.0.2 mips cc rejects this. */
11637 struct point {int x, y;};
11638 static struct point const zero = {0,0};
11639 /* AIX XL C 1.02.0.0 rejects this.
11640 It does not let you subtract one const X* pointer from another in
11641 an arm of an if-expression whose if-part is not a constant
11643 const char *g = "string";
11644 ccp = &g + (g ? g-g : 0);
11645 /* HPUX 7.0 cc rejects these. */
11648 ccp = (char const *const *) p;
11649 { /* SCO 3.2v4 cc rejects this. */
11651 char const *s = 0 ? (char *) 0 : (char const *) 0;
11655 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11656 int x[] = {25, 17};
11657 const int *foo = &x[0];
11660 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11661 typedef const int *iptr;
11665 { /* AIX XL C 1.02.0.0 rejects this saying
11666 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11667 struct s { int j; const int *ap[3]; };
11668 struct s *b; b->j = 5;
11670 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11671 const int foo = 10;
11679 rm -f conftest.$ac_objext
11680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11681 (eval $ac_compile) 2>&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } &&
11685 { ac_try='test -s conftest.$ac_objext'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; }; then
11693 echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11698 rm -f conftest.$ac_objext conftest.$ac_ext
11700 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11701 echo "${ECHO_T}$ac_cv_c_const" >&6
11702 if test $ac_cv_c_const = no; then
11704 cat >>confdefs.h <<\_ACEOF
11712 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11713 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11715 # The order of these tests is important.
11716 cat >conftest.$ac_ext <<_ACEOF
11717 #line $LINENO "configure"
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11723 #include <sys/statvfs.h>
11724 #include <sys/fstyp.h>
11726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11729 grep -v '^ *+' conftest.er1 >conftest.err
11731 cat conftest.err >&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } >/dev/null; then
11734 if test -s conftest.err; then
11735 ac_cpp_err=$ac_c_preproc_warn_flag
11742 if test -z "$ac_cpp_err"; then
11743 cat >>confdefs.h <<\_ACEOF
11744 #define FSTYPE_STATVFS 1
11748 echo "$as_me: failed program was:" >&5
11749 sed 's/^/| /' conftest.$ac_ext >&5
11753 rm -f conftest.err conftest.$ac_ext
11754 if test $fstype = no; then
11755 cat >conftest.$ac_ext <<_ACEOF
11756 #line $LINENO "configure"
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11762 #include <sys/statfs.h>
11763 #include <sys/fstyp.h>
11765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11768 grep -v '^ *+' conftest.er1 >conftest.err
11770 cat conftest.err >&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } >/dev/null; then
11773 if test -s conftest.err; then
11774 ac_cpp_err=$ac_c_preproc_warn_flag
11781 if test -z "$ac_cpp_err"; then
11782 cat >>confdefs.h <<\_ACEOF
11783 #define FSTYPE_USG_STATFS 1
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11792 rm -f conftest.err conftest.$ac_ext
11794 if test $fstype = no; then
11795 cat >conftest.$ac_ext <<_ACEOF
11796 #line $LINENO "configure"
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h. */
11802 #include <sys/statfs.h>
11803 #include <sys/vmount.h>
11805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11808 grep -v '^ *+' conftest.er1 >conftest.err
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } >/dev/null; then
11813 if test -s conftest.err; then
11814 ac_cpp_err=$ac_c_preproc_warn_flag
11821 if test -z "$ac_cpp_err"; then
11822 cat >>confdefs.h <<\_ACEOF
11823 #define FSTYPE_AIX_STATFS 1
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11832 rm -f conftest.err conftest.$ac_ext
11834 if test $fstype = no; then
11835 cat >conftest.$ac_ext <<_ACEOF
11836 #line $LINENO "configure"
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h. */
11842 #include <mntent.h>
11844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11847 grep -v '^ *+' conftest.er1 >conftest.err
11849 cat conftest.err >&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } >/dev/null; then
11852 if test -s conftest.err; then
11853 ac_cpp_err=$ac_c_preproc_warn_flag
11860 if test -z "$ac_cpp_err"; then
11861 cat >>confdefs.h <<\_ACEOF
11862 #define FSTYPE_MNTENT 1
11866 echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.$ac_ext >&5
11871 rm -f conftest.err conftest.$ac_ext
11873 if test $fstype = no; then
11874 cat >conftest.$ac_ext <<_ACEOF
11875 #line $LINENO "configure"
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11881 #include <sys/mount.h>
11884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11885 $EGREP "f_type;" >/dev/null 2>&1; then
11886 cat >>confdefs.h <<\_ACEOF
11887 #define FSTYPE_STATFS 1
11894 if test $fstype = no; then
11895 cat >conftest.$ac_ext <<_ACEOF
11896 #line $LINENO "configure"
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11902 #include <sys/mount.h>
11903 #include <sys/fs_types.h>
11905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11908 grep -v '^ *+' conftest.er1 >conftest.err
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } >/dev/null; then
11913 if test -s conftest.err; then
11914 ac_cpp_err=$ac_c_preproc_warn_flag
11921 if test -z "$ac_cpp_err"; then
11922 cat >>confdefs.h <<\_ACEOF
11923 #define FSTYPE_GETMNT 1
11927 echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11932 rm -f conftest.err conftest.$ac_ext
11934 echo "$as_me:$LINENO: result: $fstype" >&5
11935 echo "${ECHO_T}$fstype" >&6
11937 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11938 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11939 if test "${ac_cv_type_signal+set}" = set; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11942 cat >conftest.$ac_ext <<_ACEOF
11943 #line $LINENO "configure"
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11949 #include <sys/types.h>
11950 #include <signal.h>
11955 extern "C" void (*signal (int, void (*)(int)))(int);
11957 void (*signal ()) ();
11968 rm -f conftest.$ac_objext
11969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11970 (eval $ac_compile) 2>&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try='test -s conftest.$ac_objext'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; }; then
11980 ac_cv_type_signal=void
11982 echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11985 ac_cv_type_signal=int
11987 rm -f conftest.$ac_objext conftest.$ac_ext
11989 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11990 echo "${ECHO_T}$ac_cv_type_signal" >&6
11992 cat >>confdefs.h <<_ACEOF
11993 #define RETSIGTYPE $ac_cv_type_signal
11998 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11999 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12000 if test "${bash_cv_signal_vintage+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 cat >conftest.$ac_ext <<_ACEOF
12005 #line $LINENO "configure"
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011 #include <signal.h>
12017 struct sigaction sa;
12018 sigemptyset(&ss); sigsuspend(&ss);
12019 sigaction(SIGINT, &sa, (struct sigaction *) 0);
12020 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12026 rm -f conftest.$ac_objext conftest$ac_exeext
12027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12028 (eval $ac_link) 2>&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } &&
12032 { ac_try='test -s conftest$ac_exeext'
12033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034 (eval $ac_try) 2>&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; }; then
12038 bash_cv_signal_vintage=posix
12040 echo "$as_me: failed program was:" >&5
12041 sed 's/^/| /' conftest.$ac_ext >&5
12044 cat >conftest.$ac_ext <<_ACEOF
12045 #line $LINENO "configure"
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12051 #include <signal.h>
12056 int mask = sigmask(SIGINT);
12057 sigsetmask(mask); sigblock(mask); sigpause(mask);
12063 rm -f conftest.$ac_objext conftest$ac_exeext
12064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12065 (eval $ac_link) 2>&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } &&
12069 { ac_try='test -s conftest$ac_exeext'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; }; then
12075 bash_cv_signal_vintage=4.2bsd
12077 echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12081 cat >conftest.$ac_ext <<_ACEOF
12082 #line $LINENO "configure"
12085 cat confdefs.h >>conftest.$ac_ext
12086 cat >>conftest.$ac_ext <<_ACEOF
12087 /* end confdefs.h. */
12089 #include <signal.h>
12090 RETSIGTYPE foo() { }
12095 int mask = sigmask(SIGINT);
12096 sigset(SIGINT, foo); sigrelse(SIGINT);
12097 sighold(SIGINT); sigpause(SIGINT);
12103 rm -f conftest.$ac_objext conftest$ac_exeext
12104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12105 (eval $ac_link) 2>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try='test -s conftest$ac_exeext'
12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111 (eval $ac_try) 2>&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; }; then
12115 bash_cv_signal_vintage=svr3
12117 echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.$ac_ext >&5
12120 bash_cv_signal_vintage=v7
12123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12133 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
12134 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
12135 if test "$bash_cv_signal_vintage" = posix; then
12136 cat >>confdefs.h <<\_ACEOF
12137 #define HAVE_POSIX_SIGNALS 1
12140 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
12141 cat >>confdefs.h <<\_ACEOF
12142 #define HAVE_BSD_SIGNALS 1
12145 elif test "$bash_cv_signal_vintage" = svr3; then
12146 cat >>confdefs.h <<\_ACEOF
12147 #define HAVE_USG_SIGHOLD 1
12152 echo "$as_me:$LINENO: checking for mode_t" >&5
12153 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12154 if test "${ac_cv_type_mode_t+set}" = set; then
12155 echo $ECHO_N "(cached) $ECHO_C" >&6
12157 cat >conftest.$ac_ext <<_ACEOF
12158 #line $LINENO "configure"
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h. */
12164 $ac_includes_default
12170 if (sizeof (mode_t))
12176 rm -f conftest.$ac_objext
12177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12178 (eval $ac_compile) 2>&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } &&
12182 { ac_try='test -s conftest.$ac_objext'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 ac_cv_type_mode_t=yes
12190 echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12193 ac_cv_type_mode_t=no
12195 rm -f conftest.$ac_objext conftest.$ac_ext
12197 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12198 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12199 if test $ac_cv_type_mode_t = yes; then
12203 cat >>confdefs.h <<_ACEOF
12209 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12210 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12211 if test "${ac_cv_type_uid_t+set}" = set; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 cat >conftest.$ac_ext <<_ACEOF
12215 #line $LINENO "configure"
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12221 #include <sys/types.h>
12224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12225 $EGREP "uid_t" >/dev/null 2>&1; then
12226 ac_cv_type_uid_t=yes
12228 ac_cv_type_uid_t=no
12233 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12234 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12235 if test $ac_cv_type_uid_t = no; then
12237 cat >>confdefs.h <<\_ACEOF
12242 cat >>confdefs.h <<\_ACEOF
12248 echo "$as_me:$LINENO: checking for size_t" >&5
12249 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12250 if test "${ac_cv_type_size_t+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 cat >conftest.$ac_ext <<_ACEOF
12254 #line $LINENO "configure"
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12260 $ac_includes_default
12266 if (sizeof (size_t))
12272 rm -f conftest.$ac_objext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12274 (eval $ac_compile) 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } &&
12278 { ac_try='test -s conftest.$ac_objext'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284 ac_cv_type_size_t=yes
12286 echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12289 ac_cv_type_size_t=no
12291 rm -f conftest.$ac_objext conftest.$ac_ext
12293 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12294 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12295 if test $ac_cv_type_size_t = yes; then
12299 cat >>confdefs.h <<_ACEOF
12300 #define size_t unsigned
12305 echo "$as_me:$LINENO: checking for pid_t" >&5
12306 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12307 if test "${ac_cv_type_pid_t+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12310 cat >conftest.$ac_ext <<_ACEOF
12311 #line $LINENO "configure"
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317 $ac_includes_default
12323 if (sizeof (pid_t))
12329 rm -f conftest.$ac_objext
12330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12331 (eval $ac_compile) 2>&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); } &&
12335 { ac_try='test -s conftest.$ac_objext'
12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337 (eval $ac_try) 2>&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; }; then
12341 ac_cv_type_pid_t=yes
12343 echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.$ac_ext >&5
12346 ac_cv_type_pid_t=no
12348 rm -f conftest.$ac_objext conftest.$ac_ext
12350 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12351 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12352 if test $ac_cv_type_pid_t = yes; then
12356 cat >>confdefs.h <<_ACEOF
12362 echo "$as_me:$LINENO: checking for off_t" >&5
12363 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12364 if test "${ac_cv_type_off_t+set}" = set; then
12365 echo $ECHO_N "(cached) $ECHO_C" >&6
12367 cat >conftest.$ac_ext <<_ACEOF
12368 #line $LINENO "configure"
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374 $ac_includes_default
12380 if (sizeof (off_t))
12386 rm -f conftest.$ac_objext
12387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12388 (eval $ac_compile) 2>&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); } &&
12392 { ac_try='test -s conftest.$ac_objext'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 ac_cv_type_off_t=yes
12400 echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12403 ac_cv_type_off_t=no
12405 rm -f conftest.$ac_objext conftest.$ac_ext
12407 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12408 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12409 if test $ac_cv_type_off_t = yes; then
12413 cat >>confdefs.h <<_ACEOF
12419 echo "$as_me:$LINENO: checking for ino_t" >&5
12420 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
12421 if test "${ac_cv_type_ino_t+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12424 cat >conftest.$ac_ext <<_ACEOF
12425 #line $LINENO "configure"
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h. */
12431 $ac_includes_default
12437 if (sizeof (ino_t))
12443 rm -f conftest.$ac_objext
12444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12445 (eval $ac_compile) 2>&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
12449 { ac_try='test -s conftest.$ac_objext'
12450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451 (eval $ac_try) 2>&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; }; then
12455 ac_cv_type_ino_t=yes
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12460 ac_cv_type_ino_t=no
12462 rm -f conftest.$ac_objext conftest.$ac_ext
12464 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12465 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12466 if test $ac_cv_type_ino_t = yes; then
12470 cat >>confdefs.h <<_ACEOF
12471 #define ino_t unsigned long
12476 echo "$as_me:$LINENO: checking for dev_t" >&5
12477 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12478 if test "${ac_cv_type_dev_t+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12481 cat >conftest.$ac_ext <<_ACEOF
12482 #line $LINENO "configure"
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12488 $ac_includes_default
12494 if (sizeof (dev_t))
12500 rm -f conftest.$ac_objext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12502 (eval $ac_compile) 2>&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } &&
12506 { ac_try='test -s conftest.$ac_objext'
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508 (eval $ac_try) 2>&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; }; then
12512 ac_cv_type_dev_t=yes
12514 echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.$ac_ext >&5
12517 ac_cv_type_dev_t=no
12519 rm -f conftest.$ac_objext conftest.$ac_ext
12521 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12522 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12523 if test $ac_cv_type_dev_t = yes; then
12527 cat >>confdefs.h <<_ACEOF
12528 #define dev_t unsigned long
12533 echo "$as_me:$LINENO: checking for daddr_t" >&5
12534 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
12535 if test "${ac_cv_type_daddr_t+set}" = set; then
12536 echo $ECHO_N "(cached) $ECHO_C" >&6
12538 cat >conftest.$ac_ext <<_ACEOF
12539 #line $LINENO "configure"
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h. */
12545 $ac_includes_default
12551 if (sizeof (daddr_t))
12557 rm -f conftest.$ac_objext
12558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12559 (eval $ac_compile) 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -s conftest.$ac_objext'
12564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565 (eval $ac_try) 2>&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; }; then
12569 ac_cv_type_daddr_t=yes
12571 echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12574 ac_cv_type_daddr_t=no
12576 rm -f conftest.$ac_objext conftest.$ac_ext
12578 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
12579 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
12580 if test $ac_cv_type_daddr_t = yes; then
12584 cat >>confdefs.h <<_ACEOF
12585 #define daddr_t long
12590 echo "$as_me:$LINENO: checking for major_t" >&5
12591 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
12592 if test "${ac_cv_type_major_t+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 cat >conftest.$ac_ext <<_ACEOF
12596 #line $LINENO "configure"
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 $ac_includes_default
12608 if (sizeof (major_t))
12614 rm -f conftest.$ac_objext
12615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12616 (eval $ac_compile) 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } &&
12620 { ac_try='test -s conftest.$ac_objext'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; }; then
12626 ac_cv_type_major_t=yes
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12631 ac_cv_type_major_t=no
12633 rm -f conftest.$ac_objext conftest.$ac_ext
12635 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12636 echo "${ECHO_T}$ac_cv_type_major_t" >&6
12637 if test $ac_cv_type_major_t = yes; then
12641 cat >>confdefs.h <<_ACEOF
12642 #define major_t int
12647 echo "$as_me:$LINENO: checking for minor_t" >&5
12648 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
12649 if test "${ac_cv_type_minor_t+set}" = set; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12652 cat >conftest.$ac_ext <<_ACEOF
12653 #line $LINENO "configure"
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h. */
12659 $ac_includes_default
12665 if (sizeof (minor_t))
12671 rm -f conftest.$ac_objext
12672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12673 (eval $ac_compile) 2>&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); } &&
12677 { ac_try='test -s conftest.$ac_objext'
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 ac_cv_type_minor_t=yes
12685 echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12688 ac_cv_type_minor_t=no
12690 rm -f conftest.$ac_objext conftest.$ac_ext
12692 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12693 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12694 if test $ac_cv_type_minor_t = yes; then
12698 cat >>confdefs.h <<_ACEOF
12699 #define minor_t int
12704 echo "$as_me:$LINENO: checking for ssize_t" >&5
12705 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12706 if test "${ac_cv_type_ssize_t+set}" = set; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12709 cat >conftest.$ac_ext <<_ACEOF
12710 #line $LINENO "configure"
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h. */
12716 $ac_includes_default
12722 if (sizeof (ssize_t))
12728 rm -f conftest.$ac_objext
12729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12730 (eval $ac_compile) 2>&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); } &&
12734 { ac_try='test -s conftest.$ac_objext'
12735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; }; then
12740 ac_cv_type_ssize_t=yes
12742 echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12745 ac_cv_type_ssize_t=no
12747 rm -f conftest.$ac_objext conftest.$ac_ext
12749 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12750 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12751 if test $ac_cv_type_ssize_t = yes; then
12755 cat >>confdefs.h <<_ACEOF
12756 #define ssize_t int
12761 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12762 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12763 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12766 cat >conftest.$ac_ext <<_ACEOF
12767 #line $LINENO "configure"
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h. */
12773 $ac_includes_default
12777 static struct stat ac_aggr;
12778 if (ac_aggr.st_blocks)
12784 rm -f conftest.$ac_objext
12785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12786 (eval $ac_compile) 2>&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } &&
12790 { ac_try='test -s conftest.$ac_objext'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12796 ac_cv_member_struct_stat_st_blocks=yes
12798 echo "$as_me: failed program was:" >&5
12799 sed 's/^/| /' conftest.$ac_ext >&5
12801 cat >conftest.$ac_ext <<_ACEOF
12802 #line $LINENO "configure"
12805 cat confdefs.h >>conftest.$ac_ext
12806 cat >>conftest.$ac_ext <<_ACEOF
12807 /* end confdefs.h. */
12808 $ac_includes_default
12812 static struct stat ac_aggr;
12813 if (sizeof ac_aggr.st_blocks)
12819 rm -f conftest.$ac_objext
12820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12821 (eval $ac_compile) 2>&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); } &&
12825 { ac_try='test -s conftest.$ac_objext'
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827 (eval $ac_try) 2>&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; }; then
12831 ac_cv_member_struct_stat_st_blocks=yes
12833 echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12836 ac_cv_member_struct_stat_st_blocks=no
12838 rm -f conftest.$ac_objext conftest.$ac_ext
12840 rm -f conftest.$ac_objext conftest.$ac_ext
12842 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12843 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12844 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12846 cat >>confdefs.h <<_ACEOF
12847 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12851 cat >>confdefs.h <<\_ACEOF
12852 #define HAVE_ST_BLOCKS 1
12856 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12861 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12862 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12863 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12866 cat >conftest.$ac_ext <<_ACEOF
12867 #line $LINENO "configure"
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h. */
12873 $ac_includes_default
12877 static struct stat ac_aggr;
12878 if (ac_aggr.st_rdev)
12884 rm -f conftest.$ac_objext
12885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12886 (eval $ac_compile) 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); } &&
12890 { ac_try='test -s conftest.$ac_objext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 ac_cv_member_struct_stat_st_rdev=yes
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12901 cat >conftest.$ac_ext <<_ACEOF
12902 #line $LINENO "configure"
12905 cat confdefs.h >>conftest.$ac_ext
12906 cat >>conftest.$ac_ext <<_ACEOF
12907 /* end confdefs.h. */
12908 $ac_includes_default
12912 static struct stat ac_aggr;
12913 if (sizeof ac_aggr.st_rdev)
12919 rm -f conftest.$ac_objext
12920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12921 (eval $ac_compile) 2>&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } &&
12925 { ac_try='test -s conftest.$ac_objext'
12926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927 (eval $ac_try) 2>&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; }; then
12931 ac_cv_member_struct_stat_st_rdev=yes
12933 echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12936 ac_cv_member_struct_stat_st_rdev=no
12938 rm -f conftest.$ac_objext conftest.$ac_ext
12940 rm -f conftest.$ac_objext conftest.$ac_ext
12942 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12943 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12944 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12946 cat >>confdefs.h <<_ACEOF
12947 #define HAVE_STRUCT_STAT_ST_RDEV 1
12951 cat >>confdefs.h <<\_ACEOF
12952 #define HAVE_ST_RDEV 1
12958 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12959 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12960 if test "${ac_cv_struct_tm+set}" = set; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 cat >conftest.$ac_ext <<_ACEOF
12964 #line $LINENO "configure"
12967 cat confdefs.h >>conftest.$ac_ext
12968 cat >>conftest.$ac_ext <<_ACEOF
12969 /* end confdefs.h. */
12970 #include <sys/types.h>
12976 struct tm *tp; tp->tm_sec;
12981 rm -f conftest.$ac_objext
12982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12983 (eval $ac_compile) 2>&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } &&
12987 { ac_try='test -s conftest.$ac_objext'
12988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12989 (eval $ac_try) 2>&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; }; then
12993 ac_cv_struct_tm=time.h
12995 echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.$ac_ext >&5
12998 ac_cv_struct_tm=sys/time.h
13000 rm -f conftest.$ac_objext conftest.$ac_ext
13002 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13003 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13004 if test $ac_cv_struct_tm = sys/time.h; then
13006 cat >>confdefs.h <<\_ACEOF
13007 #define TM_IN_SYS_TIME 1
13012 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13013 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13014 if test "${ac_cv_c_const+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13017 cat >conftest.$ac_ext <<_ACEOF
13018 #line $LINENO "configure"
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h. */
13028 /* FIXME: Include the comments suggested by Paul. */
13029 #ifndef __cplusplus
13030 /* Ultrix mips cc rejects this. */
13031 typedef int charset[2];
13033 /* SunOS 4.1.1 cc rejects this. */
13034 char const *const *ccp;
13036 /* NEC SVR4.0.2 mips cc rejects this. */
13037 struct point {int x, y;};
13038 static struct point const zero = {0,0};
13039 /* AIX XL C 1.02.0.0 rejects this.
13040 It does not let you subtract one const X* pointer from another in
13041 an arm of an if-expression whose if-part is not a constant
13043 const char *g = "string";
13044 ccp = &g + (g ? g-g : 0);
13045 /* HPUX 7.0 cc rejects these. */
13048 ccp = (char const *const *) p;
13049 { /* SCO 3.2v4 cc rejects this. */
13051 char const *s = 0 ? (char *) 0 : (char const *) 0;
13055 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13056 int x[] = {25, 17};
13057 const int *foo = &x[0];
13060 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13061 typedef const int *iptr;
13065 { /* AIX XL C 1.02.0.0 rejects this saying
13066 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13067 struct s { int j; const int *ap[3]; };
13068 struct s *b; b->j = 5;
13070 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13071 const int foo = 10;
13079 rm -f conftest.$ac_objext
13080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13081 (eval $ac_compile) 2>&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } &&
13085 { ac_try='test -s conftest.$ac_objext'
13086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087 (eval $ac_try) 2>&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; }; then
13093 echo "$as_me: failed program was:" >&5
13094 sed 's/^/| /' conftest.$ac_ext >&5
13098 rm -f conftest.$ac_objext conftest.$ac_ext
13100 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13101 echo "${ECHO_T}$ac_cv_c_const" >&6
13102 if test $ac_cv_c_const = no; then
13104 cat >>confdefs.h <<\_ACEOF
13112 echo "$as_me:$LINENO: checking for char" >&5
13113 echo $ECHO_N "checking for char... $ECHO_C" >&6
13114 if test "${ac_cv_type_char+set}" = set; then
13115 echo $ECHO_N "(cached) $ECHO_C" >&6
13117 cat >conftest.$ac_ext <<_ACEOF
13118 #line $LINENO "configure"
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13124 $ac_includes_default
13136 rm -f conftest.$ac_objext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13138 (eval $ac_compile) 2>&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
13142 { ac_try='test -s conftest.$ac_objext'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 ac_cv_type_char=yes
13150 echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13155 rm -f conftest.$ac_objext conftest.$ac_ext
13157 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13158 echo "${ECHO_T}$ac_cv_type_char" >&6
13160 echo "$as_me:$LINENO: checking size of char" >&5
13161 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13162 if test "${ac_cv_sizeof_char+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 if test "$ac_cv_type_char" = yes; then
13166 # The cast to unsigned long works around a bug in the HP C Compiler
13167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13169 # This bug is HP SR number 8606223364.
13170 if test "$cross_compiling" = yes; then
13171 # Depending upon the size, compute the lo and hi bounds.
13172 cat >conftest.$ac_ext <<_ACEOF
13173 #line $LINENO "configure"
13176 cat confdefs.h >>conftest.$ac_ext
13177 cat >>conftest.$ac_ext <<_ACEOF
13178 /* end confdefs.h. */
13179 $ac_includes_default
13183 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13190 rm -f conftest.$ac_objext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13192 (eval $ac_compile) 2>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } &&
13196 { ac_try='test -s conftest.$ac_objext'
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; }; then
13204 cat >conftest.$ac_ext <<_ACEOF
13205 #line $LINENO "configure"
13208 cat confdefs.h >>conftest.$ac_ext
13209 cat >>conftest.$ac_ext <<_ACEOF
13210 /* end confdefs.h. */
13211 $ac_includes_default
13215 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13222 rm -f conftest.$ac_objext
13223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13224 (eval $ac_compile) 2>&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } &&
13228 { ac_try='test -s conftest.$ac_objext'
13229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13230 (eval $ac_try) 2>&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); }; }; then
13234 ac_hi=$ac_mid; break
13236 echo "$as_me: failed program was:" >&5
13237 sed 's/^/| /' conftest.$ac_ext >&5
13239 ac_lo=`expr $ac_mid + 1`
13240 if test $ac_lo -le $ac_mid; then
13244 ac_mid=`expr 2 '*' $ac_mid + 1`
13246 rm -f conftest.$ac_objext conftest.$ac_ext
13249 echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13252 cat >conftest.$ac_ext <<_ACEOF
13253 #line $LINENO "configure"
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h. */
13259 $ac_includes_default
13263 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13270 rm -f conftest.$ac_objext
13271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13272 (eval $ac_compile) 2>&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } &&
13276 { ac_try='test -s conftest.$ac_objext'
13277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278 (eval $ac_try) 2>&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); }; }; then
13284 cat >conftest.$ac_ext <<_ACEOF
13285 #line $LINENO "configure"
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h. */
13291 $ac_includes_default
13295 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13302 rm -f conftest.$ac_objext
13303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13304 (eval $ac_compile) 2>&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } &&
13308 { ac_try='test -s conftest.$ac_objext'
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13314 ac_lo=$ac_mid; break
13316 echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13319 ac_hi=`expr '(' $ac_mid ')' - 1`
13320 if test $ac_mid -le $ac_hi; then
13324 ac_mid=`expr 2 '*' $ac_mid`
13326 rm -f conftest.$ac_objext conftest.$ac_ext
13329 echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13334 rm -f conftest.$ac_objext conftest.$ac_ext
13336 rm -f conftest.$ac_objext conftest.$ac_ext
13337 # Binary search between lo and hi bounds.
13338 while test "x$ac_lo" != "x$ac_hi"; do
13339 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13340 cat >conftest.$ac_ext <<_ACEOF
13341 #line $LINENO "configure"
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13347 $ac_includes_default
13351 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13358 rm -f conftest.$ac_objext
13359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13360 (eval $ac_compile) 2>&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); } &&
13364 { ac_try='test -s conftest.$ac_objext'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; }; then
13372 echo "$as_me: failed program was:" >&5
13373 sed 's/^/| /' conftest.$ac_ext >&5
13375 ac_lo=`expr '(' $ac_mid ')' + 1`
13377 rm -f conftest.$ac_objext conftest.$ac_ext
13380 ?*) ac_cv_sizeof_char=$ac_lo;;
13381 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13382 See \`config.log' for more details." >&5
13383 echo "$as_me: error: cannot compute sizeof (char), 77
13384 See \`config.log' for more details." >&2;}
13385 { (exit 1); exit 1; }; } ;;
13388 if test "$cross_compiling" = yes; then
13389 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13390 See \`config.log' for more details." >&5
13391 echo "$as_me: error: cannot run test program while cross compiling
13392 See \`config.log' for more details." >&2;}
13393 { (exit 1); exit 1; }; }
13395 cat >conftest.$ac_ext <<_ACEOF
13396 #line $LINENO "configure"
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h. */
13402 $ac_includes_default
13403 long longval () { return (long) (sizeof (char)); }
13404 unsigned long ulongval () { return (long) (sizeof (char)); }
13406 #include <stdlib.h>
13411 FILE *f = fopen ("conftest.val", "w");
13414 if (((long) (sizeof (char))) < 0)
13416 long i = longval ();
13417 if (i != ((long) (sizeof (char))))
13419 fprintf (f, "%ld\n", i);
13423 unsigned long i = ulongval ();
13424 if (i != ((long) (sizeof (char))))
13426 fprintf (f, "%lu\n", i);
13428 exit (ferror (f) || fclose (f) != 0);
13434 rm -f conftest$ac_exeext
13435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13436 (eval $ac_link) 2>&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_char=`cat conftest.val`
13447 echo "$as_me: program exited with status $ac_status" >&5
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13451 ( exit $ac_status )
13452 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13453 See \`config.log' for more details." >&5
13454 echo "$as_me: error: cannot compute sizeof (char), 77
13455 See \`config.log' for more details." >&2;}
13456 { (exit 1); exit 1; }; }
13458 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13463 ac_cv_sizeof_char=0
13466 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13467 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13468 cat >>confdefs.h <<_ACEOF
13469 #define SIZEOF_CHAR $ac_cv_sizeof_char
13473 echo "$as_me:$LINENO: checking for short int" >&5
13474 echo $ECHO_N "checking for short int... $ECHO_C" >&6
13475 if test "${ac_cv_type_short_int+set}" = set; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
13478 cat >conftest.$ac_ext <<_ACEOF
13479 #line $LINENO "configure"
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h. */
13485 $ac_includes_default
13489 if ((short int *) 0)
13491 if (sizeof (short int))
13497 rm -f conftest.$ac_objext
13498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13499 (eval $ac_compile) 2>&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } &&
13503 { ac_try='test -s conftest.$ac_objext'
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 ac_cv_type_short_int=yes
13511 echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13514 ac_cv_type_short_int=no
13516 rm -f conftest.$ac_objext conftest.$ac_ext
13518 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
13519 echo "${ECHO_T}$ac_cv_type_short_int" >&6
13521 echo "$as_me:$LINENO: checking size of short int" >&5
13522 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
13523 if test "${ac_cv_sizeof_short_int+set}" = set; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13526 if test "$ac_cv_type_short_int" = yes; then
13527 # The cast to unsigned long works around a bug in the HP C Compiler
13528 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13529 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13530 # This bug is HP SR number 8606223364.
13531 if test "$cross_compiling" = yes; then
13532 # Depending upon the size, compute the lo and hi bounds.
13533 cat >conftest.$ac_ext <<_ACEOF
13534 #line $LINENO "configure"
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h. */
13540 $ac_includes_default
13544 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
13551 rm -f conftest.$ac_objext
13552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13553 (eval $ac_compile) 2>&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } &&
13557 { ac_try='test -s conftest.$ac_objext'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; }; then
13565 cat >conftest.$ac_ext <<_ACEOF
13566 #line $LINENO "configure"
13569 cat confdefs.h >>conftest.$ac_ext
13570 cat >>conftest.$ac_ext <<_ACEOF
13571 /* end confdefs.h. */
13572 $ac_includes_default
13576 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13583 rm -f conftest.$ac_objext
13584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13585 (eval $ac_compile) 2>&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); } &&
13589 { ac_try='test -s conftest.$ac_objext'
13590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591 (eval $ac_try) 2>&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; }; then
13595 ac_hi=$ac_mid; break
13597 echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13600 ac_lo=`expr $ac_mid + 1`
13601 if test $ac_lo -le $ac_mid; then
13605 ac_mid=`expr 2 '*' $ac_mid + 1`
13607 rm -f conftest.$ac_objext conftest.$ac_ext
13610 echo "$as_me: failed program was:" >&5
13611 sed 's/^/| /' conftest.$ac_ext >&5
13613 cat >conftest.$ac_ext <<_ACEOF
13614 #line $LINENO "configure"
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h. */
13620 $ac_includes_default
13624 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
13631 rm -f conftest.$ac_objext
13632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13633 (eval $ac_compile) 2>&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } &&
13637 { ac_try='test -s conftest.$ac_objext'
13638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639 (eval $ac_try) 2>&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; }; then
13645 cat >conftest.$ac_ext <<_ACEOF
13646 #line $LINENO "configure"
13649 cat confdefs.h >>conftest.$ac_ext
13650 cat >>conftest.$ac_ext <<_ACEOF
13651 /* end confdefs.h. */
13652 $ac_includes_default
13656 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
13663 rm -f conftest.$ac_objext
13664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13665 (eval $ac_compile) 2>&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); } &&
13669 { ac_try='test -s conftest.$ac_objext'
13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671 (eval $ac_try) 2>&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; }; then
13675 ac_lo=$ac_mid; break
13677 echo "$as_me: failed program was:" >&5
13678 sed 's/^/| /' conftest.$ac_ext >&5
13680 ac_hi=`expr '(' $ac_mid ')' - 1`
13681 if test $ac_mid -le $ac_hi; then
13685 ac_mid=`expr 2 '*' $ac_mid`
13687 rm -f conftest.$ac_objext conftest.$ac_ext
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13695 rm -f conftest.$ac_objext conftest.$ac_ext
13697 rm -f conftest.$ac_objext conftest.$ac_ext
13698 # Binary search between lo and hi bounds.
13699 while test "x$ac_lo" != "x$ac_hi"; do
13700 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13701 cat >conftest.$ac_ext <<_ACEOF
13702 #line $LINENO "configure"
13705 cat confdefs.h >>conftest.$ac_ext
13706 cat >>conftest.$ac_ext <<_ACEOF
13707 /* end confdefs.h. */
13708 $ac_includes_default
13712 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13719 rm -f conftest.$ac_objext
13720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13721 (eval $ac_compile) 2>&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
13725 { ac_try='test -s conftest.$ac_objext'
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; }; then
13733 echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13736 ac_lo=`expr '(' $ac_mid ')' + 1`
13738 rm -f conftest.$ac_objext conftest.$ac_ext
13741 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13742 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13743 See \`config.log' for more details." >&5
13744 echo "$as_me: error: cannot compute sizeof (short int), 77
13745 See \`config.log' for more details." >&2;}
13746 { (exit 1); exit 1; }; } ;;
13749 if test "$cross_compiling" = yes; then
13750 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13751 See \`config.log' for more details." >&5
13752 echo "$as_me: error: cannot run test program while cross compiling
13753 See \`config.log' for more details." >&2;}
13754 { (exit 1); exit 1; }; }
13756 cat >conftest.$ac_ext <<_ACEOF
13757 #line $LINENO "configure"
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13763 $ac_includes_default
13764 long longval () { return (long) (sizeof (short int)); }
13765 unsigned long ulongval () { return (long) (sizeof (short int)); }
13767 #include <stdlib.h>
13772 FILE *f = fopen ("conftest.val", "w");
13775 if (((long) (sizeof (short int))) < 0)
13777 long i = longval ();
13778 if (i != ((long) (sizeof (short int))))
13780 fprintf (f, "%ld\n", i);
13784 unsigned long i = ulongval ();
13785 if (i != ((long) (sizeof (short int))))
13787 fprintf (f, "%lu\n", i);
13789 exit (ferror (f) || fclose (f) != 0);
13795 rm -f conftest$ac_exeext
13796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13797 (eval $ac_link) 2>&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_short_int=`cat conftest.val`
13808 echo "$as_me: program exited with status $ac_status" >&5
13809 echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.$ac_ext >&5
13812 ( exit $ac_status )
13813 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13814 See \`config.log' for more details." >&5
13815 echo "$as_me: error: cannot compute sizeof (short int), 77
13816 See \`config.log' for more details." >&2;}
13817 { (exit 1); exit 1; }; }
13819 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13824 ac_cv_sizeof_short_int=0
13827 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13828 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13829 cat >>confdefs.h <<_ACEOF
13830 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13834 echo "$as_me:$LINENO: checking for int" >&5
13835 echo $ECHO_N "checking for int... $ECHO_C" >&6
13836 if test "${ac_cv_type_int+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13839 cat >conftest.$ac_ext <<_ACEOF
13840 #line $LINENO "configure"
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13846 $ac_includes_default
13858 rm -f conftest.$ac_objext
13859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13860 (eval $ac_compile) 2>&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); } &&
13864 { ac_try='test -s conftest.$ac_objext'
13865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13866 (eval $ac_try) 2>&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; }; then
13872 echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.$ac_ext >&5
13877 rm -f conftest.$ac_objext conftest.$ac_ext
13879 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13880 echo "${ECHO_T}$ac_cv_type_int" >&6
13882 echo "$as_me:$LINENO: checking size of int" >&5
13883 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13884 if test "${ac_cv_sizeof_int+set}" = set; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13887 if test "$ac_cv_type_int" = yes; then
13888 # The cast to unsigned long works around a bug in the HP C Compiler
13889 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13890 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13891 # This bug is HP SR number 8606223364.
13892 if test "$cross_compiling" = yes; then
13893 # Depending upon the size, compute the lo and hi bounds.
13894 cat >conftest.$ac_ext <<_ACEOF
13895 #line $LINENO "configure"
13898 cat confdefs.h >>conftest.$ac_ext
13899 cat >>conftest.$ac_ext <<_ACEOF
13900 /* end confdefs.h. */
13901 $ac_includes_default
13905 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13912 rm -f conftest.$ac_objext
13913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13914 (eval $ac_compile) 2>&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } &&
13918 { ac_try='test -s conftest.$ac_objext'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13926 cat >conftest.$ac_ext <<_ACEOF
13927 #line $LINENO "configure"
13930 cat confdefs.h >>conftest.$ac_ext
13931 cat >>conftest.$ac_ext <<_ACEOF
13932 /* end confdefs.h. */
13933 $ac_includes_default
13937 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13944 rm -f conftest.$ac_objext
13945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13946 (eval $ac_compile) 2>&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
13950 { ac_try='test -s conftest.$ac_objext'
13951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; }; then
13956 ac_hi=$ac_mid; break
13958 echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13961 ac_lo=`expr $ac_mid + 1`
13962 if test $ac_lo -le $ac_mid; then
13966 ac_mid=`expr 2 '*' $ac_mid + 1`
13968 rm -f conftest.$ac_objext conftest.$ac_ext
13971 echo "$as_me: failed program was:" >&5
13972 sed 's/^/| /' conftest.$ac_ext >&5
13974 cat >conftest.$ac_ext <<_ACEOF
13975 #line $LINENO "configure"
13978 cat confdefs.h >>conftest.$ac_ext
13979 cat >>conftest.$ac_ext <<_ACEOF
13980 /* end confdefs.h. */
13981 $ac_includes_default
13985 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13992 rm -f conftest.$ac_objext
13993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13994 (eval $ac_compile) 2>&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); } &&
13998 { ac_try='test -s conftest.$ac_objext'
13999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000 (eval $ac_try) 2>&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; }; then
14006 cat >conftest.$ac_ext <<_ACEOF
14007 #line $LINENO "configure"
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14013 $ac_includes_default
14017 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14024 rm -f conftest.$ac_objext
14025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14026 (eval $ac_compile) 2>&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } &&
14030 { ac_try='test -s conftest.$ac_objext'
14031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14032 (eval $ac_try) 2>&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; }; then
14036 ac_lo=$ac_mid; break
14038 echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14041 ac_hi=`expr '(' $ac_mid ')' - 1`
14042 if test $ac_mid -le $ac_hi; then
14046 ac_mid=`expr 2 '*' $ac_mid`
14048 rm -f conftest.$ac_objext conftest.$ac_ext
14051 echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14056 rm -f conftest.$ac_objext conftest.$ac_ext
14058 rm -f conftest.$ac_objext conftest.$ac_ext
14059 # Binary search between lo and hi bounds.
14060 while test "x$ac_lo" != "x$ac_hi"; do
14061 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14062 cat >conftest.$ac_ext <<_ACEOF
14063 #line $LINENO "configure"
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14069 $ac_includes_default
14073 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14080 rm -f conftest.$ac_objext
14081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14082 (eval $ac_compile) 2>&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); } &&
14086 { ac_try='test -s conftest.$ac_objext'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
14094 echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14097 ac_lo=`expr '(' $ac_mid ')' + 1`
14099 rm -f conftest.$ac_objext conftest.$ac_ext
14102 ?*) ac_cv_sizeof_int=$ac_lo;;
14103 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14104 See \`config.log' for more details." >&5
14105 echo "$as_me: error: cannot compute sizeof (int), 77
14106 See \`config.log' for more details." >&2;}
14107 { (exit 1); exit 1; }; } ;;
14110 if test "$cross_compiling" = yes; then
14111 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14112 See \`config.log' for more details." >&5
14113 echo "$as_me: error: cannot run test program while cross compiling
14114 See \`config.log' for more details." >&2;}
14115 { (exit 1); exit 1; }; }
14117 cat >conftest.$ac_ext <<_ACEOF
14118 #line $LINENO "configure"
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h. */
14124 $ac_includes_default
14125 long longval () { return (long) (sizeof (int)); }
14126 unsigned long ulongval () { return (long) (sizeof (int)); }
14128 #include <stdlib.h>
14133 FILE *f = fopen ("conftest.val", "w");
14136 if (((long) (sizeof (int))) < 0)
14138 long i = longval ();
14139 if (i != ((long) (sizeof (int))))
14141 fprintf (f, "%ld\n", i);
14145 unsigned long i = ulongval ();
14146 if (i != ((long) (sizeof (int))))
14148 fprintf (f, "%lu\n", i);
14150 exit (ferror (f) || fclose (f) != 0);
14156 rm -f conftest$ac_exeext
14157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14158 (eval $ac_link) 2>&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_int=`cat conftest.val`
14169 echo "$as_me: program exited with status $ac_status" >&5
14170 echo "$as_me: failed program was:" >&5
14171 sed 's/^/| /' conftest.$ac_ext >&5
14173 ( exit $ac_status )
14174 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14175 See \`config.log' for more details." >&5
14176 echo "$as_me: error: cannot compute sizeof (int), 77
14177 See \`config.log' for more details." >&2;}
14178 { (exit 1); exit 1; }; }
14180 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14188 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14189 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14190 cat >>confdefs.h <<_ACEOF
14191 #define SIZEOF_INT $ac_cv_sizeof_int
14195 echo "$as_me:$LINENO: checking for long int" >&5
14196 echo $ECHO_N "checking for long int... $ECHO_C" >&6
14197 if test "${ac_cv_type_long_int+set}" = set; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14200 cat >conftest.$ac_ext <<_ACEOF
14201 #line $LINENO "configure"
14204 cat confdefs.h >>conftest.$ac_ext
14205 cat >>conftest.$ac_ext <<_ACEOF
14206 /* end confdefs.h. */
14207 $ac_includes_default
14211 if ((long int *) 0)
14213 if (sizeof (long int))
14219 rm -f conftest.$ac_objext
14220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14221 (eval $ac_compile) 2>&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } &&
14225 { ac_try='test -s conftest.$ac_objext'
14226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227 (eval $ac_try) 2>&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; }; then
14231 ac_cv_type_long_int=yes
14233 echo "$as_me: failed program was:" >&5
14234 sed 's/^/| /' conftest.$ac_ext >&5
14236 ac_cv_type_long_int=no
14238 rm -f conftest.$ac_objext conftest.$ac_ext
14240 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
14241 echo "${ECHO_T}$ac_cv_type_long_int" >&6
14243 echo "$as_me:$LINENO: checking size of long int" >&5
14244 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
14245 if test "${ac_cv_sizeof_long_int+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14248 if test "$ac_cv_type_long_int" = yes; then
14249 # The cast to unsigned long works around a bug in the HP C Compiler
14250 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14251 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14252 # This bug is HP SR number 8606223364.
14253 if test "$cross_compiling" = yes; then
14254 # Depending upon the size, compute the lo and hi bounds.
14255 cat >conftest.$ac_ext <<_ACEOF
14256 #line $LINENO "configure"
14259 cat confdefs.h >>conftest.$ac_ext
14260 cat >>conftest.$ac_ext <<_ACEOF
14261 /* end confdefs.h. */
14262 $ac_includes_default
14266 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
14273 rm -f conftest.$ac_objext
14274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14275 (eval $ac_compile) 2>&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } &&
14279 { ac_try='test -s conftest.$ac_objext'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; }; then
14287 cat >conftest.$ac_ext <<_ACEOF
14288 #line $LINENO "configure"
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14294 $ac_includes_default
14298 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14305 rm -f conftest.$ac_objext
14306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307 (eval $ac_compile) 2>&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } &&
14311 { ac_try='test -s conftest.$ac_objext'
14312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313 (eval $ac_try) 2>&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; }; then
14317 ac_hi=$ac_mid; break
14319 echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14322 ac_lo=`expr $ac_mid + 1`
14323 if test $ac_lo -le $ac_mid; then
14327 ac_mid=`expr 2 '*' $ac_mid + 1`
14329 rm -f conftest.$ac_objext conftest.$ac_ext
14332 echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14335 cat >conftest.$ac_ext <<_ACEOF
14336 #line $LINENO "configure"
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14342 $ac_includes_default
14346 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
14353 rm -f conftest.$ac_objext
14354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14355 (eval $ac_compile) 2>&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); } &&
14359 { ac_try='test -s conftest.$ac_objext'
14360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14361 (eval $ac_try) 2>&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); }; }; then
14367 cat >conftest.$ac_ext <<_ACEOF
14368 #line $LINENO "configure"
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h. */
14374 $ac_includes_default
14378 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
14385 rm -f conftest.$ac_objext
14386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14387 (eval $ac_compile) 2>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
14391 { ac_try='test -s conftest.$ac_objext'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; }; then
14397 ac_lo=$ac_mid; break
14399 echo "$as_me: failed program was:" >&5
14400 sed 's/^/| /' conftest.$ac_ext >&5
14402 ac_hi=`expr '(' $ac_mid ')' - 1`
14403 if test $ac_mid -le $ac_hi; then
14407 ac_mid=`expr 2 '*' $ac_mid`
14409 rm -f conftest.$ac_objext conftest.$ac_ext
14412 echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14417 rm -f conftest.$ac_objext conftest.$ac_ext
14419 rm -f conftest.$ac_objext conftest.$ac_ext
14420 # Binary search between lo and hi bounds.
14421 while test "x$ac_lo" != "x$ac_hi"; do
14422 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14423 cat >conftest.$ac_ext <<_ACEOF
14424 #line $LINENO "configure"
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h. */
14430 $ac_includes_default
14434 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14441 rm -f conftest.$ac_objext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14443 (eval $ac_compile) 2>&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } &&
14447 { ac_try='test -s conftest.$ac_objext'
14448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449 (eval $ac_try) 2>&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); }; }; then
14455 echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14458 ac_lo=`expr '(' $ac_mid ')' + 1`
14460 rm -f conftest.$ac_objext conftest.$ac_ext
14463 ?*) ac_cv_sizeof_long_int=$ac_lo;;
14464 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14465 See \`config.log' for more details." >&5
14466 echo "$as_me: error: cannot compute sizeof (long int), 77
14467 See \`config.log' for more details." >&2;}
14468 { (exit 1); exit 1; }; } ;;
14471 if test "$cross_compiling" = yes; then
14472 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14473 See \`config.log' for more details." >&5
14474 echo "$as_me: error: cannot run test program while cross compiling
14475 See \`config.log' for more details." >&2;}
14476 { (exit 1); exit 1; }; }
14478 cat >conftest.$ac_ext <<_ACEOF
14479 #line $LINENO "configure"
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h. */
14485 $ac_includes_default
14486 long longval () { return (long) (sizeof (long int)); }
14487 unsigned long ulongval () { return (long) (sizeof (long int)); }
14489 #include <stdlib.h>
14494 FILE *f = fopen ("conftest.val", "w");
14497 if (((long) (sizeof (long int))) < 0)
14499 long i = longval ();
14500 if (i != ((long) (sizeof (long int))))
14502 fprintf (f, "%ld\n", i);
14506 unsigned long i = ulongval ();
14507 if (i != ((long) (sizeof (long int))))
14509 fprintf (f, "%lu\n", i);
14511 exit (ferror (f) || fclose (f) != 0);
14517 rm -f conftest$ac_exeext
14518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14519 (eval $ac_link) 2>&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_long_int=`cat conftest.val`
14530 echo "$as_me: program exited with status $ac_status" >&5
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14534 ( exit $ac_status )
14535 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14536 See \`config.log' for more details." >&5
14537 echo "$as_me: error: cannot compute sizeof (long int), 77
14538 See \`config.log' for more details." >&2;}
14539 { (exit 1); exit 1; }; }
14541 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14546 ac_cv_sizeof_long_int=0
14549 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
14550 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
14551 cat >>confdefs.h <<_ACEOF
14552 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14556 echo "$as_me:$LINENO: checking for long long int" >&5
14557 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14558 if test "${ac_cv_type_long_long_int+set}" = set; then
14559 echo $ECHO_N "(cached) $ECHO_C" >&6
14561 cat >conftest.$ac_ext <<_ACEOF
14562 #line $LINENO "configure"
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h. */
14568 $ac_includes_default
14572 if ((long long int *) 0)
14574 if (sizeof (long long int))
14580 rm -f conftest.$ac_objext
14581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14582 (eval $ac_compile) 2>&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } &&
14586 { ac_try='test -s conftest.$ac_objext'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }; then
14592 ac_cv_type_long_long_int=yes
14594 echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14597 ac_cv_type_long_long_int=no
14599 rm -f conftest.$ac_objext conftest.$ac_ext
14601 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14602 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14604 echo "$as_me:$LINENO: checking size of long long int" >&5
14605 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
14606 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
14607 echo $ECHO_N "(cached) $ECHO_C" >&6
14609 if test "$ac_cv_type_long_long_int" = yes; then
14610 # The cast to unsigned long works around a bug in the HP C Compiler
14611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14613 # This bug is HP SR number 8606223364.
14614 if test "$cross_compiling" = yes; then
14615 # Depending upon the size, compute the lo and hi bounds.
14616 cat >conftest.$ac_ext <<_ACEOF
14617 #line $LINENO "configure"
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14623 $ac_includes_default
14627 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
14634 rm -f conftest.$ac_objext
14635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14636 (eval $ac_compile) 2>&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } &&
14640 { ac_try='test -s conftest.$ac_objext'
14641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642 (eval $ac_try) 2>&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); }; }; then
14648 cat >conftest.$ac_ext <<_ACEOF
14649 #line $LINENO "configure"
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14655 $ac_includes_default
14659 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
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_hi=$ac_mid; break
14680 echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.$ac_ext >&5
14683 ac_lo=`expr $ac_mid + 1`
14684 if test $ac_lo -le $ac_mid; then
14688 ac_mid=`expr 2 '*' $ac_mid + 1`
14690 rm -f conftest.$ac_objext conftest.$ac_ext
14693 echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14696 cat >conftest.$ac_ext <<_ACEOF
14697 #line $LINENO "configure"
14700 cat confdefs.h >>conftest.$ac_ext
14701 cat >>conftest.$ac_ext <<_ACEOF
14702 /* end confdefs.h. */
14703 $ac_includes_default
14707 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
14714 rm -f conftest.$ac_objext
14715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14716 (eval $ac_compile) 2>&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); } &&
14720 { ac_try='test -s conftest.$ac_objext'
14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; }; then
14728 cat >conftest.$ac_ext <<_ACEOF
14729 #line $LINENO "configure"
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h. */
14735 $ac_includes_default
14739 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
14746 rm -f conftest.$ac_objext
14747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14748 (eval $ac_compile) 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } &&
14752 { ac_try='test -s conftest.$ac_objext'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; }; then
14758 ac_lo=$ac_mid; break
14760 echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.$ac_ext >&5
14763 ac_hi=`expr '(' $ac_mid ')' - 1`
14764 if test $ac_mid -le $ac_hi; then
14768 ac_mid=`expr 2 '*' $ac_mid`
14770 rm -f conftest.$ac_objext conftest.$ac_ext
14773 echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14778 rm -f conftest.$ac_objext conftest.$ac_ext
14780 rm -f conftest.$ac_objext conftest.$ac_ext
14781 # Binary search between lo and hi bounds.
14782 while test "x$ac_lo" != "x$ac_hi"; do
14783 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14784 cat >conftest.$ac_ext <<_ACEOF
14785 #line $LINENO "configure"
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h. */
14791 $ac_includes_default
14795 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14802 rm -f conftest.$ac_objext
14803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14804 (eval $ac_compile) 2>&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } &&
14808 { ac_try='test -s conftest.$ac_objext'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; }; then
14816 echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14819 ac_lo=`expr '(' $ac_mid ')' + 1`
14821 rm -f conftest.$ac_objext conftest.$ac_ext
14824 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14825 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14826 See \`config.log' for more details." >&5
14827 echo "$as_me: error: cannot compute sizeof (long long int), 77
14828 See \`config.log' for more details." >&2;}
14829 { (exit 1); exit 1; }; } ;;
14832 if test "$cross_compiling" = yes; then
14833 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14834 See \`config.log' for more details." >&5
14835 echo "$as_me: error: cannot run test program while cross compiling
14836 See \`config.log' for more details." >&2;}
14837 { (exit 1); exit 1; }; }
14839 cat >conftest.$ac_ext <<_ACEOF
14840 #line $LINENO "configure"
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h. */
14846 $ac_includes_default
14847 long longval () { return (long) (sizeof (long long int)); }
14848 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14850 #include <stdlib.h>
14855 FILE *f = fopen ("conftest.val", "w");
14858 if (((long) (sizeof (long long int))) < 0)
14860 long i = longval ();
14861 if (i != ((long) (sizeof (long long int))))
14863 fprintf (f, "%ld\n", i);
14867 unsigned long i = ulongval ();
14868 if (i != ((long) (sizeof (long long int))))
14870 fprintf (f, "%lu\n", i);
14872 exit (ferror (f) || fclose (f) != 0);
14878 rm -f conftest$ac_exeext
14879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14880 (eval $ac_link) 2>&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885 (eval $ac_try) 2>&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; }; then
14889 ac_cv_sizeof_long_long_int=`cat conftest.val`
14891 echo "$as_me: program exited with status $ac_status" >&5
14892 echo "$as_me: failed program was:" >&5
14893 sed 's/^/| /' conftest.$ac_ext >&5
14895 ( exit $ac_status )
14896 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14897 See \`config.log' for more details." >&5
14898 echo "$as_me: error: cannot compute sizeof (long long int), 77
14899 See \`config.log' for more details." >&2;}
14900 { (exit 1); exit 1; }; }
14902 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14907 ac_cv_sizeof_long_long_int=0
14910 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14911 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14912 cat >>confdefs.h <<_ACEOF
14913 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14917 echo "$as_me:$LINENO: checking for int *" >&5
14918 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14919 if test "${ac_cv_type_int_p+set}" = set; then
14920 echo $ECHO_N "(cached) $ECHO_C" >&6
14922 cat >conftest.$ac_ext <<_ACEOF
14923 #line $LINENO "configure"
14926 cat confdefs.h >>conftest.$ac_ext
14927 cat >>conftest.$ac_ext <<_ACEOF
14928 /* end confdefs.h. */
14929 $ac_includes_default
14935 if (sizeof (int *))
14941 rm -f conftest.$ac_objext
14942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14943 (eval $ac_compile) 2>&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } &&
14947 { ac_try='test -s conftest.$ac_objext'
14948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949 (eval $ac_try) 2>&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); }; }; then
14953 ac_cv_type_int_p=yes
14955 echo "$as_me: failed program was:" >&5
14956 sed 's/^/| /' conftest.$ac_ext >&5
14958 ac_cv_type_int_p=no
14960 rm -f conftest.$ac_objext conftest.$ac_ext
14962 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14963 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14965 echo "$as_me:$LINENO: checking size of int *" >&5
14966 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14967 if test "${ac_cv_sizeof_int_p+set}" = set; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
14970 if test "$ac_cv_type_int_p" = yes; then
14971 # The cast to unsigned long works around a bug in the HP C Compiler
14972 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14973 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14974 # This bug is HP SR number 8606223364.
14975 if test "$cross_compiling" = yes; then
14976 # Depending upon the size, compute the lo and hi bounds.
14977 cat >conftest.$ac_ext <<_ACEOF
14978 #line $LINENO "configure"
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14984 $ac_includes_default
14988 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14995 rm -f conftest.$ac_objext
14996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14997 (eval $ac_compile) 2>&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } &&
15001 { ac_try='test -s conftest.$ac_objext'
15002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003 (eval $ac_try) 2>&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; }; then
15009 cat >conftest.$ac_ext <<_ACEOF
15010 #line $LINENO "configure"
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h. */
15016 $ac_includes_default
15020 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15027 rm -f conftest.$ac_objext
15028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15029 (eval $ac_compile) 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } &&
15033 { ac_try='test -s conftest.$ac_objext'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; }; then
15039 ac_hi=$ac_mid; break
15041 echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.$ac_ext >&5
15044 ac_lo=`expr $ac_mid + 1`
15045 if test $ac_lo -le $ac_mid; then
15049 ac_mid=`expr 2 '*' $ac_mid + 1`
15051 rm -f conftest.$ac_objext conftest.$ac_ext
15054 echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15057 cat >conftest.$ac_ext <<_ACEOF
15058 #line $LINENO "configure"
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15064 $ac_includes_default
15068 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
15075 rm -f conftest.$ac_objext
15076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15077 (eval $ac_compile) 2>&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } &&
15081 { ac_try='test -s conftest.$ac_objext'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; }; then
15089 cat >conftest.$ac_ext <<_ACEOF
15090 #line $LINENO "configure"
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15096 $ac_includes_default
15100 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
15107 rm -f conftest.$ac_objext
15108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15109 (eval $ac_compile) 2>&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } &&
15113 { ac_try='test -s conftest.$ac_objext'
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; }; then
15119 ac_lo=$ac_mid; break
15121 echo "$as_me: failed program was:" >&5
15122 sed 's/^/| /' conftest.$ac_ext >&5
15124 ac_hi=`expr '(' $ac_mid ')' - 1`
15125 if test $ac_mid -le $ac_hi; then
15129 ac_mid=`expr 2 '*' $ac_mid`
15131 rm -f conftest.$ac_objext conftest.$ac_ext
15134 echo "$as_me: failed program was:" >&5
15135 sed 's/^/| /' conftest.$ac_ext >&5
15139 rm -f conftest.$ac_objext conftest.$ac_ext
15141 rm -f conftest.$ac_objext conftest.$ac_ext
15142 # Binary search between lo and hi bounds.
15143 while test "x$ac_lo" != "x$ac_hi"; do
15144 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15145 cat >conftest.$ac_ext <<_ACEOF
15146 #line $LINENO "configure"
15149 cat confdefs.h >>conftest.$ac_ext
15150 cat >>conftest.$ac_ext <<_ACEOF
15151 /* end confdefs.h. */
15152 $ac_includes_default
15156 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15163 rm -f conftest.$ac_objext
15164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15165 (eval $ac_compile) 2>&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } &&
15169 { ac_try='test -s conftest.$ac_objext'
15170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15171 (eval $ac_try) 2>&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); }; }; then
15177 echo "$as_me: failed program was:" >&5
15178 sed 's/^/| /' conftest.$ac_ext >&5
15180 ac_lo=`expr '(' $ac_mid ')' + 1`
15182 rm -f conftest.$ac_objext conftest.$ac_ext
15185 ?*) ac_cv_sizeof_int_p=$ac_lo;;
15186 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15187 See \`config.log' for more details." >&5
15188 echo "$as_me: error: cannot compute sizeof (int *), 77
15189 See \`config.log' for more details." >&2;}
15190 { (exit 1); exit 1; }; } ;;
15193 if test "$cross_compiling" = yes; then
15194 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15195 See \`config.log' for more details." >&5
15196 echo "$as_me: error: cannot run test program while cross compiling
15197 See \`config.log' for more details." >&2;}
15198 { (exit 1); exit 1; }; }
15200 cat >conftest.$ac_ext <<_ACEOF
15201 #line $LINENO "configure"
15204 cat confdefs.h >>conftest.$ac_ext
15205 cat >>conftest.$ac_ext <<_ACEOF
15206 /* end confdefs.h. */
15207 $ac_includes_default
15208 long longval () { return (long) (sizeof (int *)); }
15209 unsigned long ulongval () { return (long) (sizeof (int *)); }
15211 #include <stdlib.h>
15216 FILE *f = fopen ("conftest.val", "w");
15219 if (((long) (sizeof (int *))) < 0)
15221 long i = longval ();
15222 if (i != ((long) (sizeof (int *))))
15224 fprintf (f, "%ld\n", i);
15228 unsigned long i = ulongval ();
15229 if (i != ((long) (sizeof (int *))))
15231 fprintf (f, "%lu\n", i);
15233 exit (ferror (f) || fclose (f) != 0);
15239 rm -f conftest$ac_exeext
15240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15241 (eval $ac_link) 2>&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; }; then
15250 ac_cv_sizeof_int_p=`cat conftest.val`
15252 echo "$as_me: program exited with status $ac_status" >&5
15253 echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15256 ( exit $ac_status )
15257 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15258 See \`config.log' for more details." >&5
15259 echo "$as_me: error: cannot compute sizeof (int *), 77
15260 See \`config.log' for more details." >&2;}
15261 { (exit 1); exit 1; }; }
15263 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15268 ac_cv_sizeof_int_p=0
15271 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
15272 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
15273 cat >>confdefs.h <<_ACEOF
15274 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
15279 # Check for sys/types.h types
15280 echo "$as_me:$LINENO: checking for u_int type" >&5
15281 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
15282 if test "${ac_cv_have_u_int+set}" = set; then
15283 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 #include <sys/types.h>
15302 rm -f conftest.$ac_objext
15303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15304 (eval $ac_compile) 2>&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); } &&
15308 { ac_try='test -s conftest.$ac_objext'
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; }; then
15314 ac_cv_have_u_int="yes"
15316 echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15319 ac_cv_have_u_int="no"
15322 rm -f conftest.$ac_objext conftest.$ac_ext
15325 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
15326 echo "${ECHO_T}$ac_cv_have_u_int" >&6
15327 if test "x$ac_cv_have_u_int" = "xyes" ; then
15328 cat >>confdefs.h <<\_ACEOF
15329 #define HAVE_U_INT 1
15335 echo "$as_me:$LINENO: checking for intmax_t type" >&5
15336 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
15337 if test "${ac_cv_have_intmax_t+set}" = set; then
15338 echo $ECHO_N "(cached) $ECHO_C" >&6
15341 cat >conftest.$ac_ext <<_ACEOF
15342 #line $LINENO "configure"
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h. */
15348 #include <sys/types.h>
15357 rm -f conftest.$ac_objext
15358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15359 (eval $ac_compile) 2>&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } &&
15363 { ac_try='test -s conftest.$ac_objext'
15364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365 (eval $ac_try) 2>&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; }; then
15369 ac_cv_have_intmax_t="yes"
15371 echo "$as_me: failed program was:" >&5
15372 sed 's/^/| /' conftest.$ac_ext >&5
15375 cat >conftest.$ac_ext <<_ACEOF
15376 #line $LINENO "configure"
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15382 #include <stdint.h>
15391 rm -f conftest.$ac_objext
15392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15393 (eval $ac_compile) 2>&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); } &&
15397 { ac_try='test -s conftest.$ac_objext'
15398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399 (eval $ac_try) 2>&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); }; }; then
15403 ac_cv_have_intmax_t="yes"
15405 echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15408 ac_cv_have_intmax_t="no"
15411 rm -f conftest.$ac_objext conftest.$ac_ext
15415 rm -f conftest.$ac_objext conftest.$ac_ext
15419 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
15420 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
15421 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
15422 cat >>confdefs.h <<\_ACEOF
15423 #define HAVE_INTMAX_T 1
15430 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
15431 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
15432 if test "${ac_cv_have_u_intmax_t+set}" = set; then
15433 echo $ECHO_N "(cached) $ECHO_C" >&6
15436 cat >conftest.$ac_ext <<_ACEOF
15437 #line $LINENO "configure"
15440 cat confdefs.h >>conftest.$ac_ext
15441 cat >>conftest.$ac_ext <<_ACEOF
15442 /* end confdefs.h. */
15443 #include <sys/types.h>
15447 u_intmax_t a; a = 1;
15452 rm -f conftest.$ac_objext
15453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15454 (eval $ac_compile) 2>&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } &&
15458 { ac_try='test -s conftest.$ac_objext'
15459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15460 (eval $ac_try) 2>&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; }; then
15464 ac_cv_have_u_intmax_t="yes"
15466 echo "$as_me: failed program was:" >&5
15467 sed 's/^/| /' conftest.$ac_ext >&5
15470 cat >conftest.$ac_ext <<_ACEOF
15471 #line $LINENO "configure"
15474 cat confdefs.h >>conftest.$ac_ext
15475 cat >>conftest.$ac_ext <<_ACEOF
15476 /* end confdefs.h. */
15477 #include <stdint.h>
15481 u_intmax_t a; a = 1;
15486 rm -f conftest.$ac_objext
15487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15488 (eval $ac_compile) 2>&5
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); } &&
15492 { ac_try='test -s conftest.$ac_objext'
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; }; then
15498 ac_cv_have_u_intmax_t="yes"
15500 echo "$as_me: failed program was:" >&5
15501 sed 's/^/| /' conftest.$ac_ext >&5
15503 ac_cv_have_u_intmax_t="no"
15506 rm -f conftest.$ac_objext conftest.$ac_ext
15510 rm -f conftest.$ac_objext conftest.$ac_ext
15513 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
15514 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
15515 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
15516 cat >>confdefs.h <<\_ACEOF
15517 #define HAVE_U_INTMAX_T 1
15524 echo "$as_me:$LINENO: checking for intXX_t types" >&5
15525 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
15526 if test "${ac_cv_have_intxx_t+set}" = set; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15530 cat >conftest.$ac_ext <<_ACEOF
15531 #line $LINENO "configure"
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 #include <sys/types.h>
15541 int8_t a; int16_t b; int32_t c; a = b = c = 1;
15546 rm -f conftest.$ac_objext
15547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15548 (eval $ac_compile) 2>&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } &&
15552 { ac_try='test -s conftest.$ac_objext'
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15558 ac_cv_have_intxx_t="yes"
15560 echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15563 ac_cv_have_intxx_t="no"
15566 rm -f conftest.$ac_objext conftest.$ac_ext
15569 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
15570 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
15571 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
15572 cat >>confdefs.h <<\_ACEOF
15573 #define HAVE_INTXX_T 1
15579 echo "$as_me:$LINENO: checking for int64_t type" >&5
15580 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
15581 if test "${ac_cv_have_int64_t+set}" = set; then
15582 echo $ECHO_N "(cached) $ECHO_C" >&6
15585 cat >conftest.$ac_ext <<_ACEOF
15586 #line $LINENO "configure"
15589 cat confdefs.h >>conftest.$ac_ext
15590 cat >>conftest.$ac_ext <<_ACEOF
15591 /* end confdefs.h. */
15592 #include <sys/types.h>
15601 rm -f conftest.$ac_objext
15602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15603 (eval $ac_compile) 2>&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } &&
15607 { ac_try='test -s conftest.$ac_objext'
15608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609 (eval $ac_try) 2>&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; }; then
15613 ac_cv_have_int64_t="yes"
15615 echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15618 ac_cv_have_int64_t="no"
15621 rm -f conftest.$ac_objext conftest.$ac_ext
15624 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
15625 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
15626 if test "x$ac_cv_have_int64_t" = "xyes" ; then
15627 cat >>confdefs.h <<\_ACEOF
15628 #define HAVE_INT64_T 1
15634 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
15635 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
15636 if test "${ac_cv_have_u_intxx_t+set}" = set; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15640 cat >conftest.$ac_ext <<_ACEOF
15641 #line $LINENO "configure"
15644 cat confdefs.h >>conftest.$ac_ext
15645 cat >>conftest.$ac_ext <<_ACEOF
15646 /* end confdefs.h. */
15647 #include <sys/types.h>
15651 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
15656 rm -f conftest.$ac_objext
15657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15658 (eval $ac_compile) 2>&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); } &&
15662 { ac_try='test -s conftest.$ac_objext'
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; }; then
15668 ac_cv_have_u_intxx_t="yes"
15670 echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15673 ac_cv_have_u_intxx_t="no"
15676 rm -f conftest.$ac_objext conftest.$ac_ext
15679 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
15680 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
15681 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
15682 cat >>confdefs.h <<\_ACEOF
15683 #define HAVE_U_INTXX_T 1
15689 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
15690 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
15691 if test "${ac_cv_have_u_int64_t+set}" = set; then
15692 echo $ECHO_N "(cached) $ECHO_C" >&6
15695 cat >conftest.$ac_ext <<_ACEOF
15696 #line $LINENO "configure"
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15702 #include <sys/types.h>
15706 u_int64_t a; a = 1;
15711 rm -f conftest.$ac_objext
15712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15713 (eval $ac_compile) 2>&5
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); } &&
15717 { ac_try='test -s conftest.$ac_objext'
15718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719 (eval $ac_try) 2>&5
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; }; then
15723 ac_cv_have_u_int64_t="yes"
15725 echo "$as_me: failed program was:" >&5
15726 sed 's/^/| /' conftest.$ac_ext >&5
15728 ac_cv_have_u_int64_t="no"
15731 rm -f conftest.$ac_objext conftest.$ac_ext
15734 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
15735 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
15736 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15737 cat >>confdefs.h <<\_ACEOF
15738 #define HAVE_U_INT64_T 1
15744 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15745 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15747 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15748 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15749 cat >conftest.$ac_ext <<_ACEOF
15750 #line $LINENO "configure"
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h. */
15756 #include <sys/bitypes.h>
15760 int8_t a; int16_t b; int32_t c;
15761 u_int8_t e; u_int16_t f; u_int32_t g;
15762 a = b = c = e = f = g = 1;
15767 rm -f conftest.$ac_objext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15769 (eval $ac_compile) 2>&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } &&
15773 { ac_try='test -s conftest.$ac_objext'
15774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775 (eval $ac_try) 2>&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; }; then
15779 cat >>confdefs.h <<\_ACEOF
15780 #define HAVE_U_INTXX_T 1
15783 cat >>confdefs.h <<\_ACEOF
15784 #define HAVE_INTXX_T 1
15787 cat >>confdefs.h <<\_ACEOF
15788 #define HAVE_SYS_BITYPES_H 1
15791 echo "$as_me:$LINENO: result: yes" >&5
15792 echo "${ECHO_T}yes" >&6
15794 echo "$as_me: failed program was:" >&5
15795 sed 's/^/| /' conftest.$ac_ext >&5
15797 echo "$as_me:$LINENO: result: no" >&5
15798 echo "${ECHO_T}no" >&6
15801 rm -f conftest.$ac_objext conftest.$ac_ext
15804 if test -z "$have_u_intxx_t" ; then
15805 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15806 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15807 if test "${ac_cv_have_uintxx_t+set}" = set; then
15808 echo $ECHO_N "(cached) $ECHO_C" >&6
15811 cat >conftest.$ac_ext <<_ACEOF
15812 #line $LINENO "configure"
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818 #include <sys/types.h>
15822 uint8_t a; uint16_t b;
15823 uint32_t c; a = b = c = 1;
15828 rm -f conftest.$ac_objext
15829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15830 (eval $ac_compile) 2>&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } &&
15834 { ac_try='test -s conftest.$ac_objext'
15835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836 (eval $ac_try) 2>&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; }; then
15840 ac_cv_have_uintxx_t="yes"
15842 echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.$ac_ext >&5
15845 ac_cv_have_uintxx_t="no"
15848 rm -f conftest.$ac_objext conftest.$ac_ext
15851 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15852 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15853 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15854 cat >>confdefs.h <<\_ACEOF
15855 #define HAVE_UINTXX_T 1
15861 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15862 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15864 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15865 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15866 cat >conftest.$ac_ext <<_ACEOF
15867 #line $LINENO "configure"
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h. */
15873 #include <sys/bitypes.h>
15877 int64_t a; u_int64_t b;
15883 rm -f conftest.$ac_objext
15884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15885 (eval $ac_compile) 2>&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } &&
15889 { ac_try='test -s conftest.$ac_objext'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then
15895 cat >>confdefs.h <<\_ACEOF
15896 #define HAVE_U_INT64_T 1
15899 cat >>confdefs.h <<\_ACEOF
15900 #define HAVE_INT64_T 1
15903 echo "$as_me:$LINENO: result: yes" >&5
15904 echo "${ECHO_T}yes" >&6
15906 echo "$as_me: failed program was:" >&5
15907 sed 's/^/| /' conftest.$ac_ext >&5
15909 echo "$as_me:$LINENO: result: no" >&5
15910 echo "${ECHO_T}no" >&6
15913 rm -f conftest.$ac_objext conftest.$ac_ext
15916 if (test -z "$have_uintxx_t" && \
15917 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15919 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15920 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15921 cat >conftest.$ac_ext <<_ACEOF
15922 #line $LINENO "configure"
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h. */
15928 #include <sys/bitypes.h>
15932 uint8_t a; uint16_t b;
15933 uint32_t c; a = b = c = 1;
15938 rm -f conftest.$ac_objext
15939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15940 (eval $ac_compile) 2>&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } &&
15944 { ac_try='test -s conftest.$ac_objext'
15945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946 (eval $ac_try) 2>&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; }; then
15950 cat >>confdefs.h <<\_ACEOF
15951 #define HAVE_UINTXX_T 1
15954 echo "$as_me:$LINENO: result: yes" >&5
15955 echo "${ECHO_T}yes" >&6
15957 echo "$as_me: failed program was:" >&5
15958 sed 's/^/| /' conftest.$ac_ext >&5
15960 echo "$as_me:$LINENO: result: no" >&5
15961 echo "${ECHO_T}no" >&6
15964 rm -f conftest.$ac_objext conftest.$ac_ext
16000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16001 echo "$as_me:$LINENO: checking for $ac_func" >&5
16002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16003 if eval "test \"\${$as_ac_var+set}\" = set"; then
16004 echo $ECHO_N "(cached) $ECHO_C" >&6
16006 cat >conftest.$ac_ext <<_ACEOF
16007 #line $LINENO "configure"
16010 cat confdefs.h >>conftest.$ac_ext
16011 cat >>conftest.$ac_ext <<_ACEOF
16012 /* end confdefs.h. */
16013 /* System header to define __stub macros and hopefully few prototypes,
16014 which can conflict with char $ac_func (); below.
16015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16016 <limits.h> exists even on freestanding compilers. */
16018 # include <limits.h>
16020 # include <assert.h>
16022 /* Override any gcc2 internal prototype to avoid an error. */
16027 /* We use char because int might match the return type of a gcc2
16028 builtin and then its argument prototype would still apply. */
16030 /* The GNU C library defines this for functions which it implements
16031 to always fail with ENOSYS. Some functions are actually named
16032 something starting with __ and the normal name is an alias. */
16033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16036 char (*f) () = $ac_func;
16045 return f != $ac_func;
16050 rm -f conftest.$ac_objext conftest$ac_exeext
16051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16052 (eval $ac_link) 2>&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } &&
16056 { ac_try='test -s conftest$ac_exeext'
16057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; }; then
16062 eval "$as_ac_var=yes"
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16067 eval "$as_ac_var=no"
16069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16073 if test `eval echo '${'$as_ac_var'}'` = yes; then
16074 cat >>confdefs.h <<_ACEOF
16075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16079 echo 'configure: cannot find needed function.'; exit 1
16086 for ac_func in fchdir
16088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16089 echo "$as_me:$LINENO: checking for $ac_func" >&5
16090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16091 if eval "test \"\${$as_ac_var+set}\" = set"; then
16092 echo $ECHO_N "(cached) $ECHO_C" >&6
16094 cat >conftest.$ac_ext <<_ACEOF
16095 #line $LINENO "configure"
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h. */
16101 /* System header to define __stub macros and hopefully few prototypes,
16102 which can conflict with char $ac_func (); below.
16103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16104 <limits.h> exists even on freestanding compilers. */
16106 # include <limits.h>
16108 # include <assert.h>
16110 /* Override any gcc2 internal prototype to avoid an error. */
16115 /* We use char because int might match the return type of a gcc2
16116 builtin and then its argument prototype would still apply. */
16118 /* The GNU C library defines this for functions which it implements
16119 to always fail with ENOSYS. Some functions are actually named
16120 something starting with __ and the normal name is an alias. */
16121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16124 char (*f) () = $ac_func;
16133 return f != $ac_func;
16138 rm -f conftest.$ac_objext conftest$ac_exeext
16139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16140 (eval $ac_link) 2>&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); } &&
16144 { ac_try='test -s conftest$ac_exeext'
16145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; }; then
16150 eval "$as_ac_var=yes"
16152 echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16155 eval "$as_ac_var=no"
16157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16161 if test `eval echo '${'$as_ac_var'}'` = yes; then
16162 cat >>confdefs.h <<_ACEOF
16163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16165 cat >>confdefs.h <<\_ACEOF
16166 #define HAVE_FCHDIR 1
16173 for ac_func in strtoll
16175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16176 echo "$as_me:$LINENO: checking for $ac_func" >&5
16177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16178 if eval "test \"\${$as_ac_var+set}\" = set"; then
16179 echo $ECHO_N "(cached) $ECHO_C" >&6
16181 cat >conftest.$ac_ext <<_ACEOF
16182 #line $LINENO "configure"
16185 cat confdefs.h >>conftest.$ac_ext
16186 cat >>conftest.$ac_ext <<_ACEOF
16187 /* end confdefs.h. */
16188 /* System header to define __stub macros and hopefully few prototypes,
16189 which can conflict with char $ac_func (); below.
16190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16191 <limits.h> exists even on freestanding compilers. */
16193 # include <limits.h>
16195 # include <assert.h>
16197 /* Override any gcc2 internal prototype to avoid an error. */
16202 /* We use char because int might match the return type of a gcc2
16203 builtin and then its argument prototype would still apply. */
16205 /* The GNU C library defines this for functions which it implements
16206 to always fail with ENOSYS. Some functions are actually named
16207 something starting with __ and the normal name is an alias. */
16208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16211 char (*f) () = $ac_func;
16220 return f != $ac_func;
16225 rm -f conftest.$ac_objext conftest$ac_exeext
16226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16227 (eval $ac_link) 2>&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } &&
16231 { ac_try='test -s conftest$ac_exeext'
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; }; then
16237 eval "$as_ac_var=yes"
16239 echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16242 eval "$as_ac_var=no"
16244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16248 if test `eval echo '${'$as_ac_var'}'` = yes; then
16249 cat >>confdefs.h <<_ACEOF
16250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16252 cat >>confdefs.h <<\_ACEOF
16253 #define HAVE_STRTOLL 1
16261 for ac_func in chflags
16263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16264 echo "$as_me:$LINENO: checking for $ac_func" >&5
16265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16266 if eval "test \"\${$as_ac_var+set}\" = set"; then
16267 echo $ECHO_N "(cached) $ECHO_C" >&6
16269 cat >conftest.$ac_ext <<_ACEOF
16270 #line $LINENO "configure"
16273 cat confdefs.h >>conftest.$ac_ext
16274 cat >>conftest.$ac_ext <<_ACEOF
16275 /* end confdefs.h. */
16276 /* System header to define __stub macros and hopefully few prototypes,
16277 which can conflict with char $ac_func (); below.
16278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16279 <limits.h> exists even on freestanding compilers. */
16281 # include <limits.h>
16283 # include <assert.h>
16285 /* Override any gcc2 internal prototype to avoid an error. */
16290 /* We use char because int might match the return type of a gcc2
16291 builtin and then its argument prototype would still apply. */
16293 /* The GNU C library defines this for functions which it implements
16294 to always fail with ENOSYS. Some functions are actually named
16295 something starting with __ and the normal name is an alias. */
16296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16299 char (*f) () = $ac_func;
16308 return f != $ac_func;
16313 rm -f conftest.$ac_objext conftest$ac_exeext
16314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16315 (eval $ac_link) 2>&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); } &&
16319 { ac_try='test -s conftest$ac_exeext'
16320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321 (eval $ac_try) 2>&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; }; then
16325 eval "$as_ac_var=yes"
16327 echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16330 eval "$as_ac_var=no"
16332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16336 if test `eval echo '${'$as_ac_var'}'` = yes; then
16337 cat >>confdefs.h <<_ACEOF
16338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16349 for ac_func in snprintf vsnprintf gethostid getdomainname
16351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16352 echo "$as_me:$LINENO: checking for $ac_func" >&5
16353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16354 if eval "test \"\${$as_ac_var+set}\" = set"; then
16355 echo $ECHO_N "(cached) $ECHO_C" >&6
16357 cat >conftest.$ac_ext <<_ACEOF
16358 #line $LINENO "configure"
16361 cat confdefs.h >>conftest.$ac_ext
16362 cat >>conftest.$ac_ext <<_ACEOF
16363 /* end confdefs.h. */
16364 /* System header to define __stub macros and hopefully few prototypes,
16365 which can conflict with char $ac_func (); below.
16366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16367 <limits.h> exists even on freestanding compilers. */
16369 # include <limits.h>
16371 # include <assert.h>
16373 /* Override any gcc2 internal prototype to avoid an error. */
16378 /* We use char because int might match the return type of a gcc2
16379 builtin and then its argument prototype would still apply. */
16381 /* The GNU C library defines this for functions which it implements
16382 to always fail with ENOSYS. Some functions are actually named
16383 something starting with __ and the normal name is an alias. */
16384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16387 char (*f) () = $ac_func;
16396 return f != $ac_func;
16401 rm -f conftest.$ac_objext conftest$ac_exeext
16402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16403 (eval $ac_link) 2>&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); } &&
16407 { ac_try='test -s conftest$ac_exeext'
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409 (eval $ac_try) 2>&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; }; then
16413 eval "$as_ac_var=yes"
16415 echo "$as_me: failed program was:" >&5
16416 sed 's/^/| /' conftest.$ac_ext >&5
16418 eval "$as_ac_var=no"
16420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16424 if test `eval echo '${'$as_ac_var'}'` = yes; then
16425 cat >>confdefs.h <<_ACEOF
16426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16437 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
16439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16440 echo "$as_me:$LINENO: checking for $ac_func" >&5
16441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16442 if eval "test \"\${$as_ac_var+set}\" = set"; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16445 cat >conftest.$ac_ext <<_ACEOF
16446 #line $LINENO "configure"
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h. */
16452 /* System header to define __stub macros and hopefully few prototypes,
16453 which can conflict with char $ac_func (); below.
16454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16455 <limits.h> exists even on freestanding compilers. */
16457 # include <limits.h>
16459 # include <assert.h>
16461 /* Override any gcc2 internal prototype to avoid an error. */
16466 /* We use char because int might match the return type of a gcc2
16467 builtin and then its argument prototype would still apply. */
16469 /* The GNU C library defines this for functions which it implements
16470 to always fail with ENOSYS. Some functions are actually named
16471 something starting with __ and the normal name is an alias. */
16472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16475 char (*f) () = $ac_func;
16484 return f != $ac_func;
16489 rm -f conftest.$ac_objext conftest$ac_exeext
16490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16491 (eval $ac_link) 2>&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); } &&
16495 { ac_try='test -s conftest$ac_exeext'
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; }; then
16501 eval "$as_ac_var=yes"
16503 echo "$as_me: failed program was:" >&5
16504 sed 's/^/| /' conftest.$ac_ext >&5
16506 eval "$as_ac_var=no"
16508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16512 if test `eval echo '${'$as_ac_var'}'` = yes; then
16513 cat >>confdefs.h <<_ACEOF
16514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16521 # If resolver functions are not in libc check for -lnsl or -lresolv.
16522 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
16523 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
16524 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16527 cat >conftest.$ac_ext <<_ACEOF
16528 #line $LINENO "configure"
16531 cat confdefs.h >>conftest.$ac_ext
16532 cat >>conftest.$ac_ext <<_ACEOF
16533 /* end confdefs.h. */
16534 /* System header to define __stub macros and hopefully few prototypes,
16535 which can conflict with char gethostbyname_r (); below.
16536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16537 <limits.h> exists even on freestanding compilers. */
16539 # include <limits.h>
16541 # include <assert.h>
16543 /* Override any gcc2 internal prototype to avoid an error. */
16548 /* We use char because int might match the return type of a gcc2
16549 builtin and then its argument prototype would still apply. */
16550 char gethostbyname_r ();
16551 /* The GNU C library defines this for functions which it implements
16552 to always fail with ENOSYS. Some functions are actually named
16553 something starting with __ and the normal name is an alias. */
16554 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
16557 char (*f) () = gethostbyname_r;
16566 return f != gethostbyname_r;
16571 rm -f conftest.$ac_objext conftest$ac_exeext
16572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16573 (eval $ac_link) 2>&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } &&
16577 { ac_try='test -s conftest$ac_exeext'
16578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16579 (eval $ac_try) 2>&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; }; then
16583 ac_cv_func_gethostbyname_r=yes
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16588 ac_cv_func_gethostbyname_r=no
16590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16592 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
16593 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
16594 if test $ac_cv_func_gethostbyname_r = yes; then
16595 echo "$as_me:$LINENO: result: using libc's resolver" >&5
16596 echo "${ECHO_T}using libc's resolver" >&6
16599 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
16600 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
16601 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
16604 ac_check_lib_save_LIBS=$LIBS
16606 cat >conftest.$ac_ext <<_ACEOF
16607 #line $LINENO "configure"
16610 cat confdefs.h >>conftest.$ac_ext
16611 cat >>conftest.$ac_ext <<_ACEOF
16612 /* end confdefs.h. */
16614 /* Override any gcc2 internal prototype to avoid an error. */
16618 /* We use char because int might match the return type of a gcc2
16619 builtin and then its argument prototype would still apply. */
16620 char gethostbyname_r ();
16624 gethostbyname_r ();
16629 rm -f conftest.$ac_objext conftest$ac_exeext
16630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16631 (eval $ac_link) 2>&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); } &&
16635 { ac_try='test -s conftest$ac_exeext'
16636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16637 (eval $ac_try) 2>&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; }; then
16641 ac_cv_lib_nsl_gethostbyname_r=yes
16643 echo "$as_me: failed program was:" >&5
16644 sed 's/^/| /' conftest.$ac_ext >&5
16646 ac_cv_lib_nsl_gethostbyname_r=no
16648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16649 LIBS=$ac_check_lib_save_LIBS
16651 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
16652 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
16653 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
16654 cat >>confdefs.h <<_ACEOF
16655 #define HAVE_LIBNSL 1
16663 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
16664 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
16665 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
16666 echo $ECHO_N "(cached) $ECHO_C" >&6
16668 ac_check_lib_save_LIBS=$LIBS
16669 LIBS="-lresolv $LIBS"
16670 cat >conftest.$ac_ext <<_ACEOF
16671 #line $LINENO "configure"
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h. */
16678 /* Override any gcc2 internal prototype to avoid an error. */
16682 /* We use char because int might match the return type of a gcc2
16683 builtin and then its argument prototype would still apply. */
16684 char gethostbyname_r ();
16688 gethostbyname_r ();
16693 rm -f conftest.$ac_objext conftest$ac_exeext
16694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16695 (eval $ac_link) 2>&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } &&
16699 { ac_try='test -s conftest$ac_exeext'
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; }; then
16705 ac_cv_lib_resolv_gethostbyname_r=yes
16707 echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.$ac_ext >&5
16710 ac_cv_lib_resolv_gethostbyname_r=no
16712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16713 LIBS=$ac_check_lib_save_LIBS
16715 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
16716 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
16717 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
16718 cat >>confdefs.h <<_ACEOF
16719 #define HAVE_LIBRESOLV 1
16722 LIBS="-lresolv $LIBS"
16732 for ac_func in inet_pton
16734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16735 echo "$as_me:$LINENO: checking for $ac_func" >&5
16736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16737 if eval "test \"\${$as_ac_var+set}\" = set"; then
16738 echo $ECHO_N "(cached) $ECHO_C" >&6
16740 cat >conftest.$ac_ext <<_ACEOF
16741 #line $LINENO "configure"
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h. */
16747 /* System header to define __stub macros and hopefully few prototypes,
16748 which can conflict with char $ac_func (); below.
16749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16750 <limits.h> exists even on freestanding compilers. */
16752 # include <limits.h>
16754 # include <assert.h>
16756 /* Override any gcc2 internal prototype to avoid an error. */
16761 /* We use char because int might match the return type of a gcc2
16762 builtin and then its argument prototype would still apply. */
16764 /* The GNU C library defines this for functions which it implements
16765 to always fail with ENOSYS. Some functions are actually named
16766 something starting with __ and the normal name is an alias. */
16767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16770 char (*f) () = $ac_func;
16779 return f != $ac_func;
16784 rm -f conftest.$ac_objext conftest$ac_exeext
16785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16786 (eval $ac_link) 2>&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); } &&
16790 { ac_try='test -s conftest$ac_exeext'
16791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792 (eval $ac_try) 2>&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; }; then
16796 eval "$as_ac_var=yes"
16798 echo "$as_me: failed program was:" >&5
16799 sed 's/^/| /' conftest.$ac_ext >&5
16801 eval "$as_ac_var=no"
16803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16807 if test `eval echo '${'$as_ac_var'}'` = yes; then
16808 cat >>confdefs.h <<_ACEOF
16809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16811 cat >>confdefs.h <<\_ACEOF
16812 #define HAVE_INET_PTON 1
16819 for ac_func in inet_ntop
16821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16822 echo "$as_me:$LINENO: checking for $ac_func" >&5
16823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16824 if eval "test \"\${$as_ac_var+set}\" = set"; then
16825 echo $ECHO_N "(cached) $ECHO_C" >&6
16827 cat >conftest.$ac_ext <<_ACEOF
16828 #line $LINENO "configure"
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h. */
16834 /* System header to define __stub macros and hopefully few prototypes,
16835 which can conflict with char $ac_func (); below.
16836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16837 <limits.h> exists even on freestanding compilers. */
16839 # include <limits.h>
16841 # include <assert.h>
16843 /* Override any gcc2 internal prototype to avoid an error. */
16848 /* We use char because int might match the return type of a gcc2
16849 builtin and then its argument prototype would still apply. */
16851 /* The GNU C library defines this for functions which it implements
16852 to always fail with ENOSYS. Some functions are actually named
16853 something starting with __ and the normal name is an alias. */
16854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16857 char (*f) () = $ac_func;
16866 return f != $ac_func;
16871 rm -f conftest.$ac_objext conftest$ac_exeext
16872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16873 (eval $ac_link) 2>&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); } &&
16877 { ac_try='test -s conftest$ac_exeext'
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; }; then
16883 eval "$as_ac_var=yes"
16885 echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16888 eval "$as_ac_var=no"
16890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16894 if test `eval echo '${'$as_ac_var'}'` = yes; then
16895 cat >>confdefs.h <<_ACEOF
16896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16898 cat >>confdefs.h <<\_ACEOF
16899 #define HAVE_INET_NTOP 1
16906 for ac_func in gethostbyname2
16908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16909 echo "$as_me:$LINENO: checking for $ac_func" >&5
16910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16911 if eval "test \"\${$as_ac_var+set}\" = set"; then
16912 echo $ECHO_N "(cached) $ECHO_C" >&6
16914 cat >conftest.$ac_ext <<_ACEOF
16915 #line $LINENO "configure"
16918 cat confdefs.h >>conftest.$ac_ext
16919 cat >>conftest.$ac_ext <<_ACEOF
16920 /* end confdefs.h. */
16921 /* System header to define __stub macros and hopefully few prototypes,
16922 which can conflict with char $ac_func (); below.
16923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16924 <limits.h> exists even on freestanding compilers. */
16926 # include <limits.h>
16928 # include <assert.h>
16930 /* Override any gcc2 internal prototype to avoid an error. */
16935 /* We use char because int might match the return type of a gcc2
16936 builtin and then its argument prototype would still apply. */
16938 /* The GNU C library defines this for functions which it implements
16939 to always fail with ENOSYS. Some functions are actually named
16940 something starting with __ and the normal name is an alias. */
16941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16944 char (*f) () = $ac_func;
16953 return f != $ac_func;
16958 rm -f conftest.$ac_objext conftest$ac_exeext
16959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16960 (eval $ac_link) 2>&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } &&
16964 { ac_try='test -s conftest$ac_exeext'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; }; then
16970 eval "$as_ac_var=yes"
16972 echo "$as_me: failed program was:" >&5
16973 sed 's/^/| /' conftest.$ac_ext >&5
16975 eval "$as_ac_var=no"
16977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16981 if test `eval echo '${'$as_ac_var'}'` = yes; then
16982 cat >>confdefs.h <<_ACEOF
16983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16985 cat >>confdefs.h <<\_ACEOF
16986 #define HAVE_GETHOSTBYNAME2 1
16993 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
16994 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
16995 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
16996 echo $ECHO_N "(cached) $ECHO_C" >&6
16998 cat >conftest.$ac_ext <<_ACEOF
16999 #line $LINENO "configure"
17002 cat confdefs.h >>conftest.$ac_ext
17003 cat >>conftest.$ac_ext <<_ACEOF
17004 /* end confdefs.h. */
17005 #include <sys/socket.h>
17009 struct sockaddr s; s.sa_len;
17014 rm -f conftest.$ac_objext
17015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17016 (eval $ac_compile) 2>&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
17020 { ac_try='test -s conftest.$ac_objext'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; }; then
17026 ac_cv_struct_sockaddr_sa_len=yes
17028 echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17031 ac_cv_struct_sockaddr_sa_len=no
17033 rm -f conftest.$ac_objext conftest.$ac_ext
17035 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
17036 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
17038 if test $ac_cv_struct_sockaddr_sa_len = yes; then
17040 cat >>confdefs.h <<\_ACEOF
17041 #define HAVE_SA_LEN 1
17047 echo "$as_me:$LINENO: checking for IPv6 support" >&5
17048 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
17049 if test "${ac_cv_ipv6_support+set}" = set; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17052 cat >conftest.$ac_ext <<_ACEOF
17053 #line $LINENO "configure"
17056 cat confdefs.h >>conftest.$ac_ext
17057 cat >>conftest.$ac_ext <<_ACEOF
17058 /* end confdefs.h. */
17059 #include <sys/types.h>
17060 #include <sys/socket.h>
17061 #include <netinet/in.h>
17065 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
17071 rm -f conftest.$ac_objext conftest$ac_exeext
17072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17073 (eval $ac_link) 2>&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } &&
17077 { ac_try='test -s conftest$ac_exeext'
17078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; }; then
17083 ac_cv_ipv6_support=yes
17085 echo "$as_me: failed program was:" >&5
17086 sed 's/^/| /' conftest.$ac_ext >&5
17088 ac_cv_ipv6_support=no
17090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17092 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
17093 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
17095 if test "$ac_cv_ipv6_support" = yes; then
17097 cat >>confdefs.h <<\_ACEOF
17098 #define HAVE_IPV6 1
17106 for ac_func in strftime
17108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17109 echo "$as_me:$LINENO: checking for $ac_func" >&5
17110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17111 if eval "test \"\${$as_ac_var+set}\" = set"; then
17112 echo $ECHO_N "(cached) $ECHO_C" >&6
17114 cat >conftest.$ac_ext <<_ACEOF
17115 #line $LINENO "configure"
17118 cat confdefs.h >>conftest.$ac_ext
17119 cat >>conftest.$ac_ext <<_ACEOF
17120 /* end confdefs.h. */
17121 /* System header to define __stub macros and hopefully few prototypes,
17122 which can conflict with char $ac_func (); below.
17123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17124 <limits.h> exists even on freestanding compilers. */
17126 # include <limits.h>
17128 # include <assert.h>
17130 /* Override any gcc2 internal prototype to avoid an error. */
17135 /* We use char because int might match the return type of a gcc2
17136 builtin and then its argument prototype would still apply. */
17138 /* The GNU C library defines this for functions which it implements
17139 to always fail with ENOSYS. Some functions are actually named
17140 something starting with __ and the normal name is an alias. */
17141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17144 char (*f) () = $ac_func;
17153 return f != $ac_func;
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17160 (eval $ac_link) 2>&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } &&
17164 { ac_try='test -s conftest$ac_exeext'
17165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166 (eval $ac_try) 2>&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; }; then
17170 eval "$as_ac_var=yes"
17172 echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17175 eval "$as_ac_var=no"
17177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17181 if test `eval echo '${'$as_ac_var'}'` = yes; then
17182 cat >>confdefs.h <<_ACEOF
17183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17187 # strftime is in -lintl on SCO UNIX.
17188 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17189 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17190 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17191 echo $ECHO_N "(cached) $ECHO_C" >&6
17193 ac_check_lib_save_LIBS=$LIBS
17194 LIBS="-lintl $LIBS"
17195 cat >conftest.$ac_ext <<_ACEOF
17196 #line $LINENO "configure"
17199 cat confdefs.h >>conftest.$ac_ext
17200 cat >>conftest.$ac_ext <<_ACEOF
17201 /* end confdefs.h. */
17203 /* Override any gcc2 internal prototype to avoid an error. */
17207 /* We use char because int might match the return type of a gcc2
17208 builtin and then its argument prototype would still apply. */
17218 rm -f conftest.$ac_objext conftest$ac_exeext
17219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17220 (eval $ac_link) 2>&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); } &&
17224 { ac_try='test -s conftest$ac_exeext'
17225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226 (eval $ac_try) 2>&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); }; }; then
17230 ac_cv_lib_intl_strftime=yes
17232 echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.$ac_ext >&5
17235 ac_cv_lib_intl_strftime=no
17237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17238 LIBS=$ac_check_lib_save_LIBS
17240 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17241 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17242 if test $ac_cv_lib_intl_strftime = yes; then
17243 cat >>confdefs.h <<\_ACEOF
17244 #define HAVE_STRFTIME 1
17247 LIBS="-lintl $LIBS"
17254 for ac_func in vprintf
17256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17257 echo "$as_me:$LINENO: checking for $ac_func" >&5
17258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17259 if eval "test \"\${$as_ac_var+set}\" = set"; then
17260 echo $ECHO_N "(cached) $ECHO_C" >&6
17262 cat >conftest.$ac_ext <<_ACEOF
17263 #line $LINENO "configure"
17266 cat confdefs.h >>conftest.$ac_ext
17267 cat >>conftest.$ac_ext <<_ACEOF
17268 /* end confdefs.h. */
17269 /* System header to define __stub macros and hopefully few prototypes,
17270 which can conflict with char $ac_func (); below.
17271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17272 <limits.h> exists even on freestanding compilers. */
17274 # include <limits.h>
17276 # include <assert.h>
17278 /* Override any gcc2 internal prototype to avoid an error. */
17283 /* We use char because int might match the return type of a gcc2
17284 builtin and then its argument prototype would still apply. */
17286 /* The GNU C library defines this for functions which it implements
17287 to always fail with ENOSYS. Some functions are actually named
17288 something starting with __ and the normal name is an alias. */
17289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17292 char (*f) () = $ac_func;
17301 return f != $ac_func;
17306 rm -f conftest.$ac_objext conftest$ac_exeext
17307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17308 (eval $ac_link) 2>&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } &&
17312 { ac_try='test -s conftest$ac_exeext'
17313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314 (eval $ac_try) 2>&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); }; }; then
17318 eval "$as_ac_var=yes"
17320 echo "$as_me: failed program was:" >&5
17321 sed 's/^/| /' conftest.$ac_ext >&5
17323 eval "$as_ac_var=no"
17325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17329 if test `eval echo '${'$as_ac_var'}'` = yes; then
17330 cat >>confdefs.h <<_ACEOF
17331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17334 echo "$as_me:$LINENO: checking for _doprnt" >&5
17335 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
17336 if test "${ac_cv_func__doprnt+set}" = set; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 cat >conftest.$ac_ext <<_ACEOF
17340 #line $LINENO "configure"
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 /* System header to define __stub macros and hopefully few prototypes,
17347 which can conflict with char _doprnt (); below.
17348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17349 <limits.h> exists even on freestanding compilers. */
17351 # include <limits.h>
17353 # include <assert.h>
17355 /* Override any gcc2 internal prototype to avoid an error. */
17360 /* We use char because int might match the return type of a gcc2
17361 builtin and then its argument prototype would still apply. */
17363 /* The GNU C library defines this for functions which it implements
17364 to always fail with ENOSYS. Some functions are actually named
17365 something starting with __ and the normal name is an alias. */
17366 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17369 char (*f) () = _doprnt;
17378 return f != _doprnt;
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17385 (eval $ac_link) 2>&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); } &&
17389 { ac_try='test -s conftest$ac_exeext'
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; }; then
17395 ac_cv_func__doprnt=yes
17397 echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17400 ac_cv_func__doprnt=no
17402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17404 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17405 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
17406 if test $ac_cv_func__doprnt = yes; then
17408 cat >>confdefs.h <<\_ACEOF
17409 #define HAVE_DOPRNT 1
17418 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17419 # for constant arguments. Useless!
17420 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17421 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17422 if test "${ac_cv_working_alloca_h+set}" = set; then
17423 echo $ECHO_N "(cached) $ECHO_C" >&6
17425 cat >conftest.$ac_ext <<_ACEOF
17426 #line $LINENO "configure"
17429 cat confdefs.h >>conftest.$ac_ext
17430 cat >>conftest.$ac_ext <<_ACEOF
17431 /* end confdefs.h. */
17432 #include <alloca.h>
17436 char *p = (char *) alloca (2 * sizeof (int));
17441 rm -f conftest.$ac_objext conftest$ac_exeext
17442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17443 (eval $ac_link) 2>&5
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); } &&
17447 { ac_try='test -s conftest$ac_exeext'
17448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449 (eval $ac_try) 2>&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; }; then
17453 ac_cv_working_alloca_h=yes
17455 echo "$as_me: failed program was:" >&5
17456 sed 's/^/| /' conftest.$ac_ext >&5
17458 ac_cv_working_alloca_h=no
17460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17462 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17463 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17464 if test $ac_cv_working_alloca_h = yes; then
17466 cat >>confdefs.h <<\_ACEOF
17467 #define HAVE_ALLOCA_H 1
17472 echo "$as_me:$LINENO: checking for alloca" >&5
17473 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17474 if test "${ac_cv_func_alloca_works+set}" = set; then
17475 echo $ECHO_N "(cached) $ECHO_C" >&6
17477 cat >conftest.$ac_ext <<_ACEOF
17478 #line $LINENO "configure"
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h. */
17485 # define alloca __builtin_alloca
17488 # include <malloc.h>
17489 # define alloca _alloca
17492 # include <alloca.h>
17497 # ifndef alloca /* predefined by HP cc +Olibcalls */
17508 char *p = (char *) alloca (1);
17513 rm -f conftest.$ac_objext conftest$ac_exeext
17514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17515 (eval $ac_link) 2>&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } &&
17519 { ac_try='test -s conftest$ac_exeext'
17520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17521 (eval $ac_try) 2>&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); }; }; then
17525 ac_cv_func_alloca_works=yes
17527 echo "$as_me: failed program was:" >&5
17528 sed 's/^/| /' conftest.$ac_ext >&5
17530 ac_cv_func_alloca_works=no
17532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17534 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17535 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17537 if test $ac_cv_func_alloca_works = yes; then
17539 cat >>confdefs.h <<\_ACEOF
17540 #define HAVE_ALLOCA 1
17544 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17545 # that cause trouble. Some versions do not even contain alloca or
17546 # contain a buggy version. If you still want to use their alloca,
17547 # use ar to extract alloca.o from them instead of compiling alloca.c.
17549 ALLOCA=alloca.$ac_objext
17551 cat >>confdefs.h <<\_ACEOF
17556 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17557 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17558 if test "${ac_cv_os_cray+set}" = set; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17561 cat >conftest.$ac_ext <<_ACEOF
17562 #line $LINENO "configure"
17565 cat confdefs.h >>conftest.$ac_ext
17566 cat >>conftest.$ac_ext <<_ACEOF
17567 /* end confdefs.h. */
17568 #if defined(CRAY) && ! defined(CRAY2)
17575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17576 $EGREP "webecray" >/dev/null 2>&1; then
17584 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17585 echo "${ECHO_T}$ac_cv_os_cray" >&6
17586 if test $ac_cv_os_cray = yes; then
17587 for ac_func in _getb67 GETB67 getb67; do
17588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17589 echo "$as_me:$LINENO: checking for $ac_func" >&5
17590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17591 if eval "test \"\${$as_ac_var+set}\" = set"; then
17592 echo $ECHO_N "(cached) $ECHO_C" >&6
17594 cat >conftest.$ac_ext <<_ACEOF
17595 #line $LINENO "configure"
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h. */
17601 /* System header to define __stub macros and hopefully few prototypes,
17602 which can conflict with char $ac_func (); below.
17603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17604 <limits.h> exists even on freestanding compilers. */
17606 # include <limits.h>
17608 # include <assert.h>
17610 /* Override any gcc2 internal prototype to avoid an error. */
17615 /* We use char because int might match the return type of a gcc2
17616 builtin and then its argument prototype would still apply. */
17618 /* The GNU C library defines this for functions which it implements
17619 to always fail with ENOSYS. Some functions are actually named
17620 something starting with __ and the normal name is an alias. */
17621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17624 char (*f) () = $ac_func;
17633 return f != $ac_func;
17638 rm -f conftest.$ac_objext conftest$ac_exeext
17639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17640 (eval $ac_link) 2>&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } &&
17644 { ac_try='test -s conftest$ac_exeext'
17645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646 (eval $ac_try) 2>&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); }; }; then
17650 eval "$as_ac_var=yes"
17652 echo "$as_me: failed program was:" >&5
17653 sed 's/^/| /' conftest.$ac_ext >&5
17655 eval "$as_ac_var=no"
17657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17661 if test `eval echo '${'$as_ac_var'}'` = yes; then
17663 cat >>confdefs.h <<_ACEOF
17664 #define CRAY_STACKSEG_END $ac_func
17673 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17674 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17675 if test "${ac_cv_c_stack_direction+set}" = set; then
17676 echo $ECHO_N "(cached) $ECHO_C" >&6
17678 if test "$cross_compiling" = yes; then
17679 ac_cv_c_stack_direction=0
17681 cat >conftest.$ac_ext <<_ACEOF
17682 #line $LINENO "configure"
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17689 find_stack_direction ()
17691 static char *addr = 0;
17696 return find_stack_direction ();
17699 return (&dummy > addr) ? 1 : -1;
17705 exit (find_stack_direction () < 0);
17708 rm -f conftest$ac_exeext
17709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17710 (eval $ac_link) 2>&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; }; then
17719 ac_cv_c_stack_direction=1
17721 echo "$as_me: program exited with status $ac_status" >&5
17722 echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.$ac_ext >&5
17725 ( exit $ac_status )
17726 ac_cv_c_stack_direction=-1
17728 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17731 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17732 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17734 cat >>confdefs.h <<_ACEOF
17735 #define STACK_DIRECTION $ac_cv_c_stack_direction
17741 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17742 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17743 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17744 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17745 echo $ECHO_N "(cached) $ECHO_C" >&6
17747 ac_check_lib_save_LIBS=$LIBS
17749 cat >conftest.$ac_ext <<_ACEOF
17750 #line $LINENO "configure"
17753 cat confdefs.h >>conftest.$ac_ext
17754 cat >>conftest.$ac_ext <<_ACEOF
17755 /* end confdefs.h. */
17757 /* Override any gcc2 internal prototype to avoid an error. */
17761 /* We use char because int might match the return type of a gcc2
17762 builtin and then its argument prototype would still apply. */
17772 rm -f conftest.$ac_objext conftest$ac_exeext
17773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17774 (eval $ac_link) 2>&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); } &&
17778 { ac_try='test -s conftest$ac_exeext'
17779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; }; then
17784 ac_cv_lib_sun_getmntent=yes
17786 echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17789 ac_cv_lib_sun_getmntent=no
17791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17792 LIBS=$ac_check_lib_save_LIBS
17794 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17795 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17796 if test $ac_cv_lib_sun_getmntent = yes; then
17799 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17800 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17801 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17802 echo $ECHO_N "(cached) $ECHO_C" >&6
17804 ac_check_lib_save_LIBS=$LIBS
17806 cat >conftest.$ac_ext <<_ACEOF
17807 #line $LINENO "configure"
17810 cat confdefs.h >>conftest.$ac_ext
17811 cat >>conftest.$ac_ext <<_ACEOF
17812 /* end confdefs.h. */
17814 /* Override any gcc2 internal prototype to avoid an error. */
17818 /* We use char because int might match the return type of a gcc2
17819 builtin and then its argument prototype would still apply. */
17829 rm -f conftest.$ac_objext conftest$ac_exeext
17830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17831 (eval $ac_link) 2>&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); } &&
17835 { ac_try='test -s conftest$ac_exeext'
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 ac_cv_lib_seq_getmntent=yes
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17846 ac_cv_lib_seq_getmntent=no
17848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17849 LIBS=$ac_check_lib_save_LIBS
17851 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17852 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17853 if test $ac_cv_lib_seq_getmntent = yes; then
17856 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17857 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17858 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17859 echo $ECHO_N "(cached) $ECHO_C" >&6
17861 ac_check_lib_save_LIBS=$LIBS
17863 cat >conftest.$ac_ext <<_ACEOF
17864 #line $LINENO "configure"
17867 cat confdefs.h >>conftest.$ac_ext
17868 cat >>conftest.$ac_ext <<_ACEOF
17869 /* end confdefs.h. */
17871 /* Override any gcc2 internal prototype to avoid an error. */
17875 /* We use char because int might match the return type of a gcc2
17876 builtin and then its argument prototype would still apply. */
17886 rm -f conftest.$ac_objext conftest$ac_exeext
17887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17888 (eval $ac_link) 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } &&
17892 { ac_try='test -s conftest$ac_exeext'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17898 ac_cv_lib_gen_getmntent=yes
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17903 ac_cv_lib_gen_getmntent=no
17905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17906 LIBS=$ac_check_lib_save_LIBS
17908 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17909 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17910 if test $ac_cv_lib_gen_getmntent = yes; then
17919 for ac_func in getmntent
17921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17922 echo "$as_me:$LINENO: checking for $ac_func" >&5
17923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17924 if eval "test \"\${$as_ac_var+set}\" = set"; then
17925 echo $ECHO_N "(cached) $ECHO_C" >&6
17927 cat >conftest.$ac_ext <<_ACEOF
17928 #line $LINENO "configure"
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h. */
17934 /* System header to define __stub macros and hopefully few prototypes,
17935 which can conflict with char $ac_func (); below.
17936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17937 <limits.h> exists even on freestanding compilers. */
17939 # include <limits.h>
17941 # include <assert.h>
17943 /* Override any gcc2 internal prototype to avoid an error. */
17948 /* We use char because int might match the return type of a gcc2
17949 builtin and then its argument prototype would still apply. */
17951 /* The GNU C library defines this for functions which it implements
17952 to always fail with ENOSYS. Some functions are actually named
17953 something starting with __ and the normal name is an alias. */
17954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17957 char (*f) () = $ac_func;
17966 return f != $ac_func;
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 eval "$as_ac_var=yes"
17985 echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.$ac_ext >&5
17988 eval "$as_ac_var=no"
17990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17993 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17994 if test `eval echo '${'$as_ac_var'}'` = yes; then
17995 cat >>confdefs.h <<_ACEOF
17996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18003 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
18004 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
18005 if test "${ac_cv_func_closedir_void+set}" = set; then
18006 echo $ECHO_N "(cached) $ECHO_C" >&6
18008 if test "$cross_compiling" = yes; then
18009 ac_cv_func_closedir_void=yes
18011 cat >conftest.$ac_ext <<_ACEOF
18012 #line $LINENO "configure"
18015 cat confdefs.h >>conftest.$ac_ext
18016 cat >>conftest.$ac_ext <<_ACEOF
18017 /* end confdefs.h. */
18018 $ac_includes_default
18019 #include <$ac_header_dirent>
18020 #ifndef __cplusplus
18027 exit (closedir (opendir (".")) != 0);
18032 rm -f conftest$ac_exeext
18033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18034 (eval $ac_link) 2>&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18039 (eval $ac_try) 2>&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; }; then
18043 ac_cv_func_closedir_void=no
18045 echo "$as_me: program exited with status $ac_status" >&5
18046 echo "$as_me: failed program was:" >&5
18047 sed 's/^/| /' conftest.$ac_ext >&5
18049 ( exit $ac_status )
18050 ac_cv_func_closedir_void=yes
18052 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18055 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
18056 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
18057 if test $ac_cv_func_closedir_void = yes; then
18059 cat >>confdefs.h <<\_ACEOF
18060 #define CLOSEDIR_VOID 1
18065 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18066 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18067 if test "${ac_cv_func_setpgrp_void+set}" = set; then
18068 echo $ECHO_N "(cached) $ECHO_C" >&6
18070 if test "$cross_compiling" = yes; then
18071 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18072 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18073 { (exit 1); exit 1; }; }
18075 cat >conftest.$ac_ext <<_ACEOF
18076 #line $LINENO "configure"
18079 cat confdefs.h >>conftest.$ac_ext
18080 cat >>conftest.$ac_ext <<_ACEOF
18081 /* end confdefs.h. */
18083 # include <unistd.h>
18089 /* If this system has a BSD-style setpgrp which takes arguments,
18090 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18091 exit successfully. */
18092 exit (setpgrp (1,1) == -1 ? 0 : 1);
18097 rm -f conftest$ac_exeext
18098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18099 (eval $ac_link) 2>&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104 (eval $ac_try) 2>&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); }; }; then
18108 ac_cv_func_setpgrp_void=no
18110 echo "$as_me: program exited with status $ac_status" >&5
18111 echo "$as_me: failed program was:" >&5
18112 sed 's/^/| /' conftest.$ac_ext >&5
18114 ( exit $ac_status )
18115 ac_cv_func_setpgrp_void=yes
18117 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18120 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18121 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18122 if test $ac_cv_func_setpgrp_void = yes; then
18124 cat >>confdefs.h <<\_ACEOF
18125 #define SETPGRP_VOID 1
18129 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
18130 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
18131 if test "${ac_cv_func_fnmatch_works+set}" = set; then
18132 echo $ECHO_N "(cached) $ECHO_C" >&6
18134 # Some versions of Solaris, SCO, and the GNU C Library
18135 # have a broken or incompatible fnmatch.
18136 # So we run a test program. If we are cross-compiling, take no chance.
18137 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
18138 if test "$cross_compiling" = yes; then
18139 ac_cv_func_fnmatch_works=cross
18141 cat >conftest.$ac_ext <<_ACEOF
18142 #line $LINENO "configure"
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h. */
18148 #include <fnmatch.h>
18149 # define y(a, b, c) (fnmatch (a, b, c) == 0)
18150 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
18156 (!(y ("a*", "abc", 0)
18157 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
18158 && y ("a\\\\bc", "abc", 0)
18159 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
18160 && y ("*x", ".x", 0)
18161 && n ("*x", ".x", FNM_PERIOD)
18167 rm -f conftest$ac_exeext
18168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18169 (eval $ac_link) 2>&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174 (eval $ac_try) 2>&5
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; }; then
18178 ac_cv_func_fnmatch_works=yes
18180 echo "$as_me: program exited with status $ac_status" >&5
18181 echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18184 ( exit $ac_status )
18185 ac_cv_func_fnmatch_works=no
18187 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18190 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
18191 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
18192 if test $ac_cv_func_fnmatch_works = yes; then
18194 cat >>confdefs.h <<\_ACEOF
18195 #define HAVE_FNMATCH 1
18204 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
18205 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
18206 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18209 ac_check_lib_save_LIBS=$LIBS
18210 LIBS="-lxpg4 $LIBS"
18211 cat >conftest.$ac_ext <<_ACEOF
18212 #line $LINENO "configure"
18215 cat confdefs.h >>conftest.$ac_ext
18216 cat >>conftest.$ac_ext <<_ACEOF
18217 /* end confdefs.h. */
18219 /* Override any gcc2 internal prototype to avoid an error. */
18223 /* We use char because int might match the return type of a gcc2
18224 builtin and then its argument prototype would still apply. */
18234 rm -f conftest.$ac_objext conftest$ac_exeext
18235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18236 (eval $ac_link) 2>&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); } &&
18240 { ac_try='test -s conftest$ac_exeext'
18241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18242 (eval $ac_try) 2>&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; }; then
18246 ac_cv_lib_xpg4_setlocale=yes
18248 echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18251 ac_cv_lib_xpg4_setlocale=no
18253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18254 LIBS=$ac_check_lib_save_LIBS
18256 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
18257 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
18258 if test $ac_cv_lib_xpg4_setlocale = yes; then
18259 LIBS="$LIBS -lxpg4"
18265 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
18266 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
18267 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
18268 echo $ECHO_N "(cached) $ECHO_C" >&6
18270 ac_check_lib_save_LIBS=$LIBS
18272 cat >conftest.$ac_ext <<_ACEOF
18273 #line $LINENO "configure"
18276 cat confdefs.h >>conftest.$ac_ext
18277 cat >>conftest.$ac_ext <<_ACEOF
18278 /* end confdefs.h. */
18280 /* Override any gcc2 internal prototype to avoid an error. */
18284 /* We use char because int might match the return type of a gcc2
18285 builtin and then its argument prototype would still apply. */
18295 rm -f conftest.$ac_objext conftest$ac_exeext
18296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18297 (eval $ac_link) 2>&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); } &&
18301 { ac_try='test -s conftest$ac_exeext'
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307 ac_cv_lib_sun_getpwnam=yes
18309 echo "$as_me: failed program was:" >&5
18310 sed 's/^/| /' conftest.$ac_ext >&5
18312 ac_cv_lib_sun_getpwnam=no
18314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18315 LIBS=$ac_check_lib_save_LIBS
18317 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
18318 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
18319 if test $ac_cv_lib_sun_getpwnam = yes; then
18320 cat >>confdefs.h <<_ACEOF
18321 #define HAVE_LIBSUN 1
18330 for ac_header in zlib.h
18332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18334 echo "$as_me:$LINENO: checking for $ac_header" >&5
18335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18337 echo $ECHO_N "(cached) $ECHO_C" >&6
18339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18342 # Is the header compilable?
18343 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18345 cat >conftest.$ac_ext <<_ACEOF
18346 #line $LINENO "configure"
18349 cat confdefs.h >>conftest.$ac_ext
18350 cat >>conftest.$ac_ext <<_ACEOF
18351 /* end confdefs.h. */
18352 $ac_includes_default
18353 #include <$ac_header>
18355 rm -f conftest.$ac_objext
18356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18357 (eval $ac_compile) 2>&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } &&
18361 { ac_try='test -s conftest.$ac_objext'
18362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363 (eval $ac_try) 2>&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; }; then
18367 ac_header_compiler=yes
18369 echo "$as_me: failed program was:" >&5
18370 sed 's/^/| /' conftest.$ac_ext >&5
18372 ac_header_compiler=no
18374 rm -f conftest.$ac_objext conftest.$ac_ext
18375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18376 echo "${ECHO_T}$ac_header_compiler" >&6
18378 # Is the header present?
18379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18381 cat >conftest.$ac_ext <<_ACEOF
18382 #line $LINENO "configure"
18385 cat confdefs.h >>conftest.$ac_ext
18386 cat >>conftest.$ac_ext <<_ACEOF
18387 /* end confdefs.h. */
18388 #include <$ac_header>
18390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18393 grep -v '^ *+' conftest.er1 >conftest.err
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } >/dev/null; then
18398 if test -s conftest.err; then
18399 ac_cpp_err=$ac_c_preproc_warn_flag
18406 if test -z "$ac_cpp_err"; then
18407 ac_header_preproc=yes
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18412 ac_header_preproc=no
18414 rm -f conftest.err conftest.$ac_ext
18415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18416 echo "${ECHO_T}$ac_header_preproc" >&6
18418 # So? What about this header?
18419 case $ac_header_compiler:$ac_header_preproc in
18421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18427 ## ------------------------------------ ##
18428 ## Report this to bug-autoconf@gnu.org. ##
18429 ## ------------------------------------ ##
18432 sed "s/^/$as_me: WARNING: /" >&2
18435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18443 ## ------------------------------------ ##
18444 ## Report this to bug-autoconf@gnu.org. ##
18445 ## ------------------------------------ ##
18448 sed "s/^/$as_me: WARNING: /" >&2
18451 echo "$as_me:$LINENO: checking for $ac_header" >&5
18452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18454 echo $ECHO_N "(cached) $ECHO_C" >&6
18456 eval "$as_ac_Header=$ac_header_preproc"
18458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18463 cat >>confdefs.h <<_ACEOF
18464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18471 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18472 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18473 if test "${ac_cv_lib_z_deflate+set}" = set; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18476 ac_check_lib_save_LIBS=$LIBS
18478 cat >conftest.$ac_ext <<_ACEOF
18479 #line $LINENO "configure"
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h. */
18486 /* Override any gcc2 internal prototype to avoid an error. */
18490 /* We use char because int might match the return type of a gcc2
18491 builtin and then its argument prototype would still apply. */
18501 rm -f conftest.$ac_objext conftest$ac_exeext
18502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18503 (eval $ac_link) 2>&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); } &&
18507 { ac_try='test -s conftest$ac_exeext'
18508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18509 (eval $ac_try) 2>&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); }; }; then
18513 ac_cv_lib_z_deflate=yes
18515 echo "$as_me: failed program was:" >&5
18516 sed 's/^/| /' conftest.$ac_ext >&5
18518 ac_cv_lib_z_deflate=no
18520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18521 LIBS=$ac_check_lib_save_LIBS
18523 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18524 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18525 if test $ac_cv_lib_z_deflate = yes; then
18530 if test x$FDLIBS = x-lz; then
18531 cat >>confdefs.h <<\_ACEOF
18532 #define HAVE_LIBZ 1
18538 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18539 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18540 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18541 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18542 echo $ECHO_N "(cached) $ECHO_C" >&6
18544 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18545 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18547 # Is the header compilable?
18548 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18549 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18550 cat >conftest.$ac_ext <<_ACEOF
18551 #line $LINENO "configure"
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h. */
18557 $ac_includes_default
18558 #include <sys/acl.h>
18560 rm -f conftest.$ac_objext
18561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18562 (eval $ac_compile) 2>&5
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } &&
18566 { ac_try='test -s conftest.$ac_objext'
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; }; then
18572 ac_header_compiler=yes
18574 echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.$ac_ext >&5
18577 ac_header_compiler=no
18579 rm -f conftest.$ac_objext conftest.$ac_ext
18580 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18581 echo "${ECHO_T}$ac_header_compiler" >&6
18583 # Is the header present?
18584 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18585 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18586 cat >conftest.$ac_ext <<_ACEOF
18587 #line $LINENO "configure"
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h. */
18593 #include <sys/acl.h>
18595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18598 grep -v '^ *+' conftest.er1 >conftest.err
18600 cat conftest.err >&5
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); } >/dev/null; then
18603 if test -s conftest.err; then
18604 ac_cpp_err=$ac_c_preproc_warn_flag
18611 if test -z "$ac_cpp_err"; then
18612 ac_header_preproc=yes
18614 echo "$as_me: failed program was:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18617 ac_header_preproc=no
18619 rm -f conftest.err conftest.$ac_ext
18620 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18621 echo "${ECHO_T}$ac_header_preproc" >&6
18623 # So? What about this header?
18624 case $ac_header_compiler:$ac_header_preproc in
18626 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18627 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18628 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18629 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18632 ## ------------------------------------ ##
18633 ## Report this to bug-autoconf@gnu.org. ##
18634 ## ------------------------------------ ##
18637 sed "s/^/$as_me: WARNING: /" >&2
18640 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18641 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18642 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18643 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18644 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18645 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18648 ## ------------------------------------ ##
18649 ## Report this to bug-autoconf@gnu.org. ##
18650 ## ------------------------------------ ##
18653 sed "s/^/$as_me: WARNING: /" >&2
18656 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18657 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18658 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18659 echo $ECHO_N "(cached) $ECHO_C" >&6
18661 ac_cv_header_sys_acl_h=$ac_header_preproc
18663 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18664 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18669 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18670 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18671 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18672 echo $ECHO_N "(cached) $ECHO_C" >&6
18674 ac_check_lib_save_LIBS=$LIBS
18676 cat >conftest.$ac_ext <<_ACEOF
18677 #line $LINENO "configure"
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18684 /* Override any gcc2 internal prototype to avoid an error. */
18688 /* We use char because int might match the return type of a gcc2
18689 builtin and then its argument prototype would still apply. */
18690 char acl_get_file ();
18699 rm -f conftest.$ac_objext conftest$ac_exeext
18700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18701 (eval $ac_link) 2>&5
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); } &&
18705 { ac_try='test -s conftest$ac_exeext'
18706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18707 (eval $ac_try) 2>&5
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); }; }; then
18711 ac_cv_lib_acl_acl_get_file=yes
18713 echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18716 ac_cv_lib_acl_acl_get_file=no
18718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18719 LIBS=$ac_check_lib_save_LIBS
18721 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18722 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18723 if test $ac_cv_lib_acl_acl_get_file = yes; then
18724 FDLIBS="-lacl $FDLIBS"
18728 if test $ac_cv_lib_acl_acl_get_file = yes; then
18729 cat >>confdefs.h <<\_ACEOF
18737 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18738 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18739 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18740 echo $ECHO_N "(cached) $ECHO_C" >&6
18742 ac_check_lib_save_LIBS=$LIBS
18743 LIBS="-lpthread $LIBS"
18744 cat >conftest.$ac_ext <<_ACEOF
18745 #line $LINENO "configure"
18748 cat confdefs.h >>conftest.$ac_ext
18749 cat >>conftest.$ac_ext <<_ACEOF
18750 /* end confdefs.h. */
18752 /* Override any gcc2 internal prototype to avoid an error. */
18756 /* We use char because int might match the return type of a gcc2
18757 builtin and then its argument prototype would still apply. */
18758 char pthread_create ();
18767 rm -f conftest.$ac_objext conftest$ac_exeext
18768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18769 (eval $ac_link) 2>&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } &&
18773 { ac_try='test -s conftest$ac_exeext'
18774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775 (eval $ac_try) 2>&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; }; then
18779 ac_cv_lib_pthread_pthread_create=yes
18781 echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18784 ac_cv_lib_pthread_pthread_create=no
18786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18787 LIBS=$ac_check_lib_save_LIBS
18789 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18790 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18791 if test $ac_cv_lib_pthread_pthread_create = yes; then
18792 PTHREAD_LIB="-lpthread"
18794 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18795 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18796 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18799 ac_check_lib_save_LIBS=$LIBS
18800 LIBS="-lpthreads $LIBS"
18801 cat >conftest.$ac_ext <<_ACEOF
18802 #line $LINENO "configure"
18805 cat confdefs.h >>conftest.$ac_ext
18806 cat >>conftest.$ac_ext <<_ACEOF
18807 /* end confdefs.h. */
18809 /* Override any gcc2 internal prototype to avoid an error. */
18813 /* We use char because int might match the return type of a gcc2
18814 builtin and then its argument prototype would still apply. */
18815 char pthread_create ();
18824 rm -f conftest.$ac_objext conftest$ac_exeext
18825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18826 (eval $ac_link) 2>&5
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); } &&
18830 { ac_try='test -s conftest$ac_exeext'
18831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832 (eval $ac_try) 2>&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; }; then
18836 ac_cv_lib_pthreads_pthread_create=yes
18838 echo "$as_me: failed program was:" >&5
18839 sed 's/^/| /' conftest.$ac_ext >&5
18841 ac_cv_lib_pthreads_pthread_create=no
18843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18844 LIBS=$ac_check_lib_save_LIBS
18846 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18847 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18848 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18849 PTHREAD_LIB="-lpthreads"
18851 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18852 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18853 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18854 echo $ECHO_N "(cached) $ECHO_C" >&6
18856 ac_check_lib_save_LIBS=$LIBS
18858 cat >conftest.$ac_ext <<_ACEOF
18859 #line $LINENO "configure"
18862 cat confdefs.h >>conftest.$ac_ext
18863 cat >>conftest.$ac_ext <<_ACEOF
18864 /* end confdefs.h. */
18866 /* Override any gcc2 internal prototype to avoid an error. */
18870 /* We use char because int might match the return type of a gcc2
18871 builtin and then its argument prototype would still apply. */
18872 char pthread_create ();
18881 rm -f conftest.$ac_objext conftest$ac_exeext
18882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18883 (eval $ac_link) 2>&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } &&
18887 { ac_try='test -s conftest$ac_exeext'
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; }; then
18893 ac_cv_lib_c_r_pthread_create=yes
18895 echo "$as_me: failed program was:" >&5
18896 sed 's/^/| /' conftest.$ac_ext >&5
18898 ac_cv_lib_c_r_pthread_create=no
18900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18901 LIBS=$ac_check_lib_save_LIBS
18903 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18904 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18905 if test $ac_cv_lib_c_r_pthread_create = yes; then
18906 PTHREAD_LIB="-lc_r"
18908 echo "$as_me:$LINENO: checking for pthread_create" >&5
18909 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18910 if test "${ac_cv_func_pthread_create+set}" = set; then
18911 echo $ECHO_N "(cached) $ECHO_C" >&6
18913 cat >conftest.$ac_ext <<_ACEOF
18914 #line $LINENO "configure"
18917 cat confdefs.h >>conftest.$ac_ext
18918 cat >>conftest.$ac_ext <<_ACEOF
18919 /* end confdefs.h. */
18920 /* System header to define __stub macros and hopefully few prototypes,
18921 which can conflict with char pthread_create (); below.
18922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18923 <limits.h> exists even on freestanding compilers. */
18925 # include <limits.h>
18927 # include <assert.h>
18929 /* Override any gcc2 internal prototype to avoid an error. */
18934 /* We use char because int might match the return type of a gcc2
18935 builtin and then its argument prototype would still apply. */
18936 char pthread_create ();
18937 /* The GNU C library defines this for functions which it implements
18938 to always fail with ENOSYS. Some functions are actually named
18939 something starting with __ and the normal name is an alias. */
18940 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18943 char (*f) () = pthread_create;
18952 return f != pthread_create;
18957 rm -f conftest.$ac_objext conftest$ac_exeext
18958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18959 (eval $ac_link) 2>&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); } &&
18963 { ac_try='test -s conftest$ac_exeext'
18964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18965 (eval $ac_try) 2>&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); }; }; then
18969 ac_cv_func_pthread_create=yes
18971 echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18974 ac_cv_func_pthread_create=no
18976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18978 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18979 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18992 cat >>confdefs.h <<\_ACEOF
18998 CFLAGS=${CFLAGS--O}
18999 LDFLAGS=${LDFLAGS--O}
19000 DB_LIBS="${SQL_LFLAGS}"
19002 CPPFLAGS="$CPPFLAGS"
19027 # Finally we set appropriate distribution specific
19028 # variables and defaults
19030 # PFILES are platform specific files
19031 PFILES="platforms/Makefile"
19035 hostname=`uname -n | cut -d '.' -f 1`
19036 case "$DISTNAME" in
19039 PSCMD="ps -e -o pid,comm"
19040 PFILES="${PFILES} \
19041 platforms/aix/Makefile"
19042 TAPEDRIVE="/dev/rmt0.1"
19046 PTHREAD_LIB="-lpthread -lexc"
19047 if test "${CC}" = "gcc" ; then
19054 TAPEDRIVE="/dev/nrmt0"
19057 DISTVER=`uname -a |awk '{print $3}'`
19058 TAPEDRIVE="/dev/nrmt0"
19059 PTHREAD_LIB="-pthread"
19060 CFLAGS="${CFLAGS} -pthread"
19061 PSCMD="ps -x -o pid,command"
19064 PFILES="${PFILES} \
19065 platforms/bsdi/Makefile \
19066 platforms/bsdi/bacula-fd \
19067 platforms/bsdi/bacula-sd \
19068 platforms/bsdi/bacula-dir"
19069 largefile_support="yes"
19072 DISTVER=`uname -a |awk '{print $3}'`
19073 TAPEDRIVE="/dev/nrst0"
19075 WCFLAGS="-mwindows"
19076 WLDFLAGS="-mwindows"
19080 TAPEDRIVE="/dev/nst0"
19081 PSCMD="ps -e -o pid,command"
19083 PFILES="${PFILES} \
19084 platforms/darwin/Makefile"
19087 DISTVER=`cat /etc/debian_version`
19088 TAPEDRIVE="/dev/nrst0"
19089 PSCMD="ps -e -o pid,command"
19092 DISTVER=`uname -a |awk '{print $3}'`
19093 VER=`echo $DISTVER | cut -c 1`
19094 if test x$VER = x4 ; then
19095 PTHREAD_LIB="-pthread"
19096 CFLAGS="${CFLAGS} -pthread"
19100 TAPEDRIVE="/dev/nrsa0"
19101 PSCMD="ps -x -o pid,command"
19102 PFILES="${PFILES} \
19103 platforms/freebsd/Makefile \
19104 platforms/freebsd/bacula-fd \
19105 platforms/freebsd/bacula-sd \
19106 platforms/freebsd/bacula-dir"
19107 largefile_support="yes"
19110 PSCMD="UNIX95=1 ps -e -o pid,comm"
19111 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
19113 TAPEDRIVE="/dev/rmt/0hnb"
19117 TAPEDRIVE="/dev/rmt/0cbn"
19118 PSCMD="ps -e -o pid,comm"
19119 PFILES="${PFILES} \
19120 platforms/irix/Makefile \
19121 platforms/irix/bacula-fd \
19122 platforms/irix/bacula-sd \
19123 platforms/irix/bacula-dir"
19126 DISTVER=`uname -a |awk '{print $3}'`
19129 TAPEDRIVE="/dev/nrst0"
19130 PSCMD="ps -a -o pid,command"
19131 PTHREAD_LIB="-pthread"
19132 CFLAGS="${CFLAGS} -pthread"
19135 DISTVER=`uname -a |awk '{print $3}'`
19138 TAPEDRIVE="/dev/nrst0"
19139 PSCMD="ps -ax -o pid,command"
19140 PTHREAD_LIB="-pthread"
19141 CFLAGS="${CFLAGS} -pthread"
19142 PFILES="${PFILES} \
19143 platforms/openbsd/Makefile \
19144 platforms/openbsd/bacula-fd \
19145 platforms/openbsd/bacula-sd \
19146 platforms/openbsd/bacula-dir"
19149 if test -f /etc/whitebox-release ; then
19150 f=/etc/whitebox-release
19152 f=/etc/redhat-release
19154 if test `cat $f | grep release |\
19155 cut -f 3 -d ' '`x = "Enterprise"x ; then
19156 DISTVER="Enterprise "`cat $f | grep release |\
19159 DISTVER=`cat /etc/redhat-release | grep release |\
19162 TAPEDRIVE="/dev/nst0"
19163 PSCMD="ps -e -o pid,command"
19164 PFILES="${PFILES} \
19165 platforms/redhat/Makefile \
19166 platforms/redhat/bacula-fd \
19167 platforms/redhat/bacula-sd \
19168 platforms/redhat/bacula-dir \
19169 platforms/redhat/bacula.spec \
19171 hostname=`hostname -s`
19174 DISTVER=`cat /etc/mandrake-release | grep release |\
19176 TAPEDRIVE="/dev/nst0"
19177 PSCMD="ps -e -o pid,command"
19178 PFILES="${PFILES} \
19179 platforms/mandrake/Makefile \
19180 platforms/mandrake/bacula-fd \
19181 platforms/mandrake/bacula-sd \
19182 platforms/mandrake/bacula-dir \
19183 platforms/mandrake/bacula.spec \
19187 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
19188 TAPEDRIVE="/dev/nst0"
19189 PSCMD="ps -e -o pid,command"
19190 PFILES="${PFILES} \
19191 platforms/gentoo/Makefile \
19192 platforms/gentoo/bacula-init \
19193 platforms/gentoo/bacula-fd \
19194 platforms/gentoo/bacula-sd \
19195 platforms/gentoo/bacula-dir"
19198 DISTVER=`cat /etc/slackware-version`
19199 TAPEDRIVE="/dev/nst0"
19200 PSCMD="ps -e -o pid,command"
19201 PFILES="${PFILES} \
19202 platforms/slackware/Makefile \
19203 platforms/slackware/rc.bacula-fd \
19204 platforms/slackware/rc.bacula-sd \
19205 platforms/slackware/rc.bacula-dir\
19206 platforms/slackware/functions.bacula"
19210 TAPEDRIVE="/dev/rmt/0cbn"
19211 PSCMD="ps -e -o pid,comm"
19212 PFILES="${PFILES} \
19213 platforms/solaris/Makefile \
19214 platforms/solaris/bacula-fd \
19215 platforms/solaris/bacula-sd \
19216 platforms/solaris/bacula-dir"
19217 if test x$DISTVER = x5.6 ; then
19218 cat >>confdefs.h <<\_ACEOF
19219 #define HAVE_OLD_SOCKOPT 1
19225 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
19227 TAPEDRIVE="/dev/nst0"
19228 PSCMD="ps -e -o pid,command"
19229 PFILES="${PFILES} \
19230 platforms/suse/Makefile \
19231 platforms/suse/bacula-fd \
19232 platforms/suse/bacula-sd \
19233 platforms/suse/bacula-dir \
19234 platforms/suse/bacula \
19235 platforms/suse/bacula.spec"
19240 TAPEDRIVE="/dev/nst0"
19241 PSCMD="ps -e -o pid,command"
19242 PFILES="${PFILES} \
19243 platforms/suse/Makefile \
19244 platforms/suse/bacula-fd \
19245 platforms/suse/bacula-sd \
19246 platforms/suse/bacula-dir"
19250 TAPEDRIVE="/dev/nst0"
19253 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
19259 LIBS="$PTHREAD_LIB $LIBS"
19261 cat >>confdefs.h <<_ACEOF
19265 cat >>confdefs.h <<_ACEOF
19276 MCOMMON=./autoconf/Make.common
19279 if test "x${subsysdir}" = "x${sbindir}" ; then
19282 echo "You have set both --sbindir and --with-subsys-dir"
19283 echo " equal to: ${subsysdir} "
19284 echo "This is not permitted. Please reconfigure."
19286 echo "Aborting configuration ..."
19292 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/linux/cdrom/bacula/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/bacula-tray-monitor.desktop doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile src/bimagemgr/Makefile src/bimagemgr/bacula-bimagemgr.spec $PFILES"
19293 ac_config_commands="$ac_config_commands default"
19294 cat >confcache <<\_ACEOF
19295 # This file is a shell script that caches the results of configure
19296 # tests run on this system so they can be shared between configure
19297 # scripts and configure runs, see configure's option --config-cache.
19298 # It is not useful on other systems. If it contains results you don't
19299 # want to keep, you may remove or edit it.
19301 # config.status only pays attention to the cache file if you give it
19302 # the --recheck option to rerun configure.
19304 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19305 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19306 # following values.
19310 # The following way of writing the cache mishandles newlines in values,
19311 # but we know of no workaround that is simple, portable, and efficient.
19312 # So, don't put newlines in cache variables' values.
19313 # Ultrix sh set writes to stderr and can't be redirected directly,
19314 # and sets the high bit in the cache file unless we assign to the vars.
19317 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19319 # `set' does not quote correctly, so add quotes (double-quote
19320 # substitution turns \\\\ into \\, and sed turns \\ into \).
19323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19326 # `set' quotes correctly as required by POSIX, so do not add quotes.
19328 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19335 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19337 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19339 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19340 if test -w $cache_file; then
19341 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19342 cat confcache >$cache_file
19344 echo "not updating unwritable cache $cache_file"
19349 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19350 # Let make expand exec_prefix.
19351 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19353 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19354 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19355 # trailing colons and then remove the whole line if VPATH becomes empty
19356 # (actually we leave an empty line to preserve line numbers).
19357 if test "x$srcdir" = x.; then
19358 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19359 s/:*\$(srcdir):*/:/;
19360 s/:*\${srcdir}:*/:/;
19362 s/^\([^=]*=[ ]*\):*/\1/;
19368 DEFS=-DHAVE_CONFIG_H
19372 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19373 # 1. Remove the extension, and $U if already installed.
19374 ac_i=`echo "$ac_i" |
19375 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19377 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19378 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19380 LIBOBJS=$ac_libobjs
19382 LTLIBOBJS=$ac_ltlibobjs
19386 : ${CONFIG_STATUS=./config.status}
19387 ac_clean_files_save=$ac_clean_files
19388 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19389 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19390 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19391 cat >$CONFIG_STATUS <<_ACEOF
19393 # Generated by $as_me.
19394 # Run this file to recreate the current configuration.
19395 # Compiler output produced by configure, useful for debugging
19396 # configure, is in config.log if it exists.
19399 ac_cs_recheck=false
19401 SHELL=\${CONFIG_SHELL-$SHELL}
19404 cat >>$CONFIG_STATUS <<\_ACEOF
19405 ## --------------------- ##
19406 ## M4sh Initialization. ##
19407 ## --------------------- ##
19409 # Be Bourne compatible
19410 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19413 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19414 # is contrary to our usage. Disable this feature.
19415 alias -g '${1+"$@"}'='"$@"'
19416 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19420 # Support unset when possible.
19421 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19428 # Work around bugs in pre-3.0 UWIN ksh.
19429 $as_unset ENV MAIL MAILPATH
19436 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19437 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19438 LC_TELEPHONE LC_TIME
19440 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19441 eval $as_var=C; export $as_var
19447 # Required to use basename.
19448 if expr a : '\(a\)' >/dev/null 2>&1; then
19454 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19455 as_basename=basename
19461 # Name of the executable.
19462 as_me=`$as_basename "$0" ||
19463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19464 X"$0" : 'X\(//\)$' \| \
19465 X"$0" : 'X\(/\)$' \| \
19466 . : '\(.\)' 2>/dev/null ||
19468 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19469 /^X\/\(\/\/\)$/{ s//\1/; q; }
19470 /^X\/\(\/\).*/{ s//\1/; q; }
19474 # PATH needs CR, and LINENO needs CR and PATH.
19475 # Avoid depending upon Character Ranges.
19476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19479 as_cr_digits='0123456789'
19480 as_cr_alnum=$as_cr_Letters$as_cr_digits
19482 # The user is always right.
19483 if test "${PATH_SEPARATOR+set}" != set; then
19484 echo "#! /bin/sh" >conf$$.sh
19485 echo "exit 0" >>conf$$.sh
19487 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19496 as_lineno_1=$LINENO
19497 as_lineno_2=$LINENO
19498 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19499 test "x$as_lineno_1" != "x$as_lineno_2" &&
19500 test "x$as_lineno_3" = "x$as_lineno_2" || {
19501 # Find who we are. Look in the path if we contain no path at all
19504 *[\\/]* ) as_myself=$0 ;;
19505 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19506 for as_dir in $PATH
19509 test -z "$as_dir" && as_dir=.
19510 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19515 # We did not find ourselves, most probably we were run as `sh COMMAND'
19516 # in which case we are not to be found in the path.
19517 if test "x$as_myself" = x; then
19520 if test ! -f "$as_myself"; then
19521 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19522 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19523 { (exit 1); exit 1; }; }
19525 case $CONFIG_SHELL in
19527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19528 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19531 test -z "$as_dir" && as_dir=.
19532 for as_base in sh bash ksh sh5; do
19535 if ("$as_dir/$as_base" -c '
19536 as_lineno_1=$LINENO
19537 as_lineno_2=$LINENO
19538 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19539 test "x$as_lineno_1" != "x$as_lineno_2" &&
19540 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19541 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19542 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19543 CONFIG_SHELL=$as_dir/$as_base
19544 export CONFIG_SHELL
19545 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19553 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19554 # uniformly replaced by the line number. The first 'sed' inserts a
19555 # line-number line before each line; the second 'sed' does the real
19556 # work. The second script uses 'N' to pair each line-number line
19557 # with the numbered line, and appends trailing '-' during
19558 # substitution so that $LINENO is not a special case at line end.
19559 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19560 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19561 sed '=' <$as_myself |
19566 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19569 s,^['$as_cr_digits']*\n,,
19570 ' >$as_me.lineno &&
19571 chmod +x $as_me.lineno ||
19572 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19573 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19574 { (exit 1); exit 1; }; }
19576 # Don't try to exec as it changes $[0], causing all sort of problems
19577 # (the dirname of $[0] is not the place where we might find the
19578 # original and so on. Autoconf is especially sensible to this).
19580 # Exit status is that of the last command.
19585 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19586 *c*,-n*) ECHO_N= ECHO_C='
19588 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19589 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19592 if expr a : '\(a\)' >/dev/null 2>&1; then
19598 rm -f conf$$ conf$$.exe conf$$.file
19600 if ln -s conf$$.file conf$$ 2>/dev/null; then
19601 # We could just check for DJGPP; but this test a) works b) is more generic
19602 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19603 if test -f conf$$.exe; then
19604 # Don't use ln at all; we don't have any links
19609 elif ln conf$$.file conf$$ 2>/dev/null; then
19614 rm -f conf$$ conf$$.exe conf$$.file
19616 if mkdir -p . 2>/dev/null; then
19622 as_executable_p="test -f"
19624 # Sed expression to map a string onto a valid CPP name.
19625 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19627 # Sed expression to map a string onto a valid variable name.
19628 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19632 # We need space, tab and new line, in precisely that order.
19642 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19643 # report actual input values of CONFIG_FILES etc. instead of their
19644 # values after options handling. Logging --version etc. is OK.
19648 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19649 ## Running $as_me. ##
19654 This file was extended by $as_me, which was
19655 generated by GNU Autoconf 2.57. Invocation command line was
19657 CONFIG_FILES = $CONFIG_FILES
19658 CONFIG_HEADERS = $CONFIG_HEADERS
19659 CONFIG_LINKS = $CONFIG_LINKS
19660 CONFIG_COMMANDS = $CONFIG_COMMANDS
19664 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19668 # Files that config.status was made for.
19669 if test -n "$ac_config_files"; then
19670 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19673 if test -n "$ac_config_headers"; then
19674 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19677 if test -n "$ac_config_links"; then
19678 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19681 if test -n "$ac_config_commands"; then
19682 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19685 cat >>$CONFIG_STATUS <<\_ACEOF
19688 \`$as_me' instantiates files from templates according to the
19689 current configuration.
19691 Usage: $0 [OPTIONS] [FILE]...
19693 -h, --help print this help, then exit
19694 -V, --version print version number, then exit
19695 -q, --quiet do not print progress messages
19696 -d, --debug don't remove temporary files
19697 --recheck update $as_me by reconfiguring in the same conditions
19698 --file=FILE[:TEMPLATE]
19699 instantiate the configuration file FILE
19700 --header=FILE[:TEMPLATE]
19701 instantiate the configuration header FILE
19703 Configuration files:
19706 Configuration headers:
19709 Configuration commands:
19712 Report bugs to <bug-autoconf@gnu.org>."
19715 cat >>$CONFIG_STATUS <<_ACEOF
19718 configured by $0, generated by GNU Autoconf 2.57,
19719 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19721 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19722 Free Software Foundation, Inc.
19723 This config.status script is free software; the Free Software Foundation
19724 gives unlimited permission to copy, distribute and modify it."
19729 cat >>$CONFIG_STATUS <<\_ACEOF
19730 # If no file are specified by the user, then we need to provide default
19731 # value. By we need to know if files were specified by the user.
19737 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19738 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19746 *) # This is not an option, so the user has probably given explicit
19749 ac_need_defaults=false;;
19753 # Handling of the options.
19755 cat >>$CONFIG_STATUS <<\_ACEOF
19756 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19758 --version | --vers* | -V )
19759 echo "$ac_cs_version"; exit 0 ;;
19761 # Conflict between --help and --header
19762 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19763 Try \`$0 --help' for more information." >&5
19764 echo "$as_me: error: ambiguous option: $1
19765 Try \`$0 --help' for more information." >&2;}
19766 { (exit 1); exit 1; }; };;
19767 --help | --hel | -h )
19768 echo "$ac_cs_usage"; exit 0 ;;
19769 --debug | --d* | -d )
19771 --file | --fil | --fi | --f )
19773 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19774 ac_need_defaults=false;;
19775 --header | --heade | --head | --hea )
19777 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19778 ac_need_defaults=false;;
19779 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19780 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19783 # This is an error.
19784 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19785 Try \`$0 --help' for more information." >&5
19786 echo "$as_me: error: unrecognized option: $1
19787 Try \`$0 --help' for more information." >&2;}
19788 { (exit 1); exit 1; }; } ;;
19790 *) ac_config_targets="$ac_config_targets $1" ;;
19796 ac_configure_extra_args=
19798 if $ac_cs_silent; then
19800 ac_configure_extra_args="$ac_configure_extra_args --silent"
19804 cat >>$CONFIG_STATUS <<_ACEOF
19805 if \$ac_cs_recheck; then
19806 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19807 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19816 cat >>$CONFIG_STATUS <<\_ACEOF
19817 for ac_config_target in $ac_config_targets
19819 case "$ac_config_target" in
19820 # Handling of arguments.
19821 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19822 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19823 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19824 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19825 "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
19826 "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
19827 "rescue/linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/bacula/Makefile" ;;
19828 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19829 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19830 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19831 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19832 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19833 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19834 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19835 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19836 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19837 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19838 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19839 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19840 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19841 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19842 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19843 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19844 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19845 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19846 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19847 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19848 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19849 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
19850 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19851 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19852 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19853 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19854 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19855 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19856 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19857 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19858 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19859 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19860 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19861 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19862 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19863 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19864 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19865 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19866 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19867 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19868 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19869 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19870 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19871 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19872 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19873 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19874 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19875 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19876 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19877 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19878 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19879 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19880 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19881 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19882 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19883 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19884 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19885 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19886 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19887 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19888 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19889 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19890 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19891 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19892 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19893 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19894 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19895 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19896 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19897 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19898 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19899 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19900 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19901 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19902 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19903 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19904 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19905 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19906 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19907 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19908 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19909 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19910 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19911 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19912 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19913 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
19914 "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
19915 "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
19916 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19917 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19918 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19919 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19920 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19921 { (exit 1); exit 1; }; };;
19925 # If the user did not use the arguments to specify the items to instantiate,
19926 # then the envvar interface is used. Set only those that are not.
19927 # We use the long form for the default assignment because of an extremely
19928 # bizarre bug on SunOS 4.1.3.
19929 if $ac_need_defaults; then
19930 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19931 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19932 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19935 # Have a temporary directory for convenience. Make it in the build tree
19936 # simply because there is no reason to put it here, and in addition,
19937 # creating and moving files from /tmp can sometimes cause problems.
19938 # Create a temporary directory, and hook for its removal unless debugging.
19941 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19942 trap '{ (exit 1); exit 1; }' 1 2 13 15
19945 # Create a (secure) tmp directory for tmp files.
19948 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19949 test -n "$tmp" && test -d "$tmp"
19952 tmp=./confstat$$-$RANDOM
19953 (umask 077 && mkdir $tmp)
19956 echo "$me: cannot create a temporary directory in ." >&2
19957 { (exit 1); exit 1; }
19962 cat >>$CONFIG_STATUS <<_ACEOF
19965 # CONFIG_FILES section.
19968 # No need to generate the scripts if there are no CONFIG_FILES.
19969 # This happens for instance when ./config.status config.h
19970 if test -n "\$CONFIG_FILES"; then
19971 # Protect against being on the right side of a sed subst in config.status.
19972 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19973 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19974 s,@SHELL@,$SHELL,;t t
19975 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19976 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19977 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19978 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19979 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19980 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19981 s,@exec_prefix@,$exec_prefix,;t t
19982 s,@prefix@,$prefix,;t t
19983 s,@program_transform_name@,$program_transform_name,;t t
19984 s,@bindir@,$bindir,;t t
19985 s,@sbindir@,$sbindir,;t t
19986 s,@libexecdir@,$libexecdir,;t t
19987 s,@datadir@,$datadir,;t t
19988 s,@sysconfdir@,$sysconfdir,;t t
19989 s,@sharedstatedir@,$sharedstatedir,;t t
19990 s,@localstatedir@,$localstatedir,;t t
19991 s,@libdir@,$libdir,;t t
19992 s,@includedir@,$includedir,;t t
19993 s,@oldincludedir@,$oldincludedir,;t t
19994 s,@infodir@,$infodir,;t t
19995 s,@mandir@,$mandir,;t t
19996 s,@build_alias@,$build_alias,;t t
19997 s,@host_alias@,$host_alias,;t t
19998 s,@target_alias@,$target_alias,;t t
19999 s,@DEFS@,$DEFS,;t t
20000 s,@ECHO_C@,$ECHO_C,;t t
20001 s,@ECHO_N@,$ECHO_N,;t t
20002 s,@ECHO_T@,$ECHO_T,;t t
20003 s,@LIBS@,$LIBS,;t t
20004 s,@BUILD_DIR@,$BUILD_DIR,;t t
20005 s,@TRUEPRG@,$TRUEPRG,;t t
20006 s,@FALSEPRG@,$FALSEPRG,;t t
20007 s,@VERSION@,$VERSION,;t t
20008 s,@DATE@,$DATE,;t t
20009 s,@LSMDATE@,$LSMDATE,;t t
20011 s,@CFLAGS@,$CFLAGS,;t t
20012 s,@LDFLAGS@,$LDFLAGS,;t t
20013 s,@CPPFLAGS@,$CPPFLAGS,;t t
20014 s,@ac_ct_CC@,$ac_ct_CC,;t t
20015 s,@EXEEXT@,$EXEEXT,;t t
20016 s,@OBJEXT@,$OBJEXT,;t t
20018 s,@CXXFLAGS@,$CXXFLAGS,;t t
20019 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20021 s,@EGREP@,$EGREP,;t t
20022 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20023 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20024 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20025 s,@RANLIB@,$RANLIB,;t t
20026 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20032 s,@ECHO@,$ECHO,;t t
20036 s,@OPENSSL@,$OPENSSL,;t t
20038 s,@PKGCONFIG@,$PKGCONFIG,;t t
20039 s,@WXCONFIG@,$WXCONFIG,;t t
20040 s,@CDRECORD@,$CDRECORD,;t t
20041 s,@ARFLAGS@,$ARFLAGS,;t t
20042 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
20043 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
20044 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
20045 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
20046 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
20047 s,@build@,$build,;t t
20048 s,@build_cpu@,$build_cpu,;t t
20049 s,@build_vendor@,$build_vendor,;t t
20050 s,@build_os@,$build_os,;t t
20051 s,@host@,$host,;t t
20052 s,@host_cpu@,$host_cpu,;t t
20053 s,@host_vendor@,$host_vendor,;t t
20054 s,@host_os@,$host_os,;t t
20055 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
20056 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
20057 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
20058 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
20059 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
20060 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
20061 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
20062 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
20063 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
20064 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
20065 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
20066 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
20067 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
20068 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
20069 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
20070 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
20071 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
20072 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
20073 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
20074 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
20075 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
20076 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
20077 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
20078 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
20079 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
20080 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
20081 s,@MSGFMT@,$MSGFMT,;t t
20082 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
20083 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
20084 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
20085 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
20086 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
20087 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
20088 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
20089 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
20090 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
20091 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
20092 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
20093 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
20094 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
20095 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
20096 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
20097 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
20098 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
20099 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
20100 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
20101 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
20102 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
20103 s,@GNOME_DIR@,$GNOME_DIR,;t t
20104 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
20105 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
20106 s,@WX_DIR@,$WX_DIR,;t t
20107 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
20108 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
20109 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
20110 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
20111 s,@STATIC_FD@,$STATIC_FD,;t t
20112 s,@STATIC_SD@,$STATIC_SD,;t t
20113 s,@STATIC_DIR@,$STATIC_DIR,;t t
20114 s,@STATIC_CONS@,$STATIC_CONS,;t t
20115 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
20116 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
20117 s,@ALL_DIRS@,$ALL_DIRS,;t t
20118 s,@CONS_INC@,$CONS_INC,;t t
20119 s,@CONS_OBJ@,$CONS_OBJ,;t t
20120 s,@CONS_SRC@,$CONS_SRC,;t t
20121 s,@CONS_LIBS@,$CONS_LIBS,;t t
20122 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
20123 s,@READLINE_SRC@,$READLINE_SRC,;t t
20124 s,@CDSTL@,$CDSTL,;t t
20125 s,@working_dir@,$working_dir,;t t
20126 s,@scriptdir@,$scriptdir,;t t
20127 s,@dump_email@,$dump_email,;t t
20128 s,@job_email@,$job_email,;t t
20129 s,@smtp_host@,$smtp_host,;t t
20130 s,@piddir@,$piddir,;t t
20131 s,@subsysdir@,$subsysdir,;t t
20132 s,@baseport@,$baseport,;t t
20133 s,@dir_port@,$dir_port,;t t
20134 s,@fd_port@,$fd_port,;t t
20135 s,@sd_port@,$sd_port,;t t
20136 s,@dir_password@,$dir_password,;t t
20137 s,@fd_password@,$fd_password,;t t
20138 s,@sd_password@,$sd_password,;t t
20139 s,@mon_dir_password@,$mon_dir_password,;t t
20140 s,@mon_fd_password@,$mon_fd_password,;t t
20141 s,@mon_sd_password@,$mon_sd_password,;t t
20142 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
20143 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
20144 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
20145 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
20146 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
20147 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
20148 s,@dir_user@,$dir_user,;t t
20149 s,@dir_group@,$dir_group,;t t
20150 s,@sd_user@,$sd_user,;t t
20151 s,@sd_group@,$sd_group,;t t
20152 s,@fd_user@,$fd_user,;t t
20153 s,@fd_group@,$fd_group,;t t
20154 s,@SBINPERM@,$SBINPERM,;t t
20155 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
20156 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
20157 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
20158 s,@cats@,$cats,;t t
20159 s,@DB_NAME@,$DB_NAME,;t t
20160 s,@GETCONF@,$GETCONF,;t t
20161 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
20162 s,@X_CFLAGS@,$X_CFLAGS,;t t
20163 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20164 s,@X_LIBS@,$X_LIBS,;t t
20165 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20166 s,@LIBOBJS@,$LIBOBJS,;t t
20167 s,@ALLOCA@,$ALLOCA,;t t
20168 s,@FDLIBS@,$FDLIBS,;t t
20169 s,@DEBUG@,$DEBUG,;t t
20170 s,@DINCLUDE@,$DINCLUDE,;t t
20171 s,@DLIB@,$DLIB,;t t
20172 s,@DB_LIBS@,$DB_LIBS,;t t
20173 s,@WCFLAGS@,$WCFLAGS,;t t
20174 s,@WLDFLAGS@,$WLDFLAGS,;t t
20175 s,@OBJLIST@,$OBJLIST,;t t
20176 s,@hostname@,$hostname,;t t
20177 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
20178 s,@PSCMD@,$PSCMD,;t t
20179 s,@WIN32@,$WIN32,;t t
20180 s,@MACOSX@,$MACOSX,;t t
20181 s,@DISTNAME@,$DISTNAME,;t t
20182 s,@DISTVER@,$DISTVER,;t t
20183 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20184 /@MCOMMON@/r $MCOMMON
20190 cat >>$CONFIG_STATUS <<\_ACEOF
20191 # Split the substitutions into bite-sized pieces for seds with
20192 # small command number limits, like on Digital OSF/1 and HP-UX.
20193 ac_max_sed_lines=48
20194 ac_sed_frag=1 # Number of current file.
20195 ac_beg=1 # First line for current file.
20196 ac_end=$ac_max_sed_lines # Line after last line for current file.
20199 while $ac_more_lines; do
20200 if test $ac_beg -gt 1; then
20201 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20203 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20205 if test ! -s $tmp/subs.frag; then
20206 ac_more_lines=false
20208 # The purpose of the label and of the branching condition is to
20209 # speed up the sed processing (if there are no `@' at all, there
20210 # is no need to browse any of the substitutions).
20211 # These are the two extra sed commands mentioned above.
20213 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20214 if test -z "$ac_sed_cmds"; then
20215 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20217 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20219 ac_sed_frag=`expr $ac_sed_frag + 1`
20221 ac_end=`expr $ac_end + $ac_max_sed_lines`
20224 if test -z "$ac_sed_cmds"; then
20227 fi # test -n "$CONFIG_FILES"
20230 cat >>$CONFIG_STATUS <<\_ACEOF
20231 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20232 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20234 - | *:- | *:-:* ) # input from stdin
20236 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20237 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20238 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20239 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20240 * ) ac_file_in=$ac_file.in ;;
20243 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20244 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20245 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20246 X"$ac_file" : 'X\(//\)[^/]' \| \
20247 X"$ac_file" : 'X\(//\)$' \| \
20248 X"$ac_file" : 'X\(/\)' \| \
20249 . : '\(.\)' 2>/dev/null ||
20251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20252 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20253 /^X\(\/\/\)$/{ s//\1/; q; }
20254 /^X\(\/\).*/{ s//\1/; q; }
20256 { if $as_mkdir_p; then
20261 while test ! -d "$as_dir"; do
20262 as_dirs="$as_dir $as_dirs"
20263 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20265 X"$as_dir" : 'X\(//\)[^/]' \| \
20266 X"$as_dir" : 'X\(//\)$' \| \
20267 X"$as_dir" : 'X\(/\)' \| \
20268 . : '\(.\)' 2>/dev/null ||
20270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20272 /^X\(\/\/\)$/{ s//\1/; q; }
20273 /^X\(\/\).*/{ s//\1/; q; }
20276 test ! -n "$as_dirs" || mkdir $as_dirs
20277 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20278 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20279 { (exit 1); exit 1; }; }; }
20283 if test "$ac_dir" != .; then
20284 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20285 # A "../" for each directory in $ac_dir_suffix.
20286 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20288 ac_dir_suffix= ac_top_builddir=
20292 .) # No --srcdir option. We are building in place.
20294 if test -z "$ac_top_builddir"; then
20297 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20299 [\\/]* | ?:[\\/]* ) # Absolute path.
20300 ac_srcdir=$srcdir$ac_dir_suffix;
20301 ac_top_srcdir=$srcdir ;;
20302 *) # Relative path.
20303 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20304 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20306 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20308 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20309 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20310 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20311 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20315 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20316 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20319 if test x"$ac_file" != x-; then
20320 { echo "$as_me:$LINENO: creating $ac_file" >&5
20321 echo "$as_me: creating $ac_file" >&6;}
20324 # Let's still pretend it is `configure' which instantiates (i.e., don't
20325 # use $as_me), people would be surprised to read:
20326 # /* config.h. Generated by config.status. */
20327 if test x"$ac_file" = x-; then
20330 configure_input="$ac_file. "
20332 configure_input=$configure_input"Generated from `echo $ac_file_in |
20333 sed 's,.*/,,'` by configure."
20335 # First look for the input files in the build tree, otherwise in the
20337 ac_file_inputs=`IFS=:
20338 for f in $ac_file_in; do
20340 -) echo $tmp/stdin ;;
20342 # Absolute (can't be DOS-style, as IFS=:)
20343 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20344 echo "$as_me: error: cannot find input file: $f" >&2;}
20345 { (exit 1); exit 1; }; }
20348 if test -f "$f"; then
20351 elif test -f "$srcdir/$f"; then
20356 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20357 echo "$as_me: error: cannot find input file: $f" >&2;}
20358 { (exit 1); exit 1; }; }
20361 done` || { (exit 1); exit 1; }
20363 cat >>$CONFIG_STATUS <<_ACEOF
20367 cat >>$CONFIG_STATUS <<\_ACEOF
20369 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20370 s,@configure_input@,$configure_input,;t t
20371 s,@srcdir@,$ac_srcdir,;t t
20372 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20373 s,@top_srcdir@,$ac_top_srcdir,;t t
20374 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20375 s,@builddir@,$ac_builddir,;t t
20376 s,@abs_builddir@,$ac_abs_builddir,;t t
20377 s,@top_builddir@,$ac_top_builddir,;t t
20378 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20379 s,@INSTALL@,$ac_INSTALL,;t t
20380 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20382 if test x"$ac_file" != x-; then
20383 mv $tmp/out $ac_file
20391 cat >>$CONFIG_STATUS <<\_ACEOF
20394 # CONFIG_HEADER section.
20397 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20398 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20400 # ac_d sets the value in "#define NAME VALUE" lines.
20401 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20402 ac_dB='[ ].*$,\1#\2'
20405 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20406 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20407 ac_uB='$,\1#\2define\3'
20411 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20412 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20414 - | *:- | *:-:* ) # input from stdin
20416 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20417 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20418 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20419 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20420 * ) ac_file_in=$ac_file.in ;;
20423 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20424 echo "$as_me: creating $ac_file" >&6;}
20426 # First look for the input files in the build tree, otherwise in the
20428 ac_file_inputs=`IFS=:
20429 for f in $ac_file_in; do
20431 -) echo $tmp/stdin ;;
20433 # Absolute (can't be DOS-style, as IFS=:)
20434 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20435 echo "$as_me: error: cannot find input file: $f" >&2;}
20436 { (exit 1); exit 1; }; }
20439 if test -f "$f"; then
20442 elif test -f "$srcdir/$f"; then
20447 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20448 echo "$as_me: error: cannot find input file: $f" >&2;}
20449 { (exit 1); exit 1; }; }
20452 done` || { (exit 1); exit 1; }
20453 # Remove the trailing spaces.
20454 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20458 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20459 # `conftest.undefs', that substitutes the proper values into
20460 # config.h.in to produce config.h. The first handles `#define'
20461 # templates, and the second `#undef' templates.
20462 # And first: Protect against being on the right side of a sed subst in
20463 # config.status. Protect against being in an unquoted here document
20464 # in config.status.
20465 rm -f conftest.defines conftest.undefs
20466 # Using a here document instead of a string reduces the quoting nightmare.
20467 # Putting comments in sed scripts is not portable.
20469 # `end' is used to avoid that the second main sed command (meant for
20470 # 0-ary CPP macros) applies to n-ary macro definitions.
20471 # See the Autoconf documentation for `clear'.
20472 cat >confdef2sed.sed <<\_ACEOF
20477 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20479 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20482 # If some macros were called several times there might be several times
20483 # the same #defines, which is useless. Nevertheless, we may not want to
20484 # sort them, since we want the *last* AC-DEFINE to be honored.
20485 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20486 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20487 rm -f confdef2sed.sed
20489 # This sed command replaces #undef with comments. This is necessary, for
20490 # example, in the case of _POSIX_SOURCE, which is predefined and required
20491 # on some systems where configure will not decide to define it.
20492 cat >>conftest.undefs <<\_ACEOF
20493 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20496 # Break up conftest.defines because some shells have a limit on the size
20497 # of here documents, and old seds have small limits too (100 cmds).
20498 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20499 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20500 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20501 echo ' :' >>$CONFIG_STATUS
20502 rm -f conftest.tail
20503 while grep . conftest.defines >/dev/null
20505 # Write a limited-size here document to $tmp/defines.sed.
20506 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20507 # Speed up: don't consider the non `#define' lines.
20508 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20509 # Work around the forget-to-reset-the-flag bug.
20510 echo 't clr' >>$CONFIG_STATUS
20511 echo ': clr' >>$CONFIG_STATUS
20512 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20514 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20516 mv $tmp/out $tmp/in
20518 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20519 rm -f conftest.defines
20520 mv conftest.tail conftest.defines
20522 rm -f conftest.defines
20523 echo ' fi # grep' >>$CONFIG_STATUS
20524 echo >>$CONFIG_STATUS
20526 # Break up conftest.undefs because some shells have a limit on the size
20527 # of here documents, and old seds have small limits too (100 cmds).
20528 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20529 rm -f conftest.tail
20530 while grep . conftest.undefs >/dev/null
20532 # Write a limited-size here document to $tmp/undefs.sed.
20533 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20534 # Speed up: don't consider the non `#undef'
20535 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20536 # Work around the forget-to-reset-the-flag bug.
20537 echo 't clr' >>$CONFIG_STATUS
20538 echo ': clr' >>$CONFIG_STATUS
20539 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20541 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20543 mv $tmp/out $tmp/in
20545 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20546 rm -f conftest.undefs
20547 mv conftest.tail conftest.undefs
20549 rm -f conftest.undefs
20551 cat >>$CONFIG_STATUS <<\_ACEOF
20552 # Let's still pretend it is `configure' which instantiates (i.e., don't
20553 # use $as_me), people would be surprised to read:
20554 # /* config.h. Generated by config.status. */
20555 if test x"$ac_file" = x-; then
20556 echo "/* Generated by configure. */" >$tmp/config.h
20558 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20560 cat $tmp/in >>$tmp/config.h
20562 if test x"$ac_file" != x-; then
20563 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20564 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20565 echo "$as_me: $ac_file is unchanged" >&6;}
20567 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20568 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20569 X"$ac_file" : 'X\(//\)[^/]' \| \
20570 X"$ac_file" : 'X\(//\)$' \| \
20571 X"$ac_file" : 'X\(/\)' \| \
20572 . : '\(.\)' 2>/dev/null ||
20574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20575 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20576 /^X\(\/\/\)$/{ s//\1/; q; }
20577 /^X\(\/\).*/{ s//\1/; q; }
20579 { if $as_mkdir_p; then
20584 while test ! -d "$as_dir"; do
20585 as_dirs="$as_dir $as_dirs"
20586 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20588 X"$as_dir" : 'X\(//\)[^/]' \| \
20589 X"$as_dir" : 'X\(//\)$' \| \
20590 X"$as_dir" : 'X\(/\)' \| \
20591 . : '\(.\)' 2>/dev/null ||
20593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20594 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20595 /^X\(\/\/\)$/{ s//\1/; q; }
20596 /^X\(\/\).*/{ s//\1/; q; }
20599 test ! -n "$as_dirs" || mkdir $as_dirs
20600 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20601 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20602 { (exit 1); exit 1; }; }; }
20605 mv $tmp/config.h $ac_file
20609 rm -f $tmp/config.h
20613 cat >>$CONFIG_STATUS <<\_ACEOF
20616 # CONFIG_COMMANDS section.
20618 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20619 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20620 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20621 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20622 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20623 X"$ac_dest" : 'X\(//\)[^/]' \| \
20624 X"$ac_dest" : 'X\(//\)$' \| \
20625 X"$ac_dest" : 'X\(/\)' \| \
20626 . : '\(.\)' 2>/dev/null ||
20628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20629 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20630 /^X\(\/\/\)$/{ s//\1/; q; }
20631 /^X\(\/\).*/{ s//\1/; q; }
20635 if test "$ac_dir" != .; then
20636 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20637 # A "../" for each directory in $ac_dir_suffix.
20638 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20640 ac_dir_suffix= ac_top_builddir=
20644 .) # No --srcdir option. We are building in place.
20646 if test -z "$ac_top_builddir"; then
20649 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20651 [\\/]* | ?:[\\/]* ) # Absolute path.
20652 ac_srcdir=$srcdir$ac_dir_suffix;
20653 ac_top_srcdir=$srcdir ;;
20654 *) # Relative path.
20655 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20656 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20658 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20660 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20661 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20662 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20663 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20666 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20667 echo "$as_me: executing $ac_dest commands" >&6;}
20669 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20675 cat >>$CONFIG_STATUS <<\_ACEOF
20677 { (exit 0); exit 0; }
20679 chmod +x $CONFIG_STATUS
20680 ac_clean_files=$ac_clean_files_save
20683 # configure is writing to config.log, and then calls config.status.
20684 # config.status does its own redirection, appending to config.log.
20685 # Unfortunately, on DOS this fails, as config.log is still kept open
20686 # by configure, so config.status won't be able to write to it; its
20687 # output is simply discarded. So we exec the FD to /dev/null,
20688 # effectively closing config.log, so it can be properly (re)opened and
20689 # appended to by config.status. When coming back to configure, we
20690 # need to make the FD available again.
20691 if test "$no_create" != yes; then
20693 ac_config_status_args=
20694 test "$silent" = yes &&
20695 ac_config_status_args="$ac_config_status_args --quiet"
20697 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20699 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20700 # would make configure fail if this is the last instruction.
20701 $ac_cs_success || { (exit 1); exit 1; }
20706 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20707 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20712 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
20713 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
20715 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
20716 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
20718 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
20719 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
20721 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
20722 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
20724 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
20725 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
20727 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20728 chmod 755 $c/sqlite
20731 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20732 largefile_support="yes"
20736 # A whole lot of hand springs to get the compiler version.
20737 # This is because gcc changed the output in version 3.0
20739 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20740 if test "x${CCVERSION}" = "x" ; then
20741 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20743 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20744 if test x"${CXXVERSION}" = x ; then
20745 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20748 if test "x${subsysdir}" = "x${sbindir}" ; then
20751 echo "You have set --sbindir and --with-subsys-dir"
20752 echo " both equal to: ${subsysdir} "
20753 echo " This is not permitted. Please reconfigure."
20755 echo "Aborting configuration ..."
20761 if test "x${db_name}" = "xInternal" ; then
20764 echo "You have not specified either --enable-client-only or one of the"
20765 echo " supported databases: MySQL, PostgreSQL, or SQLite".
20766 echo " This is not permitted. Please reconfigure."
20768 echo "Aborting the configuration ..."
20775 Configuration on `date`:
20777 Host: $host -- ${DISTNAME} ${DISTVER}
20778 Bacula version: ${VERSION} (${DATE})
20779 Source code location: ${srcdir}
20780 Install binaries: ${sbindir}
20781 Install config files: ${sysconfdir}
20782 Scripts directory: ${scriptdir}
20783 Working directory: ${working_dir}
20784 PID directory: ${piddir}
20785 Subsys directory: ${subsysdir}
20786 C Compiler: ${CC} ${CCVERSION}
20787 C++ Compiler: ${CXX} ${CXXVERSION}
20788 Compiler flags: ${WCFLAGS} ${CFLAGS}
20789 Linker flags: ${WLDFLAGS} ${LDFLAGS}
20791 Statically Linked Tools: ${support_static_tools}
20792 Statically Linked FD: ${support_static_fd}
20793 Statically Linked SD: ${support_static_sd}
20794 Statically Linked DIR: ${support_static_dir}
20795 Statically Linked CONS: ${support_static_cons}
20796 Database type: ${db_name}
20797 Database lib: ${DB_LIBS}
20799 Job Output Email: ${job_email}
20800 Traceback Email: ${dump_email}
20801 SMTP Host Address: ${smtp_host}
20803 Director Port: ${dir_port}
20804 File daemon Port: ${fd_port}
20805 Storage daemon Port: ${sd_port}
20807 Director User: ${dir_user}
20808 Director Group: ${dir_group}
20809 Storage Daemon User: ${sd_user}
20810 Storage DaemonGroup: ${sd_group}
20811 File Daemon User: ${fd_user}
20812 File Daemon Group: ${fd_group}
20814 SQL binaries Directory ${SQL_BINDIR}
20816 Large file support: $largefile_support
20817 Bacula conio support: ${got_conio} ${CONS_LIBS}
20818 readline support: ${got_readline} ${PRTREADLINE_SRC}
20819 TCP Wrappers support: ${TCPW_MSG}
20820 ZLIB support: ${have_zlib}
20821 enable-smartalloc: ${support_smartalloc}
20822 enable-gnome: ${support_gnome} ${gnome_version}
20823 enable-wx-console: ${support_wx_console}
20824 enable-tray-monitor: ${support_tray_monitor}
20825 client-only: ${build_client_only}
20826 ACL support: ${have_acl}
20833 # cweb support: ${got_cweb} ${CWEB_SRC}
20834 # gmp support: ${got_gmp} ${GMP_SRC}