2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS ALL_DIRS CONS_INC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures this package to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --x-includes=DIR X include files are in DIR
843 --x-libraries=DIR X library files are in DIR
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 if test -n "$ac_init_help"; then
856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
858 --enable-gnome enable build of gnome-console GUI disabled
859 --enable-smartalloc enable smartalloc debugging support disabled
860 --enable-static-tools enable static tape tools disabled
861 --enable-static-fd enable static File daemon disabled
862 --enable-static-sd enable static Storage daemon disabled
863 --enable-static-dir enable static Director disabled
864 --enable-static-cons enable static Console disabled
865 --enable-client-only build client (File daemon) only disabled
866 --disable-readline disable readline support enabled
868 --disable-largefile omit support for large files
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-gnome-includes Specify location of GNOME headers
874 --with-gnome-libs Specify location of GNOME libs
875 --with-gnome Specify prefix for GNOME files
876 --with-readline=DIR specify readline library directory
877 --with-tcp-wrappers=DIR enable tcpwrappers support
878 --with-working-dir=PATH specify path of Bacula working directory
879 --with-scriptdir=PATH specify path of Bacula scripts directory
880 --with-dump-email=EMAIL dump email address
881 --with-job-email=EMAIL job output email address
882 --with-smtp-host=HOST SMTP mail host address
883 --with-pid-dir=PATH specify location of Bacula pid files
884 --with-subsys-dir=PATH specify location of Bacula subsys file
885 --with-baseport=PORT specify base port address for daemons
886 --with-dir-password=PASSWORD specify Director's password
887 --with-fd-password=PASSWORD specify Client's password
888 --with-sd-password=PASSWORD specify Storage daemon's password
890 Which DBMS do you want to use (please select only one):
891 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
892 install directory, default is to search through
893 a number of common places for the MySQL files.
895 Which DBMS do you want to use (please select only one):
896 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
897 install directory, default is to search through
898 a number of common places for the MySQL files.
900 Which DBMS do you want to use (please select only one):
901 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
902 install directory, default is to search through
903 a number of common places for the SQLite files.
904 --with-x use the X Window System
906 Some influential environment variables:
907 CC C compiler command
908 CFLAGS C compiler flags
909 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
910 nonstandard directory <lib dir>
911 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
912 headers in a nonstandard directory <include dir>
913 CXX C++ compiler command
914 CXXFLAGS C++ compiler flags
917 Use these variables to override the choices made by `configure' or to help
918 it to find libraries and programs with nonstandard names/locations.
923 if test "$ac_init_help" = "recursive"; then
924 # If there are subdirs, report their specific --help.
926 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
927 test -d $ac_dir || continue
930 if test "$ac_dir" != .; then
931 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
932 # A "../" for each directory in $ac_dir_suffix.
933 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
935 ac_dir_suffix= ac_top_builddir=
939 .) # No --srcdir option. We are building in place.
941 if test -z "$ac_top_builddir"; then
944 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
946 [\\/]* | ?:[\\/]* ) # Absolute path.
947 ac_srcdir=$srcdir$ac_dir_suffix;
948 ac_top_srcdir=$srcdir ;;
950 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
951 ac_top_srcdir=$ac_top_builddir$srcdir ;;
953 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
955 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
956 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
957 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
958 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
983 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
984 Free Software Foundation, Inc.
985 This configure script is free software; the Free Software Foundation
986 gives unlimited permission to copy, distribute and modify it.
992 This file contains any messages produced by compilers while
993 running configure, to aid debugging if configure makes a mistake.
995 It was created by $as_me, which was
996 generated by GNU Autoconf 2.57. Invocation command line was
1007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1046 # Keep a trace of the command line.
1047 # Strip out --no-create and --no-recursion so they do not pile up.
1048 # Strip out --silent because we don't want to record it for future runs.
1049 # Also quote any args containing shell meta-characters.
1050 # Make two passes to allow for proper duplicate-argument suppression.
1055 ac_must_keep_next=false
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1084 -* ) ac_must_keep_next=true ;;
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097 # When interrupted or exit'd, cleanup temporary files, and complete
1098 # config.log. We remove comments because anyway the quotes in there
1099 # would cause problems or look ugly.
1100 # WARNING: Be sure not to use single quotes in there, as some shells,
1101 # such as our DU 5.0 friend, will then `close' the trap.
1102 trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1108 ## ---------------- ##
1109 ## Cache variables. ##
1110 ## ---------------- ##
1113 # The following way of writing the cache mishandles newlines in values,
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131 ## ----------------- ##
1132 ## Output variables. ##
1133 ## ----------------- ##
1136 for ac_var in $ac_subst_vars
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1143 if test -n "$ac_subst_files"; then
1150 for ac_var in $ac_subst_files
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1158 if test -s confdefs.h; then
1165 sed "/^$/d" confdefs.h | sort
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1172 rm -f core core.* *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1176 for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1182 rm -rf conftest* confdefs.h
1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1186 # Predefined preprocessor variables.
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_NAME "$PACKAGE_NAME"
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_STRING "$PACKAGE_STRING"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1213 # Let the site file select an alternate cache file if it wants to.
1214 # Prefer explicitly selected file to automatically selected ones.
1215 if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1222 for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225 echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1231 if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236 echo "$as_me: loading cache $cache_file" >&6;}
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244 echo "$as_me: creating cache $cache_file" >&6;}
1248 # Check that the precious variables saved in the cache have kept the same
1250 ac_cache_corrupted=false
1251 for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272 echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274 echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1291 if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1329 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1330 if test -f $ac_dir/install-sh; then
1332 ac_install_sh="$ac_aux_dir/install-sh -c"
1334 elif test -f $ac_dir/install.sh; then
1336 ac_install_sh="$ac_aux_dir/install.sh -c"
1338 elif test -f $ac_dir/shtool; then
1340 ac_install_sh="$ac_aux_dir/shtool install -c"
1344 if test -z "$ac_aux_dir"; then
1345 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1346 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1347 { (exit 1); exit 1; }; }
1349 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1350 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1351 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1353 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1361 # Extract the first word of "$ac_prog", so it can be a program name with args.
1362 set dummy $ac_prog; ac_word=$2
1363 echo "$as_me:$LINENO: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1377 test -z "$as_dir" && as_dir=.
1378 for ac_exec_ext in '' $ac_executable_extensions; do
1379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1380 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1390 TRUEPRG=$ac_cv_path_TRUEPRG
1392 if test -n "$TRUEPRG"; then
1393 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1394 echo "${ECHO_T}$TRUEPRG" >&6
1396 echo "$as_me:$LINENO: result: no" >&5
1397 echo "${ECHO_T}no" >&6
1400 test -n "$TRUEPRG" && break
1402 test -n "$TRUEPRG" || TRUEPRG=":"
1404 for ac_prog in false
1406 # Extract the first word of "$ac_prog", so it can be a program name with args.
1407 set dummy $ac_prog; ac_word=$2
1408 echo "$as_me:$LINENO: checking for $ac_word" >&5
1409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1410 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1415 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1422 test -z "$as_dir" && as_dir=.
1423 for ac_exec_ext in '' $ac_executable_extensions; do
1424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1425 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1435 FALSEPRG=$ac_cv_path_FALSEPRG
1437 if test -n "$FALSEPRG"; then
1438 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1439 echo "${ECHO_T}$FALSEPRG" >&6
1441 echo "$as_me:$LINENO: result: no" >&5
1442 echo "${ECHO_T}no" >&6
1445 test -n "$FALSEPRG" && break
1447 test -n "$FALSEPRG" || FALSEPRG=":"
1450 # Make sure we can run config.sub.
1451 $ac_config_sub sun4 >/dev/null 2>&1 ||
1452 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1453 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1454 { (exit 1); exit 1; }; }
1456 echo "$as_me:$LINENO: checking build system type" >&5
1457 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1458 if test "${ac_cv_build+set}" = set; then
1459 echo $ECHO_N "(cached) $ECHO_C" >&6
1461 ac_cv_build_alias=$build_alias
1462 test -z "$ac_cv_build_alias" &&
1463 ac_cv_build_alias=`$ac_config_guess`
1464 test -z "$ac_cv_build_alias" &&
1465 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1466 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1467 { (exit 1); exit 1; }; }
1468 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1471 { (exit 1); exit 1; }; }
1474 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1475 echo "${ECHO_T}$ac_cv_build" >&6
1477 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1482 echo "$as_me:$LINENO: checking host system type" >&5
1483 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1484 if test "${ac_cv_host+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 ac_cv_host_alias=$host_alias
1488 test -z "$ac_cv_host_alias" &&
1489 ac_cv_host_alias=$ac_cv_build_alias
1490 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1493 { (exit 1); exit 1; }; }
1496 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1497 echo "${ECHO_T}$ac_cv_host" >&6
1499 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1505 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1506 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1507 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1508 echo "configuring for bacula $VERSION ($DATE)"
1513 ac_cpp='$CPP $CPPFLAGS'
1514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1517 if test -n "$ac_tool_prefix"; then
1518 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1519 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 if test -n "$CC"; then
1526 ac_cv_prog_CC="$CC" # Let the user override the test.
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545 if test -n "$CC"; then
1546 echo "$as_me:$LINENO: result: $CC" >&5
1547 echo "${ECHO_T}$CC" >&6
1549 echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1554 if test -z "$ac_cv_prog_CC"; then
1556 # Extract the first word of "gcc", so it can be a program name with args.
1557 set dummy gcc; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 if test -n "$ac_ct_CC"; then
1564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 test -z "$as_dir" && as_dir=.
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_ac_ct_CC="gcc"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583 if test -n "$ac_ct_CC"; then
1584 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1585 echo "${ECHO_T}$ac_ct_CC" >&6
1587 echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1596 if test -z "$CC"; then
1597 if test -n "$ac_tool_prefix"; then
1598 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1599 set dummy ${ac_tool_prefix}cc; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 test -z "$as_dir" && as_dir=.
1613 for ac_exec_ext in '' $ac_executable_extensions; do
1614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615 ac_cv_prog_CC="${ac_tool_prefix}cc"
1616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 if test -n "$CC"; then
1626 echo "$as_me:$LINENO: result: $CC" >&5
1627 echo "${ECHO_T}$CC" >&6
1629 echo "$as_me:$LINENO: result: no" >&5
1630 echo "${ECHO_T}no" >&6
1634 if test -z "$ac_cv_prog_CC"; then
1636 # Extract the first word of "cc", so it can be a program name with args.
1637 set dummy cc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 if test -n "$ac_ct_CC"; then
1644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 ac_cv_prog_ac_ct_CC="cc"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1663 if test -n "$ac_ct_CC"; then
1664 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1665 echo "${ECHO_T}$ac_ct_CC" >&6
1667 echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1677 if test -z "$CC"; then
1678 # Extract the first word of "cc", so it can be a program name with args.
1679 set dummy cc; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_CC+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1685 if test -n "$CC"; then
1686 ac_cv_prog_CC="$CC" # Let the user override the test.
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693 test -z "$as_dir" && as_dir=.
1694 for ac_exec_ext in '' $ac_executable_extensions; do
1695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1697 ac_prog_rejected=yes
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 if test $ac_prog_rejected = yes; then
1708 # We found a bogon in the path, so make sure we never use it.
1709 set dummy $ac_cv_prog_CC
1711 if test $# != 0; then
1712 # We chose a different compiler from the bogus one.
1713 # However, it has the same basename, so the bogon will be chosen
1714 # first if we set CC to just the basename; use the full file name.
1716 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1722 if test -n "$CC"; then
1723 echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1731 if test -z "$CC"; then
1732 if test -n "$ac_tool_prefix"; then
1735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1737 echo "$as_me:$LINENO: checking for $ac_word" >&5
1738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1739 if test "${ac_cv_prog_CC+set}" = set; then
1740 echo $ECHO_N "(cached) $ECHO_C" >&6
1742 if test -n "$CC"; then
1743 ac_cv_prog_CC="$CC" # Let the user override the test.
1745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 test -z "$as_dir" && as_dir=.
1750 for ac_exec_ext in '' $ac_executable_extensions; do
1751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1752 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762 if test -n "$CC"; then
1763 echo "$as_me:$LINENO: result: $CC" >&5
1764 echo "${ECHO_T}$CC" >&6
1766 echo "$as_me:$LINENO: result: no" >&5
1767 echo "${ECHO_T}no" >&6
1770 test -n "$CC" && break
1773 if test -z "$CC"; then
1777 # Extract the first word of "$ac_prog", so it can be a program name with args.
1778 set dummy $ac_prog; ac_word=$2
1779 echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1784 if test -n "$ac_ct_CC"; then
1785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791 test -z "$as_dir" && as_dir=.
1792 for ac_exec_ext in '' $ac_executable_extensions; do
1793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794 ac_cv_prog_ac_ct_CC="$ac_prog"
1795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1804 if test -n "$ac_ct_CC"; then
1805 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1806 echo "${ECHO_T}$ac_ct_CC" >&6
1808 echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1812 test -n "$ac_ct_CC" && break
1821 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1822 See \`config.log' for more details." >&5
1823 echo "$as_me: error: no acceptable C compiler found in \$PATH
1824 See \`config.log' for more details." >&2;}
1825 { (exit 1); exit 1; }; }
1827 # Provide some information about the compiler.
1828 echo "$as_me:$LINENO:" \
1829 "checking for C compiler version" >&5
1830 ac_compiler=`set X $ac_compile; echo $2`
1831 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1832 (eval $ac_compiler --version </dev/null >&5) 2>&5
1834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835 (exit $ac_status); }
1836 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1837 (eval $ac_compiler -v </dev/null >&5) 2>&5
1839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840 (exit $ac_status); }
1841 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1842 (eval $ac_compiler -V </dev/null >&5) 2>&5
1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845 (exit $ac_status); }
1847 cat >conftest.$ac_ext <<_ACEOF
1848 #line $LINENO "configure"
1851 cat confdefs.h >>conftest.$ac_ext
1852 cat >>conftest.$ac_ext <<_ACEOF
1853 /* end confdefs.h. */
1863 ac_clean_files_save=$ac_clean_files
1864 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1865 # Try to create an executable without -o first, disregard a.out.
1866 # It will help us diagnose broken compilers, and finding out an intuition
1868 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1869 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1870 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1871 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1872 (eval $ac_link_default) 2>&5
1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875 (exit $ac_status); }; then
1876 # Find the output, starting from the most likely. This scheme is
1877 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1880 # Be careful to initialize this variable, since it used to be cached.
1881 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1883 # b.out is created by i960 compilers.
1884 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1886 test -f "$ac_file" || continue
1888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1891 # This is the source file.
1894 # We found the default executable, but exeext='' is most
1898 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1899 # FIXME: I believe we export ac_cv_exeext for Libtool,
1900 # but it would be cool to find out if it's true. Does anybody
1901 # maintain Libtool? --akim.
1909 echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1912 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1913 See \`config.log' for more details." >&5
1914 echo "$as_me: error: C compiler cannot create executables
1915 See \`config.log' for more details." >&2;}
1916 { (exit 77); exit 77; }; }
1919 ac_exeext=$ac_cv_exeext
1920 echo "$as_me:$LINENO: result: $ac_file" >&5
1921 echo "${ECHO_T}$ac_file" >&6
1923 # Check the compiler produces executables we can run. If not, either
1924 # the compiler is broken, or we cross compile.
1925 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1926 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1927 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1928 # If not cross compiling, check that we can run a simple program.
1929 if test "$cross_compiling" != yes; then
1930 if { ac_try='./$ac_file'
1931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }; }; then
1938 if test "$cross_compiling" = maybe; then
1941 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1942 If you meant to cross compile, use \`--host'.
1943 See \`config.log' for more details." >&5
1944 echo "$as_me: error: cannot run C compiled programs.
1945 If you meant to cross compile, use \`--host'.
1946 See \`config.log' for more details." >&2;}
1947 { (exit 1); exit 1; }; }
1951 echo "$as_me:$LINENO: result: yes" >&5
1952 echo "${ECHO_T}yes" >&6
1954 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1955 ac_clean_files=$ac_clean_files_save
1956 # Check the compiler produces executables we can run. If not, either
1957 # the compiler is broken, or we cross compile.
1958 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1959 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1960 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1961 echo "${ECHO_T}$cross_compiling" >&6
1963 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1964 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1966 (eval $ac_link) 2>&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; then
1970 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1971 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1972 # work properly (i.e., refer to `conftest.exe'), while it won't with
1974 for ac_file in conftest.exe conftest conftest.*; do
1975 test -f "$ac_file" || continue
1977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1978 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1985 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1986 See \`config.log' for more details." >&5
1987 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1988 See \`config.log' for more details." >&2;}
1989 { (exit 1); exit 1; }; }
1992 rm -f conftest$ac_cv_exeext
1993 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1994 echo "${ECHO_T}$ac_cv_exeext" >&6
1996 rm -f conftest.$ac_ext
1997 EXEEXT=$ac_cv_exeext
1999 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2000 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2001 if test "${ac_cv_objext+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 cat >conftest.$ac_ext <<_ACEOF
2005 #line $LINENO "configure"
2008 cat confdefs.h >>conftest.$ac_ext
2009 cat >>conftest.$ac_ext <<_ACEOF
2010 /* end confdefs.h. */
2020 rm -f conftest.o conftest.obj
2021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2022 (eval $ac_compile) 2>&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }; then
2026 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2029 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2034 echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2037 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2038 See \`config.log' for more details." >&5
2039 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2040 See \`config.log' for more details." >&2;}
2041 { (exit 1); exit 1; }; }
2044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2046 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2047 echo "${ECHO_T}$ac_cv_objext" >&6
2048 OBJEXT=$ac_cv_objext
2050 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2051 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2052 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2055 cat >conftest.$ac_ext <<_ACEOF
2056 #line $LINENO "configure"
2059 cat confdefs.h >>conftest.$ac_ext
2060 cat >>conftest.$ac_ext <<_ACEOF
2061 /* end confdefs.h. */
2074 rm -f conftest.$ac_objext
2075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2076 (eval $ac_compile) 2>&5
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); } &&
2080 { ac_try='test -s conftest.$ac_objext'
2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }; }; then
2088 echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.$ac_ext >&5
2093 rm -f conftest.$ac_objext conftest.$ac_ext
2094 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2097 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2098 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2099 GCC=`test $ac_compiler_gnu = yes && echo yes`
2100 ac_test_CFLAGS=${CFLAGS+set}
2101 ac_save_CFLAGS=$CFLAGS
2103 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2104 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2105 if test "${ac_cv_prog_cc_g+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 cat >conftest.$ac_ext <<_ACEOF
2109 #line $LINENO "configure"
2112 cat confdefs.h >>conftest.$ac_ext
2113 cat >>conftest.$ac_ext <<_ACEOF
2114 /* end confdefs.h. */
2124 rm -f conftest.$ac_objext
2125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2126 (eval $ac_compile) 2>&5
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); } &&
2130 { ac_try='test -s conftest.$ac_objext'
2131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }; }; then
2138 echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2143 rm -f conftest.$ac_objext conftest.$ac_ext
2145 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2146 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2147 if test "$ac_test_CFLAGS" = set; then
2148 CFLAGS=$ac_save_CFLAGS
2149 elif test $ac_cv_prog_cc_g = yes; then
2150 if test "$GCC" = yes; then
2156 if test "$GCC" = yes; then
2162 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2163 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2164 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 ac_cv_prog_cc_stdc=no
2169 cat >conftest.$ac_ext <<_ACEOF
2170 #line $LINENO "configure"
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h. */
2178 #include <sys/types.h>
2179 #include <sys/stat.h>
2180 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2181 struct buf { int x; };
2182 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2183 static char *e (p, i)
2189 static char *f (char * (*g) (char **, int), char **p, ...)
2194 s = g (p, va_arg (v,int));
2198 int test (int i, double x);
2199 struct s1 {int (*f) (int a);};
2200 struct s2 {int (*f) (double a);};
2201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2207 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2212 # Don't try gcc -ansi; that turns off useful extensions and
2213 # breaks some systems' header files.
2214 # AIX -qlanglvl=ansi
2215 # Ultrix and OSF/1 -std1
2216 # HP-UX 10.20 and later -Ae
2217 # HP-UX older versions -Aa -D_HPUX_SOURCE
2218 # SVR4 -Xc -D__EXTENSIONS__
2219 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2221 CC="$ac_save_CC $ac_arg"
2222 rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224 (eval $ac_compile) 2>&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
2228 { ac_try='test -s conftest.$ac_objext'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; }; then
2234 ac_cv_prog_cc_stdc=$ac_arg
2237 echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2241 rm -f conftest.$ac_objext
2243 rm -f conftest.$ac_ext conftest.$ac_objext
2248 case "x$ac_cv_prog_cc_stdc" in
2250 echo "$as_me:$LINENO: result: none needed" >&5
2251 echo "${ECHO_T}none needed" >&6 ;;
2253 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2254 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2255 CC="$CC $ac_cv_prog_cc_stdc" ;;
2258 # Some people use a C++ compiler to compile C. Since we use `exit',
2259 # in C++ we need to declare it. In case someone uses the same compiler
2260 # for both compiling C and C++ we need to have the C++ compiler decide
2261 # the declaration of exit, since it's the most demanding environment.
2262 cat >conftest.$ac_ext <<_ACEOF
2267 rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269 (eval $ac_compile) 2>&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); } &&
2273 { ac_try='test -s conftest.$ac_objext'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2279 for ac_declaration in \
2281 '#include <stdlib.h>' \
2282 'extern "C" void std::exit (int) throw (); using std::exit;' \
2283 'extern "C" void std::exit (int); using std::exit;' \
2284 'extern "C" void exit (int) throw ();' \
2285 'extern "C" void exit (int);' \
2288 cat >conftest.$ac_ext <<_ACEOF
2289 #line $LINENO "configure"
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); } &&
2311 { ac_try='test -s conftest.$ac_objext'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; }; then
2319 echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2324 rm -f conftest.$ac_objext conftest.$ac_ext
2325 cat >conftest.$ac_ext <<_ACEOF
2326 #line $LINENO "configure"
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h. */
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); } &&
2347 { ac_try='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2355 echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2359 rm -f conftest.$ac_objext conftest.$ac_ext
2362 if test -n "$ac_declaration"; then
2363 echo '#ifdef __cplusplus' >>confdefs.h
2364 echo $ac_declaration >>confdefs.h
2365 echo '#endif' >>confdefs.h
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2373 rm -f conftest.$ac_objext conftest.$ac_ext
2375 ac_cpp='$CPP $CPPFLAGS'
2376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2381 ac_cpp='$CXXCPP $CPPFLAGS'
2382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2385 if test -n "$ac_tool_prefix"; then
2386 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2390 echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2392 if test "${ac_cv_prog_CXX+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 if test -n "$CXX"; then
2396 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 test -z "$as_dir" && as_dir=.
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2405 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 if test -n "$CXX"; then
2416 echo "$as_me:$LINENO: result: $CXX" >&5
2417 echo "${ECHO_T}$CXX" >&6
2419 echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6
2423 test -n "$CXX" && break
2426 if test -z "$CXX"; then
2428 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2430 # Extract the first word of "$ac_prog", so it can be a program name with args.
2431 set dummy $ac_prog; ac_word=$2
2432 echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 if test -n "$ac_ct_CXX"; then
2438 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447 ac_cv_prog_ac_ct_CXX="$ac_prog"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2457 if test -n "$ac_ct_CXX"; then
2458 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2459 echo "${ECHO_T}$ac_ct_CXX" >&6
2461 echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2465 test -n "$ac_ct_CXX" && break
2467 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2473 # Provide some information about the compiler.
2474 echo "$as_me:$LINENO:" \
2475 "checking for C++ compiler version" >&5
2476 ac_compiler=`set X $ac_compile; echo $2`
2477 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2478 (eval $ac_compiler --version </dev/null >&5) 2>&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }
2482 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2483 (eval $ac_compiler -v </dev/null >&5) 2>&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }
2487 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2488 (eval $ac_compiler -V </dev/null >&5) 2>&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }
2493 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2494 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2495 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 cat >conftest.$ac_ext <<_ACEOF
2499 #line $LINENO "configure"
2502 cat confdefs.h >>conftest.$ac_ext
2503 cat >>conftest.$ac_ext <<_ACEOF
2504 /* end confdefs.h. */
2517 rm -f conftest.$ac_objext
2518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519 (eval $ac_compile) 2>&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try='test -s conftest.$ac_objext'
2524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; }; then
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2536 rm -f conftest.$ac_objext conftest.$ac_ext
2537 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2540 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2541 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2542 GXX=`test $ac_compiler_gnu = yes && echo yes`
2543 ac_test_CXXFLAGS=${CXXFLAGS+set}
2544 ac_save_CXXFLAGS=$CXXFLAGS
2546 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2547 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2548 if test "${ac_cv_prog_cxx_g+set}" = set; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 cat >conftest.$ac_ext <<_ACEOF
2552 #line $LINENO "configure"
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h. */
2567 rm -f conftest.$ac_objext
2568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569 (eval $ac_compile) 2>&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try='test -s conftest.$ac_objext'
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; }; then
2579 ac_cv_prog_cxx_g=yes
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2586 rm -f conftest.$ac_objext conftest.$ac_ext
2588 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2589 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2590 if test "$ac_test_CXXFLAGS" = set; then
2591 CXXFLAGS=$ac_save_CXXFLAGS
2592 elif test $ac_cv_prog_cxx_g = yes; then
2593 if test "$GXX" = yes; then
2599 if test "$GXX" = yes; then
2605 for ac_declaration in \
2607 '#include <stdlib.h>' \
2608 'extern "C" void std::exit (int) throw (); using std::exit;' \
2609 'extern "C" void std::exit (int); using std::exit;' \
2610 'extern "C" void exit (int) throw ();' \
2611 'extern "C" void exit (int);' \
2614 cat >conftest.$ac_ext <<_ACEOF
2615 #line $LINENO "configure"
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h. */
2631 rm -f conftest.$ac_objext
2632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633 (eval $ac_compile) 2>&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } &&
2637 { ac_try='test -s conftest.$ac_objext'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
2645 echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2650 rm -f conftest.$ac_objext conftest.$ac_ext
2651 cat >conftest.$ac_ext <<_ACEOF
2652 #line $LINENO "configure"
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h. */
2667 rm -f conftest.$ac_objext
2668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2669 (eval $ac_compile) 2>&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); } &&
2673 { ac_try='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2681 echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2685 rm -f conftest.$ac_objext conftest.$ac_ext
2688 if test -n "$ac_declaration"; then
2689 echo '#ifdef __cplusplus' >>confdefs.h
2690 echo $ac_declaration >>confdefs.h
2691 echo '#endif' >>confdefs.h
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700 if test "x$CC" != xcc; then
2701 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2702 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2704 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2705 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2707 set dummy $CC; ac_cc=`echo $2 |
2708 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2709 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 cat >conftest.$ac_ext <<_ACEOF
2713 #line $LINENO "configure"
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2728 # Make sure it works both with $CC and with simple cc.
2729 # We do the test twice because some compilers refuse to overwrite an
2730 # existing .o file with -o, though they will create one.
2731 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2732 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } &&
2737 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); };
2743 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2744 if test "x$CC" != xcc; then
2745 # Test first that cc exists at all.
2746 if { ac_try='cc -c conftest.$ac_ext >&5'
2747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; }; then
2752 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2753 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
2758 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); };
2767 # cc exists but doesn't like -o.
2768 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2773 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2778 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2779 echo "$as_me:$LINENO: result: yes" >&5
2780 echo "${ECHO_T}yes" >&6
2782 echo "$as_me:$LINENO: result: no" >&5
2783 echo "${ECHO_T}no" >&6
2785 cat >>confdefs.h <<\_ACEOF
2786 #define NO_MINUS_C_MINUS_O 1
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2797 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2798 # On Suns, sometimes $CPP names a directory.
2799 if test -n "$CPP" && test -d "$CPP"; then
2802 if test -z "$CPP"; then
2803 if test "${ac_cv_prog_CPP+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 # Double quotes because CPP needs to be expanded
2807 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2810 for ac_c_preproc_warn_flag in '' yes
2812 # Use a header file that comes with gcc, so configuring glibc
2813 # with a fresh cross-compiler works.
2814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2815 # <limits.h> exists even on freestanding compilers.
2816 # On the NeXT, cc -E runs the code through the compiler's parser,
2817 # not just through cpp. "Syntax error" is here to catch this case.
2818 cat >conftest.$ac_ext <<_ACEOF
2819 #line $LINENO "configure"
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2826 # include <limits.h>
2828 # include <assert.h>
2832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2835 grep -v '^ *+' conftest.er1 >conftest.err
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } >/dev/null; then
2840 if test -s conftest.err; then
2841 ac_cpp_err=$ac_c_preproc_warn_flag
2848 if test -z "$ac_cpp_err"; then
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2854 # Broken: fails on valid input.
2857 rm -f conftest.err conftest.$ac_ext
2859 # OK, works on sane cases. Now check whether non-existent headers
2860 # can be detected and how.
2861 cat >conftest.$ac_ext <<_ACEOF
2862 #line $LINENO "configure"
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2868 #include <ac_nonexistent.h>
2870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2873 grep -v '^ *+' conftest.er1 >conftest.err
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } >/dev/null; then
2878 if test -s conftest.err; then
2879 ac_cpp_err=$ac_c_preproc_warn_flag
2886 if test -z "$ac_cpp_err"; then
2887 # Broken: success on invalid input.
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2893 # Passes both tests.
2897 rm -f conftest.err conftest.$ac_ext
2900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2901 rm -f conftest.err conftest.$ac_ext
2902 if $ac_preproc_ok; then
2914 echo "$as_me:$LINENO: result: $CPP" >&5
2915 echo "${ECHO_T}$CPP" >&6
2917 for ac_c_preproc_warn_flag in '' yes
2919 # Use a header file that comes with gcc, so configuring glibc
2920 # with a fresh cross-compiler works.
2921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922 # <limits.h> exists even on freestanding compilers.
2923 # On the NeXT, cc -E runs the code through the compiler's parser,
2924 # not just through cpp. "Syntax error" is here to catch this case.
2925 cat >conftest.$ac_ext <<_ACEOF
2926 #line $LINENO "configure"
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2933 # include <limits.h>
2935 # include <assert.h>
2939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2942 grep -v '^ *+' conftest.er1 >conftest.err
2944 cat conftest.err >&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); } >/dev/null; then
2947 if test -s conftest.err; then
2948 ac_cpp_err=$ac_c_preproc_warn_flag
2955 if test -z "$ac_cpp_err"; then
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 # Broken: fails on valid input.
2964 rm -f conftest.err conftest.$ac_ext
2966 # OK, works on sane cases. Now check whether non-existent headers
2967 # can be detected and how.
2968 cat >conftest.$ac_ext <<_ACEOF
2969 #line $LINENO "configure"
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2975 #include <ac_nonexistent.h>
2977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2980 grep -v '^ *+' conftest.er1 >conftest.err
2982 cat conftest.err >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } >/dev/null; then
2985 if test -s conftest.err; then
2986 ac_cpp_err=$ac_c_preproc_warn_flag
2993 if test -z "$ac_cpp_err"; then
2994 # Broken: success on invalid input.
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 # Passes both tests.
3004 rm -f conftest.err conftest.$ac_ext
3007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3008 rm -f conftest.err conftest.$ac_ext
3009 if $ac_preproc_ok; then
3012 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3013 See \`config.log' for more details." >&5
3014 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3015 See \`config.log' for more details." >&2;}
3016 { (exit 1); exit 1; }; }
3020 ac_cpp='$CPP $CPPFLAGS'
3021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026 echo "$as_me:$LINENO: checking for egrep" >&5
3027 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3028 if test "${ac_cv_prog_egrep+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3032 then ac_cv_prog_egrep='grep -E'
3033 else ac_cv_prog_egrep='egrep'
3036 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3037 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3038 EGREP=$ac_cv_prog_egrep
3041 if test $ac_cv_c_compiler_gnu = yes; then
3042 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3043 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3044 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 ac_pattern="Autoconf.*'x'"
3048 cat >conftest.$ac_ext <<_ACEOF
3049 #line $LINENO "configure"
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3059 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3060 ac_cv_prog_gcc_traditional=yes
3062 ac_cv_prog_gcc_traditional=no
3067 if test $ac_cv_prog_gcc_traditional = no; then
3068 cat >conftest.$ac_ext <<_ACEOF
3069 #line $LINENO "configure"
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h. */
3078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3079 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3080 ac_cv_prog_gcc_traditional=yes
3086 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3087 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3088 if test $ac_cv_prog_gcc_traditional = yes; then
3089 CC="$CC -traditional"
3095 cat >>confdefs.h <<\_ACEOF
3101 # Find a good install program. We prefer a C program (faster),
3102 # so one script is as good as another. But avoid the broken or
3103 # incompatible versions:
3104 # SysV /etc/install, /usr/sbin/install
3105 # SunOS /usr/etc/install
3106 # IRIX /sbin/install
3108 # AmigaOS /C/install, which installs bootblocks on floppy discs
3109 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3112 # ./install, which can be erroneously created by make from ./install.sh.
3113 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3114 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3115 if test -z "$INSTALL"; then
3116 if test "${ac_cv_path_install+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 test -z "$as_dir" && as_dir=.
3124 # Account for people who put trailing slashes in PATH elements.
3126 ./ | .// | /cC/* | \
3127 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3130 # OSF1 and SCO ODT 3.0 have their own names for install.
3131 # Don't use installbsd from OSF since it installs stuff as root
3133 for ac_prog in ginstall scoinst install; do
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3136 if test $ac_prog = install &&
3137 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3138 # AIX install. It has an incompatible calling convention.
3140 elif test $ac_prog = install &&
3141 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3142 # program-specific install script used by HP pwplus--don't use.
3145 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3157 if test "${ac_cv_path_install+set}" = set; then
3158 INSTALL=$ac_cv_path_install
3160 # As a last resort, use the slow shell script. We don't cache a
3161 # path for INSTALL within a source directory, because that will
3162 # break other packages using the cache if that directory is
3163 # removed, or if the path is relative.
3164 INSTALL=$ac_install_sh
3167 echo "$as_me:$LINENO: result: $INSTALL" >&5
3168 echo "${ECHO_T}$INSTALL" >&6
3170 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3171 # It thinks the first close brace ends the variable substitution.
3172 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3174 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3176 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3178 if test -n "$ac_tool_prefix"; then
3179 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3180 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3181 echo "$as_me:$LINENO: checking for $ac_word" >&5
3182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3183 if test "${ac_cv_prog_RANLIB+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 if test -n "$RANLIB"; then
3187 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 RANLIB=$ac_cv_prog_RANLIB
3206 if test -n "$RANLIB"; then
3207 echo "$as_me:$LINENO: result: $RANLIB" >&5
3208 echo "${ECHO_T}$RANLIB" >&6
3210 echo "$as_me:$LINENO: result: no" >&5
3211 echo "${ECHO_T}no" >&6
3215 if test -z "$ac_cv_prog_RANLIB"; then
3216 ac_ct_RANLIB=$RANLIB
3217 # Extract the first word of "ranlib", so it can be a program name with args.
3218 set dummy ranlib; ac_word=$2
3219 echo "$as_me:$LINENO: checking for $ac_word" >&5
3220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3221 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 if test -n "$ac_ct_RANLIB"; then
3225 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234 ac_cv_prog_ac_ct_RANLIB="ranlib"
3235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3244 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3245 if test -n "$ac_ct_RANLIB"; then
3246 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3247 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3249 echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3253 RANLIB=$ac_ct_RANLIB
3255 RANLIB="$ac_cv_prog_RANLIB"
3258 # Extract the first word of "mv", so it can be a program name with args.
3259 set dummy mv; ac_word=$2
3260 echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262 if test "${ac_cv_path_MV+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3290 if test -n "$MV"; then
3291 echo "$as_me:$LINENO: result: $MV" >&5
3292 echo "${ECHO_T}$MV" >&6
3294 echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3298 # Extract the first word of "rm", so it can be a program name with args.
3299 set dummy rm; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_path_RM+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3330 if test -n "$RM"; then
3331 echo "$as_me:$LINENO: result: $RM" >&5
3332 echo "${ECHO_T}$RM" >&6
3334 echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6
3338 # Extract the first word of "cp", so it can be a program name with args.
3339 set dummy cp; ac_word=$2
3340 echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_path_CP+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3370 if test -n "$CP"; then
3371 echo "$as_me:$LINENO: result: $CP" >&5
3372 echo "${ECHO_T}$CP" >&6
3374 echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3378 # Extract the first word of "sed", so it can be a program name with args.
3379 set dummy sed; ac_word=$2
3380 echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382 if test "${ac_cv_path_SED+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3410 if test -n "$SED"; then
3411 echo "$as_me:$LINENO: result: $SED" >&5
3412 echo "${ECHO_T}$SED" >&6
3414 echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3418 # Extract the first word of "awk", so it can be a program name with args.
3419 set dummy awk; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_path_AWK+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3450 if test -n "$AWK"; then
3451 echo "$as_me:$LINENO: result: $AWK" >&5
3452 echo "${ECHO_T}$AWK" >&6
3454 echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3458 # Extract the first word of "echo", so it can be a program name with args.
3459 set dummy echo; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_ECHO+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3488 ECHO=$ac_cv_path_ECHO
3490 if test -n "$ECHO"; then
3491 echo "$as_me:$LINENO: result: $ECHO" >&5
3492 echo "${ECHO_T}$ECHO" >&6
3494 echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3498 # Extract the first word of "cmp", so it can be a program name with args.
3499 set dummy cmp; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_path_CMP+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3530 if test -n "$CMP"; then
3531 echo "$as_me:$LINENO: result: $CMP" >&5
3532 echo "${ECHO_T}$CMP" >&6
3534 echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3538 # Extract the first word of "tbl", so it can be a program name with args.
3539 set dummy tbl; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_path_TBL+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3570 if test -n "$TBL"; then
3571 echo "$as_me:$LINENO: result: $TBL" >&5
3572 echo "${ECHO_T}$TBL" >&6
3574 echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3578 # Extract the first word of "ar", so it can be a program name with args.
3579 set dummy ar; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_path_AR+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3610 if test -n "$AR"; then
3611 echo "$as_me:$LINENO: result: $AR" >&5
3612 echo "${ECHO_T}$AR" >&6
3614 echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3618 # Extract the first word of "ranlib", so it can be a program name with args.
3619 set dummy ranlib; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_path_RANLIB+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3648 RANLIB=$ac_cv_path_RANLIB
3650 if test -n "$RANLIB"; then
3651 echo "$as_me:$LINENO: result: $RANLIB" >&5
3652 echo "${ECHO_T}$RANLIB" >&6
3654 echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3658 # Extract the first word of "openssl", so it can be a program name with args.
3659 set dummy openssl; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_path_OPENSSL+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3688 OPENSSL=$ac_cv_path_OPENSSL
3690 if test -n "$OPENSSL"; then
3691 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3692 echo "${ECHO_T}$OPENSSL" >&6
3694 echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3698 # Extract the first word of "mtx", so it can be a program name with args.
3699 set dummy mtx; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_path_MTX+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3730 if test -n "$MTX"; then
3731 echo "$as_me:$LINENO: result: $MTX" >&5
3732 echo "${ECHO_T}$MTX" >&6
3734 echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3738 # Extract the first word of "pkg-config", so it can be a program name with args.
3739 set dummy pkg-config; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3768 PKGCONFIG=$ac_cv_path_PKGCONFIG
3770 if test -n "$PKGCONFIG"; then
3771 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3772 echo "${ECHO_T}$PKGCONFIG" >&6
3774 echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3779 test -n "$ARFLAG" || ARFLAGS="cr"
3792 echo "$as_me:$LINENO: checking for Operating System" >&5
3793 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3796 *cygwin* ) CYGWIN=yes;;
3800 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3806 HAVE_SUN_OS_FALSE='#'
3808 HAVE_SUN_OS_TRUE='#'
3811 cat >>confdefs.h <<\_ACEOF
3812 #define HAVE_SUN_OS 1
3820 HAVE_SUN_OS_FALSE='#'
3822 HAVE_SUN_OS_TRUE='#'
3827 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3833 HAVE_OSF1_OS_FALSE='#'
3835 HAVE_OSF1_OS_TRUE='#'
3838 cat >>confdefs.h <<\_ACEOF
3839 #define HAVE_OSF1_OS 1
3847 HAVE_OSF1_OS_FALSE='#'
3849 HAVE_OSF1_OS_TRUE='#'
3854 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3860 HAVE_AIX_OS_FALSE='#'
3862 HAVE_AIX_OS_TRUE='#'
3865 cat >>confdefs.h <<\_ACEOF
3866 #define HAVE_AIX_OS 1
3874 HAVE_AIX_OS_FALSE='#'
3876 HAVE_AIX_OS_TRUE='#'
3881 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3887 HAVE_HPUX_OS_FALSE='#'
3889 HAVE_HPUX_OS_TRUE='#'
3892 cat >>confdefs.h <<\_ACEOF
3893 #define HAVE_HPUX_OS 1
3901 HAVE_HPUX_OS_FALSE='#'
3903 HAVE_HPUX_OS_TRUE='#'
3908 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3914 HAVE_LINUX_OS_FALSE='#'
3916 HAVE_LINUX_OS_TRUE='#'
3917 HAVE_LINUX_OS_FALSE=
3919 cat >>confdefs.h <<\_ACEOF
3920 #define HAVE_LINUX_OS 1
3928 HAVE_LINUX_OS_FALSE='#'
3930 HAVE_LINUX_OS_TRUE='#'
3931 HAVE_LINUX_OS_FALSE=
3935 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3940 HAVE_FREEBSD_OS_TRUE=
3941 HAVE_FREEBSD_OS_FALSE='#'
3943 HAVE_FREEBSD_OS_TRUE='#'
3944 HAVE_FREEBSD_OS_FALSE=
3946 cat >>confdefs.h <<\_ACEOF
3947 #define HAVE_FREEBSD_OS 1
3954 HAVE_FREEBSD_OS_TRUE=
3955 HAVE_FREEBSD_OS_FALSE='#'
3957 HAVE_FREEBSD_OS_TRUE='#'
3958 HAVE_FREEBSD_OS_FALSE=
3962 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3967 HAVE_NETBSD_OS_TRUE=
3968 HAVE_NETBSD_OS_FALSE='#'
3970 HAVE_NETBSD_OS_TRUE='#'
3971 HAVE_NETBSD_OS_FALSE=
3973 cat >>confdefs.h <<\_ACEOF
3974 #define HAVE_NETBSD_OS 1
3981 HAVE_NETBSD_OS_TRUE=
3982 HAVE_NETBSD_OS_FALSE='#'
3984 HAVE_NETBSD_OS_TRUE='#'
3985 HAVE_NETBSD_OS_FALSE=
3989 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3994 HAVE_OPENBSD_OS_TRUE=
3995 HAVE_OPENBSD_OS_FALSE='#'
3997 HAVE_OPENBSD_OS_TRUE='#'
3998 HAVE_OPENBSD_OS_FALSE=
4000 cat >>confdefs.h <<\_ACEOF
4001 #define HAVE_OPENBSD_OS 1
4008 HAVE_OPENBSD_OS_TRUE=
4009 HAVE_OPENBSD_OS_FALSE='#'
4011 HAVE_OPENBSD_OS_TRUE='#'
4012 HAVE_OPENBSD_OS_FALSE=
4016 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4022 HAVE_BSDI_OS_FALSE='#'
4024 HAVE_BSDI_OS_TRUE='#'
4027 cat >>confdefs.h <<\_ACEOF
4028 #define HAVE_BSDI_OS 1
4036 HAVE_BSDI_OS_FALSE='#'
4038 HAVE_BSDI_OS_TRUE='#'
4043 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4049 HAVE_SGI_OS_FALSE='#'
4051 HAVE_SGI_OS_TRUE='#'
4054 cat >>confdefs.h <<\_ACEOF
4055 #define HAVE_SGI_OS 1
4063 HAVE_SGI_OS_FALSE='#'
4065 HAVE_SGI_OS_TRUE='#'
4070 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4076 HAVE_IRIX_OS_FALSE='#'
4078 HAVE_IRIX_OS_TRUE='#'
4081 cat >>confdefs.h <<\_ACEOF
4082 #define HAVE_IRIX_OS 1
4090 HAVE_IRIX_OS_FALSE='#'
4092 HAVE_IRIX_OS_TRUE='#'
4097 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4102 HAVE_DARWIN_OS_TRUE=
4103 HAVE_DARWIN_OS_FALSE='#'
4105 HAVE_DARWIN_OS_TRUE='#'
4106 HAVE_DARWIN_OS_FALSE=
4108 cat >>confdefs.h <<\_ACEOF
4109 #define HAVE_DARWIN_OS 1
4116 HAVE_DARWIN_OS_TRUE=
4117 HAVE_DARWIN_OS_FALSE='#'
4119 HAVE_DARWIN_OS_TRUE='#'
4120 HAVE_DARWIN_OS_FALSE=
4124 echo "$as_me:$LINENO: result: \" \"" >&5
4125 echo "${ECHO_T}\" \"" >&6
4128 # -----------------------------------------------------------
4129 # ----------------------------------------------------------
4130 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4131 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4132 if test "x$DISTNAME" != "x"
4134 echo "distname set to $DISTNAME"
4135 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4138 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4141 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4162 elif test -f /etc/SuSE-release
4165 elif test -d /etc/SuSEconfig
4168 elif test -f /etc/mandrake-release
4171 elif test -f /etc/redhat-release
4174 elif test -f /etc/gentoo-release
4177 elif test -f /etc/debian_version
4180 elif test -f /etc/slackware-version
4183 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4186 elif test -f /etc/engarde-version
4189 elif test "$CYGWIN" = yes
4192 cat >>confdefs.h <<\_ACEOF
4193 #define HAVE_CYGWIN 1
4199 echo "$as_me:$LINENO: result: \" \"" >&5
4200 echo "${ECHO_T}\" \"" >&6
4203 # -----------------------------------------------------------
4204 # ----------------------------------------------------------
4209 INSIDE_GNOME_COMMON_TRUE=
4210 INSIDE_GNOME_COMMON_FALSE='#'
4212 INSIDE_GNOME_COMMON_TRUE='#'
4213 INSIDE_GNOME_COMMON_FALSE=
4216 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4218 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4221 # ------------------------------------------------------------------
4222 # If the user has not set --prefix, we set our default to nothing.
4223 # In this case, if the user has not set --sysconfdir, we set it
4224 # to the package default of /etc/bacula. If either --prefix or
4225 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4226 # ------------------------------------------------------------------
4227 if test x${prefix} = xNONE ; then
4228 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4229 sysconfdir=/etc/bacula
4233 sysconfdir=`eval echo ${sysconfdir}`
4235 # -------------------------------------------------------------------------
4236 # If the user has not set --exec-prefix, we default to ${prefix}
4237 # -------------------------------------------------------------------------
4238 if test x${exec_prefix} = xNONE ; then
4239 exec_prefix=${prefix}
4242 # ------------------------------------------------------------------
4243 # If the user has not set --sbindir, we set our default as /sbin
4244 # ------------------------------------------------------------------
4245 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4246 sbindir=${exec_prefix}/sbin
4248 sbindir=`eval echo ${sbindir}`
4250 # ------------------------------------------------------------------
4251 # All list of languages for which a translation exist. Each
4252 # language is separated by a space.
4253 # ------------------------------------------------------------------
4256 for ac_prog in msgfmt
4258 # Extract the first word of "$ac_prog", so it can be a program name with args.
4259 set dummy $ac_prog; ac_word=$2
4260 echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_path_MSGFMT+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 MSGFMT=$ac_cv_path_MSGFMT
4289 if test -n "$MSGFMT"; then
4290 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4291 echo "${ECHO_T}$MSGFMT" >&6
4293 echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6
4297 test -n "$MSGFMT" && break
4299 test -n "$MSGFMT" || MSGFMT="no"
4301 if test "$MSGFMT" = "no"
4303 echo 'msgfmt program not found, disabling NLS !'
4305 USE_INCLUDED_LIBINTL=no
4313 support_smartalloc=yes
4314 support_readline=yes
4316 support_static_tools=no
4317 support_static_fd=no
4318 support_static_sd=no
4319 support_static_dir=no
4320 support_static_cons=no
4321 build_client_only=no
4327 # -------------------------------------------
4328 # gnome (default off)
4329 # -------------------------------------------
4330 # Check whether --enable-gnome or --disable-gnome was given.
4331 if test "${enable_gnome+set}" = set; then
4332 enableval="$enable_gnome"
4333 if test x$enableval = xyes; then
4339 if test x$support_gnome = xyes; then
4340 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4342 if test $pkg = 0; then
4343 GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4344 GNOMEUI_LIBS=`pkg-config --libs-only-other libgnomeui-2.0`
4345 GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4346 GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4351 GNOME_DIR=src/gnome2-console
4364 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4365 if test "${with_gnome_includes+set}" = set; then
4366 withval="$with_gnome_includes"
4368 CFLAGS="$CFLAGS -I$withval"
4373 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4374 if test "${with_gnome_libs+set}" = set; then
4375 withval="$with_gnome_libs"
4377 LDFLAGS="$LDFLAGS -L$withval"
4378 gnome_prefix=$withval
4383 # Check whether --with-gnome or --without-gnome was given.
4384 if test "${with_gnome+set}" = set; then
4385 withval="$with_gnome"
4386 if test x$withval = xyes; then
4390 if test "x$withval" = xno; then
4394 LDFLAGS="$LDFLAGS -L$withval/lib"
4395 CFLAGS="$CFLAGS -I$withval/include"
4396 gnome_prefix=$withval/lib
4403 if test "x$want_gnome" = xyes; then
4405 # Extract the first word of "gnome-config", so it can be a program name with args.
4406 set dummy gnome-config; ac_word=$2
4407 echo "$as_me:$LINENO: checking for $ac_word" >&5
4408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4409 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 case $GNOME_CONFIG in
4414 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4424 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4435 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4437 if test -n "$GNOME_CONFIG"; then
4438 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4439 echo "${ECHO_T}$GNOME_CONFIG" >&6
4441 echo "$as_me:$LINENO: result: no" >&5
4442 echo "${ECHO_T}no" >&6
4445 if test "$GNOME_CONFIG" = "no"; then
4446 no_gnome_config="yes"
4448 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4449 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4450 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4451 echo "$as_me:$LINENO: result: yes" >&5
4452 echo "${ECHO_T}yes" >&6
4455 # Extract the first word of "orbit-config", so it can be a program name with args.
4456 set dummy orbit-config; ac_word=$2
4457 echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4459 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 case $ORBIT_CONFIG in
4464 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4474 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4485 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4487 if test -n "$ORBIT_CONFIG"; then
4488 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4489 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4491 echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6
4495 # Extract the first word of "orbit-idl", so it can be a program name with args.
4496 set dummy orbit-idl; ac_word=$2
4497 echo "$as_me:$LINENO: checking for $ac_word" >&5
4498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4499 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4525 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4527 if test -n "$ORBIT_IDL"; then
4528 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4529 echo "${ECHO_T}$ORBIT_IDL" >&6
4531 echo "$as_me:$LINENO: result: no" >&5
4532 echo "${ECHO_T}no" >&6
4535 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4536 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4537 if test "${gnome_cv_orbit_found+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4542 gnome_cv_orbit_found=no
4544 gnome_cv_orbit_found=yes
4548 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4549 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4552 if test x$gnome_cv_orbit_found = xyes; then
4554 HAVE_ORBIT_FALSE='#'
4559 if test x$gnome_cv_orbit_found = xyes; then
4561 ORBIT_CFLAGS=`orbit-config --cflags client server`
4562 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4566 if test xfail = xfailure; then
4567 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4568 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4569 { (exit 1); exit 1; }; }
4573 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4574 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4575 if test "${gnome_cv_gnorba_found+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 gnome_cv_gnorba_found=no
4580 if test x$gnome_cv_orbit_found = xyes; then
4581 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4582 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4583 if test -n "$GNORBA_LIBS"; then
4584 gnome_cv_gnorba_found=yes
4589 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4590 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4593 if test x$gnome_cv_gnorba_found = xyes; then
4595 HAVE_GNORBA_FALSE='#'
4597 HAVE_GNORBA_TRUE='#'
4600 if test x$gnome_cv_orbit_found = xyes; then
4602 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4603 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4607 if test xfail = xfailure; then
4608 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4609 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4610 { (exit 1); exit 1; }; }
4614 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4615 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4616 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4617 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4618 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4619 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4620 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4623 echo "$as_me:$LINENO: result: no" >&5
4624 echo "${ECHO_T}no" >&6
4625 no_gnome_config="yes"
4629 if test x$exec_prefix = xNONE; then
4630 if test x$prefix = xNONE; then
4631 gnome_prefix=$ac_default_prefix/lib
4633 gnome_prefix=$prefix/lib
4636 gnome_prefix=`eval echo \`echo $libdir\``
4639 if test "$no_gnome_config" = "yes"; then
4640 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4641 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4642 if test -f $gnome_prefix/gnomeConf.sh; then
4643 echo "$as_me:$LINENO: result: found" >&5
4644 echo "${ECHO_T}found" >&6
4645 echo "loading gnome configuration from" \
4646 "$gnome_prefix/gnomeConf.sh"
4647 . $gnome_prefix/gnomeConf.sh
4650 echo "$as_me:$LINENO: result: not found" >&5
4651 echo "${ECHO_T}not found" >&6
4652 if test xfail = xfail; then
4653 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4654 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4655 { (exit 1); exit 1; }; }
4664 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4665 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4669 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4670 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4671 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4674 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4675 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4676 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4679 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4680 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4681 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4683 echo "$as_me:$LINENO: result: unknown library" >&5
4684 echo "${ECHO_T}unknown library" >&6
4686 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4687 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4692 GNOME_DIR=src/gnome-console
4698 # -------------------------------------------
4699 # smartalloc (default off)
4700 # -------------------------------------------
4701 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4702 if test "${enable_smartalloc+set}" = set; then
4703 enableval="$enable_smartalloc"
4704 if test x$enableval = xno; then
4705 support_smartalloc=no
4709 if test x$support_smartalloc = xyes; then
4710 cat >>confdefs.h <<\_ACEOF
4711 #define SMARTALLOC 1
4716 # -------------------------------------------
4717 # static-tools (default off)
4718 # -------------------------------------------
4719 # Check whether --enable-static-tools or --disable-static-tools was given.
4720 if test "${enable_static_tools+set}" = set; then
4721 enableval="$enable_static_tools"
4722 if test x$enableval = xyes; then
4723 support_static_tools=yes
4728 if test x$support_static_tools = xyes; then
4729 TTOOL_LDFLAGS="-static"
4733 # -------------------------------------------
4734 # static-fd (default off)
4735 # -------------------------------------------
4736 # Check whether --enable-static-fd or --disable-static-fd was given.
4737 if test "${enable_static_fd+set}" = set; then
4738 enableval="$enable_static_fd"
4739 if test x$enableval = xyes; then
4740 support_static_fd=yes
4745 if test x$support_static_fd = xyes; then
4746 STATIC_FD="static-bacula-fd"
4750 # -------------------------------------------
4751 # static-sd (default off)
4752 # -------------------------------------------
4753 # Check whether --enable-static-sd or --disable-static-sd was given.
4754 if test "${enable_static_sd+set}" = set; then
4755 enableval="$enable_static_sd"
4756 if test x$enableval = xyes; then
4757 support_static_sd=yes
4762 if test x$support_static_sd = xyes; then
4763 STATIC_SD="static-bacula-sd"
4767 # -------------------------------------------
4768 # static-dir (default off)
4769 # -------------------------------------------
4770 # Check whether --enable-static-dir or --disable-static-dir was given.
4771 if test "${enable_static_dir+set}" = set; then
4772 enableval="$enable_static_dir"
4773 if test x$enableval = xyes; then
4774 support_static_dir=yes
4779 if test x$support_static_dir = xyes; then
4780 STATIC_DIR="static-bacula-dir"
4784 # -------------------------------------------
4785 # static-cons (default off)
4786 # -------------------------------------------
4787 # Check whether --enable-static-cons or --disable-static-cons was given.
4788 if test "${enable_static_cons+set}" = set; then
4789 enableval="$enable_static_cons"
4790 if test x$enableval = xyes; then
4791 support_static_cons=yes
4796 if test x$support_static_cons = xyes; then
4797 STATIC_CONS="static-console"
4801 # -------------------------------------------
4802 # client_only (default off)
4803 # -------------------------------------------
4804 # Check whether --enable-client-only or --disable-client-only was given.
4805 if test "${enable_client_only+set}" = set; then
4806 enableval="$enable_client_only"
4807 if test x$enableval = xyes; then
4808 build_client_only=yes
4811 if test x$build_client_only = xno; then
4818 # ---------------------------------------------------
4819 # Check for readline support/directory (default on)
4820 # ---------------------------------------------------
4821 # this allows you to turn it completely off
4822 # Check whether --enable-readline or --disable-readline was given.
4823 if test "${enable_readline+set}" = set; then
4824 enableval="$enable_readline"
4825 if test x$enableval = xno; then
4832 if test x$support_readline = xyes; then
4833 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4834 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4835 if test "${ac_cv_header_stdc+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 cat >conftest.$ac_ext <<_ACEOF
4839 #line $LINENO "configure"
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h. */
4858 rm -f conftest.$ac_objext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860 (eval $ac_compile) 2>&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try='test -s conftest.$ac_objext'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; }; then
4870 ac_cv_header_stdc=yes
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4875 ac_cv_header_stdc=no
4877 rm -f conftest.$ac_objext conftest.$ac_ext
4879 if test $ac_cv_header_stdc = yes; then
4880 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4881 cat >conftest.$ac_ext <<_ACEOF
4882 #line $LINENO "configure"
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4892 $EGREP "memchr" >/dev/null 2>&1; then
4895 ac_cv_header_stdc=no
4901 if test $ac_cv_header_stdc = yes; then
4902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4903 cat >conftest.$ac_ext <<_ACEOF
4904 #line $LINENO "configure"
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4914 $EGREP "free" >/dev/null 2>&1; then
4917 ac_cv_header_stdc=no
4923 if test $ac_cv_header_stdc = yes; then
4924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4925 if test "$cross_compiling" = yes; then
4928 cat >conftest.$ac_ext <<_ACEOF
4929 #line $LINENO "configure"
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4936 #if ((' ' & 0x0FF) == 0x020)
4937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4940 # define ISLOWER(c) \
4941 (('a' <= (c) && (c) <= 'i') \
4942 || ('j' <= (c) && (c) <= 'r') \
4943 || ('s' <= (c) && (c) <= 'z'))
4944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4952 for (i = 0; i < 256; i++)
4953 if (XOR (islower (i), ISLOWER (i))
4954 || toupper (i) != TOUPPER (i))
4959 rm -f conftest$ac_exeext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4961 (eval $ac_link) 2>&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; }; then
4972 echo "$as_me: program exited with status $ac_status" >&5
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4977 ac_cv_header_stdc=no
4979 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4983 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4984 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4985 if test $ac_cv_header_stdc = yes; then
4987 cat >>confdefs.h <<\_ACEOF
4988 #define STDC_HEADERS 1
4993 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5003 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5004 inttypes.h stdint.h unistd.h
5006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5007 echo "$as_me:$LINENO: checking for $ac_header" >&5
5008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 cat >conftest.$ac_ext <<_ACEOF
5013 #line $LINENO "configure"
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5019 $ac_includes_default
5021 #include <$ac_header>
5023 rm -f conftest.$ac_objext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025 (eval $ac_compile) 2>&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } &&
5029 { ac_try='test -s conftest.$ac_objext'
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; }; then
5035 eval "$as_ac_Header=yes"
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5040 eval "$as_ac_Header=no"
5042 rm -f conftest.$ac_objext conftest.$ac_ext
5044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5047 cat >>confdefs.h <<_ACEOF
5048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5057 # Check whether --with-readline or --without-readline was given.
5058 if test "${with_readline+set}" = set; then
5059 withval="$with_readline"
5061 case "$with_readline" in
5064 if test "$with_readline" != "yes"; then
5065 CONS_INC="-I${with_readline}"
5066 CONS_LDFLAGS="-L$with_readline"
5068 with_readline="/usr/include/readline"
5070 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5072 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5073 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5080 # Is the header compilable?
5081 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5082 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5083 cat >conftest.$ac_ext <<_ACEOF
5084 #line $LINENO "configure"
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5090 $ac_includes_default
5091 #include <${with_readline}/readline.h>
5093 rm -f conftest.$ac_objext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095 (eval $ac_compile) 2>&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } &&
5099 { ac_try='test -s conftest.$ac_objext'
5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; }; then
5105 ac_header_compiler=yes
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5110 ac_header_compiler=no
5112 rm -f conftest.$ac_objext conftest.$ac_ext
5113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5114 echo "${ECHO_T}$ac_header_compiler" >&6
5116 # Is the header present?
5117 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5118 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5119 cat >conftest.$ac_ext <<_ACEOF
5120 #line $LINENO "configure"
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h. */
5126 #include <${with_readline}/readline.h>
5128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5131 grep -v '^ *+' conftest.er1 >conftest.err
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } >/dev/null; then
5136 if test -s conftest.err; then
5137 ac_cpp_err=$ac_c_preproc_warn_flag
5144 if test -z "$ac_cpp_err"; then
5145 ac_header_preproc=yes
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5150 ac_header_preproc=no
5152 rm -f conftest.err conftest.$ac_ext
5153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5154 echo "${ECHO_T}$ac_header_preproc" >&6
5156 # So? What about this header?
5157 case $ac_header_compiler:$ac_header_preproc in
5159 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5160 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5162 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5165 ## ------------------------------------ ##
5166 ## Report this to bug-autoconf@gnu.org. ##
5167 ## ------------------------------------ ##
5170 sed "s/^/$as_me: WARNING: /" >&2
5173 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5174 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5175 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5176 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5177 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5178 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5181 ## ------------------------------------ ##
5182 ## Report this to bug-autoconf@gnu.org. ##
5183 ## ------------------------------------ ##
5186 sed "s/^/$as_me: WARNING: /" >&2
5189 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5190 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 eval "$as_ac_Header=$ac_header_preproc"
5196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5201 cat >>confdefs.h <<\_ACEOF
5202 #define HAVE_READLINE 1
5205 CONS_LIBS="-lreadline -ltermcap"
5209 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5210 echo "$as_me: error: *** readline library missing" >&2;}
5211 { (exit 1); exit 1; }; }
5222 # check for standard readline library
5223 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5224 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5225 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5226 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5230 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5232 # Is the header compilable?
5233 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5234 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5235 cat >conftest.$ac_ext <<_ACEOF
5236 #line $LINENO "configure"
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5242 $ac_includes_default
5243 #include </usr/include/readline/readline.h>
5245 rm -f conftest.$ac_objext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5247 (eval $ac_compile) 2>&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } &&
5251 { ac_try='test -s conftest.$ac_objext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 ac_header_compiler=yes
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5262 ac_header_compiler=no
5264 rm -f conftest.$ac_objext conftest.$ac_ext
5265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5266 echo "${ECHO_T}$ac_header_compiler" >&6
5268 # Is the header present?
5269 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5270 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5271 cat >conftest.$ac_ext <<_ACEOF
5272 #line $LINENO "configure"
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 #include </usr/include/readline/readline.h>
5280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5283 grep -v '^ *+' conftest.er1 >conftest.err
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } >/dev/null; then
5288 if test -s conftest.err; then
5289 ac_cpp_err=$ac_c_preproc_warn_flag
5296 if test -z "$ac_cpp_err"; then
5297 ac_header_preproc=yes
5299 echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5302 ac_header_preproc=no
5304 rm -f conftest.err conftest.$ac_ext
5305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5306 echo "${ECHO_T}$ac_header_preproc" >&6
5308 # So? What about this header?
5309 case $ac_header_compiler:$ac_header_preproc in
5311 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5312 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5313 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5314 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5317 ## ------------------------------------ ##
5318 ## Report this to bug-autoconf@gnu.org. ##
5319 ## ------------------------------------ ##
5322 sed "s/^/$as_me: WARNING: /" >&2
5325 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5326 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5327 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5328 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5329 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5330 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5333 ## ------------------------------------ ##
5334 ## Report this to bug-autoconf@gnu.org. ##
5335 ## ------------------------------------ ##
5338 sed "s/^/$as_me: WARNING: /" >&2
5341 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5342 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5343 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5348 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5349 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5352 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5353 cat >>confdefs.h <<\_ACEOF
5354 #define HAVE_READLINE 1
5358 CONS_INC="-I/usr/include/readline"
5359 CONS_LIBS="-lreadline -ltermcap"
5363 # Did not find standard library, so try Bacula's default
5364 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5366 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5367 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5374 # Is the header compilable?
5375 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5376 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5377 cat >conftest.$ac_ext <<_ACEOF
5378 #line $LINENO "configure"
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384 $ac_includes_default
5385 #include <${TOP_DIR}/depkgs/readline/readline.h>
5387 rm -f conftest.$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389 (eval $ac_compile) 2>&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } &&
5393 { ac_try='test -s conftest.$ac_objext'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; }; then
5399 ac_header_compiler=yes
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5404 ac_header_compiler=no
5406 rm -f conftest.$ac_objext conftest.$ac_ext
5407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5408 echo "${ECHO_T}$ac_header_compiler" >&6
5410 # Is the header present?
5411 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5412 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5413 cat >conftest.$ac_ext <<_ACEOF
5414 #line $LINENO "configure"
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5420 #include <${TOP_DIR}/depkgs/readline/readline.h>
5422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5425 grep -v '^ *+' conftest.er1 >conftest.err
5427 cat conftest.err >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } >/dev/null; then
5430 if test -s conftest.err; then
5431 ac_cpp_err=$ac_c_preproc_warn_flag
5438 if test -z "$ac_cpp_err"; then
5439 ac_header_preproc=yes
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5444 ac_header_preproc=no
5446 rm -f conftest.err conftest.$ac_ext
5447 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5448 echo "${ECHO_T}$ac_header_preproc" >&6
5450 # So? What about this header?
5451 case $ac_header_compiler:$ac_header_preproc in
5453 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5454 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5455 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5456 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5459 ## ------------------------------------ ##
5460 ## Report this to bug-autoconf@gnu.org. ##
5461 ## ------------------------------------ ##
5464 sed "s/^/$as_me: WARNING: /" >&2
5467 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5468 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5469 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5470 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5471 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5472 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5475 ## ------------------------------------ ##
5476 ## Report this to bug-autoconf@gnu.org. ##
5477 ## ------------------------------------ ##
5480 sed "s/^/$as_me: WARNING: /" >&2
5483 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5484 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 eval "$as_ac_Header=$ac_header_preproc"
5490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5495 cat >>confdefs.h <<\_ACEOF
5496 #define HAVE_READLINE 1
5500 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5501 CONS_LIBS="-lreadline -lhistory -ltermcap"
5502 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5503 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5506 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5507 echo "$as_me: error: *** readline library missing" >&2;}
5508 { (exit 1); exit 1; }; }
5528 # Minimal stuff for readline Makefile configuration
5532 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5533 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5534 if test "${ac_cv_header_stat_broken+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 cat >conftest.$ac_ext <<_ACEOF
5538 #line $LINENO "configure"
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5544 #include <sys/types.h>
5545 #include <sys/stat.h>
5547 #if defined(S_ISBLK) && defined(S_IFDIR)
5548 # if S_ISBLK (S_IFDIR)
5553 #if defined(S_ISBLK) && defined(S_IFCHR)
5554 # if S_ISBLK (S_IFCHR)
5559 #if defined(S_ISLNK) && defined(S_IFREG)
5560 # if S_ISLNK (S_IFREG)
5565 #if defined(S_ISSOCK) && defined(S_IFREG)
5566 # if S_ISSOCK (S_IFREG)
5572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5573 $EGREP "You lose" >/dev/null 2>&1; then
5574 ac_cv_header_stat_broken=yes
5576 ac_cv_header_stat_broken=no
5581 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5582 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5583 if test $ac_cv_header_stat_broken = yes; then
5585 cat >>confdefs.h <<\_ACEOF
5586 #define STAT_MACROS_BROKEN 1
5597 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5598 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5599 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5600 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 cat >conftest.$ac_ext <<_ACEOF
5605 #line $LINENO "configure"
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5611 #include <sys/types.h>
5623 rm -f conftest.$ac_objext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625 (eval $ac_compile) 2>&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } &&
5629 { ac_try='test -s conftest.$ac_objext'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5635 eval "$as_ac_Header=yes"
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 eval "$as_ac_Header=no"
5642 rm -f conftest.$ac_objext conftest.$ac_ext
5644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5647 cat >>confdefs.h <<_ACEOF
5648 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5651 ac_header_dirent=$ac_hdr; break
5655 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5656 if test $ac_header_dirent = dirent.h; then
5657 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5658 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5659 if test "${ac_cv_search_opendir+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 ac_func_search_save_LIBS=$LIBS
5663 ac_cv_search_opendir=no
5664 cat >conftest.$ac_ext <<_ACEOF
5665 #line $LINENO "configure"
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h. */
5672 /* Override any gcc2 internal prototype to avoid an error. */
5676 /* We use char because int might match the return type of a gcc2
5677 builtin and then its argument prototype would still apply. */
5687 rm -f conftest.$ac_objext conftest$ac_exeext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5689 (eval $ac_link) 2>&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } &&
5693 { ac_try='test -s conftest$ac_exeext'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5699 ac_cv_search_opendir="none required"
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5706 if test "$ac_cv_search_opendir" = no; then
5707 for ac_lib in dir; do
5708 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5709 cat >conftest.$ac_ext <<_ACEOF
5710 #line $LINENO "configure"
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5717 /* Override any gcc2 internal prototype to avoid an error. */
5721 /* We use char because int might match the return type of a gcc2
5722 builtin and then its argument prototype would still apply. */
5732 rm -f conftest.$ac_objext conftest$ac_exeext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734 (eval $ac_link) 2>&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } &&
5738 { ac_try='test -s conftest$ac_exeext'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5744 ac_cv_search_opendir="-l$ac_lib"
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5754 LIBS=$ac_func_search_save_LIBS
5756 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5757 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5758 if test "$ac_cv_search_opendir" != no; then
5759 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5764 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5765 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5766 if test "${ac_cv_search_opendir+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 ac_func_search_save_LIBS=$LIBS
5770 ac_cv_search_opendir=no
5771 cat >conftest.$ac_ext <<_ACEOF
5772 #line $LINENO "configure"
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5779 /* Override any gcc2 internal prototype to avoid an error. */
5783 /* We use char because int might match the return type of a gcc2
5784 builtin and then its argument prototype would still apply. */
5794 rm -f conftest.$ac_objext conftest$ac_exeext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5796 (eval $ac_link) 2>&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } &&
5800 { ac_try='test -s conftest$ac_exeext'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5806 ac_cv_search_opendir="none required"
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5813 if test "$ac_cv_search_opendir" = no; then
5815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5816 cat >conftest.$ac_ext <<_ACEOF
5817 #line $LINENO "configure"
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h. */
5824 /* Override any gcc2 internal prototype to avoid an error. */
5828 /* We use char because int might match the return type of a gcc2
5829 builtin and then its argument prototype would still apply. */
5839 rm -f conftest.$ac_objext conftest$ac_exeext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5841 (eval $ac_link) 2>&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -s conftest$ac_exeext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 ac_cv_search_opendir="-l$ac_lib"
5854 echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5861 LIBS=$ac_func_search_save_LIBS
5863 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5864 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5865 if test "$ac_cv_search_opendir" != no; then
5866 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5881 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
5883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5884 echo "$as_me:$LINENO: checking for $ac_func" >&5
5885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5886 if eval "test \"\${$as_ac_var+set}\" = set"; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 cat >conftest.$ac_ext <<_ACEOF
5890 #line $LINENO "configure"
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5896 /* System header to define __stub macros and hopefully few prototypes,
5897 which can conflict with char $ac_func (); below.
5898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5899 <limits.h> exists even on freestanding compilers. */
5901 # include <limits.h>
5903 # include <assert.h>
5905 /* Override any gcc2 internal prototype to avoid an error. */
5910 /* We use char because int might match the return type of a gcc2
5911 builtin and then its argument prototype would still apply. */
5913 /* The GNU C library defines this for functions which it implements
5914 to always fail with ENOSYS. Some functions are actually named
5915 something starting with __ and the normal name is an alias. */
5916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5919 char (*f) () = $ac_func;
5928 return f != $ac_func;
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935 (eval $ac_link) 2>&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } &&
5939 { ac_try='test -s conftest$ac_exeext'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5945 eval "$as_ac_var=yes"
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5950 eval "$as_ac_var=no"
5952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5956 if test `eval echo '${'$as_ac_var'}'` = yes; then
5957 cat >>confdefs.h <<_ACEOF
5958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5965 for ac_func in nanosleep
5967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5968 echo "$as_me:$LINENO: checking for $ac_func" >&5
5969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5970 if eval "test \"\${$as_ac_var+set}\" = set"; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 cat >conftest.$ac_ext <<_ACEOF
5974 #line $LINENO "configure"
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 /* System header to define __stub macros and hopefully few prototypes,
5981 which can conflict with char $ac_func (); below.
5982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5983 <limits.h> exists even on freestanding compilers. */
5985 # include <limits.h>
5987 # include <assert.h>
5989 /* Override any gcc2 internal prototype to avoid an error. */
5994 /* We use char because int might match the return type of a gcc2
5995 builtin and then its argument prototype would still apply. */
5997 /* The GNU C library defines this for functions which it implements
5998 to always fail with ENOSYS. Some functions are actually named
5999 something starting with __ and the normal name is an alias. */
6000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6003 char (*f) () = $ac_func;
6012 return f != $ac_func;
6017 rm -f conftest.$ac_objext conftest$ac_exeext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019 (eval $ac_link) 2>&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -s conftest$ac_exeext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 eval "$as_ac_var=yes"
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 eval "$as_ac_var=no"
6036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6039 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6040 if test `eval echo '${'$as_ac_var'}'` = yes; then
6041 cat >>confdefs.h <<_ACEOF
6042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6050 for ac_header in varargs.h
6052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6054 echo "$as_me:$LINENO: checking for $ac_header" >&5
6055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6062 # Is the header compilable?
6063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6065 cat >conftest.$ac_ext <<_ACEOF
6066 #line $LINENO "configure"
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6072 $ac_includes_default
6073 #include <$ac_header>
6075 rm -f conftest.$ac_objext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077 (eval $ac_compile) 2>&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } &&
6081 { ac_try='test -s conftest.$ac_objext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_header_compiler=yes
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6092 ac_header_compiler=no
6094 rm -f conftest.$ac_objext conftest.$ac_ext
6095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6096 echo "${ECHO_T}$ac_header_compiler" >&6
6098 # Is the header present?
6099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6101 cat >conftest.$ac_ext <<_ACEOF
6102 #line $LINENO "configure"
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 #include <$ac_header>
6110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6113 grep -v '^ *+' conftest.er1 >conftest.err
6115 cat conftest.err >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } >/dev/null; then
6118 if test -s conftest.err; then
6119 ac_cpp_err=$ac_c_preproc_warn_flag
6126 if test -z "$ac_cpp_err"; then
6127 ac_header_preproc=yes
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6132 ac_header_preproc=no
6134 rm -f conftest.err conftest.$ac_ext
6135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6136 echo "${ECHO_T}$ac_header_preproc" >&6
6138 # So? What about this header?
6139 case $ac_header_compiler:$ac_header_preproc in
6141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6147 ## ------------------------------------ ##
6148 ## Report this to bug-autoconf@gnu.org. ##
6149 ## ------------------------------------ ##
6152 sed "s/^/$as_me: WARNING: /" >&2
6155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6163 ## ------------------------------------ ##
6164 ## Report this to bug-autoconf@gnu.org. ##
6165 ## ------------------------------------ ##
6168 sed "s/^/$as_me: WARNING: /" >&2
6171 echo "$as_me:$LINENO: checking for $ac_header" >&5
6172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 eval "$as_ac_Header=$ac_header_preproc"
6178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6183 cat >>confdefs.h <<_ACEOF
6184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6192 # End of readline stuff
6193 # -----------------------------------------------------------------------
6196 # ---------------------------------------------------
6197 # Check for GMP support/directory
6198 # ---------------------------------------------------
6202 # [ --with-gmp[=DIR] Specify gmp library directory],
6204 # case "$with_gmp" in
6207 # if test "$with_gmp" != "yes"; then
6208 # GMP_INC="-I$with_gmp"
6210 # GMP_LDFLAGS="-L$with_gmp"
6212 # with_gmp="/usr/include"
6214 # AC_CHECK_HEADER($with_gmp/gmp.h,
6215 # [ AC_MSG_RESULT(yes)
6216 # AC_DEFINE(HAVE_GMP)
6220 # [ AC_MSG_ERROR([*** gmp library missing])
6226 # # check for standard gmp library
6227 # AC_CHECK_HEADER(/usr/include/gmp.h,
6228 # [ AC_MSG_RESULT(yes)
6229 # AC_DEFINE(HAVE_GMP)
6234 # # Did not find standard library, so use our own
6235 # AC_MSG_RESULT(yes)
6236 # AC_DEFINE(HAVE_GMP)
6239 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6241 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6242 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6248 #AC_SUBST(GMP_LDFLAGS)
6252 # -----------------------------------------------------------------------
6255 # ---------------------------------------------------
6256 # Check for CWEB support/directory
6257 # ---------------------------------------------------
6262 # [ --with-cweb[=DIR] Specify cweb library directory],
6264 # case "$with_cweb" in
6267 # if test "$with_cweb" != "yes"; then
6268 # CWEB_INC="-I$with_cweb"
6269 # CWEB_LIBS="-lcweb"
6270 # CWEB_LDFLAGS="-L$with_cweb"
6272 # with_cweb="/usr/include"
6274 # AC_CHECK_HEADER($with_cweb/cweb.h,
6275 # [ AC_MSG_RESULT(yes)
6276 # AC_DEFINE(HAVE_CWEB)
6277 # CWEB_LIBS="-lcweb"
6280 # [ AC_MSG_ERROR([*** cweb library missing])
6286 # # check for standard cweb library
6287 # AC_CHECK_HEADER(/usr/include/cweb.h,
6288 # [ AC_MSG_RESULT(yes)
6289 # AC_DEFINE(HAVE_CWEB)
6292 # CWEB_LIBS="-lcweb"
6294 # # Did not find starndard library, so use our own
6295 # AC_MSG_RESULT(yes)
6296 # AC_DEFINE(HAVE_CWEB)
6299 # CWEB=${TOP_DIR}/depkgs/cweb
6300 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6301 # CWEB_LIBS="-lcweb"
6302 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6303 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6309 #AC_SUBST(CWEB_LIBS)
6310 #AC_SUBST(CWEB_LDFLAGS)
6314 # -----------------------------------------------------------------------
6318 # -----------------------------------------------------------
6319 # Check whether user wants TCP wrappers support (default off)
6320 # -----------------------------------------------------------
6323 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6324 if test "${with_tcp_wrappers+set}" = set; then
6325 withval="$with_tcp_wrappers"
6327 if test "x$withval" != "xno" ; then
6329 LIBS="$saved_LIBS -lwrap"
6330 echo "$as_me:$LINENO: checking for libwrap" >&5
6331 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6332 cat >conftest.$ac_ext <<_ACEOF
6333 #line $LINENO "configure"
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6340 int deny_severity = 0;
6341 int allow_severity = 0;
6342 struct request_info *req;
6351 rm -f conftest.$ac_objext conftest$ac_exeext
6352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6353 (eval $ac_link) 2>&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } &&
6357 { ac_try='test -s conftest$ac_exeext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6364 echo "$as_me:$LINENO: result: yes" >&5
6365 echo "${ECHO_T}yes" >&6
6366 cat >>confdefs.h <<\_ACEOF
6367 #define HAVE_LIBWRAP 1
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6377 LIBS="$saved_LIBS -lwrap -lnsl"
6378 cat >conftest.$ac_ext <<_ACEOF
6379 #line $LINENO "configure"
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h. */
6386 int deny_severity = 0;
6387 int allow_severity = 0;
6388 struct request_info *req;
6397 rm -f conftest.$ac_objext conftest$ac_exeext
6398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6399 (eval $ac_link) 2>&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } &&
6403 { ac_try='test -s conftest$ac_exeext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6410 echo "$as_me:$LINENO: result: yes" >&5
6411 echo "${ECHO_T}yes" >&6
6412 cat >>confdefs.h <<\_ACEOF
6413 #define HAVE_LIBWRAP 1
6419 echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6422 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6423 echo "$as_me: error: *** libwrap missing" >&2;}
6424 { (exit 1); exit 1; }; }
6427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6436 # ------------------------------------------
6437 # Where to place working dir
6438 # ------------------------------------------
6439 working_dir=`eval echo ${sysconfdir}/working`
6441 # Check whether --with-working-dir or --without-working-dir was given.
6442 if test "${with_working_dir+set}" = set; then
6443 withval="$with_working_dir"
6445 if test "x$withval" != "xno" ; then
6446 working_dir=$withval
6455 # ------------------------------------------
6456 # Where to place scriptdir (script files)
6457 # ------------------------------------------
6458 scriptdir=`eval echo ${sysconfdir}`
6460 # Check whether --with-scriptdir or --without-scriptdir was given.
6461 if test "${with_scriptdir+set}" = set; then
6462 withval="$with_scriptdir"
6464 if test "x$withval" != "xno" ; then
6474 # ------------------------------------------
6475 # Where to send dump email
6476 # ------------------------------------------
6477 dump_email=root@localhost
6479 # Check whether --with-dump-email or --without-dump-email was given.
6480 if test "${with_dump_email+set}" = set; then
6481 withval="$with_dump_email"
6483 if test "x$withval" != "xno" ; then
6492 # ------------------------------------------
6493 # Where to send job email
6494 # ------------------------------------------
6495 job_email=root@localhost
6497 # Check whether --with-job-email or --without-job-email was given.
6498 if test "${with_job_email+set}" = set; then
6499 withval="$with_job_email"
6501 if test "x$withval" != "xno" ; then
6510 # ------------------------------------------
6511 # Where to find smtp host
6512 # ------------------------------------------
6515 # Check whether --with-smtp_host or --without-smtp_host was given.
6516 if test "${with_smtp_host+set}" = set; then
6517 withval="$with_smtp_host"
6519 if test "x$withval" != "xno" ; then
6529 # ------------------------------------
6530 # Where to place pid files
6531 # ------------------------------------
6534 # Check whether --with-pid-dir or --without-pid-dir was given.
6535 if test "${with_pid_dir+set}" = set; then
6536 withval="$with_pid_dir"
6538 if test "x$withval" != "xno" ; then
6545 cat >>confdefs.h <<_ACEOF
6546 #define _PATH_BACULA_PIDDIR "$piddir"
6552 # ------------------------------------
6553 # Where to place subsys "lock file"
6554 # ------------------------------------
6555 subsysdir=/var/run/subsys
6557 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6558 if test "${with_subsys_dir+set}" = set; then
6559 withval="$with_subsys_dir"
6561 if test "x$withval" != "xno" ; then
6572 # ------------------------------------
6573 # Where to start assigning ports
6574 # ------------------------------------
6577 # Check whether --with-baseport or --without-baseport was given.
6578 if test "${with_baseport+set}" = set; then
6579 withval="$with_baseport"
6581 if test "x$withval" != "xno" ; then
6589 dir_port=`expr $baseport`
6590 fd_port=`expr $baseport + 1`
6591 sd_port=`expr $fd_port + 1`
6598 # ------------------------------------------
6599 # Generate passwords
6600 # ------------------------------------------
6603 # Check whether --with-dir-password or --without-dir-password was given.
6604 if test "${with_dir_password+set}" = set; then
6605 withval="$with_dir_password"
6607 if test "x$withval" != "xno" ; then
6608 dir_password=$withval
6614 if test "x$dir_password" = "x" ; then
6615 if test "x$OPENSSL" = "xnone" ; then
6616 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6617 key=`autoconf/randpass 33`
6619 key=`openssl rand -base64 33`
6626 # Check whether --with-fd-password or --without-fd-password was given.
6627 if test "${with_fd_password+set}" = set; then
6628 withval="$with_fd_password"
6630 if test "x$withval" != "xno" ; then
6631 fd_password=$withval
6637 if test "x$fd_password" = "x" ; then
6638 if test "x$OPENSSL" = "xnone" ; then
6639 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6640 key=`autoconf/randpass 37`
6642 key=`openssl rand -base64 33`
6649 # Check whether --with-sd-password or --without-sd-password was given.
6650 if test "${with_sd_password+set}" = set; then
6651 withval="$with_sd_password"
6653 if test "x$withval" != "xno" ; then
6654 sd_password=$withval
6660 if test "x$sd_password" = "x" ; then
6661 if test "x$OPENSSL" = "xnone" ; then
6662 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6663 key=`autoconf/randpass 41`
6665 key=`openssl rand -base64 33`
6678 # ------------------------------------------------
6679 # Bacula check for various SQL database engines
6680 # ------------------------------------------------
6683 echo "$as_me:$LINENO: checking for MySQL support" >&5
6684 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
6686 # Check whether --with-mysql or --without-mysql was given.
6687 if test "${with_mysql+set}" = set; then
6688 withval="$with_mysql"
6690 if test "$withval" != "no"; then
6691 if test "$withval" = "yes"; then
6692 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6693 MYSQL_INCDIR=/usr/local/mysql/include/mysql
6694 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6695 MYSQL_BINDIR=/usr/local/mysql/bin
6696 elif test -f /usr/include/mysql/mysql.h; then
6697 MYSQL_INCDIR=/usr/include/mysql
6698 MYSQL_LIBDIR=/usr/lib/mysql
6699 MYSQL_BINDIR=/usr/bin
6700 elif test -f /usr/include/mysql.h; then
6701 MYSQL_INCDIR=/usr/include
6702 MYSQL_LIBDIR=/usr/lib
6703 MYSQL_BINDIR=/usr/bin
6704 elif test -f /usr/local/include/mysql/mysql.h; then
6705 MYSQL_INCDIR=/usr/local/include/mysql
6706 MYSQL_LIBDIR=/usr/local/lib/mysql
6707 MYSQL_BINDIR=/usr/local/bin
6708 elif test -f /usr/local/include/mysql.h; then
6709 MYSQL_INCDIR=/usr/local/include
6710 MYSQL_LIBDIR=/usr/local/lib
6711 MYSQL_BINDIR=/usr/local/bin
6713 echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6
6715 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6716 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6717 { (exit 1); exit 1; }; }
6720 if test -f $withval/include/mysql/mysql.h; then
6721 MYSQL_INCDIR=$withval/include/mysql
6722 MYSQL_LIBDIR=$withval/lib/mysql
6723 MYSQL_BINDIR=$withval/bin
6724 elif test -f $withval/include/mysql.h; then
6725 MYSQL_INCDIR=$withval/include
6726 MYSQL_LIBDIR=$withval/lib
6727 MYSQL_BINDIR=$withval/bin
6729 echo "$as_me:$LINENO: result: no" >&5
6730 echo "${ECHO_T}no" >&6
6731 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6732 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6733 { (exit 1); exit 1; }; }
6736 SQL_INCLUDE=-I$MYSQL_INCDIR
6737 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
6738 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
6739 cat >>confdefs.h <<\_ACEOF
6740 #define HAVE_THREAD_SAFE_MYSQL 1
6744 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
6746 SQL_BINDIR=$MYSQL_BINDIR
6748 cat >>confdefs.h <<\_ACEOF
6749 #define HAVE_MYSQL 1
6752 echo "$as_me:$LINENO: result: yes" >&5
6753 echo "${ECHO_T}yes" >&6
6760 echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6
6766 echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6
6772 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
6773 if test "${with_embedded_mysql+set}" = set; then
6774 withval="$with_embedded_mysql"
6776 if test "$withval" != "no"; then
6777 if test "$withval" = "yes"; then
6778 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6779 MYSQL_INCDIR=/usr/local/mysql/include/mysql
6780 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6781 MYSQL_BINDIR=/usr/local/mysql/bin
6782 elif test -f /usr/include/mysql/mysql.h; then
6783 MYSQL_INCDIR=/usr/include/mysql
6784 MYSQL_LIBDIR=/usr/lib/mysql
6785 MYSQL_BINDIR=/usr/bin
6786 elif test -f /usr/include/mysql.h; then
6787 MYSQL_INCDIR=/usr/include
6788 MYSQL_LIBDIR=/usr/lib
6789 MYSQL_BINDIR=/usr/bin
6790 elif test -f /usr/local/include/mysql/mysql.h; then
6791 MYSQL_INCDIR=/usr/local/include/mysql
6792 MYSQL_LIBDIR=/usr/local/lib/mysql
6793 MYSQL_BINDIR=/usr/local/bin
6794 elif test -f /usr/local/include/mysql.h; then
6795 MYSQL_INCDIR=/usr/local/include
6796 MYSQL_LIBDIR=/usr/local/lib
6797 MYSQL_BINDIR=/usr/local/bin
6799 echo "$as_me:$LINENO: result: no" >&5
6800 echo "${ECHO_T}no" >&6
6801 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6802 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6803 { (exit 1); exit 1; }; }
6806 if test -f $withval/include/mysql/mysql.h; then
6807 MYSQL_INCDIR=$withval/include/mysql
6808 MYSQL_LIBDIR=$withval/lib/mysql
6809 MYSQL_BINDIR=$withval/bin
6810 elif test -f $withval/include/mysql.h; then
6811 MYSQL_INCDIR=$withval/include
6812 MYSQL_LIBDIR=$withval/lib
6813 MYSQL_BINDIR=$withval/bin
6815 echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6
6817 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6818 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6819 { (exit 1); exit 1; }; }
6822 SQL_INCLUDE=-I$MYSQL_INCDIR
6823 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
6824 SQL_BINDIR=$MYSQL_BINDIR
6826 cat >>confdefs.h <<\_ACEOF
6827 #define HAVE_MYSQL 1
6830 cat >>confdefs.h <<\_ACEOF
6831 #define HAVE_EMBEDDED_MYSQL 1
6834 echo "$as_me:$LINENO: result: yes" >&5
6835 echo "${ECHO_T}yes" >&6
6842 echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6
6848 echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6
6861 # ------------------------------------------------
6862 # Bacula check for various SQL database engines
6863 # ------------------------------------------------
6866 echo "$as_me:$LINENO: checking for SQLite support" >&5
6867 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
6869 # Check whether --with-sqlite or --without-sqlite was given.
6870 if test "${with_sqlite+set}" = set; then
6871 withval="$with_sqlite"
6873 if test "$withval" != "no"; then
6874 if test "$withval" = "yes"; then
6875 if test -f /usr/local/include/sqlite.h; then
6876 SQLITE_INCDIR=/usr/local/include
6877 SQLITE_LIBDIR=/usr/local/lib
6878 SQLITE_BINDIR=/usr/local/bin
6879 elif test -f /usr/include/sqlite.h; then
6880 SQLITE_INCDIR=/usr/include
6881 SQLITE_LIBDIR=/usr/lib
6882 SQLITE_BINDIR=/usr/bin
6884 echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6
6886 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
6887 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
6888 { (exit 1); exit 1; }; }
6891 if test -f $withval/sqlite.h; then
6892 SQLITE_INCDIR=$withval
6893 SQLITE_LIBDIR=$withval
6894 SQLITE_BINDIR=$withval
6896 echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6
6898 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
6899 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
6900 { (exit 1); exit 1; }; }
6903 SQL_INCLUDE=-I$SQLITE_INCDIR
6904 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
6905 SQL_BINDIR=$SQLITE_BINDIR
6907 cat >>confdefs.h <<\_ACEOF
6908 #define HAVE_SQLITE 1
6911 echo "$as_me:$LINENO: result: yes" >&5
6912 echo "${ECHO_T}yes" >&6
6919 echo "$as_me:$LINENO: result: no" >&5
6920 echo "${ECHO_T}no" >&6
6925 echo "$as_me:$LINENO: result: no" >&5
6926 echo "${ECHO_T}no" >&6
6938 cat >>confdefs.h <<\_ACEOF
6939 #define PROTOTYPES 1
6943 if test -z "$CFLAGS"; then
6944 if test -z "$CCOPTS"; then
6953 largefile_support="no"
6955 # Check whether --enable-largefile or --disable-largefile was given.
6956 if test "${enable_largefile+set}" = set; then
6957 enableval="$enable_largefile"
6960 if test "$enable_largefile" != no; then
6961 if test -n "$ac_tool_prefix"; then
6962 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
6963 set dummy ${ac_tool_prefix}getconf; ac_word=$2
6964 echo "$as_me:$LINENO: checking for $ac_word" >&5
6965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6966 if test "${ac_cv_prog_GETCONF+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 if test -n "$GETCONF"; then
6970 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6979 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
6980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 GETCONF=$ac_cv_prog_GETCONF
6989 if test -n "$GETCONF"; then
6990 echo "$as_me:$LINENO: result: $GETCONF" >&5
6991 echo "${ECHO_T}$GETCONF" >&6
6993 echo "$as_me:$LINENO: result: no" >&5
6994 echo "${ECHO_T}no" >&6
6998 if test -z "$ac_cv_prog_GETCONF"; then
6999 ac_ct_GETCONF=$GETCONF
7000 # Extract the first word of "getconf", so it can be a program name with args.
7001 set dummy getconf; ac_word=$2
7002 echo "$as_me:$LINENO: checking for $ac_word" >&5
7003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7004 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 if test -n "$ac_ct_GETCONF"; then
7008 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7017 ac_cv_prog_ac_ct_GETCONF="getconf"
7018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7027 if test -n "$ac_ct_GETCONF"; then
7028 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7029 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7031 echo "$as_me:$LINENO: result: no" >&5
7032 echo "${ECHO_T}no" >&6
7035 GETCONF=$ac_ct_GETCONF
7037 GETCONF="$ac_cv_prog_GETCONF"
7040 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7041 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7042 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7046 ac_cv_sys_largefile_CFLAGS=no
7048 # IRIX 6.2 and later require cc -n32.
7049 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7050 if test "$GCC" != yes; then
7051 ac_cv_sys_largefile_CFLAGS=-n32
7054 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7055 cat >conftest.$ac_ext <<_ACEOF
7056 #line $LINENO "configure"
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7071 rm -f conftest.$ac_objext conftest$ac_exeext
7072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7073 (eval $ac_link) 2>&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } &&
7077 { ac_try='test -s conftest$ac_exeext'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7085 echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.$ac_ext >&5
7088 ac_cv_sys_largefile_CFLAGS=no
7090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7095 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7096 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7097 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7098 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7099 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7103 ac_cv_sys_largefile_LDFLAGS=no
7107 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7108 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7109 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7110 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7111 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7115 ac_cv_sys_largefile_LIBS=no
7119 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7120 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7122 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7125 -D_FILE_OFFSET_BITS=*) ;;
7126 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7127 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7133 '') CPPFLAGS="$ac_flag" ;;
7134 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7142 '') CFLAGS="$ac_flag" ;;
7143 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7148 case "$ac_cv_sys_largefile_LDFLAGS" in
7152 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7153 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7156 case "$ac_cv_sys_largefile_LIBS" in
7160 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7161 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7164 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7165 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7166 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 ac_cv_sys_file_offset_bits=no
7171 # HP-UX 10.20 and later
7172 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7173 ac_cv_sys_file_offset_bits=64 ;;
7175 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7177 -D_FILE_OFFSET_BITS)
7178 ac_cv_sys_file_offset_bits=1 ;;
7179 -D_FILE_OFFSET_BITS=*)
7180 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7185 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7186 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7187 if test "$ac_cv_sys_file_offset_bits" != no; then
7189 cat >>confdefs.h <<_ACEOF
7190 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7194 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7195 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7196 if test "${ac_cv_sys_largefile_source+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 ac_cv_sys_largefile_source=no
7201 # HP-UX 10.20 and later
7202 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7203 ac_cv_sys_largefile_source=1 ;;
7205 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7207 -D_LARGEFILE_SOURCE)
7208 ac_cv_sys_largefile_source=1 ;;
7209 -D_LARGEFILE_SOURCE=*)
7210 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7215 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7216 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7217 if test "$ac_cv_sys_largefile_source" != no; then
7219 cat >>confdefs.h <<_ACEOF
7220 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7224 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7225 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7226 if test "${ac_cv_sys_large_files+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 ac_cv_sys_large_files=no
7232 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7233 ac_cv_sys_large_files=1 ;;
7235 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7238 ac_cv_sys_large_files=1 ;;
7240 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7245 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7246 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7247 if test "$ac_cv_sys_large_files" != no; then
7249 cat >>confdefs.h <<_ACEOF
7250 #define _LARGE_FILES $ac_cv_sys_large_files
7258 echo "$as_me:$LINENO: checking for X" >&5
7259 echo $ECHO_N "checking for X... $ECHO_C" >&6
7262 # Check whether --with-x or --without-x was given.
7263 if test "${with_x+set}" = set; then
7267 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7268 if test "x$with_x" = xno; then
7269 # The user explicitly disabled X.
7272 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7273 # Both variables are already set.
7276 if test "${ac_cv_have_x+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7279 # One or both of the vars are not set, and there is no cached value.
7280 ac_x_includes=no ac_x_libraries=no
7282 if mkdir conftest.dir; then
7284 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7285 cat >Imakefile <<'_ACEOF'
7287 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7289 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7290 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7291 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7292 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7293 for ac_extension in a so sl; do
7294 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7295 test -f $ac_im_libdir/libX11.$ac_extension; then
7296 ac_im_usrlibdir=$ac_im_libdir; break
7299 # Screen out bogus values from the imake configuration. They are
7300 # bogus both because they are the default anyway, and because
7301 # using them would break gcc on systems where it needs fixed includes.
7302 case $ac_im_incroot in
7304 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7306 case $ac_im_usrlibdir in
7308 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7315 # Standard set of common directories for X headers.
7316 # Check X11 before X11Rn because it is often a symlink to the current release.
7328 /usr/local/X11/include
7329 /usr/local/X11R6/include
7330 /usr/local/X11R5/include
7331 /usr/local/X11R4/include
7333 /usr/local/include/X11
7334 /usr/local/include/X11R6
7335 /usr/local/include/X11R5
7336 /usr/local/include/X11R4
7340 /usr/XFree86/include/X11
7344 /usr/unsupported/include
7346 /usr/local/x11r5/include
7347 /usr/lpp/Xamples/include
7349 /usr/openwin/include
7350 /usr/openwin/share/include'
7352 if test "$ac_x_includes" = no; then
7353 # Guess where to find include files, by looking for Intrinsic.h.
7354 # First, try using that file with no special directory specified.
7355 cat >conftest.$ac_ext <<_ACEOF
7356 #line $LINENO "configure"
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7362 #include <X11/Intrinsic.h>
7364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7367 grep -v '^ *+' conftest.er1 >conftest.err
7369 cat conftest.err >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); } >/dev/null; then
7372 if test -s conftest.err; then
7373 ac_cpp_err=$ac_c_preproc_warn_flag
7380 if test -z "$ac_cpp_err"; then
7381 # We can compile using X headers with no special include directory.
7384 echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7387 for ac_dir in $ac_x_header_dirs; do
7388 if test -r "$ac_dir/X11/Intrinsic.h"; then
7389 ac_x_includes=$ac_dir
7394 rm -f conftest.err conftest.$ac_ext
7395 fi # $ac_x_includes = no
7397 if test "$ac_x_libraries" = no; then
7398 # Check for the libraries.
7399 # See if we find them without any special options.
7400 # Don't add to $LIBS permanently.
7403 cat >conftest.$ac_ext <<_ACEOF
7404 #line $LINENO "configure"
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h. */
7410 #include <X11/Intrinsic.h>
7419 rm -f conftest.$ac_objext conftest$ac_exeext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7421 (eval $ac_link) 2>&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } &&
7425 { ac_try='test -s conftest$ac_exeext'
7426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }; }; then
7432 # We can link X programs with no special library path.
7435 echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7439 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7441 # Don't even attempt the hair of trying to link an X program!
7442 for ac_extension in a so sl; do
7443 if test -r $ac_dir/libXt.$ac_extension; then
7444 ac_x_libraries=$ac_dir
7450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7451 fi # $ac_x_libraries = no
7453 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7454 # Didn't find X anywhere. Cache the known absence of X.
7455 ac_cv_have_x="have_x=no"
7457 # Record where we found X for the cache.
7458 ac_cv_have_x="have_x=yes \
7459 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7464 eval "$ac_cv_have_x"
7467 if test "$have_x" != yes; then
7468 echo "$as_me:$LINENO: result: $have_x" >&5
7469 echo "${ECHO_T}$have_x" >&6
7472 # If each of the values was on the command line, it overrides each guess.
7473 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7474 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7475 # Update the cache value to reflect the command line values.
7476 ac_cv_have_x="have_x=yes \
7477 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7478 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7479 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7482 if test "$no_x" = yes; then
7483 # Not all programs may use this symbol, but it does not hurt to define it.
7485 cat >>confdefs.h <<\_ACEOF
7486 #define X_DISPLAY_MISSING 1
7489 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7491 if test -n "$x_includes"; then
7492 X_CFLAGS="$X_CFLAGS -I$x_includes"
7495 # It would also be nice to do this for all -L options, not just this one.
7496 if test -n "$x_libraries"; then
7497 X_LIBS="$X_LIBS -L$x_libraries"
7498 # For Solaris; some versions of Sun CC require a space after -R and
7499 # others require no space. Words are not sufficient . . . .
7500 case `(uname -sr) 2>/dev/null` in
7502 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7503 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7504 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7505 cat >conftest.$ac_ext <<_ACEOF
7506 #line $LINENO "configure"
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h. */
7521 rm -f conftest.$ac_objext conftest$ac_exeext
7522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7523 (eval $ac_link) 2>&5
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); } &&
7527 { ac_try='test -s conftest$ac_exeext'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; }; then
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7541 if test $ac_R_nospace = yes; then
7542 echo "$as_me:$LINENO: result: no" >&5
7543 echo "${ECHO_T}no" >&6
7544 X_LIBS="$X_LIBS -R$x_libraries"
7546 LIBS="$ac_xsave_LIBS -R $x_libraries"
7547 cat >conftest.$ac_ext <<_ACEOF
7548 #line $LINENO "configure"
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7563 rm -f conftest.$ac_objext conftest$ac_exeext
7564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7565 (eval $ac_link) 2>&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); } &&
7569 { ac_try='test -s conftest$ac_exeext'
7570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7577 echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7583 if test $ac_R_space = yes; then
7584 echo "$as_me:$LINENO: result: yes" >&5
7585 echo "${ECHO_T}yes" >&6
7586 X_LIBS="$X_LIBS -R $x_libraries"
7588 echo "$as_me:$LINENO: result: neither works" >&5
7589 echo "${ECHO_T}neither works" >&6
7596 # Check for system-dependent libraries X programs must link with.
7597 # Do this before checking for the system-independent R6 libraries
7598 # (-lICE), since we may need -lsocket or whatever for X linking.
7600 if test "$ISC" = yes; then
7601 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7603 # Martyn Johnson says this is needed for Ultrix, if the X
7604 # libraries were built with DECnet support. And Karl Berry says
7605 # the Alpha needs dnet_stub (dnet does not exist).
7606 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7607 cat >conftest.$ac_ext <<_ACEOF
7608 #line $LINENO "configure"
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7615 /* Override any gcc2 internal prototype to avoid an error. */
7619 /* We use char because int might match the return type of a gcc2
7620 builtin and then its argument prototype would still apply. */
7621 char XOpenDisplay ();
7630 rm -f conftest.$ac_objext conftest$ac_exeext
7631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7632 (eval $ac_link) 2>&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } &&
7636 { ac_try='test -s conftest$ac_exeext'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7647 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7648 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7649 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 ac_check_lib_save_LIBS=$LIBS
7654 cat >conftest.$ac_ext <<_ACEOF
7655 #line $LINENO "configure"
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h. */
7662 /* Override any gcc2 internal prototype to avoid an error. */
7666 /* We use char because int might match the return type of a gcc2
7667 builtin and then its argument prototype would still apply. */
7677 rm -f conftest.$ac_objext conftest$ac_exeext
7678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7679 (eval $ac_link) 2>&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
7683 { ac_try='test -s conftest$ac_exeext'
7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; }; then
7689 ac_cv_lib_dnet_dnet_ntoa=yes
7691 echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7694 ac_cv_lib_dnet_dnet_ntoa=no
7696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7697 LIBS=$ac_check_lib_save_LIBS
7699 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7700 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7701 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7702 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7705 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7706 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7707 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7708 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 ac_check_lib_save_LIBS=$LIBS
7712 LIBS="-ldnet_stub $LIBS"
7713 cat >conftest.$ac_ext <<_ACEOF
7714 #line $LINENO "configure"
7717 cat confdefs.h >>conftest.$ac_ext
7718 cat >>conftest.$ac_ext <<_ACEOF
7719 /* end confdefs.h. */
7721 /* Override any gcc2 internal prototype to avoid an error. */
7725 /* We use char because int might match the return type of a gcc2
7726 builtin and then its argument prototype would still apply. */
7736 rm -f conftest.$ac_objext conftest$ac_exeext
7737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7738 (eval $ac_link) 2>&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); } &&
7742 { ac_try='test -s conftest$ac_exeext'
7743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); }; }; then
7748 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7750 echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7753 ac_cv_lib_dnet_stub_dnet_ntoa=no
7755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7756 LIBS=$ac_check_lib_save_LIBS
7758 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7759 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7760 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7761 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7767 LIBS="$ac_xsave_LIBS"
7769 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7770 # to get the SysV transport functions.
7771 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7773 # The nsl library prevents programs from opening the X display
7774 # on Irix 5.2, according to T.E. Dickey.
7775 # The functions gethostbyname, getservbyname, and inet_addr are
7776 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7777 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7778 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7779 if test "${ac_cv_func_gethostbyname+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 cat >conftest.$ac_ext <<_ACEOF
7783 #line $LINENO "configure"
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7789 /* System header to define __stub macros and hopefully few prototypes,
7790 which can conflict with char gethostbyname (); below.
7791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7792 <limits.h> exists even on freestanding compilers. */
7794 # include <limits.h>
7796 # include <assert.h>
7798 /* Override any gcc2 internal prototype to avoid an error. */
7803 /* We use char because int might match the return type of a gcc2
7804 builtin and then its argument prototype would still apply. */
7805 char gethostbyname ();
7806 /* The GNU C library defines this for functions which it implements
7807 to always fail with ENOSYS. Some functions are actually named
7808 something starting with __ and the normal name is an alias. */
7809 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7812 char (*f) () = gethostbyname;
7821 return f != gethostbyname;
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7828 (eval $ac_link) 2>&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } &&
7832 { ac_try='test -s conftest$ac_exeext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 ac_cv_func_gethostbyname=yes
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7843 ac_cv_func_gethostbyname=no
7845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7847 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7848 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7850 if test $ac_cv_func_gethostbyname = no; then
7851 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7852 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7853 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 ac_check_lib_save_LIBS=$LIBS
7858 cat >conftest.$ac_ext <<_ACEOF
7859 #line $LINENO "configure"
7862 cat confdefs.h >>conftest.$ac_ext
7863 cat >>conftest.$ac_ext <<_ACEOF
7864 /* end confdefs.h. */
7866 /* Override any gcc2 internal prototype to avoid an error. */
7870 /* We use char because int might match the return type of a gcc2
7871 builtin and then its argument prototype would still apply. */
7872 char gethostbyname ();
7881 rm -f conftest.$ac_objext conftest$ac_exeext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7883 (eval $ac_link) 2>&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } &&
7887 { ac_try='test -s conftest$ac_exeext'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893 ac_cv_lib_nsl_gethostbyname=yes
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7898 ac_cv_lib_nsl_gethostbyname=no
7900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7901 LIBS=$ac_check_lib_save_LIBS
7903 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7904 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7905 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7906 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7909 if test $ac_cv_lib_nsl_gethostbyname = no; then
7910 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7911 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7912 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 ac_check_lib_save_LIBS=$LIBS
7917 cat >conftest.$ac_ext <<_ACEOF
7918 #line $LINENO "configure"
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h. */
7925 /* Override any gcc2 internal prototype to avoid an error. */
7929 /* We use char because int might match the return type of a gcc2
7930 builtin and then its argument prototype would still apply. */
7931 char gethostbyname ();
7940 rm -f conftest.$ac_objext conftest$ac_exeext
7941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7942 (eval $ac_link) 2>&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try='test -s conftest$ac_exeext'
7947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; }; then
7952 ac_cv_lib_bsd_gethostbyname=yes
7954 echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7957 ac_cv_lib_bsd_gethostbyname=no
7959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7960 LIBS=$ac_check_lib_save_LIBS
7962 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7963 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7964 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7965 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7971 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7972 # socket/setsockopt and other routines are undefined under SCO ODT
7973 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7974 # on later versions), says Simon Leinen: it contains gethostby*
7975 # variants that don't use the name server (or something). -lsocket
7976 # must be given before -lnsl if both are needed. We assume that
7977 # if connect needs -lnsl, so does gethostbyname.
7978 echo "$as_me:$LINENO: checking for connect" >&5
7979 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7980 if test "${ac_cv_func_connect+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 cat >conftest.$ac_ext <<_ACEOF
7984 #line $LINENO "configure"
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7990 /* System header to define __stub macros and hopefully few prototypes,
7991 which can conflict with char connect (); below.
7992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7993 <limits.h> exists even on freestanding compilers. */
7995 # include <limits.h>
7997 # include <assert.h>
7999 /* Override any gcc2 internal prototype to avoid an error. */
8004 /* We use char because int might match the return type of a gcc2
8005 builtin and then its argument prototype would still apply. */
8007 /* The GNU C library defines this for functions which it implements
8008 to always fail with ENOSYS. Some functions are actually named
8009 something starting with __ and the normal name is an alias. */
8010 #if defined (__stub_connect) || defined (__stub___connect)
8013 char (*f) () = connect;
8022 return f != connect;
8027 rm -f conftest.$ac_objext conftest$ac_exeext
8028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8029 (eval $ac_link) 2>&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try='test -s conftest$ac_exeext'
8034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); }; }; then
8039 ac_cv_func_connect=yes
8041 echo "$as_me: failed program was:" >&5
8042 sed 's/^/| /' conftest.$ac_ext >&5
8044 ac_cv_func_connect=no
8046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8048 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8049 echo "${ECHO_T}$ac_cv_func_connect" >&6
8051 if test $ac_cv_func_connect = no; then
8052 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8053 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8054 if test "${ac_cv_lib_socket_connect+set}" = set; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 ac_check_lib_save_LIBS=$LIBS
8058 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8059 cat >conftest.$ac_ext <<_ACEOF
8060 #line $LINENO "configure"
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h. */
8067 /* Override any gcc2 internal prototype to avoid an error. */
8071 /* We use char because int might match the return type of a gcc2
8072 builtin and then its argument prototype would still apply. */
8082 rm -f conftest.$ac_objext conftest$ac_exeext
8083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8084 (eval $ac_link) 2>&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } &&
8088 { ac_try='test -s conftest$ac_exeext'
8089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; }; then
8094 ac_cv_lib_socket_connect=yes
8096 echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8099 ac_cv_lib_socket_connect=no
8101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8102 LIBS=$ac_check_lib_save_LIBS
8104 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8105 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8106 if test $ac_cv_lib_socket_connect = yes; then
8107 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8112 # Guillermo Gomez says -lposix is necessary on A/UX.
8113 echo "$as_me:$LINENO: checking for remove" >&5
8114 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8115 if test "${ac_cv_func_remove+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 cat >conftest.$ac_ext <<_ACEOF
8119 #line $LINENO "configure"
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 /* System header to define __stub macros and hopefully few prototypes,
8126 which can conflict with char remove (); below.
8127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8128 <limits.h> exists even on freestanding compilers. */
8130 # include <limits.h>
8132 # include <assert.h>
8134 /* Override any gcc2 internal prototype to avoid an error. */
8139 /* We use char because int might match the return type of a gcc2
8140 builtin and then its argument prototype would still apply. */
8142 /* The GNU C library defines this for functions which it implements
8143 to always fail with ENOSYS. Some functions are actually named
8144 something starting with __ and the normal name is an alias. */
8145 #if defined (__stub_remove) || defined (__stub___remove)
8148 char (*f) () = remove;
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8164 (eval $ac_link) 2>&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } &&
8168 { ac_try='test -s conftest$ac_exeext'
8169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; }; then
8174 ac_cv_func_remove=yes
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8179 ac_cv_func_remove=no
8181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8183 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8184 echo "${ECHO_T}$ac_cv_func_remove" >&6
8186 if test $ac_cv_func_remove = no; then
8187 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8188 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8189 if test "${ac_cv_lib_posix_remove+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 ac_check_lib_save_LIBS=$LIBS
8193 LIBS="-lposix $LIBS"
8194 cat >conftest.$ac_ext <<_ACEOF
8195 #line $LINENO "configure"
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h. */
8202 /* Override any gcc2 internal prototype to avoid an error. */
8206 /* We use char because int might match the return type of a gcc2
8207 builtin and then its argument prototype would still apply. */
8217 rm -f conftest.$ac_objext conftest$ac_exeext
8218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8219 (eval $ac_link) 2>&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } &&
8223 { ac_try='test -s conftest$ac_exeext'
8224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; }; then
8229 ac_cv_lib_posix_remove=yes
8231 echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8234 ac_cv_lib_posix_remove=no
8236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8237 LIBS=$ac_check_lib_save_LIBS
8239 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8240 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8241 if test $ac_cv_lib_posix_remove = yes; then
8242 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8247 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8248 echo "$as_me:$LINENO: checking for shmat" >&5
8249 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8250 if test "${ac_cv_func_shmat+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 cat >conftest.$ac_ext <<_ACEOF
8254 #line $LINENO "configure"
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 /* System header to define __stub macros and hopefully few prototypes,
8261 which can conflict with char shmat (); below.
8262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8263 <limits.h> exists even on freestanding compilers. */
8265 # include <limits.h>
8267 # include <assert.h>
8269 /* Override any gcc2 internal prototype to avoid an error. */
8274 /* We use char because int might match the return type of a gcc2
8275 builtin and then its argument prototype would still apply. */
8277 /* The GNU C library defines this for functions which it implements
8278 to always fail with ENOSYS. Some functions are actually named
8279 something starting with __ and the normal name is an alias. */
8280 #if defined (__stub_shmat) || defined (__stub___shmat)
8283 char (*f) () = shmat;
8297 rm -f conftest.$ac_objext conftest$ac_exeext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8299 (eval $ac_link) 2>&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try='test -s conftest$ac_exeext'
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
8309 ac_cv_func_shmat=yes
8311 echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8318 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8319 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8321 if test $ac_cv_func_shmat = no; then
8322 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8323 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8324 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 ac_check_lib_save_LIBS=$LIBS
8329 cat >conftest.$ac_ext <<_ACEOF
8330 #line $LINENO "configure"
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8337 /* Override any gcc2 internal prototype to avoid an error. */
8341 /* We use char because int might match the return type of a gcc2
8342 builtin and then its argument prototype would still apply. */
8352 rm -f conftest.$ac_objext conftest$ac_exeext
8353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8354 (eval $ac_link) 2>&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try='test -s conftest$ac_exeext'
8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8364 ac_cv_lib_ipc_shmat=yes
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8369 ac_cv_lib_ipc_shmat=no
8371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8372 LIBS=$ac_check_lib_save_LIBS
8374 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8375 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8376 if test $ac_cv_lib_ipc_shmat = yes; then
8377 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8383 # Check for libraries that X11R6 Xt/Xaw programs need.
8384 ac_save_LDFLAGS=$LDFLAGS
8385 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8386 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8387 # check for ICE first), but we must link in the order -lSM -lICE or
8388 # we get undefined symbols. So assume we have SM if we have ICE.
8389 # These have to be linked with before -lX11, unlike the other
8390 # libraries we check for below, so use a different variable.
8391 # John Interrante, Karl Berry
8392 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8393 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8394 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 ac_check_lib_save_LIBS=$LIBS
8398 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8399 cat >conftest.$ac_ext <<_ACEOF
8400 #line $LINENO "configure"
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8407 /* Override any gcc2 internal prototype to avoid an error. */
8411 /* We use char because int might match the return type of a gcc2
8412 builtin and then its argument prototype would still apply. */
8413 char IceConnectionNumber ();
8417 IceConnectionNumber ();
8422 rm -f conftest.$ac_objext conftest$ac_exeext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8424 (eval $ac_link) 2>&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } &&
8428 { ac_try='test -s conftest$ac_exeext'
8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8434 ac_cv_lib_ICE_IceConnectionNumber=yes
8436 echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.$ac_ext >&5
8439 ac_cv_lib_ICE_IceConnectionNumber=no
8441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8442 LIBS=$ac_check_lib_save_LIBS
8444 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8445 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8446 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8447 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8450 LDFLAGS=$ac_save_LDFLAGS
8502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8504 echo "$as_me:$LINENO: checking for $ac_header" >&5
8505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8512 # Is the header compilable?
8513 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8515 cat >conftest.$ac_ext <<_ACEOF
8516 #line $LINENO "configure"
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8522 $ac_includes_default
8523 #include <$ac_header>
8525 rm -f conftest.$ac_objext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8527 (eval $ac_compile) 2>&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } &&
8531 { ac_try='test -s conftest.$ac_objext'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; }; then
8537 ac_header_compiler=yes
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8542 ac_header_compiler=no
8544 rm -f conftest.$ac_objext conftest.$ac_ext
8545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8546 echo "${ECHO_T}$ac_header_compiler" >&6
8548 # Is the header present?
8549 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8550 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8551 cat >conftest.$ac_ext <<_ACEOF
8552 #line $LINENO "configure"
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h. */
8558 #include <$ac_header>
8560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8563 grep -v '^ *+' conftest.er1 >conftest.err
8565 cat conftest.err >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } >/dev/null; then
8568 if test -s conftest.err; then
8569 ac_cpp_err=$ac_c_preproc_warn_flag
8576 if test -z "$ac_cpp_err"; then
8577 ac_header_preproc=yes
8579 echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8582 ac_header_preproc=no
8584 rm -f conftest.err conftest.$ac_ext
8585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8586 echo "${ECHO_T}$ac_header_preproc" >&6
8588 # So? What about this header?
8589 case $ac_header_compiler:$ac_header_preproc in
8591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8597 ## ------------------------------------ ##
8598 ## Report this to bug-autoconf@gnu.org. ##
8599 ## ------------------------------------ ##
8602 sed "s/^/$as_me: WARNING: /" >&2
8605 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8607 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8608 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8613 ## ------------------------------------ ##
8614 ## Report this to bug-autoconf@gnu.org. ##
8615 ## ------------------------------------ ##
8618 sed "s/^/$as_me: WARNING: /" >&2
8621 echo "$as_me:$LINENO: checking for $ac_header" >&5
8622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 eval "$as_ac_Header=$ac_header_preproc"
8628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8633 cat >>confdefs.h <<_ACEOF
8634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8641 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8642 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8643 if test "${ac_cv_header_stdc+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8646 cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8666 rm -f conftest.$ac_objext
8667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8668 (eval $ac_compile) 2>&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } &&
8672 { ac_try='test -s conftest.$ac_objext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 ac_cv_header_stdc=yes
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 ac_cv_header_stdc=no
8685 rm -f conftest.$ac_objext conftest.$ac_ext
8687 if test $ac_cv_header_stdc = yes; then
8688 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8689 cat >conftest.$ac_ext <<_ACEOF
8690 #line $LINENO "configure"
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8700 $EGREP "memchr" >/dev/null 2>&1; then
8703 ac_cv_header_stdc=no
8709 if test $ac_cv_header_stdc = yes; then
8710 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8711 cat >conftest.$ac_ext <<_ACEOF
8712 #line $LINENO "configure"
8715 cat confdefs.h >>conftest.$ac_ext
8716 cat >>conftest.$ac_ext <<_ACEOF
8717 /* end confdefs.h. */
8721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8722 $EGREP "free" >/dev/null 2>&1; then
8725 ac_cv_header_stdc=no
8731 if test $ac_cv_header_stdc = yes; then
8732 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8733 if test "$cross_compiling" = yes; then
8736 cat >conftest.$ac_ext <<_ACEOF
8737 #line $LINENO "configure"
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8744 #if ((' ' & 0x0FF) == 0x020)
8745 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8746 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8748 # define ISLOWER(c) \
8749 (('a' <= (c) && (c) <= 'i') \
8750 || ('j' <= (c) && (c) <= 'r') \
8751 || ('s' <= (c) && (c) <= 'z'))
8752 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8755 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8760 for (i = 0; i < 256; i++)
8761 if (XOR (islower (i), ISLOWER (i))
8762 || toupper (i) != TOUPPER (i))
8767 rm -f conftest$ac_exeext
8768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8769 (eval $ac_link) 2>&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8780 echo "$as_me: program exited with status $ac_status" >&5
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8785 ac_cv_header_stdc=no
8787 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8791 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8792 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8793 if test $ac_cv_header_stdc = yes; then
8795 cat >>confdefs.h <<\_ACEOF
8796 #define STDC_HEADERS 1
8801 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
8802 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
8803 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
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 <sys/types.h>
8817 return makedev(0, 0);
8822 rm -f conftest.$ac_objext conftest$ac_exeext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824 (eval $ac_link) 2>&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } &&
8828 { ac_try='test -s conftest$ac_exeext'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
8834 ac_cv_header_sys_types_h_makedev=yes
8836 echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8839 ac_cv_header_sys_types_h_makedev=no
8841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8844 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
8845 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
8847 if test $ac_cv_header_sys_types_h_makedev = no; then
8848 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8849 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8850 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8851 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8855 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8857 # Is the header compilable?
8858 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
8859 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
8860 cat >conftest.$ac_ext <<_ACEOF
8861 #line $LINENO "configure"
8864 cat confdefs.h >>conftest.$ac_ext
8865 cat >>conftest.$ac_ext <<_ACEOF
8866 /* end confdefs.h. */
8867 $ac_includes_default
8868 #include <sys/mkdev.h>
8870 rm -f conftest.$ac_objext
8871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8872 (eval $ac_compile) 2>&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } &&
8876 { ac_try='test -s conftest.$ac_objext'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; }; then
8882 ac_header_compiler=yes
8884 echo "$as_me: failed program was:" >&5
8885 sed 's/^/| /' conftest.$ac_ext >&5
8887 ac_header_compiler=no
8889 rm -f conftest.$ac_objext conftest.$ac_ext
8890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8891 echo "${ECHO_T}$ac_header_compiler" >&6
8893 # Is the header present?
8894 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
8895 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
8896 cat >conftest.$ac_ext <<_ACEOF
8897 #line $LINENO "configure"
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h. */
8903 #include <sys/mkdev.h>
8905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8908 grep -v '^ *+' conftest.er1 >conftest.err
8910 cat conftest.err >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } >/dev/null; then
8913 if test -s conftest.err; then
8914 ac_cpp_err=$ac_c_preproc_warn_flag
8921 if test -z "$ac_cpp_err"; then
8922 ac_header_preproc=yes
8924 echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.$ac_ext >&5
8927 ac_header_preproc=no
8929 rm -f conftest.err conftest.$ac_ext
8930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8931 echo "${ECHO_T}$ac_header_preproc" >&6
8933 # So? What about this header?
8934 case $ac_header_compiler:$ac_header_preproc in
8936 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
8937 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8938 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
8939 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
8942 ## ------------------------------------ ##
8943 ## Report this to bug-autoconf@gnu.org. ##
8944 ## ------------------------------------ ##
8947 sed "s/^/$as_me: WARNING: /" >&2
8950 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
8951 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
8952 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
8953 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
8954 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
8955 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
8958 ## ------------------------------------ ##
8959 ## Report this to bug-autoconf@gnu.org. ##
8960 ## ------------------------------------ ##
8963 sed "s/^/$as_me: WARNING: /" >&2
8966 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8967 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8968 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8969 echo $ECHO_N "(cached) $ECHO_C" >&6
8971 ac_cv_header_sys_mkdev_h=$ac_header_preproc
8973 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8974 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8977 if test $ac_cv_header_sys_mkdev_h = yes; then
8979 cat >>confdefs.h <<\_ACEOF
8980 #define MAJOR_IN_MKDEV 1
8987 if test $ac_cv_header_sys_mkdev_h = no; then
8988 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8989 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
8990 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
8991 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8994 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
8995 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
8997 # Is the header compilable?
8998 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
8999 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9000 cat >conftest.$ac_ext <<_ACEOF
9001 #line $LINENO "configure"
9004 cat confdefs.h >>conftest.$ac_ext
9005 cat >>conftest.$ac_ext <<_ACEOF
9006 /* end confdefs.h. */
9007 $ac_includes_default
9008 #include <sys/sysmacros.h>
9010 rm -f conftest.$ac_objext
9011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9012 (eval $ac_compile) 2>&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); } &&
9016 { ac_try='test -s conftest.$ac_objext'
9017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
9022 ac_header_compiler=yes
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9027 ac_header_compiler=no
9029 rm -f conftest.$ac_objext conftest.$ac_ext
9030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9031 echo "${ECHO_T}$ac_header_compiler" >&6
9033 # Is the header present?
9034 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9035 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9036 cat >conftest.$ac_ext <<_ACEOF
9037 #line $LINENO "configure"
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9043 #include <sys/sysmacros.h>
9045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9048 grep -v '^ *+' conftest.er1 >conftest.err
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } >/dev/null; then
9053 if test -s conftest.err; then
9054 ac_cpp_err=$ac_c_preproc_warn_flag
9061 if test -z "$ac_cpp_err"; then
9062 ac_header_preproc=yes
9064 echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9067 ac_header_preproc=no
9069 rm -f conftest.err conftest.$ac_ext
9070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9071 echo "${ECHO_T}$ac_header_preproc" >&6
9073 # So? What about this header?
9074 case $ac_header_compiler:$ac_header_preproc in
9076 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9077 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9078 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9079 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9082 ## ------------------------------------ ##
9083 ## Report this to bug-autoconf@gnu.org. ##
9084 ## ------------------------------------ ##
9087 sed "s/^/$as_me: WARNING: /" >&2
9090 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9091 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9092 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9093 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9094 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9095 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9098 ## ------------------------------------ ##
9099 ## Report this to bug-autoconf@gnu.org. ##
9100 ## ------------------------------------ ##
9103 sed "s/^/$as_me: WARNING: /" >&2
9106 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9107 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9108 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9109 echo $ECHO_N "(cached) $ECHO_C" >&6
9111 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9113 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9114 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9117 if test $ac_cv_header_sys_sysmacros_h = yes; then
9119 cat >>confdefs.h <<\_ACEOF
9120 #define MAJOR_IN_SYSMACROS 1
9135 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9136 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9137 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9138 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9140 echo $ECHO_N "(cached) $ECHO_C" >&6
9142 cat >conftest.$ac_ext <<_ACEOF
9143 #line $LINENO "configure"
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h. */
9149 #include <sys/types.h>
9161 rm -f conftest.$ac_objext
9162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9163 (eval $ac_compile) 2>&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } &&
9167 { ac_try='test -s conftest.$ac_objext'
9168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; }; then
9173 eval "$as_ac_Header=yes"
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9178 eval "$as_ac_Header=no"
9180 rm -f conftest.$ac_objext conftest.$ac_ext
9182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9185 cat >>confdefs.h <<_ACEOF
9186 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9189 ac_header_dirent=$ac_hdr; break
9193 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9194 if test $ac_header_dirent = dirent.h; then
9195 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9196 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9197 if test "${ac_cv_search_opendir+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9200 ac_func_search_save_LIBS=$LIBS
9201 ac_cv_search_opendir=no
9202 cat >conftest.$ac_ext <<_ACEOF
9203 #line $LINENO "configure"
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h. */
9210 /* Override any gcc2 internal prototype to avoid an error. */
9214 /* We use char because int might match the return type of a gcc2
9215 builtin and then its argument prototype would still apply. */
9225 rm -f conftest.$ac_objext conftest$ac_exeext
9226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9227 (eval $ac_link) 2>&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } &&
9231 { ac_try='test -s conftest$ac_exeext'
9232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); }; }; then
9237 ac_cv_search_opendir="none required"
9239 echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9244 if test "$ac_cv_search_opendir" = no; then
9245 for ac_lib in dir; do
9246 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9247 cat >conftest.$ac_ext <<_ACEOF
9248 #line $LINENO "configure"
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h. */
9255 /* Override any gcc2 internal prototype to avoid an error. */
9259 /* We use char because int might match the return type of a gcc2
9260 builtin and then its argument prototype would still apply. */
9270 rm -f conftest.$ac_objext conftest$ac_exeext
9271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9272 (eval $ac_link) 2>&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } &&
9276 { ac_try='test -s conftest$ac_exeext'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; }; then
9282 ac_cv_search_opendir="-l$ac_lib"
9285 echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9292 LIBS=$ac_func_search_save_LIBS
9294 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9295 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9296 if test "$ac_cv_search_opendir" != no; then
9297 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9302 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9303 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9304 if test "${ac_cv_search_opendir+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 ac_func_search_save_LIBS=$LIBS
9308 ac_cv_search_opendir=no
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. */
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_search_opendir="none required"
9346 echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9351 if test "$ac_cv_search_opendir" = no; then
9353 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9354 cat >conftest.$ac_ext <<_ACEOF
9355 #line $LINENO "configure"
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9362 /* Override any gcc2 internal prototype to avoid an error. */
9366 /* We use char because int might match the return type of a gcc2
9367 builtin and then its argument prototype would still apply. */
9377 rm -f conftest.$ac_objext conftest$ac_exeext
9378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9379 (eval $ac_link) 2>&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } &&
9383 { ac_try='test -s conftest$ac_exeext'
9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; }; then
9389 ac_cv_search_opendir="-l$ac_lib"
9392 echo "$as_me: failed program was:" >&5
9393 sed 's/^/| /' conftest.$ac_ext >&5
9396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9399 LIBS=$ac_func_search_save_LIBS
9401 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9402 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9403 if test "$ac_cv_search_opendir" != no; then
9404 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9410 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9411 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9412 if test "${ac_cv_header_stat_broken+set}" = set; then
9413 echo $ECHO_N "(cached) $ECHO_C" >&6
9415 cat >conftest.$ac_ext <<_ACEOF
9416 #line $LINENO "configure"
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h. */
9422 #include <sys/types.h>
9423 #include <sys/stat.h>
9425 #if defined(S_ISBLK) && defined(S_IFDIR)
9426 # if S_ISBLK (S_IFDIR)
9431 #if defined(S_ISBLK) && defined(S_IFCHR)
9432 # if S_ISBLK (S_IFCHR)
9437 #if defined(S_ISLNK) && defined(S_IFREG)
9438 # if S_ISLNK (S_IFREG)
9443 #if defined(S_ISSOCK) && defined(S_IFREG)
9444 # if S_ISSOCK (S_IFREG)
9450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9451 $EGREP "You lose" >/dev/null 2>&1; then
9452 ac_cv_header_stat_broken=yes
9454 ac_cv_header_stat_broken=no
9459 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9460 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
9461 if test $ac_cv_header_stat_broken = yes; then
9463 cat >>confdefs.h <<\_ACEOF
9464 #define STAT_MACROS_BROKEN 1
9469 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9470 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9471 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 cat >conftest.$ac_ext <<_ACEOF
9475 #line $LINENO "configure"
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h. */
9481 #include <sys/types.h>
9482 #include <sys/wait.h>
9484 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9487 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9495 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9500 rm -f conftest.$ac_objext
9501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9502 (eval $ac_compile) 2>&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } &&
9506 { ac_try='test -s conftest.$ac_objext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 ac_cv_header_sys_wait_h=yes
9514 echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9517 ac_cv_header_sys_wait_h=no
9519 rm -f conftest.$ac_objext conftest.$ac_ext
9521 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9522 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9523 if test $ac_cv_header_sys_wait_h = yes; then
9525 cat >>confdefs.h <<\_ACEOF
9526 #define HAVE_SYS_WAIT_H 1
9531 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9532 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9533 if test "${ac_cv_header_time+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 cat >conftest.$ac_ext <<_ACEOF
9537 #line $LINENO "configure"
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9543 #include <sys/types.h>
9544 #include <sys/time.h>
9550 if ((struct tm *) 0)
9556 rm -f conftest.$ac_objext
9557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9558 (eval $ac_compile) 2>&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } &&
9562 { ac_try='test -s conftest.$ac_objext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 ac_cv_header_time=yes
9570 echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9573 ac_cv_header_time=no
9575 rm -f conftest.$ac_objext conftest.$ac_ext
9577 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9578 echo "${ECHO_T}$ac_cv_header_time" >&6
9579 if test $ac_cv_header_time = yes; then
9581 cat >>confdefs.h <<\_ACEOF
9582 #define TIME_WITH_SYS_TIME 1
9588 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9589 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
9590 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9593 cat >conftest.$ac_ext <<_ACEOF
9594 #line $LINENO "configure"
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9600 $ac_includes_default
9604 static struct stat ac_aggr;
9605 if (ac_aggr.st_blksize)
9611 rm -f conftest.$ac_objext
9612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9613 (eval $ac_compile) 2>&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); } &&
9617 { ac_try='test -s conftest.$ac_objext'
9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; }; then
9623 ac_cv_member_struct_stat_st_blksize=yes
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9628 cat >conftest.$ac_ext <<_ACEOF
9629 #line $LINENO "configure"
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h. */
9635 $ac_includes_default
9639 static struct stat ac_aggr;
9640 if (sizeof ac_aggr.st_blksize)
9646 rm -f conftest.$ac_objext
9647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9648 (eval $ac_compile) 2>&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } &&
9652 { ac_try='test -s conftest.$ac_objext'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; }; then
9658 ac_cv_member_struct_stat_st_blksize=yes
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9663 ac_cv_member_struct_stat_st_blksize=no
9665 rm -f conftest.$ac_objext conftest.$ac_ext
9667 rm -f conftest.$ac_objext conftest.$ac_ext
9669 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
9670 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
9671 if test $ac_cv_member_struct_stat_st_blksize = yes; then
9673 cat >>confdefs.h <<_ACEOF
9674 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9678 cat >>confdefs.h <<\_ACEOF
9679 #define HAVE_ST_BLKSIZE 1
9685 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
9686 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
9687 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 cat >conftest.$ac_ext <<_ACEOF
9691 #line $LINENO "configure"
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9697 $ac_includes_default
9701 static struct stat ac_aggr;
9702 if (ac_aggr.st_blocks)
9708 rm -f conftest.$ac_objext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9710 (eval $ac_compile) 2>&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } &&
9714 { ac_try='test -s conftest.$ac_objext'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; }; then
9720 ac_cv_member_struct_stat_st_blocks=yes
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9725 cat >conftest.$ac_ext <<_ACEOF
9726 #line $LINENO "configure"
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 $ac_includes_default
9736 static struct stat ac_aggr;
9737 if (sizeof ac_aggr.st_blocks)
9743 rm -f conftest.$ac_objext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9745 (eval $ac_compile) 2>&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } &&
9749 { ac_try='test -s conftest.$ac_objext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 ac_cv_member_struct_stat_st_blocks=yes
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9760 ac_cv_member_struct_stat_st_blocks=no
9762 rm -f conftest.$ac_objext conftest.$ac_ext
9764 rm -f conftest.$ac_objext conftest.$ac_ext
9766 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
9767 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
9768 if test $ac_cv_member_struct_stat_st_blocks = yes; then
9770 cat >>confdefs.h <<_ACEOF
9771 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9775 cat >>confdefs.h <<\_ACEOF
9776 #define HAVE_ST_BLOCKS 1
9780 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
9784 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9785 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9786 if test "${ac_cv_struct_tm+set}" = set; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 cat >conftest.$ac_ext <<_ACEOF
9790 #line $LINENO "configure"
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9796 #include <sys/types.h>
9802 struct tm *tp; tp->tm_sec;
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809 (eval $ac_compile) 2>&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } &&
9813 { ac_try='test -s conftest.$ac_objext'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; }; then
9819 ac_cv_struct_tm=time.h
9821 echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9824 ac_cv_struct_tm=sys/time.h
9826 rm -f conftest.$ac_objext conftest.$ac_ext
9828 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9829 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9830 if test $ac_cv_struct_tm = sys/time.h; then
9832 cat >>confdefs.h <<\_ACEOF
9833 #define TM_IN_SYS_TIME 1
9838 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9839 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9840 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 cat >conftest.$ac_ext <<_ACEOF
9844 #line $LINENO "configure"
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850 #include <sys/types.h>
9851 #include <$ac_cv_struct_tm>
9857 static struct tm ac_aggr;
9858 if (ac_aggr.tm_zone)
9864 rm -f conftest.$ac_objext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9866 (eval $ac_compile) 2>&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } &&
9870 { ac_try='test -s conftest.$ac_objext'
9871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; }; then
9876 ac_cv_member_struct_tm_tm_zone=yes
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9881 cat >conftest.$ac_ext <<_ACEOF
9882 #line $LINENO "configure"
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h. */
9888 #include <sys/types.h>
9889 #include <$ac_cv_struct_tm>
9895 static struct tm ac_aggr;
9896 if (sizeof ac_aggr.tm_zone)
9902 rm -f conftest.$ac_objext
9903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9904 (eval $ac_compile) 2>&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } &&
9908 { ac_try='test -s conftest.$ac_objext'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; }; then
9914 ac_cv_member_struct_tm_tm_zone=yes
9916 echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9919 ac_cv_member_struct_tm_tm_zone=no
9921 rm -f conftest.$ac_objext conftest.$ac_ext
9923 rm -f conftest.$ac_objext conftest.$ac_ext
9925 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9926 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9927 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9929 cat >>confdefs.h <<_ACEOF
9930 #define HAVE_STRUCT_TM_TM_ZONE 1
9936 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9938 cat >>confdefs.h <<\_ACEOF
9939 #define HAVE_TM_ZONE 1
9943 echo "$as_me:$LINENO: checking for tzname" >&5
9944 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9945 if test "${ac_cv_var_tzname+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 cat >conftest.$ac_ext <<_ACEOF
9949 #line $LINENO "configure"
9952 cat confdefs.h >>conftest.$ac_ext
9953 cat >>conftest.$ac_ext <<_ACEOF
9954 /* end confdefs.h. */
9956 #ifndef tzname /* For SGI. */
9957 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9968 rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9970 (eval $ac_link) 2>&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } &&
9974 { ac_try='test -s conftest$ac_exeext'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
9980 ac_cv_var_tzname=yes
9982 echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9989 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9990 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9991 if test $ac_cv_var_tzname = yes; then
9993 cat >>confdefs.h <<\_ACEOF
9994 #define HAVE_TZNAME 1
10001 echo "$as_me:$LINENO: checking for utime.h" >&5
10002 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10003 if test "${ba_cv_header_utime_h+set}" = set; then
10004 echo $ECHO_N "(cached) $ECHO_C" >&6
10006 cat >conftest.$ac_ext <<_ACEOF
10007 #line $LINENO "configure"
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10014 #include <sys/types.h>
10024 rm -f conftest.$ac_objext
10025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10026 (eval $ac_compile) 2>&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } &&
10030 { ac_try='test -s conftest.$ac_objext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 ba_cv_header_utime_h=yes
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10041 ba_cv_header_utime_h=no
10043 rm -f conftest.$ac_objext conftest.$ac_ext
10045 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10046 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10047 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10048 #define HAVE_UTIME_H 1
10052 echo "$as_me:$LINENO: checking for socklen_t" >&5
10053 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10054 if test "${ba_cv_header_socklen_t+set}" = set; then
10055 echo $ECHO_N "(cached) $ECHO_C" >&6
10057 cat >conftest.$ac_ext <<_ACEOF
10058 #line $LINENO "configure"
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10065 #include <sys/types.h>
10066 #include <sys/socket.h>
10075 rm -f conftest.$ac_objext
10076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10077 (eval $ac_compile) 2>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } &&
10081 { ac_try='test -s conftest.$ac_objext'
10082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; }; then
10087 ba_cv_header_socklen_t=yes
10089 echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10092 ba_cv_header_socklen_t=no
10094 rm -f conftest.$ac_objext conftest.$ac_ext
10096 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10097 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10098 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10099 #define HAVE_SOCKLEN_T 1
10103 echo "$as_me:$LINENO: checking for bigendian" >&5
10104 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10105 if test "${ba_cv_bigendian+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 if test "$cross_compiling" = yes; then
10111 cat >conftest.$ac_ext <<_ACEOF
10112 #line $LINENO "configure"
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10118 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10120 rm -f conftest$ac_exeext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10122 (eval $ac_link) 2>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127 (eval $ac_try) 2>&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; }; then
10131 ba_cv_bigendian=yes
10133 echo "$as_me: program exited with status $ac_status" >&5
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137 ( exit $ac_status )
10140 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10143 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10144 echo "${ECHO_T}$ba_cv_bigendian" >&6
10145 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10146 #define HAVE_BIGENDIAN 1
10151 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10152 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10153 if test "${ac_cv_c_const+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 cat >conftest.$ac_ext <<_ACEOF
10157 #line $LINENO "configure"
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10167 /* FIXME: Include the comments suggested by Paul. */
10168 #ifndef __cplusplus
10169 /* Ultrix mips cc rejects this. */
10170 typedef int charset[2];
10172 /* SunOS 4.1.1 cc rejects this. */
10173 char const *const *ccp;
10175 /* NEC SVR4.0.2 mips cc rejects this. */
10176 struct point {int x, y;};
10177 static struct point const zero = {0,0};
10178 /* AIX XL C 1.02.0.0 rejects this.
10179 It does not let you subtract one const X* pointer from another in
10180 an arm of an if-expression whose if-part is not a constant
10182 const char *g = "string";
10183 ccp = &g + (g ? g-g : 0);
10184 /* HPUX 7.0 cc rejects these. */
10187 ccp = (char const *const *) p;
10188 { /* SCO 3.2v4 cc rejects this. */
10190 char const *s = 0 ? (char *) 0 : (char const *) 0;
10194 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10195 int x[] = {25, 17};
10196 const int *foo = &x[0];
10199 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10200 typedef const int *iptr;
10204 { /* AIX XL C 1.02.0.0 rejects this saying
10205 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10206 struct s { int j; const int *ap[3]; };
10207 struct s *b; b->j = 5;
10209 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10210 const int foo = 10;
10218 rm -f conftest.$ac_objext
10219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10220 (eval $ac_compile) 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); } &&
10224 { ac_try='test -s conftest.$ac_objext'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10232 echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10237 rm -f conftest.$ac_objext conftest.$ac_ext
10239 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10240 echo "${ECHO_T}$ac_cv_c_const" >&6
10241 if test $ac_cv_c_const = no; then
10243 cat >>confdefs.h <<\_ACEOF
10251 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10252 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10254 # The order of these tests is important.
10255 cat >conftest.$ac_ext <<_ACEOF
10256 #line $LINENO "configure"
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10262 #include <sys/statvfs.h>
10263 #include <sys/fstyp.h>
10265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10268 grep -v '^ *+' conftest.er1 >conftest.err
10270 cat conftest.err >&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } >/dev/null; then
10273 if test -s conftest.err; then
10274 ac_cpp_err=$ac_c_preproc_warn_flag
10281 if test -z "$ac_cpp_err"; then
10282 cat >>confdefs.h <<\_ACEOF
10283 #define FSTYPE_STATVFS 1
10287 echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.$ac_ext >&5
10292 rm -f conftest.err conftest.$ac_ext
10293 if test $fstype = no; then
10294 cat >conftest.$ac_ext <<_ACEOF
10295 #line $LINENO "configure"
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h. */
10301 #include <sys/statfs.h>
10302 #include <sys/fstyp.h>
10304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10307 grep -v '^ *+' conftest.er1 >conftest.err
10309 cat conftest.err >&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } >/dev/null; then
10312 if test -s conftest.err; then
10313 ac_cpp_err=$ac_c_preproc_warn_flag
10320 if test -z "$ac_cpp_err"; then
10321 cat >>confdefs.h <<\_ACEOF
10322 #define FSTYPE_USG_STATFS 1
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10331 rm -f conftest.err conftest.$ac_ext
10333 if test $fstype = no; then
10334 cat >conftest.$ac_ext <<_ACEOF
10335 #line $LINENO "configure"
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10341 #include <sys/statfs.h>
10342 #include <sys/vmount.h>
10344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10347 grep -v '^ *+' conftest.er1 >conftest.err
10349 cat conftest.err >&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } >/dev/null; then
10352 if test -s conftest.err; then
10353 ac_cpp_err=$ac_c_preproc_warn_flag
10360 if test -z "$ac_cpp_err"; then
10361 cat >>confdefs.h <<\_ACEOF
10362 #define FSTYPE_AIX_STATFS 1
10366 echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10371 rm -f conftest.err conftest.$ac_ext
10373 if test $fstype = no; then
10374 cat >conftest.$ac_ext <<_ACEOF
10375 #line $LINENO "configure"
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10381 #include <mntent.h>
10383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10386 grep -v '^ *+' conftest.er1 >conftest.err
10388 cat conftest.err >&5
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); } >/dev/null; then
10391 if test -s conftest.err; then
10392 ac_cpp_err=$ac_c_preproc_warn_flag
10399 if test -z "$ac_cpp_err"; then
10400 cat >>confdefs.h <<\_ACEOF
10401 #define FSTYPE_MNTENT 1
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10410 rm -f conftest.err conftest.$ac_ext
10412 if test $fstype = no; then
10413 cat >conftest.$ac_ext <<_ACEOF
10414 #line $LINENO "configure"
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10420 #include <sys/mount.h>
10423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10424 $EGREP "f_type;" >/dev/null 2>&1; then
10425 cat >>confdefs.h <<\_ACEOF
10426 #define FSTYPE_STATFS 1
10433 if test $fstype = no; then
10434 cat >conftest.$ac_ext <<_ACEOF
10435 #line $LINENO "configure"
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10441 #include <sys/mount.h>
10442 #include <sys/fs_types.h>
10444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10447 grep -v '^ *+' conftest.er1 >conftest.err
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } >/dev/null; then
10452 if test -s conftest.err; then
10453 ac_cpp_err=$ac_c_preproc_warn_flag
10460 if test -z "$ac_cpp_err"; then
10461 cat >>confdefs.h <<\_ACEOF
10462 #define FSTYPE_GETMNT 1
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10471 rm -f conftest.err conftest.$ac_ext
10473 echo "$as_me:$LINENO: result: $fstype" >&5
10474 echo "${ECHO_T}$fstype" >&6
10476 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10477 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10478 if test "${ac_cv_type_signal+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 cat >conftest.$ac_ext <<_ACEOF
10482 #line $LINENO "configure"
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10488 #include <sys/types.h>
10489 #include <signal.h>
10494 extern "C" void (*signal (int, void (*)(int)))(int);
10496 void (*signal ()) ();
10507 rm -f conftest.$ac_objext
10508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10509 (eval $ac_compile) 2>&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } &&
10513 { ac_try='test -s conftest.$ac_objext'
10514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515 (eval $ac_try) 2>&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; }; then
10519 ac_cv_type_signal=void
10521 echo "$as_me: failed program was:" >&5
10522 sed 's/^/| /' conftest.$ac_ext >&5
10524 ac_cv_type_signal=int
10526 rm -f conftest.$ac_objext conftest.$ac_ext
10528 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10529 echo "${ECHO_T}$ac_cv_type_signal" >&6
10531 cat >>confdefs.h <<_ACEOF
10532 #define RETSIGTYPE $ac_cv_type_signal
10537 echo "$as_me:$LINENO: checking for type of signal functions" >&5
10538 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
10539 if test "${bash_cv_signal_vintage+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 cat >conftest.$ac_ext <<_ACEOF
10544 #line $LINENO "configure"
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h. */
10550 #include <signal.h>
10556 struct sigaction sa;
10557 sigemptyset(&ss); sigsuspend(&ss);
10558 sigaction(SIGINT, &sa, (struct sigaction *) 0);
10559 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
10565 rm -f conftest.$ac_objext conftest$ac_exeext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10567 (eval $ac_link) 2>&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } &&
10571 { ac_try='test -s conftest$ac_exeext'
10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; }; then
10577 bash_cv_signal_vintage=posix
10579 echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.$ac_ext >&5
10583 cat >conftest.$ac_ext <<_ACEOF
10584 #line $LINENO "configure"
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10590 #include <signal.h>
10595 int mask = sigmask(SIGINT);
10596 sigsetmask(mask); sigblock(mask); sigpause(mask);
10602 rm -f conftest.$ac_objext conftest$ac_exeext
10603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10604 (eval $ac_link) 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } &&
10608 { ac_try='test -s conftest$ac_exeext'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; }; then
10614 bash_cv_signal_vintage=4.2bsd
10616 echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.$ac_ext >&5
10620 cat >conftest.$ac_ext <<_ACEOF
10621 #line $LINENO "configure"
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h. */
10628 #include <signal.h>
10629 RETSIGTYPE foo() { }
10634 int mask = sigmask(SIGINT);
10635 sigset(SIGINT, foo); sigrelse(SIGINT);
10636 sighold(SIGINT); sigpause(SIGINT);
10642 rm -f conftest.$ac_objext conftest$ac_exeext
10643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10644 (eval $ac_link) 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } &&
10648 { ac_try='test -s conftest$ac_exeext'
10649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650 (eval $ac_try) 2>&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; }; then
10654 bash_cv_signal_vintage=svr3
10656 echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10659 bash_cv_signal_vintage=v7
10662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10672 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
10673 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
10674 if test "$bash_cv_signal_vintage" = posix; then
10675 cat >>confdefs.h <<\_ACEOF
10676 #define HAVE_POSIX_SIGNALS 1
10679 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
10680 cat >>confdefs.h <<\_ACEOF
10681 #define HAVE_BSD_SIGNALS 1
10684 elif test "$bash_cv_signal_vintage" = svr3; then
10685 cat >>confdefs.h <<\_ACEOF
10686 #define HAVE_USG_SIGHOLD 1
10691 echo "$as_me:$LINENO: checking for mode_t" >&5
10692 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10693 if test "${ac_cv_type_mode_t+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 cat >conftest.$ac_ext <<_ACEOF
10697 #line $LINENO "configure"
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703 $ac_includes_default
10709 if (sizeof (mode_t))
10715 rm -f conftest.$ac_objext
10716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10717 (eval $ac_compile) 2>&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); } &&
10721 { ac_try='test -s conftest.$ac_objext'
10722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723 (eval $ac_try) 2>&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }; }; then
10727 ac_cv_type_mode_t=yes
10729 echo "$as_me: failed program was:" >&5
10730 sed 's/^/| /' conftest.$ac_ext >&5
10732 ac_cv_type_mode_t=no
10734 rm -f conftest.$ac_objext conftest.$ac_ext
10736 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10737 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10738 if test $ac_cv_type_mode_t = yes; then
10742 cat >>confdefs.h <<_ACEOF
10748 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10749 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10750 if test "${ac_cv_type_uid_t+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 cat >conftest.$ac_ext <<_ACEOF
10754 #line $LINENO "configure"
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h. */
10760 #include <sys/types.h>
10763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10764 $EGREP "uid_t" >/dev/null 2>&1; then
10765 ac_cv_type_uid_t=yes
10767 ac_cv_type_uid_t=no
10772 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10773 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10774 if test $ac_cv_type_uid_t = no; then
10776 cat >>confdefs.h <<\_ACEOF
10781 cat >>confdefs.h <<\_ACEOF
10787 echo "$as_me:$LINENO: checking for size_t" >&5
10788 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10789 if test "${ac_cv_type_size_t+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 cat >conftest.$ac_ext <<_ACEOF
10793 #line $LINENO "configure"
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h. */
10799 $ac_includes_default
10805 if (sizeof (size_t))
10811 rm -f conftest.$ac_objext
10812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10813 (eval $ac_compile) 2>&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } &&
10817 { ac_try='test -s conftest.$ac_objext'
10818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819 (eval $ac_try) 2>&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; }; then
10823 ac_cv_type_size_t=yes
10825 echo "$as_me: failed program was:" >&5
10826 sed 's/^/| /' conftest.$ac_ext >&5
10828 ac_cv_type_size_t=no
10830 rm -f conftest.$ac_objext conftest.$ac_ext
10832 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10833 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10834 if test $ac_cv_type_size_t = yes; then
10838 cat >>confdefs.h <<_ACEOF
10839 #define size_t unsigned
10844 echo "$as_me:$LINENO: checking for pid_t" >&5
10845 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10846 if test "${ac_cv_type_pid_t+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10849 cat >conftest.$ac_ext <<_ACEOF
10850 #line $LINENO "configure"
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h. */
10856 $ac_includes_default
10862 if (sizeof (pid_t))
10868 rm -f conftest.$ac_objext
10869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10870 (eval $ac_compile) 2>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } &&
10874 { ac_try='test -s conftest.$ac_objext'
10875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876 (eval $ac_try) 2>&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }; }; then
10880 ac_cv_type_pid_t=yes
10882 echo "$as_me: failed program was:" >&5
10883 sed 's/^/| /' conftest.$ac_ext >&5
10885 ac_cv_type_pid_t=no
10887 rm -f conftest.$ac_objext conftest.$ac_ext
10889 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10890 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10891 if test $ac_cv_type_pid_t = yes; then
10895 cat >>confdefs.h <<_ACEOF
10901 echo "$as_me:$LINENO: checking for off_t" >&5
10902 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10903 if test "${ac_cv_type_off_t+set}" = set; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 cat >conftest.$ac_ext <<_ACEOF
10907 #line $LINENO "configure"
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10913 $ac_includes_default
10919 if (sizeof (off_t))
10925 rm -f conftest.$ac_objext
10926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10927 (eval $ac_compile) 2>&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } &&
10931 { ac_try='test -s conftest.$ac_objext'
10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933 (eval $ac_try) 2>&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; }; then
10937 ac_cv_type_off_t=yes
10939 echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10942 ac_cv_type_off_t=no
10944 rm -f conftest.$ac_objext conftest.$ac_ext
10946 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10947 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10948 if test $ac_cv_type_off_t = yes; then
10952 cat >>confdefs.h <<_ACEOF
10958 echo "$as_me:$LINENO: checking for ino_t" >&5
10959 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
10960 if test "${ac_cv_type_ino_t+set}" = set; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 cat >conftest.$ac_ext <<_ACEOF
10964 #line $LINENO "configure"
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970 $ac_includes_default
10976 if (sizeof (ino_t))
10982 rm -f conftest.$ac_objext
10983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10984 (eval $ac_compile) 2>&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } &&
10988 { ac_try='test -s conftest.$ac_objext'
10989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990 (eval $ac_try) 2>&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; }; then
10994 ac_cv_type_ino_t=yes
10996 echo "$as_me: failed program was:" >&5
10997 sed 's/^/| /' conftest.$ac_ext >&5
10999 ac_cv_type_ino_t=no
11001 rm -f conftest.$ac_objext conftest.$ac_ext
11003 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11004 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11005 if test $ac_cv_type_ino_t = yes; then
11009 cat >>confdefs.h <<_ACEOF
11010 #define ino_t unsigned long
11015 echo "$as_me:$LINENO: checking for dev_t" >&5
11016 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11017 if test "${ac_cv_type_dev_t+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11020 cat >conftest.$ac_ext <<_ACEOF
11021 #line $LINENO "configure"
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027 $ac_includes_default
11033 if (sizeof (dev_t))
11039 rm -f conftest.$ac_objext
11040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11041 (eval $ac_compile) 2>&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } &&
11045 { ac_try='test -s conftest.$ac_objext'
11046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047 (eval $ac_try) 2>&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; }; then
11051 ac_cv_type_dev_t=yes
11053 echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11056 ac_cv_type_dev_t=no
11058 rm -f conftest.$ac_objext conftest.$ac_ext
11060 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11061 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11062 if test $ac_cv_type_dev_t = yes; then
11066 cat >>confdefs.h <<_ACEOF
11067 #define dev_t unsigned long
11072 echo "$as_me:$LINENO: checking for daddr_t" >&5
11073 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11074 if test "${ac_cv_type_daddr_t+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 cat >conftest.$ac_ext <<_ACEOF
11078 #line $LINENO "configure"
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11084 $ac_includes_default
11090 if (sizeof (daddr_t))
11096 rm -f conftest.$ac_objext
11097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11098 (eval $ac_compile) 2>&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } &&
11102 { ac_try='test -s conftest.$ac_objext'
11103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104 (eval $ac_try) 2>&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; }; then
11108 ac_cv_type_daddr_t=yes
11110 echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11113 ac_cv_type_daddr_t=no
11115 rm -f conftest.$ac_objext conftest.$ac_ext
11117 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11118 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11119 if test $ac_cv_type_daddr_t = yes; then
11123 cat >>confdefs.h <<_ACEOF
11124 #define daddr_t long
11129 echo "$as_me:$LINENO: checking for major_t" >&5
11130 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11131 if test "${ac_cv_type_major_t+set}" = set; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11134 cat >conftest.$ac_ext <<_ACEOF
11135 #line $LINENO "configure"
11138 cat confdefs.h >>conftest.$ac_ext
11139 cat >>conftest.$ac_ext <<_ACEOF
11140 /* end confdefs.h. */
11141 $ac_includes_default
11147 if (sizeof (major_t))
11153 rm -f conftest.$ac_objext
11154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11155 (eval $ac_compile) 2>&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } &&
11159 { ac_try='test -s conftest.$ac_objext'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 ac_cv_type_major_t=yes
11167 echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11170 ac_cv_type_major_t=no
11172 rm -f conftest.$ac_objext conftest.$ac_ext
11174 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11175 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11176 if test $ac_cv_type_major_t = yes; then
11180 cat >>confdefs.h <<_ACEOF
11181 #define major_t int
11186 echo "$as_me:$LINENO: checking for minor_t" >&5
11187 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11188 if test "${ac_cv_type_minor_t+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11191 cat >conftest.$ac_ext <<_ACEOF
11192 #line $LINENO "configure"
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11198 $ac_includes_default
11204 if (sizeof (minor_t))
11210 rm -f conftest.$ac_objext
11211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11212 (eval $ac_compile) 2>&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); } &&
11216 { ac_try='test -s conftest.$ac_objext'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
11222 ac_cv_type_minor_t=yes
11224 echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11227 ac_cv_type_minor_t=no
11229 rm -f conftest.$ac_objext conftest.$ac_ext
11231 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11232 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11233 if test $ac_cv_type_minor_t = yes; then
11237 cat >>confdefs.h <<_ACEOF
11238 #define minor_t int
11243 echo "$as_me:$LINENO: checking for ssize_t" >&5
11244 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11245 if test "${ac_cv_type_ssize_t+set}" = set; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11248 cat >conftest.$ac_ext <<_ACEOF
11249 #line $LINENO "configure"
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 $ac_includes_default
11261 if (sizeof (ssize_t))
11267 rm -f conftest.$ac_objext
11268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11269 (eval $ac_compile) 2>&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } &&
11273 { ac_try='test -s conftest.$ac_objext'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; }; then
11279 ac_cv_type_ssize_t=yes
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11284 ac_cv_type_ssize_t=no
11286 rm -f conftest.$ac_objext conftest.$ac_ext
11288 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11289 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11290 if test $ac_cv_type_ssize_t = yes; then
11294 cat >>confdefs.h <<_ACEOF
11295 #define ssize_t int
11300 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11301 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11302 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
11305 cat >conftest.$ac_ext <<_ACEOF
11306 #line $LINENO "configure"
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h. */
11312 $ac_includes_default
11316 static struct stat ac_aggr;
11317 if (ac_aggr.st_blocks)
11323 rm -f conftest.$ac_objext
11324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11325 (eval $ac_compile) 2>&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } &&
11329 { ac_try='test -s conftest.$ac_objext'
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; }; then
11335 ac_cv_member_struct_stat_st_blocks=yes
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 cat >conftest.$ac_ext <<_ACEOF
11341 #line $LINENO "configure"
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 $ac_includes_default
11351 static struct stat ac_aggr;
11352 if (sizeof ac_aggr.st_blocks)
11358 rm -f conftest.$ac_objext
11359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11360 (eval $ac_compile) 2>&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); } &&
11364 { ac_try='test -s conftest.$ac_objext'
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; }; then
11370 ac_cv_member_struct_stat_st_blocks=yes
11372 echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11375 ac_cv_member_struct_stat_st_blocks=no
11377 rm -f conftest.$ac_objext conftest.$ac_ext
11379 rm -f conftest.$ac_objext conftest.$ac_ext
11381 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11382 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11383 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11385 cat >>confdefs.h <<_ACEOF
11386 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11390 cat >>confdefs.h <<\_ACEOF
11391 #define HAVE_ST_BLOCKS 1
11395 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11400 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11401 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11402 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11405 cat >conftest.$ac_ext <<_ACEOF
11406 #line $LINENO "configure"
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11412 $ac_includes_default
11416 static struct stat ac_aggr;
11417 if (ac_aggr.st_rdev)
11423 rm -f conftest.$ac_objext
11424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11425 (eval $ac_compile) 2>&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } &&
11429 { ac_try='test -s conftest.$ac_objext'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 ac_cv_member_struct_stat_st_rdev=yes
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11440 cat >conftest.$ac_ext <<_ACEOF
11441 #line $LINENO "configure"
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 $ac_includes_default
11451 static struct stat ac_aggr;
11452 if (sizeof ac_aggr.st_rdev)
11458 rm -f conftest.$ac_objext
11459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11460 (eval $ac_compile) 2>&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); } &&
11464 { ac_try='test -s conftest.$ac_objext'
11465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466 (eval $ac_try) 2>&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; }; then
11470 ac_cv_member_struct_stat_st_rdev=yes
11472 echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11475 ac_cv_member_struct_stat_st_rdev=no
11477 rm -f conftest.$ac_objext conftest.$ac_ext
11479 rm -f conftest.$ac_objext conftest.$ac_ext
11481 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
11482 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
11483 if test $ac_cv_member_struct_stat_st_rdev = yes; then
11485 cat >>confdefs.h <<_ACEOF
11486 #define HAVE_STRUCT_STAT_ST_RDEV 1
11490 cat >>confdefs.h <<\_ACEOF
11491 #define HAVE_ST_RDEV 1
11497 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11498 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11499 if test "${ac_cv_struct_tm+set}" = set; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
11502 cat >conftest.$ac_ext <<_ACEOF
11503 #line $LINENO "configure"
11506 cat confdefs.h >>conftest.$ac_ext
11507 cat >>conftest.$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 #include <sys/types.h>
11515 struct tm *tp; tp->tm_sec;
11520 rm -f conftest.$ac_objext
11521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11522 (eval $ac_compile) 2>&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); } &&
11526 { ac_try='test -s conftest.$ac_objext'
11527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11528 (eval $ac_try) 2>&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); }; }; then
11532 ac_cv_struct_tm=time.h
11534 echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11537 ac_cv_struct_tm=sys/time.h
11539 rm -f conftest.$ac_objext conftest.$ac_ext
11541 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11542 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11543 if test $ac_cv_struct_tm = sys/time.h; then
11545 cat >>confdefs.h <<\_ACEOF
11546 #define TM_IN_SYS_TIME 1
11551 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11552 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11553 if test "${ac_cv_c_const+set}" = set; then
11554 echo $ECHO_N "(cached) $ECHO_C" >&6
11556 cat >conftest.$ac_ext <<_ACEOF
11557 #line $LINENO "configure"
11560 cat confdefs.h >>conftest.$ac_ext
11561 cat >>conftest.$ac_ext <<_ACEOF
11562 /* end confdefs.h. */
11567 /* FIXME: Include the comments suggested by Paul. */
11568 #ifndef __cplusplus
11569 /* Ultrix mips cc rejects this. */
11570 typedef int charset[2];
11572 /* SunOS 4.1.1 cc rejects this. */
11573 char const *const *ccp;
11575 /* NEC SVR4.0.2 mips cc rejects this. */
11576 struct point {int x, y;};
11577 static struct point const zero = {0,0};
11578 /* AIX XL C 1.02.0.0 rejects this.
11579 It does not let you subtract one const X* pointer from another in
11580 an arm of an if-expression whose if-part is not a constant
11582 const char *g = "string";
11583 ccp = &g + (g ? g-g : 0);
11584 /* HPUX 7.0 cc rejects these. */
11587 ccp = (char const *const *) p;
11588 { /* SCO 3.2v4 cc rejects this. */
11590 char const *s = 0 ? (char *) 0 : (char const *) 0;
11594 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11595 int x[] = {25, 17};
11596 const int *foo = &x[0];
11599 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11600 typedef const int *iptr;
11604 { /* AIX XL C 1.02.0.0 rejects this saying
11605 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11606 struct s { int j; const int *ap[3]; };
11607 struct s *b; b->j = 5;
11609 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11610 const int foo = 10;
11618 rm -f conftest.$ac_objext
11619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11620 (eval $ac_compile) 2>&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
11624 { ac_try='test -s conftest.$ac_objext'
11625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626 (eval $ac_try) 2>&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; }; then
11632 echo "$as_me: failed program was:" >&5
11633 sed 's/^/| /' conftest.$ac_ext >&5
11637 rm -f conftest.$ac_objext conftest.$ac_ext
11639 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11640 echo "${ECHO_T}$ac_cv_c_const" >&6
11641 if test $ac_cv_c_const = no; then
11643 cat >>confdefs.h <<\_ACEOF
11651 echo "$as_me:$LINENO: checking for char" >&5
11652 echo $ECHO_N "checking for char... $ECHO_C" >&6
11653 if test "${ac_cv_type_char+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11656 cat >conftest.$ac_ext <<_ACEOF
11657 #line $LINENO "configure"
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663 $ac_includes_default
11675 rm -f conftest.$ac_objext
11676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11677 (eval $ac_compile) 2>&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } &&
11681 { ac_try='test -s conftest.$ac_objext'
11682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683 (eval $ac_try) 2>&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11687 ac_cv_type_char=yes
11689 echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11694 rm -f conftest.$ac_objext conftest.$ac_ext
11696 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11697 echo "${ECHO_T}$ac_cv_type_char" >&6
11699 echo "$as_me:$LINENO: checking size of char" >&5
11700 echo $ECHO_N "checking size of char... $ECHO_C" >&6
11701 if test "${ac_cv_sizeof_char+set}" = set; then
11702 echo $ECHO_N "(cached) $ECHO_C" >&6
11704 if test "$ac_cv_type_char" = yes; then
11705 # The cast to unsigned long works around a bug in the HP C Compiler
11706 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11707 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11708 # This bug is HP SR number 8606223364.
11709 if test "$cross_compiling" = yes; then
11710 # Depending upon the size, compute the lo and hi bounds.
11711 cat >conftest.$ac_ext <<_ACEOF
11712 #line $LINENO "configure"
11715 cat confdefs.h >>conftest.$ac_ext
11716 cat >>conftest.$ac_ext <<_ACEOF
11717 /* end confdefs.h. */
11718 $ac_includes_default
11722 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11729 rm -f conftest.$ac_objext
11730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11731 (eval $ac_compile) 2>&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } &&
11735 { ac_try='test -s conftest.$ac_objext'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; }; then
11743 cat >conftest.$ac_ext <<_ACEOF
11744 #line $LINENO "configure"
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11750 $ac_includes_default
11754 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11761 rm -f conftest.$ac_objext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11763 (eval $ac_compile) 2>&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); } &&
11767 { ac_try='test -s conftest.$ac_objext'
11768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769 (eval $ac_try) 2>&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; }; then
11773 ac_hi=$ac_mid; break
11775 echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11778 ac_lo=`expr $ac_mid + 1`
11779 if test $ac_lo -le $ac_mid; then
11783 ac_mid=`expr 2 '*' $ac_mid + 1`
11785 rm -f conftest.$ac_objext conftest.$ac_ext
11788 echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11791 cat >conftest.$ac_ext <<_ACEOF
11792 #line $LINENO "configure"
11795 cat confdefs.h >>conftest.$ac_ext
11796 cat >>conftest.$ac_ext <<_ACEOF
11797 /* end confdefs.h. */
11798 $ac_includes_default
11802 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11809 rm -f conftest.$ac_objext
11810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11811 (eval $ac_compile) 2>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } &&
11815 { ac_try='test -s conftest.$ac_objext'
11816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817 (eval $ac_try) 2>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; }; then
11823 cat >conftest.$ac_ext <<_ACEOF
11824 #line $LINENO "configure"
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h. */
11830 $ac_includes_default
11834 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11841 rm -f conftest.$ac_objext
11842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11843 (eval $ac_compile) 2>&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } &&
11847 { ac_try='test -s conftest.$ac_objext'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; }; then
11853 ac_lo=$ac_mid; break
11855 echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11858 ac_hi=`expr '(' $ac_mid ')' - 1`
11859 if test $ac_mid -le $ac_hi; then
11863 ac_mid=`expr 2 '*' $ac_mid`
11865 rm -f conftest.$ac_objext conftest.$ac_ext
11868 echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11873 rm -f conftest.$ac_objext conftest.$ac_ext
11875 rm -f conftest.$ac_objext conftest.$ac_ext
11876 # Binary search between lo and hi bounds.
11877 while test "x$ac_lo" != "x$ac_hi"; do
11878 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11879 cat >conftest.$ac_ext <<_ACEOF
11880 #line $LINENO "configure"
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11886 $ac_includes_default
11890 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11897 rm -f conftest.$ac_objext
11898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11899 (eval $ac_compile) 2>&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } &&
11903 { ac_try='test -s conftest.$ac_objext'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; }; then
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11914 ac_lo=`expr '(' $ac_mid ')' + 1`
11916 rm -f conftest.$ac_objext conftest.$ac_ext
11919 ?*) ac_cv_sizeof_char=$ac_lo;;
11920 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11921 See \`config.log' for more details." >&5
11922 echo "$as_me: error: cannot compute sizeof (char), 77
11923 See \`config.log' for more details." >&2;}
11924 { (exit 1); exit 1; }; } ;;
11927 if test "$cross_compiling" = yes; then
11928 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11929 See \`config.log' for more details." >&5
11930 echo "$as_me: error: cannot run test program while cross compiling
11931 See \`config.log' for more details." >&2;}
11932 { (exit 1); exit 1; }; }
11934 cat >conftest.$ac_ext <<_ACEOF
11935 #line $LINENO "configure"
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h. */
11941 $ac_includes_default
11942 long longval () { return (long) (sizeof (char)); }
11943 unsigned long ulongval () { return (long) (sizeof (char)); }
11945 #include <stdlib.h>
11950 FILE *f = fopen ("conftest.val", "w");
11953 if (((long) (sizeof (char))) < 0)
11955 long i = longval ();
11956 if (i != ((long) (sizeof (char))))
11958 fprintf (f, "%ld\n", i);
11962 unsigned long i = ulongval ();
11963 if (i != ((long) (sizeof (char))))
11965 fprintf (f, "%lu\n", i);
11967 exit (ferror (f) || fclose (f) != 0);
11973 rm -f conftest$ac_exeext
11974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11975 (eval $ac_link) 2>&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; }; then
11984 ac_cv_sizeof_char=`cat conftest.val`
11986 echo "$as_me: program exited with status $ac_status" >&5
11987 echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11990 ( exit $ac_status )
11991 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11992 See \`config.log' for more details." >&5
11993 echo "$as_me: error: cannot compute sizeof (char), 77
11994 See \`config.log' for more details." >&2;}
11995 { (exit 1); exit 1; }; }
11997 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12002 ac_cv_sizeof_char=0
12005 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12006 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12007 cat >>confdefs.h <<_ACEOF
12008 #define SIZEOF_CHAR $ac_cv_sizeof_char
12012 echo "$as_me:$LINENO: checking for short int" >&5
12013 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12014 if test "${ac_cv_type_short_int+set}" = set; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12017 cat >conftest.$ac_ext <<_ACEOF
12018 #line $LINENO "configure"
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 $ac_includes_default
12028 if ((short int *) 0)
12030 if (sizeof (short int))
12036 rm -f conftest.$ac_objext
12037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12038 (eval $ac_compile) 2>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } &&
12042 { ac_try='test -s conftest.$ac_objext'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 ac_cv_type_short_int=yes
12050 echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12053 ac_cv_type_short_int=no
12055 rm -f conftest.$ac_objext conftest.$ac_ext
12057 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12058 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12060 echo "$as_me:$LINENO: checking size of short int" >&5
12061 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12062 if test "${ac_cv_sizeof_short_int+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12065 if test "$ac_cv_type_short_int" = yes; then
12066 # The cast to unsigned long works around a bug in the HP C Compiler
12067 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12068 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12069 # This bug is HP SR number 8606223364.
12070 if test "$cross_compiling" = yes; then
12071 # Depending upon the size, compute the lo and hi bounds.
12072 cat >conftest.$ac_ext <<_ACEOF
12073 #line $LINENO "configure"
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h. */
12079 $ac_includes_default
12083 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12090 rm -f conftest.$ac_objext
12091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12092 (eval $ac_compile) 2>&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); } &&
12096 { ac_try='test -s conftest.$ac_objext'
12097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098 (eval $ac_try) 2>&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; }; then
12104 cat >conftest.$ac_ext <<_ACEOF
12105 #line $LINENO "configure"
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12111 $ac_includes_default
12115 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12122 rm -f conftest.$ac_objext
12123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12124 (eval $ac_compile) 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } &&
12128 { ac_try='test -s conftest.$ac_objext'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; }; then
12134 ac_hi=$ac_mid; break
12136 echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12139 ac_lo=`expr $ac_mid + 1`
12140 if test $ac_lo -le $ac_mid; then
12144 ac_mid=`expr 2 '*' $ac_mid + 1`
12146 rm -f conftest.$ac_objext conftest.$ac_ext
12149 echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12152 cat >conftest.$ac_ext <<_ACEOF
12153 #line $LINENO "configure"
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h. */
12159 $ac_includes_default
12163 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12170 rm -f conftest.$ac_objext
12171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12172 (eval $ac_compile) 2>&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } &&
12176 { ac_try='test -s conftest.$ac_objext'
12177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12178 (eval $ac_try) 2>&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; }; then
12184 cat >conftest.$ac_ext <<_ACEOF
12185 #line $LINENO "configure"
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h. */
12191 $ac_includes_default
12195 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12202 rm -f conftest.$ac_objext
12203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12204 (eval $ac_compile) 2>&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } &&
12208 { ac_try='test -s conftest.$ac_objext'
12209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210 (eval $ac_try) 2>&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12214 ac_lo=$ac_mid; break
12216 echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12219 ac_hi=`expr '(' $ac_mid ')' - 1`
12220 if test $ac_mid -le $ac_hi; then
12224 ac_mid=`expr 2 '*' $ac_mid`
12226 rm -f conftest.$ac_objext conftest.$ac_ext
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12234 rm -f conftest.$ac_objext conftest.$ac_ext
12236 rm -f conftest.$ac_objext conftest.$ac_ext
12237 # Binary search between lo and hi bounds.
12238 while test "x$ac_lo" != "x$ac_hi"; do
12239 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12240 cat >conftest.$ac_ext <<_ACEOF
12241 #line $LINENO "configure"
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247 $ac_includes_default
12251 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12258 rm -f conftest.$ac_objext
12259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12260 (eval $ac_compile) 2>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } &&
12264 { ac_try='test -s conftest.$ac_objext'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12275 ac_lo=`expr '(' $ac_mid ')' + 1`
12277 rm -f conftest.$ac_objext conftest.$ac_ext
12280 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12281 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12282 See \`config.log' for more details." >&5
12283 echo "$as_me: error: cannot compute sizeof (short int), 77
12284 See \`config.log' for more details." >&2;}
12285 { (exit 1); exit 1; }; } ;;
12288 if test "$cross_compiling" = yes; then
12289 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12290 See \`config.log' for more details." >&5
12291 echo "$as_me: error: cannot run test program while cross compiling
12292 See \`config.log' for more details." >&2;}
12293 { (exit 1); exit 1; }; }
12295 cat >conftest.$ac_ext <<_ACEOF
12296 #line $LINENO "configure"
12299 cat confdefs.h >>conftest.$ac_ext
12300 cat >>conftest.$ac_ext <<_ACEOF
12301 /* end confdefs.h. */
12302 $ac_includes_default
12303 long longval () { return (long) (sizeof (short int)); }
12304 unsigned long ulongval () { return (long) (sizeof (short int)); }
12306 #include <stdlib.h>
12311 FILE *f = fopen ("conftest.val", "w");
12314 if (((long) (sizeof (short int))) < 0)
12316 long i = longval ();
12317 if (i != ((long) (sizeof (short int))))
12319 fprintf (f, "%ld\n", i);
12323 unsigned long i = ulongval ();
12324 if (i != ((long) (sizeof (short int))))
12326 fprintf (f, "%lu\n", i);
12328 exit (ferror (f) || fclose (f) != 0);
12334 rm -f conftest$ac_exeext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336 (eval $ac_link) 2>&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 ac_cv_sizeof_short_int=`cat conftest.val`
12347 echo "$as_me: program exited with status $ac_status" >&5
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12351 ( exit $ac_status )
12352 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12353 See \`config.log' for more details." >&5
12354 echo "$as_me: error: cannot compute sizeof (short int), 77
12355 See \`config.log' for more details." >&2;}
12356 { (exit 1); exit 1; }; }
12358 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12363 ac_cv_sizeof_short_int=0
12366 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12367 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12368 cat >>confdefs.h <<_ACEOF
12369 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12373 echo "$as_me:$LINENO: checking for int" >&5
12374 echo $ECHO_N "checking for int... $ECHO_C" >&6
12375 if test "${ac_cv_type_int+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12378 cat >conftest.$ac_ext <<_ACEOF
12379 #line $LINENO "configure"
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 $ac_includes_default
12397 rm -f conftest.$ac_objext
12398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12399 (eval $ac_compile) 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); } &&
12403 { ac_try='test -s conftest.$ac_objext'
12404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405 (eval $ac_try) 2>&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; }; then
12411 echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12416 rm -f conftest.$ac_objext conftest.$ac_ext
12418 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12419 echo "${ECHO_T}$ac_cv_type_int" >&6
12421 echo "$as_me:$LINENO: checking size of int" >&5
12422 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12423 if test "${ac_cv_sizeof_int+set}" = set; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12426 if test "$ac_cv_type_int" = yes; then
12427 # The cast to unsigned long works around a bug in the HP C Compiler
12428 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12429 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12430 # This bug is HP SR number 8606223364.
12431 if test "$cross_compiling" = yes; then
12432 # Depending upon the size, compute the lo and hi bounds.
12433 cat >conftest.$ac_ext <<_ACEOF
12434 #line $LINENO "configure"
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h. */
12440 $ac_includes_default
12444 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12451 rm -f conftest.$ac_objext
12452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12453 (eval $ac_compile) 2>&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } &&
12457 { ac_try='test -s conftest.$ac_objext'
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; }; then
12465 cat >conftest.$ac_ext <<_ACEOF
12466 #line $LINENO "configure"
12469 cat confdefs.h >>conftest.$ac_ext
12470 cat >>conftest.$ac_ext <<_ACEOF
12471 /* end confdefs.h. */
12472 $ac_includes_default
12476 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12483 rm -f conftest.$ac_objext
12484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try='test -s conftest.$ac_objext'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; }; then
12495 ac_hi=$ac_mid; break
12497 echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12500 ac_lo=`expr $ac_mid + 1`
12501 if test $ac_lo -le $ac_mid; then
12505 ac_mid=`expr 2 '*' $ac_mid + 1`
12507 rm -f conftest.$ac_objext conftest.$ac_ext
12510 echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12513 cat >conftest.$ac_ext <<_ACEOF
12514 #line $LINENO "configure"
12517 cat confdefs.h >>conftest.$ac_ext
12518 cat >>conftest.$ac_ext <<_ACEOF
12519 /* end confdefs.h. */
12520 $ac_includes_default
12524 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12531 rm -f conftest.$ac_objext
12532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12533 (eval $ac_compile) 2>&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } &&
12537 { ac_try='test -s conftest.$ac_objext'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12545 cat >conftest.$ac_ext <<_ACEOF
12546 #line $LINENO "configure"
12549 cat confdefs.h >>conftest.$ac_ext
12550 cat >>conftest.$ac_ext <<_ACEOF
12551 /* end confdefs.h. */
12552 $ac_includes_default
12556 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12563 rm -f conftest.$ac_objext
12564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12565 (eval $ac_compile) 2>&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } &&
12569 { ac_try='test -s conftest.$ac_objext'
12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; }; then
12575 ac_lo=$ac_mid; break
12577 echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12580 ac_hi=`expr '(' $ac_mid ')' - 1`
12581 if test $ac_mid -le $ac_hi; then
12585 ac_mid=`expr 2 '*' $ac_mid`
12587 rm -f conftest.$ac_objext conftest.$ac_ext
12590 echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.$ac_ext >&5
12595 rm -f conftest.$ac_objext conftest.$ac_ext
12597 rm -f conftest.$ac_objext conftest.$ac_ext
12598 # Binary search between lo and hi bounds.
12599 while test "x$ac_lo" != "x$ac_hi"; do
12600 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12601 cat >conftest.$ac_ext <<_ACEOF
12602 #line $LINENO "configure"
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h. */
12608 $ac_includes_default
12612 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12619 rm -f conftest.$ac_objext
12620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12621 (eval $ac_compile) 2>&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -s conftest.$ac_objext'
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; }; then
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12636 ac_lo=`expr '(' $ac_mid ')' + 1`
12638 rm -f conftest.$ac_objext conftest.$ac_ext
12641 ?*) ac_cv_sizeof_int=$ac_lo;;
12642 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12643 See \`config.log' for more details." >&5
12644 echo "$as_me: error: cannot compute sizeof (int), 77
12645 See \`config.log' for more details." >&2;}
12646 { (exit 1); exit 1; }; } ;;
12649 if test "$cross_compiling" = yes; then
12650 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12651 See \`config.log' for more details." >&5
12652 echo "$as_me: error: cannot run test program while cross compiling
12653 See \`config.log' for more details." >&2;}
12654 { (exit 1); exit 1; }; }
12656 cat >conftest.$ac_ext <<_ACEOF
12657 #line $LINENO "configure"
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12663 $ac_includes_default
12664 long longval () { return (long) (sizeof (int)); }
12665 unsigned long ulongval () { return (long) (sizeof (int)); }
12667 #include <stdlib.h>
12672 FILE *f = fopen ("conftest.val", "w");
12675 if (((long) (sizeof (int))) < 0)
12677 long i = longval ();
12678 if (i != ((long) (sizeof (int))))
12680 fprintf (f, "%ld\n", i);
12684 unsigned long i = ulongval ();
12685 if (i != ((long) (sizeof (int))))
12687 fprintf (f, "%lu\n", i);
12689 exit (ferror (f) || fclose (f) != 0);
12695 rm -f conftest$ac_exeext
12696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12697 (eval $ac_link) 2>&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12702 (eval $ac_try) 2>&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); }; }; then
12706 ac_cv_sizeof_int=`cat conftest.val`
12708 echo "$as_me: program exited with status $ac_status" >&5
12709 echo "$as_me: failed program was:" >&5
12710 sed 's/^/| /' conftest.$ac_ext >&5
12712 ( exit $ac_status )
12713 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12714 See \`config.log' for more details." >&5
12715 echo "$as_me: error: cannot compute sizeof (int), 77
12716 See \`config.log' for more details." >&2;}
12717 { (exit 1); exit 1; }; }
12719 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12727 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12728 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12729 cat >>confdefs.h <<_ACEOF
12730 #define SIZEOF_INT $ac_cv_sizeof_int
12734 echo "$as_me:$LINENO: checking for long int" >&5
12735 echo $ECHO_N "checking for long int... $ECHO_C" >&6
12736 if test "${ac_cv_type_long_int+set}" = set; then
12737 echo $ECHO_N "(cached) $ECHO_C" >&6
12739 cat >conftest.$ac_ext <<_ACEOF
12740 #line $LINENO "configure"
12743 cat confdefs.h >>conftest.$ac_ext
12744 cat >>conftest.$ac_ext <<_ACEOF
12745 /* end confdefs.h. */
12746 $ac_includes_default
12750 if ((long int *) 0)
12752 if (sizeof (long int))
12758 rm -f conftest.$ac_objext
12759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12760 (eval $ac_compile) 2>&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } &&
12764 { ac_try='test -s conftest.$ac_objext'
12765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766 (eval $ac_try) 2>&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; }; then
12770 ac_cv_type_long_int=yes
12772 echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12775 ac_cv_type_long_int=no
12777 rm -f conftest.$ac_objext conftest.$ac_ext
12779 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
12780 echo "${ECHO_T}$ac_cv_type_long_int" >&6
12782 echo "$as_me:$LINENO: checking size of long int" >&5
12783 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
12784 if test "${ac_cv_sizeof_long_int+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 if test "$ac_cv_type_long_int" = yes; then
12788 # The cast to unsigned long works around a bug in the HP C Compiler
12789 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12790 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12791 # This bug is HP SR number 8606223364.
12792 if test "$cross_compiling" = yes; then
12793 # Depending upon the size, compute the lo and hi bounds.
12794 cat >conftest.$ac_ext <<_ACEOF
12795 #line $LINENO "configure"
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12801 $ac_includes_default
12805 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
12812 rm -f conftest.$ac_objext
12813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12814 (eval $ac_compile) 2>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); } &&
12818 { ac_try='test -s conftest.$ac_objext'
12819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820 (eval $ac_try) 2>&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; }; then
12826 cat >conftest.$ac_ext <<_ACEOF
12827 #line $LINENO "configure"
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h. */
12833 $ac_includes_default
12837 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
12844 rm -f conftest.$ac_objext
12845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12846 (eval $ac_compile) 2>&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } &&
12850 { ac_try='test -s conftest.$ac_objext'
12851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852 (eval $ac_try) 2>&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; }; then
12856 ac_hi=$ac_mid; break
12858 echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12861 ac_lo=`expr $ac_mid + 1`
12862 if test $ac_lo -le $ac_mid; then
12866 ac_mid=`expr 2 '*' $ac_mid + 1`
12868 rm -f conftest.$ac_objext conftest.$ac_ext
12871 echo "$as_me: failed program was:" >&5
12872 sed 's/^/| /' conftest.$ac_ext >&5
12874 cat >conftest.$ac_ext <<_ACEOF
12875 #line $LINENO "configure"
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12881 $ac_includes_default
12885 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
12892 rm -f conftest.$ac_objext
12893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12894 (eval $ac_compile) 2>&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try='test -s conftest.$ac_objext'
12899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900 (eval $ac_try) 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; }; then
12906 cat >conftest.$ac_ext <<_ACEOF
12907 #line $LINENO "configure"
12910 cat confdefs.h >>conftest.$ac_ext
12911 cat >>conftest.$ac_ext <<_ACEOF
12912 /* end confdefs.h. */
12913 $ac_includes_default
12917 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
12924 rm -f conftest.$ac_objext
12925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12926 (eval $ac_compile) 2>&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); } &&
12930 { ac_try='test -s conftest.$ac_objext'
12931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; }; then
12936 ac_lo=$ac_mid; break
12938 echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12941 ac_hi=`expr '(' $ac_mid ')' - 1`
12942 if test $ac_mid -le $ac_hi; then
12946 ac_mid=`expr 2 '*' $ac_mid`
12948 rm -f conftest.$ac_objext conftest.$ac_ext
12951 echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12956 rm -f conftest.$ac_objext conftest.$ac_ext
12958 rm -f conftest.$ac_objext conftest.$ac_ext
12959 # Binary search between lo and hi bounds.
12960 while test "x$ac_lo" != "x$ac_hi"; do
12961 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12962 cat >conftest.$ac_ext <<_ACEOF
12963 #line $LINENO "configure"
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h. */
12969 $ac_includes_default
12973 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
12980 rm -f conftest.$ac_objext
12981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12982 (eval $ac_compile) 2>&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } &&
12986 { ac_try='test -s conftest.$ac_objext'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; }; then
12994 echo "$as_me: failed program was:" >&5
12995 sed 's/^/| /' conftest.$ac_ext >&5
12997 ac_lo=`expr '(' $ac_mid ')' + 1`
12999 rm -f conftest.$ac_objext conftest.$ac_ext
13002 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13003 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13004 See \`config.log' for more details." >&5
13005 echo "$as_me: error: cannot compute sizeof (long int), 77
13006 See \`config.log' for more details." >&2;}
13007 { (exit 1); exit 1; }; } ;;
13010 if test "$cross_compiling" = yes; then
13011 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13012 See \`config.log' for more details." >&5
13013 echo "$as_me: error: cannot run test program while cross compiling
13014 See \`config.log' for more details." >&2;}
13015 { (exit 1); exit 1; }; }
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. */
13024 $ac_includes_default
13025 long longval () { return (long) (sizeof (long int)); }
13026 unsigned long ulongval () { return (long) (sizeof (long int)); }
13028 #include <stdlib.h>
13033 FILE *f = fopen ("conftest.val", "w");
13036 if (((long) (sizeof (long int))) < 0)
13038 long i = longval ();
13039 if (i != ((long) (sizeof (long int))))
13041 fprintf (f, "%ld\n", i);
13045 unsigned long i = ulongval ();
13046 if (i != ((long) (sizeof (long int))))
13048 fprintf (f, "%lu\n", i);
13050 exit (ferror (f) || fclose (f) != 0);
13056 rm -f conftest$ac_exeext
13057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13058 (eval $ac_link) 2>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; }; then
13067 ac_cv_sizeof_long_int=`cat conftest.val`
13069 echo "$as_me: program exited with status $ac_status" >&5
13070 echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13073 ( exit $ac_status )
13074 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13075 See \`config.log' for more details." >&5
13076 echo "$as_me: error: cannot compute sizeof (long int), 77
13077 See \`config.log' for more details." >&2;}
13078 { (exit 1); exit 1; }; }
13080 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13085 ac_cv_sizeof_long_int=0
13088 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13089 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13090 cat >>confdefs.h <<_ACEOF
13091 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13095 echo "$as_me:$LINENO: checking for long long int" >&5
13096 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13097 if test "${ac_cv_type_long_long_int+set}" = set; then
13098 echo $ECHO_N "(cached) $ECHO_C" >&6
13100 cat >conftest.$ac_ext <<_ACEOF
13101 #line $LINENO "configure"
13104 cat confdefs.h >>conftest.$ac_ext
13105 cat >>conftest.$ac_ext <<_ACEOF
13106 /* end confdefs.h. */
13107 $ac_includes_default
13111 if ((long long int *) 0)
13113 if (sizeof (long long int))
13119 rm -f conftest.$ac_objext
13120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13121 (eval $ac_compile) 2>&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); } &&
13125 { ac_try='test -s conftest.$ac_objext'
13126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13127 (eval $ac_try) 2>&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); }; }; then
13131 ac_cv_type_long_long_int=yes
13133 echo "$as_me: failed program was:" >&5
13134 sed 's/^/| /' conftest.$ac_ext >&5
13136 ac_cv_type_long_long_int=no
13138 rm -f conftest.$ac_objext conftest.$ac_ext
13140 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13141 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13143 echo "$as_me:$LINENO: checking size of long long int" >&5
13144 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13145 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13148 if test "$ac_cv_type_long_long_int" = yes; then
13149 # The cast to unsigned long works around a bug in the HP C Compiler
13150 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13151 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13152 # This bug is HP SR number 8606223364.
13153 if test "$cross_compiling" = yes; then
13154 # Depending upon the size, compute the lo and hi bounds.
13155 cat >conftest.$ac_ext <<_ACEOF
13156 #line $LINENO "configure"
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h. */
13162 $ac_includes_default
13166 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13173 rm -f conftest.$ac_objext
13174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13175 (eval $ac_compile) 2>&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } &&
13179 { ac_try='test -s conftest.$ac_objext'
13180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181 (eval $ac_try) 2>&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; }; then
13187 cat >conftest.$ac_ext <<_ACEOF
13188 #line $LINENO "configure"
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h. */
13194 $ac_includes_default
13198 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13205 rm -f conftest.$ac_objext
13206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13207 (eval $ac_compile) 2>&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } &&
13211 { ac_try='test -s conftest.$ac_objext'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13217 ac_hi=$ac_mid; break
13219 echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.$ac_ext >&5
13222 ac_lo=`expr $ac_mid + 1`
13223 if test $ac_lo -le $ac_mid; then
13227 ac_mid=`expr 2 '*' $ac_mid + 1`
13229 rm -f conftest.$ac_objext conftest.$ac_ext
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13235 cat >conftest.$ac_ext <<_ACEOF
13236 #line $LINENO "configure"
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13242 $ac_includes_default
13246 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13253 rm -f conftest.$ac_objext
13254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13255 (eval $ac_compile) 2>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } &&
13259 { ac_try='test -s conftest.$ac_objext'
13260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13261 (eval $ac_try) 2>&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; }; then
13267 cat >conftest.$ac_ext <<_ACEOF
13268 #line $LINENO "configure"
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13274 $ac_includes_default
13278 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13285 rm -f conftest.$ac_objext
13286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13287 (eval $ac_compile) 2>&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); } &&
13291 { ac_try='test -s conftest.$ac_objext'
13292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13293 (eval $ac_try) 2>&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; }; then
13297 ac_lo=$ac_mid; break
13299 echo "$as_me: failed program was:" >&5
13300 sed 's/^/| /' conftest.$ac_ext >&5
13302 ac_hi=`expr '(' $ac_mid ')' - 1`
13303 if test $ac_mid -le $ac_hi; then
13307 ac_mid=`expr 2 '*' $ac_mid`
13309 rm -f conftest.$ac_objext conftest.$ac_ext
13312 echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.$ac_ext >&5
13317 rm -f conftest.$ac_objext conftest.$ac_ext
13319 rm -f conftest.$ac_objext conftest.$ac_ext
13320 # Binary search between lo and hi bounds.
13321 while test "x$ac_lo" != "x$ac_hi"; do
13322 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13323 cat >conftest.$ac_ext <<_ACEOF
13324 #line $LINENO "configure"
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13330 $ac_includes_default
13334 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13341 rm -f conftest.$ac_objext
13342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13343 (eval $ac_compile) 2>&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } &&
13347 { ac_try='test -s conftest.$ac_objext'
13348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349 (eval $ac_try) 2>&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); }; }; then
13355 echo "$as_me: failed program was:" >&5
13356 sed 's/^/| /' conftest.$ac_ext >&5
13358 ac_lo=`expr '(' $ac_mid ')' + 1`
13360 rm -f conftest.$ac_objext conftest.$ac_ext
13363 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13364 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13365 See \`config.log' for more details." >&5
13366 echo "$as_me: error: cannot compute sizeof (long long int), 77
13367 See \`config.log' for more details." >&2;}
13368 { (exit 1); exit 1; }; } ;;
13371 if test "$cross_compiling" = yes; then
13372 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13373 See \`config.log' for more details." >&5
13374 echo "$as_me: error: cannot run test program while cross compiling
13375 See \`config.log' for more details." >&2;}
13376 { (exit 1); exit 1; }; }
13378 cat >conftest.$ac_ext <<_ACEOF
13379 #line $LINENO "configure"
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h. */
13385 $ac_includes_default
13386 long longval () { return (long) (sizeof (long long int)); }
13387 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13389 #include <stdlib.h>
13394 FILE *f = fopen ("conftest.val", "w");
13397 if (((long) (sizeof (long long int))) < 0)
13399 long i = longval ();
13400 if (i != ((long) (sizeof (long long int))))
13402 fprintf (f, "%ld\n", i);
13406 unsigned long i = ulongval ();
13407 if (i != ((long) (sizeof (long long int))))
13409 fprintf (f, "%lu\n", i);
13411 exit (ferror (f) || fclose (f) != 0);
13417 rm -f conftest$ac_exeext
13418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13419 (eval $ac_link) 2>&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; }; then
13428 ac_cv_sizeof_long_long_int=`cat conftest.val`
13430 echo "$as_me: program exited with status $ac_status" >&5
13431 echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13434 ( exit $ac_status )
13435 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13436 See \`config.log' for more details." >&5
13437 echo "$as_me: error: cannot compute sizeof (long long int), 77
13438 See \`config.log' for more details." >&2;}
13439 { (exit 1); exit 1; }; }
13441 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13446 ac_cv_sizeof_long_long_int=0
13449 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13450 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13451 cat >>confdefs.h <<_ACEOF
13452 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13456 echo "$as_me:$LINENO: checking for int *" >&5
13457 echo $ECHO_N "checking for int *... $ECHO_C" >&6
13458 if test "${ac_cv_type_int_p+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13461 cat >conftest.$ac_ext <<_ACEOF
13462 #line $LINENO "configure"
13465 cat confdefs.h >>conftest.$ac_ext
13466 cat >>conftest.$ac_ext <<_ACEOF
13467 /* end confdefs.h. */
13468 $ac_includes_default
13474 if (sizeof (int *))
13480 rm -f conftest.$ac_objext
13481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13482 (eval $ac_compile) 2>&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } &&
13486 { ac_try='test -s conftest.$ac_objext'
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; }; then
13492 ac_cv_type_int_p=yes
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13497 ac_cv_type_int_p=no
13499 rm -f conftest.$ac_objext conftest.$ac_ext
13501 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13502 echo "${ECHO_T}$ac_cv_type_int_p" >&6
13504 echo "$as_me:$LINENO: checking size of int *" >&5
13505 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13506 if test "${ac_cv_sizeof_int_p+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 if test "$ac_cv_type_int_p" = yes; then
13510 # The cast to unsigned long works around a bug in the HP C Compiler
13511 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13512 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13513 # This bug is HP SR number 8606223364.
13514 if test "$cross_compiling" = yes; then
13515 # Depending upon the size, compute the lo and hi bounds.
13516 cat >conftest.$ac_ext <<_ACEOF
13517 #line $LINENO "configure"
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h. */
13523 $ac_includes_default
13527 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13534 rm -f conftest.$ac_objext
13535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13536 (eval $ac_compile) 2>&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } &&
13540 { ac_try='test -s conftest.$ac_objext'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13548 cat >conftest.$ac_ext <<_ACEOF
13549 #line $LINENO "configure"
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h. */
13555 $ac_includes_default
13559 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13566 rm -f conftest.$ac_objext
13567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13568 (eval $ac_compile) 2>&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } &&
13572 { ac_try='test -s conftest.$ac_objext'
13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; }; then
13578 ac_hi=$ac_mid; break
13580 echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 ac_lo=`expr $ac_mid + 1`
13584 if test $ac_lo -le $ac_mid; then
13588 ac_mid=`expr 2 '*' $ac_mid + 1`
13590 rm -f conftest.$ac_objext conftest.$ac_ext
13593 echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13596 cat >conftest.$ac_ext <<_ACEOF
13597 #line $LINENO "configure"
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13603 $ac_includes_default
13607 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13614 rm -f conftest.$ac_objext
13615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13616 (eval $ac_compile) 2>&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try='test -s conftest.$ac_objext'
13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 (eval $ac_try) 2>&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; }; then
13628 cat >conftest.$ac_ext <<_ACEOF
13629 #line $LINENO "configure"
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13635 $ac_includes_default
13639 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13646 rm -f conftest.$ac_objext
13647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13648 (eval $ac_compile) 2>&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } &&
13652 { ac_try='test -s conftest.$ac_objext'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; }; then
13658 ac_lo=$ac_mid; break
13660 echo "$as_me: failed program was:" >&5
13661 sed 's/^/| /' conftest.$ac_ext >&5
13663 ac_hi=`expr '(' $ac_mid ')' - 1`
13664 if test $ac_mid -le $ac_hi; then
13668 ac_mid=`expr 2 '*' $ac_mid`
13670 rm -f conftest.$ac_objext conftest.$ac_ext
13673 echo "$as_me: failed program was:" >&5
13674 sed 's/^/| /' conftest.$ac_ext >&5
13678 rm -f conftest.$ac_objext conftest.$ac_ext
13680 rm -f conftest.$ac_objext conftest.$ac_ext
13681 # Binary search between lo and hi bounds.
13682 while test "x$ac_lo" != "x$ac_hi"; do
13683 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13684 cat >conftest.$ac_ext <<_ACEOF
13685 #line $LINENO "configure"
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h. */
13691 $ac_includes_default
13695 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13702 rm -f conftest.$ac_objext
13703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13704 (eval $ac_compile) 2>&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } &&
13708 { ac_try='test -s conftest.$ac_objext'
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; }; then
13716 echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.$ac_ext >&5
13719 ac_lo=`expr '(' $ac_mid ')' + 1`
13721 rm -f conftest.$ac_objext conftest.$ac_ext
13724 ?*) ac_cv_sizeof_int_p=$ac_lo;;
13725 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13726 See \`config.log' for more details." >&5
13727 echo "$as_me: error: cannot compute sizeof (int *), 77
13728 See \`config.log' for more details." >&2;}
13729 { (exit 1); exit 1; }; } ;;
13732 if test "$cross_compiling" = yes; then
13733 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13734 See \`config.log' for more details." >&5
13735 echo "$as_me: error: cannot run test program while cross compiling
13736 See \`config.log' for more details." >&2;}
13737 { (exit 1); exit 1; }; }
13739 cat >conftest.$ac_ext <<_ACEOF
13740 #line $LINENO "configure"
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13746 $ac_includes_default
13747 long longval () { return (long) (sizeof (int *)); }
13748 unsigned long ulongval () { return (long) (sizeof (int *)); }
13750 #include <stdlib.h>
13755 FILE *f = fopen ("conftest.val", "w");
13758 if (((long) (sizeof (int *))) < 0)
13760 long i = longval ();
13761 if (i != ((long) (sizeof (int *))))
13763 fprintf (f, "%ld\n", i);
13767 unsigned long i = ulongval ();
13768 if (i != ((long) (sizeof (int *))))
13770 fprintf (f, "%lu\n", i);
13772 exit (ferror (f) || fclose (f) != 0);
13778 rm -f conftest$ac_exeext
13779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13780 (eval $ac_link) 2>&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; }; then
13789 ac_cv_sizeof_int_p=`cat conftest.val`
13791 echo "$as_me: program exited with status $ac_status" >&5
13792 echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13795 ( exit $ac_status )
13796 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13797 See \`config.log' for more details." >&5
13798 echo "$as_me: error: cannot compute sizeof (int *), 77
13799 See \`config.log' for more details." >&2;}
13800 { (exit 1); exit 1; }; }
13802 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13807 ac_cv_sizeof_int_p=0
13810 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
13811 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
13812 cat >>confdefs.h <<_ACEOF
13813 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
13818 # Check for sys/types.h types
13819 echo "$as_me:$LINENO: checking for u_int type" >&5
13820 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
13821 if test "${ac_cv_have_u_int+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13825 cat >conftest.$ac_ext <<_ACEOF
13826 #line $LINENO "configure"
13829 cat confdefs.h >>conftest.$ac_ext
13830 cat >>conftest.$ac_ext <<_ACEOF
13831 /* end confdefs.h. */
13832 #include <sys/types.h>
13841 rm -f conftest.$ac_objext
13842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13843 (eval $ac_compile) 2>&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); } &&
13847 { ac_try='test -s conftest.$ac_objext'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13853 ac_cv_have_u_int="yes"
13855 echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13858 ac_cv_have_u_int="no"
13861 rm -f conftest.$ac_objext conftest.$ac_ext
13864 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
13865 echo "${ECHO_T}$ac_cv_have_u_int" >&6
13866 if test "x$ac_cv_have_u_int" = "xyes" ; then
13867 cat >>confdefs.h <<\_ACEOF
13868 #define HAVE_U_INT 1
13874 echo "$as_me:$LINENO: checking for intmax_t type" >&5
13875 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
13876 if test "${ac_cv_have_intmax_t+set}" = set; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13880 cat >conftest.$ac_ext <<_ACEOF
13881 #line $LINENO "configure"
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h. */
13887 #include <sys/types.h>
13896 rm -f conftest.$ac_objext
13897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13898 (eval $ac_compile) 2>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } &&
13902 { ac_try='test -s conftest.$ac_objext'
13903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; }; then
13908 ac_cv_have_intmax_t="yes"
13910 echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13914 cat >conftest.$ac_ext <<_ACEOF
13915 #line $LINENO "configure"
13918 cat confdefs.h >>conftest.$ac_ext
13919 cat >>conftest.$ac_ext <<_ACEOF
13920 /* end confdefs.h. */
13921 #include <stdint.h>
13930 rm -f conftest.$ac_objext
13931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13932 (eval $ac_compile) 2>&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
13936 { ac_try='test -s conftest.$ac_objext'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; }; then
13942 ac_cv_have_intmax_t="yes"
13944 echo "$as_me: failed program was:" >&5
13945 sed 's/^/| /' conftest.$ac_ext >&5
13947 ac_cv_have_intmax_t="no"
13950 rm -f conftest.$ac_objext conftest.$ac_ext
13954 rm -f conftest.$ac_objext conftest.$ac_ext
13958 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
13959 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
13960 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
13961 cat >>confdefs.h <<\_ACEOF
13962 #define HAVE_INTMAX_T 1
13969 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
13970 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
13971 if test "${ac_cv_have_u_intmax_t+set}" = set; then
13972 echo $ECHO_N "(cached) $ECHO_C" >&6
13975 cat >conftest.$ac_ext <<_ACEOF
13976 #line $LINENO "configure"
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h. */
13982 #include <sys/types.h>
13986 u_intmax_t a; a = 1;
13991 rm -f conftest.$ac_objext
13992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13993 (eval $ac_compile) 2>&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } &&
13997 { ac_try='test -s conftest.$ac_objext'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; }; then
14003 ac_cv_have_u_intmax_t="yes"
14005 echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14009 cat >conftest.$ac_ext <<_ACEOF
14010 #line $LINENO "configure"
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h. */
14016 #include <stdint.h>
14020 u_intmax_t a; a = 1;
14025 rm -f conftest.$ac_objext
14026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14027 (eval $ac_compile) 2>&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -s conftest.$ac_objext'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }; then
14037 ac_cv_have_u_intmax_t="yes"
14039 echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14042 ac_cv_have_u_intmax_t="no"
14045 rm -f conftest.$ac_objext conftest.$ac_ext
14049 rm -f conftest.$ac_objext conftest.$ac_ext
14052 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14053 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14054 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14055 cat >>confdefs.h <<\_ACEOF
14056 #define HAVE_U_INTMAX_T 1
14063 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14064 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14065 if test "${ac_cv_have_intxx_t+set}" = set; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 cat >conftest.$ac_ext <<_ACEOF
14070 #line $LINENO "configure"
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h. */
14076 #include <sys/types.h>
14080 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14085 rm -f conftest.$ac_objext
14086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14087 (eval $ac_compile) 2>&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); } &&
14091 { ac_try='test -s conftest.$ac_objext'
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; }; then
14097 ac_cv_have_intxx_t="yes"
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14102 ac_cv_have_intxx_t="no"
14105 rm -f conftest.$ac_objext conftest.$ac_ext
14108 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14109 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14110 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14111 cat >>confdefs.h <<\_ACEOF
14112 #define HAVE_INTXX_T 1
14118 echo "$as_me:$LINENO: checking for int64_t type" >&5
14119 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14120 if test "${ac_cv_have_int64_t+set}" = set; then
14121 echo $ECHO_N "(cached) $ECHO_C" >&6
14124 cat >conftest.$ac_ext <<_ACEOF
14125 #line $LINENO "configure"
14128 cat confdefs.h >>conftest.$ac_ext
14129 cat >>conftest.$ac_ext <<_ACEOF
14130 /* end confdefs.h. */
14131 #include <sys/types.h>
14140 rm -f conftest.$ac_objext
14141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14142 (eval $ac_compile) 2>&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } &&
14146 { ac_try='test -s conftest.$ac_objext'
14147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148 (eval $ac_try) 2>&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; }; then
14152 ac_cv_have_int64_t="yes"
14154 echo "$as_me: failed program was:" >&5
14155 sed 's/^/| /' conftest.$ac_ext >&5
14157 ac_cv_have_int64_t="no"
14160 rm -f conftest.$ac_objext conftest.$ac_ext
14163 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14164 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14165 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14166 cat >>confdefs.h <<\_ACEOF
14167 #define HAVE_INT64_T 1
14173 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14174 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14175 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14176 echo $ECHO_N "(cached) $ECHO_C" >&6
14179 cat >conftest.$ac_ext <<_ACEOF
14180 #line $LINENO "configure"
14183 cat confdefs.h >>conftest.$ac_ext
14184 cat >>conftest.$ac_ext <<_ACEOF
14185 /* end confdefs.h. */
14186 #include <sys/types.h>
14190 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14195 rm -f conftest.$ac_objext
14196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14197 (eval $ac_compile) 2>&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); } &&
14201 { ac_try='test -s conftest.$ac_objext'
14202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; }; then
14207 ac_cv_have_u_intxx_t="yes"
14209 echo "$as_me: failed program was:" >&5
14210 sed 's/^/| /' conftest.$ac_ext >&5
14212 ac_cv_have_u_intxx_t="no"
14215 rm -f conftest.$ac_objext conftest.$ac_ext
14218 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14219 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14220 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14221 cat >>confdefs.h <<\_ACEOF
14222 #define HAVE_U_INTXX_T 1
14228 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14229 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14230 if test "${ac_cv_have_u_int64_t+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14234 cat >conftest.$ac_ext <<_ACEOF
14235 #line $LINENO "configure"
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14241 #include <sys/types.h>
14245 u_int64_t a; a = 1;
14250 rm -f conftest.$ac_objext
14251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14252 (eval $ac_compile) 2>&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); } &&
14256 { ac_try='test -s conftest.$ac_objext'
14257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14258 (eval $ac_try) 2>&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); }; }; then
14262 ac_cv_have_u_int64_t="yes"
14264 echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14267 ac_cv_have_u_int64_t="no"
14270 rm -f conftest.$ac_objext conftest.$ac_ext
14273 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14274 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14275 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14276 cat >>confdefs.h <<\_ACEOF
14277 #define HAVE_U_INT64_T 1
14283 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14284 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14286 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14287 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14288 cat >conftest.$ac_ext <<_ACEOF
14289 #line $LINENO "configure"
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14295 #include <sys/bitypes.h>
14299 int8_t a; int16_t b; int32_t c;
14300 u_int8_t e; u_int16_t f; u_int32_t g;
14301 a = b = c = e = f = g = 1;
14306 rm -f conftest.$ac_objext
14307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14308 (eval $ac_compile) 2>&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } &&
14312 { ac_try='test -s conftest.$ac_objext'
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; }; then
14318 cat >>confdefs.h <<\_ACEOF
14319 #define HAVE_U_INTXX_T 1
14322 cat >>confdefs.h <<\_ACEOF
14323 #define HAVE_INTXX_T 1
14326 cat >>confdefs.h <<\_ACEOF
14327 #define HAVE_SYS_BITYPES_H 1
14330 echo "$as_me:$LINENO: result: yes" >&5
14331 echo "${ECHO_T}yes" >&6
14333 echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14336 echo "$as_me:$LINENO: result: no" >&5
14337 echo "${ECHO_T}no" >&6
14340 rm -f conftest.$ac_objext conftest.$ac_ext
14343 if test -z "$have_u_intxx_t" ; then
14344 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14345 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14346 if test "${ac_cv_have_uintxx_t+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14350 cat >conftest.$ac_ext <<_ACEOF
14351 #line $LINENO "configure"
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h. */
14357 #include <sys/types.h>
14361 uint8_t a; uint16_t b;
14362 uint32_t c; a = b = c = 1;
14367 rm -f conftest.$ac_objext
14368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14369 (eval $ac_compile) 2>&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } &&
14373 { ac_try='test -s conftest.$ac_objext'
14374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375 (eval $ac_try) 2>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; }; then
14379 ac_cv_have_uintxx_t="yes"
14381 echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.$ac_ext >&5
14384 ac_cv_have_uintxx_t="no"
14387 rm -f conftest.$ac_objext conftest.$ac_ext
14390 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14391 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14392 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14393 cat >>confdefs.h <<\_ACEOF
14394 #define HAVE_UINTXX_T 1
14430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14431 echo "$as_me:$LINENO: checking for $ac_func" >&5
14432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14433 if eval "test \"\${$as_ac_var+set}\" = set"; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14436 cat >conftest.$ac_ext <<_ACEOF
14437 #line $LINENO "configure"
14440 cat confdefs.h >>conftest.$ac_ext
14441 cat >>conftest.$ac_ext <<_ACEOF
14442 /* end confdefs.h. */
14443 /* System header to define __stub macros and hopefully few prototypes,
14444 which can conflict with char $ac_func (); below.
14445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14446 <limits.h> exists even on freestanding compilers. */
14448 # include <limits.h>
14450 # include <assert.h>
14452 /* Override any gcc2 internal prototype to avoid an error. */
14457 /* We use char because int might match the return type of a gcc2
14458 builtin and then its argument prototype would still apply. */
14460 /* The GNU C library defines this for functions which it implements
14461 to always fail with ENOSYS. Some functions are actually named
14462 something starting with __ and the normal name is an alias. */
14463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14466 char (*f) () = $ac_func;
14475 return f != $ac_func;
14480 rm -f conftest.$ac_objext conftest$ac_exeext
14481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14482 (eval $ac_link) 2>&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } &&
14486 { ac_try='test -s conftest$ac_exeext'
14487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488 (eval $ac_try) 2>&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; }; then
14492 eval "$as_ac_var=yes"
14494 echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14497 eval "$as_ac_var=no"
14499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14503 if test `eval echo '${'$as_ac_var'}'` = yes; then
14504 cat >>confdefs.h <<_ACEOF
14505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14509 echo 'configure: cannot find needed function.'; exit 1
14516 for ac_func in fchdir
14518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14519 echo "$as_me:$LINENO: checking for $ac_func" >&5
14520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14521 if eval "test \"\${$as_ac_var+set}\" = set"; then
14522 echo $ECHO_N "(cached) $ECHO_C" >&6
14524 cat >conftest.$ac_ext <<_ACEOF
14525 #line $LINENO "configure"
14528 cat confdefs.h >>conftest.$ac_ext
14529 cat >>conftest.$ac_ext <<_ACEOF
14530 /* end confdefs.h. */
14531 /* System header to define __stub macros and hopefully few prototypes,
14532 which can conflict with char $ac_func (); below.
14533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14534 <limits.h> exists even on freestanding compilers. */
14536 # include <limits.h>
14538 # include <assert.h>
14540 /* Override any gcc2 internal prototype to avoid an error. */
14545 /* We use char because int might match the return type of a gcc2
14546 builtin and then its argument prototype would still apply. */
14548 /* The GNU C library defines this for functions which it implements
14549 to always fail with ENOSYS. Some functions are actually named
14550 something starting with __ and the normal name is an alias. */
14551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14554 char (*f) () = $ac_func;
14563 return f != $ac_func;
14568 rm -f conftest.$ac_objext conftest$ac_exeext
14569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14570 (eval $ac_link) 2>&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); } &&
14574 { ac_try='test -s conftest$ac_exeext'
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }; then
14580 eval "$as_ac_var=yes"
14582 echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14585 eval "$as_ac_var=no"
14587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14591 if test `eval echo '${'$as_ac_var'}'` = yes; then
14592 cat >>confdefs.h <<_ACEOF
14593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14595 cat >>confdefs.h <<\_ACEOF
14596 #define HAVE_FCHDIR 1
14603 for ac_func in strtoll
14605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14606 echo "$as_me:$LINENO: checking for $ac_func" >&5
14607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14608 if eval "test \"\${$as_ac_var+set}\" = set"; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14611 cat >conftest.$ac_ext <<_ACEOF
14612 #line $LINENO "configure"
14615 cat confdefs.h >>conftest.$ac_ext
14616 cat >>conftest.$ac_ext <<_ACEOF
14617 /* end confdefs.h. */
14618 /* System header to define __stub macros and hopefully few prototypes,
14619 which can conflict with char $ac_func (); below.
14620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14621 <limits.h> exists even on freestanding compilers. */
14623 # include <limits.h>
14625 # include <assert.h>
14627 /* Override any gcc2 internal prototype to avoid an error. */
14632 /* We use char because int might match the return type of a gcc2
14633 builtin and then its argument prototype would still apply. */
14635 /* The GNU C library defines this for functions which it implements
14636 to always fail with ENOSYS. Some functions are actually named
14637 something starting with __ and the normal name is an alias. */
14638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14641 char (*f) () = $ac_func;
14650 return f != $ac_func;
14655 rm -f conftest.$ac_objext conftest$ac_exeext
14656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14657 (eval $ac_link) 2>&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } &&
14661 { ac_try='test -s conftest$ac_exeext'
14662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; }; then
14667 eval "$as_ac_var=yes"
14669 echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.$ac_ext >&5
14672 eval "$as_ac_var=no"
14674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14677 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14678 if test `eval echo '${'$as_ac_var'}'` = yes; then
14679 cat >>confdefs.h <<_ACEOF
14680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14682 cat >>confdefs.h <<\_ACEOF
14683 #define HAVE_STRTOLL 1
14691 for ac_func in chflags
14693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14694 echo "$as_me:$LINENO: checking for $ac_func" >&5
14695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14696 if eval "test \"\${$as_ac_var+set}\" = set"; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 cat >conftest.$ac_ext <<_ACEOF
14700 #line $LINENO "configure"
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h. */
14706 /* System header to define __stub macros and hopefully few prototypes,
14707 which can conflict with char $ac_func (); below.
14708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14709 <limits.h> exists even on freestanding compilers. */
14711 # include <limits.h>
14713 # include <assert.h>
14715 /* Override any gcc2 internal prototype to avoid an error. */
14720 /* We use char because int might match the return type of a gcc2
14721 builtin and then its argument prototype would still apply. */
14723 /* The GNU C library defines this for functions which it implements
14724 to always fail with ENOSYS. Some functions are actually named
14725 something starting with __ and the normal name is an alias. */
14726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14729 char (*f) () = $ac_func;
14738 return f != $ac_func;
14743 rm -f conftest.$ac_objext conftest$ac_exeext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14745 (eval $ac_link) 2>&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } &&
14749 { ac_try='test -s conftest$ac_exeext'
14750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751 (eval $ac_try) 2>&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; }; then
14755 eval "$as_ac_var=yes"
14757 echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14760 eval "$as_ac_var=no"
14762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14766 if test `eval echo '${'$as_ac_var'}'` = yes; then
14767 cat >>confdefs.h <<_ACEOF
14768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14779 for ac_func in snprintf vsnprintf gethostid getdomainname
14781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14782 echo "$as_me:$LINENO: checking for $ac_func" >&5
14783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14784 if eval "test \"\${$as_ac_var+set}\" = set"; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 cat >conftest.$ac_ext <<_ACEOF
14788 #line $LINENO "configure"
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 /* System header to define __stub macros and hopefully few prototypes,
14795 which can conflict with char $ac_func (); below.
14796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14797 <limits.h> exists even on freestanding compilers. */
14799 # include <limits.h>
14801 # include <assert.h>
14803 /* Override any gcc2 internal prototype to avoid an error. */
14808 /* We use char because int might match the return type of a gcc2
14809 builtin and then its argument prototype would still apply. */
14811 /* The GNU C library defines this for functions which it implements
14812 to always fail with ENOSYS. Some functions are actually named
14813 something starting with __ and the normal name is an alias. */
14814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14817 char (*f) () = $ac_func;
14826 return f != $ac_func;
14831 rm -f conftest.$ac_objext conftest$ac_exeext
14832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14833 (eval $ac_link) 2>&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } &&
14837 { ac_try='test -s conftest$ac_exeext'
14838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839 (eval $ac_try) 2>&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; }; then
14843 eval "$as_ac_var=yes"
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14848 eval "$as_ac_var=no"
14850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14853 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14854 if test `eval echo '${'$as_ac_var'}'` = yes; then
14855 cat >>confdefs.h <<_ACEOF
14856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14867 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
14869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14870 echo "$as_me:$LINENO: checking for $ac_func" >&5
14871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14872 if eval "test \"\${$as_ac_var+set}\" = set"; then
14873 echo $ECHO_N "(cached) $ECHO_C" >&6
14875 cat >conftest.$ac_ext <<_ACEOF
14876 #line $LINENO "configure"
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h. */
14882 /* System header to define __stub macros and hopefully few prototypes,
14883 which can conflict with char $ac_func (); below.
14884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14885 <limits.h> exists even on freestanding compilers. */
14887 # include <limits.h>
14889 # include <assert.h>
14891 /* Override any gcc2 internal prototype to avoid an error. */
14896 /* We use char because int might match the return type of a gcc2
14897 builtin and then its argument prototype would still apply. */
14899 /* The GNU C library defines this for functions which it implements
14900 to always fail with ENOSYS. Some functions are actually named
14901 something starting with __ and the normal name is an alias. */
14902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14905 char (*f) () = $ac_func;
14914 return f != $ac_func;
14919 rm -f conftest.$ac_objext conftest$ac_exeext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14921 (eval $ac_link) 2>&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); } &&
14925 { ac_try='test -s conftest$ac_exeext'
14926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14927 (eval $ac_try) 2>&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); }; }; then
14931 eval "$as_ac_var=yes"
14933 echo "$as_me: failed program was:" >&5
14934 sed 's/^/| /' conftest.$ac_ext >&5
14936 eval "$as_ac_var=no"
14938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14942 if test `eval echo '${'$as_ac_var'}'` = yes; then
14943 cat >>confdefs.h <<_ACEOF
14944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14951 # If resolver functions are not in libc check for -lnsl or -lresolv.
14952 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
14953 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
14954 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
14955 echo $ECHO_N "(cached) $ECHO_C" >&6
14957 cat >conftest.$ac_ext <<_ACEOF
14958 #line $LINENO "configure"
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14964 /* System header to define __stub macros and hopefully few prototypes,
14965 which can conflict with char gethostbyname_r (); below.
14966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14967 <limits.h> exists even on freestanding compilers. */
14969 # include <limits.h>
14971 # include <assert.h>
14973 /* Override any gcc2 internal prototype to avoid an error. */
14978 /* We use char because int might match the return type of a gcc2
14979 builtin and then its argument prototype would still apply. */
14980 char gethostbyname_r ();
14981 /* The GNU C library defines this for functions which it implements
14982 to always fail with ENOSYS. Some functions are actually named
14983 something starting with __ and the normal name is an alias. */
14984 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
14987 char (*f) () = gethostbyname_r;
14996 return f != gethostbyname_r;
15001 rm -f conftest.$ac_objext conftest$ac_exeext
15002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15003 (eval $ac_link) 2>&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } &&
15007 { ac_try='test -s conftest$ac_exeext'
15008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009 (eval $ac_try) 2>&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; }; then
15013 ac_cv_func_gethostbyname_r=yes
15015 echo "$as_me: failed program was:" >&5
15016 sed 's/^/| /' conftest.$ac_ext >&5
15018 ac_cv_func_gethostbyname_r=no
15020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15022 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15023 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15024 if test $ac_cv_func_gethostbyname_r = yes; then
15025 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15026 echo "${ECHO_T}using libc's resolver" >&6
15029 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15030 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15031 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15032 echo $ECHO_N "(cached) $ECHO_C" >&6
15034 ac_check_lib_save_LIBS=$LIBS
15036 cat >conftest.$ac_ext <<_ACEOF
15037 #line $LINENO "configure"
15040 cat confdefs.h >>conftest.$ac_ext
15041 cat >>conftest.$ac_ext <<_ACEOF
15042 /* end confdefs.h. */
15044 /* Override any gcc2 internal prototype to avoid an error. */
15048 /* We use char because int might match the return type of a gcc2
15049 builtin and then its argument prototype would still apply. */
15050 char gethostbyname_r ();
15054 gethostbyname_r ();
15059 rm -f conftest.$ac_objext conftest$ac_exeext
15060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15061 (eval $ac_link) 2>&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } &&
15065 { ac_try='test -s conftest$ac_exeext'
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; }; then
15071 ac_cv_lib_nsl_gethostbyname_r=yes
15073 echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15076 ac_cv_lib_nsl_gethostbyname_r=no
15078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15079 LIBS=$ac_check_lib_save_LIBS
15081 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15082 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15083 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15084 cat >>confdefs.h <<_ACEOF
15085 #define HAVE_LIBNSL 1
15093 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15094 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15095 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15096 echo $ECHO_N "(cached) $ECHO_C" >&6
15098 ac_check_lib_save_LIBS=$LIBS
15099 LIBS="-lresolv $LIBS"
15100 cat >conftest.$ac_ext <<_ACEOF
15101 #line $LINENO "configure"
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15108 /* Override any gcc2 internal prototype to avoid an error. */
15112 /* We use char because int might match the return type of a gcc2
15113 builtin and then its argument prototype would still apply. */
15114 char gethostbyname_r ();
15118 gethostbyname_r ();
15123 rm -f conftest.$ac_objext conftest$ac_exeext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15125 (eval $ac_link) 2>&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } &&
15129 { ac_try='test -s conftest$ac_exeext'
15130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131 (eval $ac_try) 2>&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; }; then
15135 ac_cv_lib_resolv_gethostbyname_r=yes
15137 echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15140 ac_cv_lib_resolv_gethostbyname_r=no
15142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15143 LIBS=$ac_check_lib_save_LIBS
15145 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15146 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15147 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15148 cat >>confdefs.h <<_ACEOF
15149 #define HAVE_LIBRESOLV 1
15152 LIBS="-lresolv $LIBS"
15160 # Find where sockets are (especially for Solaris)
15161 echo "$as_me:$LINENO: checking for socket" >&5
15162 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15163 if test "${ac_cv_func_socket+set}" = set; then
15164 echo $ECHO_N "(cached) $ECHO_C" >&6
15166 cat >conftest.$ac_ext <<_ACEOF
15167 #line $LINENO "configure"
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h. */
15173 /* System header to define __stub macros and hopefully few prototypes,
15174 which can conflict with char socket (); below.
15175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15176 <limits.h> exists even on freestanding compilers. */
15178 # include <limits.h>
15180 # include <assert.h>
15182 /* Override any gcc2 internal prototype to avoid an error. */
15187 /* We use char because int might match the return type of a gcc2
15188 builtin and then its argument prototype would still apply. */
15190 /* The GNU C library defines this for functions which it implements
15191 to always fail with ENOSYS. Some functions are actually named
15192 something starting with __ and the normal name is an alias. */
15193 #if defined (__stub_socket) || defined (__stub___socket)
15196 char (*f) () = socket;
15205 return f != socket;
15210 rm -f conftest.$ac_objext conftest$ac_exeext
15211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15212 (eval $ac_link) 2>&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); } &&
15216 { ac_try='test -s conftest$ac_exeext'
15217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15218 (eval $ac_try) 2>&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); }; }; then
15222 ac_cv_func_socket=yes
15224 echo "$as_me: failed program was:" >&5
15225 sed 's/^/| /' conftest.$ac_ext >&5
15227 ac_cv_func_socket=no
15229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15231 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15232 echo "${ECHO_T}$ac_cv_func_socket" >&6
15233 if test $ac_cv_func_socket = yes; then
15234 echo "$as_me:$LINENO: result: using libc's socket" >&5
15235 echo "${ECHO_T}using libc's socket" >&6
15238 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15239 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15240 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15241 echo $ECHO_N "(cached) $ECHO_C" >&6
15243 ac_check_lib_save_LIBS=$LIBS
15244 LIBS="-lxnet $LIBS"
15245 cat >conftest.$ac_ext <<_ACEOF
15246 #line $LINENO "configure"
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15253 /* Override any gcc2 internal prototype to avoid an error. */
15257 /* We use char because int might match the return type of a gcc2
15258 builtin and then its argument prototype would still apply. */
15268 rm -f conftest.$ac_objext conftest$ac_exeext
15269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15270 (eval $ac_link) 2>&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } &&
15274 { ac_try='test -s conftest$ac_exeext'
15275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276 (eval $ac_try) 2>&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; }; then
15280 ac_cv_lib_xnet_socket=yes
15282 echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15285 ac_cv_lib_xnet_socket=no
15287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15288 LIBS=$ac_check_lib_save_LIBS
15290 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15291 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15292 if test $ac_cv_lib_xnet_socket = yes; then
15293 cat >>confdefs.h <<_ACEOF
15294 #define HAVE_LIBXNET 1
15297 LIBS="-lxnet $LIBS"
15302 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15303 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15304 if test "${ac_cv_lib_socket_socket+set}" = set; then
15305 echo $ECHO_N "(cached) $ECHO_C" >&6
15307 ac_check_lib_save_LIBS=$LIBS
15308 LIBS="-lsocket $LIBS"
15309 cat >conftest.$ac_ext <<_ACEOF
15310 #line $LINENO "configure"
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h. */
15317 /* Override any gcc2 internal prototype to avoid an error. */
15321 /* We use char because int might match the return type of a gcc2
15322 builtin and then its argument prototype would still apply. */
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15334 (eval $ac_link) 2>&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
15338 { ac_try='test -s conftest$ac_exeext'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; }; then
15344 ac_cv_lib_socket_socket=yes
15346 echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15349 ac_cv_lib_socket_socket=no
15351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15352 LIBS=$ac_check_lib_save_LIBS
15354 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15355 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15356 if test $ac_cv_lib_socket_socket = yes; then
15357 cat >>confdefs.h <<_ACEOF
15358 #define HAVE_LIBSOCKET 1
15361 LIBS="-lsocket $LIBS"
15366 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15367 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15368 if test "${ac_cv_lib_inet_socket+set}" = set; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 ac_check_lib_save_LIBS=$LIBS
15372 LIBS="-linet $LIBS"
15373 cat >conftest.$ac_ext <<_ACEOF
15374 #line $LINENO "configure"
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h. */
15381 /* Override any gcc2 internal prototype to avoid an error. */
15385 /* We use char because int might match the return type of a gcc2
15386 builtin and then its argument prototype would still apply. */
15396 rm -f conftest.$ac_objext conftest$ac_exeext
15397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15398 (eval $ac_link) 2>&5
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } &&
15402 { ac_try='test -s conftest$ac_exeext'
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; }; then
15408 ac_cv_lib_inet_socket=yes
15410 echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15413 ac_cv_lib_inet_socket=no
15415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15416 LIBS=$ac_check_lib_save_LIBS
15418 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15419 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15420 if test $ac_cv_lib_inet_socket = yes; then
15421 cat >>confdefs.h <<_ACEOF
15422 #define HAVE_LIBINET 1
15425 LIBS="-linet $LIBS"
15433 for ac_func in inet_pton
15435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15436 echo "$as_me:$LINENO: checking for $ac_func" >&5
15437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15438 if eval "test \"\${$as_ac_var+set}\" = set"; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15441 cat >conftest.$ac_ext <<_ACEOF
15442 #line $LINENO "configure"
15445 cat confdefs.h >>conftest.$ac_ext
15446 cat >>conftest.$ac_ext <<_ACEOF
15447 /* end confdefs.h. */
15448 /* System header to define __stub macros and hopefully few prototypes,
15449 which can conflict with char $ac_func (); below.
15450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15451 <limits.h> exists even on freestanding compilers. */
15453 # include <limits.h>
15455 # include <assert.h>
15457 /* Override any gcc2 internal prototype to avoid an error. */
15462 /* We use char because int might match the return type of a gcc2
15463 builtin and then its argument prototype would still apply. */
15465 /* The GNU C library defines this for functions which it implements
15466 to always fail with ENOSYS. Some functions are actually named
15467 something starting with __ and the normal name is an alias. */
15468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15471 char (*f) () = $ac_func;
15480 return f != $ac_func;
15485 rm -f conftest.$ac_objext conftest$ac_exeext
15486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15487 (eval $ac_link) 2>&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } &&
15491 { ac_try='test -s conftest$ac_exeext'
15492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15493 (eval $ac_try) 2>&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); }; }; then
15497 eval "$as_ac_var=yes"
15499 echo "$as_me: failed program was:" >&5
15500 sed 's/^/| /' conftest.$ac_ext >&5
15502 eval "$as_ac_var=no"
15504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15508 if test `eval echo '${'$as_ac_var'}'` = yes; then
15509 cat >>confdefs.h <<_ACEOF
15510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15512 cat >>confdefs.h <<\_ACEOF
15513 #define HAVE_INET_PTON 1
15521 for ac_func in strftime
15523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15524 echo "$as_me:$LINENO: checking for $ac_func" >&5
15525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15526 if eval "test \"\${$as_ac_var+set}\" = set"; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15529 cat >conftest.$ac_ext <<_ACEOF
15530 #line $LINENO "configure"
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h. */
15536 /* System header to define __stub macros and hopefully few prototypes,
15537 which can conflict with char $ac_func (); below.
15538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15539 <limits.h> exists even on freestanding compilers. */
15541 # include <limits.h>
15543 # include <assert.h>
15545 /* Override any gcc2 internal prototype to avoid an error. */
15550 /* We use char because int might match the return type of a gcc2
15551 builtin and then its argument prototype would still apply. */
15553 /* The GNU C library defines this for functions which it implements
15554 to always fail with ENOSYS. Some functions are actually named
15555 something starting with __ and the normal name is an alias. */
15556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15559 char (*f) () = $ac_func;
15568 return f != $ac_func;
15573 rm -f conftest.$ac_objext conftest$ac_exeext
15574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15575 (eval $ac_link) 2>&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); } &&
15579 { ac_try='test -s conftest$ac_exeext'
15580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581 (eval $ac_try) 2>&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; }; then
15585 eval "$as_ac_var=yes"
15587 echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15590 eval "$as_ac_var=no"
15592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15596 if test `eval echo '${'$as_ac_var'}'` = yes; then
15597 cat >>confdefs.h <<_ACEOF
15598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15602 # strftime is in -lintl on SCO UNIX.
15603 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15604 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
15605 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15608 ac_check_lib_save_LIBS=$LIBS
15609 LIBS="-lintl $LIBS"
15610 cat >conftest.$ac_ext <<_ACEOF
15611 #line $LINENO "configure"
15614 cat confdefs.h >>conftest.$ac_ext
15615 cat >>conftest.$ac_ext <<_ACEOF
15616 /* end confdefs.h. */
15618 /* Override any gcc2 internal prototype to avoid an error. */
15622 /* We use char because int might match the return type of a gcc2
15623 builtin and then its argument prototype would still apply. */
15633 rm -f conftest.$ac_objext conftest$ac_exeext
15634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15635 (eval $ac_link) 2>&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try='test -s conftest$ac_exeext'
15640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15641 (eval $ac_try) 2>&5
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; }; then
15645 ac_cv_lib_intl_strftime=yes
15647 echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15650 ac_cv_lib_intl_strftime=no
15652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15653 LIBS=$ac_check_lib_save_LIBS
15655 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15656 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
15657 if test $ac_cv_lib_intl_strftime = yes; then
15658 cat >>confdefs.h <<\_ACEOF
15659 #define HAVE_STRFTIME 1
15662 LIBS="-lintl $LIBS"
15669 for ac_func in vprintf
15671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15672 echo "$as_me:$LINENO: checking for $ac_func" >&5
15673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15674 if eval "test \"\${$as_ac_var+set}\" = set"; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15677 cat >conftest.$ac_ext <<_ACEOF
15678 #line $LINENO "configure"
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h. */
15684 /* System header to define __stub macros and hopefully few prototypes,
15685 which can conflict with char $ac_func (); below.
15686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15687 <limits.h> exists even on freestanding compilers. */
15689 # include <limits.h>
15691 # include <assert.h>
15693 /* Override any gcc2 internal prototype to avoid an error. */
15698 /* We use char because int might match the return type of a gcc2
15699 builtin and then its argument prototype would still apply. */
15701 /* The GNU C library defines this for functions which it implements
15702 to always fail with ENOSYS. Some functions are actually named
15703 something starting with __ and the normal name is an alias. */
15704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15707 char (*f) () = $ac_func;
15716 return f != $ac_func;
15721 rm -f conftest.$ac_objext conftest$ac_exeext
15722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15723 (eval $ac_link) 2>&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } &&
15727 { ac_try='test -s conftest$ac_exeext'
15728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729 (eval $ac_try) 2>&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; }; then
15733 eval "$as_ac_var=yes"
15735 echo "$as_me: failed program was:" >&5
15736 sed 's/^/| /' conftest.$ac_ext >&5
15738 eval "$as_ac_var=no"
15740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15744 if test `eval echo '${'$as_ac_var'}'` = yes; then
15745 cat >>confdefs.h <<_ACEOF
15746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15749 echo "$as_me:$LINENO: checking for _doprnt" >&5
15750 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
15751 if test "${ac_cv_func__doprnt+set}" = set; then
15752 echo $ECHO_N "(cached) $ECHO_C" >&6
15754 cat >conftest.$ac_ext <<_ACEOF
15755 #line $LINENO "configure"
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15761 /* System header to define __stub macros and hopefully few prototypes,
15762 which can conflict with char _doprnt (); below.
15763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15764 <limits.h> exists even on freestanding compilers. */
15766 # include <limits.h>
15768 # include <assert.h>
15770 /* Override any gcc2 internal prototype to avoid an error. */
15775 /* We use char because int might match the return type of a gcc2
15776 builtin and then its argument prototype would still apply. */
15778 /* The GNU C library defines this for functions which it implements
15779 to always fail with ENOSYS. Some functions are actually named
15780 something starting with __ and the normal name is an alias. */
15781 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15784 char (*f) () = _doprnt;
15793 return f != _doprnt;
15798 rm -f conftest.$ac_objext conftest$ac_exeext
15799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15800 (eval $ac_link) 2>&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } &&
15804 { ac_try='test -s conftest$ac_exeext'
15805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806 (eval $ac_try) 2>&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); }; }; then
15810 ac_cv_func__doprnt=yes
15812 echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15815 ac_cv_func__doprnt=no
15817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15819 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15820 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
15821 if test $ac_cv_func__doprnt = yes; then
15823 cat >>confdefs.h <<\_ACEOF
15824 #define HAVE_DOPRNT 1
15833 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15834 # for constant arguments. Useless!
15835 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15836 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15837 if test "${ac_cv_working_alloca_h+set}" = set; then
15838 echo $ECHO_N "(cached) $ECHO_C" >&6
15840 cat >conftest.$ac_ext <<_ACEOF
15841 #line $LINENO "configure"
15844 cat confdefs.h >>conftest.$ac_ext
15845 cat >>conftest.$ac_ext <<_ACEOF
15846 /* end confdefs.h. */
15847 #include <alloca.h>
15851 char *p = (char *) alloca (2 * sizeof (int));
15856 rm -f conftest.$ac_objext conftest$ac_exeext
15857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15858 (eval $ac_link) 2>&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); } &&
15862 { ac_try='test -s conftest$ac_exeext'
15863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; }; then
15868 ac_cv_working_alloca_h=yes
15870 echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15873 ac_cv_working_alloca_h=no
15875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15877 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15878 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15879 if test $ac_cv_working_alloca_h = yes; then
15881 cat >>confdefs.h <<\_ACEOF
15882 #define HAVE_ALLOCA_H 1
15887 echo "$as_me:$LINENO: checking for alloca" >&5
15888 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15889 if test "${ac_cv_func_alloca_works+set}" = set; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15892 cat >conftest.$ac_ext <<_ACEOF
15893 #line $LINENO "configure"
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15900 # define alloca __builtin_alloca
15903 # include <malloc.h>
15904 # define alloca _alloca
15907 # include <alloca.h>
15912 # ifndef alloca /* predefined by HP cc +Olibcalls */
15923 char *p = (char *) alloca (1);
15928 rm -f conftest.$ac_objext conftest$ac_exeext
15929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15930 (eval $ac_link) 2>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } &&
15934 { ac_try='test -s conftest$ac_exeext'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; }; then
15940 ac_cv_func_alloca_works=yes
15942 echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15945 ac_cv_func_alloca_works=no
15947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15949 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15950 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15952 if test $ac_cv_func_alloca_works = yes; then
15954 cat >>confdefs.h <<\_ACEOF
15955 #define HAVE_ALLOCA 1
15959 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15960 # that cause trouble. Some versions do not even contain alloca or
15961 # contain a buggy version. If you still want to use their alloca,
15962 # use ar to extract alloca.o from them instead of compiling alloca.c.
15964 ALLOCA=alloca.$ac_objext
15966 cat >>confdefs.h <<\_ACEOF
15971 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15972 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15973 if test "${ac_cv_os_cray+set}" = set; then
15974 echo $ECHO_N "(cached) $ECHO_C" >&6
15976 cat >conftest.$ac_ext <<_ACEOF
15977 #line $LINENO "configure"
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15983 #if defined(CRAY) && ! defined(CRAY2)
15990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15991 $EGREP "webecray" >/dev/null 2>&1; then
15999 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16000 echo "${ECHO_T}$ac_cv_os_cray" >&6
16001 if test $ac_cv_os_cray = yes; then
16002 for ac_func in _getb67 GETB67 getb67; do
16003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16004 echo "$as_me:$LINENO: checking for $ac_func" >&5
16005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16006 if eval "test \"\${$as_ac_var+set}\" = set"; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16009 cat >conftest.$ac_ext <<_ACEOF
16010 #line $LINENO "configure"
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16016 /* System header to define __stub macros and hopefully few prototypes,
16017 which can conflict with char $ac_func (); below.
16018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16019 <limits.h> exists even on freestanding compilers. */
16021 # include <limits.h>
16023 # include <assert.h>
16025 /* Override any gcc2 internal prototype to avoid an error. */
16030 /* We use char because int might match the return type of a gcc2
16031 builtin and then its argument prototype would still apply. */
16033 /* The GNU C library defines this for functions which it implements
16034 to always fail with ENOSYS. Some functions are actually named
16035 something starting with __ and the normal name is an alias. */
16036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16039 char (*f) () = $ac_func;
16048 return f != $ac_func;
16053 rm -f conftest.$ac_objext conftest$ac_exeext
16054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16055 (eval $ac_link) 2>&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } &&
16059 { ac_try='test -s conftest$ac_exeext'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16065 eval "$as_ac_var=yes"
16067 echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16070 eval "$as_ac_var=no"
16072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16076 if test `eval echo '${'$as_ac_var'}'` = yes; then
16078 cat >>confdefs.h <<_ACEOF
16079 #define CRAY_STACKSEG_END $ac_func
16088 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16089 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16090 if test "${ac_cv_c_stack_direction+set}" = set; then
16091 echo $ECHO_N "(cached) $ECHO_C" >&6
16093 if test "$cross_compiling" = yes; then
16094 ac_cv_c_stack_direction=0
16096 cat >conftest.$ac_ext <<_ACEOF
16097 #line $LINENO "configure"
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h. */
16104 find_stack_direction ()
16106 static char *addr = 0;
16111 return find_stack_direction ();
16114 return (&dummy > addr) ? 1 : -1;
16120 exit (find_stack_direction () < 0);
16123 rm -f conftest$ac_exeext
16124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16125 (eval $ac_link) 2>&5
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; }; then
16134 ac_cv_c_stack_direction=1
16136 echo "$as_me: program exited with status $ac_status" >&5
16137 echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16140 ( exit $ac_status )
16141 ac_cv_c_stack_direction=-1
16143 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16146 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16147 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16149 cat >>confdefs.h <<_ACEOF
16150 #define STACK_DIRECTION $ac_cv_c_stack_direction
16156 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16157 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16158 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16159 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16160 echo $ECHO_N "(cached) $ECHO_C" >&6
16162 ac_check_lib_save_LIBS=$LIBS
16164 cat >conftest.$ac_ext <<_ACEOF
16165 #line $LINENO "configure"
16168 cat confdefs.h >>conftest.$ac_ext
16169 cat >>conftest.$ac_ext <<_ACEOF
16170 /* end confdefs.h. */
16172 /* Override any gcc2 internal prototype to avoid an error. */
16176 /* We use char because int might match the return type of a gcc2
16177 builtin and then its argument prototype would still apply. */
16187 rm -f conftest.$ac_objext conftest$ac_exeext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16189 (eval $ac_link) 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); } &&
16193 { ac_try='test -s conftest$ac_exeext'
16194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195 (eval $ac_try) 2>&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; }; then
16199 ac_cv_lib_sun_getmntent=yes
16201 echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16204 ac_cv_lib_sun_getmntent=no
16206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16207 LIBS=$ac_check_lib_save_LIBS
16209 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16210 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16211 if test $ac_cv_lib_sun_getmntent = yes; then
16214 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16215 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16216 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16217 echo $ECHO_N "(cached) $ECHO_C" >&6
16219 ac_check_lib_save_LIBS=$LIBS
16221 cat >conftest.$ac_ext <<_ACEOF
16222 #line $LINENO "configure"
16225 cat confdefs.h >>conftest.$ac_ext
16226 cat >>conftest.$ac_ext <<_ACEOF
16227 /* end confdefs.h. */
16229 /* Override any gcc2 internal prototype to avoid an error. */
16233 /* We use char because int might match the return type of a gcc2
16234 builtin and then its argument prototype would still apply. */
16244 rm -f conftest.$ac_objext conftest$ac_exeext
16245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16246 (eval $ac_link) 2>&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } &&
16250 { ac_try='test -s conftest$ac_exeext'
16251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252 (eval $ac_try) 2>&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; }; then
16256 ac_cv_lib_seq_getmntent=yes
16258 echo "$as_me: failed program was:" >&5
16259 sed 's/^/| /' conftest.$ac_ext >&5
16261 ac_cv_lib_seq_getmntent=no
16263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16264 LIBS=$ac_check_lib_save_LIBS
16266 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16267 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16268 if test $ac_cv_lib_seq_getmntent = yes; then
16271 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16272 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16273 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16276 ac_check_lib_save_LIBS=$LIBS
16278 cat >conftest.$ac_ext <<_ACEOF
16279 #line $LINENO "configure"
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h. */
16286 /* 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. */
16301 rm -f conftest.$ac_objext conftest$ac_exeext
16302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16303 (eval $ac_link) 2>&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } &&
16307 { ac_try='test -s conftest$ac_exeext'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16313 ac_cv_lib_gen_getmntent=yes
16315 echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16318 ac_cv_lib_gen_getmntent=no
16320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16321 LIBS=$ac_check_lib_save_LIBS
16323 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16324 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16325 if test $ac_cv_lib_gen_getmntent = yes; then
16334 for ac_func in getmntent
16336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16337 echo "$as_me:$LINENO: checking for $ac_func" >&5
16338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16339 if eval "test \"\${$as_ac_var+set}\" = set"; then
16340 echo $ECHO_N "(cached) $ECHO_C" >&6
16342 cat >conftest.$ac_ext <<_ACEOF
16343 #line $LINENO "configure"
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h. */
16349 /* System header to define __stub macros and hopefully few prototypes,
16350 which can conflict with char $ac_func (); below.
16351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16352 <limits.h> exists even on freestanding compilers. */
16354 # include <limits.h>
16356 # include <assert.h>
16358 /* Override any gcc2 internal prototype to avoid an error. */
16363 /* We use char because int might match the return type of a gcc2
16364 builtin and then its argument prototype would still apply. */
16366 /* The GNU C library defines this for functions which it implements
16367 to always fail with ENOSYS. Some functions are actually named
16368 something starting with __ and the normal name is an alias. */
16369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16372 char (*f) () = $ac_func;
16381 return f != $ac_func;
16386 rm -f conftest.$ac_objext conftest$ac_exeext
16387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16388 (eval $ac_link) 2>&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
16392 { ac_try='test -s conftest$ac_exeext'
16393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394 (eval $ac_try) 2>&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; }; then
16398 eval "$as_ac_var=yes"
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16403 eval "$as_ac_var=no"
16405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16409 if test `eval echo '${'$as_ac_var'}'` = yes; then
16410 cat >>confdefs.h <<_ACEOF
16411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16418 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16419 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16420 if test "${ac_cv_func_closedir_void+set}" = set; then
16421 echo $ECHO_N "(cached) $ECHO_C" >&6
16423 if test "$cross_compiling" = yes; then
16424 ac_cv_func_closedir_void=yes
16426 cat >conftest.$ac_ext <<_ACEOF
16427 #line $LINENO "configure"
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h. */
16433 $ac_includes_default
16434 #include <$ac_header_dirent>
16435 #ifndef __cplusplus
16442 exit (closedir (opendir (".")) != 0);
16447 rm -f conftest$ac_exeext
16448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16449 (eval $ac_link) 2>&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16458 ac_cv_func_closedir_void=no
16460 echo "$as_me: program exited with status $ac_status" >&5
16461 echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.$ac_ext >&5
16464 ( exit $ac_status )
16465 ac_cv_func_closedir_void=yes
16467 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16470 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
16471 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
16472 if test $ac_cv_func_closedir_void = yes; then
16474 cat >>confdefs.h <<\_ACEOF
16475 #define CLOSEDIR_VOID 1
16480 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16481 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16482 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16483 echo $ECHO_N "(cached) $ECHO_C" >&6
16485 if test "$cross_compiling" = yes; then
16486 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16487 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16488 { (exit 1); exit 1; }; }
16490 cat >conftest.$ac_ext <<_ACEOF
16491 #line $LINENO "configure"
16494 cat confdefs.h >>conftest.$ac_ext
16495 cat >>conftest.$ac_ext <<_ACEOF
16496 /* end confdefs.h. */
16498 # include <unistd.h>
16504 /* If this system has a BSD-style setpgrp which takes arguments,
16505 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16506 exit successfully. */
16507 exit (setpgrp (1,1) == -1 ? 0 : 1);
16512 rm -f conftest$ac_exeext
16513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16514 (eval $ac_link) 2>&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519 (eval $ac_try) 2>&5
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; }; then
16523 ac_cv_func_setpgrp_void=no
16525 echo "$as_me: program exited with status $ac_status" >&5
16526 echo "$as_me: failed program was:" >&5
16527 sed 's/^/| /' conftest.$ac_ext >&5
16529 ( exit $ac_status )
16530 ac_cv_func_setpgrp_void=yes
16532 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16535 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16536 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16537 if test $ac_cv_func_setpgrp_void = yes; then
16539 cat >>confdefs.h <<\_ACEOF
16540 #define SETPGRP_VOID 1
16544 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
16545 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
16546 if test "${ac_cv_func_fnmatch_works+set}" = set; then
16547 echo $ECHO_N "(cached) $ECHO_C" >&6
16549 # Some versions of Solaris, SCO, and the GNU C Library
16550 # have a broken or incompatible fnmatch.
16551 # So we run a test program. If we are cross-compiling, take no chance.
16552 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
16553 if test "$cross_compiling" = yes; then
16554 ac_cv_func_fnmatch_works=cross
16556 cat >conftest.$ac_ext <<_ACEOF
16557 #line $LINENO "configure"
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h. */
16563 #include <fnmatch.h>
16564 # define y(a, b, c) (fnmatch (a, b, c) == 0)
16565 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
16571 (!(y ("a*", "abc", 0)
16572 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
16573 && y ("a\\\\bc", "abc", 0)
16574 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
16575 && y ("*x", ".x", 0)
16576 && n ("*x", ".x", FNM_PERIOD)
16582 rm -f conftest$ac_exeext
16583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16584 (eval $ac_link) 2>&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; }; then
16593 ac_cv_func_fnmatch_works=yes
16595 echo "$as_me: program exited with status $ac_status" >&5
16596 echo "$as_me: failed program was:" >&5
16597 sed 's/^/| /' conftest.$ac_ext >&5
16599 ( exit $ac_status )
16600 ac_cv_func_fnmatch_works=no
16602 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16605 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
16606 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
16607 if test $ac_cv_func_fnmatch_works = yes; then
16609 cat >>confdefs.h <<\_ACEOF
16610 #define HAVE_FNMATCH 1
16619 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16620 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16621 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16622 echo $ECHO_N "(cached) $ECHO_C" >&6
16624 ac_check_lib_save_LIBS=$LIBS
16625 LIBS="-lxpg4 $LIBS"
16626 cat >conftest.$ac_ext <<_ACEOF
16627 #line $LINENO "configure"
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h. */
16634 /* Override any gcc2 internal prototype to avoid an error. */
16638 /* We use char because int might match the return type of a gcc2
16639 builtin and then its argument prototype would still apply. */
16649 rm -f conftest.$ac_objext conftest$ac_exeext
16650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16651 (eval $ac_link) 2>&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } &&
16655 { ac_try='test -s conftest$ac_exeext'
16656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657 (eval $ac_try) 2>&5
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16661 ac_cv_lib_xpg4_setlocale=yes
16663 echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16666 ac_cv_lib_xpg4_setlocale=no
16668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16669 LIBS=$ac_check_lib_save_LIBS
16671 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
16672 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16673 if test $ac_cv_lib_xpg4_setlocale = yes; then
16674 LIBS="$LIBS -lxpg4"
16680 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
16681 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
16682 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16685 ac_check_lib_save_LIBS=$LIBS
16687 cat >conftest.$ac_ext <<_ACEOF
16688 #line $LINENO "configure"
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16695 /* Override any gcc2 internal prototype to avoid an error. */
16699 /* We use char because int might match the return type of a gcc2
16700 builtin and then its argument prototype would still apply. */
16710 rm -f conftest.$ac_objext conftest$ac_exeext
16711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16712 (eval $ac_link) 2>&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } &&
16716 { ac_try='test -s conftest$ac_exeext'
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; }; then
16722 ac_cv_lib_sun_getpwnam=yes
16724 echo "$as_me: failed program was:" >&5
16725 sed 's/^/| /' conftest.$ac_ext >&5
16727 ac_cv_lib_sun_getpwnam=no
16729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16730 LIBS=$ac_check_lib_save_LIBS
16732 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
16733 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
16734 if test $ac_cv_lib_sun_getpwnam = yes; then
16735 cat >>confdefs.h <<_ACEOF
16736 #define HAVE_LIBSUN 1
16745 for ac_header in zlib.h
16747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16749 echo "$as_me:$LINENO: checking for $ac_header" >&5
16750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16752 echo $ECHO_N "(cached) $ECHO_C" >&6
16754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16757 # Is the header compilable?
16758 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16760 cat >conftest.$ac_ext <<_ACEOF
16761 #line $LINENO "configure"
16764 cat confdefs.h >>conftest.$ac_ext
16765 cat >>conftest.$ac_ext <<_ACEOF
16766 /* end confdefs.h. */
16767 $ac_includes_default
16768 #include <$ac_header>
16770 rm -f conftest.$ac_objext
16771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16772 (eval $ac_compile) 2>&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } &&
16776 { ac_try='test -s conftest.$ac_objext'
16777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778 (eval $ac_try) 2>&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; }; then
16782 ac_header_compiler=yes
16784 echo "$as_me: failed program was:" >&5
16785 sed 's/^/| /' conftest.$ac_ext >&5
16787 ac_header_compiler=no
16789 rm -f conftest.$ac_objext conftest.$ac_ext
16790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16791 echo "${ECHO_T}$ac_header_compiler" >&6
16793 # Is the header present?
16794 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16796 cat >conftest.$ac_ext <<_ACEOF
16797 #line $LINENO "configure"
16800 cat confdefs.h >>conftest.$ac_ext
16801 cat >>conftest.$ac_ext <<_ACEOF
16802 /* end confdefs.h. */
16803 #include <$ac_header>
16805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16808 grep -v '^ *+' conftest.er1 >conftest.err
16810 cat conftest.err >&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } >/dev/null; then
16813 if test -s conftest.err; then
16814 ac_cpp_err=$ac_c_preproc_warn_flag
16821 if test -z "$ac_cpp_err"; then
16822 ac_header_preproc=yes
16824 echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16827 ac_header_preproc=no
16829 rm -f conftest.err conftest.$ac_ext
16830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16831 echo "${ECHO_T}$ac_header_preproc" >&6
16833 # So? What about this header?
16834 case $ac_header_compiler:$ac_header_preproc in
16836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16842 ## ------------------------------------ ##
16843 ## Report this to bug-autoconf@gnu.org. ##
16844 ## ------------------------------------ ##
16847 sed "s/^/$as_me: WARNING: /" >&2
16850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16858 ## ------------------------------------ ##
16859 ## Report this to bug-autoconf@gnu.org. ##
16860 ## ------------------------------------ ##
16863 sed "s/^/$as_me: WARNING: /" >&2
16866 echo "$as_me:$LINENO: checking for $ac_header" >&5
16867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16871 eval "$as_ac_Header=$ac_header_preproc"
16873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16878 cat >>confdefs.h <<_ACEOF
16879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16886 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
16887 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
16888 if test "${ac_cv_lib_z_deflate+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16891 ac_check_lib_save_LIBS=$LIBS
16893 cat >conftest.$ac_ext <<_ACEOF
16894 #line $LINENO "configure"
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h. */
16901 /* Override any gcc2 internal prototype to avoid an error. */
16905 /* We use char because int might match the return type of a gcc2
16906 builtin and then its argument prototype would still apply. */
16916 rm -f conftest.$ac_objext conftest$ac_exeext
16917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16918 (eval $ac_link) 2>&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); } &&
16922 { ac_try='test -s conftest$ac_exeext'
16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924 (eval $ac_try) 2>&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; }; then
16928 ac_cv_lib_z_deflate=yes
16930 echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16933 ac_cv_lib_z_deflate=no
16935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16936 LIBS=$ac_check_lib_save_LIBS
16938 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
16939 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
16940 if test $ac_cv_lib_z_deflate = yes; then
16945 if test x$FDLIBS = x-lz; then
16946 cat >>confdefs.h <<\_ACEOF
16947 #define HAVE_LIBZ 1
16954 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16955 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
16956 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
16957 echo $ECHO_N "(cached) $ECHO_C" >&6
16959 ac_check_lib_save_LIBS=$LIBS
16960 LIBS="-lpthread $LIBS"
16961 cat >conftest.$ac_ext <<_ACEOF
16962 #line $LINENO "configure"
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h. */
16969 /* Override any gcc2 internal prototype to avoid an error. */
16973 /* We use char because int might match the return type of a gcc2
16974 builtin and then its argument prototype would still apply. */
16975 char pthread_create ();
16984 rm -f conftest.$ac_objext conftest$ac_exeext
16985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16986 (eval $ac_link) 2>&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } &&
16990 { ac_try='test -s conftest$ac_exeext'
16991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992 (eval $ac_try) 2>&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); }; }; then
16996 ac_cv_lib_pthread_pthread_create=yes
16998 echo "$as_me: failed program was:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17001 ac_cv_lib_pthread_pthread_create=no
17003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17004 LIBS=$ac_check_lib_save_LIBS
17006 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17007 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17008 if test $ac_cv_lib_pthread_pthread_create = yes; then
17009 PTHREAD_LIB="-lpthread"
17011 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17012 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17013 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17016 ac_check_lib_save_LIBS=$LIBS
17017 LIBS="-lpthreads $LIBS"
17018 cat >conftest.$ac_ext <<_ACEOF
17019 #line $LINENO "configure"
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17026 /* Override any gcc2 internal prototype to avoid an error. */
17030 /* We use char because int might match the return type of a gcc2
17031 builtin and then its argument prototype would still apply. */
17032 char pthread_create ();
17041 rm -f conftest.$ac_objext conftest$ac_exeext
17042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17043 (eval $ac_link) 2>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } &&
17047 { ac_try='test -s conftest$ac_exeext'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; }; then
17053 ac_cv_lib_pthreads_pthread_create=yes
17055 echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17058 ac_cv_lib_pthreads_pthread_create=no
17060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17061 LIBS=$ac_check_lib_save_LIBS
17063 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17064 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17065 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17066 PTHREAD_LIB="-lpthreads"
17068 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17069 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17070 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17073 ac_check_lib_save_LIBS=$LIBS
17075 cat >conftest.$ac_ext <<_ACEOF
17076 #line $LINENO "configure"
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17083 /* Override any gcc2 internal prototype to avoid an error. */
17087 /* We use char because int might match the return type of a gcc2
17088 builtin and then its argument prototype would still apply. */
17089 char pthread_create ();
17098 rm -f conftest.$ac_objext conftest$ac_exeext
17099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17100 (eval $ac_link) 2>&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } &&
17104 { ac_try='test -s conftest$ac_exeext'
17105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17106 (eval $ac_try) 2>&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; }; then
17110 ac_cv_lib_c_r_pthread_create=yes
17112 echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17115 ac_cv_lib_c_r_pthread_create=no
17117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17118 LIBS=$ac_check_lib_save_LIBS
17120 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17121 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17122 if test $ac_cv_lib_c_r_pthread_create = yes; then
17123 PTHREAD_LIB="-lc_r"
17125 echo "$as_me:$LINENO: checking for pthread_create" >&5
17126 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17127 if test "${ac_cv_func_pthread_create+set}" = set; then
17128 echo $ECHO_N "(cached) $ECHO_C" >&6
17130 cat >conftest.$ac_ext <<_ACEOF
17131 #line $LINENO "configure"
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h. */
17137 /* System header to define __stub macros and hopefully few prototypes,
17138 which can conflict with char pthread_create (); below.
17139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17140 <limits.h> exists even on freestanding compilers. */
17142 # include <limits.h>
17144 # include <assert.h>
17146 /* Override any gcc2 internal prototype to avoid an error. */
17151 /* We use char because int might match the return type of a gcc2
17152 builtin and then its argument prototype would still apply. */
17153 char pthread_create ();
17154 /* The GNU C library defines this for functions which it implements
17155 to always fail with ENOSYS. Some functions are actually named
17156 something starting with __ and the normal name is an alias. */
17157 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17160 char (*f) () = pthread_create;
17169 return f != pthread_create;
17174 rm -f conftest.$ac_objext conftest$ac_exeext
17175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17176 (eval $ac_link) 2>&5
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); } &&
17180 { ac_try='test -s conftest$ac_exeext'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
17186 ac_cv_func_pthread_create=yes
17188 echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.$ac_ext >&5
17191 ac_cv_func_pthread_create=no
17193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17195 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17196 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17209 cat >>confdefs.h <<\_ACEOF
17215 CFLAGS=${CFLAGS--O}
17216 LDFLAGS=${LDFLAGS--O}
17217 DB_LIBS="${SQL_LFLAGS}"
17219 CPPFLAGS="$CPPFLAGS"
17244 # Finally we set appropriate distribution specific
17245 # variables and defaults
17247 # PFILES are platform specific files
17248 PFILES="platforms/Makefile"
17251 hostname=`uname -n`
17252 case "$DISTNAME" in
17255 PSCMD="ps -e -o pid,comm"
17256 PFILES="${PFILES} \
17257 platforms/aix/Makefile"
17258 TAPEDRIVE="/dev/rmt0.1"
17262 PTHREAD_LIB="-lpthread -lexc"
17263 if test "${CC}" = "gcc" ; then
17270 TAPEDRIVE="/dev/nrmt0"
17273 DISTVER=`uname -a |awk '{print $3}'`
17274 TAPEDRIVE="/dev/nrmt0"
17275 PTHREAD_LIB="-pthread"
17276 CFLAGS="${CFLAGS} -pthread"
17277 PSCMD="ps -x -o pid,command"
17280 PFILES="${PFILES} \
17281 platforms/bsdi/Makefile \
17282 platforms/bsdi/bacula-fd \
17283 platforms/bsdi/bacula-sd \
17284 platforms/bsdi/bacula-dir"
17285 hostname=`hostname -s`
17286 largefile_support="yes"
17289 DISTVER=`uname -a |awk '{print $3}'`
17290 TAPEDRIVE="/dev/nrst0"
17292 WCFLAGS="-mwindows"
17293 WLDFLAGS="-mwindows"
17297 TAPEDRIVE="/dev/nst0"
17298 PSCMD="ps -e -o pid,command"
17299 hostname=`hostname -s`
17300 PFILES="${PFILES} \
17301 platforms/darwin/Makefile"
17304 DISTVER=`cat /etc/debian_version`
17305 TAPEDRIVE="/dev/nrst0"
17306 PSCMD="ps -e -o pid,command"
17307 hostname=`hostname -s`
17310 DISTVER=`uname -a |awk '{print $3}'`
17311 VER=`echo $DISTVER | cut -c 1`
17312 if test x$VER = x4 ; then
17313 PTHREAD_LIB="-pthread"
17314 CFLAGS="${CFLAGS} -pthread"
17318 TAPEDRIVE="/dev/nrsa0"
17319 PSCMD="ps -x -o pid,command"
17320 PFILES="${PFILES} \
17321 platforms/freebsd/Makefile \
17322 platforms/freebsd/bacula-fd \
17323 platforms/freebsd/bacula-sd \
17324 platforms/freebsd/bacula-dir"
17325 hostname=`hostname -s`
17326 largefile_support="yes"
17330 TAPEDRIVE="/dev/rmt/0hnb"
17334 TAPEDRIVE="/dev/rmt/0cbn"
17335 PSCMD="ps -e -o pid,comm"
17336 PFILES="${PFILES} \
17337 platforms/irix/Makefile \
17338 platforms/irix/bacula-fd \
17339 platforms/irix/bacula-sd \
17340 platforms/irix/bacula-dir"
17343 DISTVER=`uname -a |awk '{print $3}'`
17346 TAPEDRIVE="/dev/nrst0"
17347 PSCMD="ps -a -o pid,command"
17348 PTHREAD_LIB="-pthread"
17349 CFLAGS="${CFLAGS} -pthread"
17352 DISTVER=`uname -a |awk '{print $3}'`
17355 TAPEDRIVE="/dev/nrst0"
17356 PSCMD="ps -a -o pid,command"
17357 PTHREAD_LIB="-pthread"
17358 CFLAGS="${CFLAGS} -pthread"
17359 PFILES="${PFILES} \
17360 platforms/openbsd/Makefile \
17361 platforms/openbsd/bacula-fd \
17362 platforms/openbsd/bacula-sd \
17363 platforms/openbsd/bacula-dir"
17366 DISTVER=`cat /etc/redhat-release | grep release |\
17368 TAPEDRIVE="/dev/nst0"
17369 PSCMD="ps -e -o pid,command"
17370 PFILES="${PFILES} \
17371 platforms/redhat/Makefile \
17372 platforms/redhat/bacula-fd \
17373 platforms/redhat/bacula-sd \
17374 platforms/redhat/bacula-dir \
17375 platforms/redhat/bacula.spec \
17377 hostname=`hostname -s`
17380 DISTVER=`cat /etc/mandrake-release | grep release |\
17382 TAPEDRIVE="/dev/nst0"
17383 PSCMD="ps -e -o pid,command"
17384 PFILES="${PFILES} \
17385 platforms/mandrake/Makefile \
17386 platforms/mandrake/bacula-fd \
17387 platforms/mandrake/bacula-sd \
17388 platforms/mandrake/bacula-dir \
17389 platforms/mandrake/bacula.spec \
17391 hostname=`hostname -s`
17394 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17395 TAPEDRIVE="/dev/nst0"
17396 PSCMD="ps -e -o pid,command"
17397 PFILES="${PFILES} \
17398 platforms/gentoo/Makefile \
17399 platforms/gentoo/bacula-fd \
17400 platforms/gentoo/bacula-sd \
17401 platforms/gentoo/bacula-dir"
17402 hostname=`hostname -s`
17406 DISTVER=`cat /etc/slackware-version`
17407 TAPEDRIVE="/dev/nst0"
17408 PSCMD="ps -e -o pid,command"
17409 hostname=`hostname -s`
17413 TAPEDRIVE="/dev/rmt/0cbn"
17414 PSCMD="ps -e -o pid,comm"
17415 PFILES="${PFILES} \
17416 platforms/solaris/Makefile \
17417 platforms/solaris/bacula-fd \
17418 platforms/solaris/bacula-sd \
17419 platforms/solaris/bacula-dir"
17420 if test x$DISTVER = x5.6 ; then
17421 cat >>confdefs.h <<\_ACEOF
17422 #define HAVE_OLD_SOCKOPT 1
17428 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17430 TAPEDRIVE="/dev/nst0"
17431 PSCMD="ps -e -o pid,command"
17432 hostname=`hostname -s`
17437 TAPEDRIVE="/dev/nst0"
17438 PSCMD="ps -e -o pid,command"
17439 hostname=`hostname -s`
17443 TAPEDRIVE="/dev/nst0"
17446 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
17452 LIBS="$PTHREAD_LIB $LIBS"
17454 cat >>confdefs.h <<_ACEOF
17458 cat >>confdefs.h <<_ACEOF
17468 MCOMMON=./autoconf/Make.common
17471 if test "x${subsysdir}" = "x${sbindir}" ; then
17474 echo "You have set both --sbindir and --with-subsys-dir"
17475 echo " equal to: ${subsysdir} "
17476 echo "This is not permitted. Please reconfigure."
17478 echo "Aborting configuration ..."
17484 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/console scripts/gconsole scripts/bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/console.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/tconsole/Makefile src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/alter_mysql_tables src/cats/make_mysql_tables src/cats/drop_mysql_tables src/cats/create_mysql_database src/cats/grant_mysql_privileges src/cats/alter_sqlite_tables src/cats/make_sqlite_tables src/cats/drop_sqlite_tables src/cats/create_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/make_bdb_tables src/cats/drop_bdb_tables src/cats/make_bacula_tables src/cats/drop_bacula_tables src/findlib/Makefile src/tools/Makefile $PFILES"
17485 ac_config_commands="$ac_config_commands default"
17486 cat >confcache <<\_ACEOF
17487 # This file is a shell script that caches the results of configure
17488 # tests run on this system so they can be shared between configure
17489 # scripts and configure runs, see configure's option --config-cache.
17490 # It is not useful on other systems. If it contains results you don't
17491 # want to keep, you may remove or edit it.
17493 # config.status only pays attention to the cache file if you give it
17494 # the --recheck option to rerun configure.
17496 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17497 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17498 # following values.
17502 # The following way of writing the cache mishandles newlines in values,
17503 # but we know of no workaround that is simple, portable, and efficient.
17504 # So, don't put newlines in cache variables' values.
17505 # Ultrix sh set writes to stderr and can't be redirected directly,
17506 # and sets the high bit in the cache file unless we assign to the vars.
17509 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17511 # `set' does not quote correctly, so add quotes (double-quote
17512 # substitution turns \\\\ into \\, and sed turns \\ into \).
17515 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17518 # `set' quotes correctly as required by POSIX, so do not add quotes.
17520 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17527 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17529 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17531 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17532 if test -w $cache_file; then
17533 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17534 cat confcache >$cache_file
17536 echo "not updating unwritable cache $cache_file"
17541 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17542 # Let make expand exec_prefix.
17543 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17545 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17546 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17547 # trailing colons and then remove the whole line if VPATH becomes empty
17548 # (actually we leave an empty line to preserve line numbers).
17549 if test "x$srcdir" = x.; then
17550 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17551 s/:*\$(srcdir):*/:/;
17552 s/:*\${srcdir}:*/:/;
17554 s/^\([^=]*=[ ]*\):*/\1/;
17560 DEFS=-DHAVE_CONFIG_H
17564 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17565 # 1. Remove the extension, and $U if already installed.
17566 ac_i=`echo "$ac_i" |
17567 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17569 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17570 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17572 LIBOBJS=$ac_libobjs
17574 LTLIBOBJS=$ac_ltlibobjs
17578 : ${CONFIG_STATUS=./config.status}
17579 ac_clean_files_save=$ac_clean_files
17580 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17581 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17582 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17583 cat >$CONFIG_STATUS <<_ACEOF
17585 # Generated by $as_me.
17586 # Run this file to recreate the current configuration.
17587 # Compiler output produced by configure, useful for debugging
17588 # configure, is in config.log if it exists.
17591 ac_cs_recheck=false
17593 SHELL=\${CONFIG_SHELL-$SHELL}
17596 cat >>$CONFIG_STATUS <<\_ACEOF
17597 ## --------------------- ##
17598 ## M4sh Initialization. ##
17599 ## --------------------- ##
17601 # Be Bourne compatible
17602 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17605 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17606 # is contrary to our usage. Disable this feature.
17607 alias -g '${1+"$@"}'='"$@"'
17608 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17612 # Support unset when possible.
17613 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17620 # Work around bugs in pre-3.0 UWIN ksh.
17621 $as_unset ENV MAIL MAILPATH
17628 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17629 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17630 LC_TELEPHONE LC_TIME
17632 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17633 eval $as_var=C; export $as_var
17639 # Required to use basename.
17640 if expr a : '\(a\)' >/dev/null 2>&1; then
17646 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17647 as_basename=basename
17653 # Name of the executable.
17654 as_me=`$as_basename "$0" ||
17655 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17656 X"$0" : 'X\(//\)$' \| \
17657 X"$0" : 'X\(/\)$' \| \
17658 . : '\(.\)' 2>/dev/null ||
17660 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17661 /^X\/\(\/\/\)$/{ s//\1/; q; }
17662 /^X\/\(\/\).*/{ s//\1/; q; }
17666 # PATH needs CR, and LINENO needs CR and PATH.
17667 # Avoid depending upon Character Ranges.
17668 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17669 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17670 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17671 as_cr_digits='0123456789'
17672 as_cr_alnum=$as_cr_Letters$as_cr_digits
17674 # The user is always right.
17675 if test "${PATH_SEPARATOR+set}" != set; then
17676 echo "#! /bin/sh" >conf$$.sh
17677 echo "exit 0" >>conf$$.sh
17679 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17688 as_lineno_1=$LINENO
17689 as_lineno_2=$LINENO
17690 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17691 test "x$as_lineno_1" != "x$as_lineno_2" &&
17692 test "x$as_lineno_3" = "x$as_lineno_2" || {
17693 # Find who we are. Look in the path if we contain no path at all
17696 *[\\/]* ) as_myself=$0 ;;
17697 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17698 for as_dir in $PATH
17701 test -z "$as_dir" && as_dir=.
17702 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17707 # We did not find ourselves, most probably we were run as `sh COMMAND'
17708 # in which case we are not to be found in the path.
17709 if test "x$as_myself" = x; then
17712 if test ! -f "$as_myself"; then
17713 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17714 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17715 { (exit 1); exit 1; }; }
17717 case $CONFIG_SHELL in
17719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17720 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17723 test -z "$as_dir" && as_dir=.
17724 for as_base in sh bash ksh sh5; do
17727 if ("$as_dir/$as_base" -c '
17728 as_lineno_1=$LINENO
17729 as_lineno_2=$LINENO
17730 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17731 test "x$as_lineno_1" != "x$as_lineno_2" &&
17732 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17733 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17734 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17735 CONFIG_SHELL=$as_dir/$as_base
17736 export CONFIG_SHELL
17737 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17745 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17746 # uniformly replaced by the line number. The first 'sed' inserts a
17747 # line-number line before each line; the second 'sed' does the real
17748 # work. The second script uses 'N' to pair each line-number line
17749 # with the numbered line, and appends trailing '-' during
17750 # substitution so that $LINENO is not a special case at line end.
17751 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17752 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17753 sed '=' <$as_myself |
17758 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17761 s,^['$as_cr_digits']*\n,,
17762 ' >$as_me.lineno &&
17763 chmod +x $as_me.lineno ||
17764 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17765 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17766 { (exit 1); exit 1; }; }
17768 # Don't try to exec as it changes $[0], causing all sort of problems
17769 # (the dirname of $[0] is not the place where we might find the
17770 # original and so on. Autoconf is especially sensible to this).
17772 # Exit status is that of the last command.
17777 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17778 *c*,-n*) ECHO_N= ECHO_C='
17780 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17781 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17784 if expr a : '\(a\)' >/dev/null 2>&1; then
17790 rm -f conf$$ conf$$.exe conf$$.file
17792 if ln -s conf$$.file conf$$ 2>/dev/null; then
17793 # We could just check for DJGPP; but this test a) works b) is more generic
17794 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17795 if test -f conf$$.exe; then
17796 # Don't use ln at all; we don't have any links
17801 elif ln conf$$.file conf$$ 2>/dev/null; then
17806 rm -f conf$$ conf$$.exe conf$$.file
17808 if mkdir -p . 2>/dev/null; then
17814 as_executable_p="test -f"
17816 # Sed expression to map a string onto a valid CPP name.
17817 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17819 # Sed expression to map a string onto a valid variable name.
17820 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17824 # We need space, tab and new line, in precisely that order.
17834 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17835 # report actual input values of CONFIG_FILES etc. instead of their
17836 # values after options handling. Logging --version etc. is OK.
17840 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17841 ## Running $as_me. ##
17846 This file was extended by $as_me, which was
17847 generated by GNU Autoconf 2.57. Invocation command line was
17849 CONFIG_FILES = $CONFIG_FILES
17850 CONFIG_HEADERS = $CONFIG_HEADERS
17851 CONFIG_LINKS = $CONFIG_LINKS
17852 CONFIG_COMMANDS = $CONFIG_COMMANDS
17856 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17860 # Files that config.status was made for.
17861 if test -n "$ac_config_files"; then
17862 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17865 if test -n "$ac_config_headers"; then
17866 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17869 if test -n "$ac_config_links"; then
17870 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17873 if test -n "$ac_config_commands"; then
17874 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17877 cat >>$CONFIG_STATUS <<\_ACEOF
17880 \`$as_me' instantiates files from templates according to the
17881 current configuration.
17883 Usage: $0 [OPTIONS] [FILE]...
17885 -h, --help print this help, then exit
17886 -V, --version print version number, then exit
17887 -q, --quiet do not print progress messages
17888 -d, --debug don't remove temporary files
17889 --recheck update $as_me by reconfiguring in the same conditions
17890 --file=FILE[:TEMPLATE]
17891 instantiate the configuration file FILE
17892 --header=FILE[:TEMPLATE]
17893 instantiate the configuration header FILE
17895 Configuration files:
17898 Configuration headers:
17901 Configuration commands:
17904 Report bugs to <bug-autoconf@gnu.org>."
17907 cat >>$CONFIG_STATUS <<_ACEOF
17910 configured by $0, generated by GNU Autoconf 2.57,
17911 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17913 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17914 Free Software Foundation, Inc.
17915 This config.status script is free software; the Free Software Foundation
17916 gives unlimited permission to copy, distribute and modify it."
17921 cat >>$CONFIG_STATUS <<\_ACEOF
17922 # If no file are specified by the user, then we need to provide default
17923 # value. By we need to know if files were specified by the user.
17929 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17930 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17938 *) # This is not an option, so the user has probably given explicit
17941 ac_need_defaults=false;;
17945 # Handling of the options.
17947 cat >>$CONFIG_STATUS <<\_ACEOF
17948 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17950 --version | --vers* | -V )
17951 echo "$ac_cs_version"; exit 0 ;;
17953 # Conflict between --help and --header
17954 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17955 Try \`$0 --help' for more information." >&5
17956 echo "$as_me: error: ambiguous option: $1
17957 Try \`$0 --help' for more information." >&2;}
17958 { (exit 1); exit 1; }; };;
17959 --help | --hel | -h )
17960 echo "$ac_cs_usage"; exit 0 ;;
17961 --debug | --d* | -d )
17963 --file | --fil | --fi | --f )
17965 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17966 ac_need_defaults=false;;
17967 --header | --heade | --head | --hea )
17969 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17970 ac_need_defaults=false;;
17971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17972 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17975 # This is an error.
17976 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17977 Try \`$0 --help' for more information." >&5
17978 echo "$as_me: error: unrecognized option: $1
17979 Try \`$0 --help' for more information." >&2;}
17980 { (exit 1); exit 1; }; } ;;
17982 *) ac_config_targets="$ac_config_targets $1" ;;
17988 ac_configure_extra_args=
17990 if $ac_cs_silent; then
17992 ac_configure_extra_args="$ac_configure_extra_args --silent"
17996 cat >>$CONFIG_STATUS <<_ACEOF
17997 if \$ac_cs_recheck; then
17998 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17999 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18008 cat >>$CONFIG_STATUS <<\_ACEOF
18009 for ac_config_target in $ac_config_targets
18011 case "$ac_config_target" in
18012 # Handling of arguments.
18013 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18014 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18015 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18016 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18017 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18018 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18019 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18020 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18021 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18022 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18023 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18024 "scripts/console" ) CONFIG_FILES="$CONFIG_FILES scripts/console" ;;
18025 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18026 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18027 "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18028 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18029 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18030 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18031 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18032 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18033 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18034 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18035 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18036 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18037 "src/console/console.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/console.conf" ;;
18038 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18039 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18040 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18041 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18042 "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18043 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18044 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18045 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18046 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18047 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18048 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18049 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18050 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18051 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18052 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18053 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18054 "src/cats/alter_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/alter_mysql_tables" ;;
18055 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18056 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18057 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18058 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18059 "src/cats/alter_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/alter_sqlite_tables" ;;
18060 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18061 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18062 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18063 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18064 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18065 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18066 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18067 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18068 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18069 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18070 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18071 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18072 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18073 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18074 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18075 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18076 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18077 { (exit 1); exit 1; }; };;
18081 # If the user did not use the arguments to specify the items to instantiate,
18082 # then the envvar interface is used. Set only those that are not.
18083 # We use the long form for the default assignment because of an extremely
18084 # bizarre bug on SunOS 4.1.3.
18085 if $ac_need_defaults; then
18086 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18087 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18088 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18091 # Have a temporary directory for convenience. Make it in the build tree
18092 # simply because there is no reason to put it here, and in addition,
18093 # creating and moving files from /tmp can sometimes cause problems.
18094 # Create a temporary directory, and hook for its removal unless debugging.
18097 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18098 trap '{ (exit 1); exit 1; }' 1 2 13 15
18101 # Create a (secure) tmp directory for tmp files.
18104 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18105 test -n "$tmp" && test -d "$tmp"
18108 tmp=./confstat$$-$RANDOM
18109 (umask 077 && mkdir $tmp)
18112 echo "$me: cannot create a temporary directory in ." >&2
18113 { (exit 1); exit 1; }
18118 cat >>$CONFIG_STATUS <<_ACEOF
18121 # CONFIG_FILES section.
18124 # No need to generate the scripts if there are no CONFIG_FILES.
18125 # This happens for instance when ./config.status config.h
18126 if test -n "\$CONFIG_FILES"; then
18127 # Protect against being on the right side of a sed subst in config.status.
18128 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18129 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18130 s,@SHELL@,$SHELL,;t t
18131 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18132 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18133 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18134 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18135 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18136 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18137 s,@exec_prefix@,$exec_prefix,;t t
18138 s,@prefix@,$prefix,;t t
18139 s,@program_transform_name@,$program_transform_name,;t t
18140 s,@bindir@,$bindir,;t t
18141 s,@sbindir@,$sbindir,;t t
18142 s,@libexecdir@,$libexecdir,;t t
18143 s,@datadir@,$datadir,;t t
18144 s,@sysconfdir@,$sysconfdir,;t t
18145 s,@sharedstatedir@,$sharedstatedir,;t t
18146 s,@localstatedir@,$localstatedir,;t t
18147 s,@libdir@,$libdir,;t t
18148 s,@includedir@,$includedir,;t t
18149 s,@oldincludedir@,$oldincludedir,;t t
18150 s,@infodir@,$infodir,;t t
18151 s,@mandir@,$mandir,;t t
18152 s,@build_alias@,$build_alias,;t t
18153 s,@host_alias@,$host_alias,;t t
18154 s,@target_alias@,$target_alias,;t t
18155 s,@DEFS@,$DEFS,;t t
18156 s,@ECHO_C@,$ECHO_C,;t t
18157 s,@ECHO_N@,$ECHO_N,;t t
18158 s,@ECHO_T@,$ECHO_T,;t t
18159 s,@LIBS@,$LIBS,;t t
18160 s,@BUILD_DIR@,$BUILD_DIR,;t t
18161 s,@TRUEPRG@,$TRUEPRG,;t t
18162 s,@FALSEPRG@,$FALSEPRG,;t t
18163 s,@build@,$build,;t t
18164 s,@build_cpu@,$build_cpu,;t t
18165 s,@build_vendor@,$build_vendor,;t t
18166 s,@build_os@,$build_os,;t t
18167 s,@host@,$host,;t t
18168 s,@host_cpu@,$host_cpu,;t t
18169 s,@host_vendor@,$host_vendor,;t t
18170 s,@host_os@,$host_os,;t t
18171 s,@VERSION@,$VERSION,;t t
18172 s,@DATE@,$DATE,;t t
18173 s,@LSMDATE@,$LSMDATE,;t t
18175 s,@CFLAGS@,$CFLAGS,;t t
18176 s,@LDFLAGS@,$LDFLAGS,;t t
18177 s,@CPPFLAGS@,$CPPFLAGS,;t t
18178 s,@ac_ct_CC@,$ac_ct_CC,;t t
18179 s,@EXEEXT@,$EXEEXT,;t t
18180 s,@OBJEXT@,$OBJEXT,;t t
18182 s,@CXXFLAGS@,$CXXFLAGS,;t t
18183 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18185 s,@EGREP@,$EGREP,;t t
18186 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18187 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18188 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18189 s,@RANLIB@,$RANLIB,;t t
18190 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18196 s,@ECHO@,$ECHO,;t t
18200 s,@OPENSSL@,$OPENSSL,;t t
18202 s,@PKGCONFIG@,$PKGCONFIG,;t t
18203 s,@ARFLAGS@,$ARFLAGS,;t t
18204 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18205 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18206 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18207 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18208 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18209 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18210 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18211 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18212 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18213 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18214 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18215 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18216 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18217 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18218 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18219 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18220 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18221 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18222 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18223 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18224 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18225 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18226 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18227 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18228 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18229 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18230 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18231 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18232 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18233 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18234 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18235 s,@MSGFMT@,$MSGFMT,;t t
18236 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18237 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18238 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18239 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18240 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18241 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18242 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18243 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18244 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18245 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18246 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18247 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18248 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18249 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18250 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18251 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18252 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18253 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18254 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18255 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18256 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18257 s,@GNOME_DIR@,$GNOME_DIR,;t t
18258 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18259 s,@STATIC_FD@,$STATIC_FD,;t t
18260 s,@STATIC_SD@,$STATIC_SD,;t t
18261 s,@STATIC_DIR@,$STATIC_DIR,;t t
18262 s,@STATIC_CONS@,$STATIC_CONS,;t t
18263 s,@ALL_DIRS@,$ALL_DIRS,;t t
18264 s,@CONS_INC@,$CONS_INC,;t t
18265 s,@CONS_LIBS@,$CONS_LIBS,;t t
18266 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18267 s,@READLINE_SRC@,$READLINE_SRC,;t t
18268 s,@working_dir@,$working_dir,;t t
18269 s,@scriptdir@,$scriptdir,;t t
18270 s,@dump_email@,$dump_email,;t t
18271 s,@job_email@,$job_email,;t t
18272 s,@smtp_host@,$smtp_host,;t t
18273 s,@piddir@,$piddir,;t t
18274 s,@subsysdir@,$subsysdir,;t t
18275 s,@baseport@,$baseport,;t t
18276 s,@dir_port@,$dir_port,;t t
18277 s,@fd_port@,$fd_port,;t t
18278 s,@sd_port@,$sd_port,;t t
18279 s,@dir_password@,$dir_password,;t t
18280 s,@fd_password@,$fd_password,;t t
18281 s,@sd_password@,$sd_password,;t t
18282 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18283 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18284 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18285 s,@cats@,$cats,;t t
18286 s,@DB_NAME@,$DB_NAME,;t t
18287 s,@GETCONF@,$GETCONF,;t t
18288 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18289 s,@X_CFLAGS@,$X_CFLAGS,;t t
18290 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18291 s,@X_LIBS@,$X_LIBS,;t t
18292 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18293 s,@LIBOBJS@,$LIBOBJS,;t t
18294 s,@ALLOCA@,$ALLOCA,;t t
18295 s,@FDLIBS@,$FDLIBS,;t t
18296 s,@DEBUG@,$DEBUG,;t t
18297 s,@DINCLUDE@,$DINCLUDE,;t t
18298 s,@DLIB@,$DLIB,;t t
18299 s,@DB_LIBS@,$DB_LIBS,;t t
18300 s,@WCFLAGS@,$WCFLAGS,;t t
18301 s,@WLDFLAGS@,$WLDFLAGS,;t t
18302 s,@OBJLIST@,$OBJLIST,;t t
18303 s,@hostname@,$hostname,;t t
18304 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18305 s,@PSCMD@,$PSCMD,;t t
18306 s,@WIN32@,$WIN32,;t t
18307 s,@DISTNAME@,$DISTNAME,;t t
18308 s,@DISTVER@,$DISTVER,;t t
18309 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18310 /@MCOMMON@/r $MCOMMON
18316 cat >>$CONFIG_STATUS <<\_ACEOF
18317 # Split the substitutions into bite-sized pieces for seds with
18318 # small command number limits, like on Digital OSF/1 and HP-UX.
18319 ac_max_sed_lines=48
18320 ac_sed_frag=1 # Number of current file.
18321 ac_beg=1 # First line for current file.
18322 ac_end=$ac_max_sed_lines # Line after last line for current file.
18325 while $ac_more_lines; do
18326 if test $ac_beg -gt 1; then
18327 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18329 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18331 if test ! -s $tmp/subs.frag; then
18332 ac_more_lines=false
18334 # The purpose of the label and of the branching condition is to
18335 # speed up the sed processing (if there are no `@' at all, there
18336 # is no need to browse any of the substitutions).
18337 # These are the two extra sed commands mentioned above.
18339 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18340 if test -z "$ac_sed_cmds"; then
18341 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18343 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18345 ac_sed_frag=`expr $ac_sed_frag + 1`
18347 ac_end=`expr $ac_end + $ac_max_sed_lines`
18350 if test -z "$ac_sed_cmds"; then
18353 fi # test -n "$CONFIG_FILES"
18356 cat >>$CONFIG_STATUS <<\_ACEOF
18357 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18358 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18360 - | *:- | *:-:* ) # input from stdin
18362 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18363 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18364 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18365 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18366 * ) ac_file_in=$ac_file.in ;;
18369 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18370 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18371 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18372 X"$ac_file" : 'X\(//\)[^/]' \| \
18373 X"$ac_file" : 'X\(//\)$' \| \
18374 X"$ac_file" : 'X\(/\)' \| \
18375 . : '\(.\)' 2>/dev/null ||
18377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18378 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18379 /^X\(\/\/\)$/{ s//\1/; q; }
18380 /^X\(\/\).*/{ s//\1/; q; }
18382 { if $as_mkdir_p; then
18387 while test ! -d "$as_dir"; do
18388 as_dirs="$as_dir $as_dirs"
18389 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18390 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18391 X"$as_dir" : 'X\(//\)[^/]' \| \
18392 X"$as_dir" : 'X\(//\)$' \| \
18393 X"$as_dir" : 'X\(/\)' \| \
18394 . : '\(.\)' 2>/dev/null ||
18396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18397 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18398 /^X\(\/\/\)$/{ s//\1/; q; }
18399 /^X\(\/\).*/{ s//\1/; q; }
18402 test ! -n "$as_dirs" || mkdir $as_dirs
18403 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18404 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18405 { (exit 1); exit 1; }; }; }
18409 if test "$ac_dir" != .; then
18410 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18411 # A "../" for each directory in $ac_dir_suffix.
18412 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18414 ac_dir_suffix= ac_top_builddir=
18418 .) # No --srcdir option. We are building in place.
18420 if test -z "$ac_top_builddir"; then
18423 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18425 [\\/]* | ?:[\\/]* ) # Absolute path.
18426 ac_srcdir=$srcdir$ac_dir_suffix;
18427 ac_top_srcdir=$srcdir ;;
18428 *) # Relative path.
18429 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18430 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18432 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18434 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18435 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18436 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18437 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18441 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18442 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18445 if test x"$ac_file" != x-; then
18446 { echo "$as_me:$LINENO: creating $ac_file" >&5
18447 echo "$as_me: creating $ac_file" >&6;}
18450 # Let's still pretend it is `configure' which instantiates (i.e., don't
18451 # use $as_me), people would be surprised to read:
18452 # /* config.h. Generated by config.status. */
18453 if test x"$ac_file" = x-; then
18456 configure_input="$ac_file. "
18458 configure_input=$configure_input"Generated from `echo $ac_file_in |
18459 sed 's,.*/,,'` by configure."
18461 # First look for the input files in the build tree, otherwise in the
18463 ac_file_inputs=`IFS=:
18464 for f in $ac_file_in; do
18466 -) echo $tmp/stdin ;;
18468 # Absolute (can't be DOS-style, as IFS=:)
18469 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18470 echo "$as_me: error: cannot find input file: $f" >&2;}
18471 { (exit 1); exit 1; }; }
18474 if test -f "$f"; then
18477 elif test -f "$srcdir/$f"; then
18482 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18483 echo "$as_me: error: cannot find input file: $f" >&2;}
18484 { (exit 1); exit 1; }; }
18487 done` || { (exit 1); exit 1; }
18489 cat >>$CONFIG_STATUS <<_ACEOF
18493 cat >>$CONFIG_STATUS <<\_ACEOF
18495 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18496 s,@configure_input@,$configure_input,;t t
18497 s,@srcdir@,$ac_srcdir,;t t
18498 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18499 s,@top_srcdir@,$ac_top_srcdir,;t t
18500 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18501 s,@builddir@,$ac_builddir,;t t
18502 s,@abs_builddir@,$ac_abs_builddir,;t t
18503 s,@top_builddir@,$ac_top_builddir,;t t
18504 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18505 s,@INSTALL@,$ac_INSTALL,;t t
18506 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18508 if test x"$ac_file" != x-; then
18509 mv $tmp/out $ac_file
18517 cat >>$CONFIG_STATUS <<\_ACEOF
18520 # CONFIG_HEADER section.
18523 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18524 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18526 # ac_d sets the value in "#define NAME VALUE" lines.
18527 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18528 ac_dB='[ ].*$,\1#\2'
18531 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18532 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18533 ac_uB='$,\1#\2define\3'
18537 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18538 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18540 - | *:- | *:-:* ) # input from stdin
18542 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18543 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18544 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18545 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18546 * ) ac_file_in=$ac_file.in ;;
18549 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18550 echo "$as_me: creating $ac_file" >&6;}
18552 # First look for the input files in the build tree, otherwise in the
18554 ac_file_inputs=`IFS=:
18555 for f in $ac_file_in; do
18557 -) echo $tmp/stdin ;;
18559 # Absolute (can't be DOS-style, as IFS=:)
18560 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18561 echo "$as_me: error: cannot find input file: $f" >&2;}
18562 { (exit 1); exit 1; }; }
18565 if test -f "$f"; then
18568 elif test -f "$srcdir/$f"; then
18573 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18574 echo "$as_me: error: cannot find input file: $f" >&2;}
18575 { (exit 1); exit 1; }; }
18578 done` || { (exit 1); exit 1; }
18579 # Remove the trailing spaces.
18580 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18584 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18585 # `conftest.undefs', that substitutes the proper values into
18586 # config.h.in to produce config.h. The first handles `#define'
18587 # templates, and the second `#undef' templates.
18588 # And first: Protect against being on the right side of a sed subst in
18589 # config.status. Protect against being in an unquoted here document
18590 # in config.status.
18591 rm -f conftest.defines conftest.undefs
18592 # Using a here document instead of a string reduces the quoting nightmare.
18593 # Putting comments in sed scripts is not portable.
18595 # `end' is used to avoid that the second main sed command (meant for
18596 # 0-ary CPP macros) applies to n-ary macro definitions.
18597 # See the Autoconf documentation for `clear'.
18598 cat >confdef2sed.sed <<\_ACEOF
18603 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18605 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18608 # If some macros were called several times there might be several times
18609 # the same #defines, which is useless. Nevertheless, we may not want to
18610 # sort them, since we want the *last* AC-DEFINE to be honored.
18611 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18612 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18613 rm -f confdef2sed.sed
18615 # This sed command replaces #undef with comments. This is necessary, for
18616 # example, in the case of _POSIX_SOURCE, which is predefined and required
18617 # on some systems where configure will not decide to define it.
18618 cat >>conftest.undefs <<\_ACEOF
18619 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18622 # Break up conftest.defines because some shells have a limit on the size
18623 # of here documents, and old seds have small limits too (100 cmds).
18624 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18625 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18626 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18627 echo ' :' >>$CONFIG_STATUS
18628 rm -f conftest.tail
18629 while grep . conftest.defines >/dev/null
18631 # Write a limited-size here document to $tmp/defines.sed.
18632 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18633 # Speed up: don't consider the non `#define' lines.
18634 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18635 # Work around the forget-to-reset-the-flag bug.
18636 echo 't clr' >>$CONFIG_STATUS
18637 echo ': clr' >>$CONFIG_STATUS
18638 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18640 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18642 mv $tmp/out $tmp/in
18644 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18645 rm -f conftest.defines
18646 mv conftest.tail conftest.defines
18648 rm -f conftest.defines
18649 echo ' fi # grep' >>$CONFIG_STATUS
18650 echo >>$CONFIG_STATUS
18652 # Break up conftest.undefs because some shells have a limit on the size
18653 # of here documents, and old seds have small limits too (100 cmds).
18654 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18655 rm -f conftest.tail
18656 while grep . conftest.undefs >/dev/null
18658 # Write a limited-size here document to $tmp/undefs.sed.
18659 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18660 # Speed up: don't consider the non `#undef'
18661 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18662 # Work around the forget-to-reset-the-flag bug.
18663 echo 't clr' >>$CONFIG_STATUS
18664 echo ': clr' >>$CONFIG_STATUS
18665 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18667 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18669 mv $tmp/out $tmp/in
18671 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18672 rm -f conftest.undefs
18673 mv conftest.tail conftest.undefs
18675 rm -f conftest.undefs
18677 cat >>$CONFIG_STATUS <<\_ACEOF
18678 # Let's still pretend it is `configure' which instantiates (i.e., don't
18679 # use $as_me), people would be surprised to read:
18680 # /* config.h. Generated by config.status. */
18681 if test x"$ac_file" = x-; then
18682 echo "/* Generated by configure. */" >$tmp/config.h
18684 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18686 cat $tmp/in >>$tmp/config.h
18688 if test x"$ac_file" != x-; then
18689 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18690 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18691 echo "$as_me: $ac_file is unchanged" >&6;}
18693 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18694 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18695 X"$ac_file" : 'X\(//\)[^/]' \| \
18696 X"$ac_file" : 'X\(//\)$' \| \
18697 X"$ac_file" : 'X\(/\)' \| \
18698 . : '\(.\)' 2>/dev/null ||
18700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18702 /^X\(\/\/\)$/{ s//\1/; q; }
18703 /^X\(\/\).*/{ s//\1/; q; }
18705 { if $as_mkdir_p; then
18710 while test ! -d "$as_dir"; do
18711 as_dirs="$as_dir $as_dirs"
18712 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18713 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18714 X"$as_dir" : 'X\(//\)[^/]' \| \
18715 X"$as_dir" : 'X\(//\)$' \| \
18716 X"$as_dir" : 'X\(/\)' \| \
18717 . : '\(.\)' 2>/dev/null ||
18719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18721 /^X\(\/\/\)$/{ s//\1/; q; }
18722 /^X\(\/\).*/{ s//\1/; q; }
18725 test ! -n "$as_dirs" || mkdir $as_dirs
18726 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18727 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18728 { (exit 1); exit 1; }; }; }
18731 mv $tmp/config.h $ac_file
18735 rm -f $tmp/config.h
18739 cat >>$CONFIG_STATUS <<\_ACEOF
18742 # CONFIG_COMMANDS section.
18744 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18745 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18746 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18747 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18748 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18749 X"$ac_dest" : 'X\(//\)[^/]' \| \
18750 X"$ac_dest" : 'X\(//\)$' \| \
18751 X"$ac_dest" : 'X\(/\)' \| \
18752 . : '\(.\)' 2>/dev/null ||
18754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18755 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18756 /^X\(\/\/\)$/{ s//\1/; q; }
18757 /^X\(\/\).*/{ s//\1/; q; }
18761 if test "$ac_dir" != .; then
18762 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18763 # A "../" for each directory in $ac_dir_suffix.
18764 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18766 ac_dir_suffix= ac_top_builddir=
18770 .) # No --srcdir option. We are building in place.
18772 if test -z "$ac_top_builddir"; then
18775 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18777 [\\/]* | ?:[\\/]* ) # Absolute path.
18778 ac_srcdir=$srcdir$ac_dir_suffix;
18779 ac_top_srcdir=$srcdir ;;
18780 *) # Relative path.
18781 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18782 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18784 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18786 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18787 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18788 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18789 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18792 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18793 echo "$as_me: executing $ac_dest commands" >&6;}
18795 default ) (echo "Doing make of dependencies"; make depend;)
18801 cat >>$CONFIG_STATUS <<\_ACEOF
18803 { (exit 0); exit 0; }
18805 chmod +x $CONFIG_STATUS
18806 ac_clean_files=$ac_clean_files_save
18809 # configure is writing to config.log, and then calls config.status.
18810 # config.status does its own redirection, appending to config.log.
18811 # Unfortunately, on DOS this fails, as config.log is still kept open
18812 # by configure, so config.status won't be able to write to it; its
18813 # output is simply discarded. So we exec the FD to /dev/null,
18814 # effectively closing config.log, so it can be properly (re)opened and
18815 # appended to by config.status. When coming back to configure, we
18816 # need to make the FD available again.
18817 if test "$no_create" != yes; then
18819 ac_config_status_args=
18820 test "$silent" = yes &&
18821 ac_config_status_args="$ac_config_status_args --quiet"
18823 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18825 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18826 # would make configure fail if this is the last instruction.
18827 $ac_cs_success || { (exit 1); exit 1; }
18832 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
18833 chmod 755 console gconsole mtx-changer
18835 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
18836 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
18837 chmod 755 src/cats/create_mysql_database
18838 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
18839 chmod 755 src/cats/alter_mysql_tables
18840 chmod 755 src/cats/grant_mysql_privileges
18841 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
18842 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
18843 chmod 755 src/cats/create_sqlite_database
18844 chmod 755 src/cats/alter_sqlite_tables
18845 chmod 755 src/cats/sqlite
18846 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
18847 chmod 755 src/cats/create_bdb_database
18849 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
18850 largefile_support="yes"
18854 # A whole lot of hand springs to get the compiler version.
18855 # This is because gcc changed the output in version 3.0
18857 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18858 if test "x${CCVERSION}" = "x" ; then
18859 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18861 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18862 if test x"${CXXVERSION}" = x ; then
18863 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18866 if test "x${subsysdir}" = "x${sbindir}" ; then
18869 echo "You have set --sbindir and --with-subsys-dir"
18870 echo " both equal to: ${subsysdir} "
18871 echo " This is not permitted. Please reconfigure."
18872 echo "Aborting configuration ..."
18879 Configuration on `date`:
18881 Host: $host -- ${DISTNAME} ${DISTVER}
18882 Bacula version: ${VERSION} (${DATE})
18883 Source code location: ${srcdir}
18884 Install binaries: ${sbindir}
18885 Install config files: ${sysconfdir}
18886 Scripts directory: ${scriptdir}
18887 Working directory: ${working_dir}
18888 PID directory: ${piddir}
18889 Subsys directory: ${subsysdir}
18890 C Compiler: ${CC} ${CCVERSION}
18891 C++ Compiler: ${CXX} ${CXXVERSION}
18892 Compiler flags: ${WCFLAGS} ${CFLAGS}
18893 Linker flags: ${WLDFLAGS} ${LDFLAGS}
18895 Statically Linked Tools: ${support_static_tools}
18896 Statically Linked FD: ${support_static_fd}
18897 Statically Linked SD: ${support_static_sd}
18898 Statically Linked DIR: ${support_static_dir}
18899 Statically Linked CONS: ${support_static_cons}
18900 Database type: ${db_name}
18901 Database lib: ${DB_LIBS}
18903 Job Output Email: ${job_email}
18904 Traceback Email: ${dump_email}
18905 SMTP Host Address: ${smtp_host}
18906 Director Port ${dir_port}
18907 File daemon Port ${fd_port}
18908 Storage daemon Port ${sd_port}
18909 SQL binaries Directory ${SQL_BINDIR}
18911 Large file support: $largefile_support
18912 readline support: ${got_readline} ${PRTREADLINE_SRC}
18913 TCP Wrappers support: ${TCPW_MSG}
18914 ZLIB support: ${have_zlib}
18915 enable-smartalloc: ${support_smartalloc}
18916 enable-gnome: ${support_gnome}
18917 client-only: ${build_client_only}
18924 # cweb support: ${got_cweb} ${CWEB_SRC}
18925 # gmp support: ${got_gmp} ${GMP_SRC}