2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures this package to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --x-includes=DIR X include files are in DIR
843 --x-libraries=DIR X library files are in DIR
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 if test -n "$ac_init_help"; then
856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
858 --enable-gnome enable build of gnome-console GUI disabled
859 --enable-wx-console enable build of wxWidgets console disabled
860 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
861 --enable-smartalloc enable smartalloc debugging support disabled
862 --enable-static-tools enable static tape tools disabled
863 --enable-static-fd enable static File daemon disabled
864 --enable-static-sd enable static Storage daemon disabled
865 --enable-static-dir enable static Director disabled
866 --enable-static-cons enable static Console disabled
867 --enable-client-only build client (File daemon) only disabled
868 --disable-conio disable conio support enabled
870 --disable-readline disable readline support disable
872 --disable-largefile omit support for large files
875 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
876 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
877 --with-gnome-includes Specify location of GNOME headers
878 --with-gnome-libs Specify location of GNOME libs
879 --with-gnome Specify prefix for GNOME files
880 --with-readline=DIR specify readline library directory
881 --with-tcp-wrappers=DIR enable tcpwrappers support
882 --with-working-dir=PATH specify path of Bacula working directory
883 --with-scriptdir=PATH specify path of Bacula scripts directory
884 --with-dump-email=EMAIL dump email address
885 --with-job-email=EMAIL job output email address
886 --with-smtp-host=HOST SMTP mail host address
887 --with-pid-dir=PATH specify location of Bacula pid files
888 --with-subsys-dir=PATH specify location of Bacula subsys file
889 --with-baseport=PORT specify base port address for daemons
890 --with-dir-password=PASSWORD specify Director's password
891 --with-fd-password=PASSWORD specify Client's password
892 --with-sd-password=PASSWORD specify Storage daemon's password
893 --with-dir-user=USER specify user for Director daemon
894 --with-dir-group=GROUP specify group for Director daemon
895 --with-sd-user=USER specify user for Storage daemon
896 --with-sd-group=GROUP specify group for Storage daemon
897 --with-fd-user=USER specify user for File daemon
898 --with-fd-group=GROUP specify group for File daemon
899 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
900 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
901 base install directory, defaults to /usr/local/pgsql
903 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
904 install directory, default is to search through
905 a number of common places for the MySQL files.
907 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
908 install directory, default is to search through
909 a number of common places for the MySQL files.
911 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
912 install directory, default is to search through
913 a number of common places for the SQLite files.
914 --with-x use the X Window System
916 Some influential environment variables:
917 CC C compiler command
918 CFLAGS C compiler flags
919 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
920 nonstandard directory <lib dir>
921 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
922 headers in a nonstandard directory <include dir>
923 CXX C++ compiler command
924 CXXFLAGS C++ compiler flags
927 Use these variables to override the choices made by `configure' or to help
928 it to find libraries and programs with nonstandard names/locations.
933 if test "$ac_init_help" = "recursive"; then
934 # If there are subdirs, report their specific --help.
936 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
937 test -d $ac_dir || continue
940 if test "$ac_dir" != .; then
941 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
942 # A "../" for each directory in $ac_dir_suffix.
943 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
945 ac_dir_suffix= ac_top_builddir=
949 .) # No --srcdir option. We are building in place.
951 if test -z "$ac_top_builddir"; then
954 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
956 [\\/]* | ?:[\\/]* ) # Absolute path.
957 ac_srcdir=$srcdir$ac_dir_suffix;
958 ac_top_srcdir=$srcdir ;;
960 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
961 ac_top_srcdir=$ac_top_builddir$srcdir ;;
963 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
965 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
966 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
967 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
968 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
971 # Check for guested configure; otherwise get Cygnus style configure.
972 if test -f $ac_srcdir/configure.gnu; then
974 $SHELL $ac_srcdir/configure.gnu --help=recursive
975 elif test -f $ac_srcdir/configure; then
977 $SHELL $ac_srcdir/configure --help=recursive
978 elif test -f $ac_srcdir/configure.ac ||
979 test -f $ac_srcdir/configure.in; then
983 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
989 test -n "$ac_init_help" && exit 0
990 if $ac_init_version; then
993 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
994 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
1002 This file contains any messages produced by compilers while
1003 running configure, to aid debugging if configure makes a mistake.
1005 It was created by $as_me, which was
1006 generated by GNU Autoconf 2.57. Invocation command line was
1017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1026 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1027 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1030 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1031 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1032 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 test -z "$as_dir" && as_dir=.
1041 echo "PATH: $as_dir"
1056 # Keep a trace of the command line.
1057 # Strip out --no-create and --no-recursion so they do not pile up.
1058 # Strip out --silent because we don't want to record it for future runs.
1059 # Also quote any args containing shell meta-characters.
1060 # Make two passes to allow for proper duplicate-argument suppression.
1065 ac_must_keep_next=false
1071 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1075 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082 if test $ac_must_keep_next = true; then
1083 ac_must_keep_next=false # Got value, back to normal.
1086 *=* | --config-cache | -C | -disable-* | --disable-* \
1087 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089 | -with-* | --with-* | -without-* | --without-* | --x)
1090 case "$ac_configure_args0 " in
1091 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094 -* ) ac_must_keep_next=true ;;
1097 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098 # Get rid of the leading space.
1104 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1107 # When interrupted or exit'd, cleanup temporary files, and complete
1108 # config.log. We remove comments because anyway the quotes in there
1109 # would cause problems or look ugly.
1110 # WARNING: Be sure not to use single quotes in there, as some shells,
1111 # such as our DU 5.0 friend, will then `close' the trap.
1112 trap 'exit_status=$?
1113 # Save into config.log some information that might help in debugging.
1118 ## ---------------- ##
1119 ## Cache variables. ##
1120 ## ---------------- ##
1123 # The following way of writing the cache mishandles newlines in values,
1126 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1141 ## ----------------- ##
1142 ## Output variables. ##
1143 ## ----------------- ##
1146 for ac_var in $ac_subst_vars
1148 eval ac_val=$`echo $ac_var`
1149 echo "$ac_var='"'"'$ac_val'"'"'"
1153 if test -n "$ac_subst_files"; then
1160 for ac_var in $ac_subst_files
1162 eval ac_val=$`echo $ac_var`
1163 echo "$ac_var='"'"'$ac_val'"'"'"
1168 if test -s confdefs.h; then
1175 sed "/^$/d" confdefs.h | sort
1178 test "$ac_signal" != 0 &&
1179 echo "$as_me: caught signal $ac_signal"
1180 echo "$as_me: exit $exit_status"
1182 rm -f core core.* *.core &&
1183 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186 for ac_signal in 1 2 13 15; do
1187 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1192 rm -rf conftest* confdefs.h
1193 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196 # Predefined preprocessor variables.
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 # Let the site file select an alternate cache file if it wants to.
1224 # Prefer explicitly selected file to automatically selected ones.
1225 if test -z "$CONFIG_SITE"; then
1226 if test "x$prefix" != xNONE; then
1227 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232 for ac_site_file in $CONFIG_SITE; do
1233 if test -r "$ac_site_file"; then
1234 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235 echo "$as_me: loading site script $ac_site_file" >&6;}
1236 sed 's/^/| /' "$ac_site_file" >&5
1241 if test -r "$cache_file"; then
1242 # Some versions of bash will fail to source /dev/null (special
1243 # files actually), so we avoid doing that.
1244 if test -f "$cache_file"; then
1245 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246 echo "$as_me: loading cache $cache_file" >&6;}
1248 [\\/]* | ?:[\\/]* ) . $cache_file;;
1249 *) . ./$cache_file;;
1253 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254 echo "$as_me: creating cache $cache_file" >&6;}
1258 # Check that the precious variables saved in the cache have kept the same
1260 ac_cache_corrupted=false
1261 for ac_var in `(set) 2>&1 |
1262 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264 eval ac_new_set=\$ac_env_${ac_var}_set
1265 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266 eval ac_new_val="\$ac_env_${ac_var}_value"
1267 case $ac_old_set,$ac_new_set in
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1273 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275 ac_cache_corrupted=: ;;
1278 if test "x$ac_old_val" != "x$ac_new_val"; then
1279 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1282 echo "$as_me: former value: $ac_old_val" >&2;}
1283 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1284 echo "$as_me: current value: $ac_new_val" >&2;}
1285 ac_cache_corrupted=:
1288 # Pass precious variables to config.status.
1289 if test "$ac_new_set" = set; then
1291 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293 *) ac_arg=$ac_var=$ac_new_val ;;
1295 case " $ac_configure_args " in
1296 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1297 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301 if $ac_cache_corrupted; then
1302 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306 { (exit 1); exit 1; }; }
1310 ac_cpp='$CPP $CPPFLAGS'
1311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1339 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1340 if test -f $ac_dir/install-sh; then
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1344 elif test -f $ac_dir/install.sh; then
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1348 elif test -f $ac_dir/shtool; then
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1354 if test -z "$ac_aux_dir"; then
1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1357 { (exit 1); exit 1; }; }
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1363 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1371 # Extract the first word of "$ac_prog", so it can be a program name with args.
1372 set dummy $ac_prog; ac_word=$2
1373 echo "$as_me:$LINENO: checking for $ac_word" >&5
1374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1375 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1376 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387 test -z "$as_dir" && as_dir=.
1388 for ac_exec_ext in '' $ac_executable_extensions; do
1389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1390 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1400 TRUEPRG=$ac_cv_path_TRUEPRG
1402 if test -n "$TRUEPRG"; then
1403 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1404 echo "${ECHO_T}$TRUEPRG" >&6
1406 echo "$as_me:$LINENO: result: no" >&5
1407 echo "${ECHO_T}no" >&6
1410 test -n "$TRUEPRG" && break
1412 test -n "$TRUEPRG" || TRUEPRG=":"
1414 for ac_prog in false
1416 # Extract the first word of "$ac_prog", so it can be a program name with args.
1417 set dummy $ac_prog; ac_word=$2
1418 echo "$as_me:$LINENO: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1425 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 test -z "$as_dir" && as_dir=.
1433 for ac_exec_ext in '' $ac_executable_extensions; do
1434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1435 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1445 FALSEPRG=$ac_cv_path_FALSEPRG
1447 if test -n "$FALSEPRG"; then
1448 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1449 echo "${ECHO_T}$FALSEPRG" >&6
1451 echo "$as_me:$LINENO: result: no" >&5
1452 echo "${ECHO_T}no" >&6
1455 test -n "$FALSEPRG" && break
1457 test -n "$FALSEPRG" || FALSEPRG=":"
1462 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1464 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1465 echo "configuring for bacula $VERSION ($DATE)"
1470 ac_cpp='$CPP $CPPFLAGS'
1471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1474 if test -n "$ac_tool_prefix"; then
1475 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1476 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 if test -n "$CC"; then
1483 ac_cv_prog_CC="$CC" # Let the user override the test.
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 test -z "$as_dir" && as_dir=.
1490 for ac_exec_ext in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502 if test -n "$CC"; then
1503 echo "$as_me:$LINENO: result: $CC" >&5
1504 echo "${ECHO_T}$CC" >&6
1506 echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1511 if test -z "$ac_cv_prog_CC"; then
1513 # Extract the first word of "gcc", so it can be a program name with args.
1514 set dummy gcc; ac_word=$2
1515 echo "$as_me:$LINENO: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1518 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 if test -n "$ac_ct_CC"; then
1521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 test -z "$as_dir" && as_dir=.
1528 for ac_exec_ext in '' $ac_executable_extensions; do
1529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1530 ac_cv_prog_ac_ct_CC="gcc"
1531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1540 if test -n "$ac_ct_CC"; then
1541 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1542 echo "${ECHO_T}$ac_ct_CC" >&6
1544 echo "$as_me:$LINENO: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1553 if test -z "$CC"; then
1554 if test -n "$ac_tool_prefix"; then
1555 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1556 set dummy ${ac_tool_prefix}cc; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_CC+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 if test -n "$CC"; then
1563 ac_cv_prog_CC="$CC" # Let the user override the test.
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 test -z "$as_dir" && as_dir=.
1570 for ac_exec_ext in '' $ac_executable_extensions; do
1571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572 ac_cv_prog_CC="${ac_tool_prefix}cc"
1573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582 if test -n "$CC"; then
1583 echo "$as_me:$LINENO: result: $CC" >&5
1584 echo "${ECHO_T}$CC" >&6
1586 echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1591 if test -z "$ac_cv_prog_CC"; then
1593 # Extract the first word of "cc", so it can be a program name with args.
1594 set dummy cc; ac_word=$2
1595 echo "$as_me:$LINENO: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 if test -n "$ac_ct_CC"; then
1601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 test -z "$as_dir" && as_dir=.
1608 for ac_exec_ext in '' $ac_executable_extensions; do
1609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610 ac_cv_prog_ac_ct_CC="cc"
1611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1620 if test -n "$ac_ct_CC"; then
1621 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1622 echo "${ECHO_T}$ac_ct_CC" >&6
1624 echo "$as_me:$LINENO: result: no" >&5
1625 echo "${ECHO_T}no" >&6
1634 if test -z "$CC"; then
1635 # Extract the first word of "cc", so it can be a program name with args.
1636 set dummy cc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 if test -n "$CC"; then
1643 ac_cv_prog_CC="$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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1654 ac_prog_rejected=yes
1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664 if test $ac_prog_rejected = yes; then
1665 # We found a bogon in the path, so make sure we never use it.
1666 set dummy $ac_cv_prog_CC
1668 if test $# != 0; then
1669 # We chose a different compiler from the bogus one.
1670 # However, it has the same basename, so the bogon will be chosen
1671 # first if we set CC to just the basename; use the full file name.
1673 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1679 if test -n "$CC"; then
1680 echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1688 if test -z "$CC"; then
1689 if test -n "$ac_tool_prefix"; then
1692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1694 echo "$as_me:$LINENO: checking for $ac_word" >&5
1695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1696 if test "${ac_cv_prog_CC+set}" = set; then
1697 echo $ECHO_N "(cached) $ECHO_C" >&6
1699 if test -n "$CC"; then
1700 ac_cv_prog_CC="$CC" # Let the user override the test.
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 test -z "$as_dir" && as_dir=.
1707 for ac_exec_ext in '' $ac_executable_extensions; do
1708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1709 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719 if test -n "$CC"; then
1720 echo "$as_me:$LINENO: result: $CC" >&5
1721 echo "${ECHO_T}$CC" >&6
1723 echo "$as_me:$LINENO: result: no" >&5
1724 echo "${ECHO_T}no" >&6
1727 test -n "$CC" && break
1730 if test -z "$CC"; then
1734 # Extract the first word of "$ac_prog", so it can be a program name with args.
1735 set dummy $ac_prog; ac_word=$2
1736 echo "$as_me:$LINENO: checking for $ac_word" >&5
1737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1739 echo $ECHO_N "(cached) $ECHO_C" >&6
1741 if test -n "$ac_ct_CC"; then
1742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 test -z "$as_dir" && as_dir=.
1749 for ac_exec_ext in '' $ac_executable_extensions; do
1750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751 ac_cv_prog_ac_ct_CC="$ac_prog"
1752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1761 if test -n "$ac_ct_CC"; then
1762 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1763 echo "${ECHO_T}$ac_ct_CC" >&6
1765 echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1769 test -n "$ac_ct_CC" && break
1778 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1779 See \`config.log' for more details." >&5
1780 echo "$as_me: error: no acceptable C compiler found in \$PATH
1781 See \`config.log' for more details." >&2;}
1782 { (exit 1); exit 1; }; }
1784 # Provide some information about the compiler.
1785 echo "$as_me:$LINENO:" \
1786 "checking for C compiler version" >&5
1787 ac_compiler=`set X $ac_compile; echo $2`
1788 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1789 (eval $ac_compiler --version </dev/null >&5) 2>&5
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }
1793 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1794 (eval $ac_compiler -v </dev/null >&5) 2>&5
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }
1798 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1799 (eval $ac_compiler -V </dev/null >&5) 2>&5
1801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1802 (exit $ac_status); }
1804 cat >conftest.$ac_ext <<_ACEOF
1805 #line $LINENO "configure"
1808 cat confdefs.h >>conftest.$ac_ext
1809 cat >>conftest.$ac_ext <<_ACEOF
1810 /* end confdefs.h. */
1820 ac_clean_files_save=$ac_clean_files
1821 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1822 # Try to create an executable without -o first, disregard a.out.
1823 # It will help us diagnose broken compilers, and finding out an intuition
1825 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1826 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1827 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1828 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1829 (eval $ac_link_default) 2>&5
1831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832 (exit $ac_status); }; then
1833 # Find the output, starting from the most likely. This scheme is
1834 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1837 # Be careful to initialize this variable, since it used to be cached.
1838 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1840 # b.out is created by i960 compilers.
1841 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1843 test -f "$ac_file" || continue
1845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1848 # This is the source file.
1851 # We found the default executable, but exeext='' is most
1855 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1856 # FIXME: I believe we export ac_cv_exeext for Libtool,
1857 # but it would be cool to find out if it's true. Does anybody
1858 # maintain Libtool? --akim.
1866 echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1869 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1870 See \`config.log' for more details." >&5
1871 echo "$as_me: error: C compiler cannot create executables
1872 See \`config.log' for more details." >&2;}
1873 { (exit 77); exit 77; }; }
1876 ac_exeext=$ac_cv_exeext
1877 echo "$as_me:$LINENO: result: $ac_file" >&5
1878 echo "${ECHO_T}$ac_file" >&6
1880 # Check the compiler produces executables we can run. If not, either
1881 # the compiler is broken, or we cross compile.
1882 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1883 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1884 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1885 # If not cross compiling, check that we can run a simple program.
1886 if test "$cross_compiling" != yes; then
1887 if { ac_try='./$ac_file'
1888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }; }; then
1895 if test "$cross_compiling" = maybe; then
1898 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1899 If you meant to cross compile, use \`--host'.
1900 See \`config.log' for more details." >&5
1901 echo "$as_me: error: cannot run C compiled programs.
1902 If you meant to cross compile, use \`--host'.
1903 See \`config.log' for more details." >&2;}
1904 { (exit 1); exit 1; }; }
1908 echo "$as_me:$LINENO: result: yes" >&5
1909 echo "${ECHO_T}yes" >&6
1911 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1912 ac_clean_files=$ac_clean_files_save
1913 # Check the compiler produces executables we can run. If not, either
1914 # the compiler is broken, or we cross compile.
1915 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1916 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1917 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1918 echo "${ECHO_T}$cross_compiling" >&6
1920 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1921 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1923 (eval $ac_link) 2>&5
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }; then
1927 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1928 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1929 # work properly (i.e., refer to `conftest.exe'), while it won't with
1931 for ac_file in conftest.exe conftest conftest.*; do
1932 test -f "$ac_file" || continue
1934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1935 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1942 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1943 See \`config.log' for more details." >&5
1944 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1945 See \`config.log' for more details." >&2;}
1946 { (exit 1); exit 1; }; }
1949 rm -f conftest$ac_cv_exeext
1950 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1951 echo "${ECHO_T}$ac_cv_exeext" >&6
1953 rm -f conftest.$ac_ext
1954 EXEEXT=$ac_cv_exeext
1956 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1957 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1958 if test "${ac_cv_objext+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 cat >conftest.$ac_ext <<_ACEOF
1962 #line $LINENO "configure"
1965 cat confdefs.h >>conftest.$ac_ext
1966 cat >>conftest.$ac_ext <<_ACEOF
1967 /* end confdefs.h. */
1977 rm -f conftest.o conftest.obj
1978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1979 (eval $ac_compile) 2>&5
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }; then
1983 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1986 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1991 echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1994 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1995 See \`config.log' for more details." >&5
1996 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1997 See \`config.log' for more details." >&2;}
1998 { (exit 1); exit 1; }; }
2001 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2003 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2004 echo "${ECHO_T}$ac_cv_objext" >&6
2005 OBJEXT=$ac_cv_objext
2007 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2008 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2009 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 cat >conftest.$ac_ext <<_ACEOF
2013 #line $LINENO "configure"
2016 cat confdefs.h >>conftest.$ac_ext
2017 cat >>conftest.$ac_ext <<_ACEOF
2018 /* end confdefs.h. */
2031 rm -f conftest.$ac_objext
2032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2033 (eval $ac_compile) 2>&5
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); } &&
2037 { ac_try='test -s conftest.$ac_objext'
2038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); }; }; then
2045 echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2050 rm -f conftest.$ac_objext conftest.$ac_ext
2051 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2054 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2055 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2056 GCC=`test $ac_compiler_gnu = yes && echo yes`
2057 ac_test_CFLAGS=${CFLAGS+set}
2058 ac_save_CFLAGS=$CFLAGS
2060 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2061 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2062 if test "${ac_cv_prog_cc_g+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 cat >conftest.$ac_ext <<_ACEOF
2066 #line $LINENO "configure"
2069 cat confdefs.h >>conftest.$ac_ext
2070 cat >>conftest.$ac_ext <<_ACEOF
2071 /* end confdefs.h. */
2081 rm -f conftest.$ac_objext
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083 (eval $ac_compile) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try='test -s conftest.$ac_objext'
2088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; }; then
2095 echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2100 rm -f conftest.$ac_objext conftest.$ac_ext
2102 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2103 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2104 if test "$ac_test_CFLAGS" = set; then
2105 CFLAGS=$ac_save_CFLAGS
2106 elif test $ac_cv_prog_cc_g = yes; then
2107 if test "$GCC" = yes; then
2113 if test "$GCC" = yes; then
2119 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2120 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2121 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 ac_cv_prog_cc_stdc=no
2126 cat >conftest.$ac_ext <<_ACEOF
2127 #line $LINENO "configure"
2130 cat confdefs.h >>conftest.$ac_ext
2131 cat >>conftest.$ac_ext <<_ACEOF
2132 /* end confdefs.h. */
2135 #include <sys/types.h>
2136 #include <sys/stat.h>
2137 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2138 struct buf { int x; };
2139 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2140 static char *e (p, i)
2146 static char *f (char * (*g) (char **, int), char **p, ...)
2151 s = g (p, va_arg (v,int));
2155 int test (int i, double x);
2156 struct s1 {int (*f) (int a);};
2157 struct s2 {int (*f) (double a);};
2158 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2164 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2169 # Don't try gcc -ansi; that turns off useful extensions and
2170 # breaks some systems' header files.
2171 # AIX -qlanglvl=ansi
2172 # Ultrix and OSF/1 -std1
2173 # HP-UX 10.20 and later -Ae
2174 # HP-UX older versions -Aa -D_HPUX_SOURCE
2175 # SVR4 -Xc -D__EXTENSIONS__
2176 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2178 CC="$ac_save_CC $ac_arg"
2179 rm -f conftest.$ac_objext
2180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181 (eval $ac_compile) 2>&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2191 ac_cv_prog_cc_stdc=$ac_arg
2194 echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2198 rm -f conftest.$ac_objext
2200 rm -f conftest.$ac_ext conftest.$ac_objext
2205 case "x$ac_cv_prog_cc_stdc" in
2207 echo "$as_me:$LINENO: result: none needed" >&5
2208 echo "${ECHO_T}none needed" >&6 ;;
2210 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2211 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2212 CC="$CC $ac_cv_prog_cc_stdc" ;;
2215 # Some people use a C++ compiler to compile C. Since we use `exit',
2216 # in C++ we need to declare it. In case someone uses the same compiler
2217 # for both compiling C and C++ we need to have the C++ compiler decide
2218 # the declaration of exit, since it's the most demanding environment.
2219 cat >conftest.$ac_ext <<_ACEOF
2224 rm -f conftest.$ac_objext
2225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); } &&
2230 { ac_try='test -s conftest.$ac_objext'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2236 for ac_declaration in \
2238 '#include <stdlib.h>' \
2239 'extern "C" void std::exit (int) throw (); using std::exit;' \
2240 'extern "C" void std::exit (int); using std::exit;' \
2241 'extern "C" void exit (int) throw ();' \
2242 'extern "C" void exit (int);' \
2245 cat >conftest.$ac_ext <<_ACEOF
2246 #line $LINENO "configure"
2249 cat confdefs.h >>conftest.$ac_ext
2250 cat >>conftest.$ac_ext <<_ACEOF
2251 /* end confdefs.h. */
2262 rm -f conftest.$ac_objext
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264 (eval $ac_compile) 2>&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); } &&
2268 { ac_try='test -s conftest.$ac_objext'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; }; then
2276 echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2281 rm -f conftest.$ac_objext conftest.$ac_ext
2282 cat >conftest.$ac_ext <<_ACEOF
2283 #line $LINENO "configure"
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2298 rm -f conftest.$ac_objext
2299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300 (eval $ac_compile) 2>&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); } &&
2304 { ac_try='test -s conftest.$ac_objext'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; }; then
2312 echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2316 rm -f conftest.$ac_objext conftest.$ac_ext
2319 if test -n "$ac_declaration"; then
2320 echo '#ifdef __cplusplus' >>confdefs.h
2321 echo $ac_declaration >>confdefs.h
2322 echo '#endif' >>confdefs.h
2326 echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2330 rm -f conftest.$ac_objext conftest.$ac_ext
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338 ac_cpp='$CXXCPP $CPPFLAGS'
2339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2342 if test -n "$ac_tool_prefix"; then
2343 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2347 echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2349 if test "${ac_cv_prog_CXX+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 if test -n "$CXX"; then
2353 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2362 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 if test -n "$CXX"; then
2373 echo "$as_me:$LINENO: result: $CXX" >&5
2374 echo "${ECHO_T}$CXX" >&6
2376 echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6
2380 test -n "$CXX" && break
2383 if test -z "$CXX"; then
2385 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2387 # Extract the first word of "$ac_prog", so it can be a program name with args.
2388 set dummy $ac_prog; ac_word=$2
2389 echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2391 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 if test -n "$ac_ct_CXX"; then
2395 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2404 ac_cv_prog_ac_ct_CXX="$ac_prog"
2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2414 if test -n "$ac_ct_CXX"; then
2415 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2416 echo "${ECHO_T}$ac_ct_CXX" >&6
2418 echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6
2422 test -n "$ac_ct_CXX" && break
2424 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2430 # Provide some information about the compiler.
2431 echo "$as_me:$LINENO:" \
2432 "checking for C++ compiler version" >&5
2433 ac_compiler=`set X $ac_compile; echo $2`
2434 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2435 (eval $ac_compiler --version </dev/null >&5) 2>&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }
2439 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2440 (eval $ac_compiler -v </dev/null >&5) 2>&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }
2444 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2445 (eval $ac_compiler -V </dev/null >&5) 2>&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }
2450 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2451 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2452 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2455 cat >conftest.$ac_ext <<_ACEOF
2456 #line $LINENO "configure"
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h. */
2474 rm -f conftest.$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2488 echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2493 rm -f conftest.$ac_objext conftest.$ac_ext
2494 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2497 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2498 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2499 GXX=`test $ac_compiler_gnu = yes && echo yes`
2500 ac_test_CXXFLAGS=${CXXFLAGS+set}
2501 ac_save_CXXFLAGS=$CXXFLAGS
2503 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2504 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2505 if test "${ac_cv_prog_cxx_g+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 cat >conftest.$ac_ext <<_ACEOF
2509 #line $LINENO "configure"
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2524 rm -f conftest.$ac_objext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526 (eval $ac_compile) 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -s conftest.$ac_objext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2536 ac_cv_prog_cxx_g=yes
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2543 rm -f conftest.$ac_objext conftest.$ac_ext
2545 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2546 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2547 if test "$ac_test_CXXFLAGS" = set; then
2548 CXXFLAGS=$ac_save_CXXFLAGS
2549 elif test $ac_cv_prog_cxx_g = yes; then
2550 if test "$GXX" = yes; then
2556 if test "$GXX" = yes; then
2562 for ac_declaration in \
2564 '#include <stdlib.h>' \
2565 'extern "C" void std::exit (int) throw (); using std::exit;' \
2566 'extern "C" void std::exit (int); using std::exit;' \
2567 'extern "C" void exit (int) throw ();' \
2568 'extern "C" void exit (int);' \
2571 cat >conftest.$ac_ext <<_ACEOF
2572 #line $LINENO "configure"
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h. */
2588 rm -f conftest.$ac_objext
2589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590 (eval $ac_compile) 2>&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } &&
2594 { ac_try='test -s conftest.$ac_objext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2607 rm -f conftest.$ac_objext conftest.$ac_ext
2608 cat >conftest.$ac_ext <<_ACEOF
2609 #line $LINENO "configure"
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h. */
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626 (eval $ac_compile) 2>&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } &&
2630 { ac_try='test -s conftest.$ac_objext'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; }; then
2638 echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2642 rm -f conftest.$ac_objext conftest.$ac_ext
2645 if test -n "$ac_declaration"; then
2646 echo '#ifdef __cplusplus' >>confdefs.h
2647 echo $ac_declaration >>confdefs.h
2648 echo '#endif' >>confdefs.h
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2657 if test "x$CC" != xcc; then
2658 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2659 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2661 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2662 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2664 set dummy $CC; ac_cc=`echo $2 |
2665 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2666 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 cat >conftest.$ac_ext <<_ACEOF
2670 #line $LINENO "configure"
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2685 # Make sure it works both with $CC and with simple cc.
2686 # We do the test twice because some compilers refuse to overwrite an
2687 # existing .o file with -o, though they will create one.
2688 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2689 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } &&
2694 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); };
2700 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2701 if test "x$CC" != xcc; then
2702 # Test first that cc exists at all.
2703 if { ac_try='cc -c conftest.$ac_ext >&5'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; }; then
2709 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2710 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); };
2724 # cc exists but doesn't like -o.
2725 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2730 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2735 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2736 echo "$as_me:$LINENO: result: yes" >&5
2737 echo "${ECHO_T}yes" >&6
2739 echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6
2742 cat >>confdefs.h <<\_ACEOF
2743 #define NO_MINUS_C_MINUS_O 1
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2754 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2755 # On Suns, sometimes $CPP names a directory.
2756 if test -n "$CPP" && test -d "$CPP"; then
2759 if test -z "$CPP"; then
2760 if test "${ac_cv_prog_CPP+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 # Double quotes because CPP needs to be expanded
2764 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2767 for ac_c_preproc_warn_flag in '' yes
2769 # Use a header file that comes with gcc, so configuring glibc
2770 # with a fresh cross-compiler works.
2771 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2772 # <limits.h> exists even on freestanding compilers.
2773 # On the NeXT, cc -E runs the code through the compiler's parser,
2774 # not just through cpp. "Syntax error" is here to catch this case.
2775 cat >conftest.$ac_ext <<_ACEOF
2776 #line $LINENO "configure"
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2783 # include <limits.h>
2785 # include <assert.h>
2789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2792 grep -v '^ *+' conftest.er1 >conftest.err
2794 cat conftest.err >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } >/dev/null; then
2797 if test -s conftest.err; then
2798 ac_cpp_err=$ac_c_preproc_warn_flag
2805 if test -z "$ac_cpp_err"; then
2808 echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2811 # Broken: fails on valid input.
2814 rm -f conftest.err conftest.$ac_ext
2816 # OK, works on sane cases. Now check whether non-existent headers
2817 # can be detected and how.
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. */
2825 #include <ac_nonexistent.h>
2827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2830 grep -v '^ *+' conftest.er1 >conftest.err
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } >/dev/null; then
2835 if test -s conftest.err; then
2836 ac_cpp_err=$ac_c_preproc_warn_flag
2843 if test -z "$ac_cpp_err"; then
2844 # Broken: success on invalid input.
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2850 # Passes both tests.
2854 rm -f conftest.err conftest.$ac_ext
2857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2858 rm -f conftest.err conftest.$ac_ext
2859 if $ac_preproc_ok; then
2871 echo "$as_me:$LINENO: result: $CPP" >&5
2872 echo "${ECHO_T}$CPP" >&6
2874 for ac_c_preproc_warn_flag in '' yes
2876 # Use a header file that comes with gcc, so configuring glibc
2877 # with a fresh cross-compiler works.
2878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2879 # <limits.h> exists even on freestanding compilers.
2880 # On the NeXT, cc -E runs the code through the compiler's parser,
2881 # not just through cpp. "Syntax error" is here to catch this case.
2882 cat >conftest.$ac_ext <<_ACEOF
2883 #line $LINENO "configure"
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2890 # include <limits.h>
2892 # include <assert.h>
2896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2899 grep -v '^ *+' conftest.er1 >conftest.err
2901 cat conftest.err >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } >/dev/null; then
2904 if test -s conftest.err; then
2905 ac_cpp_err=$ac_c_preproc_warn_flag
2912 if test -z "$ac_cpp_err"; then
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2918 # Broken: fails on valid input.
2921 rm -f conftest.err conftest.$ac_ext
2923 # OK, works on sane cases. Now check whether non-existent headers
2924 # can be detected and how.
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. */
2932 #include <ac_nonexistent.h>
2934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2937 grep -v '^ *+' conftest.er1 >conftest.err
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } >/dev/null; then
2942 if test -s conftest.err; then
2943 ac_cpp_err=$ac_c_preproc_warn_flag
2950 if test -z "$ac_cpp_err"; then
2951 # Broken: success on invalid input.
2954 echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 # Passes both tests.
2961 rm -f conftest.err conftest.$ac_ext
2964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2965 rm -f conftest.err conftest.$ac_ext
2966 if $ac_preproc_ok; then
2969 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2970 See \`config.log' for more details." >&5
2971 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2972 See \`config.log' for more details." >&2;}
2973 { (exit 1); exit 1; }; }
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983 echo "$as_me:$LINENO: checking for egrep" >&5
2984 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2985 if test "${ac_cv_prog_egrep+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2989 then ac_cv_prog_egrep='grep -E'
2990 else ac_cv_prog_egrep='egrep'
2993 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2994 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2995 EGREP=$ac_cv_prog_egrep
2998 if test $ac_cv_c_compiler_gnu = yes; then
2999 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3000 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3001 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 ac_pattern="Autoconf.*'x'"
3005 cat >conftest.$ac_ext <<_ACEOF
3006 #line $LINENO "configure"
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3016 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3017 ac_cv_prog_gcc_traditional=yes
3019 ac_cv_prog_gcc_traditional=no
3024 if test $ac_cv_prog_gcc_traditional = no; then
3025 cat >conftest.$ac_ext <<_ACEOF
3026 #line $LINENO "configure"
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3036 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3037 ac_cv_prog_gcc_traditional=yes
3043 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3044 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3045 if test $ac_cv_prog_gcc_traditional = yes; then
3046 CC="$CC -traditional"
3052 cat >>confdefs.h <<\_ACEOF
3058 # Find a good install program. We prefer a C program (faster),
3059 # so one script is as good as another. But avoid the broken or
3060 # incompatible versions:
3061 # SysV /etc/install, /usr/sbin/install
3062 # SunOS /usr/etc/install
3063 # IRIX /sbin/install
3065 # AmigaOS /C/install, which installs bootblocks on floppy discs
3066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3067 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3068 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3069 # ./install, which can be erroneously created by make from ./install.sh.
3070 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3071 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3072 if test -z "$INSTALL"; then
3073 if test "${ac_cv_path_install+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 test -z "$as_dir" && as_dir=.
3081 # Account for people who put trailing slashes in PATH elements.
3083 ./ | .// | /cC/* | \
3084 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3087 # OSF1 and SCO ODT 3.0 have their own names for install.
3088 # Don't use installbsd from OSF since it installs stuff as root
3090 for ac_prog in ginstall scoinst install; do
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3093 if test $ac_prog = install &&
3094 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3095 # AIX install. It has an incompatible calling convention.
3097 elif test $ac_prog = install &&
3098 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3099 # program-specific install script used by HP pwplus--don't use.
3102 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3114 if test "${ac_cv_path_install+set}" = set; then
3115 INSTALL=$ac_cv_path_install
3117 # As a last resort, use the slow shell script. We don't cache a
3118 # path for INSTALL within a source directory, because that will
3119 # break other packages using the cache if that directory is
3120 # removed, or if the path is relative.
3121 INSTALL=$ac_install_sh
3124 echo "$as_me:$LINENO: result: $INSTALL" >&5
3125 echo "${ECHO_T}$INSTALL" >&6
3127 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3128 # It thinks the first close brace ends the variable substitution.
3129 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3131 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3133 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3135 if test -n "$ac_tool_prefix"; then
3136 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3137 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3138 echo "$as_me:$LINENO: checking for $ac_word" >&5
3139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3140 if test "${ac_cv_prog_RANLIB+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 if test -n "$RANLIB"; then
3144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3153 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 RANLIB=$ac_cv_prog_RANLIB
3163 if test -n "$RANLIB"; then
3164 echo "$as_me:$LINENO: result: $RANLIB" >&5
3165 echo "${ECHO_T}$RANLIB" >&6
3167 echo "$as_me:$LINENO: result: no" >&5
3168 echo "${ECHO_T}no" >&6
3172 if test -z "$ac_cv_prog_RANLIB"; then
3173 ac_ct_RANLIB=$RANLIB
3174 # Extract the first word of "ranlib", so it can be a program name with args.
3175 set dummy ranlib; ac_word=$2
3176 echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3178 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 if test -n "$ac_ct_RANLIB"; then
3182 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191 ac_cv_prog_ac_ct_RANLIB="ranlib"
3192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3201 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3202 if test -n "$ac_ct_RANLIB"; then
3203 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3204 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3206 echo "$as_me:$LINENO: result: no" >&5
3207 echo "${ECHO_T}no" >&6
3210 RANLIB=$ac_ct_RANLIB
3212 RANLIB="$ac_cv_prog_RANLIB"
3215 # Extract the first word of "mv", so it can be a program name with args.
3216 set dummy mv; ac_word=$2
3217 echo "$as_me:$LINENO: checking for $ac_word" >&5
3218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3219 if test "${ac_cv_path_MV+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 ac_cv_path_MV="$MV" # Let the user override the test with a path.
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_path_MV="$as_dir/$ac_word$ac_exec_ext"
3235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3247 if test -n "$MV"; then
3248 echo "$as_me:$LINENO: result: $MV" >&5
3249 echo "${ECHO_T}$MV" >&6
3251 echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6
3255 # Extract the first word of "rm", so it can be a program name with args.
3256 set dummy rm; ac_word=$2
3257 echo "$as_me:$LINENO: checking for $ac_word" >&5
3258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3259 if test "${ac_cv_path_RM+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3287 if test -n "$RM"; then
3288 echo "$as_me:$LINENO: result: $RM" >&5
3289 echo "${ECHO_T}$RM" >&6
3291 echo "$as_me:$LINENO: result: no" >&5
3292 echo "${ECHO_T}no" >&6
3295 # Extract the first word of "cp", so it can be a program name with args.
3296 set dummy cp; ac_word=$2
3297 echo "$as_me:$LINENO: checking for $ac_word" >&5
3298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3299 if test "${ac_cv_path_CP+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3327 if test -n "$CP"; then
3328 echo "$as_me:$LINENO: result: $CP" >&5
3329 echo "${ECHO_T}$CP" >&6
3331 echo "$as_me:$LINENO: result: no" >&5
3332 echo "${ECHO_T}no" >&6
3335 # Extract the first word of "sed", so it can be a program name with args.
3336 set dummy sed; ac_word=$2
3337 echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3339 if test "${ac_cv_path_SED+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3367 if test -n "$SED"; then
3368 echo "$as_me:$LINENO: result: $SED" >&5
3369 echo "${ECHO_T}$SED" >&6
3371 echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6
3375 # Extract the first word of "awk", so it can be a program name with args.
3376 set dummy awk; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_path_AWK+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3407 if test -n "$AWK"; then
3408 echo "$as_me:$LINENO: result: $AWK" >&5
3409 echo "${ECHO_T}$AWK" >&6
3411 echo "$as_me:$LINENO: result: no" >&5
3412 echo "${ECHO_T}no" >&6
3415 # Extract the first word of "echo", so it can be a program name with args.
3416 set dummy echo; ac_word=$2
3417 echo "$as_me:$LINENO: checking for $ac_word" >&5
3418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3419 if test "${ac_cv_path_ECHO+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3445 ECHO=$ac_cv_path_ECHO
3447 if test -n "$ECHO"; then
3448 echo "$as_me:$LINENO: result: $ECHO" >&5
3449 echo "${ECHO_T}$ECHO" >&6
3451 echo "$as_me:$LINENO: result: no" >&5
3452 echo "${ECHO_T}no" >&6
3455 # Extract the first word of "cmp", so it can be a program name with args.
3456 set dummy cmp; ac_word=$2
3457 echo "$as_me:$LINENO: checking for $ac_word" >&5
3458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3459 if test "${ac_cv_path_CMP+set}" = set; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 test -z "$as_dir" && as_dir=.
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3487 if test -n "$CMP"; then
3488 echo "$as_me:$LINENO: result: $CMP" >&5
3489 echo "${ECHO_T}$CMP" >&6
3491 echo "$as_me:$LINENO: result: no" >&5
3492 echo "${ECHO_T}no" >&6
3495 # Extract the first word of "tbl", so it can be a program name with args.
3496 set dummy tbl; ac_word=$2
3497 echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499 if test "${ac_cv_path_TBL+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 test -z "$as_dir" && as_dir=.
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3514 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3527 if test -n "$TBL"; then
3528 echo "$as_me:$LINENO: result: $TBL" >&5
3529 echo "${ECHO_T}$TBL" >&6
3531 echo "$as_me:$LINENO: result: no" >&5
3532 echo "${ECHO_T}no" >&6
3535 # Extract the first word of "ar", so it can be a program name with args.
3536 set dummy ar; ac_word=$2
3537 echo "$as_me:$LINENO: checking for $ac_word" >&5
3538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3539 if test "${ac_cv_path_AR+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3554 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3567 if test -n "$AR"; then
3568 echo "$as_me:$LINENO: result: $AR" >&5
3569 echo "${ECHO_T}$AR" >&6
3571 echo "$as_me:$LINENO: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3575 # Extract the first word of "openssl", so it can be a program name with args.
3576 set dummy openssl; ac_word=$2
3577 echo "$as_me:$LINENO: checking for $ac_word" >&5
3578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3579 if test "${ac_cv_path_OPENSSL+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3605 OPENSSL=$ac_cv_path_OPENSSL
3607 if test -n "$OPENSSL"; then
3608 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3609 echo "${ECHO_T}$OPENSSL" >&6
3611 echo "$as_me:$LINENO: result: no" >&5
3612 echo "${ECHO_T}no" >&6
3615 # Extract the first word of "mtx", so it can be a program name with args.
3616 set dummy mtx; ac_word=$2
3617 echo "$as_me:$LINENO: checking for $ac_word" >&5
3618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619 if test "${ac_cv_path_MTX+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3647 if test -n "$MTX"; then
3648 echo "$as_me:$LINENO: result: $MTX" >&5
3649 echo "${ECHO_T}$MTX" >&6
3651 echo "$as_me:$LINENO: result: no" >&5
3652 echo "${ECHO_T}no" >&6
3655 # Extract the first word of "pkg-config", so it can be a program name with args.
3656 set dummy pkg-config; ac_word=$2
3657 echo "$as_me:$LINENO: checking for $ac_word" >&5
3658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3659 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 test -z "$as_dir" && as_dir=.
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3681 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3685 PKGCONFIG=$ac_cv_path_PKGCONFIG
3687 if test -n "$PKGCONFIG"; then
3688 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3689 echo "${ECHO_T}$PKGCONFIG" >&6
3691 echo "$as_me:$LINENO: result: no" >&5
3692 echo "${ECHO_T}no" >&6
3695 # Extract the first word of "wx-config", so it can be a program name with args.
3696 set dummy wx-config; ac_word=$2
3697 echo "$as_me:$LINENO: checking for $ac_word" >&5
3698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3699 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3725 WXCONFIG=$ac_cv_path_WXCONFIG
3727 if test -n "$WXCONFIG"; then
3728 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3729 echo "${ECHO_T}$WXCONFIG" >&6
3731 echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6
3736 test -n "$ARFLAG" || ARFLAGS="cr"
3749 # Make sure we can run config.sub.
3750 $ac_config_sub sun4 >/dev/null 2>&1 ||
3751 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3752 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3753 { (exit 1); exit 1; }; }
3755 echo "$as_me:$LINENO: checking build system type" >&5
3756 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3757 if test "${ac_cv_build+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 ac_cv_build_alias=$build_alias
3761 test -z "$ac_cv_build_alias" &&
3762 ac_cv_build_alias=`$ac_config_guess`
3763 test -z "$ac_cv_build_alias" &&
3764 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3765 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3766 { (exit 1); exit 1; }; }
3767 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3768 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3769 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3770 { (exit 1); exit 1; }; }
3773 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3774 echo "${ECHO_T}$ac_cv_build" >&6
3776 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3777 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3778 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3782 echo "$as_me:$LINENO: checking host system type" >&5
3783 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3784 if test "${ac_cv_host+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 ac_cv_host_alias=$host_alias
3788 test -z "$ac_cv_host_alias" &&
3789 ac_cv_host_alias=$ac_cv_build_alias
3790 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3791 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3792 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3793 { (exit 1); exit 1; }; }
3796 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3797 echo "${ECHO_T}$ac_cv_host" >&6
3799 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3800 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3801 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3805 *cygwin* ) CYGWIN=yes;;
3809 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3815 HAVE_SUN_OS_FALSE='#'
3817 HAVE_SUN_OS_TRUE='#'
3820 cat >>confdefs.h <<\_ACEOF
3821 #define HAVE_SUN_OS 1
3829 HAVE_SUN_OS_FALSE='#'
3831 HAVE_SUN_OS_TRUE='#'
3836 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3842 HAVE_OSF1_OS_FALSE='#'
3844 HAVE_OSF1_OS_TRUE='#'
3847 cat >>confdefs.h <<\_ACEOF
3848 #define HAVE_OSF1_OS 1
3856 HAVE_OSF1_OS_FALSE='#'
3858 HAVE_OSF1_OS_TRUE='#'
3863 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3869 HAVE_AIX_OS_FALSE='#'
3871 HAVE_AIX_OS_TRUE='#'
3874 cat >>confdefs.h <<\_ACEOF
3875 #define HAVE_AIX_OS 1
3883 HAVE_AIX_OS_FALSE='#'
3885 HAVE_AIX_OS_TRUE='#'
3890 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3896 HAVE_HPUX_OS_FALSE='#'
3898 HAVE_HPUX_OS_TRUE='#'
3901 cat >>confdefs.h <<\_ACEOF
3902 #define HAVE_HPUX_OS 1
3910 HAVE_HPUX_OS_FALSE='#'
3912 HAVE_HPUX_OS_TRUE='#'
3917 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3923 HAVE_LINUX_OS_FALSE='#'
3925 HAVE_LINUX_OS_TRUE='#'
3926 HAVE_LINUX_OS_FALSE=
3928 cat >>confdefs.h <<\_ACEOF
3929 #define HAVE_LINUX_OS 1
3937 HAVE_LINUX_OS_FALSE='#'
3939 HAVE_LINUX_OS_TRUE='#'
3940 HAVE_LINUX_OS_FALSE=
3944 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3949 HAVE_FREEBSD_OS_TRUE=
3950 HAVE_FREEBSD_OS_FALSE='#'
3952 HAVE_FREEBSD_OS_TRUE='#'
3953 HAVE_FREEBSD_OS_FALSE=
3955 cat >>confdefs.h <<\_ACEOF
3956 #define HAVE_FREEBSD_OS 1
3963 HAVE_FREEBSD_OS_TRUE=
3964 HAVE_FREEBSD_OS_FALSE='#'
3966 HAVE_FREEBSD_OS_TRUE='#'
3967 HAVE_FREEBSD_OS_FALSE=
3971 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3976 HAVE_NETBSD_OS_TRUE=
3977 HAVE_NETBSD_OS_FALSE='#'
3979 HAVE_NETBSD_OS_TRUE='#'
3980 HAVE_NETBSD_OS_FALSE=
3982 cat >>confdefs.h <<\_ACEOF
3983 #define HAVE_NETBSD_OS 1
3990 HAVE_NETBSD_OS_TRUE=
3991 HAVE_NETBSD_OS_FALSE='#'
3993 HAVE_NETBSD_OS_TRUE='#'
3994 HAVE_NETBSD_OS_FALSE=
3998 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4003 HAVE_OPENBSD_OS_TRUE=
4004 HAVE_OPENBSD_OS_FALSE='#'
4006 HAVE_OPENBSD_OS_TRUE='#'
4007 HAVE_OPENBSD_OS_FALSE=
4009 cat >>confdefs.h <<\_ACEOF
4010 #define HAVE_OPENBSD_OS 1
4017 HAVE_OPENBSD_OS_TRUE=
4018 HAVE_OPENBSD_OS_FALSE='#'
4020 HAVE_OPENBSD_OS_TRUE='#'
4021 HAVE_OPENBSD_OS_FALSE=
4025 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4031 HAVE_BSDI_OS_FALSE='#'
4033 HAVE_BSDI_OS_TRUE='#'
4036 cat >>confdefs.h <<\_ACEOF
4037 #define HAVE_BSDI_OS 1
4045 HAVE_BSDI_OS_FALSE='#'
4047 HAVE_BSDI_OS_TRUE='#'
4052 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4058 HAVE_SGI_OS_FALSE='#'
4060 HAVE_SGI_OS_TRUE='#'
4063 cat >>confdefs.h <<\_ACEOF
4064 #define HAVE_SGI_OS 1
4072 HAVE_SGI_OS_FALSE='#'
4074 HAVE_SGI_OS_TRUE='#'
4079 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4085 HAVE_IRIX_OS_FALSE='#'
4087 HAVE_IRIX_OS_TRUE='#'
4090 cat >>confdefs.h <<\_ACEOF
4091 #define HAVE_IRIX_OS 1
4099 HAVE_IRIX_OS_FALSE='#'
4101 HAVE_IRIX_OS_TRUE='#'
4106 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4111 HAVE_DARWIN_OS_TRUE=
4112 HAVE_DARWIN_OS_FALSE='#'
4114 HAVE_DARWIN_OS_TRUE='#'
4115 HAVE_DARWIN_OS_FALSE=
4117 cat >>confdefs.h <<\_ACEOF
4118 #define HAVE_DARWIN_OS 1
4125 HAVE_DARWIN_OS_TRUE=
4126 HAVE_DARWIN_OS_FALSE='#'
4128 HAVE_DARWIN_OS_TRUE='#'
4129 HAVE_DARWIN_OS_FALSE=
4134 # -----------------------------------------------------------
4135 # ----------------------------------------------------------
4136 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4137 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4138 if test "x$DISTNAME" != "x"
4140 echo "distname set to $DISTNAME"
4141 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4162 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4165 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4168 elif test -f /etc/SuSE-release
4171 elif test -d /etc/SuSEconfig
4174 elif test -f /etc/mandrake-release
4177 elif test -f /etc/whitebox-release
4180 elif test -f /etc/redhat-release
4183 elif test -f /etc/gentoo-release
4186 elif test -f /etc/debian_version
4189 elif test -f /etc/slackware-version
4192 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4195 elif test -f /etc/engarde-version
4198 elif test "$CYGWIN" = yes
4201 cat >>confdefs.h <<\_ACEOF
4202 #define HAVE_CYGWIN 1
4208 echo "$as_me:$LINENO: result: done" >&5
4209 echo "${ECHO_T}done" >&6
4212 # -----------------------------------------------------------
4213 # ----------------------------------------------------------
4218 INSIDE_GNOME_COMMON_TRUE=
4219 INSIDE_GNOME_COMMON_FALSE='#'
4221 INSIDE_GNOME_COMMON_TRUE='#'
4222 INSIDE_GNOME_COMMON_FALSE=
4225 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4227 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4230 # ------------------------------------------------------------------
4231 # If the user has not set --prefix, we set our default to nothing.
4232 # In this case, if the user has not set --sysconfdir, we set it
4233 # to the package default of /etc/bacula. If either --prefix or
4234 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4235 # ------------------------------------------------------------------
4236 if test x${prefix} = xNONE ; then
4237 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4238 sysconfdir=/etc/bacula
4242 sysconfdir=`eval echo ${sysconfdir}`
4244 # -------------------------------------------------------------------------
4245 # If the user has not set --exec-prefix, we default to ${prefix}
4246 # -------------------------------------------------------------------------
4247 if test x${exec_prefix} = xNONE ; then
4248 exec_prefix=${prefix}
4251 # ------------------------------------------------------------------
4252 # If the user has not set --sbindir, we set our default as /sbin
4253 # ------------------------------------------------------------------
4254 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4255 sbindir=${exec_prefix}/sbin
4257 sbindir=`eval echo ${sbindir}`
4259 # ------------------------------------------------------------------
4260 # All list of languages for which a translation exist. Each
4261 # language is separated by a space.
4262 # ------------------------------------------------------------------
4265 for ac_prog in msgfmt
4267 # Extract the first word of "$ac_prog", so it can be a program name with args.
4268 set dummy $ac_prog; ac_word=$2
4269 echo "$as_me:$LINENO: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4271 if test "${ac_cv_path_MSGFMT+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 MSGFMT=$ac_cv_path_MSGFMT
4298 if test -n "$MSGFMT"; then
4299 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4300 echo "${ECHO_T}$MSGFMT" >&6
4302 echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4306 test -n "$MSGFMT" && break
4308 test -n "$MSGFMT" || MSGFMT="no"
4310 if test "$MSGFMT" = "no"
4312 echo 'msgfmt program not found, disabling NLS !'
4314 USE_INCLUDED_LIBINTL=no
4322 support_postgresql=no
4323 support_smartalloc=yes
4324 support_readline=yes
4327 support_wx_console=no
4329 support_static_tools=no
4330 support_static_fd=no
4331 support_static_sd=no
4332 support_static_dir=no
4333 support_static_cons=no
4334 build_client_only=no
4340 # -------------------------------------------
4341 # gnome (default off)
4342 # -------------------------------------------
4343 # Check whether --enable-gnome or --disable-gnome was given.
4344 if test "${enable_gnome+set}" = set; then
4345 enableval="$enable_gnome"
4346 if test x$enableval = xyes; then
4352 if test x$support_gnome = xyes; then
4353 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4355 if test $pkg = 0; then
4356 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4357 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4358 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4359 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4364 GNOME_DIR=src/gnome2-console
4365 gnome_version="Version 2.x"
4378 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4379 if test "${with_gnome_includes+set}" = set; then
4380 withval="$with_gnome_includes"
4382 CFLAGS="$CFLAGS -I$withval"
4387 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4388 if test "${with_gnome_libs+set}" = set; then
4389 withval="$with_gnome_libs"
4391 LDFLAGS="$LDFLAGS -L$withval"
4392 gnome_prefix=$withval
4397 # Check whether --with-gnome or --without-gnome was given.
4398 if test "${with_gnome+set}" = set; then
4399 withval="$with_gnome"
4400 if test x$withval = xyes; then
4404 if test "x$withval" = xno; then
4408 LDFLAGS="$LDFLAGS -L$withval/lib"
4409 CFLAGS="$CFLAGS -I$withval/include"
4410 gnome_prefix=$withval/lib
4417 if test "x$want_gnome" = xyes; then
4419 # Extract the first word of "gnome-config", so it can be a program name with args.
4420 set dummy gnome-config; ac_word=$2
4421 echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 case $GNOME_CONFIG in
4428 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4449 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4451 if test -n "$GNOME_CONFIG"; then
4452 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4453 echo "${ECHO_T}$GNOME_CONFIG" >&6
4455 echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4459 if test "$GNOME_CONFIG" = "no"; then
4460 no_gnome_config="yes"
4462 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4463 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4464 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4465 echo "$as_me:$LINENO: result: yes" >&5
4466 echo "${ECHO_T}yes" >&6
4469 # Extract the first word of "orbit-config", so it can be a program name with args.
4470 set dummy orbit-config; ac_word=$2
4471 echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4473 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 case $ORBIT_CONFIG in
4478 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4499 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4501 if test -n "$ORBIT_CONFIG"; then
4502 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4503 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4505 echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6
4509 # Extract the first word of "orbit-idl", so it can be a program name with args.
4510 set dummy orbit-idl; ac_word=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4539 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4541 if test -n "$ORBIT_IDL"; then
4542 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4543 echo "${ECHO_T}$ORBIT_IDL" >&6
4545 echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4549 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4550 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4551 if test "${gnome_cv_orbit_found+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4556 gnome_cv_orbit_found=no
4558 gnome_cv_orbit_found=yes
4562 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4563 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4566 if test x$gnome_cv_orbit_found = xyes; then
4568 HAVE_ORBIT_FALSE='#'
4573 if test x$gnome_cv_orbit_found = xyes; then
4575 ORBIT_CFLAGS=`orbit-config --cflags client server`
4576 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4580 if test xfail = xfailure; then
4581 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4582 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4583 { (exit 1); exit 1; }; }
4587 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4588 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4589 if test "${gnome_cv_gnorba_found+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 gnome_cv_gnorba_found=no
4594 if test x$gnome_cv_orbit_found = xyes; then
4595 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4596 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4597 if test -n "$GNORBA_LIBS"; then
4598 gnome_cv_gnorba_found=yes
4603 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4604 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4607 if test x$gnome_cv_gnorba_found = xyes; then
4609 HAVE_GNORBA_FALSE='#'
4611 HAVE_GNORBA_TRUE='#'
4614 if test x$gnome_cv_orbit_found = xyes; then
4616 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4617 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4621 if test xfail = xfailure; then
4622 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4623 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4624 { (exit 1); exit 1; }; }
4628 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4629 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4630 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4631 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4632 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4633 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4634 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4637 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4639 no_gnome_config="yes"
4643 if test x$exec_prefix = xNONE; then
4644 if test x$prefix = xNONE; then
4645 gnome_prefix=$ac_default_prefix/lib
4647 gnome_prefix=$prefix/lib
4650 gnome_prefix=`eval echo \`echo $libdir\``
4653 if test "$no_gnome_config" = "yes"; then
4654 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4655 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4656 if test -f $gnome_prefix/gnomeConf.sh; then
4657 echo "$as_me:$LINENO: result: found" >&5
4658 echo "${ECHO_T}found" >&6
4659 echo "loading gnome configuration from" \
4660 "$gnome_prefix/gnomeConf.sh"
4661 . $gnome_prefix/gnomeConf.sh
4664 echo "$as_me:$LINENO: result: not found" >&5
4665 echo "${ECHO_T}not found" >&6
4666 if test xfail = xfail; then
4667 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4668 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4669 { (exit 1); exit 1; }; }
4678 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4679 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4683 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4684 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4685 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4688 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4689 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4690 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4693 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4694 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4695 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4697 echo "$as_me:$LINENO: result: unknown library" >&5
4698 echo "${ECHO_T}unknown library" >&6
4700 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4701 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4706 GNOME_DIR=src/gnome-console
4707 gnome_version="Version 1.4"
4713 # -------------------------------------------
4714 # wx-console (default off)
4715 # -------------------------------------------
4716 # Check whether --enable-wx-console or --disable-wx-console was given.
4717 if test "${enable_wx_console+set}" = set; then
4718 enableval="$enable_wx_console"
4719 if test x$enableval = xyes; then
4720 support_wx_console=yes
4725 if test x$support_wx_console = xyes; then
4726 abc=`$WXCONFIG --cppflags`
4728 if test $pkg = 0; then
4729 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4730 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4733 WX_DIR=src/wx-console
4736 echo "wx-config program not found. wx-console disabled."
4738 support_wx_console=no
4744 # -------------------------------------------
4745 # tray-monitor (default off)
4746 # -------------------------------------------
4747 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4748 if test "${enable_tray_monitor+set}" = set; then
4749 enableval="$enable_tray_monitor"
4750 if test x$enableval = xyes; then
4751 support_tray_monitor=yes
4756 if test x$support_tray_monitor = xyes; then
4757 abc=`$PKGCONFIG --exists gtk+-2.0`
4759 if test $pkg = 0; then
4760 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4761 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4764 TRAY_MONITOR_DIR=src/tray-monitor
4769 # -------------------------------------------
4770 # smartalloc (default off)
4771 # -------------------------------------------
4772 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4773 if test "${enable_smartalloc+set}" = set; then
4774 enableval="$enable_smartalloc"
4775 if test x$enableval = xno; then
4776 support_smartalloc=no
4780 if test x$support_smartalloc = xyes; then
4781 cat >>confdefs.h <<\_ACEOF
4782 #define SMARTALLOC 1
4787 # -------------------------------------------
4788 # static-tools (default off)
4789 # -------------------------------------------
4790 # Check whether --enable-static-tools or --disable-static-tools was given.
4791 if test "${enable_static_tools+set}" = set; then
4792 enableval="$enable_static_tools"
4793 if test x$enableval = xyes; then
4794 support_static_tools=yes
4799 if test x$support_static_tools = xyes; then
4800 TTOOL_LDFLAGS="-static"
4804 # -------------------------------------------
4805 # static-fd (default off)
4806 # -------------------------------------------
4807 # Check whether --enable-static-fd or --disable-static-fd was given.
4808 if test "${enable_static_fd+set}" = set; then
4809 enableval="$enable_static_fd"
4810 if test x$enableval = xyes; then
4811 support_static_fd=yes
4816 if test x$support_static_fd = xyes; then
4817 STATIC_FD="static-bacula-fd"
4821 # -------------------------------------------
4822 # static-sd (default off)
4823 # -------------------------------------------
4824 # Check whether --enable-static-sd or --disable-static-sd was given.
4825 if test "${enable_static_sd+set}" = set; then
4826 enableval="$enable_static_sd"
4827 if test x$enableval = xyes; then
4828 support_static_sd=yes
4833 if test x$support_static_sd = xyes; then
4834 STATIC_SD="static-bacula-sd"
4838 # -------------------------------------------
4839 # static-dir (default off)
4840 # -------------------------------------------
4841 # Check whether --enable-static-dir or --disable-static-dir was given.
4842 if test "${enable_static_dir+set}" = set; then
4843 enableval="$enable_static_dir"
4844 if test x$enableval = xyes; then
4845 support_static_dir=yes
4850 if test x$support_static_dir = xyes; then
4851 STATIC_DIR="static-bacula-dir"
4855 # -------------------------------------------
4856 # static-cons (default off)
4857 # -------------------------------------------
4858 # Check whether --enable-static-cons or --disable-static-cons was given.
4859 if test "${enable_static_cons+set}" = set; then
4860 enableval="$enable_static_cons"
4861 if test x$enableval = xyes; then
4862 support_static_cons=yes
4869 if test x$support_static_cons = xyes; then
4870 STATIC_CONS="static-bconsole"
4871 STATIC_GNOME_CONS="static-gnome-console"
4872 STATIC_WX_CONS="static-wx-console"
4878 # -------------------------------------------
4879 # client_only (default off)
4880 # -------------------------------------------
4881 # Check whether --enable-client-only or --disable-client-only was given.
4882 if test "${enable_client_only+set}" = set; then
4883 enableval="$enable_client_only"
4884 if test x$enableval = xyes; then
4885 build_client_only=yes
4890 if test x$build_client_only = xno; then
4897 # ---------------------------------------------------
4898 # Check for conio (Bacula readline substitute)(
4899 # ---------------------------------------------------
4900 # this allows you to turn it completely off
4901 # Check whether --enable-conio or --disable-conio was given.
4902 if test "${enable_conio+set}" = set; then
4903 enableval="$enable_conio"
4904 if test x$enableval = xno; then
4910 if test x$support_conio = xyes; then
4911 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4912 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4913 if test "${ac_cv_header_stdc+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 cat >conftest.$ac_ext <<_ACEOF
4917 #line $LINENO "configure"
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4936 rm -f conftest.$ac_objext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4938 (eval $ac_compile) 2>&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } &&
4942 { ac_try='test -s conftest.$ac_objext'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4948 ac_cv_header_stdc=yes
4950 echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4953 ac_cv_header_stdc=no
4955 rm -f conftest.$ac_objext conftest.$ac_ext
4957 if test $ac_cv_header_stdc = yes; then
4958 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4959 cat >conftest.$ac_ext <<_ACEOF
4960 #line $LINENO "configure"
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h. */
4969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4970 $EGREP "memchr" >/dev/null 2>&1; then
4973 ac_cv_header_stdc=no
4979 if test $ac_cv_header_stdc = yes; then
4980 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4981 cat >conftest.$ac_ext <<_ACEOF
4982 #line $LINENO "configure"
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4992 $EGREP "free" >/dev/null 2>&1; then
4995 ac_cv_header_stdc=no
5001 if test $ac_cv_header_stdc = yes; then
5002 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5003 if test "$cross_compiling" = yes; then
5006 cat >conftest.$ac_ext <<_ACEOF
5007 #line $LINENO "configure"
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5014 #if ((' ' & 0x0FF) == 0x020)
5015 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5016 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5018 # define ISLOWER(c) \
5019 (('a' <= (c) && (c) <= 'i') \
5020 || ('j' <= (c) && (c) <= 'r') \
5021 || ('s' <= (c) && (c) <= 'z'))
5022 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5025 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5030 for (i = 0; i < 256; i++)
5031 if (XOR (islower (i), ISLOWER (i))
5032 || toupper (i) != TOUPPER (i))
5037 rm -f conftest$ac_exeext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5039 (eval $ac_link) 2>&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; }; then
5050 echo "$as_me: program exited with status $ac_status" >&5
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5055 ac_cv_header_stdc=no
5057 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5061 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5062 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5063 if test $ac_cv_header_stdc = yes; then
5065 cat >>confdefs.h <<\_ACEOF
5066 #define STDC_HEADERS 1
5071 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5081 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5082 inttypes.h stdint.h unistd.h
5084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5085 echo "$as_me:$LINENO: checking for $ac_header" >&5
5086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 cat >conftest.$ac_ext <<_ACEOF
5091 #line $LINENO "configure"
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5097 $ac_includes_default
5099 #include <$ac_header>
5101 rm -f conftest.$ac_objext
5102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5103 (eval $ac_compile) 2>&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } &&
5107 { ac_try='test -s conftest.$ac_objext'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5113 eval "$as_ac_Header=yes"
5115 echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5118 eval "$as_ac_Header=no"
5120 rm -f conftest.$ac_objext conftest.$ac_ext
5122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5125 cat >>confdefs.h <<_ACEOF
5126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5134 if test "${ac_cv_header_termcap_h+set}" = set; then
5135 echo "$as_me:$LINENO: checking for termcap.h" >&5
5136 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5137 if test "${ac_cv_header_termcap_h+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5141 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5143 # Is the header compilable?
5144 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5145 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5146 cat >conftest.$ac_ext <<_ACEOF
5147 #line $LINENO "configure"
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5153 $ac_includes_default
5154 #include <termcap.h>
5156 rm -f conftest.$ac_objext
5157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5158 (eval $ac_compile) 2>&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } &&
5162 { ac_try='test -s conftest.$ac_objext'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; }; then
5168 ac_header_compiler=yes
5170 echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5173 ac_header_compiler=no
5175 rm -f conftest.$ac_objext conftest.$ac_ext
5176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5177 echo "${ECHO_T}$ac_header_compiler" >&6
5179 # Is the header present?
5180 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5181 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5182 cat >conftest.$ac_ext <<_ACEOF
5183 #line $LINENO "configure"
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5189 #include <termcap.h>
5191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5194 grep -v '^ *+' conftest.er1 >conftest.err
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } >/dev/null; then
5199 if test -s conftest.err; then
5200 ac_cpp_err=$ac_c_preproc_warn_flag
5207 if test -z "$ac_cpp_err"; then
5208 ac_header_preproc=yes
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5213 ac_header_preproc=no
5215 rm -f conftest.err conftest.$ac_ext
5216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5217 echo "${ECHO_T}$ac_header_preproc" >&6
5219 # So? What about this header?
5220 case $ac_header_compiler:$ac_header_preproc in
5222 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5223 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5224 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5225 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5228 ## ------------------------------------ ##
5229 ## Report this to bug-autoconf@gnu.org. ##
5230 ## ------------------------------------ ##
5233 sed "s/^/$as_me: WARNING: /" >&2
5236 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5237 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5238 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5239 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5240 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5241 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5244 ## ------------------------------------ ##
5245 ## Report this to bug-autoconf@gnu.org. ##
5246 ## ------------------------------------ ##
5249 sed "s/^/$as_me: WARNING: /" >&2
5252 echo "$as_me:$LINENO: checking for termcap.h" >&5
5253 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5254 if test "${ac_cv_header_termcap_h+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 ac_cv_header_termcap_h=$ac_header_preproc
5259 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5260 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5263 if test $ac_cv_header_termcap_h = yes; then
5264 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5265 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5266 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 ac_check_lib_save_LIBS=$LIBS
5270 LIBS="-ltermcap $LIBS"
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. */
5279 /* Override any gcc2 internal prototype to avoid an error. */
5283 /* We use char because int might match the return type of a gcc2
5284 builtin and then its argument prototype would still apply. */
5294 rm -f conftest.$ac_objext conftest$ac_exeext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5296 (eval $ac_link) 2>&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } &&
5300 { ac_try='test -s conftest$ac_exeext'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; }; then
5306 ac_cv_lib_termcap_tgetent=yes
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5311 ac_cv_lib_termcap_tgetent=no
5313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5314 LIBS=$ac_check_lib_save_LIBS
5316 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5317 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5318 if test $ac_cv_lib_termcap_tgetent = yes; then
5319 CONS_LIBS="-ltermcap"
5325 cat >>confdefs.h <<\_ACEOF
5326 #define HAVE_CONIO 1
5331 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5332 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5333 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5336 ac_check_lib_save_LIBS=$LIBS
5337 LIBS="-lncurses $LIBS"
5338 cat >conftest.$ac_ext <<_ACEOF
5339 #line $LINENO "configure"
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5346 /* Override any gcc2 internal prototype to avoid an error. */
5350 /* We use char because int might match the return type of a gcc2
5351 builtin and then its argument prototype would still apply. */
5361 rm -f conftest.$ac_objext conftest$ac_exeext
5362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5363 (eval $ac_link) 2>&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try='test -s conftest$ac_exeext'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
5373 ac_cv_lib_ncurses_tgetent=yes
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5378 ac_cv_lib_ncurses_tgetent=no
5380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5381 LIBS=$ac_check_lib_save_LIBS
5383 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5384 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5385 if test $ac_cv_lib_ncurses_tgetent = yes; then
5386 CONS_LIBS="-lncurses"
5392 cat >>confdefs.h <<\_ACEOF
5393 #define HAVE_CONIO 1
5398 echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5406 echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5413 # ---------------------------------------------------
5414 # Check for readline support/directory (default off)
5415 # ---------------------------------------------------
5416 # this allows you to turn it completely off
5417 # Check whether --enable-readline or --disable-readline was given.
5418 if test "${enable_readline+set}" = set; then
5419 enableval="$enable_readline"
5420 if test x$enableval = xno; then
5427 if test x$support_readline = xyes; then
5429 # Check whether --with-readline or --without-readline was given.
5430 if test "${with_readline+set}" = set; then
5431 withval="$with_readline"
5433 case "$with_readline" in
5436 if test "$with_readline" != "yes"; then
5437 CONS_INC="-I${with_readline}"
5438 CONS_LDFLAGS="-L$with_readline"
5440 with_readline="/usr/include/readline"
5442 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5444 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5445 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5452 # Is the header compilable?
5453 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5454 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5455 cat >conftest.$ac_ext <<_ACEOF
5456 #line $LINENO "configure"
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5462 $ac_includes_default
5463 #include <${with_readline}/readline.h>
5465 rm -f conftest.$ac_objext
5466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5467 (eval $ac_compile) 2>&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } &&
5471 { ac_try='test -s conftest.$ac_objext'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; }; then
5477 ac_header_compiler=yes
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5482 ac_header_compiler=no
5484 rm -f conftest.$ac_objext conftest.$ac_ext
5485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5486 echo "${ECHO_T}$ac_header_compiler" >&6
5488 # Is the header present?
5489 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5490 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5491 cat >conftest.$ac_ext <<_ACEOF
5492 #line $LINENO "configure"
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h. */
5498 #include <${with_readline}/readline.h>
5500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5503 grep -v '^ *+' conftest.er1 >conftest.err
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } >/dev/null; then
5508 if test -s conftest.err; then
5509 ac_cpp_err=$ac_c_preproc_warn_flag
5516 if test -z "$ac_cpp_err"; then
5517 ac_header_preproc=yes
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5522 ac_header_preproc=no
5524 rm -f conftest.err conftest.$ac_ext
5525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5526 echo "${ECHO_T}$ac_header_preproc" >&6
5528 # So? What about this header?
5529 case $ac_header_compiler:$ac_header_preproc in
5531 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5532 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5533 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5534 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5537 ## ------------------------------------ ##
5538 ## Report this to bug-autoconf@gnu.org. ##
5539 ## ------------------------------------ ##
5542 sed "s/^/$as_me: WARNING: /" >&2
5545 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5546 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5548 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5549 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5550 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5553 ## ------------------------------------ ##
5554 ## Report this to bug-autoconf@gnu.org. ##
5555 ## ------------------------------------ ##
5558 sed "s/^/$as_me: WARNING: /" >&2
5561 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5562 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 eval "$as_ac_Header=$ac_header_preproc"
5568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5573 cat >>confdefs.h <<\_ACEOF
5574 #define HAVE_READLINE 1
5577 CONS_LIBS="-lreadline -ltermcap"
5582 echo "readline.h not found. readline turned off ..."
5594 # check for standard readline library
5595 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5596 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5597 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5598 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5602 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5604 # Is the header compilable?
5605 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5606 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5607 cat >conftest.$ac_ext <<_ACEOF
5608 #line $LINENO "configure"
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h. */
5614 $ac_includes_default
5615 #include </usr/include/readline/readline.h>
5617 rm -f conftest.$ac_objext
5618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5619 (eval $ac_compile) 2>&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } &&
5623 { ac_try='test -s conftest.$ac_objext'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5629 ac_header_compiler=yes
5631 echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5634 ac_header_compiler=no
5636 rm -f conftest.$ac_objext conftest.$ac_ext
5637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5638 echo "${ECHO_T}$ac_header_compiler" >&6
5640 # Is the header present?
5641 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5642 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5643 cat >conftest.$ac_ext <<_ACEOF
5644 #line $LINENO "configure"
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 #include </usr/include/readline/readline.h>
5652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5655 grep -v '^ *+' conftest.er1 >conftest.err
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } >/dev/null; then
5660 if test -s conftest.err; then
5661 ac_cpp_err=$ac_c_preproc_warn_flag
5668 if test -z "$ac_cpp_err"; then
5669 ac_header_preproc=yes
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5674 ac_header_preproc=no
5676 rm -f conftest.err conftest.$ac_ext
5677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5678 echo "${ECHO_T}$ac_header_preproc" >&6
5680 # So? What about this header?
5681 case $ac_header_compiler:$ac_header_preproc in
5683 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5684 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5685 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5686 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5689 ## ------------------------------------ ##
5690 ## Report this to bug-autoconf@gnu.org. ##
5691 ## ------------------------------------ ##
5694 sed "s/^/$as_me: WARNING: /" >&2
5697 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5698 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5699 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5700 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5702 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5705 ## ------------------------------------ ##
5706 ## Report this to bug-autoconf@gnu.org. ##
5707 ## ------------------------------------ ##
5710 sed "s/^/$as_me: WARNING: /" >&2
5713 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5714 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5715 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5720 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5721 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5724 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5725 cat >>confdefs.h <<\_ACEOF
5726 #define HAVE_READLINE 1
5730 CONS_INC="-I/usr/include/readline"
5731 CONS_LIBS="-lreadline -ltermcap"
5735 # Did not find standard library, so try Bacula's default
5736 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5738 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5739 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5746 # Is the header compilable?
5747 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5748 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5749 cat >conftest.$ac_ext <<_ACEOF
5750 #line $LINENO "configure"
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 $ac_includes_default
5757 #include <${TOP_DIR}/depkgs/readline/readline.h>
5759 rm -f conftest.$ac_objext
5760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5761 (eval $ac_compile) 2>&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } &&
5765 { ac_try='test -s conftest.$ac_objext'
5766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; }; then
5771 ac_header_compiler=yes
5773 echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5776 ac_header_compiler=no
5778 rm -f conftest.$ac_objext conftest.$ac_ext
5779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5780 echo "${ECHO_T}$ac_header_compiler" >&6
5782 # Is the header present?
5783 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5784 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5785 cat >conftest.$ac_ext <<_ACEOF
5786 #line $LINENO "configure"
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h. */
5792 #include <${TOP_DIR}/depkgs/readline/readline.h>
5794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5797 grep -v '^ *+' conftest.er1 >conftest.err
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } >/dev/null; then
5802 if test -s conftest.err; then
5803 ac_cpp_err=$ac_c_preproc_warn_flag
5810 if test -z "$ac_cpp_err"; then
5811 ac_header_preproc=yes
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5816 ac_header_preproc=no
5818 rm -f conftest.err conftest.$ac_ext
5819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5820 echo "${ECHO_T}$ac_header_preproc" >&6
5822 # So? What about this header?
5823 case $ac_header_compiler:$ac_header_preproc in
5825 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5826 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5827 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5828 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5831 ## ------------------------------------ ##
5832 ## Report this to bug-autoconf@gnu.org. ##
5833 ## ------------------------------------ ##
5836 sed "s/^/$as_me: WARNING: /" >&2
5839 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5840 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5841 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5842 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5843 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5844 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5847 ## ------------------------------------ ##
5848 ## Report this to bug-autoconf@gnu.org. ##
5849 ## ------------------------------------ ##
5852 sed "s/^/$as_me: WARNING: /" >&2
5855 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5856 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 eval "$as_ac_Header=$ac_header_preproc"
5862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5867 cat >>confdefs.h <<\_ACEOF
5868 #define HAVE_READLINE 1
5872 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5873 CONS_LIBS="-lreadline -lhistory -ltermcap"
5874 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5875 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5879 echo "readline.h not found. readline turned off ..."
5905 # Minimal stuff for readline Makefile configuration
5908 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5909 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5910 if test "${ac_cv_header_stat_broken+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 cat >conftest.$ac_ext <<_ACEOF
5914 #line $LINENO "configure"
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 #include <sys/types.h>
5921 #include <sys/stat.h>
5923 #if defined(S_ISBLK) && defined(S_IFDIR)
5924 # if S_ISBLK (S_IFDIR)
5929 #if defined(S_ISBLK) && defined(S_IFCHR)
5930 # if S_ISBLK (S_IFCHR)
5935 #if defined(S_ISLNK) && defined(S_IFREG)
5936 # if S_ISLNK (S_IFREG)
5941 #if defined(S_ISSOCK) && defined(S_IFREG)
5942 # if S_ISSOCK (S_IFREG)
5948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5949 $EGREP "You lose" >/dev/null 2>&1; then
5950 ac_cv_header_stat_broken=yes
5952 ac_cv_header_stat_broken=no
5957 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5958 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5959 if test $ac_cv_header_stat_broken = yes; then
5961 cat >>confdefs.h <<\_ACEOF
5962 #define STAT_MACROS_BROKEN 1
5973 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5974 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5975 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5976 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 cat >conftest.$ac_ext <<_ACEOF
5981 #line $LINENO "configure"
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5987 #include <sys/types.h>
5999 rm -f conftest.$ac_objext
6000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6001 (eval $ac_compile) 2>&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } &&
6005 { ac_try='test -s conftest.$ac_objext'
6006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
6011 eval "$as_ac_Header=yes"
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6016 eval "$as_ac_Header=no"
6018 rm -f conftest.$ac_objext conftest.$ac_ext
6020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6023 cat >>confdefs.h <<_ACEOF
6024 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6027 ac_header_dirent=$ac_hdr; break
6031 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6032 if test $ac_header_dirent = dirent.h; then
6033 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6034 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6035 if test "${ac_cv_search_opendir+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 ac_func_search_save_LIBS=$LIBS
6039 ac_cv_search_opendir=no
6040 cat >conftest.$ac_ext <<_ACEOF
6041 #line $LINENO "configure"
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6048 /* Override any gcc2 internal prototype to avoid an error. */
6052 /* We use char because int might match the return type of a gcc2
6053 builtin and then its argument prototype would still apply. */
6063 rm -f conftest.$ac_objext conftest$ac_exeext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6065 (eval $ac_link) 2>&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } &&
6069 { ac_try='test -s conftest$ac_exeext'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
6075 ac_cv_search_opendir="none required"
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6082 if test "$ac_cv_search_opendir" = no; then
6083 for ac_lib in dir; do
6084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6085 cat >conftest.$ac_ext <<_ACEOF
6086 #line $LINENO "configure"
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6093 /* Override any gcc2 internal prototype to avoid an error. */
6097 /* We use char because int might match the return type of a gcc2
6098 builtin and then its argument prototype would still apply. */
6108 rm -f conftest.$ac_objext conftest$ac_exeext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110 (eval $ac_link) 2>&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -s conftest$ac_exeext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_cv_search_opendir="-l$ac_lib"
6123 echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6130 LIBS=$ac_func_search_save_LIBS
6132 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6133 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6134 if test "$ac_cv_search_opendir" != no; then
6135 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6140 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6141 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6142 if test "${ac_cv_search_opendir+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 ac_func_search_save_LIBS=$LIBS
6146 ac_cv_search_opendir=no
6147 cat >conftest.$ac_ext <<_ACEOF
6148 #line $LINENO "configure"
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6155 /* Override any gcc2 internal prototype to avoid an error. */
6159 /* We use char because int might match the return type of a gcc2
6160 builtin and then its argument prototype would still apply. */
6170 rm -f conftest.$ac_objext conftest$ac_exeext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172 (eval $ac_link) 2>&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try='test -s conftest$ac_exeext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_cv_search_opendir="none required"
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6189 if test "$ac_cv_search_opendir" = no; then
6191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6192 cat >conftest.$ac_ext <<_ACEOF
6193 #line $LINENO "configure"
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6200 /* Override any gcc2 internal prototype to avoid an error. */
6204 /* We use char because int might match the return type of a gcc2
6205 builtin and then its argument prototype would still apply. */
6215 rm -f conftest.$ac_objext conftest$ac_exeext
6216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6217 (eval $ac_link) 2>&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } &&
6221 { ac_try='test -s conftest$ac_exeext'
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; }; then
6227 ac_cv_search_opendir="-l$ac_lib"
6230 echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6237 LIBS=$ac_func_search_save_LIBS
6239 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6240 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6241 if test "$ac_cv_search_opendir" != no; then
6242 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6256 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6259 echo "$as_me:$LINENO: checking for $ac_func" >&5
6260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6261 if eval "test \"\${$as_ac_var+set}\" = set"; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 cat >conftest.$ac_ext <<_ACEOF
6265 #line $LINENO "configure"
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6271 /* System header to define __stub macros and hopefully few prototypes,
6272 which can conflict with char $ac_func (); below.
6273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6274 <limits.h> exists even on freestanding compilers. */
6276 # include <limits.h>
6278 # include <assert.h>
6280 /* Override any gcc2 internal prototype to avoid an error. */
6285 /* We use char because int might match the return type of a gcc2
6286 builtin and then its argument prototype would still apply. */
6288 /* The GNU C library defines this for functions which it implements
6289 to always fail with ENOSYS. Some functions are actually named
6290 something starting with __ and the normal name is an alias. */
6291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6294 char (*f) () = $ac_func;
6303 return f != $ac_func;
6308 rm -f conftest.$ac_objext conftest$ac_exeext
6309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6310 (eval $ac_link) 2>&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
6314 { ac_try='test -s conftest$ac_exeext'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; }; then
6320 eval "$as_ac_var=yes"
6322 echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6325 eval "$as_ac_var=no"
6327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6330 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6331 if test `eval echo '${'$as_ac_var'}'` = yes; then
6332 cat >>confdefs.h <<_ACEOF
6333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6341 for ac_func in nanosleep nl_langinfo
6343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6344 echo "$as_me:$LINENO: checking for $ac_func" >&5
6345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6346 if eval "test \"\${$as_ac_var+set}\" = set"; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 cat >conftest.$ac_ext <<_ACEOF
6350 #line $LINENO "configure"
6353 cat confdefs.h >>conftest.$ac_ext
6354 cat >>conftest.$ac_ext <<_ACEOF
6355 /* end confdefs.h. */
6356 /* System header to define __stub macros and hopefully few prototypes,
6357 which can conflict with char $ac_func (); below.
6358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6359 <limits.h> exists even on freestanding compilers. */
6361 # include <limits.h>
6363 # include <assert.h>
6365 /* Override any gcc2 internal prototype to avoid an error. */
6370 /* We use char because int might match the return type of a gcc2
6371 builtin and then its argument prototype would still apply. */
6373 /* The GNU C library defines this for functions which it implements
6374 to always fail with ENOSYS. Some functions are actually named
6375 something starting with __ and the normal name is an alias. */
6376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6379 char (*f) () = $ac_func;
6388 return f != $ac_func;
6393 rm -f conftest.$ac_objext conftest$ac_exeext
6394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6395 (eval $ac_link) 2>&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } &&
6399 { ac_try='test -s conftest$ac_exeext'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6405 eval "$as_ac_var=yes"
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6410 eval "$as_ac_var=no"
6412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6416 if test `eval echo '${'$as_ac_var'}'` = yes; then
6417 cat >>confdefs.h <<_ACEOF
6418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6425 for ac_header in varargs.h
6427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6429 echo "$as_me:$LINENO: checking for $ac_header" >&5
6430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6437 # Is the header compilable?
6438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6440 cat >conftest.$ac_ext <<_ACEOF
6441 #line $LINENO "configure"
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h. */
6447 $ac_includes_default
6448 #include <$ac_header>
6450 rm -f conftest.$ac_objext
6451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6452 (eval $ac_compile) 2>&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } &&
6456 { ac_try='test -s conftest.$ac_objext'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }; then
6462 ac_header_compiler=yes
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6467 ac_header_compiler=no
6469 rm -f conftest.$ac_objext conftest.$ac_ext
6470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6471 echo "${ECHO_T}$ac_header_compiler" >&6
6473 # Is the header present?
6474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6476 cat >conftest.$ac_ext <<_ACEOF
6477 #line $LINENO "configure"
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6483 #include <$ac_header>
6485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6488 grep -v '^ *+' conftest.er1 >conftest.err
6490 cat conftest.err >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } >/dev/null; then
6493 if test -s conftest.err; then
6494 ac_cpp_err=$ac_c_preproc_warn_flag
6501 if test -z "$ac_cpp_err"; then
6502 ac_header_preproc=yes
6504 echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6507 ac_header_preproc=no
6509 rm -f conftest.err conftest.$ac_ext
6510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6511 echo "${ECHO_T}$ac_header_preproc" >&6
6513 # So? What about this header?
6514 case $ac_header_compiler:$ac_header_preproc in
6516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6522 ## ------------------------------------ ##
6523 ## Report this to bug-autoconf@gnu.org. ##
6524 ## ------------------------------------ ##
6527 sed "s/^/$as_me: WARNING: /" >&2
6530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6538 ## ------------------------------------ ##
6539 ## Report this to bug-autoconf@gnu.org. ##
6540 ## ------------------------------------ ##
6543 sed "s/^/$as_me: WARNING: /" >&2
6546 echo "$as_me:$LINENO: checking for $ac_header" >&5
6547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 eval "$as_ac_Header=$ac_header_preproc"
6553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6558 cat >>confdefs.h <<_ACEOF
6559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6567 # End of readline/conio stuff
6568 # -----------------------------------------------------------------------
6571 # ---------------------------------------------------
6572 # Check for GMP support/directory
6573 # ---------------------------------------------------
6577 # [ --with-gmp[=DIR] Specify gmp library directory],
6579 # case "$with_gmp" in
6582 # if test "$with_gmp" != "yes"; then
6583 # GMP_INC="-I$with_gmp"
6585 # GMP_LDFLAGS="-L$with_gmp"
6587 # with_gmp="/usr/include"
6589 # AC_CHECK_HEADER($with_gmp/gmp.h,
6590 # [ AC_MSG_RESULT(yes)
6591 # AC_DEFINE(HAVE_GMP)
6595 # [ AC_MSG_ERROR([*** gmp library missing])
6601 # # check for standard gmp library
6602 # AC_CHECK_HEADER(/usr/include/gmp.h,
6603 # [ AC_MSG_RESULT(yes)
6604 # AC_DEFINE(HAVE_GMP)
6609 # # Did not find standard library, so use our own
6610 # AC_MSG_RESULT(yes)
6611 # AC_DEFINE(HAVE_GMP)
6614 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6616 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6617 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6623 #AC_SUBST(GMP_LDFLAGS)
6627 # -----------------------------------------------------------------------
6630 # ---------------------------------------------------
6631 # Check for CWEB support/directory
6632 # ---------------------------------------------------
6637 # [ --with-cweb[=DIR] Specify cweb library directory],
6639 # case "$with_cweb" in
6642 # if test "$with_cweb" != "yes"; then
6643 # CWEB_INC="-I$with_cweb"
6644 # CWEB_LIBS="-lcweb"
6645 # CWEB_LDFLAGS="-L$with_cweb"
6647 # with_cweb="/usr/include"
6649 # AC_CHECK_HEADER($with_cweb/cweb.h,
6650 # [ AC_MSG_RESULT(yes)
6651 # AC_DEFINE(HAVE_CWEB)
6652 # CWEB_LIBS="-lcweb"
6655 # [ AC_MSG_ERROR([*** cweb library missing])
6661 # # check for standard cweb library
6662 # AC_CHECK_HEADER(/usr/include/cweb.h,
6663 # [ AC_MSG_RESULT(yes)
6664 # AC_DEFINE(HAVE_CWEB)
6667 # CWEB_LIBS="-lcweb"
6669 # # Did not find starndard library, so use our own
6670 # AC_MSG_RESULT(yes)
6671 # AC_DEFINE(HAVE_CWEB)
6674 # CWEB=${TOP_DIR}/depkgs/cweb
6675 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6676 # CWEB_LIBS="-lcweb"
6677 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6678 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6684 #AC_SUBST(CWEB_LIBS)
6685 #AC_SUBST(CWEB_LDFLAGS)
6689 # -----------------------------------------------------------------------
6693 # -----------------------------------------------------------
6694 # Check whether user wants TCP wrappers support (default off)
6695 # -----------------------------------------------------------
6698 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6699 if test "${with_tcp_wrappers+set}" = set; then
6700 withval="$with_tcp_wrappers"
6702 if test "x$withval" != "xno" ; then
6704 LIBS="$saved_LIBS -lwrap"
6705 echo "$as_me:$LINENO: checking for libwrap" >&5
6706 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6707 cat >conftest.$ac_ext <<_ACEOF
6708 #line $LINENO "configure"
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h. */
6715 int deny_severity = 0;
6716 int allow_severity = 0;
6717 struct request_info *req;
6726 rm -f conftest.$ac_objext conftest$ac_exeext
6727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6728 (eval $ac_link) 2>&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } &&
6732 { ac_try='test -s conftest$ac_exeext'
6733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); }; }; then
6739 echo "$as_me:$LINENO: result: yes" >&5
6740 echo "${ECHO_T}yes" >&6
6741 cat >>confdefs.h <<\_ACEOF
6742 #define HAVE_LIBWRAP 1
6748 echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.$ac_ext >&5
6752 LIBS="$saved_LIBS -lwrap -lnsl"
6753 cat >conftest.$ac_ext <<_ACEOF
6754 #line $LINENO "configure"
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6761 int deny_severity = 0;
6762 int allow_severity = 0;
6763 struct request_info *req;
6772 rm -f conftest.$ac_objext conftest$ac_exeext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6774 (eval $ac_link) 2>&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } &&
6778 { ac_try='test -s conftest$ac_exeext'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; }; then
6785 echo "$as_me:$LINENO: result: yes" >&5
6786 echo "${ECHO_T}yes" >&6
6787 cat >>confdefs.h <<\_ACEOF
6788 #define HAVE_LIBWRAP 1
6794 echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6797 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6798 echo "$as_me: error: *** libwrap missing" >&2;}
6799 { (exit 1); exit 1; }; }
6802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6811 # ------------------------------------------
6812 # Where to place working dir
6813 # ------------------------------------------
6814 working_dir=`eval echo ${prefix}/var/bacula/working`
6816 # Check whether --with-working-dir or --without-working-dir was given.
6817 if test "${with_working_dir+set}" = set; then
6818 withval="$with_working_dir"
6820 if test "x$withval" != "xno" ; then
6821 working_dir=$withval
6830 # ------------------------------------------
6831 # Where to place scriptdir (script files)
6832 # ------------------------------------------
6833 scriptdir=`eval echo ${sysconfdir}`
6835 # Check whether --with-scriptdir or --without-scriptdir was given.
6836 if test "${with_scriptdir+set}" = set; then
6837 withval="$with_scriptdir"
6839 if test "x$withval" != "xno" ; then
6849 # ------------------------------------------
6850 # Where to send dump email
6851 # ------------------------------------------
6852 dump_email=root@localhost
6854 # Check whether --with-dump-email or --without-dump-email was given.
6855 if test "${with_dump_email+set}" = set; then
6856 withval="$with_dump_email"
6858 if test "x$withval" != "xno" ; then
6867 # ------------------------------------------
6868 # Where to send job email
6869 # ------------------------------------------
6870 job_email=root@localhost
6872 # Check whether --with-job-email or --without-job-email was given.
6873 if test "${with_job_email+set}" = set; then
6874 withval="$with_job_email"
6876 if test "x$withval" != "xno" ; then
6885 # ------------------------------------------
6886 # Where to find smtp host
6887 # ------------------------------------------
6890 # Check whether --with-smtp_host or --without-smtp_host was given.
6891 if test "${with_smtp_host+set}" = set; then
6892 withval="$with_smtp_host"
6894 if test "x$withval" != "xno" ; then
6904 # ------------------------------------
6905 # Where to place pid files
6906 # ------------------------------------
6909 # Check whether --with-pid-dir or --without-pid-dir was given.
6910 if test "${with_pid_dir+set}" = set; then
6911 withval="$with_pid_dir"
6913 if test "x$withval" != "xno" ; then
6920 cat >>confdefs.h <<_ACEOF
6921 #define _PATH_BACULA_PIDDIR "$piddir"
6927 # ------------------------------------
6928 # Where to place subsys "lock file"
6929 # ------------------------------------
6930 subsysdir=/var/run/subsys
6932 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6933 if test "${with_subsys_dir+set}" = set; then
6934 withval="$with_subsys_dir"
6936 if test "x$withval" != "xno" ; then
6947 # ------------------------------------
6948 # Where to start assigning ports
6949 # ------------------------------------
6952 # Check whether --with-baseport or --without-baseport was given.
6953 if test "${with_baseport+set}" = set; then
6954 withval="$with_baseport"
6956 if test "x$withval" != "xno" ; then
6964 dir_port=`expr $baseport`
6965 fd_port=`expr $baseport + 1`
6966 sd_port=`expr $fd_port + 1`
6973 # ------------------------------------------
6974 # Generate passwords
6975 # ------------------------------------------
6978 # Check whether --with-dir-password or --without-dir-password was given.
6979 if test "${with_dir_password+set}" = set; then
6980 withval="$with_dir_password"
6982 if test "x$withval" != "xno" ; then
6983 dir_password=$withval
6989 if test "x$dir_password" = "x" ; then
6990 if test "x$OPENSSL" = "xnone" ; then
6991 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6992 key=`autoconf/randpass 33`
6994 key=`openssl rand -base64 33`
7001 # Check whether --with-fd-password or --without-fd-password was given.
7002 if test "${with_fd_password+set}" = set; then
7003 withval="$with_fd_password"
7005 if test "x$withval" != "xno" ; then
7006 fd_password=$withval
7012 if test "x$fd_password" = "x" ; then
7013 if test "x$OPENSSL" = "xnone" ; then
7014 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7015 key=`autoconf/randpass 37`
7017 key=`openssl rand -base64 33`
7024 # Check whether --with-sd-password or --without-sd-password was given.
7025 if test "${with_sd_password+set}" = set; then
7026 withval="$with_sd_password"
7028 if test "x$withval" != "xno" ; then
7029 sd_password=$withval
7035 if test "x$sd_password" = "x" ; then
7036 if test "x$OPENSSL" = "xnone" ; then
7037 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7038 key=`autoconf/randpass 41`
7040 key=`openssl rand -base64 33`
7052 # Handle users and groups for each daemon
7056 # Check whether --with-dir_user or --without-dir_user was given.
7057 if test "${with_dir_user+set}" = set; then
7058 withval="$with_dir_user"
7060 if test "x$withval" != "x" ; then
7069 # Check whether --with-dir_group or --without-dir_group was given.
7070 if test "${with_dir_group+set}" = set; then
7071 withval="$with_dir_group"
7073 if test "x$withval" != "x" ; then
7082 # Check whether --with-sd_user or --without-sd_user was given.
7083 if test "${with_sd_user+set}" = set; then
7084 withval="$with_sd_user"
7086 if test "x$withval" != "x" ; then
7095 # Check whether --with-sd_group or --without-sd_group was given.
7096 if test "${with_sd_group+set}" = set; then
7097 withval="$with_sd_group"
7099 if test "x$withval" != "x" ; then
7108 # Check whether --with-fd_user or --without-fd_user was given.
7109 if test "${with_fd_user+set}" = set; then
7110 withval="$with_fd_user"
7112 if test "x$withval" != "x" ; then
7121 # Check whether --with-fd_group or --without-fd_group was given.
7122 if test "${with_fd_group+set}" = set; then
7123 withval="$with_fd_group"
7125 if test "x$withval" != "x" ; then
7143 # allow setting default executable permissions
7147 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7148 if test "${with_sbin_perm+set}" = set; then
7149 withval="$with_sbin_perm"
7151 if test "x$withval" != "x" ; then
7160 # ------------------------------------------------
7161 # Bacula check for various SQL database engines
7162 # ------------------------------------------------
7165 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7166 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7168 # Check whether --with-postgresql or --without-postgresql was given.
7169 if test "${with_postgresql+set}" = set; then
7170 withval="$with_postgresql"
7172 if test "$withval" != "no"; then
7173 if test "$db_found" = "yes"; then
7174 echo "$as_me:$LINENO: result: error" >&5
7175 echo "${ECHO_T}error" >&6
7176 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7177 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7178 { (exit 1); exit 1; }; };
7180 if test "$withval" = "yes"; then
7181 if test -f /usr/local/include/libpq-fe.h; then
7182 POSTGRESQL_INCDIR=/usr/local/include
7183 POSTGRESQL_LIBDIR=/usr/local/lib
7184 POSTGRESQL_BINDIR=/usr/local/bin
7185 elif test -f /usr/include/libpq-fe.h; then
7186 POSTGRESQL_INCDIR=/usr/include
7187 POSTGRESQL_LIBDIR=/usr/lib
7188 POSTGRESQL_BINDIR=/usr/bin
7189 elif test -f /usr/include/pgsql/libpq-fe.h; then
7190 POSTGRESQL_INCDIR=/usr/include/pgsql
7191 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7192 POSTGRESQL_BINDIR=/usr/bin
7193 elif test -f /usr/include/postgresql/libpq-fe.h; then
7194 POSTGRESQL_INCDIR=/usr/include/postgresql
7195 POSTGRESQL_LIBDIR=/usr/lib/postgresql
7196 POSTGRESQL_BINDIR=/usr/bin
7198 echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6
7200 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7201 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7202 { (exit 1); exit 1; }; }
7204 elif test -f $withval/include/libpq-fe.h; then
7205 POSTGRESQL_INCDIR=$withval/include
7206 POSTGRESQL_LIBDIR=$withval/lib
7207 POSTGRESQL_BINDIR=$withval/bin
7209 echo "$as_me:$LINENO: result: no" >&5
7210 echo "${ECHO_T}no" >&6
7211 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7212 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7213 { (exit 1); exit 1; }; }
7215 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7216 echo "$as_me:$LINENO: checking for crypt" >&5
7217 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7218 if test "${ac_cv_func_crypt+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 cat >conftest.$ac_ext <<_ACEOF
7222 #line $LINENO "configure"
7225 cat confdefs.h >>conftest.$ac_ext
7226 cat >>conftest.$ac_ext <<_ACEOF
7227 /* end confdefs.h. */
7228 /* System header to define __stub macros and hopefully few prototypes,
7229 which can conflict with char crypt (); below.
7230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7231 <limits.h> exists even on freestanding compilers. */
7233 # include <limits.h>
7235 # include <assert.h>
7237 /* Override any gcc2 internal prototype to avoid an error. */
7242 /* We use char because int might match the return type of a gcc2
7243 builtin and then its argument prototype would still apply. */
7245 /* The GNU C library defines this for functions which it implements
7246 to always fail with ENOSYS. Some functions are actually named
7247 something starting with __ and the normal name is an alias. */
7248 #if defined (__stub_crypt) || defined (__stub___crypt)
7251 char (*f) () = crypt;
7265 rm -f conftest.$ac_objext conftest$ac_exeext
7266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7267 (eval $ac_link) 2>&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } &&
7271 { ac_try='test -s conftest$ac_exeext'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7277 ac_cv_func_crypt=yes
7279 echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7286 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7287 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7288 if test $ac_cv_func_crypt = yes; then
7291 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7292 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7293 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 ac_check_lib_save_LIBS=$LIBS
7297 LIBS="-lcrypt $LIBS"
7298 cat >conftest.$ac_ext <<_ACEOF
7299 #line $LINENO "configure"
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7306 /* Override any gcc2 internal prototype to avoid an error. */
7310 /* We use char because int might match the return type of a gcc2
7311 builtin and then its argument prototype would still apply. */
7321 rm -f conftest.$ac_objext conftest$ac_exeext
7322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7323 (eval $ac_link) 2>&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } &&
7327 { ac_try='test -s conftest$ac_exeext'
7328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }; }; then
7333 ac_cv_lib_crypt_crypt=yes
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7338 ac_cv_lib_crypt_crypt=no
7340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7341 LIBS=$ac_check_lib_save_LIBS
7343 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7344 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7345 if test $ac_cv_lib_crypt_crypt = yes; then
7346 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7351 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7352 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7353 SQL_BINDIR=$POSTGRESQL_BINDIR
7354 cat >>confdefs.h <<\_ACEOF
7355 #define HAVE_POSTGRESQL 1
7358 echo "$as_me:$LINENO: result: yes" >&5
7359 echo "${ECHO_T}yes" >&6
7361 support_postgresql=yes
7365 echo "$as_me:$LINENO: result: no" >&5
7366 echo "${ECHO_T}no" >&6
7371 echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6
7383 echo "$as_me:$LINENO: checking for MySQL support" >&5
7384 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7386 # Check whether --with-mysql or --without-mysql was given.
7387 if test "${with_mysql+set}" = set; then
7388 withval="$with_mysql"
7390 if test "$withval" != "no"; then
7391 if test "$withval" = "yes"; then
7392 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7393 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7394 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7395 MYSQL_BINDIR=/usr/local/mysql/bin
7396 elif test -f /usr/include/mysql/mysql.h; then
7397 MYSQL_INCDIR=/usr/include/mysql
7398 MYSQL_LIBDIR=/usr/lib/mysql
7399 MYSQL_BINDIR=/usr/bin
7400 elif test -f /usr/include/mysql.h; then
7401 MYSQL_INCDIR=/usr/include
7402 MYSQL_LIBDIR=/usr/lib
7403 MYSQL_BINDIR=/usr/bin
7404 elif test -f /usr/local/include/mysql/mysql.h; then
7405 MYSQL_INCDIR=/usr/local/include/mysql
7406 MYSQL_LIBDIR=/usr/local/lib/mysql
7407 MYSQL_BINDIR=/usr/local/bin
7408 elif test -f /usr/local/include/mysql.h; then
7409 MYSQL_INCDIR=/usr/local/include
7410 MYSQL_LIBDIR=/usr/local/lib
7411 MYSQL_BINDIR=/usr/local/bin
7413 echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6
7415 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7416 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7417 { (exit 1); exit 1; }; }
7420 if test -f $withval/include/mysql/mysql.h; then
7421 MYSQL_INCDIR=$withval/include/mysql
7422 MYSQL_LIBDIR=$withval/lib/mysql
7423 MYSQL_BINDIR=$withval/bin
7424 elif test -f $withval/include/mysql.h; then
7425 MYSQL_INCDIR=$withval/include
7426 MYSQL_LIBDIR=$withval/lib
7427 MYSQL_BINDIR=$withval/bin
7429 echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6
7431 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7432 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7433 { (exit 1); exit 1; }; }
7436 SQL_INCLUDE=-I$MYSQL_INCDIR
7437 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7438 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7439 cat >>confdefs.h <<\_ACEOF
7440 #define HAVE_THREAD_SAFE_MYSQL 1
7444 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7446 SQL_BINDIR=$MYSQL_BINDIR
7448 cat >>confdefs.h <<\_ACEOF
7449 #define HAVE_MYSQL 1
7452 echo "$as_me:$LINENO: result: yes" >&5
7453 echo "${ECHO_T}yes" >&6
7460 echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6
7468 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7469 if test "${with_embedded_mysql+set}" = set; then
7470 withval="$with_embedded_mysql"
7472 if test "$withval" != "no"; then
7473 if test "$withval" = "yes"; then
7474 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7475 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7476 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7477 MYSQL_BINDIR=/usr/local/mysql/bin
7478 elif test -f /usr/include/mysql/mysql.h; then
7479 MYSQL_INCDIR=/usr/include/mysql
7480 MYSQL_LIBDIR=/usr/lib/mysql
7481 MYSQL_BINDIR=/usr/bin
7482 elif test -f /usr/include/mysql.h; then
7483 MYSQL_INCDIR=/usr/include
7484 MYSQL_LIBDIR=/usr/lib
7485 MYSQL_BINDIR=/usr/bin
7486 elif test -f /usr/local/include/mysql/mysql.h; then
7487 MYSQL_INCDIR=/usr/local/include/mysql
7488 MYSQL_LIBDIR=/usr/local/lib/mysql
7489 MYSQL_BINDIR=/usr/local/bin
7490 elif test -f /usr/local/include/mysql.h; then
7491 MYSQL_INCDIR=/usr/local/include
7492 MYSQL_LIBDIR=/usr/local/lib
7493 MYSQL_BINDIR=/usr/local/bin
7495 echo "$as_me:$LINENO: result: no" >&5
7496 echo "${ECHO_T}no" >&6
7497 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7498 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7499 { (exit 1); exit 1; }; }
7502 if test -f $withval/include/mysql/mysql.h; then
7503 MYSQL_INCDIR=$withval/include/mysql
7504 MYSQL_LIBDIR=$withval/lib/mysql
7505 MYSQL_BINDIR=$withval/bin
7506 elif test -f $withval/include/mysql.h; then
7507 MYSQL_INCDIR=$withval/include
7508 MYSQL_LIBDIR=$withval/lib
7509 MYSQL_BINDIR=$withval/bin
7511 echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6
7513 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7514 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7515 { (exit 1); exit 1; }; }
7518 SQL_INCLUDE=-I$MYSQL_INCDIR
7519 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7520 SQL_BINDIR=$MYSQL_BINDIR
7522 cat >>confdefs.h <<\_ACEOF
7523 #define HAVE_MYSQL 1
7526 cat >>confdefs.h <<\_ACEOF
7527 #define HAVE_EMBEDDED_MYSQL 1
7530 echo "$as_me:$LINENO: result: yes" >&5
7531 echo "${ECHO_T}yes" >&6
7538 echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6
7554 echo "$as_me:$LINENO: checking for SQLite support" >&5
7555 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7557 # Check whether --with-sqlite or --without-sqlite was given.
7558 if test "${with_sqlite+set}" = set; then
7559 withval="$with_sqlite"
7561 if test "$withval" != "no"; then
7562 if test "$withval" = "yes"; then
7563 if test -f /usr/local/include/sqlite.h; then
7564 SQLITE_INCDIR=/usr/local/include
7565 SQLITE_LIBDIR=/usr/local/lib
7566 SQLITE_BINDIR=/usr/local/bin
7567 elif test -f /usr/include/sqlite.h; then
7568 SQLITE_INCDIR=/usr/include
7569 SQLITE_LIBDIR=/usr/lib
7570 SQLITE_BINDIR=/usr/bin
7572 echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6
7574 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7575 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7576 { (exit 1); exit 1; }; }
7579 if test -f $withval/sqlite.h; then
7580 SQLITE_INCDIR=$withval
7581 SQLITE_LIBDIR=$withval
7582 SQLITE_BINDIR=$withval
7584 echo "$as_me:$LINENO: result: no" >&5
7585 echo "${ECHO_T}no" >&6
7586 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7587 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7588 { (exit 1); exit 1; }; }
7591 SQL_INCLUDE=-I$SQLITE_INCDIR
7592 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7593 SQL_BINDIR=$SQLITE_BINDIR
7595 cat >>confdefs.h <<\_ACEOF
7596 #define HAVE_SQLITE 1
7599 echo "$as_me:$LINENO: result: yes" >&5
7600 echo "${ECHO_T}yes" >&6
7607 echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6
7613 echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6
7626 cat >>confdefs.h <<\_ACEOF
7627 #define PROTOTYPES 1
7631 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
7632 if test -z "$CCOPTS"; then
7633 CCOPTS='-g -O2 -Wall'
7641 largefile_support="no"
7643 # Check whether --enable-largefile or --disable-largefile was given.
7644 if test "${enable_largefile+set}" = set; then
7645 enableval="$enable_largefile"
7648 if test "$enable_largefile" != no; then
7649 if test -n "$ac_tool_prefix"; then
7650 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7651 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7652 echo "$as_me:$LINENO: checking for $ac_word" >&5
7653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7654 if test "${ac_cv_prog_GETCONF+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 if test -n "$GETCONF"; then
7658 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7667 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 GETCONF=$ac_cv_prog_GETCONF
7677 if test -n "$GETCONF"; then
7678 echo "$as_me:$LINENO: result: $GETCONF" >&5
7679 echo "${ECHO_T}$GETCONF" >&6
7681 echo "$as_me:$LINENO: result: no" >&5
7682 echo "${ECHO_T}no" >&6
7686 if test -z "$ac_cv_prog_GETCONF"; then
7687 ac_ct_GETCONF=$GETCONF
7688 # Extract the first word of "getconf", so it can be a program name with args.
7689 set dummy getconf; ac_word=$2
7690 echo "$as_me:$LINENO: checking for $ac_word" >&5
7691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7692 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 if test -n "$ac_ct_GETCONF"; then
7696 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7705 ac_cv_prog_ac_ct_GETCONF="getconf"
7706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7714 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7715 if test -n "$ac_ct_GETCONF"; then
7716 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7717 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7719 echo "$as_me:$LINENO: result: no" >&5
7720 echo "${ECHO_T}no" >&6
7723 GETCONF=$ac_ct_GETCONF
7725 GETCONF="$ac_cv_prog_GETCONF"
7728 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7729 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7730 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
7733 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7734 ac_cv_sys_largefile_CFLAGS=no
7736 # IRIX 6.2 and later require cc -n32.
7737 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7738 if test "$GCC" != yes; then
7739 ac_cv_sys_largefile_CFLAGS=-n32
7742 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7743 cat >conftest.$ac_ext <<_ACEOF
7744 #line $LINENO "configure"
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h. */
7759 rm -f conftest.$ac_objext conftest$ac_exeext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7761 (eval $ac_link) 2>&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } &&
7765 { ac_try='test -s conftest$ac_exeext'
7766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; }; then
7773 echo "$as_me: failed program was:" >&5
7774 sed 's/^/| /' conftest.$ac_ext >&5
7776 ac_cv_sys_largefile_CFLAGS=no
7778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7783 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7784 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7785 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7786 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7787 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7791 ac_cv_sys_largefile_LDFLAGS=no
7795 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7796 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7797 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7798 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7799 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7803 ac_cv_sys_largefile_LIBS=no
7807 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7808 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7810 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7813 -D_FILE_OFFSET_BITS=*) ;;
7814 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7815 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7821 '') CPPFLAGS="$ac_flag" ;;
7822 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7830 '') CFLAGS="$ac_flag" ;;
7831 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7836 case "$ac_cv_sys_largefile_LDFLAGS" in
7840 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7841 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7844 case "$ac_cv_sys_largefile_LIBS" in
7848 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7849 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7852 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7853 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7854 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 ac_cv_sys_file_offset_bits=no
7859 # HP-UX 10.20 and later
7860 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7861 ac_cv_sys_file_offset_bits=64 ;;
7863 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7865 -D_FILE_OFFSET_BITS)
7866 ac_cv_sys_file_offset_bits=1 ;;
7867 -D_FILE_OFFSET_BITS=*)
7868 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7873 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7874 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7875 if test "$ac_cv_sys_file_offset_bits" != no; then
7877 cat >>confdefs.h <<_ACEOF
7878 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7882 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7883 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7884 if test "${ac_cv_sys_largefile_source+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 ac_cv_sys_largefile_source=no
7889 # HP-UX 10.20 and later
7890 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7891 ac_cv_sys_largefile_source=1 ;;
7893 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7895 -D_LARGEFILE_SOURCE)
7896 ac_cv_sys_largefile_source=1 ;;
7897 -D_LARGEFILE_SOURCE=*)
7898 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7903 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7904 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7905 if test "$ac_cv_sys_largefile_source" != no; then
7907 cat >>confdefs.h <<_ACEOF
7908 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7912 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7913 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7914 if test "${ac_cv_sys_large_files+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 ac_cv_sys_large_files=no
7920 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7921 ac_cv_sys_large_files=1 ;;
7923 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7926 ac_cv_sys_large_files=1 ;;
7928 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7933 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7934 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7935 if test "$ac_cv_sys_large_files" != no; then
7937 cat >>confdefs.h <<_ACEOF
7938 #define _LARGE_FILES $ac_cv_sys_large_files
7946 echo "$as_me:$LINENO: checking for X" >&5
7947 echo $ECHO_N "checking for X... $ECHO_C" >&6
7950 # Check whether --with-x or --without-x was given.
7951 if test "${with_x+set}" = set; then
7955 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7956 if test "x$with_x" = xno; then
7957 # The user explicitly disabled X.
7960 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7961 # Both variables are already set.
7964 if test "${ac_cv_have_x+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7967 # One or both of the vars are not set, and there is no cached value.
7968 ac_x_includes=no ac_x_libraries=no
7970 if mkdir conftest.dir; then
7972 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7973 cat >Imakefile <<'_ACEOF'
7975 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7977 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7978 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7979 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7980 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7981 for ac_extension in a so sl; do
7982 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7983 test -f $ac_im_libdir/libX11.$ac_extension; then
7984 ac_im_usrlibdir=$ac_im_libdir; break
7987 # Screen out bogus values from the imake configuration. They are
7988 # bogus both because they are the default anyway, and because
7989 # using them would break gcc on systems where it needs fixed includes.
7990 case $ac_im_incroot in
7992 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7994 case $ac_im_usrlibdir in
7996 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8003 # Standard set of common directories for X headers.
8004 # Check X11 before X11Rn because it is often a symlink to the current release.
8016 /usr/local/X11/include
8017 /usr/local/X11R6/include
8018 /usr/local/X11R5/include
8019 /usr/local/X11R4/include
8021 /usr/local/include/X11
8022 /usr/local/include/X11R6
8023 /usr/local/include/X11R5
8024 /usr/local/include/X11R4
8028 /usr/XFree86/include/X11
8032 /usr/unsupported/include
8034 /usr/local/x11r5/include
8035 /usr/lpp/Xamples/include
8037 /usr/openwin/include
8038 /usr/openwin/share/include'
8040 if test "$ac_x_includes" = no; then
8041 # Guess where to find include files, by looking for Intrinsic.h.
8042 # First, try using that file with no special directory specified.
8043 cat >conftest.$ac_ext <<_ACEOF
8044 #line $LINENO "configure"
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8050 #include <X11/Intrinsic.h>
8052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8055 grep -v '^ *+' conftest.er1 >conftest.err
8057 cat conftest.err >&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); } >/dev/null; then
8060 if test -s conftest.err; then
8061 ac_cpp_err=$ac_c_preproc_warn_flag
8068 if test -z "$ac_cpp_err"; then
8069 # We can compile using X headers with no special include directory.
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8075 for ac_dir in $ac_x_header_dirs; do
8076 if test -r "$ac_dir/X11/Intrinsic.h"; then
8077 ac_x_includes=$ac_dir
8082 rm -f conftest.err conftest.$ac_ext
8083 fi # $ac_x_includes = no
8085 if test "$ac_x_libraries" = no; then
8086 # Check for the libraries.
8087 # See if we find them without any special options.
8088 # Don't add to $LIBS permanently.
8091 cat >conftest.$ac_ext <<_ACEOF
8092 #line $LINENO "configure"
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8098 #include <X11/Intrinsic.h>
8107 rm -f conftest.$ac_objext conftest$ac_exeext
8108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8109 (eval $ac_link) 2>&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } &&
8113 { ac_try='test -s conftest$ac_exeext'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; }; then
8120 # We can link X programs with no special library path.
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8127 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8129 # Don't even attempt the hair of trying to link an X program!
8130 for ac_extension in a so sl; do
8131 if test -r $ac_dir/libXt.$ac_extension; then
8132 ac_x_libraries=$ac_dir
8138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8139 fi # $ac_x_libraries = no
8141 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8142 # Didn't find X anywhere. Cache the known absence of X.
8143 ac_cv_have_x="have_x=no"
8145 # Record where we found X for the cache.
8146 ac_cv_have_x="have_x=yes \
8147 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8152 eval "$ac_cv_have_x"
8155 if test "$have_x" != yes; then
8156 echo "$as_me:$LINENO: result: $have_x" >&5
8157 echo "${ECHO_T}$have_x" >&6
8160 # If each of the values was on the command line, it overrides each guess.
8161 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8162 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8163 # Update the cache value to reflect the command line values.
8164 ac_cv_have_x="have_x=yes \
8165 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8166 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8167 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8170 if test "$no_x" = yes; then
8171 # Not all programs may use this symbol, but it does not hurt to define it.
8173 cat >>confdefs.h <<\_ACEOF
8174 #define X_DISPLAY_MISSING 1
8177 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8179 if test -n "$x_includes"; then
8180 X_CFLAGS="$X_CFLAGS -I$x_includes"
8183 # It would also be nice to do this for all -L options, not just this one.
8184 if test -n "$x_libraries"; then
8185 X_LIBS="$X_LIBS -L$x_libraries"
8186 # For Solaris; some versions of Sun CC require a space after -R and
8187 # others require no space. Words are not sufficient . . . .
8188 case `(uname -sr) 2>/dev/null` in
8190 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8191 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8192 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8193 cat >conftest.$ac_ext <<_ACEOF
8194 #line $LINENO "configure"
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8211 (eval $ac_link) 2>&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } &&
8215 { ac_try='test -s conftest$ac_exeext'
8216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; }; then
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8229 if test $ac_R_nospace = yes; then
8230 echo "$as_me:$LINENO: result: no" >&5
8231 echo "${ECHO_T}no" >&6
8232 X_LIBS="$X_LIBS -R$x_libraries"
8234 LIBS="$ac_xsave_LIBS -R $x_libraries"
8235 cat >conftest.$ac_ext <<_ACEOF
8236 #line $LINENO "configure"
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8251 rm -f conftest.$ac_objext conftest$ac_exeext
8252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8253 (eval $ac_link) 2>&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } &&
8257 { ac_try='test -s conftest$ac_exeext'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8271 if test $ac_R_space = yes; then
8272 echo "$as_me:$LINENO: result: yes" >&5
8273 echo "${ECHO_T}yes" >&6
8274 X_LIBS="$X_LIBS -R $x_libraries"
8276 echo "$as_me:$LINENO: result: neither works" >&5
8277 echo "${ECHO_T}neither works" >&6
8284 # Check for system-dependent libraries X programs must link with.
8285 # Do this before checking for the system-independent R6 libraries
8286 # (-lICE), since we may need -lsocket or whatever for X linking.
8288 if test "$ISC" = yes; then
8289 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8291 # Martyn Johnson says this is needed for Ultrix, if the X
8292 # libraries were built with DECnet support. And Karl Berry says
8293 # the Alpha needs dnet_stub (dnet does not exist).
8294 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8295 cat >conftest.$ac_ext <<_ACEOF
8296 #line $LINENO "configure"
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8303 /* Override any gcc2 internal prototype to avoid an error. */
8307 /* We use char because int might match the return type of a gcc2
8308 builtin and then its argument prototype would still apply. */
8309 char XOpenDisplay ();
8318 rm -f conftest.$ac_objext conftest$ac_exeext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320 (eval $ac_link) 2>&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } &&
8324 { ac_try='test -s conftest$ac_exeext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8335 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8336 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8337 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8340 ac_check_lib_save_LIBS=$LIBS
8342 cat >conftest.$ac_ext <<_ACEOF
8343 #line $LINENO "configure"
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8350 /* Override any gcc2 internal prototype to avoid an error. */
8354 /* We use char because int might match the return type of a gcc2
8355 builtin and then its argument prototype would still apply. */
8365 rm -f conftest.$ac_objext conftest$ac_exeext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8367 (eval $ac_link) 2>&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try='test -s conftest$ac_exeext'
8372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 ac_cv_lib_dnet_dnet_ntoa=yes
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 ac_cv_lib_dnet_dnet_ntoa=no
8384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8385 LIBS=$ac_check_lib_save_LIBS
8387 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8388 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8389 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8390 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8393 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8394 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8395 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8396 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8399 ac_check_lib_save_LIBS=$LIBS
8400 LIBS="-ldnet_stub $LIBS"
8401 cat >conftest.$ac_ext <<_ACEOF
8402 #line $LINENO "configure"
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8409 /* Override any gcc2 internal prototype to avoid an error. */
8413 /* We use char because int might match the return type of a gcc2
8414 builtin and then its argument prototype would still apply. */
8424 rm -f conftest.$ac_objext conftest$ac_exeext
8425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8426 (eval $ac_link) 2>&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } &&
8430 { ac_try='test -s conftest$ac_exeext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8441 ac_cv_lib_dnet_stub_dnet_ntoa=no
8443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8444 LIBS=$ac_check_lib_save_LIBS
8446 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8447 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8448 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8449 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8455 LIBS="$ac_xsave_LIBS"
8457 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8458 # to get the SysV transport functions.
8459 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8461 # The nsl library prevents programs from opening the X display
8462 # on Irix 5.2, according to T.E. Dickey.
8463 # The functions gethostbyname, getservbyname, and inet_addr are
8464 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8465 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8466 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8467 if test "${ac_cv_func_gethostbyname+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 cat >conftest.$ac_ext <<_ACEOF
8471 #line $LINENO "configure"
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h. */
8477 /* System header to define __stub macros and hopefully few prototypes,
8478 which can conflict with char gethostbyname (); below.
8479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8480 <limits.h> exists even on freestanding compilers. */
8482 # include <limits.h>
8484 # include <assert.h>
8486 /* Override any gcc2 internal prototype to avoid an error. */
8491 /* We use char because int might match the return type of a gcc2
8492 builtin and then its argument prototype would still apply. */
8493 char gethostbyname ();
8494 /* The GNU C library defines this for functions which it implements
8495 to always fail with ENOSYS. Some functions are actually named
8496 something starting with __ and the normal name is an alias. */
8497 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8500 char (*f) () = gethostbyname;
8509 return f != gethostbyname;
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516 (eval $ac_link) 2>&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } &&
8520 { ac_try='test -s conftest$ac_exeext'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
8526 ac_cv_func_gethostbyname=yes
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8531 ac_cv_func_gethostbyname=no
8533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8535 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8536 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8538 if test $ac_cv_func_gethostbyname = no; then
8539 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8540 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8541 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 ac_check_lib_save_LIBS=$LIBS
8546 cat >conftest.$ac_ext <<_ACEOF
8547 #line $LINENO "configure"
8550 cat confdefs.h >>conftest.$ac_ext
8551 cat >>conftest.$ac_ext <<_ACEOF
8552 /* end confdefs.h. */
8554 /* Override any gcc2 internal prototype to avoid an error. */
8558 /* We use char because int might match the return type of a gcc2
8559 builtin and then its argument prototype would still apply. */
8560 char gethostbyname ();
8569 rm -f conftest.$ac_objext conftest$ac_exeext
8570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8571 (eval $ac_link) 2>&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } &&
8575 { ac_try='test -s conftest$ac_exeext'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; }; then
8581 ac_cv_lib_nsl_gethostbyname=yes
8583 echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8586 ac_cv_lib_nsl_gethostbyname=no
8588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8589 LIBS=$ac_check_lib_save_LIBS
8591 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8592 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8593 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8594 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8597 if test $ac_cv_lib_nsl_gethostbyname = no; then
8598 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8599 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8600 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 ac_check_lib_save_LIBS=$LIBS
8605 cat >conftest.$ac_ext <<_ACEOF
8606 #line $LINENO "configure"
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h. */
8613 /* Override any gcc2 internal prototype to avoid an error. */
8617 /* We use char because int might match the return type of a gcc2
8618 builtin and then its argument prototype would still apply. */
8619 char gethostbyname ();
8628 rm -f conftest.$ac_objext conftest$ac_exeext
8629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8630 (eval $ac_link) 2>&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } &&
8634 { ac_try='test -s conftest$ac_exeext'
8635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); }; }; then
8640 ac_cv_lib_bsd_gethostbyname=yes
8642 echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8645 ac_cv_lib_bsd_gethostbyname=no
8647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8648 LIBS=$ac_check_lib_save_LIBS
8650 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8651 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8652 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8653 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8659 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8660 # socket/setsockopt and other routines are undefined under SCO ODT
8661 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8662 # on later versions), says Simon Leinen: it contains gethostby*
8663 # variants that don't use the name server (or something). -lsocket
8664 # must be given before -lnsl if both are needed. We assume that
8665 # if connect needs -lnsl, so does gethostbyname.
8666 echo "$as_me:$LINENO: checking for connect" >&5
8667 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8668 if test "${ac_cv_func_connect+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8671 cat >conftest.$ac_ext <<_ACEOF
8672 #line $LINENO "configure"
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8678 /* System header to define __stub macros and hopefully few prototypes,
8679 which can conflict with char connect (); below.
8680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8681 <limits.h> exists even on freestanding compilers. */
8683 # include <limits.h>
8685 # include <assert.h>
8687 /* Override any gcc2 internal prototype to avoid an error. */
8692 /* We use char because int might match the return type of a gcc2
8693 builtin and then its argument prototype would still apply. */
8695 /* The GNU C library defines this for functions which it implements
8696 to always fail with ENOSYS. Some functions are actually named
8697 something starting with __ and the normal name is an alias. */
8698 #if defined (__stub_connect) || defined (__stub___connect)
8701 char (*f) () = connect;
8710 return f != connect;
8715 rm -f conftest.$ac_objext conftest$ac_exeext
8716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8717 (eval $ac_link) 2>&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try='test -s conftest$ac_exeext'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; }; then
8727 ac_cv_func_connect=yes
8729 echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8732 ac_cv_func_connect=no
8734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8736 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8737 echo "${ECHO_T}$ac_cv_func_connect" >&6
8739 if test $ac_cv_func_connect = no; then
8740 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8741 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8742 if test "${ac_cv_lib_socket_connect+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 ac_check_lib_save_LIBS=$LIBS
8746 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8747 cat >conftest.$ac_ext <<_ACEOF
8748 #line $LINENO "configure"
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8755 /* Override any gcc2 internal prototype to avoid an error. */
8759 /* We use char because int might match the return type of a gcc2
8760 builtin and then its argument prototype would still apply. */
8770 rm -f conftest.$ac_objext conftest$ac_exeext
8771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8772 (eval $ac_link) 2>&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } &&
8776 { ac_try='test -s conftest$ac_exeext'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; }; then
8782 ac_cv_lib_socket_connect=yes
8784 echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8787 ac_cv_lib_socket_connect=no
8789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8790 LIBS=$ac_check_lib_save_LIBS
8792 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8793 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8794 if test $ac_cv_lib_socket_connect = yes; then
8795 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8800 # Guillermo Gomez says -lposix is necessary on A/UX.
8801 echo "$as_me:$LINENO: checking for remove" >&5
8802 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8803 if test "${ac_cv_func_remove+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 /* System header to define __stub macros and hopefully few prototypes,
8814 which can conflict with char remove (); below.
8815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8816 <limits.h> exists even on freestanding compilers. */
8818 # include <limits.h>
8820 # include <assert.h>
8822 /* Override any gcc2 internal prototype to avoid an error. */
8827 /* We use char because int might match the return type of a gcc2
8828 builtin and then its argument prototype would still apply. */
8830 /* The GNU C library defines this for functions which it implements
8831 to always fail with ENOSYS. Some functions are actually named
8832 something starting with __ and the normal name is an alias. */
8833 #if defined (__stub_remove) || defined (__stub___remove)
8836 char (*f) () = remove;
8850 rm -f conftest.$ac_objext conftest$ac_exeext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8852 (eval $ac_link) 2>&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } &&
8856 { ac_try='test -s conftest$ac_exeext'
8857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }; }; then
8862 ac_cv_func_remove=yes
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8867 ac_cv_func_remove=no
8869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8871 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8872 echo "${ECHO_T}$ac_cv_func_remove" >&6
8874 if test $ac_cv_func_remove = no; then
8875 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8876 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8877 if test "${ac_cv_lib_posix_remove+set}" = set; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
8880 ac_check_lib_save_LIBS=$LIBS
8881 LIBS="-lposix $LIBS"
8882 cat >conftest.$ac_ext <<_ACEOF
8883 #line $LINENO "configure"
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8890 /* Override any gcc2 internal prototype to avoid an error. */
8894 /* We use char because int might match the return type of a gcc2
8895 builtin and then its argument prototype would still apply. */
8905 rm -f conftest.$ac_objext conftest$ac_exeext
8906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8907 (eval $ac_link) 2>&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } &&
8911 { ac_try='test -s conftest$ac_exeext'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 ac_cv_lib_posix_remove=yes
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8922 ac_cv_lib_posix_remove=no
8924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8925 LIBS=$ac_check_lib_save_LIBS
8927 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8928 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8929 if test $ac_cv_lib_posix_remove = yes; then
8930 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8935 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8936 echo "$as_me:$LINENO: checking for shmat" >&5
8937 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8938 if test "${ac_cv_func_shmat+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 cat >conftest.$ac_ext <<_ACEOF
8942 #line $LINENO "configure"
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8948 /* System header to define __stub macros and hopefully few prototypes,
8949 which can conflict with char shmat (); below.
8950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8951 <limits.h> exists even on freestanding compilers. */
8953 # include <limits.h>
8955 # include <assert.h>
8957 /* Override any gcc2 internal prototype to avoid an error. */
8962 /* We use char because int might match the return type of a gcc2
8963 builtin and then its argument prototype would still apply. */
8965 /* The GNU C library defines this for functions which it implements
8966 to always fail with ENOSYS. Some functions are actually named
8967 something starting with __ and the normal name is an alias. */
8968 #if defined (__stub_shmat) || defined (__stub___shmat)
8971 char (*f) () = shmat;
8985 rm -f conftest.$ac_objext conftest$ac_exeext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987 (eval $ac_link) 2>&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } &&
8991 { ac_try='test -s conftest$ac_exeext'
8992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); }; }; then
8997 ac_cv_func_shmat=yes
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9006 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9007 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9009 if test $ac_cv_func_shmat = no; then
9010 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9011 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9012 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 ac_check_lib_save_LIBS=$LIBS
9017 cat >conftest.$ac_ext <<_ACEOF
9018 #line $LINENO "configure"
9021 cat confdefs.h >>conftest.$ac_ext
9022 cat >>conftest.$ac_ext <<_ACEOF
9023 /* end confdefs.h. */
9025 /* Override any gcc2 internal prototype to avoid an error. */
9029 /* We use char because int might match the return type of a gcc2
9030 builtin and then its argument prototype would still apply. */
9040 rm -f conftest.$ac_objext conftest$ac_exeext
9041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9042 (eval $ac_link) 2>&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } &&
9046 { ac_try='test -s conftest$ac_exeext'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
9052 ac_cv_lib_ipc_shmat=yes
9054 echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.$ac_ext >&5
9057 ac_cv_lib_ipc_shmat=no
9059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9060 LIBS=$ac_check_lib_save_LIBS
9062 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9063 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9064 if test $ac_cv_lib_ipc_shmat = yes; then
9065 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9071 # Check for libraries that X11R6 Xt/Xaw programs need.
9072 ac_save_LDFLAGS=$LDFLAGS
9073 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9074 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9075 # check for ICE first), but we must link in the order -lSM -lICE or
9076 # we get undefined symbols. So assume we have SM if we have ICE.
9077 # These have to be linked with before -lX11, unlike the other
9078 # libraries we check for below, so use a different variable.
9079 # John Interrante, Karl Berry
9080 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9081 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9082 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 ac_check_lib_save_LIBS=$LIBS
9086 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9087 cat >conftest.$ac_ext <<_ACEOF
9088 #line $LINENO "configure"
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h. */
9095 /* Override any gcc2 internal prototype to avoid an error. */
9099 /* We use char because int might match the return type of a gcc2
9100 builtin and then its argument prototype would still apply. */
9101 char IceConnectionNumber ();
9105 IceConnectionNumber ();
9110 rm -f conftest.$ac_objext conftest$ac_exeext
9111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9112 (eval $ac_link) 2>&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } &&
9116 { ac_try='test -s conftest$ac_exeext'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; }; then
9122 ac_cv_lib_ICE_IceConnectionNumber=yes
9124 echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9127 ac_cv_lib_ICE_IceConnectionNumber=no
9129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9130 LIBS=$ac_check_lib_save_LIBS
9132 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9133 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9134 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9135 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9138 LDFLAGS=$ac_save_LDFLAGS
9196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9198 echo "$as_me:$LINENO: checking for $ac_header" >&5
9199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9206 # Is the header compilable?
9207 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9209 cat >conftest.$ac_ext <<_ACEOF
9210 #line $LINENO "configure"
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9216 $ac_includes_default
9217 #include <$ac_header>
9219 rm -f conftest.$ac_objext
9220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9221 (eval $ac_compile) 2>&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } &&
9225 { ac_try='test -s conftest.$ac_objext'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 ac_header_compiler=yes
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9236 ac_header_compiler=no
9238 rm -f conftest.$ac_objext conftest.$ac_ext
9239 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9240 echo "${ECHO_T}$ac_header_compiler" >&6
9242 # Is the header present?
9243 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9245 cat >conftest.$ac_ext <<_ACEOF
9246 #line $LINENO "configure"
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h. */
9252 #include <$ac_header>
9254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9257 grep -v '^ *+' conftest.er1 >conftest.err
9259 cat conftest.err >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); } >/dev/null; then
9262 if test -s conftest.err; then
9263 ac_cpp_err=$ac_c_preproc_warn_flag
9270 if test -z "$ac_cpp_err"; then
9271 ac_header_preproc=yes
9273 echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9276 ac_header_preproc=no
9278 rm -f conftest.err conftest.$ac_ext
9279 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9280 echo "${ECHO_T}$ac_header_preproc" >&6
9282 # So? What about this header?
9283 case $ac_header_compiler:$ac_header_preproc in
9285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9291 ## ------------------------------------ ##
9292 ## Report this to bug-autoconf@gnu.org. ##
9293 ## ------------------------------------ ##
9296 sed "s/^/$as_me: WARNING: /" >&2
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9307 ## ------------------------------------ ##
9308 ## Report this to bug-autoconf@gnu.org. ##
9309 ## ------------------------------------ ##
9312 sed "s/^/$as_me: WARNING: /" >&2
9315 echo "$as_me:$LINENO: checking for $ac_header" >&5
9316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 eval "$as_ac_Header=$ac_header_preproc"
9322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9327 cat >>confdefs.h <<_ACEOF
9328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9335 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9336 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9337 if test "${ac_cv_header_stdc+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 cat >conftest.$ac_ext <<_ACEOF
9341 #line $LINENO "configure"
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9360 rm -f conftest.$ac_objext
9361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9362 (eval $ac_compile) 2>&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } &&
9366 { ac_try='test -s conftest.$ac_objext'
9367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); }; }; then
9372 ac_cv_header_stdc=yes
9374 echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9377 ac_cv_header_stdc=no
9379 rm -f conftest.$ac_objext conftest.$ac_ext
9381 if test $ac_cv_header_stdc = yes; then
9382 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9383 cat >conftest.$ac_ext <<_ACEOF
9384 #line $LINENO "configure"
9387 cat confdefs.h >>conftest.$ac_ext
9388 cat >>conftest.$ac_ext <<_ACEOF
9389 /* end confdefs.h. */
9393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9394 $EGREP "memchr" >/dev/null 2>&1; then
9397 ac_cv_header_stdc=no
9403 if test $ac_cv_header_stdc = yes; then
9404 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9405 cat >conftest.$ac_ext <<_ACEOF
9406 #line $LINENO "configure"
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9416 $EGREP "free" >/dev/null 2>&1; then
9419 ac_cv_header_stdc=no
9425 if test $ac_cv_header_stdc = yes; then
9426 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9427 if test "$cross_compiling" = yes; then
9430 cat >conftest.$ac_ext <<_ACEOF
9431 #line $LINENO "configure"
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h. */
9438 #if ((' ' & 0x0FF) == 0x020)
9439 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9440 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9442 # define ISLOWER(c) \
9443 (('a' <= (c) && (c) <= 'i') \
9444 || ('j' <= (c) && (c) <= 'r') \
9445 || ('s' <= (c) && (c) <= 'z'))
9446 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9449 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9454 for (i = 0; i < 256; i++)
9455 if (XOR (islower (i), ISLOWER (i))
9456 || toupper (i) != TOUPPER (i))
9461 rm -f conftest$ac_exeext
9462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9463 (eval $ac_link) 2>&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); }; }; then
9474 echo "$as_me: program exited with status $ac_status" >&5
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9479 ac_cv_header_stdc=no
9481 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9485 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9486 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9487 if test $ac_cv_header_stdc = yes; then
9489 cat >>confdefs.h <<\_ACEOF
9490 #define STDC_HEADERS 1
9495 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9496 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9497 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 cat >conftest.$ac_ext <<_ACEOF
9501 #line $LINENO "configure"
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h. */
9507 #include <sys/types.h>
9511 return makedev(0, 0);
9516 rm -f conftest.$ac_objext conftest$ac_exeext
9517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9518 (eval $ac_link) 2>&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } &&
9522 { ac_try='test -s conftest$ac_exeext'
9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; }; then
9528 ac_cv_header_sys_types_h_makedev=yes
9530 echo "$as_me: failed program was:" >&5
9531 sed 's/^/| /' conftest.$ac_ext >&5
9533 ac_cv_header_sys_types_h_makedev=no
9535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9538 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9539 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9541 if test $ac_cv_header_sys_types_h_makedev = no; then
9542 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9543 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9544 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9545 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9549 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9551 # Is the header compilable?
9552 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9553 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9554 cat >conftest.$ac_ext <<_ACEOF
9555 #line $LINENO "configure"
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h. */
9561 $ac_includes_default
9562 #include <sys/mkdev.h>
9564 rm -f conftest.$ac_objext
9565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9566 (eval $ac_compile) 2>&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } &&
9570 { ac_try='test -s conftest.$ac_objext'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; }; then
9576 ac_header_compiler=yes
9578 echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9581 ac_header_compiler=no
9583 rm -f conftest.$ac_objext conftest.$ac_ext
9584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9585 echo "${ECHO_T}$ac_header_compiler" >&6
9587 # Is the header present?
9588 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9589 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9590 cat >conftest.$ac_ext <<_ACEOF
9591 #line $LINENO "configure"
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h. */
9597 #include <sys/mkdev.h>
9599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9602 grep -v '^ *+' conftest.er1 >conftest.err
9604 cat conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } >/dev/null; then
9607 if test -s conftest.err; then
9608 ac_cpp_err=$ac_c_preproc_warn_flag
9615 if test -z "$ac_cpp_err"; then
9616 ac_header_preproc=yes
9618 echo "$as_me: failed program was:" >&5
9619 sed 's/^/| /' conftest.$ac_ext >&5
9621 ac_header_preproc=no
9623 rm -f conftest.err conftest.$ac_ext
9624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9625 echo "${ECHO_T}$ac_header_preproc" >&6
9627 # So? What about this header?
9628 case $ac_header_compiler:$ac_header_preproc in
9630 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9631 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9632 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9633 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9636 ## ------------------------------------ ##
9637 ## Report this to bug-autoconf@gnu.org. ##
9638 ## ------------------------------------ ##
9641 sed "s/^/$as_me: WARNING: /" >&2
9644 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9645 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9646 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9647 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9648 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9649 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9652 ## ------------------------------------ ##
9653 ## Report this to bug-autoconf@gnu.org. ##
9654 ## ------------------------------------ ##
9657 sed "s/^/$as_me: WARNING: /" >&2
9660 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9661 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9662 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9667 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9668 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9671 if test $ac_cv_header_sys_mkdev_h = yes; then
9673 cat >>confdefs.h <<\_ACEOF
9674 #define MAJOR_IN_MKDEV 1
9681 if test $ac_cv_header_sys_mkdev_h = no; then
9682 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9683 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9684 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9685 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9689 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9691 # Is the header compilable?
9692 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9693 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9694 cat >conftest.$ac_ext <<_ACEOF
9695 #line $LINENO "configure"
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 $ac_includes_default
9702 #include <sys/sysmacros.h>
9704 rm -f conftest.$ac_objext
9705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9706 (eval $ac_compile) 2>&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } &&
9710 { ac_try='test -s conftest.$ac_objext'
9711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; }; then
9716 ac_header_compiler=yes
9718 echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9721 ac_header_compiler=no
9723 rm -f conftest.$ac_objext conftest.$ac_ext
9724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9725 echo "${ECHO_T}$ac_header_compiler" >&6
9727 # Is the header present?
9728 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9729 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9730 cat >conftest.$ac_ext <<_ACEOF
9731 #line $LINENO "configure"
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h. */
9737 #include <sys/sysmacros.h>
9739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9742 grep -v '^ *+' conftest.er1 >conftest.err
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } >/dev/null; then
9747 if test -s conftest.err; then
9748 ac_cpp_err=$ac_c_preproc_warn_flag
9755 if test -z "$ac_cpp_err"; then
9756 ac_header_preproc=yes
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9761 ac_header_preproc=no
9763 rm -f conftest.err conftest.$ac_ext
9764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9765 echo "${ECHO_T}$ac_header_preproc" >&6
9767 # So? What about this header?
9768 case $ac_header_compiler:$ac_header_preproc in
9770 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9771 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9772 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9773 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9776 ## ------------------------------------ ##
9777 ## Report this to bug-autoconf@gnu.org. ##
9778 ## ------------------------------------ ##
9781 sed "s/^/$as_me: WARNING: /" >&2
9784 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9785 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9786 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9787 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9788 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9789 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9792 ## ------------------------------------ ##
9793 ## Report this to bug-autoconf@gnu.org. ##
9794 ## ------------------------------------ ##
9797 sed "s/^/$as_me: WARNING: /" >&2
9800 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9801 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9802 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9807 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9808 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9811 if test $ac_cv_header_sys_sysmacros_h = yes; then
9813 cat >>confdefs.h <<\_ACEOF
9814 #define MAJOR_IN_SYSMACROS 1
9829 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9830 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9831 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9832 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 cat >conftest.$ac_ext <<_ACEOF
9837 #line $LINENO "configure"
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9843 #include <sys/types.h>
9855 rm -f conftest.$ac_objext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9857 (eval $ac_compile) 2>&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } &&
9861 { ac_try='test -s conftest.$ac_objext'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; }; then
9867 eval "$as_ac_Header=yes"
9869 echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9872 eval "$as_ac_Header=no"
9874 rm -f conftest.$ac_objext conftest.$ac_ext
9876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9879 cat >>confdefs.h <<_ACEOF
9880 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9883 ac_header_dirent=$ac_hdr; break
9887 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9888 if test $ac_header_dirent = dirent.h; then
9889 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9890 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9891 if test "${ac_cv_search_opendir+set}" = set; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9894 ac_func_search_save_LIBS=$LIBS
9895 ac_cv_search_opendir=no
9896 cat >conftest.$ac_ext <<_ACEOF
9897 #line $LINENO "configure"
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h. */
9904 /* Override any gcc2 internal prototype to avoid an error. */
9908 /* We use char because int might match the return type of a gcc2
9909 builtin and then its argument prototype would still apply. */
9919 rm -f conftest.$ac_objext conftest$ac_exeext
9920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9921 (eval $ac_link) 2>&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } &&
9925 { ac_try='test -s conftest$ac_exeext'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; }; then
9931 ac_cv_search_opendir="none required"
9933 echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.$ac_ext >&5
9937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9938 if test "$ac_cv_search_opendir" = no; then
9939 for ac_lib in dir; do
9940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9941 cat >conftest.$ac_ext <<_ACEOF
9942 #line $LINENO "configure"
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9949 /* Override any gcc2 internal prototype to avoid an error. */
9953 /* We use char because int might match the return type of a gcc2
9954 builtin and then its argument prototype would still apply. */
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9966 (eval $ac_link) 2>&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } &&
9970 { ac_try='test -s conftest$ac_exeext'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; }; then
9976 ac_cv_search_opendir="-l$ac_lib"
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9986 LIBS=$ac_func_search_save_LIBS
9988 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9989 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9990 if test "$ac_cv_search_opendir" != no; then
9991 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9996 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9997 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9998 if test "${ac_cv_search_opendir+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10001 ac_func_search_save_LIBS=$LIBS
10002 ac_cv_search_opendir=no
10003 cat >conftest.$ac_ext <<_ACEOF
10004 #line $LINENO "configure"
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10011 /* Override any gcc2 internal prototype to avoid an error. */
10015 /* We use char because int might match the return type of a gcc2
10016 builtin and then its argument prototype would still apply. */
10026 rm -f conftest.$ac_objext conftest$ac_exeext
10027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028 (eval $ac_link) 2>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try='test -s conftest$ac_exeext'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; }; then
10038 ac_cv_search_opendir="none required"
10040 echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10045 if test "$ac_cv_search_opendir" = no; then
10046 for ac_lib in x; do
10047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10048 cat >conftest.$ac_ext <<_ACEOF
10049 #line $LINENO "configure"
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h. */
10056 /* Override any gcc2 internal prototype to avoid an error. */
10060 /* We use char because int might match the return type of a gcc2
10061 builtin and then its argument prototype would still apply. */
10071 rm -f conftest.$ac_objext conftest$ac_exeext
10072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10073 (eval $ac_link) 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } &&
10077 { ac_try='test -s conftest$ac_exeext'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 ac_cv_search_opendir="-l$ac_lib"
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10093 LIBS=$ac_func_search_save_LIBS
10095 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10096 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10097 if test "$ac_cv_search_opendir" != no; then
10098 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10104 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10105 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10106 if test "${ac_cv_header_stat_broken+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10109 cat >conftest.$ac_ext <<_ACEOF
10110 #line $LINENO "configure"
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 #include <sys/types.h>
10117 #include <sys/stat.h>
10119 #if defined(S_ISBLK) && defined(S_IFDIR)
10120 # if S_ISBLK (S_IFDIR)
10125 #if defined(S_ISBLK) && defined(S_IFCHR)
10126 # if S_ISBLK (S_IFCHR)
10131 #if defined(S_ISLNK) && defined(S_IFREG)
10132 # if S_ISLNK (S_IFREG)
10137 #if defined(S_ISSOCK) && defined(S_IFREG)
10138 # if S_ISSOCK (S_IFREG)
10144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10145 $EGREP "You lose" >/dev/null 2>&1; then
10146 ac_cv_header_stat_broken=yes
10148 ac_cv_header_stat_broken=no
10153 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10154 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10155 if test $ac_cv_header_stat_broken = yes; then
10157 cat >>confdefs.h <<\_ACEOF
10158 #define STAT_MACROS_BROKEN 1
10163 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10164 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10165 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 cat >conftest.$ac_ext <<_ACEOF
10169 #line $LINENO "configure"
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h. */
10175 #include <sys/types.h>
10176 #include <sys/wait.h>
10177 #ifndef WEXITSTATUS
10178 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10181 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10189 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10194 rm -f conftest.$ac_objext
10195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10196 (eval $ac_compile) 2>&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } &&
10200 { ac_try='test -s conftest.$ac_objext'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; }; then
10206 ac_cv_header_sys_wait_h=yes
10208 echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10211 ac_cv_header_sys_wait_h=no
10213 rm -f conftest.$ac_objext conftest.$ac_ext
10215 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10216 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10217 if test $ac_cv_header_sys_wait_h = yes; then
10219 cat >>confdefs.h <<\_ACEOF
10220 #define HAVE_SYS_WAIT_H 1
10225 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10226 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10227 if test "${ac_cv_header_time+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 cat >conftest.$ac_ext <<_ACEOF
10231 #line $LINENO "configure"
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10237 #include <sys/types.h>
10238 #include <sys/time.h>
10244 if ((struct tm *) 0)
10250 rm -f conftest.$ac_objext
10251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10252 (eval $ac_compile) 2>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } &&
10256 { ac_try='test -s conftest.$ac_objext'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }; then
10262 ac_cv_header_time=yes
10264 echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10267 ac_cv_header_time=no
10269 rm -f conftest.$ac_objext conftest.$ac_ext
10271 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10272 echo "${ECHO_T}$ac_cv_header_time" >&6
10273 if test $ac_cv_header_time = yes; then
10275 cat >>confdefs.h <<\_ACEOF
10276 #define TIME_WITH_SYS_TIME 1
10282 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10283 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10284 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10285 echo $ECHO_N "(cached) $ECHO_C" >&6
10287 cat >conftest.$ac_ext <<_ACEOF
10288 #line $LINENO "configure"
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10294 $ac_includes_default
10298 static struct stat ac_aggr;
10299 if (ac_aggr.st_blksize)
10305 rm -f conftest.$ac_objext
10306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10307 (eval $ac_compile) 2>&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } &&
10311 { ac_try='test -s conftest.$ac_objext'
10312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313 (eval $ac_try) 2>&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
10317 ac_cv_member_struct_stat_st_blksize=yes
10319 echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10322 cat >conftest.$ac_ext <<_ACEOF
10323 #line $LINENO "configure"
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10329 $ac_includes_default
10333 static struct stat ac_aggr;
10334 if (sizeof ac_aggr.st_blksize)
10340 rm -f conftest.$ac_objext
10341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10342 (eval $ac_compile) 2>&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } &&
10346 { ac_try='test -s conftest.$ac_objext'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; }; then
10352 ac_cv_member_struct_stat_st_blksize=yes
10354 echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10357 ac_cv_member_struct_stat_st_blksize=no
10359 rm -f conftest.$ac_objext conftest.$ac_ext
10361 rm -f conftest.$ac_objext conftest.$ac_ext
10363 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10364 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10365 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10367 cat >>confdefs.h <<_ACEOF
10368 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10372 cat >>confdefs.h <<\_ACEOF
10373 #define HAVE_ST_BLKSIZE 1
10379 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10380 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10381 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 cat >conftest.$ac_ext <<_ACEOF
10385 #line $LINENO "configure"
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h. */
10391 $ac_includes_default
10395 static struct stat ac_aggr;
10396 if (ac_aggr.st_blocks)
10402 rm -f conftest.$ac_objext
10403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10404 (eval $ac_compile) 2>&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); } &&
10408 { ac_try='test -s conftest.$ac_objext'
10409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410 (eval $ac_try) 2>&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; }; then
10414 ac_cv_member_struct_stat_st_blocks=yes
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10419 cat >conftest.$ac_ext <<_ACEOF
10420 #line $LINENO "configure"
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10426 $ac_includes_default
10430 static struct stat ac_aggr;
10431 if (sizeof ac_aggr.st_blocks)
10437 rm -f conftest.$ac_objext
10438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10439 (eval $ac_compile) 2>&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } &&
10443 { ac_try='test -s conftest.$ac_objext'
10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
10449 ac_cv_member_struct_stat_st_blocks=yes
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10454 ac_cv_member_struct_stat_st_blocks=no
10456 rm -f conftest.$ac_objext conftest.$ac_ext
10458 rm -f conftest.$ac_objext conftest.$ac_ext
10460 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10461 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10462 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10464 cat >>confdefs.h <<_ACEOF
10465 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10469 cat >>confdefs.h <<\_ACEOF
10470 #define HAVE_ST_BLOCKS 1
10474 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10478 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10479 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10480 if test "${ac_cv_struct_tm+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 cat >conftest.$ac_ext <<_ACEOF
10484 #line $LINENO "configure"
10487 cat confdefs.h >>conftest.$ac_ext
10488 cat >>conftest.$ac_ext <<_ACEOF
10489 /* end confdefs.h. */
10490 #include <sys/types.h>
10496 struct tm *tp; tp->tm_sec;
10501 rm -f conftest.$ac_objext
10502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10503 (eval $ac_compile) 2>&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } &&
10507 { ac_try='test -s conftest.$ac_objext'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; }; then
10513 ac_cv_struct_tm=time.h
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10518 ac_cv_struct_tm=sys/time.h
10520 rm -f conftest.$ac_objext conftest.$ac_ext
10522 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10523 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10524 if test $ac_cv_struct_tm = sys/time.h; then
10526 cat >>confdefs.h <<\_ACEOF
10527 #define TM_IN_SYS_TIME 1
10532 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10533 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10534 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 cat >conftest.$ac_ext <<_ACEOF
10538 #line $LINENO "configure"
10541 cat confdefs.h >>conftest.$ac_ext
10542 cat >>conftest.$ac_ext <<_ACEOF
10543 /* end confdefs.h. */
10544 #include <sys/types.h>
10545 #include <$ac_cv_struct_tm>
10551 static struct tm ac_aggr;
10552 if (ac_aggr.tm_zone)
10558 rm -f conftest.$ac_objext
10559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10560 (eval $ac_compile) 2>&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } &&
10564 { ac_try='test -s conftest.$ac_objext'
10565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10566 (eval $ac_try) 2>&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; }; then
10570 ac_cv_member_struct_tm_tm_zone=yes
10572 echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10575 cat >conftest.$ac_ext <<_ACEOF
10576 #line $LINENO "configure"
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 #include <sys/types.h>
10583 #include <$ac_cv_struct_tm>
10589 static struct tm ac_aggr;
10590 if (sizeof ac_aggr.tm_zone)
10596 rm -f conftest.$ac_objext
10597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10598 (eval $ac_compile) 2>&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } &&
10602 { ac_try='test -s conftest.$ac_objext'
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; }; then
10608 ac_cv_member_struct_tm_tm_zone=yes
10610 echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10613 ac_cv_member_struct_tm_tm_zone=no
10615 rm -f conftest.$ac_objext conftest.$ac_ext
10617 rm -f conftest.$ac_objext conftest.$ac_ext
10619 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10620 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10621 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10623 cat >>confdefs.h <<_ACEOF
10624 #define HAVE_STRUCT_TM_TM_ZONE 1
10630 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10632 cat >>confdefs.h <<\_ACEOF
10633 #define HAVE_TM_ZONE 1
10637 echo "$as_me:$LINENO: checking for tzname" >&5
10638 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10639 if test "${ac_cv_var_tzname+set}" = set; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 cat >conftest.$ac_ext <<_ACEOF
10643 #line $LINENO "configure"
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10650 #ifndef tzname /* For SGI. */
10651 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10664 (eval $ac_link) 2>&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } &&
10668 { ac_try='test -s conftest$ac_exeext'
10669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670 (eval $ac_try) 2>&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
10674 ac_cv_var_tzname=yes
10676 echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10679 ac_cv_var_tzname=no
10681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10683 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10684 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10685 if test $ac_cv_var_tzname = yes; then
10687 cat >>confdefs.h <<\_ACEOF
10688 #define HAVE_TZNAME 1
10695 echo "$as_me:$LINENO: checking for utime.h" >&5
10696 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10697 if test "${ba_cv_header_utime_h+set}" = set; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 cat >conftest.$ac_ext <<_ACEOF
10701 #line $LINENO "configure"
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h. */
10708 #include <sys/types.h>
10718 rm -f conftest.$ac_objext
10719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10720 (eval $ac_compile) 2>&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } &&
10724 { ac_try='test -s conftest.$ac_objext'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; }; then
10730 ba_cv_header_utime_h=yes
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10735 ba_cv_header_utime_h=no
10737 rm -f conftest.$ac_objext conftest.$ac_ext
10739 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10740 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10741 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10742 #define HAVE_UTIME_H 1
10746 echo "$as_me:$LINENO: checking for socklen_t" >&5
10747 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10748 if test "${ba_cv_header_socklen_t+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10751 cat >conftest.$ac_ext <<_ACEOF
10752 #line $LINENO "configure"
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h. */
10759 #include <sys/types.h>
10760 #include <sys/socket.h>
10769 rm -f conftest.$ac_objext
10770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10771 (eval $ac_compile) 2>&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } &&
10775 { ac_try='test -s conftest.$ac_objext'
10776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777 (eval $ac_try) 2>&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); }; }; then
10781 ba_cv_header_socklen_t=yes
10783 echo "$as_me: failed program was:" >&5
10784 sed 's/^/| /' conftest.$ac_ext >&5
10786 ba_cv_header_socklen_t=no
10788 rm -f conftest.$ac_objext conftest.$ac_ext
10790 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10791 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10792 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10793 #define HAVE_SOCKLEN_T 1
10797 echo "$as_me:$LINENO: checking for bigendian" >&5
10798 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10799 if test "${ba_cv_bigendian+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 if test "$cross_compiling" = yes; then
10805 cat >conftest.$ac_ext <<_ACEOF
10806 #line $LINENO "configure"
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h. */
10812 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10814 rm -f conftest$ac_exeext
10815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10816 (eval $ac_link) 2>&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10825 ba_cv_bigendian=yes
10827 echo "$as_me: program exited with status $ac_status" >&5
10828 echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10831 ( exit $ac_status )
10834 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10837 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10838 echo "${ECHO_T}$ba_cv_bigendian" >&6
10839 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10840 #define HAVE_BIGENDIAN 1
10845 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10846 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10847 if test "${ac_cv_c_const+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 cat >conftest.$ac_ext <<_ACEOF
10851 #line $LINENO "configure"
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h. */
10861 /* FIXME: Include the comments suggested by Paul. */
10862 #ifndef __cplusplus
10863 /* Ultrix mips cc rejects this. */
10864 typedef int charset[2];
10866 /* SunOS 4.1.1 cc rejects this. */
10867 char const *const *ccp;
10869 /* NEC SVR4.0.2 mips cc rejects this. */
10870 struct point {int x, y;};
10871 static struct point const zero = {0,0};
10872 /* AIX XL C 1.02.0.0 rejects this.
10873 It does not let you subtract one const X* pointer from another in
10874 an arm of an if-expression whose if-part is not a constant
10876 const char *g = "string";
10877 ccp = &g + (g ? g-g : 0);
10878 /* HPUX 7.0 cc rejects these. */
10881 ccp = (char const *const *) p;
10882 { /* SCO 3.2v4 cc rejects this. */
10884 char const *s = 0 ? (char *) 0 : (char const *) 0;
10888 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10889 int x[] = {25, 17};
10890 const int *foo = &x[0];
10893 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10894 typedef const int *iptr;
10898 { /* AIX XL C 1.02.0.0 rejects this saying
10899 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10900 struct s { int j; const int *ap[3]; };
10901 struct s *b; b->j = 5;
10903 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10904 const int foo = 10;
10912 rm -f conftest.$ac_objext
10913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10914 (eval $ac_compile) 2>&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
10918 { ac_try='test -s conftest.$ac_objext'
10919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920 (eval $ac_try) 2>&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10931 rm -f conftest.$ac_objext conftest.$ac_ext
10933 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10934 echo "${ECHO_T}$ac_cv_c_const" >&6
10935 if test $ac_cv_c_const = no; then
10937 cat >>confdefs.h <<\_ACEOF
10945 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10946 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10948 # The order of these tests is important.
10949 cat >conftest.$ac_ext <<_ACEOF
10950 #line $LINENO "configure"
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10956 #include <sys/statvfs.h>
10957 #include <sys/fstyp.h>
10959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10962 grep -v '^ *+' conftest.er1 >conftest.err
10964 cat conftest.err >&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } >/dev/null; then
10967 if test -s conftest.err; then
10968 ac_cpp_err=$ac_c_preproc_warn_flag
10975 if test -z "$ac_cpp_err"; then
10976 cat >>confdefs.h <<\_ACEOF
10977 #define FSTYPE_STATVFS 1
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10986 rm -f conftest.err conftest.$ac_ext
10987 if test $fstype = no; then
10988 cat >conftest.$ac_ext <<_ACEOF
10989 #line $LINENO "configure"
10992 cat confdefs.h >>conftest.$ac_ext
10993 cat >>conftest.$ac_ext <<_ACEOF
10994 /* end confdefs.h. */
10995 #include <sys/statfs.h>
10996 #include <sys/fstyp.h>
10998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11001 grep -v '^ *+' conftest.er1 >conftest.err
11003 cat conftest.err >&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); } >/dev/null; then
11006 if test -s conftest.err; then
11007 ac_cpp_err=$ac_c_preproc_warn_flag
11014 if test -z "$ac_cpp_err"; then
11015 cat >>confdefs.h <<\_ACEOF
11016 #define FSTYPE_USG_STATFS 1
11020 echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11025 rm -f conftest.err conftest.$ac_ext
11027 if test $fstype = no; then
11028 cat >conftest.$ac_ext <<_ACEOF
11029 #line $LINENO "configure"
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11035 #include <sys/statfs.h>
11036 #include <sys/vmount.h>
11038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11041 grep -v '^ *+' conftest.er1 >conftest.err
11043 cat conftest.err >&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); } >/dev/null; then
11046 if test -s conftest.err; then
11047 ac_cpp_err=$ac_c_preproc_warn_flag
11054 if test -z "$ac_cpp_err"; then
11055 cat >>confdefs.h <<\_ACEOF
11056 #define FSTYPE_AIX_STATFS 1
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11065 rm -f conftest.err conftest.$ac_ext
11067 if test $fstype = no; then
11068 cat >conftest.$ac_ext <<_ACEOF
11069 #line $LINENO "configure"
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h. */
11075 #include <mntent.h>
11077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11080 grep -v '^ *+' conftest.er1 >conftest.err
11082 cat conftest.err >&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); } >/dev/null; then
11085 if test -s conftest.err; then
11086 ac_cpp_err=$ac_c_preproc_warn_flag
11093 if test -z "$ac_cpp_err"; then
11094 cat >>confdefs.h <<\_ACEOF
11095 #define FSTYPE_MNTENT 1
11099 echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11104 rm -f conftest.err conftest.$ac_ext
11106 if test $fstype = no; then
11107 cat >conftest.$ac_ext <<_ACEOF
11108 #line $LINENO "configure"
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h. */
11114 #include <sys/mount.h>
11117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11118 $EGREP "f_type;" >/dev/null 2>&1; then
11119 cat >>confdefs.h <<\_ACEOF
11120 #define FSTYPE_STATFS 1
11127 if test $fstype = no; then
11128 cat >conftest.$ac_ext <<_ACEOF
11129 #line $LINENO "configure"
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11135 #include <sys/mount.h>
11136 #include <sys/fs_types.h>
11138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11141 grep -v '^ *+' conftest.er1 >conftest.err
11143 cat conftest.err >&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } >/dev/null; then
11146 if test -s conftest.err; then
11147 ac_cpp_err=$ac_c_preproc_warn_flag
11154 if test -z "$ac_cpp_err"; then
11155 cat >>confdefs.h <<\_ACEOF
11156 #define FSTYPE_GETMNT 1
11160 echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11165 rm -f conftest.err conftest.$ac_ext
11167 echo "$as_me:$LINENO: result: $fstype" >&5
11168 echo "${ECHO_T}$fstype" >&6
11170 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11171 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11172 if test "${ac_cv_type_signal+set}" = set; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11175 cat >conftest.$ac_ext <<_ACEOF
11176 #line $LINENO "configure"
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h. */
11182 #include <sys/types.h>
11183 #include <signal.h>
11188 extern "C" void (*signal (int, void (*)(int)))(int);
11190 void (*signal ()) ();
11201 rm -f conftest.$ac_objext
11202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11203 (eval $ac_compile) 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } &&
11207 { ac_try='test -s conftest.$ac_objext'
11208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209 (eval $ac_try) 2>&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); }; }; then
11213 ac_cv_type_signal=void
11215 echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.$ac_ext >&5
11218 ac_cv_type_signal=int
11220 rm -f conftest.$ac_objext conftest.$ac_ext
11222 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11223 echo "${ECHO_T}$ac_cv_type_signal" >&6
11225 cat >>confdefs.h <<_ACEOF
11226 #define RETSIGTYPE $ac_cv_type_signal
11231 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11232 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11233 if test "${bash_cv_signal_vintage+set}" = set; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 cat >conftest.$ac_ext <<_ACEOF
11238 #line $LINENO "configure"
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h. */
11244 #include <signal.h>
11250 struct sigaction sa;
11251 sigemptyset(&ss); sigsuspend(&ss);
11252 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11253 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11259 rm -f conftest.$ac_objext conftest$ac_exeext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11261 (eval $ac_link) 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
11265 { ac_try='test -s conftest$ac_exeext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 bash_cv_signal_vintage=posix
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11277 cat >conftest.$ac_ext <<_ACEOF
11278 #line $LINENO "configure"
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 #include <signal.h>
11289 int mask = sigmask(SIGINT);
11290 sigsetmask(mask); sigblock(mask); sigpause(mask);
11296 rm -f conftest.$ac_objext conftest$ac_exeext
11297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11298 (eval $ac_link) 2>&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } &&
11302 { ac_try='test -s conftest$ac_exeext'
11303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11304 (eval $ac_try) 2>&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); }; }; then
11308 bash_cv_signal_vintage=4.2bsd
11310 echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11314 cat >conftest.$ac_ext <<_ACEOF
11315 #line $LINENO "configure"
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11322 #include <signal.h>
11323 RETSIGTYPE foo() { }
11328 int mask = sigmask(SIGINT);
11329 sigset(SIGINT, foo); sigrelse(SIGINT);
11330 sighold(SIGINT); sigpause(SIGINT);
11336 rm -f conftest.$ac_objext conftest$ac_exeext
11337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11338 (eval $ac_link) 2>&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } &&
11342 { ac_try='test -s conftest$ac_exeext'
11343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344 (eval $ac_try) 2>&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; }; then
11348 bash_cv_signal_vintage=svr3
11350 echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11353 bash_cv_signal_vintage=v7
11356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11366 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11367 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11368 if test "$bash_cv_signal_vintage" = posix; then
11369 cat >>confdefs.h <<\_ACEOF
11370 #define HAVE_POSIX_SIGNALS 1
11373 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11374 cat >>confdefs.h <<\_ACEOF
11375 #define HAVE_BSD_SIGNALS 1
11378 elif test "$bash_cv_signal_vintage" = svr3; then
11379 cat >>confdefs.h <<\_ACEOF
11380 #define HAVE_USG_SIGHOLD 1
11385 echo "$as_me:$LINENO: checking for mode_t" >&5
11386 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11387 if test "${ac_cv_type_mode_t+set}" = set; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11390 cat >conftest.$ac_ext <<_ACEOF
11391 #line $LINENO "configure"
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h. */
11397 $ac_includes_default
11403 if (sizeof (mode_t))
11409 rm -f conftest.$ac_objext
11410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11411 (eval $ac_compile) 2>&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } &&
11415 { ac_try='test -s conftest.$ac_objext'
11416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; }; then
11421 ac_cv_type_mode_t=yes
11423 echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11426 ac_cv_type_mode_t=no
11428 rm -f conftest.$ac_objext conftest.$ac_ext
11430 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11431 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11432 if test $ac_cv_type_mode_t = yes; then
11436 cat >>confdefs.h <<_ACEOF
11442 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11443 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11444 if test "${ac_cv_type_uid_t+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 cat >conftest.$ac_ext <<_ACEOF
11448 #line $LINENO "configure"
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h. */
11454 #include <sys/types.h>
11457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11458 $EGREP "uid_t" >/dev/null 2>&1; then
11459 ac_cv_type_uid_t=yes
11461 ac_cv_type_uid_t=no
11466 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11467 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11468 if test $ac_cv_type_uid_t = no; then
11470 cat >>confdefs.h <<\_ACEOF
11475 cat >>confdefs.h <<\_ACEOF
11481 echo "$as_me:$LINENO: checking for size_t" >&5
11482 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11483 if test "${ac_cv_type_size_t+set}" = set; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
11486 cat >conftest.$ac_ext <<_ACEOF
11487 #line $LINENO "configure"
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h. */
11493 $ac_includes_default
11499 if (sizeof (size_t))
11505 rm -f conftest.$ac_objext
11506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11507 (eval $ac_compile) 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } &&
11511 { ac_try='test -s conftest.$ac_objext'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; }; then
11517 ac_cv_type_size_t=yes
11519 echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11522 ac_cv_type_size_t=no
11524 rm -f conftest.$ac_objext conftest.$ac_ext
11526 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11527 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11528 if test $ac_cv_type_size_t = yes; then
11532 cat >>confdefs.h <<_ACEOF
11533 #define size_t unsigned
11538 echo "$as_me:$LINENO: checking for pid_t" >&5
11539 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11540 if test "${ac_cv_type_pid_t+set}" = set; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 cat >conftest.$ac_ext <<_ACEOF
11544 #line $LINENO "configure"
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 $ac_includes_default
11556 if (sizeof (pid_t))
11562 rm -f conftest.$ac_objext
11563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11564 (eval $ac_compile) 2>&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); } &&
11568 { ac_try='test -s conftest.$ac_objext'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; }; then
11574 ac_cv_type_pid_t=yes
11576 echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11579 ac_cv_type_pid_t=no
11581 rm -f conftest.$ac_objext conftest.$ac_ext
11583 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11584 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11585 if test $ac_cv_type_pid_t = yes; then
11589 cat >>confdefs.h <<_ACEOF
11595 echo "$as_me:$LINENO: checking for off_t" >&5
11596 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11597 if test "${ac_cv_type_off_t+set}" = set; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 cat >conftest.$ac_ext <<_ACEOF
11601 #line $LINENO "configure"
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11607 $ac_includes_default
11613 if (sizeof (off_t))
11619 rm -f conftest.$ac_objext
11620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11621 (eval $ac_compile) 2>&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } &&
11625 { ac_try='test -s conftest.$ac_objext'
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11631 ac_cv_type_off_t=yes
11633 echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11636 ac_cv_type_off_t=no
11638 rm -f conftest.$ac_objext conftest.$ac_ext
11640 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11641 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11642 if test $ac_cv_type_off_t = yes; then
11646 cat >>confdefs.h <<_ACEOF
11652 echo "$as_me:$LINENO: checking for ino_t" >&5
11653 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11654 if test "${ac_cv_type_ino_t+set}" = set; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11657 cat >conftest.$ac_ext <<_ACEOF
11658 #line $LINENO "configure"
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11664 $ac_includes_default
11670 if (sizeof (ino_t))
11676 rm -f conftest.$ac_objext
11677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11678 (eval $ac_compile) 2>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } &&
11682 { ac_try='test -s conftest.$ac_objext'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 ac_cv_type_ino_t=yes
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11693 ac_cv_type_ino_t=no
11695 rm -f conftest.$ac_objext conftest.$ac_ext
11697 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11698 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11699 if test $ac_cv_type_ino_t = yes; then
11703 cat >>confdefs.h <<_ACEOF
11704 #define ino_t unsigned long
11709 echo "$as_me:$LINENO: checking for dev_t" >&5
11710 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11711 if test "${ac_cv_type_dev_t+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11714 cat >conftest.$ac_ext <<_ACEOF
11715 #line $LINENO "configure"
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h. */
11721 $ac_includes_default
11727 if (sizeof (dev_t))
11733 rm -f conftest.$ac_objext
11734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11735 (eval $ac_compile) 2>&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } &&
11739 { ac_try='test -s conftest.$ac_objext'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; }; then
11745 ac_cv_type_dev_t=yes
11747 echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11750 ac_cv_type_dev_t=no
11752 rm -f conftest.$ac_objext conftest.$ac_ext
11754 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11755 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11756 if test $ac_cv_type_dev_t = yes; then
11760 cat >>confdefs.h <<_ACEOF
11761 #define dev_t unsigned long
11766 echo "$as_me:$LINENO: checking for daddr_t" >&5
11767 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11768 if test "${ac_cv_type_daddr_t+set}" = set; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11771 cat >conftest.$ac_ext <<_ACEOF
11772 #line $LINENO "configure"
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h. */
11778 $ac_includes_default
11784 if (sizeof (daddr_t))
11790 rm -f conftest.$ac_objext
11791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11792 (eval $ac_compile) 2>&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -s conftest.$ac_objext'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 ac_cv_type_daddr_t=yes
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11807 ac_cv_type_daddr_t=no
11809 rm -f conftest.$ac_objext conftest.$ac_ext
11811 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11812 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11813 if test $ac_cv_type_daddr_t = yes; then
11817 cat >>confdefs.h <<_ACEOF
11818 #define daddr_t long
11823 echo "$as_me:$LINENO: checking for major_t" >&5
11824 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11825 if test "${ac_cv_type_major_t+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11828 cat >conftest.$ac_ext <<_ACEOF
11829 #line $LINENO "configure"
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11835 $ac_includes_default
11841 if (sizeof (major_t))
11847 rm -f conftest.$ac_objext
11848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11849 (eval $ac_compile) 2>&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } &&
11853 { ac_try='test -s conftest.$ac_objext'
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; }; then
11859 ac_cv_type_major_t=yes
11861 echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11864 ac_cv_type_major_t=no
11866 rm -f conftest.$ac_objext conftest.$ac_ext
11868 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11869 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11870 if test $ac_cv_type_major_t = yes; then
11874 cat >>confdefs.h <<_ACEOF
11875 #define major_t int
11880 echo "$as_me:$LINENO: checking for minor_t" >&5
11881 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11882 if test "${ac_cv_type_minor_t+set}" = set; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11885 cat >conftest.$ac_ext <<_ACEOF
11886 #line $LINENO "configure"
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h. */
11892 $ac_includes_default
11898 if (sizeof (minor_t))
11904 rm -f conftest.$ac_objext
11905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11906 (eval $ac_compile) 2>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } &&
11910 { ac_try='test -s conftest.$ac_objext'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11916 ac_cv_type_minor_t=yes
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11921 ac_cv_type_minor_t=no
11923 rm -f conftest.$ac_objext conftest.$ac_ext
11925 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11926 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11927 if test $ac_cv_type_minor_t = yes; then
11931 cat >>confdefs.h <<_ACEOF
11932 #define minor_t int
11937 echo "$as_me:$LINENO: checking for ssize_t" >&5
11938 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11939 if test "${ac_cv_type_ssize_t+set}" = set; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11942 cat >conftest.$ac_ext <<_ACEOF
11943 #line $LINENO "configure"
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11949 $ac_includes_default
11955 if (sizeof (ssize_t))
11961 rm -f conftest.$ac_objext
11962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11963 (eval $ac_compile) 2>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } &&
11967 { ac_try='test -s conftest.$ac_objext'
11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969 (eval $ac_try) 2>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; }; then
11973 ac_cv_type_ssize_t=yes
11975 echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11978 ac_cv_type_ssize_t=no
11980 rm -f conftest.$ac_objext conftest.$ac_ext
11982 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11983 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11984 if test $ac_cv_type_ssize_t = yes; then
11988 cat >>confdefs.h <<_ACEOF
11989 #define ssize_t int
11994 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11995 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11996 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11999 cat >conftest.$ac_ext <<_ACEOF
12000 #line $LINENO "configure"
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h. */
12006 $ac_includes_default
12010 static struct stat ac_aggr;
12011 if (ac_aggr.st_blocks)
12017 rm -f conftest.$ac_objext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12019 (eval $ac_compile) 2>&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try='test -s conftest.$ac_objext'
12024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025 (eval $ac_try) 2>&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; }; then
12029 ac_cv_member_struct_stat_st_blocks=yes
12031 echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12034 cat >conftest.$ac_ext <<_ACEOF
12035 #line $LINENO "configure"
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12041 $ac_includes_default
12045 static struct stat ac_aggr;
12046 if (sizeof ac_aggr.st_blocks)
12052 rm -f conftest.$ac_objext
12053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12054 (eval $ac_compile) 2>&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } &&
12058 { ac_try='test -s conftest.$ac_objext'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 ac_cv_member_struct_stat_st_blocks=yes
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12069 ac_cv_member_struct_stat_st_blocks=no
12071 rm -f conftest.$ac_objext conftest.$ac_ext
12073 rm -f conftest.$ac_objext conftest.$ac_ext
12075 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12076 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12077 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12079 cat >>confdefs.h <<_ACEOF
12080 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12084 cat >>confdefs.h <<\_ACEOF
12085 #define HAVE_ST_BLOCKS 1
12089 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12094 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12095 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12096 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12099 cat >conftest.$ac_ext <<_ACEOF
12100 #line $LINENO "configure"
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 $ac_includes_default
12110 static struct stat ac_aggr;
12111 if (ac_aggr.st_rdev)
12117 rm -f conftest.$ac_objext
12118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12119 (eval $ac_compile) 2>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } &&
12123 { ac_try='test -s conftest.$ac_objext'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then
12129 ac_cv_member_struct_stat_st_rdev=yes
12131 echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.$ac_ext >&5
12134 cat >conftest.$ac_ext <<_ACEOF
12135 #line $LINENO "configure"
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12141 $ac_includes_default
12145 static struct stat ac_aggr;
12146 if (sizeof ac_aggr.st_rdev)
12152 rm -f conftest.$ac_objext
12153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12154 (eval $ac_compile) 2>&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } &&
12158 { ac_try='test -s conftest.$ac_objext'
12159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12160 (eval $ac_try) 2>&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); }; }; then
12164 ac_cv_member_struct_stat_st_rdev=yes
12166 echo "$as_me: failed program was:" >&5
12167 sed 's/^/| /' conftest.$ac_ext >&5
12169 ac_cv_member_struct_stat_st_rdev=no
12171 rm -f conftest.$ac_objext conftest.$ac_ext
12173 rm -f conftest.$ac_objext conftest.$ac_ext
12175 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12176 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12177 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12179 cat >>confdefs.h <<_ACEOF
12180 #define HAVE_STRUCT_STAT_ST_RDEV 1
12184 cat >>confdefs.h <<\_ACEOF
12185 #define HAVE_ST_RDEV 1
12191 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12192 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12193 if test "${ac_cv_struct_tm+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12196 cat >conftest.$ac_ext <<_ACEOF
12197 #line $LINENO "configure"
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12203 #include <sys/types.h>
12209 struct tm *tp; tp->tm_sec;
12214 rm -f conftest.$ac_objext
12215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12216 (eval $ac_compile) 2>&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } &&
12220 { ac_try='test -s conftest.$ac_objext'
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
12226 ac_cv_struct_tm=time.h
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12231 ac_cv_struct_tm=sys/time.h
12233 rm -f conftest.$ac_objext conftest.$ac_ext
12235 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12236 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12237 if test $ac_cv_struct_tm = sys/time.h; then
12239 cat >>confdefs.h <<\_ACEOF
12240 #define TM_IN_SYS_TIME 1
12245 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12246 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12247 if test "${ac_cv_c_const+set}" = set; then
12248 echo $ECHO_N "(cached) $ECHO_C" >&6
12250 cat >conftest.$ac_ext <<_ACEOF
12251 #line $LINENO "configure"
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12261 /* FIXME: Include the comments suggested by Paul. */
12262 #ifndef __cplusplus
12263 /* Ultrix mips cc rejects this. */
12264 typedef int charset[2];
12266 /* SunOS 4.1.1 cc rejects this. */
12267 char const *const *ccp;
12269 /* NEC SVR4.0.2 mips cc rejects this. */
12270 struct point {int x, y;};
12271 static struct point const zero = {0,0};
12272 /* AIX XL C 1.02.0.0 rejects this.
12273 It does not let you subtract one const X* pointer from another in
12274 an arm of an if-expression whose if-part is not a constant
12276 const char *g = "string";
12277 ccp = &g + (g ? g-g : 0);
12278 /* HPUX 7.0 cc rejects these. */
12281 ccp = (char const *const *) p;
12282 { /* SCO 3.2v4 cc rejects this. */
12284 char const *s = 0 ? (char *) 0 : (char const *) 0;
12288 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12289 int x[] = {25, 17};
12290 const int *foo = &x[0];
12293 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12294 typedef const int *iptr;
12298 { /* AIX XL C 1.02.0.0 rejects this saying
12299 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12300 struct s { int j; const int *ap[3]; };
12301 struct s *b; b->j = 5;
12303 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12304 const int foo = 10;
12312 rm -f conftest.$ac_objext
12313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12314 (eval $ac_compile) 2>&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } &&
12318 { ac_try='test -s conftest.$ac_objext'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; }; then
12326 echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12331 rm -f conftest.$ac_objext conftest.$ac_ext
12333 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12334 echo "${ECHO_T}$ac_cv_c_const" >&6
12335 if test $ac_cv_c_const = no; then
12337 cat >>confdefs.h <<\_ACEOF
12345 echo "$as_me:$LINENO: checking for char" >&5
12346 echo $ECHO_N "checking for char... $ECHO_C" >&6
12347 if test "${ac_cv_type_char+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12350 cat >conftest.$ac_ext <<_ACEOF
12351 #line $LINENO "configure"
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12357 $ac_includes_default
12369 rm -f conftest.$ac_objext
12370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12371 (eval $ac_compile) 2>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
12375 { ac_try='test -s conftest.$ac_objext'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381 ac_cv_type_char=yes
12383 echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12388 rm -f conftest.$ac_objext conftest.$ac_ext
12390 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12391 echo "${ECHO_T}$ac_cv_type_char" >&6
12393 echo "$as_me:$LINENO: checking size of char" >&5
12394 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12395 if test "${ac_cv_sizeof_char+set}" = set; then
12396 echo $ECHO_N "(cached) $ECHO_C" >&6
12398 if test "$ac_cv_type_char" = yes; then
12399 # The cast to unsigned long works around a bug in the HP C Compiler
12400 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12401 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12402 # This bug is HP SR number 8606223364.
12403 if test "$cross_compiling" = yes; then
12404 # Depending upon the size, compute the lo and hi bounds.
12405 cat >conftest.$ac_ext <<_ACEOF
12406 #line $LINENO "configure"
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12412 $ac_includes_default
12416 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12423 rm -f conftest.$ac_objext
12424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12425 (eval $ac_compile) 2>&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } &&
12429 { ac_try='test -s conftest.$ac_objext'
12430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431 (eval $ac_try) 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; }; then
12437 cat >conftest.$ac_ext <<_ACEOF
12438 #line $LINENO "configure"
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h. */
12444 $ac_includes_default
12448 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12455 rm -f conftest.$ac_objext
12456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12457 (eval $ac_compile) 2>&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } &&
12461 { ac_try='test -s conftest.$ac_objext'
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
12467 ac_hi=$ac_mid; break
12469 echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12472 ac_lo=`expr $ac_mid + 1`
12473 if test $ac_lo -le $ac_mid; then
12477 ac_mid=`expr 2 '*' $ac_mid + 1`
12479 rm -f conftest.$ac_objext conftest.$ac_ext
12482 echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12485 cat >conftest.$ac_ext <<_ACEOF
12486 #line $LINENO "configure"
12489 cat confdefs.h >>conftest.$ac_ext
12490 cat >>conftest.$ac_ext <<_ACEOF
12491 /* end confdefs.h. */
12492 $ac_includes_default
12496 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12503 rm -f conftest.$ac_objext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12505 (eval $ac_compile) 2>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try='test -s conftest.$ac_objext'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; }; then
12517 cat >conftest.$ac_ext <<_ACEOF
12518 #line $LINENO "configure"
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12524 $ac_includes_default
12528 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12535 rm -f conftest.$ac_objext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } &&
12541 { ac_try='test -s conftest.$ac_objext'
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 ac_lo=$ac_mid; break
12549 echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12552 ac_hi=`expr '(' $ac_mid ')' - 1`
12553 if test $ac_mid -le $ac_hi; then
12557 ac_mid=`expr 2 '*' $ac_mid`
12559 rm -f conftest.$ac_objext conftest.$ac_ext
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12567 rm -f conftest.$ac_objext conftest.$ac_ext
12569 rm -f conftest.$ac_objext conftest.$ac_ext
12570 # Binary search between lo and hi bounds.
12571 while test "x$ac_lo" != "x$ac_hi"; do
12572 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12573 cat >conftest.$ac_ext <<_ACEOF
12574 #line $LINENO "configure"
12577 cat confdefs.h >>conftest.$ac_ext
12578 cat >>conftest.$ac_ext <<_ACEOF
12579 /* end confdefs.h. */
12580 $ac_includes_default
12584 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12591 rm -f conftest.$ac_objext
12592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12593 (eval $ac_compile) 2>&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } &&
12597 { ac_try='test -s conftest.$ac_objext'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12608 ac_lo=`expr '(' $ac_mid ')' + 1`
12610 rm -f conftest.$ac_objext conftest.$ac_ext
12613 ?*) ac_cv_sizeof_char=$ac_lo;;
12614 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12615 See \`config.log' for more details." >&5
12616 echo "$as_me: error: cannot compute sizeof (char), 77
12617 See \`config.log' for more details." >&2;}
12618 { (exit 1); exit 1; }; } ;;
12621 if test "$cross_compiling" = yes; then
12622 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12623 See \`config.log' for more details." >&5
12624 echo "$as_me: error: cannot run test program while cross compiling
12625 See \`config.log' for more details." >&2;}
12626 { (exit 1); exit 1; }; }
12628 cat >conftest.$ac_ext <<_ACEOF
12629 #line $LINENO "configure"
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12635 $ac_includes_default
12636 long longval () { return (long) (sizeof (char)); }
12637 unsigned long ulongval () { return (long) (sizeof (char)); }
12639 #include <stdlib.h>
12644 FILE *f = fopen ("conftest.val", "w");
12647 if (((long) (sizeof (char))) < 0)
12649 long i = longval ();
12650 if (i != ((long) (sizeof (char))))
12652 fprintf (f, "%ld\n", i);
12656 unsigned long i = ulongval ();
12657 if (i != ((long) (sizeof (char))))
12659 fprintf (f, "%lu\n", i);
12661 exit (ferror (f) || fclose (f) != 0);
12667 rm -f conftest$ac_exeext
12668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12669 (eval $ac_link) 2>&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 ac_cv_sizeof_char=`cat conftest.val`
12680 echo "$as_me: program exited with status $ac_status" >&5
12681 echo "$as_me: failed program was:" >&5
12682 sed 's/^/| /' conftest.$ac_ext >&5
12684 ( exit $ac_status )
12685 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12686 See \`config.log' for more details." >&5
12687 echo "$as_me: error: cannot compute sizeof (char), 77
12688 See \`config.log' for more details." >&2;}
12689 { (exit 1); exit 1; }; }
12691 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12696 ac_cv_sizeof_char=0
12699 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12700 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12701 cat >>confdefs.h <<_ACEOF
12702 #define SIZEOF_CHAR $ac_cv_sizeof_char
12706 echo "$as_me:$LINENO: checking for short int" >&5
12707 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12708 if test "${ac_cv_type_short_int+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 cat >conftest.$ac_ext <<_ACEOF
12712 #line $LINENO "configure"
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12718 $ac_includes_default
12722 if ((short int *) 0)
12724 if (sizeof (short int))
12730 rm -f conftest.$ac_objext
12731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12732 (eval $ac_compile) 2>&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try='test -s conftest.$ac_objext'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 ac_cv_type_short_int=yes
12744 echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12747 ac_cv_type_short_int=no
12749 rm -f conftest.$ac_objext conftest.$ac_ext
12751 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12752 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12754 echo "$as_me:$LINENO: checking size of short int" >&5
12755 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12756 if test "${ac_cv_sizeof_short_int+set}" = set; then
12757 echo $ECHO_N "(cached) $ECHO_C" >&6
12759 if test "$ac_cv_type_short_int" = yes; then
12760 # The cast to unsigned long works around a bug in the HP C Compiler
12761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12762 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12763 # This bug is HP SR number 8606223364.
12764 if test "$cross_compiling" = yes; then
12765 # Depending upon the size, compute the lo and hi bounds.
12766 cat >conftest.$ac_ext <<_ACEOF
12767 #line $LINENO "configure"
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h. */
12773 $ac_includes_default
12777 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12784 rm -f conftest.$ac_objext
12785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12786 (eval $ac_compile) 2>&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } &&
12790 { ac_try='test -s conftest.$ac_objext'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12798 cat >conftest.$ac_ext <<_ACEOF
12799 #line $LINENO "configure"
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h. */
12805 $ac_includes_default
12809 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12816 rm -f conftest.$ac_objext
12817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12818 (eval $ac_compile) 2>&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } &&
12822 { ac_try='test -s conftest.$ac_objext'
12823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824 (eval $ac_try) 2>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; }; then
12828 ac_hi=$ac_mid; break
12830 echo "$as_me: failed program was:" >&5
12831 sed 's/^/| /' conftest.$ac_ext >&5
12833 ac_lo=`expr $ac_mid + 1`
12834 if test $ac_lo -le $ac_mid; then
12838 ac_mid=`expr 2 '*' $ac_mid + 1`
12840 rm -f conftest.$ac_objext conftest.$ac_ext
12843 echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12846 cat >conftest.$ac_ext <<_ACEOF
12847 #line $LINENO "configure"
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12853 $ac_includes_default
12857 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12864 rm -f conftest.$ac_objext
12865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12866 (eval $ac_compile) 2>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } &&
12870 { ac_try='test -s conftest.$ac_objext'
12871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12872 (eval $ac_try) 2>&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; }; then
12878 cat >conftest.$ac_ext <<_ACEOF
12879 #line $LINENO "configure"
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h. */
12885 $ac_includes_default
12889 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12896 rm -f conftest.$ac_objext
12897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12898 (eval $ac_compile) 2>&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } &&
12902 { ac_try='test -s conftest.$ac_objext'
12903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904 (eval $ac_try) 2>&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; }; then
12908 ac_lo=$ac_mid; break
12910 echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12913 ac_hi=`expr '(' $ac_mid ')' - 1`
12914 if test $ac_mid -le $ac_hi; then
12918 ac_mid=`expr 2 '*' $ac_mid`
12920 rm -f conftest.$ac_objext conftest.$ac_ext
12923 echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12928 rm -f conftest.$ac_objext conftest.$ac_ext
12930 rm -f conftest.$ac_objext conftest.$ac_ext
12931 # Binary search between lo and hi bounds.
12932 while test "x$ac_lo" != "x$ac_hi"; do
12933 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12934 cat >conftest.$ac_ext <<_ACEOF
12935 #line $LINENO "configure"
12938 cat confdefs.h >>conftest.$ac_ext
12939 cat >>conftest.$ac_ext <<_ACEOF
12940 /* end confdefs.h. */
12941 $ac_includes_default
12945 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12952 rm -f conftest.$ac_objext
12953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12954 (eval $ac_compile) 2>&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 { ac_try='test -s conftest.$ac_objext'
12959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; }; then
12966 echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12969 ac_lo=`expr '(' $ac_mid ')' + 1`
12971 rm -f conftest.$ac_objext conftest.$ac_ext
12974 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12975 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12976 See \`config.log' for more details." >&5
12977 echo "$as_me: error: cannot compute sizeof (short int), 77
12978 See \`config.log' for more details." >&2;}
12979 { (exit 1); exit 1; }; } ;;
12982 if test "$cross_compiling" = yes; then
12983 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12984 See \`config.log' for more details." >&5
12985 echo "$as_me: error: cannot run test program while cross compiling
12986 See \`config.log' for more details." >&2;}
12987 { (exit 1); exit 1; }; }
12989 cat >conftest.$ac_ext <<_ACEOF
12990 #line $LINENO "configure"
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h. */
12996 $ac_includes_default
12997 long longval () { return (long) (sizeof (short int)); }
12998 unsigned long ulongval () { return (long) (sizeof (short int)); }
13000 #include <stdlib.h>
13005 FILE *f = fopen ("conftest.val", "w");
13008 if (((long) (sizeof (short int))) < 0)
13010 long i = longval ();
13011 if (i != ((long) (sizeof (short int))))
13013 fprintf (f, "%ld\n", i);
13017 unsigned long i = ulongval ();
13018 if (i != ((long) (sizeof (short int))))
13020 fprintf (f, "%lu\n", i);
13022 exit (ferror (f) || fclose (f) != 0);
13028 rm -f conftest$ac_exeext
13029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13030 (eval $ac_link) 2>&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035 (eval $ac_try) 2>&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; }; then
13039 ac_cv_sizeof_short_int=`cat conftest.val`
13041 echo "$as_me: program exited with status $ac_status" >&5
13042 echo "$as_me: failed program was:" >&5
13043 sed 's/^/| /' conftest.$ac_ext >&5
13045 ( exit $ac_status )
13046 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13047 See \`config.log' for more details." >&5
13048 echo "$as_me: error: cannot compute sizeof (short int), 77
13049 See \`config.log' for more details." >&2;}
13050 { (exit 1); exit 1; }; }
13052 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13057 ac_cv_sizeof_short_int=0
13060 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13061 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13062 cat >>confdefs.h <<_ACEOF
13063 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13067 echo "$as_me:$LINENO: checking for int" >&5
13068 echo $ECHO_N "checking for int... $ECHO_C" >&6
13069 if test "${ac_cv_type_int+set}" = set; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
13072 cat >conftest.$ac_ext <<_ACEOF
13073 #line $LINENO "configure"
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13079 $ac_includes_default
13091 rm -f conftest.$ac_objext
13092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093 (eval $ac_compile) 2>&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } &&
13097 { ac_try='test -s conftest.$ac_objext'
13098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099 (eval $ac_try) 2>&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; }; then
13105 echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13110 rm -f conftest.$ac_objext conftest.$ac_ext
13112 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13113 echo "${ECHO_T}$ac_cv_type_int" >&6
13115 echo "$as_me:$LINENO: checking size of int" >&5
13116 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13117 if test "${ac_cv_sizeof_int+set}" = set; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13120 if test "$ac_cv_type_int" = yes; then
13121 # The cast to unsigned long works around a bug in the HP C Compiler
13122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13124 # This bug is HP SR number 8606223364.
13125 if test "$cross_compiling" = yes; then
13126 # Depending upon the size, compute the lo and hi bounds.
13127 cat >conftest.$ac_ext <<_ACEOF
13128 #line $LINENO "configure"
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h. */
13134 $ac_includes_default
13138 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13145 rm -f conftest.$ac_objext
13146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13147 (eval $ac_compile) 2>&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } &&
13151 { ac_try='test -s conftest.$ac_objext'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13159 cat >conftest.$ac_ext <<_ACEOF
13160 #line $LINENO "configure"
13163 cat confdefs.h >>conftest.$ac_ext
13164 cat >>conftest.$ac_ext <<_ACEOF
13165 /* end confdefs.h. */
13166 $ac_includes_default
13170 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13177 rm -f conftest.$ac_objext
13178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13179 (eval $ac_compile) 2>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } &&
13183 { ac_try='test -s conftest.$ac_objext'
13184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185 (eval $ac_try) 2>&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; }; then
13189 ac_hi=$ac_mid; break
13191 echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13194 ac_lo=`expr $ac_mid + 1`
13195 if test $ac_lo -le $ac_mid; then
13199 ac_mid=`expr 2 '*' $ac_mid + 1`
13201 rm -f conftest.$ac_objext conftest.$ac_ext
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13207 cat >conftest.$ac_ext <<_ACEOF
13208 #line $LINENO "configure"
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h. */
13214 $ac_includes_default
13218 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13225 rm -f conftest.$ac_objext
13226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13227 (eval $ac_compile) 2>&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } &&
13231 { ac_try='test -s conftest.$ac_objext'
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; }; then
13239 cat >conftest.$ac_ext <<_ACEOF
13240 #line $LINENO "configure"
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13246 $ac_includes_default
13250 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13257 rm -f conftest.$ac_objext
13258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13259 (eval $ac_compile) 2>&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } &&
13263 { ac_try='test -s conftest.$ac_objext'
13264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; }; then
13269 ac_lo=$ac_mid; break
13271 echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13274 ac_hi=`expr '(' $ac_mid ')' - 1`
13275 if test $ac_mid -le $ac_hi; then
13279 ac_mid=`expr 2 '*' $ac_mid`
13281 rm -f conftest.$ac_objext conftest.$ac_ext
13284 echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13289 rm -f conftest.$ac_objext conftest.$ac_ext
13291 rm -f conftest.$ac_objext conftest.$ac_ext
13292 # Binary search between lo and hi bounds.
13293 while test "x$ac_lo" != "x$ac_hi"; do
13294 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13295 cat >conftest.$ac_ext <<_ACEOF
13296 #line $LINENO "configure"
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h. */
13302 $ac_includes_default
13306 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13313 rm -f conftest.$ac_objext
13314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13315 (eval $ac_compile) 2>&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } &&
13319 { ac_try='test -s conftest.$ac_objext'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; }; then
13327 echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13330 ac_lo=`expr '(' $ac_mid ')' + 1`
13332 rm -f conftest.$ac_objext conftest.$ac_ext
13335 ?*) ac_cv_sizeof_int=$ac_lo;;
13336 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13337 See \`config.log' for more details." >&5
13338 echo "$as_me: error: cannot compute sizeof (int), 77
13339 See \`config.log' for more details." >&2;}
13340 { (exit 1); exit 1; }; } ;;
13343 if test "$cross_compiling" = yes; then
13344 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13345 See \`config.log' for more details." >&5
13346 echo "$as_me: error: cannot run test program while cross compiling
13347 See \`config.log' for more details." >&2;}
13348 { (exit 1); exit 1; }; }
13350 cat >conftest.$ac_ext <<_ACEOF
13351 #line $LINENO "configure"
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13357 $ac_includes_default
13358 long longval () { return (long) (sizeof (int)); }
13359 unsigned long ulongval () { return (long) (sizeof (int)); }
13361 #include <stdlib.h>
13366 FILE *f = fopen ("conftest.val", "w");
13369 if (((long) (sizeof (int))) < 0)
13371 long i = longval ();
13372 if (i != ((long) (sizeof (int))))
13374 fprintf (f, "%ld\n", i);
13378 unsigned long i = ulongval ();
13379 if (i != ((long) (sizeof (int))))
13381 fprintf (f, "%lu\n", i);
13383 exit (ferror (f) || fclose (f) != 0);
13389 rm -f conftest$ac_exeext
13390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13391 (eval $ac_link) 2>&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396 (eval $ac_try) 2>&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; }; then
13400 ac_cv_sizeof_int=`cat conftest.val`
13402 echo "$as_me: program exited with status $ac_status" >&5
13403 echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13406 ( exit $ac_status )
13407 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13408 See \`config.log' for more details." >&5
13409 echo "$as_me: error: cannot compute sizeof (int), 77
13410 See \`config.log' for more details." >&2;}
13411 { (exit 1); exit 1; }; }
13413 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13421 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13422 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13423 cat >>confdefs.h <<_ACEOF
13424 #define SIZEOF_INT $ac_cv_sizeof_int
13428 echo "$as_me:$LINENO: checking for long int" >&5
13429 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13430 if test "${ac_cv_type_long_int+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 cat >conftest.$ac_ext <<_ACEOF
13434 #line $LINENO "configure"
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h. */
13440 $ac_includes_default
13444 if ((long int *) 0)
13446 if (sizeof (long int))
13452 rm -f conftest.$ac_objext
13453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13454 (eval $ac_compile) 2>&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } &&
13458 { ac_try='test -s conftest.$ac_objext'
13459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460 (eval $ac_try) 2>&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); }; }; then
13464 ac_cv_type_long_int=yes
13466 echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13469 ac_cv_type_long_int=no
13471 rm -f conftest.$ac_objext conftest.$ac_ext
13473 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13474 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13476 echo "$as_me:$LINENO: checking size of long int" >&5
13477 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13478 if test "${ac_cv_sizeof_long_int+set}" = set; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 if test "$ac_cv_type_long_int" = yes; then
13482 # The cast to unsigned long works around a bug in the HP C Compiler
13483 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13484 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13485 # This bug is HP SR number 8606223364.
13486 if test "$cross_compiling" = yes; then
13487 # Depending upon the size, compute the lo and hi bounds.
13488 cat >conftest.$ac_ext <<_ACEOF
13489 #line $LINENO "configure"
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13495 $ac_includes_default
13499 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13506 rm -f conftest.$ac_objext
13507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13508 (eval $ac_compile) 2>&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } &&
13512 { ac_try='test -s conftest.$ac_objext'
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; }; then
13520 cat >conftest.$ac_ext <<_ACEOF
13521 #line $LINENO "configure"
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h. */
13527 $ac_includes_default
13531 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13538 rm -f conftest.$ac_objext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13540 (eval $ac_compile) 2>&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try='test -s conftest.$ac_objext'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; }; then
13550 ac_hi=$ac_mid; break
13552 echo "$as_me: failed program was:" >&5
13553 sed 's/^/| /' conftest.$ac_ext >&5
13555 ac_lo=`expr $ac_mid + 1`
13556 if test $ac_lo -le $ac_mid; then
13560 ac_mid=`expr 2 '*' $ac_mid + 1`
13562 rm -f conftest.$ac_objext conftest.$ac_ext
13565 echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13568 cat >conftest.$ac_ext <<_ACEOF
13569 #line $LINENO "configure"
13572 cat confdefs.h >>conftest.$ac_ext
13573 cat >>conftest.$ac_ext <<_ACEOF
13574 /* end confdefs.h. */
13575 $ac_includes_default
13579 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13586 rm -f conftest.$ac_objext
13587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13588 (eval $ac_compile) 2>&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); } &&
13592 { ac_try='test -s conftest.$ac_objext'
13593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594 (eval $ac_try) 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }; }; then
13600 cat >conftest.$ac_ext <<_ACEOF
13601 #line $LINENO "configure"
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13607 $ac_includes_default
13611 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13618 rm -f conftest.$ac_objext
13619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13620 (eval $ac_compile) 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); } &&
13624 { ac_try='test -s conftest.$ac_objext'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; }; then
13630 ac_lo=$ac_mid; break
13632 echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13635 ac_hi=`expr '(' $ac_mid ')' - 1`
13636 if test $ac_mid -le $ac_hi; then
13640 ac_mid=`expr 2 '*' $ac_mid`
13642 rm -f conftest.$ac_objext conftest.$ac_ext
13645 echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.$ac_ext >&5
13650 rm -f conftest.$ac_objext conftest.$ac_ext
13652 rm -f conftest.$ac_objext conftest.$ac_ext
13653 # Binary search between lo and hi bounds.
13654 while test "x$ac_lo" != "x$ac_hi"; do
13655 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13656 cat >conftest.$ac_ext <<_ACEOF
13657 #line $LINENO "configure"
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13663 $ac_includes_default
13667 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13674 rm -f conftest.$ac_objext
13675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13676 (eval $ac_compile) 2>&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); } &&
13680 { ac_try='test -s conftest.$ac_objext'
13681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; }; then
13688 echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13691 ac_lo=`expr '(' $ac_mid ')' + 1`
13693 rm -f conftest.$ac_objext conftest.$ac_ext
13696 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13697 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13698 See \`config.log' for more details." >&5
13699 echo "$as_me: error: cannot compute sizeof (long int), 77
13700 See \`config.log' for more details." >&2;}
13701 { (exit 1); exit 1; }; } ;;
13704 if test "$cross_compiling" = yes; then
13705 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13706 See \`config.log' for more details." >&5
13707 echo "$as_me: error: cannot run test program while cross compiling
13708 See \`config.log' for more details." >&2;}
13709 { (exit 1); exit 1; }; }
13711 cat >conftest.$ac_ext <<_ACEOF
13712 #line $LINENO "configure"
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13718 $ac_includes_default
13719 long longval () { return (long) (sizeof (long int)); }
13720 unsigned long ulongval () { return (long) (sizeof (long int)); }
13722 #include <stdlib.h>
13727 FILE *f = fopen ("conftest.val", "w");
13730 if (((long) (sizeof (long int))) < 0)
13732 long i = longval ();
13733 if (i != ((long) (sizeof (long int))))
13735 fprintf (f, "%ld\n", i);
13739 unsigned long i = ulongval ();
13740 if (i != ((long) (sizeof (long int))))
13742 fprintf (f, "%lu\n", i);
13744 exit (ferror (f) || fclose (f) != 0);
13750 rm -f conftest$ac_exeext
13751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13752 (eval $ac_link) 2>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; }; then
13761 ac_cv_sizeof_long_int=`cat conftest.val`
13763 echo "$as_me: program exited with status $ac_status" >&5
13764 echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13767 ( exit $ac_status )
13768 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13769 See \`config.log' for more details." >&5
13770 echo "$as_me: error: cannot compute sizeof (long int), 77
13771 See \`config.log' for more details." >&2;}
13772 { (exit 1); exit 1; }; }
13774 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13779 ac_cv_sizeof_long_int=0
13782 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13783 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13784 cat >>confdefs.h <<_ACEOF
13785 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13789 echo "$as_me:$LINENO: checking for long long int" >&5
13790 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13791 if test "${ac_cv_type_long_long_int+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13794 cat >conftest.$ac_ext <<_ACEOF
13795 #line $LINENO "configure"
13798 cat confdefs.h >>conftest.$ac_ext
13799 cat >>conftest.$ac_ext <<_ACEOF
13800 /* end confdefs.h. */
13801 $ac_includes_default
13805 if ((long long int *) 0)
13807 if (sizeof (long long int))
13813 rm -f conftest.$ac_objext
13814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13815 (eval $ac_compile) 2>&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
13819 { ac_try='test -s conftest.$ac_objext'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; }; then
13825 ac_cv_type_long_long_int=yes
13827 echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13830 ac_cv_type_long_long_int=no
13832 rm -f conftest.$ac_objext conftest.$ac_ext
13834 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13835 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13837 echo "$as_me:$LINENO: checking size of long long int" >&5
13838 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13839 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13842 if test "$ac_cv_type_long_long_int" = yes; then
13843 # The cast to unsigned long works around a bug in the HP C Compiler
13844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13846 # This bug is HP SR number 8606223364.
13847 if test "$cross_compiling" = yes; then
13848 # Depending upon the size, compute the lo and hi bounds.
13849 cat >conftest.$ac_ext <<_ACEOF
13850 #line $LINENO "configure"
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h. */
13856 $ac_includes_default
13860 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13867 rm -f conftest.$ac_objext
13868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13869 (eval $ac_compile) 2>&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); } &&
13873 { ac_try='test -s conftest.$ac_objext'
13874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875 (eval $ac_try) 2>&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); }; }; then
13881 cat >conftest.$ac_ext <<_ACEOF
13882 #line $LINENO "configure"
13885 cat confdefs.h >>conftest.$ac_ext
13886 cat >>conftest.$ac_ext <<_ACEOF
13887 /* end confdefs.h. */
13888 $ac_includes_default
13892 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13899 rm -f conftest.$ac_objext
13900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13901 (eval $ac_compile) 2>&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } &&
13905 { ac_try='test -s conftest.$ac_objext'
13906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907 (eval $ac_try) 2>&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; }; then
13911 ac_hi=$ac_mid; break
13913 echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13916 ac_lo=`expr $ac_mid + 1`
13917 if test $ac_lo -le $ac_mid; then
13921 ac_mid=`expr 2 '*' $ac_mid + 1`
13923 rm -f conftest.$ac_objext conftest.$ac_ext
13926 echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13929 cat >conftest.$ac_ext <<_ACEOF
13930 #line $LINENO "configure"
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h. */
13936 $ac_includes_default
13940 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13947 rm -f conftest.$ac_objext
13948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13949 (eval $ac_compile) 2>&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); } &&
13953 { ac_try='test -s conftest.$ac_objext'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
13961 cat >conftest.$ac_ext <<_ACEOF
13962 #line $LINENO "configure"
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13968 $ac_includes_default
13972 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13979 rm -f conftest.$ac_objext
13980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13981 (eval $ac_compile) 2>&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } &&
13985 { ac_try='test -s conftest.$ac_objext'
13986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); }; }; then
13991 ac_lo=$ac_mid; break
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13996 ac_hi=`expr '(' $ac_mid ')' - 1`
13997 if test $ac_mid -le $ac_hi; then
14001 ac_mid=`expr 2 '*' $ac_mid`
14003 rm -f conftest.$ac_objext conftest.$ac_ext
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14011 rm -f conftest.$ac_objext conftest.$ac_ext
14013 rm -f conftest.$ac_objext conftest.$ac_ext
14014 # Binary search between lo and hi bounds.
14015 while test "x$ac_lo" != "x$ac_hi"; do
14016 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14017 cat >conftest.$ac_ext <<_ACEOF
14018 #line $LINENO "configure"
14021 cat confdefs.h >>conftest.$ac_ext
14022 cat >>conftest.$ac_ext <<_ACEOF
14023 /* end confdefs.h. */
14024 $ac_includes_default
14028 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14035 rm -f conftest.$ac_objext
14036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14037 (eval $ac_compile) 2>&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } &&
14041 { ac_try='test -s conftest.$ac_objext'
14042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; }; then
14049 echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14052 ac_lo=`expr '(' $ac_mid ')' + 1`
14054 rm -f conftest.$ac_objext conftest.$ac_ext
14057 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14058 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14059 See \`config.log' for more details." >&5
14060 echo "$as_me: error: cannot compute sizeof (long long int), 77
14061 See \`config.log' for more details." >&2;}
14062 { (exit 1); exit 1; }; } ;;
14065 if test "$cross_compiling" = yes; then
14066 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14067 See \`config.log' for more details." >&5
14068 echo "$as_me: error: cannot run test program while cross compiling
14069 See \`config.log' for more details." >&2;}
14070 { (exit 1); exit 1; }; }
14072 cat >conftest.$ac_ext <<_ACEOF
14073 #line $LINENO "configure"
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h. */
14079 $ac_includes_default
14080 long longval () { return (long) (sizeof (long long int)); }
14081 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14083 #include <stdlib.h>
14088 FILE *f = fopen ("conftest.val", "w");
14091 if (((long) (sizeof (long long int))) < 0)
14093 long i = longval ();
14094 if (i != ((long) (sizeof (long long int))))
14096 fprintf (f, "%ld\n", i);
14100 unsigned long i = ulongval ();
14101 if (i != ((long) (sizeof (long long int))))
14103 fprintf (f, "%lu\n", i);
14105 exit (ferror (f) || fclose (f) != 0);
14111 rm -f conftest$ac_exeext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113 (eval $ac_link) 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 ac_cv_sizeof_long_long_int=`cat conftest.val`
14124 echo "$as_me: program exited with status $ac_status" >&5
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14128 ( exit $ac_status )
14129 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14130 See \`config.log' for more details." >&5
14131 echo "$as_me: error: cannot compute sizeof (long long int), 77
14132 See \`config.log' for more details." >&2;}
14133 { (exit 1); exit 1; }; }
14135 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14140 ac_cv_sizeof_long_long_int=0
14143 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14144 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14145 cat >>confdefs.h <<_ACEOF
14146 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14150 echo "$as_me:$LINENO: checking for int *" >&5
14151 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14152 if test "${ac_cv_type_int_p+set}" = set; then
14153 echo $ECHO_N "(cached) $ECHO_C" >&6
14155 cat >conftest.$ac_ext <<_ACEOF
14156 #line $LINENO "configure"
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14162 $ac_includes_default
14168 if (sizeof (int *))
14174 rm -f conftest.$ac_objext
14175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14176 (eval $ac_compile) 2>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } &&
14180 { ac_try='test -s conftest.$ac_objext'
14181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; }; then
14186 ac_cv_type_int_p=yes
14188 echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14191 ac_cv_type_int_p=no
14193 rm -f conftest.$ac_objext conftest.$ac_ext
14195 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14196 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14198 echo "$as_me:$LINENO: checking size of int *" >&5
14199 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14200 if test "${ac_cv_sizeof_int_p+set}" = set; then
14201 echo $ECHO_N "(cached) $ECHO_C" >&6
14203 if test "$ac_cv_type_int_p" = yes; then
14204 # The cast to unsigned long works around a bug in the HP C Compiler
14205 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14206 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14207 # This bug is HP SR number 8606223364.
14208 if test "$cross_compiling" = yes; then
14209 # Depending upon the size, compute the lo and hi bounds.
14210 cat >conftest.$ac_ext <<_ACEOF
14211 #line $LINENO "configure"
14214 cat confdefs.h >>conftest.$ac_ext
14215 cat >>conftest.$ac_ext <<_ACEOF
14216 /* end confdefs.h. */
14217 $ac_includes_default
14221 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14228 rm -f conftest.$ac_objext
14229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14230 (eval $ac_compile) 2>&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } &&
14234 { ac_try='test -s conftest.$ac_objext'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14242 cat >conftest.$ac_ext <<_ACEOF
14243 #line $LINENO "configure"
14246 cat confdefs.h >>conftest.$ac_ext
14247 cat >>conftest.$ac_ext <<_ACEOF
14248 /* end confdefs.h. */
14249 $ac_includes_default
14253 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14260 rm -f conftest.$ac_objext
14261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14262 (eval $ac_compile) 2>&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try='test -s conftest.$ac_objext'
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; }; then
14272 ac_hi=$ac_mid; break
14274 echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.$ac_ext >&5
14277 ac_lo=`expr $ac_mid + 1`
14278 if test $ac_lo -le $ac_mid; then
14282 ac_mid=`expr 2 '*' $ac_mid + 1`
14284 rm -f conftest.$ac_objext conftest.$ac_ext
14287 echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.$ac_ext >&5
14290 cat >conftest.$ac_ext <<_ACEOF
14291 #line $LINENO "configure"
14294 cat confdefs.h >>conftest.$ac_ext
14295 cat >>conftest.$ac_ext <<_ACEOF
14296 /* end confdefs.h. */
14297 $ac_includes_default
14301 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14308 rm -f conftest.$ac_objext
14309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14310 (eval $ac_compile) 2>&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
14314 { ac_try='test -s conftest.$ac_objext'
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; }; then
14322 cat >conftest.$ac_ext <<_ACEOF
14323 #line $LINENO "configure"
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h. */
14329 $ac_includes_default
14333 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14340 rm -f conftest.$ac_objext
14341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14342 (eval $ac_compile) 2>&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } &&
14346 { ac_try='test -s conftest.$ac_objext'
14347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348 (eval $ac_try) 2>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; }; then
14352 ac_lo=$ac_mid; break
14354 echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.$ac_ext >&5
14357 ac_hi=`expr '(' $ac_mid ')' - 1`
14358 if test $ac_mid -le $ac_hi; then
14362 ac_mid=`expr 2 '*' $ac_mid`
14364 rm -f conftest.$ac_objext conftest.$ac_ext
14367 echo "$as_me: failed program was:" >&5
14368 sed 's/^/| /' conftest.$ac_ext >&5
14372 rm -f conftest.$ac_objext conftest.$ac_ext
14374 rm -f conftest.$ac_objext conftest.$ac_ext
14375 # Binary search between lo and hi bounds.
14376 while test "x$ac_lo" != "x$ac_hi"; do
14377 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14378 cat >conftest.$ac_ext <<_ACEOF
14379 #line $LINENO "configure"
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h. */
14385 $ac_includes_default
14389 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14396 rm -f conftest.$ac_objext
14397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14398 (eval $ac_compile) 2>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } &&
14402 { ac_try='test -s conftest.$ac_objext'
14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404 (eval $ac_try) 2>&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; }; then
14410 echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14413 ac_lo=`expr '(' $ac_mid ')' + 1`
14415 rm -f conftest.$ac_objext conftest.$ac_ext
14418 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14419 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14420 See \`config.log' for more details." >&5
14421 echo "$as_me: error: cannot compute sizeof (int *), 77
14422 See \`config.log' for more details." >&2;}
14423 { (exit 1); exit 1; }; } ;;
14426 if test "$cross_compiling" = yes; then
14427 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14428 See \`config.log' for more details." >&5
14429 echo "$as_me: error: cannot run test program while cross compiling
14430 See \`config.log' for more details." >&2;}
14431 { (exit 1); exit 1; }; }
14433 cat >conftest.$ac_ext <<_ACEOF
14434 #line $LINENO "configure"
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h. */
14440 $ac_includes_default
14441 long longval () { return (long) (sizeof (int *)); }
14442 unsigned long ulongval () { return (long) (sizeof (int *)); }
14444 #include <stdlib.h>
14449 FILE *f = fopen ("conftest.val", "w");
14452 if (((long) (sizeof (int *))) < 0)
14454 long i = longval ();
14455 if (i != ((long) (sizeof (int *))))
14457 fprintf (f, "%ld\n", i);
14461 unsigned long i = ulongval ();
14462 if (i != ((long) (sizeof (int *))))
14464 fprintf (f, "%lu\n", i);
14466 exit (ferror (f) || fclose (f) != 0);
14472 rm -f conftest$ac_exeext
14473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14474 (eval $ac_link) 2>&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; }; then
14483 ac_cv_sizeof_int_p=`cat conftest.val`
14485 echo "$as_me: program exited with status $ac_status" >&5
14486 echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.$ac_ext >&5
14489 ( exit $ac_status )
14490 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14491 See \`config.log' for more details." >&5
14492 echo "$as_me: error: cannot compute sizeof (int *), 77
14493 See \`config.log' for more details." >&2;}
14494 { (exit 1); exit 1; }; }
14496 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14501 ac_cv_sizeof_int_p=0
14504 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14505 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14506 cat >>confdefs.h <<_ACEOF
14507 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14512 # Check for sys/types.h types
14513 echo "$as_me:$LINENO: checking for u_int type" >&5
14514 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14515 if test "${ac_cv_have_u_int+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14519 cat >conftest.$ac_ext <<_ACEOF
14520 #line $LINENO "configure"
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h. */
14526 #include <sys/types.h>
14535 rm -f conftest.$ac_objext
14536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14537 (eval $ac_compile) 2>&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } &&
14541 { ac_try='test -s conftest.$ac_objext'
14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543 (eval $ac_try) 2>&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); }; }; then
14547 ac_cv_have_u_int="yes"
14549 echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14552 ac_cv_have_u_int="no"
14555 rm -f conftest.$ac_objext conftest.$ac_ext
14558 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14559 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14560 if test "x$ac_cv_have_u_int" = "xyes" ; then
14561 cat >>confdefs.h <<\_ACEOF
14562 #define HAVE_U_INT 1
14568 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14569 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14570 if test "${ac_cv_have_intmax_t+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14574 cat >conftest.$ac_ext <<_ACEOF
14575 #line $LINENO "configure"
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h. */
14581 #include <sys/types.h>
14590 rm -f conftest.$ac_objext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592 (eval $ac_compile) 2>&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } &&
14596 { ac_try='test -s conftest.$ac_objext'
14597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 (eval $ac_try) 2>&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; }; then
14602 ac_cv_have_intmax_t="yes"
14604 echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14608 cat >conftest.$ac_ext <<_ACEOF
14609 #line $LINENO "configure"
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h. */
14615 #include <stdint.h>
14624 rm -f conftest.$ac_objext
14625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14626 (eval $ac_compile) 2>&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
14630 { ac_try='test -s conftest.$ac_objext'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14636 ac_cv_have_intmax_t="yes"
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14641 ac_cv_have_intmax_t="no"
14644 rm -f conftest.$ac_objext conftest.$ac_ext
14648 rm -f conftest.$ac_objext conftest.$ac_ext
14652 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14653 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14654 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14655 cat >>confdefs.h <<\_ACEOF
14656 #define HAVE_INTMAX_T 1
14663 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14664 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14665 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14669 cat >conftest.$ac_ext <<_ACEOF
14670 #line $LINENO "configure"
14673 cat confdefs.h >>conftest.$ac_ext
14674 cat >>conftest.$ac_ext <<_ACEOF
14675 /* end confdefs.h. */
14676 #include <sys/types.h>
14680 u_intmax_t a; a = 1;
14685 rm -f conftest.$ac_objext
14686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14687 (eval $ac_compile) 2>&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } &&
14691 { ac_try='test -s conftest.$ac_objext'
14692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693 (eval $ac_try) 2>&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; }; then
14697 ac_cv_have_u_intmax_t="yes"
14699 echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14703 cat >conftest.$ac_ext <<_ACEOF
14704 #line $LINENO "configure"
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h. */
14710 #include <stdint.h>
14714 u_intmax_t a; a = 1;
14719 rm -f conftest.$ac_objext
14720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14721 (eval $ac_compile) 2>&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } &&
14725 { ac_try='test -s conftest.$ac_objext'
14726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727 (eval $ac_try) 2>&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; }; then
14731 ac_cv_have_u_intmax_t="yes"
14733 echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14736 ac_cv_have_u_intmax_t="no"
14739 rm -f conftest.$ac_objext conftest.$ac_ext
14743 rm -f conftest.$ac_objext conftest.$ac_ext
14746 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14747 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14748 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14749 cat >>confdefs.h <<\_ACEOF
14750 #define HAVE_U_INTMAX_T 1
14757 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14758 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14759 if test "${ac_cv_have_intxx_t+set}" = set; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14763 cat >conftest.$ac_ext <<_ACEOF
14764 #line $LINENO "configure"
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h. */
14770 #include <sys/types.h>
14774 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14779 rm -f conftest.$ac_objext
14780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14781 (eval $ac_compile) 2>&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } &&
14785 { ac_try='test -s conftest.$ac_objext'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; }; then
14791 ac_cv_have_intxx_t="yes"
14793 echo "$as_me: failed program was:" >&5
14794 sed 's/^/| /' conftest.$ac_ext >&5
14796 ac_cv_have_intxx_t="no"
14799 rm -f conftest.$ac_objext conftest.$ac_ext
14802 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14803 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14804 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14805 cat >>confdefs.h <<\_ACEOF
14806 #define HAVE_INTXX_T 1
14812 echo "$as_me:$LINENO: checking for int64_t type" >&5
14813 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14814 if test "${ac_cv_have_int64_t+set}" = set; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14818 cat >conftest.$ac_ext <<_ACEOF
14819 #line $LINENO "configure"
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14825 #include <sys/types.h>
14834 rm -f conftest.$ac_objext
14835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14836 (eval $ac_compile) 2>&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } &&
14840 { ac_try='test -s conftest.$ac_objext'
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; }; then
14846 ac_cv_have_int64_t="yes"
14848 echo "$as_me: failed program was:" >&5
14849 sed 's/^/| /' conftest.$ac_ext >&5
14851 ac_cv_have_int64_t="no"
14854 rm -f conftest.$ac_objext conftest.$ac_ext
14857 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14858 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14859 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14860 cat >>confdefs.h <<\_ACEOF
14861 #define HAVE_INT64_T 1
14867 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14868 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14869 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14870 echo $ECHO_N "(cached) $ECHO_C" >&6
14873 cat >conftest.$ac_ext <<_ACEOF
14874 #line $LINENO "configure"
14877 cat confdefs.h >>conftest.$ac_ext
14878 cat >>conftest.$ac_ext <<_ACEOF
14879 /* end confdefs.h. */
14880 #include <sys/types.h>
14884 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14889 rm -f conftest.$ac_objext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14891 (eval $ac_compile) 2>&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } &&
14895 { ac_try='test -s conftest.$ac_objext'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; }; then
14901 ac_cv_have_u_intxx_t="yes"
14903 echo "$as_me: failed program was:" >&5
14904 sed 's/^/| /' conftest.$ac_ext >&5
14906 ac_cv_have_u_intxx_t="no"
14909 rm -f conftest.$ac_objext conftest.$ac_ext
14912 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14913 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14914 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14915 cat >>confdefs.h <<\_ACEOF
14916 #define HAVE_U_INTXX_T 1
14922 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14923 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14924 if test "${ac_cv_have_u_int64_t+set}" = set; then
14925 echo $ECHO_N "(cached) $ECHO_C" >&6
14928 cat >conftest.$ac_ext <<_ACEOF
14929 #line $LINENO "configure"
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14935 #include <sys/types.h>
14939 u_int64_t a; a = 1;
14944 rm -f conftest.$ac_objext
14945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14946 (eval $ac_compile) 2>&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } &&
14950 { ac_try='test -s conftest.$ac_objext'
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; }; then
14956 ac_cv_have_u_int64_t="yes"
14958 echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14961 ac_cv_have_u_int64_t="no"
14964 rm -f conftest.$ac_objext conftest.$ac_ext
14967 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14968 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14969 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14970 cat >>confdefs.h <<\_ACEOF
14971 #define HAVE_U_INT64_T 1
14977 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14978 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14980 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14981 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14982 cat >conftest.$ac_ext <<_ACEOF
14983 #line $LINENO "configure"
14986 cat confdefs.h >>conftest.$ac_ext
14987 cat >>conftest.$ac_ext <<_ACEOF
14988 /* end confdefs.h. */
14989 #include <sys/bitypes.h>
14993 int8_t a; int16_t b; int32_t c;
14994 u_int8_t e; u_int16_t f; u_int32_t g;
14995 a = b = c = e = f = g = 1;
15000 rm -f conftest.$ac_objext
15001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15002 (eval $ac_compile) 2>&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } &&
15006 { ac_try='test -s conftest.$ac_objext'
15007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008 (eval $ac_try) 2>&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; }; then
15012 cat >>confdefs.h <<\_ACEOF
15013 #define HAVE_U_INTXX_T 1
15016 cat >>confdefs.h <<\_ACEOF
15017 #define HAVE_INTXX_T 1
15020 cat >>confdefs.h <<\_ACEOF
15021 #define HAVE_SYS_BITYPES_H 1
15024 echo "$as_me:$LINENO: result: yes" >&5
15025 echo "${ECHO_T}yes" >&6
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15030 echo "$as_me:$LINENO: result: no" >&5
15031 echo "${ECHO_T}no" >&6
15034 rm -f conftest.$ac_objext conftest.$ac_ext
15037 if test -z "$have_u_intxx_t" ; then
15038 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15039 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15040 if test "${ac_cv_have_uintxx_t+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15044 cat >conftest.$ac_ext <<_ACEOF
15045 #line $LINENO "configure"
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15051 #include <sys/types.h>
15055 uint8_t a; uint16_t b;
15056 uint32_t c; a = b = c = 1;
15061 rm -f conftest.$ac_objext
15062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15063 (eval $ac_compile) 2>&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } &&
15067 { ac_try='test -s conftest.$ac_objext'
15068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069 (eval $ac_try) 2>&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; }; then
15073 ac_cv_have_uintxx_t="yes"
15075 echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15078 ac_cv_have_uintxx_t="no"
15081 rm -f conftest.$ac_objext conftest.$ac_ext
15084 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15085 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15086 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15087 cat >>confdefs.h <<\_ACEOF
15088 #define HAVE_UINTXX_T 1
15094 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15095 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15097 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15098 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15099 cat >conftest.$ac_ext <<_ACEOF
15100 #line $LINENO "configure"
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15106 #include <sys/bitypes.h>
15110 int64_t a; u_int64_t b;
15116 rm -f conftest.$ac_objext
15117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15118 (eval $ac_compile) 2>&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } &&
15122 { ac_try='test -s conftest.$ac_objext'
15123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124 (eval $ac_try) 2>&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; }; then
15128 cat >>confdefs.h <<\_ACEOF
15129 #define HAVE_U_INT64_T 1
15132 cat >>confdefs.h <<\_ACEOF
15133 #define HAVE_INT64_T 1
15136 echo "$as_me:$LINENO: result: yes" >&5
15137 echo "${ECHO_T}yes" >&6
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15142 echo "$as_me:$LINENO: result: no" >&5
15143 echo "${ECHO_T}no" >&6
15146 rm -f conftest.$ac_objext conftest.$ac_ext
15149 if (test -z "$have_uintxx_t" && \
15150 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15152 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15153 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15154 cat >conftest.$ac_ext <<_ACEOF
15155 #line $LINENO "configure"
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15161 #include <sys/bitypes.h>
15165 uint8_t a; uint16_t b;
15166 uint32_t c; a = b = c = 1;
15171 rm -f conftest.$ac_objext
15172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15173 (eval $ac_compile) 2>&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); } &&
15177 { ac_try='test -s conftest.$ac_objext'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; }; then
15183 cat >>confdefs.h <<\_ACEOF
15184 #define HAVE_UINTXX_T 1
15187 echo "$as_me:$LINENO: result: yes" >&5
15188 echo "${ECHO_T}yes" >&6
15190 echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15193 echo "$as_me:$LINENO: result: no" >&5
15194 echo "${ECHO_T}no" >&6
15197 rm -f conftest.$ac_objext conftest.$ac_ext
15233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15234 echo "$as_me:$LINENO: checking for $ac_func" >&5
15235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15236 if eval "test \"\${$as_ac_var+set}\" = set"; then
15237 echo $ECHO_N "(cached) $ECHO_C" >&6
15239 cat >conftest.$ac_ext <<_ACEOF
15240 #line $LINENO "configure"
15243 cat confdefs.h >>conftest.$ac_ext
15244 cat >>conftest.$ac_ext <<_ACEOF
15245 /* end confdefs.h. */
15246 /* System header to define __stub macros and hopefully few prototypes,
15247 which can conflict with char $ac_func (); below.
15248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15249 <limits.h> exists even on freestanding compilers. */
15251 # include <limits.h>
15253 # include <assert.h>
15255 /* Override any gcc2 internal prototype to avoid an error. */
15260 /* We use char because int might match the return type of a gcc2
15261 builtin and then its argument prototype would still apply. */
15263 /* The GNU C library defines this for functions which it implements
15264 to always fail with ENOSYS. Some functions are actually named
15265 something starting with __ and the normal name is an alias. */
15266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15269 char (*f) () = $ac_func;
15278 return f != $ac_func;
15283 rm -f conftest.$ac_objext conftest$ac_exeext
15284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15285 (eval $ac_link) 2>&5
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); } &&
15289 { ac_try='test -s conftest$ac_exeext'
15290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291 (eval $ac_try) 2>&5
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); }; }; then
15295 eval "$as_ac_var=yes"
15297 echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15300 eval "$as_ac_var=no"
15302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15306 if test `eval echo '${'$as_ac_var'}'` = yes; then
15307 cat >>confdefs.h <<_ACEOF
15308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15312 echo 'configure: cannot find needed function.'; exit 1
15319 for ac_func in fchdir
15321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15322 echo "$as_me:$LINENO: checking for $ac_func" >&5
15323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15324 if eval "test \"\${$as_ac_var+set}\" = set"; then
15325 echo $ECHO_N "(cached) $ECHO_C" >&6
15327 cat >conftest.$ac_ext <<_ACEOF
15328 #line $LINENO "configure"
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h. */
15334 /* System header to define __stub macros and hopefully few prototypes,
15335 which can conflict with char $ac_func (); below.
15336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15337 <limits.h> exists even on freestanding compilers. */
15339 # include <limits.h>
15341 # include <assert.h>
15343 /* Override any gcc2 internal prototype to avoid an error. */
15348 /* We use char because int might match the return type of a gcc2
15349 builtin and then its argument prototype would still apply. */
15351 /* The GNU C library defines this for functions which it implements
15352 to always fail with ENOSYS. Some functions are actually named
15353 something starting with __ and the normal name is an alias. */
15354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15357 char (*f) () = $ac_func;
15366 return f != $ac_func;
15371 rm -f conftest.$ac_objext conftest$ac_exeext
15372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15373 (eval $ac_link) 2>&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } &&
15377 { ac_try='test -s conftest$ac_exeext'
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; }; then
15383 eval "$as_ac_var=yes"
15385 echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15388 eval "$as_ac_var=no"
15390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15394 if test `eval echo '${'$as_ac_var'}'` = yes; then
15395 cat >>confdefs.h <<_ACEOF
15396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15398 cat >>confdefs.h <<\_ACEOF
15399 #define HAVE_FCHDIR 1
15406 for ac_func in strtoll
15408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15409 echo "$as_me:$LINENO: checking for $ac_func" >&5
15410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15411 if eval "test \"\${$as_ac_var+set}\" = set"; then
15412 echo $ECHO_N "(cached) $ECHO_C" >&6
15414 cat >conftest.$ac_ext <<_ACEOF
15415 #line $LINENO "configure"
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h. */
15421 /* System header to define __stub macros and hopefully few prototypes,
15422 which can conflict with char $ac_func (); below.
15423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15424 <limits.h> exists even on freestanding compilers. */
15426 # include <limits.h>
15428 # include <assert.h>
15430 /* Override any gcc2 internal prototype to avoid an error. */
15435 /* We use char because int might match the return type of a gcc2
15436 builtin and then its argument prototype would still apply. */
15438 /* The GNU C library defines this for functions which it implements
15439 to always fail with ENOSYS. Some functions are actually named
15440 something starting with __ and the normal name is an alias. */
15441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15444 char (*f) () = $ac_func;
15453 return f != $ac_func;
15458 rm -f conftest.$ac_objext conftest$ac_exeext
15459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15460 (eval $ac_link) 2>&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } &&
15464 { ac_try='test -s conftest$ac_exeext'
15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; }; then
15470 eval "$as_ac_var=yes"
15472 echo "$as_me: failed program was:" >&5
15473 sed 's/^/| /' conftest.$ac_ext >&5
15475 eval "$as_ac_var=no"
15477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15481 if test `eval echo '${'$as_ac_var'}'` = yes; then
15482 cat >>confdefs.h <<_ACEOF
15483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15485 cat >>confdefs.h <<\_ACEOF
15486 #define HAVE_STRTOLL 1
15494 for ac_func in chflags
15496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15497 echo "$as_me:$LINENO: checking for $ac_func" >&5
15498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15499 if eval "test \"\${$as_ac_var+set}\" = set"; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15502 cat >conftest.$ac_ext <<_ACEOF
15503 #line $LINENO "configure"
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15509 /* System header to define __stub macros and hopefully few prototypes,
15510 which can conflict with char $ac_func (); below.
15511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15512 <limits.h> exists even on freestanding compilers. */
15514 # include <limits.h>
15516 # include <assert.h>
15518 /* Override any gcc2 internal prototype to avoid an error. */
15523 /* We use char because int might match the return type of a gcc2
15524 builtin and then its argument prototype would still apply. */
15526 /* The GNU C library defines this for functions which it implements
15527 to always fail with ENOSYS. Some functions are actually named
15528 something starting with __ and the normal name is an alias. */
15529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15532 char (*f) () = $ac_func;
15541 return f != $ac_func;
15546 rm -f conftest.$ac_objext conftest$ac_exeext
15547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15548 (eval $ac_link) 2>&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } &&
15552 { ac_try='test -s conftest$ac_exeext'
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15558 eval "$as_ac_var=yes"
15560 echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15563 eval "$as_ac_var=no"
15565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15568 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15569 if test `eval echo '${'$as_ac_var'}'` = yes; then
15570 cat >>confdefs.h <<_ACEOF
15571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15582 for ac_func in snprintf vsnprintf gethostid getdomainname
15584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15585 echo "$as_me:$LINENO: checking for $ac_func" >&5
15586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15587 if eval "test \"\${$as_ac_var+set}\" = set"; then
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
15590 cat >conftest.$ac_ext <<_ACEOF
15591 #line $LINENO "configure"
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h. */
15597 /* System header to define __stub macros and hopefully few prototypes,
15598 which can conflict with char $ac_func (); below.
15599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15600 <limits.h> exists even on freestanding compilers. */
15602 # include <limits.h>
15604 # include <assert.h>
15606 /* Override any gcc2 internal prototype to avoid an error. */
15611 /* We use char because int might match the return type of a gcc2
15612 builtin and then its argument prototype would still apply. */
15614 /* The GNU C library defines this for functions which it implements
15615 to always fail with ENOSYS. Some functions are actually named
15616 something starting with __ and the normal name is an alias. */
15617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15620 char (*f) () = $ac_func;
15629 return f != $ac_func;
15634 rm -f conftest.$ac_objext conftest$ac_exeext
15635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15636 (eval $ac_link) 2>&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } &&
15640 { ac_try='test -s conftest$ac_exeext'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; }; then
15646 eval "$as_ac_var=yes"
15648 echo "$as_me: failed program was:" >&5
15649 sed 's/^/| /' conftest.$ac_ext >&5
15651 eval "$as_ac_var=no"
15653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15657 if test `eval echo '${'$as_ac_var'}'` = yes; then
15658 cat >>confdefs.h <<_ACEOF
15659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15670 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15673 echo "$as_me:$LINENO: checking for $ac_func" >&5
15674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15675 if eval "test \"\${$as_ac_var+set}\" = set"; then
15676 echo $ECHO_N "(cached) $ECHO_C" >&6
15678 cat >conftest.$ac_ext <<_ACEOF
15679 #line $LINENO "configure"
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h. */
15685 /* System header to define __stub macros and hopefully few prototypes,
15686 which can conflict with char $ac_func (); below.
15687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15688 <limits.h> exists even on freestanding compilers. */
15690 # include <limits.h>
15692 # include <assert.h>
15694 /* Override any gcc2 internal prototype to avoid an error. */
15699 /* We use char because int might match the return type of a gcc2
15700 builtin and then its argument prototype would still apply. */
15702 /* The GNU C library defines this for functions which it implements
15703 to always fail with ENOSYS. Some functions are actually named
15704 something starting with __ and the normal name is an alias. */
15705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15708 char (*f) () = $ac_func;
15717 return f != $ac_func;
15722 rm -f conftest.$ac_objext conftest$ac_exeext
15723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15724 (eval $ac_link) 2>&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } &&
15728 { ac_try='test -s conftest$ac_exeext'
15729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15730 (eval $ac_try) 2>&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); }; }; then
15734 eval "$as_ac_var=yes"
15736 echo "$as_me: failed program was:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15739 eval "$as_ac_var=no"
15741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15745 if test `eval echo '${'$as_ac_var'}'` = yes; then
15746 cat >>confdefs.h <<_ACEOF
15747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15754 # If resolver functions are not in libc check for -lnsl or -lresolv.
15755 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15756 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15757 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15758 echo $ECHO_N "(cached) $ECHO_C" >&6
15760 cat >conftest.$ac_ext <<_ACEOF
15761 #line $LINENO "configure"
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h. */
15767 /* System header to define __stub macros and hopefully few prototypes,
15768 which can conflict with char gethostbyname_r (); below.
15769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15770 <limits.h> exists even on freestanding compilers. */
15772 # include <limits.h>
15774 # include <assert.h>
15776 /* Override any gcc2 internal prototype to avoid an error. */
15781 /* We use char because int might match the return type of a gcc2
15782 builtin and then its argument prototype would still apply. */
15783 char gethostbyname_r ();
15784 /* The GNU C library defines this for functions which it implements
15785 to always fail with ENOSYS. Some functions are actually named
15786 something starting with __ and the normal name is an alias. */
15787 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15790 char (*f) () = gethostbyname_r;
15799 return f != gethostbyname_r;
15804 rm -f conftest.$ac_objext conftest$ac_exeext
15805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15806 (eval $ac_link) 2>&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } &&
15810 { ac_try='test -s conftest$ac_exeext'
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; }; then
15816 ac_cv_func_gethostbyname_r=yes
15818 echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15821 ac_cv_func_gethostbyname_r=no
15823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15825 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15826 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15827 if test $ac_cv_func_gethostbyname_r = yes; then
15828 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15829 echo "${ECHO_T}using libc's resolver" >&6
15832 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15833 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15834 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15835 echo $ECHO_N "(cached) $ECHO_C" >&6
15837 ac_check_lib_save_LIBS=$LIBS
15839 cat >conftest.$ac_ext <<_ACEOF
15840 #line $LINENO "configure"
15843 cat confdefs.h >>conftest.$ac_ext
15844 cat >>conftest.$ac_ext <<_ACEOF
15845 /* end confdefs.h. */
15847 /* Override any gcc2 internal prototype to avoid an error. */
15851 /* We use char because int might match the return type of a gcc2
15852 builtin and then its argument prototype would still apply. */
15853 char gethostbyname_r ();
15857 gethostbyname_r ();
15862 rm -f conftest.$ac_objext conftest$ac_exeext
15863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15864 (eval $ac_link) 2>&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } &&
15868 { ac_try='test -s conftest$ac_exeext'
15869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870 (eval $ac_try) 2>&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; }; then
15874 ac_cv_lib_nsl_gethostbyname_r=yes
15876 echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15879 ac_cv_lib_nsl_gethostbyname_r=no
15881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15882 LIBS=$ac_check_lib_save_LIBS
15884 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15885 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15886 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15887 cat >>confdefs.h <<_ACEOF
15888 #define HAVE_LIBNSL 1
15896 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15897 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15898 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15899 echo $ECHO_N "(cached) $ECHO_C" >&6
15901 ac_check_lib_save_LIBS=$LIBS
15902 LIBS="-lresolv $LIBS"
15903 cat >conftest.$ac_ext <<_ACEOF
15904 #line $LINENO "configure"
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h. */
15911 /* Override any gcc2 internal prototype to avoid an error. */
15915 /* We use char because int might match the return type of a gcc2
15916 builtin and then its argument prototype would still apply. */
15917 char gethostbyname_r ();
15921 gethostbyname_r ();
15926 rm -f conftest.$ac_objext conftest$ac_exeext
15927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15928 (eval $ac_link) 2>&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } &&
15932 { ac_try='test -s conftest$ac_exeext'
15933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934 (eval $ac_try) 2>&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; }; then
15938 ac_cv_lib_resolv_gethostbyname_r=yes
15940 echo "$as_me: failed program was:" >&5
15941 sed 's/^/| /' conftest.$ac_ext >&5
15943 ac_cv_lib_resolv_gethostbyname_r=no
15945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15946 LIBS=$ac_check_lib_save_LIBS
15948 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15949 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15950 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15951 cat >>confdefs.h <<_ACEOF
15952 #define HAVE_LIBRESOLV 1
15955 LIBS="-lresolv $LIBS"
15963 # Find where sockets are (especially for Solaris)
15964 echo "$as_me:$LINENO: checking for socket" >&5
15965 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15966 if test "${ac_cv_func_socket+set}" = set; then
15967 echo $ECHO_N "(cached) $ECHO_C" >&6
15969 cat >conftest.$ac_ext <<_ACEOF
15970 #line $LINENO "configure"
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 /* System header to define __stub macros and hopefully few prototypes,
15977 which can conflict with char socket (); below.
15978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15979 <limits.h> exists even on freestanding compilers. */
15981 # include <limits.h>
15983 # include <assert.h>
15985 /* Override any gcc2 internal prototype to avoid an error. */
15990 /* We use char because int might match the return type of a gcc2
15991 builtin and then its argument prototype would still apply. */
15993 /* The GNU C library defines this for functions which it implements
15994 to always fail with ENOSYS. Some functions are actually named
15995 something starting with __ and the normal name is an alias. */
15996 #if defined (__stub_socket) || defined (__stub___socket)
15999 char (*f) () = socket;
16008 return f != socket;
16013 rm -f conftest.$ac_objext conftest$ac_exeext
16014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16015 (eval $ac_link) 2>&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); } &&
16019 { ac_try='test -s conftest$ac_exeext'
16020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021 (eval $ac_try) 2>&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; }; then
16025 ac_cv_func_socket=yes
16027 echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.$ac_ext >&5
16030 ac_cv_func_socket=no
16032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16034 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16035 echo "${ECHO_T}$ac_cv_func_socket" >&6
16036 if test $ac_cv_func_socket = yes; then
16037 echo "$as_me:$LINENO: result: using libc's socket" >&5
16038 echo "${ECHO_T}using libc's socket" >&6
16041 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
16042 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
16043 if test "${ac_cv_lib_xnet_socket+set}" = set; then
16044 echo $ECHO_N "(cached) $ECHO_C" >&6
16046 ac_check_lib_save_LIBS=$LIBS
16047 LIBS="-lxnet $LIBS"
16048 cat >conftest.$ac_ext <<_ACEOF
16049 #line $LINENO "configure"
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h. */
16056 /* Override any gcc2 internal prototype to avoid an error. */
16060 /* We use char because int might match the return type of a gcc2
16061 builtin and then its argument prototype would still apply. */
16071 rm -f conftest.$ac_objext conftest$ac_exeext
16072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16073 (eval $ac_link) 2>&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); } &&
16077 { ac_try='test -s conftest$ac_exeext'
16078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079 (eval $ac_try) 2>&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; }; then
16083 ac_cv_lib_xnet_socket=yes
16085 echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16088 ac_cv_lib_xnet_socket=no
16090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16091 LIBS=$ac_check_lib_save_LIBS
16093 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16094 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16095 if test $ac_cv_lib_xnet_socket = yes; then
16096 cat >>confdefs.h <<_ACEOF
16097 #define HAVE_LIBXNET 1
16100 LIBS="-lxnet $LIBS"
16105 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16106 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16107 if test "${ac_cv_lib_socket_socket+set}" = set; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16110 ac_check_lib_save_LIBS=$LIBS
16111 LIBS="-lsocket $LIBS"
16112 cat >conftest.$ac_ext <<_ACEOF
16113 #line $LINENO "configure"
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h. */
16120 /* Override any gcc2 internal prototype to avoid an error. */
16124 /* We use char because int might match the return type of a gcc2
16125 builtin and then its argument prototype would still apply. */
16135 rm -f conftest.$ac_objext conftest$ac_exeext
16136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16137 (eval $ac_link) 2>&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } &&
16141 { ac_try='test -s conftest$ac_exeext'
16142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143 (eval $ac_try) 2>&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; }; then
16147 ac_cv_lib_socket_socket=yes
16149 echo "$as_me: failed program was:" >&5
16150 sed 's/^/| /' conftest.$ac_ext >&5
16152 ac_cv_lib_socket_socket=no
16154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16155 LIBS=$ac_check_lib_save_LIBS
16157 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16158 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16159 if test $ac_cv_lib_socket_socket = yes; then
16160 cat >>confdefs.h <<_ACEOF
16161 #define HAVE_LIBSOCKET 1
16164 LIBS="-lsocket $LIBS"
16169 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16170 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16171 if test "${ac_cv_lib_inet_socket+set}" = set; then
16172 echo $ECHO_N "(cached) $ECHO_C" >&6
16174 ac_check_lib_save_LIBS=$LIBS
16175 LIBS="-linet $LIBS"
16176 cat >conftest.$ac_ext <<_ACEOF
16177 #line $LINENO "configure"
16180 cat confdefs.h >>conftest.$ac_ext
16181 cat >>conftest.$ac_ext <<_ACEOF
16182 /* end confdefs.h. */
16184 /* Override any gcc2 internal prototype to avoid an error. */
16188 /* We use char because int might match the return type of a gcc2
16189 builtin and then its argument prototype would still apply. */
16199 rm -f conftest.$ac_objext conftest$ac_exeext
16200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16201 (eval $ac_link) 2>&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); } &&
16205 { ac_try='test -s conftest$ac_exeext'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16211 ac_cv_lib_inet_socket=yes
16213 echo "$as_me: failed program was:" >&5
16214 sed 's/^/| /' conftest.$ac_ext >&5
16216 ac_cv_lib_inet_socket=no
16218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16219 LIBS=$ac_check_lib_save_LIBS
16221 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16222 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16223 if test $ac_cv_lib_inet_socket = yes; then
16224 cat >>confdefs.h <<_ACEOF
16225 #define HAVE_LIBINET 1
16228 LIBS="-linet $LIBS"
16236 for ac_func in inet_pton
16238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16239 echo "$as_me:$LINENO: checking for $ac_func" >&5
16240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16241 if eval "test \"\${$as_ac_var+set}\" = set"; then
16242 echo $ECHO_N "(cached) $ECHO_C" >&6
16244 cat >conftest.$ac_ext <<_ACEOF
16245 #line $LINENO "configure"
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h. */
16251 /* System header to define __stub macros and hopefully few prototypes,
16252 which can conflict with char $ac_func (); below.
16253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16254 <limits.h> exists even on freestanding compilers. */
16256 # include <limits.h>
16258 # include <assert.h>
16260 /* Override any gcc2 internal prototype to avoid an error. */
16265 /* We use char because int might match the return type of a gcc2
16266 builtin and then its argument prototype would still apply. */
16268 /* The GNU C library defines this for functions which it implements
16269 to always fail with ENOSYS. Some functions are actually named
16270 something starting with __ and the normal name is an alias. */
16271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16274 char (*f) () = $ac_func;
16283 return f != $ac_func;
16288 rm -f conftest.$ac_objext conftest$ac_exeext
16289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16290 (eval $ac_link) 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } &&
16294 { ac_try='test -s conftest$ac_exeext'
16295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296 (eval $ac_try) 2>&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; }; then
16300 eval "$as_ac_var=yes"
16302 echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16305 eval "$as_ac_var=no"
16307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16311 if test `eval echo '${'$as_ac_var'}'` = yes; then
16312 cat >>confdefs.h <<_ACEOF
16313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16315 cat >>confdefs.h <<\_ACEOF
16316 #define HAVE_INET_PTON 1
16323 for ac_func in inet_ntop
16325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16326 echo "$as_me:$LINENO: checking for $ac_func" >&5
16327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16328 if eval "test \"\${$as_ac_var+set}\" = set"; then
16329 echo $ECHO_N "(cached) $ECHO_C" >&6
16331 cat >conftest.$ac_ext <<_ACEOF
16332 #line $LINENO "configure"
16335 cat confdefs.h >>conftest.$ac_ext
16336 cat >>conftest.$ac_ext <<_ACEOF
16337 /* end confdefs.h. */
16338 /* System header to define __stub macros and hopefully few prototypes,
16339 which can conflict with char $ac_func (); below.
16340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16341 <limits.h> exists even on freestanding compilers. */
16343 # include <limits.h>
16345 # include <assert.h>
16347 /* Override any gcc2 internal prototype to avoid an error. */
16352 /* We use char because int might match the return type of a gcc2
16353 builtin and then its argument prototype would still apply. */
16355 /* The GNU C library defines this for functions which it implements
16356 to always fail with ENOSYS. Some functions are actually named
16357 something starting with __ and the normal name is an alias. */
16358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16361 char (*f) () = $ac_func;
16370 return f != $ac_func;
16375 rm -f conftest.$ac_objext conftest$ac_exeext
16376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16377 (eval $ac_link) 2>&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); } &&
16381 { ac_try='test -s conftest$ac_exeext'
16382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16383 (eval $ac_try) 2>&5
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); }; }; then
16387 eval "$as_ac_var=yes"
16389 echo "$as_me: failed program was:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16392 eval "$as_ac_var=no"
16394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16398 if test `eval echo '${'$as_ac_var'}'` = yes; then
16399 cat >>confdefs.h <<_ACEOF
16400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16402 cat >>confdefs.h <<\_ACEOF
16403 #define HAVE_INET_NTOP 1
16410 for ac_func in gethostbyname2
16412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16413 echo "$as_me:$LINENO: checking for $ac_func" >&5
16414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16415 if eval "test \"\${$as_ac_var+set}\" = set"; then
16416 echo $ECHO_N "(cached) $ECHO_C" >&6
16418 cat >conftest.$ac_ext <<_ACEOF
16419 #line $LINENO "configure"
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h. */
16425 /* System header to define __stub macros and hopefully few prototypes,
16426 which can conflict with char $ac_func (); below.
16427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16428 <limits.h> exists even on freestanding compilers. */
16430 # include <limits.h>
16432 # include <assert.h>
16434 /* Override any gcc2 internal prototype to avoid an error. */
16439 /* We use char because int might match the return type of a gcc2
16440 builtin and then its argument prototype would still apply. */
16442 /* The GNU C library defines this for functions which it implements
16443 to always fail with ENOSYS. Some functions are actually named
16444 something starting with __ and the normal name is an alias. */
16445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16448 char (*f) () = $ac_func;
16457 return f != $ac_func;
16462 rm -f conftest.$ac_objext conftest$ac_exeext
16463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16464 (eval $ac_link) 2>&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } &&
16468 { ac_try='test -s conftest$ac_exeext'
16469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470 (eval $ac_try) 2>&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; }; then
16474 eval "$as_ac_var=yes"
16476 echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16479 eval "$as_ac_var=no"
16481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16485 if test `eval echo '${'$as_ac_var'}'` = yes; then
16486 cat >>confdefs.h <<_ACEOF
16487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16489 cat >>confdefs.h <<\_ACEOF
16490 #define HAVE_GETHOSTBYNAME2 1
16497 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
16498 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
16499 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16502 cat >conftest.$ac_ext <<_ACEOF
16503 #line $LINENO "configure"
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h. */
16509 #include <sys/socket.h>
16513 struct sockaddr s; s.sa_len;
16518 rm -f conftest.$ac_objext
16519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16520 (eval $ac_compile) 2>&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); } &&
16524 { ac_try='test -s conftest.$ac_objext'
16525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526 (eval $ac_try) 2>&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); }; }; then
16530 ac_cv_struct_sockaddr_sa_len=yes
16532 echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16535 ac_cv_struct_sockaddr_sa_len=no
16537 rm -f conftest.$ac_objext conftest.$ac_ext
16539 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
16540 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
16542 if test $ac_cv_struct_sockaddr_sa_len = yes; then
16544 cat >>confdefs.h <<\_ACEOF
16545 #define HAVE_SA_LEN 1
16551 echo "$as_me:$LINENO: checking for IPv6 support" >&5
16552 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
16553 if test "${ac_cv_ipv6_support+set}" = set; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
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 <sys/types.h>
16564 #include <sys/socket.h>
16565 #include <netinet/in.h>
16569 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
16575 rm -f conftest.$ac_objext conftest$ac_exeext
16576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16577 (eval $ac_link) 2>&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } &&
16581 { ac_try='test -s conftest$ac_exeext'
16582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583 (eval $ac_try) 2>&5
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; }; then
16587 ac_cv_ipv6_support=yes
16589 echo "$as_me: failed program was:" >&5
16590 sed 's/^/| /' conftest.$ac_ext >&5
16592 ac_cv_ipv6_support=no
16594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16596 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
16597 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
16599 if test "$ac_cv_ipv6_support" = yes; then
16601 cat >>confdefs.h <<\_ACEOF
16602 #define HAVE_IPV6 1
16610 for ac_func in strftime
16612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16613 echo "$as_me:$LINENO: checking for $ac_func" >&5
16614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16615 if eval "test \"\${$as_ac_var+set}\" = set"; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 cat >conftest.$ac_ext <<_ACEOF
16619 #line $LINENO "configure"
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16625 /* System header to define __stub macros and hopefully few prototypes,
16626 which can conflict with char $ac_func (); below.
16627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16628 <limits.h> exists even on freestanding compilers. */
16630 # include <limits.h>
16632 # include <assert.h>
16634 /* Override any gcc2 internal prototype to avoid an error. */
16639 /* We use char because int might match the return type of a gcc2
16640 builtin and then its argument prototype would still apply. */
16642 /* The GNU C library defines this for functions which it implements
16643 to always fail with ENOSYS. Some functions are actually named
16644 something starting with __ and the normal name is an alias. */
16645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16648 char (*f) () = $ac_func;
16657 return f != $ac_func;
16662 rm -f conftest.$ac_objext conftest$ac_exeext
16663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16664 (eval $ac_link) 2>&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } &&
16668 { ac_try='test -s conftest$ac_exeext'
16669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670 (eval $ac_try) 2>&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; }; then
16674 eval "$as_ac_var=yes"
16676 echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16679 eval "$as_ac_var=no"
16681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16685 if test `eval echo '${'$as_ac_var'}'` = yes; then
16686 cat >>confdefs.h <<_ACEOF
16687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16691 # strftime is in -lintl on SCO UNIX.
16692 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16693 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16694 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16695 echo $ECHO_N "(cached) $ECHO_C" >&6
16697 ac_check_lib_save_LIBS=$LIBS
16698 LIBS="-lintl $LIBS"
16699 cat >conftest.$ac_ext <<_ACEOF
16700 #line $LINENO "configure"
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16707 /* Override any gcc2 internal prototype to avoid an error. */
16711 /* We use char because int might match the return type of a gcc2
16712 builtin and then its argument prototype would still apply. */
16722 rm -f conftest.$ac_objext conftest$ac_exeext
16723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16724 (eval $ac_link) 2>&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); } &&
16728 { ac_try='test -s conftest$ac_exeext'
16729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16730 (eval $ac_try) 2>&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); }; }; then
16734 ac_cv_lib_intl_strftime=yes
16736 echo "$as_me: failed program was:" >&5
16737 sed 's/^/| /' conftest.$ac_ext >&5
16739 ac_cv_lib_intl_strftime=no
16741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16742 LIBS=$ac_check_lib_save_LIBS
16744 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16745 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16746 if test $ac_cv_lib_intl_strftime = yes; then
16747 cat >>confdefs.h <<\_ACEOF
16748 #define HAVE_STRFTIME 1
16751 LIBS="-lintl $LIBS"
16758 for ac_func in vprintf
16760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16761 echo "$as_me:$LINENO: checking for $ac_func" >&5
16762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16763 if eval "test \"\${$as_ac_var+set}\" = set"; then
16764 echo $ECHO_N "(cached) $ECHO_C" >&6
16766 cat >conftest.$ac_ext <<_ACEOF
16767 #line $LINENO "configure"
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h. */
16773 /* System header to define __stub macros and hopefully few prototypes,
16774 which can conflict with char $ac_func (); below.
16775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16776 <limits.h> exists even on freestanding compilers. */
16778 # include <limits.h>
16780 # include <assert.h>
16782 /* Override any gcc2 internal prototype to avoid an error. */
16787 /* We use char because int might match the return type of a gcc2
16788 builtin and then its argument prototype would still apply. */
16790 /* The GNU C library defines this for functions which it implements
16791 to always fail with ENOSYS. Some functions are actually named
16792 something starting with __ and the normal name is an alias. */
16793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16796 char (*f) () = $ac_func;
16805 return f != $ac_func;
16810 rm -f conftest.$ac_objext conftest$ac_exeext
16811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16812 (eval $ac_link) 2>&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } &&
16816 { ac_try='test -s conftest$ac_exeext'
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
16822 eval "$as_ac_var=yes"
16824 echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16827 eval "$as_ac_var=no"
16829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16833 if test `eval echo '${'$as_ac_var'}'` = yes; then
16834 cat >>confdefs.h <<_ACEOF
16835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16838 echo "$as_me:$LINENO: checking for _doprnt" >&5
16839 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16840 if test "${ac_cv_func__doprnt+set}" = set; then
16841 echo $ECHO_N "(cached) $ECHO_C" >&6
16843 cat >conftest.$ac_ext <<_ACEOF
16844 #line $LINENO "configure"
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h. */
16850 /* System header to define __stub macros and hopefully few prototypes,
16851 which can conflict with char _doprnt (); below.
16852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16853 <limits.h> exists even on freestanding compilers. */
16855 # include <limits.h>
16857 # include <assert.h>
16859 /* Override any gcc2 internal prototype to avoid an error. */
16864 /* We use char because int might match the return type of a gcc2
16865 builtin and then its argument prototype would still apply. */
16867 /* The GNU C library defines this for functions which it implements
16868 to always fail with ENOSYS. Some functions are actually named
16869 something starting with __ and the normal name is an alias. */
16870 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16873 char (*f) () = _doprnt;
16882 return f != _doprnt;
16887 rm -f conftest.$ac_objext conftest$ac_exeext
16888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16889 (eval $ac_link) 2>&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -s conftest$ac_exeext'
16894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895 (eval $ac_try) 2>&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; }; then
16899 ac_cv_func__doprnt=yes
16901 echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16904 ac_cv_func__doprnt=no
16906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16908 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16909 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16910 if test $ac_cv_func__doprnt = yes; then
16912 cat >>confdefs.h <<\_ACEOF
16913 #define HAVE_DOPRNT 1
16922 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16923 # for constant arguments. Useless!
16924 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16925 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16926 if test "${ac_cv_working_alloca_h+set}" = set; then
16927 echo $ECHO_N "(cached) $ECHO_C" >&6
16929 cat >conftest.$ac_ext <<_ACEOF
16930 #line $LINENO "configure"
16933 cat confdefs.h >>conftest.$ac_ext
16934 cat >>conftest.$ac_ext <<_ACEOF
16935 /* end confdefs.h. */
16936 #include <alloca.h>
16940 char *p = (char *) alloca (2 * sizeof (int));
16945 rm -f conftest.$ac_objext conftest$ac_exeext
16946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16947 (eval $ac_link) 2>&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); } &&
16951 { ac_try='test -s conftest$ac_exeext'
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; }; then
16957 ac_cv_working_alloca_h=yes
16959 echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16962 ac_cv_working_alloca_h=no
16964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16966 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16967 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16968 if test $ac_cv_working_alloca_h = yes; then
16970 cat >>confdefs.h <<\_ACEOF
16971 #define HAVE_ALLOCA_H 1
16976 echo "$as_me:$LINENO: checking for alloca" >&5
16977 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16978 if test "${ac_cv_func_alloca_works+set}" = set; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16981 cat >conftest.$ac_ext <<_ACEOF
16982 #line $LINENO "configure"
16985 cat confdefs.h >>conftest.$ac_ext
16986 cat >>conftest.$ac_ext <<_ACEOF
16987 /* end confdefs.h. */
16989 # define alloca __builtin_alloca
16992 # include <malloc.h>
16993 # define alloca _alloca
16996 # include <alloca.h>
17001 # ifndef alloca /* predefined by HP cc +Olibcalls */
17012 char *p = (char *) alloca (1);
17017 rm -f conftest.$ac_objext conftest$ac_exeext
17018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17019 (eval $ac_link) 2>&5
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); } &&
17023 { ac_try='test -s conftest$ac_exeext'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; }; then
17029 ac_cv_func_alloca_works=yes
17031 echo "$as_me: failed program was:" >&5
17032 sed 's/^/| /' conftest.$ac_ext >&5
17034 ac_cv_func_alloca_works=no
17036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17038 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17039 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17041 if test $ac_cv_func_alloca_works = yes; then
17043 cat >>confdefs.h <<\_ACEOF
17044 #define HAVE_ALLOCA 1
17048 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17049 # that cause trouble. Some versions do not even contain alloca or
17050 # contain a buggy version. If you still want to use their alloca,
17051 # use ar to extract alloca.o from them instead of compiling alloca.c.
17053 ALLOCA=alloca.$ac_objext
17055 cat >>confdefs.h <<\_ACEOF
17060 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17061 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17062 if test "${ac_cv_os_cray+set}" = set; then
17063 echo $ECHO_N "(cached) $ECHO_C" >&6
17065 cat >conftest.$ac_ext <<_ACEOF
17066 #line $LINENO "configure"
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h. */
17072 #if defined(CRAY) && ! defined(CRAY2)
17079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17080 $EGREP "webecray" >/dev/null 2>&1; then
17088 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17089 echo "${ECHO_T}$ac_cv_os_cray" >&6
17090 if test $ac_cv_os_cray = yes; then
17091 for ac_func in _getb67 GETB67 getb67; do
17092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17093 echo "$as_me:$LINENO: checking for $ac_func" >&5
17094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17095 if eval "test \"\${$as_ac_var+set}\" = set"; then
17096 echo $ECHO_N "(cached) $ECHO_C" >&6
17098 cat >conftest.$ac_ext <<_ACEOF
17099 #line $LINENO "configure"
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h. */
17105 /* System header to define __stub macros and hopefully few prototypes,
17106 which can conflict with char $ac_func (); below.
17107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17108 <limits.h> exists even on freestanding compilers. */
17110 # include <limits.h>
17112 # include <assert.h>
17114 /* Override any gcc2 internal prototype to avoid an error. */
17119 /* We use char because int might match the return type of a gcc2
17120 builtin and then its argument prototype would still apply. */
17122 /* The GNU C library defines this for functions which it implements
17123 to always fail with ENOSYS. Some functions are actually named
17124 something starting with __ and the normal name is an alias. */
17125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17128 char (*f) () = $ac_func;
17137 return f != $ac_func;
17142 rm -f conftest.$ac_objext conftest$ac_exeext
17143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17144 (eval $ac_link) 2>&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); } &&
17148 { ac_try='test -s conftest$ac_exeext'
17149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; }; then
17154 eval "$as_ac_var=yes"
17156 echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17159 eval "$as_ac_var=no"
17161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17165 if test `eval echo '${'$as_ac_var'}'` = yes; then
17167 cat >>confdefs.h <<_ACEOF
17168 #define CRAY_STACKSEG_END $ac_func
17177 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17178 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17179 if test "${ac_cv_c_stack_direction+set}" = set; then
17180 echo $ECHO_N "(cached) $ECHO_C" >&6
17182 if test "$cross_compiling" = yes; then
17183 ac_cv_c_stack_direction=0
17185 cat >conftest.$ac_ext <<_ACEOF
17186 #line $LINENO "configure"
17189 cat confdefs.h >>conftest.$ac_ext
17190 cat >>conftest.$ac_ext <<_ACEOF
17191 /* end confdefs.h. */
17193 find_stack_direction ()
17195 static char *addr = 0;
17200 return find_stack_direction ();
17203 return (&dummy > addr) ? 1 : -1;
17209 exit (find_stack_direction () < 0);
17212 rm -f conftest$ac_exeext
17213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17214 (eval $ac_link) 2>&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17223 ac_cv_c_stack_direction=1
17225 echo "$as_me: program exited with status $ac_status" >&5
17226 echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17229 ( exit $ac_status )
17230 ac_cv_c_stack_direction=-1
17232 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17235 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17236 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17238 cat >>confdefs.h <<_ACEOF
17239 #define STACK_DIRECTION $ac_cv_c_stack_direction
17245 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17246 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17247 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17248 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17251 ac_check_lib_save_LIBS=$LIBS
17253 cat >conftest.$ac_ext <<_ACEOF
17254 #line $LINENO "configure"
17257 cat confdefs.h >>conftest.$ac_ext
17258 cat >>conftest.$ac_ext <<_ACEOF
17259 /* end confdefs.h. */
17261 /* Override any gcc2 internal prototype to avoid an error. */
17265 /* We use char because int might match the return type of a gcc2
17266 builtin and then its argument prototype would still apply. */
17276 rm -f conftest.$ac_objext conftest$ac_exeext
17277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17278 (eval $ac_link) 2>&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); } &&
17282 { ac_try='test -s conftest$ac_exeext'
17283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284 (eval $ac_try) 2>&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; }; then
17288 ac_cv_lib_sun_getmntent=yes
17290 echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17293 ac_cv_lib_sun_getmntent=no
17295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17296 LIBS=$ac_check_lib_save_LIBS
17298 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17299 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17300 if test $ac_cv_lib_sun_getmntent = yes; then
17303 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17304 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17305 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17306 echo $ECHO_N "(cached) $ECHO_C" >&6
17308 ac_check_lib_save_LIBS=$LIBS
17310 cat >conftest.$ac_ext <<_ACEOF
17311 #line $LINENO "configure"
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h. */
17318 /* Override any gcc2 internal prototype to avoid an error. */
17322 /* We use char because int might match the return type of a gcc2
17323 builtin and then its argument prototype would still apply. */
17333 rm -f conftest.$ac_objext conftest$ac_exeext
17334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17335 (eval $ac_link) 2>&5
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); } &&
17339 { ac_try='test -s conftest$ac_exeext'
17340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17341 (eval $ac_try) 2>&5
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); }; }; then
17345 ac_cv_lib_seq_getmntent=yes
17347 echo "$as_me: failed program was:" >&5
17348 sed 's/^/| /' conftest.$ac_ext >&5
17350 ac_cv_lib_seq_getmntent=no
17352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17353 LIBS=$ac_check_lib_save_LIBS
17355 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17356 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17357 if test $ac_cv_lib_seq_getmntent = yes; then
17360 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17361 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17362 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17363 echo $ECHO_N "(cached) $ECHO_C" >&6
17365 ac_check_lib_save_LIBS=$LIBS
17367 cat >conftest.$ac_ext <<_ACEOF
17368 #line $LINENO "configure"
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17375 /* Override any gcc2 internal prototype to avoid an error. */
17379 /* We use char because int might match the return type of a gcc2
17380 builtin and then its argument prototype would still apply. */
17390 rm -f conftest.$ac_objext conftest$ac_exeext
17391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17392 (eval $ac_link) 2>&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } &&
17396 { ac_try='test -s conftest$ac_exeext'
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
17402 ac_cv_lib_gen_getmntent=yes
17404 echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17407 ac_cv_lib_gen_getmntent=no
17409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17410 LIBS=$ac_check_lib_save_LIBS
17412 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17413 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17414 if test $ac_cv_lib_gen_getmntent = yes; then
17423 for ac_func in getmntent
17425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17426 echo "$as_me:$LINENO: checking for $ac_func" >&5
17427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17428 if eval "test \"\${$as_ac_var+set}\" = set"; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17431 cat >conftest.$ac_ext <<_ACEOF
17432 #line $LINENO "configure"
17435 cat confdefs.h >>conftest.$ac_ext
17436 cat >>conftest.$ac_ext <<_ACEOF
17437 /* end confdefs.h. */
17438 /* System header to define __stub macros and hopefully few prototypes,
17439 which can conflict with char $ac_func (); below.
17440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17441 <limits.h> exists even on freestanding compilers. */
17443 # include <limits.h>
17445 # include <assert.h>
17447 /* Override any gcc2 internal prototype to avoid an error. */
17452 /* We use char because int might match the return type of a gcc2
17453 builtin and then its argument prototype would still apply. */
17455 /* The GNU C library defines this for functions which it implements
17456 to always fail with ENOSYS. Some functions are actually named
17457 something starting with __ and the normal name is an alias. */
17458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17461 char (*f) () = $ac_func;
17470 return f != $ac_func;
17475 rm -f conftest.$ac_objext conftest$ac_exeext
17476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17477 (eval $ac_link) 2>&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); } &&
17481 { ac_try='test -s conftest$ac_exeext'
17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; }; then
17487 eval "$as_ac_var=yes"
17489 echo "$as_me: failed program was:" >&5
17490 sed 's/^/| /' conftest.$ac_ext >&5
17492 eval "$as_ac_var=no"
17494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17497 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17498 if test `eval echo '${'$as_ac_var'}'` = yes; then
17499 cat >>confdefs.h <<_ACEOF
17500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17507 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17508 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17509 if test "${ac_cv_func_closedir_void+set}" = set; then
17510 echo $ECHO_N "(cached) $ECHO_C" >&6
17512 if test "$cross_compiling" = yes; then
17513 ac_cv_func_closedir_void=yes
17515 cat >conftest.$ac_ext <<_ACEOF
17516 #line $LINENO "configure"
17519 cat confdefs.h >>conftest.$ac_ext
17520 cat >>conftest.$ac_ext <<_ACEOF
17521 /* end confdefs.h. */
17522 $ac_includes_default
17523 #include <$ac_header_dirent>
17524 #ifndef __cplusplus
17531 exit (closedir (opendir (".")) != 0);
17536 rm -f conftest$ac_exeext
17537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17538 (eval $ac_link) 2>&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
17547 ac_cv_func_closedir_void=no
17549 echo "$as_me: program exited with status $ac_status" >&5
17550 echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17553 ( exit $ac_status )
17554 ac_cv_func_closedir_void=yes
17556 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17559 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17560 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17561 if test $ac_cv_func_closedir_void = yes; then
17563 cat >>confdefs.h <<\_ACEOF
17564 #define CLOSEDIR_VOID 1
17569 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17570 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17571 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17572 echo $ECHO_N "(cached) $ECHO_C" >&6
17574 if test "$cross_compiling" = yes; then
17575 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17576 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17577 { (exit 1); exit 1; }; }
17579 cat >conftest.$ac_ext <<_ACEOF
17580 #line $LINENO "configure"
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h. */
17587 # include <unistd.h>
17593 /* If this system has a BSD-style setpgrp which takes arguments,
17594 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17595 exit successfully. */
17596 exit (setpgrp (1,1) == -1 ? 0 : 1);
17601 rm -f conftest$ac_exeext
17602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17603 (eval $ac_link) 2>&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; }; then
17612 ac_cv_func_setpgrp_void=no
17614 echo "$as_me: program exited with status $ac_status" >&5
17615 echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17618 ( exit $ac_status )
17619 ac_cv_func_setpgrp_void=yes
17621 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17624 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17625 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17626 if test $ac_cv_func_setpgrp_void = yes; then
17628 cat >>confdefs.h <<\_ACEOF
17629 #define SETPGRP_VOID 1
17633 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17634 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17635 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17636 echo $ECHO_N "(cached) $ECHO_C" >&6
17638 # Some versions of Solaris, SCO, and the GNU C Library
17639 # have a broken or incompatible fnmatch.
17640 # So we run a test program. If we are cross-compiling, take no chance.
17641 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17642 if test "$cross_compiling" = yes; then
17643 ac_cv_func_fnmatch_works=cross
17645 cat >conftest.$ac_ext <<_ACEOF
17646 #line $LINENO "configure"
17649 cat confdefs.h >>conftest.$ac_ext
17650 cat >>conftest.$ac_ext <<_ACEOF
17651 /* end confdefs.h. */
17652 #include <fnmatch.h>
17653 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17654 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17660 (!(y ("a*", "abc", 0)
17661 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17662 && y ("a\\\\bc", "abc", 0)
17663 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17664 && y ("*x", ".x", 0)
17665 && n ("*x", ".x", FNM_PERIOD)
17671 rm -f conftest$ac_exeext
17672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17673 (eval $ac_link) 2>&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 ac_cv_func_fnmatch_works=yes
17684 echo "$as_me: program exited with status $ac_status" >&5
17685 echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17688 ( exit $ac_status )
17689 ac_cv_func_fnmatch_works=no
17691 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17694 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17695 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17696 if test $ac_cv_func_fnmatch_works = yes; then
17698 cat >>confdefs.h <<\_ACEOF
17699 #define HAVE_FNMATCH 1
17708 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17709 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17710 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17711 echo $ECHO_N "(cached) $ECHO_C" >&6
17713 ac_check_lib_save_LIBS=$LIBS
17714 LIBS="-lxpg4 $LIBS"
17715 cat >conftest.$ac_ext <<_ACEOF
17716 #line $LINENO "configure"
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h. */
17723 /* Override any gcc2 internal prototype to avoid an error. */
17727 /* We use char because int might match the return type of a gcc2
17728 builtin and then its argument prototype would still apply. */
17738 rm -f conftest.$ac_objext conftest$ac_exeext
17739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17740 (eval $ac_link) 2>&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); } &&
17744 { ac_try='test -s conftest$ac_exeext'
17745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746 (eval $ac_try) 2>&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; }; then
17750 ac_cv_lib_xpg4_setlocale=yes
17752 echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17755 ac_cv_lib_xpg4_setlocale=no
17757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17758 LIBS=$ac_check_lib_save_LIBS
17760 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17761 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17762 if test $ac_cv_lib_xpg4_setlocale = yes; then
17763 LIBS="$LIBS -lxpg4"
17769 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17770 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17771 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17772 echo $ECHO_N "(cached) $ECHO_C" >&6
17774 ac_check_lib_save_LIBS=$LIBS
17776 cat >conftest.$ac_ext <<_ACEOF
17777 #line $LINENO "configure"
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17784 /* Override any gcc2 internal prototype to avoid an error. */
17788 /* We use char because int might match the return type of a gcc2
17789 builtin and then its argument prototype would still apply. */
17799 rm -f conftest.$ac_objext conftest$ac_exeext
17800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17801 (eval $ac_link) 2>&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } &&
17805 { ac_try='test -s conftest$ac_exeext'
17806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17807 (eval $ac_try) 2>&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); }; }; then
17811 ac_cv_lib_sun_getpwnam=yes
17813 echo "$as_me: failed program was:" >&5
17814 sed 's/^/| /' conftest.$ac_ext >&5
17816 ac_cv_lib_sun_getpwnam=no
17818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17819 LIBS=$ac_check_lib_save_LIBS
17821 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17822 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17823 if test $ac_cv_lib_sun_getpwnam = yes; then
17824 cat >>confdefs.h <<_ACEOF
17825 #define HAVE_LIBSUN 1
17834 for ac_header in zlib.h
17836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17838 echo "$as_me:$LINENO: checking for $ac_header" >&5
17839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17841 echo $ECHO_N "(cached) $ECHO_C" >&6
17843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17846 # Is the header compilable?
17847 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17849 cat >conftest.$ac_ext <<_ACEOF
17850 #line $LINENO "configure"
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h. */
17856 $ac_includes_default
17857 #include <$ac_header>
17859 rm -f conftest.$ac_objext
17860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17861 (eval $ac_compile) 2>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } &&
17865 { ac_try='test -s conftest.$ac_objext'
17866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867 (eval $ac_try) 2>&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); }; }; then
17871 ac_header_compiler=yes
17873 echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17876 ac_header_compiler=no
17878 rm -f conftest.$ac_objext conftest.$ac_ext
17879 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17880 echo "${ECHO_T}$ac_header_compiler" >&6
17882 # Is the header present?
17883 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17885 cat >conftest.$ac_ext <<_ACEOF
17886 #line $LINENO "configure"
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h. */
17892 #include <$ac_header>
17894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17897 grep -v '^ *+' conftest.er1 >conftest.err
17899 cat conftest.err >&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); } >/dev/null; then
17902 if test -s conftest.err; then
17903 ac_cpp_err=$ac_c_preproc_warn_flag
17910 if test -z "$ac_cpp_err"; then
17911 ac_header_preproc=yes
17913 echo "$as_me: failed program was:" >&5
17914 sed 's/^/| /' conftest.$ac_ext >&5
17916 ac_header_preproc=no
17918 rm -f conftest.err conftest.$ac_ext
17919 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17920 echo "${ECHO_T}$ac_header_preproc" >&6
17922 # So? What about this header?
17923 case $ac_header_compiler:$ac_header_preproc in
17925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17931 ## ------------------------------------ ##
17932 ## Report this to bug-autoconf@gnu.org. ##
17933 ## ------------------------------------ ##
17936 sed "s/^/$as_me: WARNING: /" >&2
17939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17947 ## ------------------------------------ ##
17948 ## Report this to bug-autoconf@gnu.org. ##
17949 ## ------------------------------------ ##
17952 sed "s/^/$as_me: WARNING: /" >&2
17955 echo "$as_me:$LINENO: checking for $ac_header" >&5
17956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17958 echo $ECHO_N "(cached) $ECHO_C" >&6
17960 eval "$as_ac_Header=$ac_header_preproc"
17962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17967 cat >>confdefs.h <<_ACEOF
17968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17975 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17976 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17977 if test "${ac_cv_lib_z_deflate+set}" = set; then
17978 echo $ECHO_N "(cached) $ECHO_C" >&6
17980 ac_check_lib_save_LIBS=$LIBS
17982 cat >conftest.$ac_ext <<_ACEOF
17983 #line $LINENO "configure"
17986 cat confdefs.h >>conftest.$ac_ext
17987 cat >>conftest.$ac_ext <<_ACEOF
17988 /* end confdefs.h. */
17990 /* Override any gcc2 internal prototype to avoid an error. */
17994 /* We use char because int might match the return type of a gcc2
17995 builtin and then its argument prototype would still apply. */
18005 rm -f conftest.$ac_objext conftest$ac_exeext
18006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18007 (eval $ac_link) 2>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } &&
18011 { ac_try='test -s conftest$ac_exeext'
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18017 ac_cv_lib_z_deflate=yes
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18022 ac_cv_lib_z_deflate=no
18024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18025 LIBS=$ac_check_lib_save_LIBS
18027 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18028 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18029 if test $ac_cv_lib_z_deflate = yes; then
18034 if test x$FDLIBS = x-lz; then
18035 cat >>confdefs.h <<\_ACEOF
18036 #define HAVE_LIBZ 1
18042 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18043 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18044 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18045 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18048 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18049 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18051 # Is the header compilable?
18052 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18053 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18054 cat >conftest.$ac_ext <<_ACEOF
18055 #line $LINENO "configure"
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h. */
18061 $ac_includes_default
18062 #include <sys/acl.h>
18064 rm -f conftest.$ac_objext
18065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18066 (eval $ac_compile) 2>&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); } &&
18070 { ac_try='test -s conftest.$ac_objext'
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; }; then
18076 ac_header_compiler=yes
18078 echo "$as_me: failed program was:" >&5
18079 sed 's/^/| /' conftest.$ac_ext >&5
18081 ac_header_compiler=no
18083 rm -f conftest.$ac_objext conftest.$ac_ext
18084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18085 echo "${ECHO_T}$ac_header_compiler" >&6
18087 # Is the header present?
18088 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18089 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18090 cat >conftest.$ac_ext <<_ACEOF
18091 #line $LINENO "configure"
18094 cat confdefs.h >>conftest.$ac_ext
18095 cat >>conftest.$ac_ext <<_ACEOF
18096 /* end confdefs.h. */
18097 #include <sys/acl.h>
18099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18102 grep -v '^ *+' conftest.er1 >conftest.err
18104 cat conftest.err >&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); } >/dev/null; then
18107 if test -s conftest.err; then
18108 ac_cpp_err=$ac_c_preproc_warn_flag
18115 if test -z "$ac_cpp_err"; then
18116 ac_header_preproc=yes
18118 echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.$ac_ext >&5
18121 ac_header_preproc=no
18123 rm -f conftest.err conftest.$ac_ext
18124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18125 echo "${ECHO_T}$ac_header_preproc" >&6
18127 # So? What about this header?
18128 case $ac_header_compiler:$ac_header_preproc in
18130 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18131 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18132 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18133 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18136 ## ------------------------------------ ##
18137 ## Report this to bug-autoconf@gnu.org. ##
18138 ## ------------------------------------ ##
18141 sed "s/^/$as_me: WARNING: /" >&2
18144 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18145 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18146 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18147 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18148 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18149 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18152 ## ------------------------------------ ##
18153 ## Report this to bug-autoconf@gnu.org. ##
18154 ## ------------------------------------ ##
18157 sed "s/^/$as_me: WARNING: /" >&2
18160 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18161 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18162 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18163 echo $ECHO_N "(cached) $ECHO_C" >&6
18165 ac_cv_header_sys_acl_h=$ac_header_preproc
18167 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18168 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18173 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18174 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18175 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18176 echo $ECHO_N "(cached) $ECHO_C" >&6
18178 ac_check_lib_save_LIBS=$LIBS
18180 cat >conftest.$ac_ext <<_ACEOF
18181 #line $LINENO "configure"
18184 cat confdefs.h >>conftest.$ac_ext
18185 cat >>conftest.$ac_ext <<_ACEOF
18186 /* end confdefs.h. */
18188 /* Override any gcc2 internal prototype to avoid an error. */
18192 /* We use char because int might match the return type of a gcc2
18193 builtin and then its argument prototype would still apply. */
18194 char acl_get_file ();
18203 rm -f conftest.$ac_objext conftest$ac_exeext
18204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18205 (eval $ac_link) 2>&5
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); } &&
18209 { ac_try='test -s conftest$ac_exeext'
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 (eval $ac_try) 2>&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; }; then
18215 ac_cv_lib_acl_acl_get_file=yes
18217 echo "$as_me: failed program was:" >&5
18218 sed 's/^/| /' conftest.$ac_ext >&5
18220 ac_cv_lib_acl_acl_get_file=no
18222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18223 LIBS=$ac_check_lib_save_LIBS
18225 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18226 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18227 if test $ac_cv_lib_acl_acl_get_file = yes; then
18228 FDLIBS="-lacl $FDLIBS"
18232 if test $ac_cv_lib_acl_acl_get_file = yes; then
18233 cat >>confdefs.h <<\_ACEOF
18241 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18242 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18243 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18244 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 ac_check_lib_save_LIBS=$LIBS
18247 LIBS="-lpthread $LIBS"
18248 cat >conftest.$ac_ext <<_ACEOF
18249 #line $LINENO "configure"
18252 cat confdefs.h >>conftest.$ac_ext
18253 cat >>conftest.$ac_ext <<_ACEOF
18254 /* end confdefs.h. */
18256 /* Override any gcc2 internal prototype to avoid an error. */
18260 /* We use char because int might match the return type of a gcc2
18261 builtin and then its argument prototype would still apply. */
18262 char pthread_create ();
18271 rm -f conftest.$ac_objext conftest$ac_exeext
18272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18273 (eval $ac_link) 2>&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
18277 { ac_try='test -s conftest$ac_exeext'
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; }; then
18283 ac_cv_lib_pthread_pthread_create=yes
18285 echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18288 ac_cv_lib_pthread_pthread_create=no
18290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18291 LIBS=$ac_check_lib_save_LIBS
18293 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18294 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18295 if test $ac_cv_lib_pthread_pthread_create = yes; then
18296 PTHREAD_LIB="-lpthread"
18298 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18299 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18300 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18301 echo $ECHO_N "(cached) $ECHO_C" >&6
18303 ac_check_lib_save_LIBS=$LIBS
18304 LIBS="-lpthreads $LIBS"
18305 cat >conftest.$ac_ext <<_ACEOF
18306 #line $LINENO "configure"
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h. */
18313 /* Override any gcc2 internal prototype to avoid an error. */
18317 /* We use char because int might match the return type of a gcc2
18318 builtin and then its argument prototype would still apply. */
18319 char pthread_create ();
18328 rm -f conftest.$ac_objext conftest$ac_exeext
18329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18330 (eval $ac_link) 2>&5
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); } &&
18334 { ac_try='test -s conftest$ac_exeext'
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; }; then
18340 ac_cv_lib_pthreads_pthread_create=yes
18342 echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18345 ac_cv_lib_pthreads_pthread_create=no
18347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18348 LIBS=$ac_check_lib_save_LIBS
18350 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18351 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18352 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18353 PTHREAD_LIB="-lpthreads"
18355 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18356 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18357 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18358 echo $ECHO_N "(cached) $ECHO_C" >&6
18360 ac_check_lib_save_LIBS=$LIBS
18362 cat >conftest.$ac_ext <<_ACEOF
18363 #line $LINENO "configure"
18366 cat confdefs.h >>conftest.$ac_ext
18367 cat >>conftest.$ac_ext <<_ACEOF
18368 /* end confdefs.h. */
18370 /* Override any gcc2 internal prototype to avoid an error. */
18374 /* We use char because int might match the return type of a gcc2
18375 builtin and then its argument prototype would still apply. */
18376 char pthread_create ();
18385 rm -f conftest.$ac_objext conftest$ac_exeext
18386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18387 (eval $ac_link) 2>&5
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); } &&
18391 { ac_try='test -s conftest$ac_exeext'
18392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; }; then
18397 ac_cv_lib_c_r_pthread_create=yes
18399 echo "$as_me: failed program was:" >&5
18400 sed 's/^/| /' conftest.$ac_ext >&5
18402 ac_cv_lib_c_r_pthread_create=no
18404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18405 LIBS=$ac_check_lib_save_LIBS
18407 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18408 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18409 if test $ac_cv_lib_c_r_pthread_create = yes; then
18410 PTHREAD_LIB="-lc_r"
18412 echo "$as_me:$LINENO: checking for pthread_create" >&5
18413 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18414 if test "${ac_cv_func_pthread_create+set}" = set; then
18415 echo $ECHO_N "(cached) $ECHO_C" >&6
18417 cat >conftest.$ac_ext <<_ACEOF
18418 #line $LINENO "configure"
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h. */
18424 /* System header to define __stub macros and hopefully few prototypes,
18425 which can conflict with char pthread_create (); below.
18426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18427 <limits.h> exists even on freestanding compilers. */
18429 # include <limits.h>
18431 # include <assert.h>
18433 /* Override any gcc2 internal prototype to avoid an error. */
18438 /* We use char because int might match the return type of a gcc2
18439 builtin and then its argument prototype would still apply. */
18440 char pthread_create ();
18441 /* The GNU C library defines this for functions which it implements
18442 to always fail with ENOSYS. Some functions are actually named
18443 something starting with __ and the normal name is an alias. */
18444 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18447 char (*f) () = pthread_create;
18456 return f != pthread_create;
18461 rm -f conftest.$ac_objext conftest$ac_exeext
18462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18463 (eval $ac_link) 2>&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } &&
18467 { ac_try='test -s conftest$ac_exeext'
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18473 ac_cv_func_pthread_create=yes
18475 echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18478 ac_cv_func_pthread_create=no
18480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18482 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18483 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18496 cat >>confdefs.h <<\_ACEOF
18502 CFLAGS=${CFLAGS--O}
18503 LDFLAGS=${LDFLAGS--O}
18504 DB_LIBS="${SQL_LFLAGS}"
18506 CPPFLAGS="$CPPFLAGS"
18531 # Finally we set appropriate distribution specific
18532 # variables and defaults
18534 # PFILES are platform specific files
18535 PFILES="platforms/Makefile"
18539 hostname=`uname -n | cut -d '.' -f 1`
18540 case "$DISTNAME" in
18543 PSCMD="ps -e -o pid,comm"
18544 PFILES="${PFILES} \
18545 platforms/aix/Makefile"
18546 TAPEDRIVE="/dev/rmt0.1"
18550 PTHREAD_LIB="-lpthread -lexc"
18551 if test "${CC}" = "gcc" ; then
18558 TAPEDRIVE="/dev/nrmt0"
18561 DISTVER=`uname -a |awk '{print $3}'`
18562 TAPEDRIVE="/dev/nrmt0"
18563 PTHREAD_LIB="-pthread"
18564 CFLAGS="${CFLAGS} -pthread"
18565 PSCMD="ps -x -o pid,command"
18568 PFILES="${PFILES} \
18569 platforms/bsdi/Makefile \
18570 platforms/bsdi/bacula-fd \
18571 platforms/bsdi/bacula-sd \
18572 platforms/bsdi/bacula-dir"
18573 largefile_support="yes"
18576 DISTVER=`uname -a |awk '{print $3}'`
18577 TAPEDRIVE="/dev/nrst0"
18579 WCFLAGS="-mwindows"
18580 WLDFLAGS="-mwindows"
18584 TAPEDRIVE="/dev/nst0"
18585 PSCMD="ps -e -o pid,command"
18587 PFILES="${PFILES} \
18588 platforms/darwin/Makefile"
18591 DISTVER=`cat /etc/debian_version`
18592 TAPEDRIVE="/dev/nrst0"
18593 PSCMD="ps -e -o pid,command"
18596 DISTVER=`uname -a |awk '{print $3}'`
18597 VER=`echo $DISTVER | cut -c 1`
18598 if test x$VER = x4 ; then
18599 PTHREAD_LIB="-pthread"
18600 CFLAGS="${CFLAGS} -pthread"
18604 TAPEDRIVE="/dev/nrsa0"
18605 PSCMD="ps -x -o pid,command"
18606 PFILES="${PFILES} \
18607 platforms/freebsd/Makefile \
18608 platforms/freebsd/bacula-fd \
18609 platforms/freebsd/bacula-sd \
18610 platforms/freebsd/bacula-dir"
18611 largefile_support="yes"
18614 PSCMD="UNIX95=1 ps -e -o pid,comm"
18615 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18617 TAPEDRIVE="/dev/rmt/0hnb"
18621 TAPEDRIVE="/dev/rmt/0cbn"
18622 PSCMD="ps -e -o pid,comm"
18623 PFILES="${PFILES} \
18624 platforms/irix/Makefile \
18625 platforms/irix/bacula-fd \
18626 platforms/irix/bacula-sd \
18627 platforms/irix/bacula-dir"
18630 DISTVER=`uname -a |awk '{print $3}'`
18633 TAPEDRIVE="/dev/nrst0"
18634 PSCMD="ps -a -o pid,command"
18635 PTHREAD_LIB="-pthread"
18636 CFLAGS="${CFLAGS} -pthread"
18639 DISTVER=`uname -a |awk '{print $3}'`
18642 TAPEDRIVE="/dev/nrst0"
18643 PSCMD="ps -a -o pid,command"
18644 PTHREAD_LIB="-pthread"
18645 CFLAGS="${CFLAGS} -pthread"
18646 PFILES="${PFILES} \
18647 platforms/openbsd/Makefile \
18648 platforms/openbsd/bacula-fd \
18649 platforms/openbsd/bacula-sd \
18650 platforms/openbsd/bacula-dir"
18653 if test -f /etc/whitebox-release ; then
18654 f=/etc/whitebox-release
18656 f=/etc/redhat-release
18658 if test `cat $f | grep release |\
18659 cut -f 3 -d ' '`x = "Enterprise"x ; then
18660 DISTVER="Enterprise "`cat $f | grep release |\
18663 DISTVER=`cat /etc/redhat-release | grep release |\
18666 TAPEDRIVE="/dev/nst0"
18667 PSCMD="ps -e -o pid,command"
18668 PFILES="${PFILES} \
18669 platforms/redhat/Makefile \
18670 platforms/redhat/bacula-fd \
18671 platforms/redhat/bacula-sd \
18672 platforms/redhat/bacula-dir \
18673 platforms/redhat/bacula.spec \
18675 hostname=`hostname -s`
18678 DISTVER=`cat /etc/mandrake-release | grep release |\
18680 TAPEDRIVE="/dev/nst0"
18681 PSCMD="ps -e -o pid,command"
18682 PFILES="${PFILES} \
18683 platforms/mandrake/Makefile \
18684 platforms/mandrake/bacula-fd \
18685 platforms/mandrake/bacula-sd \
18686 platforms/mandrake/bacula-dir \
18687 platforms/mandrake/bacula.spec \
18691 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18692 TAPEDRIVE="/dev/nst0"
18693 PSCMD="ps -e -o pid,command"
18694 PFILES="${PFILES} \
18695 platforms/gentoo/Makefile \
18696 platforms/gentoo/bacula-fd \
18697 platforms/gentoo/bacula-sd \
18698 platforms/gentoo/bacula-dir"
18701 DISTVER=`cat /etc/slackware-version`
18702 TAPEDRIVE="/dev/nst0"
18703 PSCMD="ps -e -o pid,command"
18704 PFILES="${PFILES} \
18705 platforms/slackware/Makefile \
18706 platforms/slackware/rc.bacula-fd \
18707 platforms/slackware/rc.bacula-sd \
18708 platforms/slackware/rc.bacula-dir\
18709 platforms/slackware/functions.bacula"
18713 TAPEDRIVE="/dev/rmt/0cbn"
18714 PSCMD="ps -e -o pid,comm"
18715 PFILES="${PFILES} \
18716 platforms/solaris/Makefile \
18717 platforms/solaris/bacula-fd \
18718 platforms/solaris/bacula-sd \
18719 platforms/solaris/bacula-dir"
18720 if test x$DISTVER = x5.6 ; then
18721 cat >>confdefs.h <<\_ACEOF
18722 #define HAVE_OLD_SOCKOPT 1
18728 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18730 TAPEDRIVE="/dev/nst0"
18731 PSCMD="ps -e -o pid,command"
18732 PFILES="${PFILES} \
18733 platforms/suse/Makefile \
18734 platforms/suse/bacula-fd \
18735 platforms/suse/bacula-sd \
18736 platforms/suse/bacula-dir \
18737 platforms/suse/bacula \
18738 platforms/suse/bacula.spec"
18743 TAPEDRIVE="/dev/nst0"
18744 PSCMD="ps -e -o pid,command"
18745 PFILES="${PFILES} \
18746 platforms/suse/Makefile \
18747 platforms/suse/bacula-fd \
18748 platforms/suse/bacula-sd \
18749 platforms/suse/bacula-dir"
18753 TAPEDRIVE="/dev/nst0"
18756 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18762 LIBS="$PTHREAD_LIB $LIBS"
18764 cat >>confdefs.h <<_ACEOF
18768 cat >>confdefs.h <<_ACEOF
18779 MCOMMON=./autoconf/Make.common
18782 if test "x${subsysdir}" = "x${sbindir}" ; then
18785 echo "You have set both --sbindir and --with-subsys-dir"
18786 echo " equal to: ${subsysdir} "
18787 echo "This is not permitted. Please reconfigure."
18789 echo "Aborting configuration ..."
18795 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
18796 ac_config_commands="$ac_config_commands default"
18797 cat >confcache <<\_ACEOF
18798 # This file is a shell script that caches the results of configure
18799 # tests run on this system so they can be shared between configure
18800 # scripts and configure runs, see configure's option --config-cache.
18801 # It is not useful on other systems. If it contains results you don't
18802 # want to keep, you may remove or edit it.
18804 # config.status only pays attention to the cache file if you give it
18805 # the --recheck option to rerun configure.
18807 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18808 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18809 # following values.
18813 # The following way of writing the cache mishandles newlines in values,
18814 # but we know of no workaround that is simple, portable, and efficient.
18815 # So, don't put newlines in cache variables' values.
18816 # Ultrix sh set writes to stderr and can't be redirected directly,
18817 # and sets the high bit in the cache file unless we assign to the vars.
18820 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18822 # `set' does not quote correctly, so add quotes (double-quote
18823 # substitution turns \\\\ into \\, and sed turns \\ into \).
18826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18829 # `set' quotes correctly as required by POSIX, so do not add quotes.
18831 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18838 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18840 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18842 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18843 if test -w $cache_file; then
18844 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18845 cat confcache >$cache_file
18847 echo "not updating unwritable cache $cache_file"
18852 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18853 # Let make expand exec_prefix.
18854 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18856 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18857 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18858 # trailing colons and then remove the whole line if VPATH becomes empty
18859 # (actually we leave an empty line to preserve line numbers).
18860 if test "x$srcdir" = x.; then
18861 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18862 s/:*\$(srcdir):*/:/;
18863 s/:*\${srcdir}:*/:/;
18865 s/^\([^=]*=[ ]*\):*/\1/;
18871 DEFS=-DHAVE_CONFIG_H
18875 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18876 # 1. Remove the extension, and $U if already installed.
18877 ac_i=`echo "$ac_i" |
18878 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18880 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18881 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18883 LIBOBJS=$ac_libobjs
18885 LTLIBOBJS=$ac_ltlibobjs
18889 : ${CONFIG_STATUS=./config.status}
18890 ac_clean_files_save=$ac_clean_files
18891 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18892 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18893 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18894 cat >$CONFIG_STATUS <<_ACEOF
18896 # Generated by $as_me.
18897 # Run this file to recreate the current configuration.
18898 # Compiler output produced by configure, useful for debugging
18899 # configure, is in config.log if it exists.
18902 ac_cs_recheck=false
18904 SHELL=\${CONFIG_SHELL-$SHELL}
18907 cat >>$CONFIG_STATUS <<\_ACEOF
18908 ## --------------------- ##
18909 ## M4sh Initialization. ##
18910 ## --------------------- ##
18912 # Be Bourne compatible
18913 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18916 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18917 # is contrary to our usage. Disable this feature.
18918 alias -g '${1+"$@"}'='"$@"'
18919 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18923 # Support unset when possible.
18924 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18931 # Work around bugs in pre-3.0 UWIN ksh.
18932 $as_unset ENV MAIL MAILPATH
18939 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18940 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18941 LC_TELEPHONE LC_TIME
18943 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18944 eval $as_var=C; export $as_var
18950 # Required to use basename.
18951 if expr a : '\(a\)' >/dev/null 2>&1; then
18957 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18958 as_basename=basename
18964 # Name of the executable.
18965 as_me=`$as_basename "$0" ||
18966 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18967 X"$0" : 'X\(//\)$' \| \
18968 X"$0" : 'X\(/\)$' \| \
18969 . : '\(.\)' 2>/dev/null ||
18971 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18972 /^X\/\(\/\/\)$/{ s//\1/; q; }
18973 /^X\/\(\/\).*/{ s//\1/; q; }
18977 # PATH needs CR, and LINENO needs CR and PATH.
18978 # Avoid depending upon Character Ranges.
18979 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18980 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18981 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18982 as_cr_digits='0123456789'
18983 as_cr_alnum=$as_cr_Letters$as_cr_digits
18985 # The user is always right.
18986 if test "${PATH_SEPARATOR+set}" != set; then
18987 echo "#! /bin/sh" >conf$$.sh
18988 echo "exit 0" >>conf$$.sh
18990 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18999 as_lineno_1=$LINENO
19000 as_lineno_2=$LINENO
19001 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19002 test "x$as_lineno_1" != "x$as_lineno_2" &&
19003 test "x$as_lineno_3" = "x$as_lineno_2" || {
19004 # Find who we are. Look in the path if we contain no path at all
19007 *[\\/]* ) as_myself=$0 ;;
19008 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19009 for as_dir in $PATH
19012 test -z "$as_dir" && as_dir=.
19013 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19018 # We did not find ourselves, most probably we were run as `sh COMMAND'
19019 # in which case we are not to be found in the path.
19020 if test "x$as_myself" = x; then
19023 if test ! -f "$as_myself"; then
19024 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19025 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19026 { (exit 1); exit 1; }; }
19028 case $CONFIG_SHELL in
19030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19031 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19034 test -z "$as_dir" && as_dir=.
19035 for as_base in sh bash ksh sh5; do
19038 if ("$as_dir/$as_base" -c '
19039 as_lineno_1=$LINENO
19040 as_lineno_2=$LINENO
19041 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19042 test "x$as_lineno_1" != "x$as_lineno_2" &&
19043 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19044 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19045 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19046 CONFIG_SHELL=$as_dir/$as_base
19047 export CONFIG_SHELL
19048 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19056 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19057 # uniformly replaced by the line number. The first 'sed' inserts a
19058 # line-number line before each line; the second 'sed' does the real
19059 # work. The second script uses 'N' to pair each line-number line
19060 # with the numbered line, and appends trailing '-' during
19061 # substitution so that $LINENO is not a special case at line end.
19062 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19063 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19064 sed '=' <$as_myself |
19069 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19072 s,^['$as_cr_digits']*\n,,
19073 ' >$as_me.lineno &&
19074 chmod +x $as_me.lineno ||
19075 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19076 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19077 { (exit 1); exit 1; }; }
19079 # Don't try to exec as it changes $[0], causing all sort of problems
19080 # (the dirname of $[0] is not the place where we might find the
19081 # original and so on. Autoconf is especially sensible to this).
19083 # Exit status is that of the last command.
19088 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19089 *c*,-n*) ECHO_N= ECHO_C='
19091 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19092 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19095 if expr a : '\(a\)' >/dev/null 2>&1; then
19101 rm -f conf$$ conf$$.exe conf$$.file
19103 if ln -s conf$$.file conf$$ 2>/dev/null; then
19104 # We could just check for DJGPP; but this test a) works b) is more generic
19105 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19106 if test -f conf$$.exe; then
19107 # Don't use ln at all; we don't have any links
19112 elif ln conf$$.file conf$$ 2>/dev/null; then
19117 rm -f conf$$ conf$$.exe conf$$.file
19119 if mkdir -p . 2>/dev/null; then
19125 as_executable_p="test -f"
19127 # Sed expression to map a string onto a valid CPP name.
19128 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19130 # Sed expression to map a string onto a valid variable name.
19131 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19135 # We need space, tab and new line, in precisely that order.
19145 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19146 # report actual input values of CONFIG_FILES etc. instead of their
19147 # values after options handling. Logging --version etc. is OK.
19151 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19152 ## Running $as_me. ##
19157 This file was extended by $as_me, which was
19158 generated by GNU Autoconf 2.57. Invocation command line was
19160 CONFIG_FILES = $CONFIG_FILES
19161 CONFIG_HEADERS = $CONFIG_HEADERS
19162 CONFIG_LINKS = $CONFIG_LINKS
19163 CONFIG_COMMANDS = $CONFIG_COMMANDS
19167 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19171 # Files that config.status was made for.
19172 if test -n "$ac_config_files"; then
19173 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19176 if test -n "$ac_config_headers"; then
19177 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19180 if test -n "$ac_config_links"; then
19181 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19184 if test -n "$ac_config_commands"; then
19185 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19188 cat >>$CONFIG_STATUS <<\_ACEOF
19191 \`$as_me' instantiates files from templates according to the
19192 current configuration.
19194 Usage: $0 [OPTIONS] [FILE]...
19196 -h, --help print this help, then exit
19197 -V, --version print version number, then exit
19198 -q, --quiet do not print progress messages
19199 -d, --debug don't remove temporary files
19200 --recheck update $as_me by reconfiguring in the same conditions
19201 --file=FILE[:TEMPLATE]
19202 instantiate the configuration file FILE
19203 --header=FILE[:TEMPLATE]
19204 instantiate the configuration header FILE
19206 Configuration files:
19209 Configuration headers:
19212 Configuration commands:
19215 Report bugs to <bug-autoconf@gnu.org>."
19218 cat >>$CONFIG_STATUS <<_ACEOF
19221 configured by $0, generated by GNU Autoconf 2.57,
19222 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19224 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19225 Free Software Foundation, Inc.
19226 This config.status script is free software; the Free Software Foundation
19227 gives unlimited permission to copy, distribute and modify it."
19232 cat >>$CONFIG_STATUS <<\_ACEOF
19233 # If no file are specified by the user, then we need to provide default
19234 # value. By we need to know if files were specified by the user.
19240 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19241 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19249 *) # This is not an option, so the user has probably given explicit
19252 ac_need_defaults=false;;
19256 # Handling of the options.
19258 cat >>$CONFIG_STATUS <<\_ACEOF
19259 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19261 --version | --vers* | -V )
19262 echo "$ac_cs_version"; exit 0 ;;
19264 # Conflict between --help and --header
19265 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19266 Try \`$0 --help' for more information." >&5
19267 echo "$as_me: error: ambiguous option: $1
19268 Try \`$0 --help' for more information." >&2;}
19269 { (exit 1); exit 1; }; };;
19270 --help | --hel | -h )
19271 echo "$ac_cs_usage"; exit 0 ;;
19272 --debug | --d* | -d )
19274 --file | --fil | --fi | --f )
19276 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19277 ac_need_defaults=false;;
19278 --header | --heade | --head | --hea )
19280 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19281 ac_need_defaults=false;;
19282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19283 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19286 # This is an error.
19287 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19288 Try \`$0 --help' for more information." >&5
19289 echo "$as_me: error: unrecognized option: $1
19290 Try \`$0 --help' for more information." >&2;}
19291 { (exit 1); exit 1; }; } ;;
19293 *) ac_config_targets="$ac_config_targets $1" ;;
19299 ac_configure_extra_args=
19301 if $ac_cs_silent; then
19303 ac_configure_extra_args="$ac_configure_extra_args --silent"
19307 cat >>$CONFIG_STATUS <<_ACEOF
19308 if \$ac_cs_recheck; then
19309 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19310 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19319 cat >>$CONFIG_STATUS <<\_ACEOF
19320 for ac_config_target in $ac_config_targets
19322 case "$ac_config_target" in
19323 # Handling of arguments.
19324 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19325 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19326 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19327 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19328 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19329 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19330 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19331 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19332 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19333 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19334 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19335 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19336 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19337 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19338 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19339 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19340 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19341 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19342 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19343 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19344 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19345 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19346 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19347 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19348 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19349 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19350 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19351 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19352 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19353 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19354 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19355 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19356 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19357 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19358 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19359 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19360 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19361 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19362 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19363 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19364 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19365 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19366 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19367 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19368 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19369 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19370 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19371 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19372 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19373 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19374 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19375 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19376 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19377 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19378 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19379 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19380 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19381 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19382 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19383 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19384 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19385 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19386 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19387 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19388 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19389 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19390 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19391 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19392 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19393 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19394 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19395 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19396 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19397 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19398 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19399 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19400 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19401 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19402 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19403 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19404 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19405 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19406 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19407 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19408 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19409 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19410 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19411 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19412 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19413 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19414 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19415 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19416 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19417 { (exit 1); exit 1; }; };;
19421 # If the user did not use the arguments to specify the items to instantiate,
19422 # then the envvar interface is used. Set only those that are not.
19423 # We use the long form for the default assignment because of an extremely
19424 # bizarre bug on SunOS 4.1.3.
19425 if $ac_need_defaults; then
19426 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19427 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19428 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19431 # Have a temporary directory for convenience. Make it in the build tree
19432 # simply because there is no reason to put it here, and in addition,
19433 # creating and moving files from /tmp can sometimes cause problems.
19434 # Create a temporary directory, and hook for its removal unless debugging.
19437 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19438 trap '{ (exit 1); exit 1; }' 1 2 13 15
19441 # Create a (secure) tmp directory for tmp files.
19444 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19445 test -n "$tmp" && test -d "$tmp"
19448 tmp=./confstat$$-$RANDOM
19449 (umask 077 && mkdir $tmp)
19452 echo "$me: cannot create a temporary directory in ." >&2
19453 { (exit 1); exit 1; }
19458 cat >>$CONFIG_STATUS <<_ACEOF
19461 # CONFIG_FILES section.
19464 # No need to generate the scripts if there are no CONFIG_FILES.
19465 # This happens for instance when ./config.status config.h
19466 if test -n "\$CONFIG_FILES"; then
19467 # Protect against being on the right side of a sed subst in config.status.
19468 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19469 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19470 s,@SHELL@,$SHELL,;t t
19471 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19472 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19473 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19474 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19475 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19476 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19477 s,@exec_prefix@,$exec_prefix,;t t
19478 s,@prefix@,$prefix,;t t
19479 s,@program_transform_name@,$program_transform_name,;t t
19480 s,@bindir@,$bindir,;t t
19481 s,@sbindir@,$sbindir,;t t
19482 s,@libexecdir@,$libexecdir,;t t
19483 s,@datadir@,$datadir,;t t
19484 s,@sysconfdir@,$sysconfdir,;t t
19485 s,@sharedstatedir@,$sharedstatedir,;t t
19486 s,@localstatedir@,$localstatedir,;t t
19487 s,@libdir@,$libdir,;t t
19488 s,@includedir@,$includedir,;t t
19489 s,@oldincludedir@,$oldincludedir,;t t
19490 s,@infodir@,$infodir,;t t
19491 s,@mandir@,$mandir,;t t
19492 s,@build_alias@,$build_alias,;t t
19493 s,@host_alias@,$host_alias,;t t
19494 s,@target_alias@,$target_alias,;t t
19495 s,@DEFS@,$DEFS,;t t
19496 s,@ECHO_C@,$ECHO_C,;t t
19497 s,@ECHO_N@,$ECHO_N,;t t
19498 s,@ECHO_T@,$ECHO_T,;t t
19499 s,@LIBS@,$LIBS,;t t
19500 s,@BUILD_DIR@,$BUILD_DIR,;t t
19501 s,@TRUEPRG@,$TRUEPRG,;t t
19502 s,@FALSEPRG@,$FALSEPRG,;t t
19503 s,@VERSION@,$VERSION,;t t
19504 s,@DATE@,$DATE,;t t
19505 s,@LSMDATE@,$LSMDATE,;t t
19507 s,@CFLAGS@,$CFLAGS,;t t
19508 s,@LDFLAGS@,$LDFLAGS,;t t
19509 s,@CPPFLAGS@,$CPPFLAGS,;t t
19510 s,@ac_ct_CC@,$ac_ct_CC,;t t
19511 s,@EXEEXT@,$EXEEXT,;t t
19512 s,@OBJEXT@,$OBJEXT,;t t
19514 s,@CXXFLAGS@,$CXXFLAGS,;t t
19515 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19517 s,@EGREP@,$EGREP,;t t
19518 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19519 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19520 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19521 s,@RANLIB@,$RANLIB,;t t
19522 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19528 s,@ECHO@,$ECHO,;t t
19532 s,@OPENSSL@,$OPENSSL,;t t
19534 s,@PKGCONFIG@,$PKGCONFIG,;t t
19535 s,@WXCONFIG@,$WXCONFIG,;t t
19536 s,@ARFLAGS@,$ARFLAGS,;t t
19537 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19538 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19539 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19540 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19541 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19542 s,@build@,$build,;t t
19543 s,@build_cpu@,$build_cpu,;t t
19544 s,@build_vendor@,$build_vendor,;t t
19545 s,@build_os@,$build_os,;t t
19546 s,@host@,$host,;t t
19547 s,@host_cpu@,$host_cpu,;t t
19548 s,@host_vendor@,$host_vendor,;t t
19549 s,@host_os@,$host_os,;t t
19550 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19551 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19552 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19553 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19554 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19555 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19556 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19557 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19558 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19559 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19560 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19561 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19562 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19563 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19564 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19565 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19566 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19567 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19568 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19569 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19570 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19571 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19572 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19573 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19574 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19575 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19576 s,@MSGFMT@,$MSGFMT,;t t
19577 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19578 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19579 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19580 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19581 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19582 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19583 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19584 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19585 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19586 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19587 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19588 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19589 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19590 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19591 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19592 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19593 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19594 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19595 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19596 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19597 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19598 s,@GNOME_DIR@,$GNOME_DIR,;t t
19599 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19600 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19601 s,@WX_DIR@,$WX_DIR,;t t
19602 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
19603 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
19604 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
19605 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19606 s,@STATIC_FD@,$STATIC_FD,;t t
19607 s,@STATIC_SD@,$STATIC_SD,;t t
19608 s,@STATIC_DIR@,$STATIC_DIR,;t t
19609 s,@STATIC_CONS@,$STATIC_CONS,;t t
19610 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19611 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19612 s,@ALL_DIRS@,$ALL_DIRS,;t t
19613 s,@CONS_INC@,$CONS_INC,;t t
19614 s,@CONS_OBJ@,$CONS_OBJ,;t t
19615 s,@CONS_SRC@,$CONS_SRC,;t t
19616 s,@CONS_LIBS@,$CONS_LIBS,;t t
19617 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19618 s,@READLINE_SRC@,$READLINE_SRC,;t t
19619 s,@working_dir@,$working_dir,;t t
19620 s,@scriptdir@,$scriptdir,;t t
19621 s,@dump_email@,$dump_email,;t t
19622 s,@job_email@,$job_email,;t t
19623 s,@smtp_host@,$smtp_host,;t t
19624 s,@piddir@,$piddir,;t t
19625 s,@subsysdir@,$subsysdir,;t t
19626 s,@baseport@,$baseport,;t t
19627 s,@dir_port@,$dir_port,;t t
19628 s,@fd_port@,$fd_port,;t t
19629 s,@sd_port@,$sd_port,;t t
19630 s,@dir_password@,$dir_password,;t t
19631 s,@fd_password@,$fd_password,;t t
19632 s,@sd_password@,$sd_password,;t t
19633 s,@dir_user@,$dir_user,;t t
19634 s,@dir_group@,$dir_group,;t t
19635 s,@sd_user@,$sd_user,;t t
19636 s,@sd_group@,$sd_group,;t t
19637 s,@fd_user@,$fd_user,;t t
19638 s,@fd_group@,$fd_group,;t t
19639 s,@SBINPERM@,$SBINPERM,;t t
19640 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19641 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19642 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19643 s,@cats@,$cats,;t t
19644 s,@DB_NAME@,$DB_NAME,;t t
19645 s,@GETCONF@,$GETCONF,;t t
19646 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19647 s,@X_CFLAGS@,$X_CFLAGS,;t t
19648 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19649 s,@X_LIBS@,$X_LIBS,;t t
19650 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19651 s,@LIBOBJS@,$LIBOBJS,;t t
19652 s,@ALLOCA@,$ALLOCA,;t t
19653 s,@FDLIBS@,$FDLIBS,;t t
19654 s,@DEBUG@,$DEBUG,;t t
19655 s,@DINCLUDE@,$DINCLUDE,;t t
19656 s,@DLIB@,$DLIB,;t t
19657 s,@DB_LIBS@,$DB_LIBS,;t t
19658 s,@WCFLAGS@,$WCFLAGS,;t t
19659 s,@WLDFLAGS@,$WLDFLAGS,;t t
19660 s,@OBJLIST@,$OBJLIST,;t t
19661 s,@hostname@,$hostname,;t t
19662 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19663 s,@PSCMD@,$PSCMD,;t t
19664 s,@WIN32@,$WIN32,;t t
19665 s,@MACOSX@,$MACOSX,;t t
19666 s,@DISTNAME@,$DISTNAME,;t t
19667 s,@DISTVER@,$DISTVER,;t t
19668 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19669 /@MCOMMON@/r $MCOMMON
19675 cat >>$CONFIG_STATUS <<\_ACEOF
19676 # Split the substitutions into bite-sized pieces for seds with
19677 # small command number limits, like on Digital OSF/1 and HP-UX.
19678 ac_max_sed_lines=48
19679 ac_sed_frag=1 # Number of current file.
19680 ac_beg=1 # First line for current file.
19681 ac_end=$ac_max_sed_lines # Line after last line for current file.
19684 while $ac_more_lines; do
19685 if test $ac_beg -gt 1; then
19686 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19688 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19690 if test ! -s $tmp/subs.frag; then
19691 ac_more_lines=false
19693 # The purpose of the label and of the branching condition is to
19694 # speed up the sed processing (if there are no `@' at all, there
19695 # is no need to browse any of the substitutions).
19696 # These are the two extra sed commands mentioned above.
19698 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19699 if test -z "$ac_sed_cmds"; then
19700 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19702 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19704 ac_sed_frag=`expr $ac_sed_frag + 1`
19706 ac_end=`expr $ac_end + $ac_max_sed_lines`
19709 if test -z "$ac_sed_cmds"; then
19712 fi # test -n "$CONFIG_FILES"
19715 cat >>$CONFIG_STATUS <<\_ACEOF
19716 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19717 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19719 - | *:- | *:-:* ) # input from stdin
19721 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19722 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19723 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19724 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19725 * ) ac_file_in=$ac_file.in ;;
19728 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19729 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19730 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19731 X"$ac_file" : 'X\(//\)[^/]' \| \
19732 X"$ac_file" : 'X\(//\)$' \| \
19733 X"$ac_file" : 'X\(/\)' \| \
19734 . : '\(.\)' 2>/dev/null ||
19736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19737 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19738 /^X\(\/\/\)$/{ s//\1/; q; }
19739 /^X\(\/\).*/{ s//\1/; q; }
19741 { if $as_mkdir_p; then
19746 while test ! -d "$as_dir"; do
19747 as_dirs="$as_dir $as_dirs"
19748 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19749 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19750 X"$as_dir" : 'X\(//\)[^/]' \| \
19751 X"$as_dir" : 'X\(//\)$' \| \
19752 X"$as_dir" : 'X\(/\)' \| \
19753 . : '\(.\)' 2>/dev/null ||
19755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19757 /^X\(\/\/\)$/{ s//\1/; q; }
19758 /^X\(\/\).*/{ s//\1/; q; }
19761 test ! -n "$as_dirs" || mkdir $as_dirs
19762 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19763 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19764 { (exit 1); exit 1; }; }; }
19768 if test "$ac_dir" != .; then
19769 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19770 # A "../" for each directory in $ac_dir_suffix.
19771 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19773 ac_dir_suffix= ac_top_builddir=
19777 .) # No --srcdir option. We are building in place.
19779 if test -z "$ac_top_builddir"; then
19782 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19784 [\\/]* | ?:[\\/]* ) # Absolute path.
19785 ac_srcdir=$srcdir$ac_dir_suffix;
19786 ac_top_srcdir=$srcdir ;;
19787 *) # Relative path.
19788 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19789 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19791 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19793 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19794 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19795 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19796 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19800 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19801 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19804 if test x"$ac_file" != x-; then
19805 { echo "$as_me:$LINENO: creating $ac_file" >&5
19806 echo "$as_me: creating $ac_file" >&6;}
19809 # Let's still pretend it is `configure' which instantiates (i.e., don't
19810 # use $as_me), people would be surprised to read:
19811 # /* config.h. Generated by config.status. */
19812 if test x"$ac_file" = x-; then
19815 configure_input="$ac_file. "
19817 configure_input=$configure_input"Generated from `echo $ac_file_in |
19818 sed 's,.*/,,'` by configure."
19820 # First look for the input files in the build tree, otherwise in the
19822 ac_file_inputs=`IFS=:
19823 for f in $ac_file_in; do
19825 -) echo $tmp/stdin ;;
19827 # Absolute (can't be DOS-style, as IFS=:)
19828 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19829 echo "$as_me: error: cannot find input file: $f" >&2;}
19830 { (exit 1); exit 1; }; }
19833 if test -f "$f"; then
19836 elif test -f "$srcdir/$f"; then
19841 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19842 echo "$as_me: error: cannot find input file: $f" >&2;}
19843 { (exit 1); exit 1; }; }
19846 done` || { (exit 1); exit 1; }
19848 cat >>$CONFIG_STATUS <<_ACEOF
19852 cat >>$CONFIG_STATUS <<\_ACEOF
19854 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19855 s,@configure_input@,$configure_input,;t t
19856 s,@srcdir@,$ac_srcdir,;t t
19857 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19858 s,@top_srcdir@,$ac_top_srcdir,;t t
19859 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19860 s,@builddir@,$ac_builddir,;t t
19861 s,@abs_builddir@,$ac_abs_builddir,;t t
19862 s,@top_builddir@,$ac_top_builddir,;t t
19863 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19864 s,@INSTALL@,$ac_INSTALL,;t t
19865 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19867 if test x"$ac_file" != x-; then
19868 mv $tmp/out $ac_file
19876 cat >>$CONFIG_STATUS <<\_ACEOF
19879 # CONFIG_HEADER section.
19882 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19883 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19885 # ac_d sets the value in "#define NAME VALUE" lines.
19886 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19887 ac_dB='[ ].*$,\1#\2'
19890 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19891 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19892 ac_uB='$,\1#\2define\3'
19896 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19897 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19899 - | *:- | *:-:* ) # input from stdin
19901 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19902 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19903 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19904 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19905 * ) ac_file_in=$ac_file.in ;;
19908 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19909 echo "$as_me: creating $ac_file" >&6;}
19911 # First look for the input files in the build tree, otherwise in the
19913 ac_file_inputs=`IFS=:
19914 for f in $ac_file_in; do
19916 -) echo $tmp/stdin ;;
19918 # Absolute (can't be DOS-style, as IFS=:)
19919 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19920 echo "$as_me: error: cannot find input file: $f" >&2;}
19921 { (exit 1); exit 1; }; }
19924 if test -f "$f"; then
19927 elif test -f "$srcdir/$f"; then
19932 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19933 echo "$as_me: error: cannot find input file: $f" >&2;}
19934 { (exit 1); exit 1; }; }
19937 done` || { (exit 1); exit 1; }
19938 # Remove the trailing spaces.
19939 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19943 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19944 # `conftest.undefs', that substitutes the proper values into
19945 # config.h.in to produce config.h. The first handles `#define'
19946 # templates, and the second `#undef' templates.
19947 # And first: Protect against being on the right side of a sed subst in
19948 # config.status. Protect against being in an unquoted here document
19949 # in config.status.
19950 rm -f conftest.defines conftest.undefs
19951 # Using a here document instead of a string reduces the quoting nightmare.
19952 # Putting comments in sed scripts is not portable.
19954 # `end' is used to avoid that the second main sed command (meant for
19955 # 0-ary CPP macros) applies to n-ary macro definitions.
19956 # See the Autoconf documentation for `clear'.
19957 cat >confdef2sed.sed <<\_ACEOF
19962 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19964 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19967 # If some macros were called several times there might be several times
19968 # the same #defines, which is useless. Nevertheless, we may not want to
19969 # sort them, since we want the *last* AC-DEFINE to be honored.
19970 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19971 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19972 rm -f confdef2sed.sed
19974 # This sed command replaces #undef with comments. This is necessary, for
19975 # example, in the case of _POSIX_SOURCE, which is predefined and required
19976 # on some systems where configure will not decide to define it.
19977 cat >>conftest.undefs <<\_ACEOF
19978 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19981 # Break up conftest.defines because some shells have a limit on the size
19982 # of here documents, and old seds have small limits too (100 cmds).
19983 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19984 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19985 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19986 echo ' :' >>$CONFIG_STATUS
19987 rm -f conftest.tail
19988 while grep . conftest.defines >/dev/null
19990 # Write a limited-size here document to $tmp/defines.sed.
19991 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19992 # Speed up: don't consider the non `#define' lines.
19993 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19994 # Work around the forget-to-reset-the-flag bug.
19995 echo 't clr' >>$CONFIG_STATUS
19996 echo ': clr' >>$CONFIG_STATUS
19997 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19999 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20001 mv $tmp/out $tmp/in
20003 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20004 rm -f conftest.defines
20005 mv conftest.tail conftest.defines
20007 rm -f conftest.defines
20008 echo ' fi # grep' >>$CONFIG_STATUS
20009 echo >>$CONFIG_STATUS
20011 # Break up conftest.undefs because some shells have a limit on the size
20012 # of here documents, and old seds have small limits too (100 cmds).
20013 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20014 rm -f conftest.tail
20015 while grep . conftest.undefs >/dev/null
20017 # Write a limited-size here document to $tmp/undefs.sed.
20018 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20019 # Speed up: don't consider the non `#undef'
20020 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20021 # Work around the forget-to-reset-the-flag bug.
20022 echo 't clr' >>$CONFIG_STATUS
20023 echo ': clr' >>$CONFIG_STATUS
20024 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20026 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20028 mv $tmp/out $tmp/in
20030 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20031 rm -f conftest.undefs
20032 mv conftest.tail conftest.undefs
20034 rm -f conftest.undefs
20036 cat >>$CONFIG_STATUS <<\_ACEOF
20037 # Let's still pretend it is `configure' which instantiates (i.e., don't
20038 # use $as_me), people would be surprised to read:
20039 # /* config.h. Generated by config.status. */
20040 if test x"$ac_file" = x-; then
20041 echo "/* Generated by configure. */" >$tmp/config.h
20043 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20045 cat $tmp/in >>$tmp/config.h
20047 if test x"$ac_file" != x-; then
20048 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20049 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20050 echo "$as_me: $ac_file is unchanged" >&6;}
20052 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20053 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20054 X"$ac_file" : 'X\(//\)[^/]' \| \
20055 X"$ac_file" : 'X\(//\)$' \| \
20056 X"$ac_file" : 'X\(/\)' \| \
20057 . : '\(.\)' 2>/dev/null ||
20059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20060 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20061 /^X\(\/\/\)$/{ s//\1/; q; }
20062 /^X\(\/\).*/{ s//\1/; q; }
20064 { if $as_mkdir_p; then
20069 while test ! -d "$as_dir"; do
20070 as_dirs="$as_dir $as_dirs"
20071 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20072 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20073 X"$as_dir" : 'X\(//\)[^/]' \| \
20074 X"$as_dir" : 'X\(//\)$' \| \
20075 X"$as_dir" : 'X\(/\)' \| \
20076 . : '\(.\)' 2>/dev/null ||
20078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20079 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20080 /^X\(\/\/\)$/{ s//\1/; q; }
20081 /^X\(\/\).*/{ s//\1/; q; }
20084 test ! -n "$as_dirs" || mkdir $as_dirs
20085 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20086 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20087 { (exit 1); exit 1; }; }; }
20090 mv $tmp/config.h $ac_file
20094 rm -f $tmp/config.h
20098 cat >>$CONFIG_STATUS <<\_ACEOF
20101 # CONFIG_COMMANDS section.
20103 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20104 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20105 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20106 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20107 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20108 X"$ac_dest" : 'X\(//\)[^/]' \| \
20109 X"$ac_dest" : 'X\(//\)$' \| \
20110 X"$ac_dest" : 'X\(/\)' \| \
20111 . : '\(.\)' 2>/dev/null ||
20113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20114 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20115 /^X\(\/\/\)$/{ s//\1/; q; }
20116 /^X\(\/\).*/{ s//\1/; q; }
20120 if test "$ac_dir" != .; then
20121 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20122 # A "../" for each directory in $ac_dir_suffix.
20123 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20125 ac_dir_suffix= ac_top_builddir=
20129 .) # No --srcdir option. We are building in place.
20131 if test -z "$ac_top_builddir"; then
20134 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20136 [\\/]* | ?:[\\/]* ) # Absolute path.
20137 ac_srcdir=$srcdir$ac_dir_suffix;
20138 ac_top_srcdir=$srcdir ;;
20139 *) # Relative path.
20140 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20141 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20143 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20145 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20146 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20147 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20148 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20151 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20152 echo "$as_me: executing $ac_dest commands" >&6;}
20154 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20160 cat >>$CONFIG_STATUS <<\_ACEOF
20162 { (exit 0); exit 0; }
20164 chmod +x $CONFIG_STATUS
20165 ac_clean_files=$ac_clean_files_save
20168 # configure is writing to config.log, and then calls config.status.
20169 # config.status does its own redirection, appending to config.log.
20170 # Unfortunately, on DOS this fails, as config.log is still kept open
20171 # by configure, so config.status won't be able to write to it; its
20172 # output is simply discarded. So we exec the FD to /dev/null,
20173 # effectively closing config.log, so it can be properly (re)opened and
20174 # appended to by config.status. When coming back to configure, we
20175 # need to make the FD available again.
20176 if test "$no_create" != yes; then
20178 ac_config_status_args=
20179 test "$silent" = yes &&
20180 ac_config_status_args="$ac_config_status_args --quiet"
20182 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20184 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20185 # would make configure fail if this is the last instruction.
20186 $ac_cs_success || { (exit 1); exit 1; }
20191 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20192 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20197 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
20198 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
20200 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
20201 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
20203 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
20204 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
20206 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
20207 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
20209 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
20210 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
20212 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20213 chmod 755 $c/sqlite
20216 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20217 largefile_support="yes"
20221 # A whole lot of hand springs to get the compiler version.
20222 # This is because gcc changed the output in version 3.0
20224 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20225 if test "x${CCVERSION}" = "x" ; then
20226 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20228 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20229 if test x"${CXXVERSION}" = x ; then
20230 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20233 if test "x${subsysdir}" = "x${sbindir}" ; then
20236 echo "You have set --sbindir and --with-subsys-dir"
20237 echo " both equal to: ${subsysdir} "
20238 echo " This is not permitted. Please reconfigure."
20240 echo "Aborting configuration ..."
20246 if test "x${db_name}" = "xInternal" ; then
20249 echo "You have not specified either --enable-client-only or one of the"
20250 echo " supported databases: MySQL, PostgreSQL, or SQLite".
20251 echo " This is not permitted. Please reconfigure."
20253 echo "Aborting the configuration ..."
20260 Configuration on `date`:
20262 Host: $host -- ${DISTNAME} ${DISTVER}
20263 Bacula version: ${VERSION} (${DATE})
20264 Source code location: ${srcdir}
20265 Install binaries: ${sbindir}
20266 Install config files: ${sysconfdir}
20267 Scripts directory: ${scriptdir}
20268 Working directory: ${working_dir}
20269 PID directory: ${piddir}
20270 Subsys directory: ${subsysdir}
20271 C Compiler: ${CC} ${CCVERSION}
20272 C++ Compiler: ${CXX} ${CXXVERSION}
20273 Compiler flags: ${WCFLAGS} ${CFLAGS}
20274 Linker flags: ${WLDFLAGS} ${LDFLAGS}
20276 Statically Linked Tools: ${support_static_tools}
20277 Statically Linked FD: ${support_static_fd}
20278 Statically Linked SD: ${support_static_sd}
20279 Statically Linked DIR: ${support_static_dir}
20280 Statically Linked CONS: ${support_static_cons}
20281 Database type: ${db_name}
20282 Database lib: ${DB_LIBS}
20284 Job Output Email: ${job_email}
20285 Traceback Email: ${dump_email}
20286 SMTP Host Address: ${smtp_host}
20288 Director Port: ${dir_port}
20289 File daemon Port: ${fd_port}
20290 Storage daemon Port: ${sd_port}
20292 Director User: ${dir_user}
20293 Director Group: ${dir_group}
20294 Storage Daemon User: ${sd_user}
20295 Storage DaemonGroup: ${sd_group}
20296 File Daemon User: ${fd_user}
20297 File Daemon Group: ${fd_group}
20299 SQL binaries Directory ${SQL_BINDIR}
20301 Large file support: $largefile_support
20302 Bacula conio support: ${got_conio} ${CONS_LIBS}
20303 readline support: ${got_readline} ${PRTREADLINE_SRC}
20304 TCP Wrappers support: ${TCPW_MSG}
20305 ZLIB support: ${have_zlib}
20306 enable-smartalloc: ${support_smartalloc}
20307 enable-gnome: ${support_gnome} ${gnome_version}
20308 enable-wx-console: ${support_wx_console}
20309 enable-tray-monitor: ${support_tray_monitor}
20310 client-only: ${build_client_only}
20311 ACL support: ${have_acl}
20318 # cweb support: ${got_cweb} ${CWEB_SRC}
20319 # gmp support: ${got_gmp} ${GMP_SRC}