2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures this package to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --x-includes=DIR X include files are in DIR
843 --x-libraries=DIR X library files are in DIR
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 if test -n "$ac_init_help"; then
856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
858 --enable-gnome enable build of gnome-console GUI disabled
859 --enable-wx-console enable build of wxWidgets console disabled
860 --enable-smartalloc enable smartalloc debugging support disabled
861 --enable-static-tools enable static tape tools disabled
862 --enable-static-fd enable static File daemon disabled
863 --enable-static-sd enable static Storage daemon disabled
864 --enable-static-dir enable static Director disabled
865 --enable-static-cons enable static Console disabled
866 --enable-client-only build client (File daemon) only disabled
867 --disable-conio disable conio support enabled
869 --disable-readline disable readline support disable
871 --disable-largefile omit support for large files
874 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
875 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
876 --with-gnome-includes Specify location of GNOME headers
877 --with-gnome-libs Specify location of GNOME libs
878 --with-gnome Specify prefix for GNOME files
879 --with-readline=DIR specify readline library directory
880 --with-tcp-wrappers=DIR enable tcpwrappers support
881 --with-working-dir=PATH specify path of Bacula working directory
882 --with-scriptdir=PATH specify path of Bacula scripts directory
883 --with-dump-email=EMAIL dump email address
884 --with-job-email=EMAIL job output email address
885 --with-smtp-host=HOST SMTP mail host address
886 --with-pid-dir=PATH specify location of Bacula pid files
887 --with-subsys-dir=PATH specify location of Bacula subsys file
888 --with-baseport=PORT specify base port address for daemons
889 --with-dir-password=PASSWORD specify Director's password
890 --with-fd-password=PASSWORD specify Client's password
891 --with-sd-password=PASSWORD specify Storage daemon's password
892 --with-dir-user=USER specify user for Director daemon
893 --with-dir-group=GROUP specify group for Director daemon
894 --with-sd-user=USER specify user for Storage daemon
895 --with-sd-group=GROUP specify group for Storage daemon
896 --with-fd-user=USER specify user for File daemon
897 --with-fd-group=GROUP specify group for File daemon
898 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
899 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
900 base install directory, defaults to /usr/local/pgsql
902 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
903 install directory, default is to search through
904 a number of common places for the MySQL files.
906 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
907 install directory, default is to search through
908 a number of common places for the MySQL files.
910 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
911 install directory, default is to search through
912 a number of common places for the SQLite files.
913 --with-x use the X Window System
915 Some influential environment variables:
916 CC C compiler command
917 CFLAGS C compiler flags
918 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
919 nonstandard directory <lib dir>
920 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
921 headers in a nonstandard directory <include dir>
922 CXX C++ compiler command
923 CXXFLAGS C++ compiler flags
926 Use these variables to override the choices made by `configure' or to help
927 it to find libraries and programs with nonstandard names/locations.
932 if test "$ac_init_help" = "recursive"; then
933 # If there are subdirs, report their specific --help.
935 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
936 test -d $ac_dir || continue
939 if test "$ac_dir" != .; then
940 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
941 # A "../" for each directory in $ac_dir_suffix.
942 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
944 ac_dir_suffix= ac_top_builddir=
948 .) # No --srcdir option. We are building in place.
950 if test -z "$ac_top_builddir"; then
953 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
955 [\\/]* | ?:[\\/]* ) # Absolute path.
956 ac_srcdir=$srcdir$ac_dir_suffix;
957 ac_top_srcdir=$srcdir ;;
959 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
960 ac_top_srcdir=$ac_top_builddir$srcdir ;;
962 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
964 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
965 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
966 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
967 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
992 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
993 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1004 It was created by $as_me, which was
1005 generated by GNU Autoconf 2.57. Invocation command line was
1016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1025 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1026 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1029 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1030 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1031 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039 test -z "$as_dir" && as_dir=.
1040 echo "PATH: $as_dir"
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_must_keep_next=false
1070 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1074 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081 if test $ac_must_keep_next = true; then
1082 ac_must_keep_next=false # Got value, back to normal.
1085 *=* | --config-cache | -C | -disable-* | --disable-* \
1086 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088 | -with-* | --with-* | -without-* | --without-* | --x)
1089 case "$ac_configure_args0 " in
1090 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 -* ) ac_must_keep_next=true ;;
1096 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097 # Get rid of the leading space.
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log. We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close' the trap.
1111 trap 'exit_status=$?
1112 # Save into config.log some information that might help in debugging.
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1122 # The following way of writing the cache mishandles newlines in values,
1125 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1145 for ac_var in $ac_subst_vars
1147 eval ac_val=$`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1152 if test -n "$ac_subst_files"; then
1159 for ac_var in $ac_subst_files
1161 eval ac_val=$`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1167 if test -s confdefs.h; then
1174 sed "/^$/d" confdefs.h | sort
1177 test "$ac_signal" != 0 &&
1178 echo "$as_me: caught signal $ac_signal"
1179 echo "$as_me: exit $exit_status"
1181 rm -f core core.* *.core &&
1182 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1185 for ac_signal in 1 2 13 15; do
1186 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195 # Predefined preprocessor variables.
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225 if test "x$prefix" != xNONE; then
1226 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 for ac_site_file in $CONFIG_SITE; do
1232 if test -r "$ac_site_file"; then
1233 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235 sed 's/^/| /' "$ac_site_file" >&5
1240 if test -r "$cache_file"; then
1241 # Some versions of bash will fail to source /dev/null (special
1242 # files actually), so we avoid doing that.
1243 if test -f "$cache_file"; then
1244 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1247 [\\/]* | ?:[\\/]* ) . $cache_file;;
1248 *) . ./$cache_file;;
1252 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1257 # Check that the precious variables saved in the cache have kept the same
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263 eval ac_new_set=\$ac_env_${ac_var}_set
1264 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265 eval ac_new_val="\$ac_env_${ac_var}_value"
1266 case $ac_old_set,$ac_new_set in
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1277 if test "x$ac_old_val" != "x$ac_new_val"; then
1278 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1281 echo "$as_me: former value: $ac_old_val" >&2;}
1282 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1283 echo "$as_me: current value: $ac_new_val" >&2;}
1284 ac_cache_corrupted=:
1287 # Pass precious variables to config.status.
1288 if test "$ac_new_set" = set; then
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292 *) ac_arg=$ac_var=$ac_new_val ;;
1294 case " $ac_configure_args " in
1295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1296 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300 if $ac_cache_corrupted; then
1301 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305 { (exit 1); exit 1; }; }
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1339 if test -f $ac_dir/install-sh; then
1341 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 elif test -f $ac_dir/install.sh; then
1345 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 elif test -f $ac_dir/shtool; then
1349 ac_install_sh="$ac_aux_dir/shtool install -c"
1353 if test -z "$ac_aux_dir"; then
1354 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1355 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1356 { (exit 1); exit 1; }; }
1358 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1370 # Extract the first word of "$ac_prog", so it can be a program name with args.
1371 set dummy $ac_prog; ac_word=$2
1372 echo "$as_me:$LINENO: checking for $ac_word" >&5
1373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1374 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1375 echo $ECHO_N "(cached) $ECHO_C" >&6
1379 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386 test -z "$as_dir" && as_dir=.
1387 for ac_exec_ext in '' $ac_executable_extensions; do
1388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1389 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1399 TRUEPRG=$ac_cv_path_TRUEPRG
1401 if test -n "$TRUEPRG"; then
1402 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1403 echo "${ECHO_T}$TRUEPRG" >&6
1405 echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1409 test -n "$TRUEPRG" && break
1411 test -n "$TRUEPRG" || TRUEPRG=":"
1413 for ac_prog in false
1415 # Extract the first word of "$ac_prog", so it can be a program name with args.
1416 set dummy $ac_prog; ac_word=$2
1417 echo "$as_me:$LINENO: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1424 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431 test -z "$as_dir" && as_dir=.
1432 for ac_exec_ext in '' $ac_executable_extensions; do
1433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1444 FALSEPRG=$ac_cv_path_FALSEPRG
1446 if test -n "$FALSEPRG"; then
1447 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1448 echo "${ECHO_T}$FALSEPRG" >&6
1450 echo "$as_me:$LINENO: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1454 test -n "$FALSEPRG" && break
1456 test -n "$FALSEPRG" || FALSEPRG=":"
1461 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1462 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1464 echo "configuring for bacula $VERSION ($DATE)"
1469 ac_cpp='$CPP $CPPFLAGS'
1470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1473 if test -n "$ac_tool_prefix"; then
1474 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 if test -n "$CC"; then
1482 ac_cv_prog_CC="$CC" # Let the user override the test.
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1501 if test -n "$CC"; then
1502 echo "$as_me:$LINENO: result: $CC" >&5
1503 echo "${ECHO_T}$CC" >&6
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1510 if test -z "$ac_cv_prog_CC"; then
1512 # Extract the first word of "gcc", so it can be a program name with args.
1513 set dummy gcc; ac_word=$2
1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1517 echo $ECHO_N "(cached) $ECHO_C" >&6
1519 if test -n "$ac_ct_CC"; then
1520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 test -z "$as_dir" && as_dir=.
1527 for ac_exec_ext in '' $ac_executable_extensions; do
1528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529 ac_cv_prog_ac_ct_CC="gcc"
1530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1539 if test -n "$ac_ct_CC"; then
1540 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1541 echo "${ECHO_T}$ac_ct_CC" >&6
1543 echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1552 if test -z "$CC"; then
1553 if test -n "$ac_tool_prefix"; then
1554 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1555 set dummy ${ac_tool_prefix}cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 if test -n "$CC"; then
1562 ac_cv_prog_CC="$CC" # Let the user override the test.
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_CC="${ac_tool_prefix}cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581 if test -n "$CC"; then
1582 echo "$as_me:$LINENO: result: $CC" >&5
1583 echo "${ECHO_T}$CC" >&6
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1590 if test -z "$ac_cv_prog_CC"; then
1592 # Extract the first word of "cc", so it can be a program name with args.
1593 set dummy cc; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 if test -n "$ac_ct_CC"; then
1600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 ac_cv_prog_ac_ct_CC="cc"
1610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1619 if test -n "$ac_ct_CC"; then
1620 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1621 echo "${ECHO_T}$ac_ct_CC" >&6
1623 echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1633 if test -z "$CC"; then
1634 # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 if test -n "$CC"; then
1642 ac_cv_prog_CC="$CC" # Let the user override the test.
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1653 ac_prog_rejected=yes
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 if test $ac_prog_rejected = yes; then
1664 # We found a bogon in the path, so make sure we never use it.
1665 set dummy $ac_cv_prog_CC
1667 if test $# != 0; then
1668 # We chose a different compiler from the bogus one.
1669 # However, it has the same basename, so the bogon will be chosen
1670 # first if we set CC to just the basename; use the full file name.
1672 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1678 if test -n "$CC"; then
1679 echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1687 if test -z "$CC"; then
1688 if test -n "$ac_tool_prefix"; then
1691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_CC+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1698 if test -n "$CC"; then
1699 ac_cv_prog_CC="$CC" # Let the user override the test.
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 if test -n "$CC"; then
1719 echo "$as_me:$LINENO: result: $CC" >&5
1720 echo "${ECHO_T}$CC" >&6
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1726 test -n "$CC" && break
1729 if test -z "$CC"; then
1733 # Extract the first word of "$ac_prog", so it can be a program name with args.
1734 set dummy $ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_CC="$ac_prog"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1768 test -n "$ac_ct_CC" && break
1777 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1778 See \`config.log' for more details." >&5
1779 echo "$as_me: error: no acceptable C compiler found in \$PATH
1780 See \`config.log' for more details." >&2;}
1781 { (exit 1); exit 1; }; }
1783 # Provide some information about the compiler.
1784 echo "$as_me:$LINENO:" \
1785 "checking for C compiler version" >&5
1786 ac_compiler=`set X $ac_compile; echo $2`
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1788 (eval $ac_compiler --version </dev/null >&5) 2>&5
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }
1792 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1793 (eval $ac_compiler -v </dev/null >&5) 2>&5
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }
1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1798 (eval $ac_compiler -V </dev/null >&5) 2>&5
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 (exit $ac_status); }
1803 cat >conftest.$ac_ext <<_ACEOF
1804 #line $LINENO "configure"
1807 cat confdefs.h >>conftest.$ac_ext
1808 cat >>conftest.$ac_ext <<_ACEOF
1809 /* end confdefs.h. */
1819 ac_clean_files_save=$ac_clean_files
1820 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1821 # Try to create an executable without -o first, disregard a.out.
1822 # It will help us diagnose broken compilers, and finding out an intuition
1824 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1825 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1826 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1827 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1828 (eval $ac_link_default) 2>&5
1830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1831 (exit $ac_status); }; then
1832 # Find the output, starting from the most likely. This scheme is
1833 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1836 # Be careful to initialize this variable, since it used to be cached.
1837 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1839 # b.out is created by i960 compilers.
1840 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1842 test -f "$ac_file" || continue
1844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1847 # This is the source file.
1850 # We found the default executable, but exeext='' is most
1854 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1855 # FIXME: I believe we export ac_cv_exeext for Libtool,
1856 # but it would be cool to find out if it's true. Does anybody
1857 # maintain Libtool? --akim.
1865 echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1868 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1869 See \`config.log' for more details." >&5
1870 echo "$as_me: error: C compiler cannot create executables
1871 See \`config.log' for more details." >&2;}
1872 { (exit 77); exit 77; }; }
1875 ac_exeext=$ac_cv_exeext
1876 echo "$as_me:$LINENO: result: $ac_file" >&5
1877 echo "${ECHO_T}$ac_file" >&6
1879 # Check the compiler produces executables we can run. If not, either
1880 # the compiler is broken, or we cross compile.
1881 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1884 # If not cross compiling, check that we can run a simple program.
1885 if test "$cross_compiling" != yes; then
1886 if { ac_try='./$ac_file'
1887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; }; then
1894 if test "$cross_compiling" = maybe; then
1897 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1898 If you meant to cross compile, use \`--host'.
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot run C compiled programs.
1901 If you meant to cross compile, use \`--host'.
1902 See \`config.log' for more details." >&2;}
1903 { (exit 1); exit 1; }; }
1907 echo "$as_me:$LINENO: result: yes" >&5
1908 echo "${ECHO_T}yes" >&6
1910 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1911 ac_clean_files=$ac_clean_files_save
1912 # Check the compiler produces executables we can run. If not, either
1913 # the compiler is broken, or we cross compile.
1914 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1915 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1916 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1917 echo "${ECHO_T}$cross_compiling" >&6
1919 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1920 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1922 (eval $ac_link) 2>&5
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }; then
1926 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1927 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1928 # work properly (i.e., refer to `conftest.exe'), while it won't with
1930 for ac_file in conftest.exe conftest conftest.*; do
1931 test -f "$ac_file" || continue
1933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1934 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1941 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1942 See \`config.log' for more details." >&5
1943 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1944 See \`config.log' for more details." >&2;}
1945 { (exit 1); exit 1; }; }
1948 rm -f conftest$ac_cv_exeext
1949 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1950 echo "${ECHO_T}$ac_cv_exeext" >&6
1952 rm -f conftest.$ac_ext
1953 EXEEXT=$ac_cv_exeext
1955 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1956 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1957 if test "${ac_cv_objext+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 cat >conftest.$ac_ext <<_ACEOF
1961 #line $LINENO "configure"
1964 cat confdefs.h >>conftest.$ac_ext
1965 cat >>conftest.$ac_ext <<_ACEOF
1966 /* end confdefs.h. */
1976 rm -f conftest.o conftest.obj
1977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1978 (eval $ac_compile) 2>&5
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); }; then
1982 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1985 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1990 echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1993 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1994 See \`config.log' for more details." >&5
1995 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1996 See \`config.log' for more details." >&2;}
1997 { (exit 1); exit 1; }; }
2000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2002 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2003 echo "${ECHO_T}$ac_cv_objext" >&6
2004 OBJEXT=$ac_cv_objext
2006 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2007 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2008 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h. */
2030 rm -f conftest.$ac_objext
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032 (eval $ac_compile) 2>&5
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); } &&
2036 { ac_try='test -s conftest.$ac_objext'
2037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; }; then
2044 echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2049 rm -f conftest.$ac_objext conftest.$ac_ext
2050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2053 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2054 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2055 GCC=`test $ac_compiler_gnu = yes && echo yes`
2056 ac_test_CFLAGS=${CFLAGS+set}
2057 ac_save_CFLAGS=$CFLAGS
2059 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2060 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2061 if test "${ac_cv_prog_cc_g+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 cat >conftest.$ac_ext <<_ACEOF
2065 #line $LINENO "configure"
2068 cat confdefs.h >>conftest.$ac_ext
2069 cat >>conftest.$ac_ext <<_ACEOF
2070 /* end confdefs.h. */
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082 (eval $ac_compile) 2>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); } &&
2086 { ac_try='test -s conftest.$ac_objext'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; }; then
2094 echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2099 rm -f conftest.$ac_objext conftest.$ac_ext
2101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2102 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2103 if test "$ac_test_CFLAGS" = set; then
2104 CFLAGS=$ac_save_CFLAGS
2105 elif test $ac_cv_prog_cc_g = yes; then
2106 if test "$GCC" = yes; then
2112 if test "$GCC" = yes; then
2118 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2119 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 ac_cv_prog_cc_stdc=no
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2134 #include <sys/types.h>
2135 #include <sys/stat.h>
2136 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2137 struct buf { int x; };
2138 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2139 static char *e (p, i)
2145 static char *f (char * (*g) (char **, int), char **p, ...)
2150 s = g (p, va_arg (v,int));
2154 int test (int i, double x);
2155 struct s1 {int (*f) (int a);};
2156 struct s2 {int (*f) (double a);};
2157 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2163 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2168 # Don't try gcc -ansi; that turns off useful extensions and
2169 # breaks some systems' header files.
2170 # AIX -qlanglvl=ansi
2171 # Ultrix and OSF/1 -std1
2172 # HP-UX 10.20 and later -Ae
2173 # HP-UX older versions -Aa -D_HPUX_SOURCE
2174 # SVR4 -Xc -D__EXTENSIONS__
2175 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2177 CC="$ac_save_CC $ac_arg"
2178 rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180 (eval $ac_compile) 2>&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 ac_cv_prog_cc_stdc=$ac_arg
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2197 rm -f conftest.$ac_objext
2199 rm -f conftest.$ac_ext conftest.$ac_objext
2204 case "x$ac_cv_prog_cc_stdc" in
2206 echo "$as_me:$LINENO: result: none needed" >&5
2207 echo "${ECHO_T}none needed" >&6 ;;
2209 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211 CC="$CC $ac_cv_prog_cc_stdc" ;;
2214 # Some people use a C++ compiler to compile C. Since we use `exit',
2215 # in C++ we need to declare it. In case someone uses the same compiler
2216 # for both compiling C and C++ we need to have the C++ compiler decide
2217 # the declaration of exit, since it's the most demanding environment.
2218 cat >conftest.$ac_ext <<_ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -s conftest.$ac_objext'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2235 for ac_declaration in \
2237 '#include <stdlib.h>' \
2238 'extern "C" void std::exit (int) throw (); using std::exit;' \
2239 'extern "C" void std::exit (int); using std::exit;' \
2240 'extern "C" void exit (int) throw ();' \
2241 'extern "C" void exit (int);' \
2244 cat >conftest.$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); } &&
2267 { ac_try='test -s conftest.$ac_objext'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2280 rm -f conftest.$ac_objext conftest.$ac_ext
2281 cat >conftest.$ac_ext <<_ACEOF
2282 #line $LINENO "configure"
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h. */
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); } &&
2303 { ac_try='test -s conftest.$ac_objext'
2304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; }; then
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2315 rm -f conftest.$ac_objext conftest.$ac_ext
2318 if test -n "$ac_declaration"; then
2319 echo '#ifdef __cplusplus' >>confdefs.h
2320 echo $ac_declaration >>confdefs.h
2321 echo '#endif' >>confdefs.h
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2329 rm -f conftest.$ac_objext conftest.$ac_ext
2331 ac_cpp='$CPP $CPPFLAGS'
2332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2337 ac_cpp='$CXXCPP $CPPFLAGS'
2338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2341 if test -n "$ac_tool_prefix"; then
2342 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2346 echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348 if test "${ac_cv_prog_CXX+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 if test -n "$CXX"; then
2352 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
2360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 if test -n "$CXX"; then
2372 echo "$as_me:$LINENO: result: $CXX" >&5
2373 echo "${ECHO_T}$CXX" >&6
2375 echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6
2379 test -n "$CXX" && break
2382 if test -z "$CXX"; then
2384 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2386 # Extract the first word of "$ac_prog", so it can be a program name with args.
2387 set dummy $ac_prog; ac_word=$2
2388 echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2390 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 if test -n "$ac_ct_CXX"; then
2394 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2403 ac_cv_prog_ac_ct_CXX="$ac_prog"
2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2413 if test -n "$ac_ct_CXX"; then
2414 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2415 echo "${ECHO_T}$ac_ct_CXX" >&6
2417 echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6
2421 test -n "$ac_ct_CXX" && break
2423 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2429 # Provide some information about the compiler.
2430 echo "$as_me:$LINENO:" \
2431 "checking for C++ compiler version" >&5
2432 ac_compiler=`set X $ac_compile; echo $2`
2433 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2434 (eval $ac_compiler --version </dev/null >&5) 2>&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }
2438 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2439 (eval $ac_compiler -v </dev/null >&5) 2>&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }
2443 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2444 (eval $ac_compiler -V </dev/null >&5) 2>&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }
2449 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2450 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2451 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2454 cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h. */
2473 rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475 (eval $ac_compile) 2>&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); } &&
2479 { ac_try='test -s conftest.$ac_objext'
2480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; }; then
2487 echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2492 rm -f conftest.$ac_objext conftest.$ac_ext
2493 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2496 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2497 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2498 GXX=`test $ac_compiler_gnu = yes && echo yes`
2499 ac_test_CXXFLAGS=${CXXFLAGS+set}
2500 ac_save_CXXFLAGS=$CXXFLAGS
2502 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2503 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2504 if test "${ac_cv_prog_cxx_g+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 cat >conftest.$ac_ext <<_ACEOF
2508 #line $LINENO "configure"
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h. */
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525 (eval $ac_compile) 2>&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -s conftest.$ac_objext'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; }; then
2535 ac_cv_prog_cxx_g=yes
2537 echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2544 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2545 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2546 if test "$ac_test_CXXFLAGS" = set; then
2547 CXXFLAGS=$ac_save_CXXFLAGS
2548 elif test $ac_cv_prog_cxx_g = yes; then
2549 if test "$GXX" = yes; then
2555 if test "$GXX" = yes; then
2561 for ac_declaration in \
2563 '#include <stdlib.h>' \
2564 'extern "C" void std::exit (int) throw (); using std::exit;' \
2565 'extern "C" void std::exit (int); using std::exit;' \
2566 'extern "C" void exit (int) throw ();' \
2567 'extern "C" void exit (int);' \
2570 cat >conftest.$ac_ext <<_ACEOF
2571 #line $LINENO "configure"
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589 (eval $ac_compile) 2>&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try='test -s conftest.$ac_objext'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2606 rm -f conftest.$ac_objext conftest.$ac_ext
2607 cat >conftest.$ac_ext <<_ACEOF
2608 #line $LINENO "configure"
2611 cat confdefs.h >>conftest.$ac_ext
2612 cat >>conftest.$ac_ext <<_ACEOF
2613 /* end confdefs.h. */
2623 rm -f conftest.$ac_objext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625 (eval $ac_compile) 2>&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } &&
2629 { ac_try='test -s conftest.$ac_objext'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2641 rm -f conftest.$ac_objext conftest.$ac_ext
2644 if test -n "$ac_declaration"; then
2645 echo '#ifdef __cplusplus' >>confdefs.h
2646 echo $ac_declaration >>confdefs.h
2647 echo '#endif' >>confdefs.h
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656 if test "x$CC" != xcc; then
2657 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2658 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2660 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2661 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2663 set dummy $CC; ac_cc=`echo $2 |
2664 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2665 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 cat >conftest.$ac_ext <<_ACEOF
2669 #line $LINENO "configure"
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2684 # Make sure it works both with $CC and with simple cc.
2685 # We do the test twice because some compilers refuse to overwrite an
2686 # existing .o file with -o, though they will create one.
2687 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2688 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } &&
2693 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); };
2699 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2700 if test "x$CC" != xcc; then
2701 # Test first that cc exists at all.
2702 if { ac_try='cc -c conftest.$ac_ext >&5'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; }; then
2708 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2709 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); };
2723 # cc exists but doesn't like -o.
2724 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2729 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2734 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2735 echo "$as_me:$LINENO: result: yes" >&5
2736 echo "${ECHO_T}yes" >&6
2738 echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2741 cat >>confdefs.h <<\_ACEOF
2742 #define NO_MINUS_C_MINUS_O 1
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2753 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2754 # On Suns, sometimes $CPP names a directory.
2755 if test -n "$CPP" && test -d "$CPP"; then
2758 if test -z "$CPP"; then
2759 if test "${ac_cv_prog_CPP+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 # Double quotes because CPP needs to be expanded
2763 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2766 for ac_c_preproc_warn_flag in '' yes
2768 # Use a header file that comes with gcc, so configuring glibc
2769 # with a fresh cross-compiler works.
2770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2771 # <limits.h> exists even on freestanding compilers.
2772 # On the NeXT, cc -E runs the code through the compiler's parser,
2773 # not just through cpp. "Syntax error" is here to catch this case.
2774 cat >conftest.$ac_ext <<_ACEOF
2775 #line $LINENO "configure"
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2782 # include <limits.h>
2784 # include <assert.h>
2788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2791 grep -v '^ *+' conftest.er1 >conftest.err
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } >/dev/null; then
2796 if test -s conftest.err; then
2797 ac_cpp_err=$ac_c_preproc_warn_flag
2804 if test -z "$ac_cpp_err"; then
2807 echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2810 # Broken: fails on valid input.
2813 rm -f conftest.err conftest.$ac_ext
2815 # OK, works on sane cases. Now check whether non-existent headers
2816 # can be detected and how.
2817 cat >conftest.$ac_ext <<_ACEOF
2818 #line $LINENO "configure"
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2824 #include <ac_nonexistent.h>
2826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2829 grep -v '^ *+' conftest.er1 >conftest.err
2831 cat conftest.err >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } >/dev/null; then
2834 if test -s conftest.err; then
2835 ac_cpp_err=$ac_c_preproc_warn_flag
2842 if test -z "$ac_cpp_err"; then
2843 # Broken: success on invalid input.
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2849 # Passes both tests.
2853 rm -f conftest.err conftest.$ac_ext
2856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2857 rm -f conftest.err conftest.$ac_ext
2858 if $ac_preproc_ok; then
2870 echo "$as_me:$LINENO: result: $CPP" >&5
2871 echo "${ECHO_T}$CPP" >&6
2873 for ac_c_preproc_warn_flag in '' yes
2875 # Use a header file that comes with gcc, so configuring glibc
2876 # with a fresh cross-compiler works.
2877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2878 # <limits.h> exists even on freestanding compilers.
2879 # On the NeXT, cc -E runs the code through the compiler's parser,
2880 # not just through cpp. "Syntax error" is here to catch this case.
2881 cat >conftest.$ac_ext <<_ACEOF
2882 #line $LINENO "configure"
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h. */
2889 # include <limits.h>
2891 # include <assert.h>
2895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2898 grep -v '^ *+' conftest.er1 >conftest.err
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } >/dev/null; then
2903 if test -s conftest.err; then
2904 ac_cpp_err=$ac_c_preproc_warn_flag
2911 if test -z "$ac_cpp_err"; then
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2917 # Broken: fails on valid input.
2920 rm -f conftest.err conftest.$ac_ext
2922 # OK, works on sane cases. Now check whether non-existent headers
2923 # can be detected and how.
2924 cat >conftest.$ac_ext <<_ACEOF
2925 #line $LINENO "configure"
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2931 #include <ac_nonexistent.h>
2933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2936 grep -v '^ *+' conftest.er1 >conftest.err
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } >/dev/null; then
2941 if test -s conftest.err; then
2942 ac_cpp_err=$ac_c_preproc_warn_flag
2949 if test -z "$ac_cpp_err"; then
2950 # Broken: success on invalid input.
2953 echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2956 # Passes both tests.
2960 rm -f conftest.err conftest.$ac_ext
2963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2964 rm -f conftest.err conftest.$ac_ext
2965 if $ac_preproc_ok; then
2968 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2969 See \`config.log' for more details." >&5
2970 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2971 See \`config.log' for more details." >&2;}
2972 { (exit 1); exit 1; }; }
2976 ac_cpp='$CPP $CPPFLAGS'
2977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982 echo "$as_me:$LINENO: checking for egrep" >&5
2983 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2984 if test "${ac_cv_prog_egrep+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2988 then ac_cv_prog_egrep='grep -E'
2989 else ac_cv_prog_egrep='egrep'
2992 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2993 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2994 EGREP=$ac_cv_prog_egrep
2997 if test $ac_cv_c_compiler_gnu = yes; then
2998 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2999 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3000 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 ac_pattern="Autoconf.*'x'"
3004 cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3015 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3016 ac_cv_prog_gcc_traditional=yes
3018 ac_cv_prog_gcc_traditional=no
3023 if test $ac_cv_prog_gcc_traditional = no; then
3024 cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3035 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3036 ac_cv_prog_gcc_traditional=yes
3042 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3043 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3044 if test $ac_cv_prog_gcc_traditional = yes; then
3045 CC="$CC -traditional"
3051 cat >>confdefs.h <<\_ACEOF
3057 # Find a good install program. We prefer a C program (faster),
3058 # so one script is as good as another. But avoid the broken or
3059 # incompatible versions:
3060 # SysV /etc/install, /usr/sbin/install
3061 # SunOS /usr/etc/install
3062 # IRIX /sbin/install
3064 # AmigaOS /C/install, which installs bootblocks on floppy discs
3065 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3066 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3067 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3068 # ./install, which can be erroneously created by make from ./install.sh.
3069 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3070 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3071 if test -z "$INSTALL"; then
3072 if test "${ac_cv_path_install+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir=.
3080 # Account for people who put trailing slashes in PATH elements.
3082 ./ | .// | /cC/* | \
3083 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3086 # OSF1 and SCO ODT 3.0 have their own names for install.
3087 # Don't use installbsd from OSF since it installs stuff as root
3089 for ac_prog in ginstall scoinst install; do
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3092 if test $ac_prog = install &&
3093 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3094 # AIX install. It has an incompatible calling convention.
3096 elif test $ac_prog = install &&
3097 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098 # program-specific install script used by HP pwplus--don't use.
3101 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3113 if test "${ac_cv_path_install+set}" = set; then
3114 INSTALL=$ac_cv_path_install
3116 # As a last resort, use the slow shell script. We don't cache a
3117 # path for INSTALL within a source directory, because that will
3118 # break other packages using the cache if that directory is
3119 # removed, or if the path is relative.
3120 INSTALL=$ac_install_sh
3123 echo "$as_me:$LINENO: result: $INSTALL" >&5
3124 echo "${ECHO_T}$INSTALL" >&6
3126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3127 # It thinks the first close brace ends the variable substitution.
3128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3134 if test -n "$ac_tool_prefix"; then
3135 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3137 echo "$as_me:$LINENO: checking for $ac_word" >&5
3138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3139 if test "${ac_cv_prog_RANLIB+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 if test -n "$RANLIB"; then
3143 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 RANLIB=$ac_cv_prog_RANLIB
3162 if test -n "$RANLIB"; then
3163 echo "$as_me:$LINENO: result: $RANLIB" >&5
3164 echo "${ECHO_T}$RANLIB" >&6
3166 echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3171 if test -z "$ac_cv_prog_RANLIB"; then
3172 ac_ct_RANLIB=$RANLIB
3173 # Extract the first word of "ranlib", so it can be a program name with args.
3174 set dummy ranlib; ac_word=$2
3175 echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 if test -n "$ac_ct_RANLIB"; then
3181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_ac_ct_RANLIB="ranlib"
3191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3201 if test -n "$ac_ct_RANLIB"; then
3202 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3203 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3205 echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3209 RANLIB=$ac_ct_RANLIB
3211 RANLIB="$ac_cv_prog_RANLIB"
3214 # Extract the first word of "mv", so it can be a program name with args.
3215 set dummy mv; ac_word=$2
3216 echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3218 if test "${ac_cv_path_MV+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3246 if test -n "$MV"; then
3247 echo "$as_me:$LINENO: result: $MV" >&5
3248 echo "${ECHO_T}$MV" >&6
3250 echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3254 # Extract the first word of "rm", so it can be a program name with args.
3255 set dummy rm; ac_word=$2
3256 echo "$as_me:$LINENO: checking for $ac_word" >&5
3257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3258 if test "${ac_cv_path_RM+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3286 if test -n "$RM"; then
3287 echo "$as_me:$LINENO: result: $RM" >&5
3288 echo "${ECHO_T}$RM" >&6
3290 echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3294 # Extract the first word of "cp", so it can be a program name with args.
3295 set dummy cp; ac_word=$2
3296 echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3298 if test "${ac_cv_path_CP+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3326 if test -n "$CP"; then
3327 echo "$as_me:$LINENO: result: $CP" >&5
3328 echo "${ECHO_T}$CP" >&6
3330 echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6
3334 # Extract the first word of "sed", so it can be a program name with args.
3335 set dummy sed; ac_word=$2
3336 echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3338 if test "${ac_cv_path_SED+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3366 if test -n "$SED"; then
3367 echo "$as_me:$LINENO: result: $SED" >&5
3368 echo "${ECHO_T}$SED" >&6
3370 echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3374 # Extract the first word of "awk", so it can be a program name with args.
3375 set dummy awk; ac_word=$2
3376 echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378 if test "${ac_cv_path_AWK+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3406 if test -n "$AWK"; then
3407 echo "$as_me:$LINENO: result: $AWK" >&5
3408 echo "${ECHO_T}$AWK" >&6
3410 echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3414 # Extract the first word of "echo", so it can be a program name with args.
3415 set dummy echo; ac_word=$2
3416 echo "$as_me:$LINENO: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3418 if test "${ac_cv_path_ECHO+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3444 ECHO=$ac_cv_path_ECHO
3446 if test -n "$ECHO"; then
3447 echo "$as_me:$LINENO: result: $ECHO" >&5
3448 echo "${ECHO_T}$ECHO" >&6
3450 echo "$as_me:$LINENO: result: no" >&5
3451 echo "${ECHO_T}no" >&6
3454 # Extract the first word of "cmp", so it can be a program name with args.
3455 set dummy cmp; ac_word=$2
3456 echo "$as_me:$LINENO: checking for $ac_word" >&5
3457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458 if test "${ac_cv_path_CMP+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3486 if test -n "$CMP"; then
3487 echo "$as_me:$LINENO: result: $CMP" >&5
3488 echo "${ECHO_T}$CMP" >&6
3490 echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3494 # Extract the first word of "tbl", so it can be a program name with args.
3495 set dummy tbl; ac_word=$2
3496 echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_path_TBL+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3526 if test -n "$TBL"; then
3527 echo "$as_me:$LINENO: result: $TBL" >&5
3528 echo "${ECHO_T}$TBL" >&6
3530 echo "$as_me:$LINENO: result: no" >&5
3531 echo "${ECHO_T}no" >&6
3534 # Extract the first word of "ar", so it can be a program name with args.
3535 set dummy ar; ac_word=$2
3536 echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 if test "${ac_cv_path_AR+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3566 if test -n "$AR"; then
3567 echo "$as_me:$LINENO: result: $AR" >&5
3568 echo "${ECHO_T}$AR" >&6
3570 echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3574 # Extract the first word of "openssl", so it can be a program name with args.
3575 set dummy openssl; ac_word=$2
3576 echo "$as_me:$LINENO: checking for $ac_word" >&5
3577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3578 if test "${ac_cv_path_OPENSSL+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3604 OPENSSL=$ac_cv_path_OPENSSL
3606 if test -n "$OPENSSL"; then
3607 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3608 echo "${ECHO_T}$OPENSSL" >&6
3610 echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3614 # Extract the first word of "mtx", so it can be a program name with args.
3615 set dummy mtx; ac_word=$2
3616 echo "$as_me:$LINENO: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_path_MTX+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3646 if test -n "$MTX"; then
3647 echo "$as_me:$LINENO: result: $MTX" >&5
3648 echo "${ECHO_T}$MTX" >&6
3650 echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3654 # Extract the first word of "pkg-config", so it can be a program name with args.
3655 set dummy pkg-config; ac_word=$2
3656 echo "$as_me:$LINENO: checking for $ac_word" >&5
3657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3658 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3684 PKGCONFIG=$ac_cv_path_PKGCONFIG
3686 if test -n "$PKGCONFIG"; then
3687 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3688 echo "${ECHO_T}$PKGCONFIG" >&6
3690 echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6
3694 # Extract the first word of "wx-config", so it can be a program name with args.
3695 set dummy wx-config; ac_word=$2
3696 echo "$as_me:$LINENO: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 test -z "$as_dir" && as_dir=.
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3724 WXCONFIG=$ac_cv_path_WXCONFIG
3726 if test -n "$WXCONFIG"; then
3727 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3728 echo "${ECHO_T}$WXCONFIG" >&6
3730 echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6
3735 test -n "$ARFLAG" || ARFLAGS="cr"
3748 # Make sure we can run config.sub.
3749 $ac_config_sub sun4 >/dev/null 2>&1 ||
3750 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3751 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3752 { (exit 1); exit 1; }; }
3754 echo "$as_me:$LINENO: checking build system type" >&5
3755 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3756 if test "${ac_cv_build+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 ac_cv_build_alias=$build_alias
3760 test -z "$ac_cv_build_alias" &&
3761 ac_cv_build_alias=`$ac_config_guess`
3762 test -z "$ac_cv_build_alias" &&
3763 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3764 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3765 { (exit 1); exit 1; }; }
3766 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3767 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3768 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3769 { (exit 1); exit 1; }; }
3772 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3773 echo "${ECHO_T}$ac_cv_build" >&6
3775 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3776 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3777 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3780 echo "$as_me:$LINENO: checking for Operating System" >&5
3781 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3782 echo "$as_me:$LINENO: checking host system type" >&5
3783 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3784 if test "${ac_cv_host+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 ac_cv_host_alias=$host_alias
3788 test -z "$ac_cv_host_alias" &&
3789 ac_cv_host_alias=$ac_cv_build_alias
3790 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3791 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3792 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3793 { (exit 1); exit 1; }; }
3796 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3797 echo "${ECHO_T}$ac_cv_host" >&6
3799 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3800 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3801 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3805 *cygwin* ) CYGWIN=yes;;
3809 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3815 HAVE_SUN_OS_FALSE='#'
3817 HAVE_SUN_OS_TRUE='#'
3820 cat >>confdefs.h <<\_ACEOF
3821 #define HAVE_SUN_OS 1
3829 HAVE_SUN_OS_FALSE='#'
3831 HAVE_SUN_OS_TRUE='#'
3836 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3842 HAVE_OSF1_OS_FALSE='#'
3844 HAVE_OSF1_OS_TRUE='#'
3847 cat >>confdefs.h <<\_ACEOF
3848 #define HAVE_OSF1_OS 1
3856 HAVE_OSF1_OS_FALSE='#'
3858 HAVE_OSF1_OS_TRUE='#'
3863 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3869 HAVE_AIX_OS_FALSE='#'
3871 HAVE_AIX_OS_TRUE='#'
3874 cat >>confdefs.h <<\_ACEOF
3875 #define HAVE_AIX_OS 1
3883 HAVE_AIX_OS_FALSE='#'
3885 HAVE_AIX_OS_TRUE='#'
3890 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3896 HAVE_HPUX_OS_FALSE='#'
3898 HAVE_HPUX_OS_TRUE='#'
3901 cat >>confdefs.h <<\_ACEOF
3902 #define HAVE_HPUX_OS 1
3910 HAVE_HPUX_OS_FALSE='#'
3912 HAVE_HPUX_OS_TRUE='#'
3917 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3923 HAVE_LINUX_OS_FALSE='#'
3925 HAVE_LINUX_OS_TRUE='#'
3926 HAVE_LINUX_OS_FALSE=
3928 cat >>confdefs.h <<\_ACEOF
3929 #define HAVE_LINUX_OS 1
3937 HAVE_LINUX_OS_FALSE='#'
3939 HAVE_LINUX_OS_TRUE='#'
3940 HAVE_LINUX_OS_FALSE=
3944 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3949 HAVE_FREEBSD_OS_TRUE=
3950 HAVE_FREEBSD_OS_FALSE='#'
3952 HAVE_FREEBSD_OS_TRUE='#'
3953 HAVE_FREEBSD_OS_FALSE=
3955 cat >>confdefs.h <<\_ACEOF
3956 #define HAVE_FREEBSD_OS 1
3963 HAVE_FREEBSD_OS_TRUE=
3964 HAVE_FREEBSD_OS_FALSE='#'
3966 HAVE_FREEBSD_OS_TRUE='#'
3967 HAVE_FREEBSD_OS_FALSE=
3971 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3976 HAVE_NETBSD_OS_TRUE=
3977 HAVE_NETBSD_OS_FALSE='#'
3979 HAVE_NETBSD_OS_TRUE='#'
3980 HAVE_NETBSD_OS_FALSE=
3982 cat >>confdefs.h <<\_ACEOF
3983 #define HAVE_NETBSD_OS 1
3990 HAVE_NETBSD_OS_TRUE=
3991 HAVE_NETBSD_OS_FALSE='#'
3993 HAVE_NETBSD_OS_TRUE='#'
3994 HAVE_NETBSD_OS_FALSE=
3998 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4003 HAVE_OPENBSD_OS_TRUE=
4004 HAVE_OPENBSD_OS_FALSE='#'
4006 HAVE_OPENBSD_OS_TRUE='#'
4007 HAVE_OPENBSD_OS_FALSE=
4009 cat >>confdefs.h <<\_ACEOF
4010 #define HAVE_OPENBSD_OS 1
4017 HAVE_OPENBSD_OS_TRUE=
4018 HAVE_OPENBSD_OS_FALSE='#'
4020 HAVE_OPENBSD_OS_TRUE='#'
4021 HAVE_OPENBSD_OS_FALSE=
4025 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4031 HAVE_BSDI_OS_FALSE='#'
4033 HAVE_BSDI_OS_TRUE='#'
4036 cat >>confdefs.h <<\_ACEOF
4037 #define HAVE_BSDI_OS 1
4045 HAVE_BSDI_OS_FALSE='#'
4047 HAVE_BSDI_OS_TRUE='#'
4052 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4058 HAVE_SGI_OS_FALSE='#'
4060 HAVE_SGI_OS_TRUE='#'
4063 cat >>confdefs.h <<\_ACEOF
4064 #define HAVE_SGI_OS 1
4072 HAVE_SGI_OS_FALSE='#'
4074 HAVE_SGI_OS_TRUE='#'
4079 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4085 HAVE_IRIX_OS_FALSE='#'
4087 HAVE_IRIX_OS_TRUE='#'
4090 cat >>confdefs.h <<\_ACEOF
4091 #define HAVE_IRIX_OS 1
4099 HAVE_IRIX_OS_FALSE='#'
4101 HAVE_IRIX_OS_TRUE='#'
4106 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4111 HAVE_DARWIN_OS_TRUE=
4112 HAVE_DARWIN_OS_FALSE='#'
4114 HAVE_DARWIN_OS_TRUE='#'
4115 HAVE_DARWIN_OS_FALSE=
4117 cat >>confdefs.h <<\_ACEOF
4118 #define HAVE_DARWIN_OS 1
4125 HAVE_DARWIN_OS_TRUE=
4126 HAVE_DARWIN_OS_FALSE='#'
4128 HAVE_DARWIN_OS_TRUE='#'
4129 HAVE_DARWIN_OS_FALSE=
4133 echo "$as_me:$LINENO: result: \" \"" >&5
4134 echo "${ECHO_T}\" \"" >&6
4137 # -----------------------------------------------------------
4138 # ----------------------------------------------------------
4139 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4140 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4141 if test "x$DISTNAME" != "x"
4143 echo "distname set to $DISTNAME"
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4162 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4165 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4168 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4171 elif test -f /etc/SuSE-release
4174 elif test -d /etc/SuSEconfig
4177 elif test -f /etc/mandrake-release
4180 elif test -f /etc/whitebox-release
4183 elif test -f /etc/redhat-release
4186 elif test -f /etc/gentoo-release
4189 elif test -f /etc/debian_version
4192 elif test -f /etc/slackware-version
4195 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4198 elif test -f /etc/engarde-version
4201 elif test "$CYGWIN" = yes
4204 cat >>confdefs.h <<\_ACEOF
4205 #define HAVE_CYGWIN 1
4211 echo "$as_me:$LINENO: result: \" \"" >&5
4212 echo "${ECHO_T}\" \"" >&6
4215 # -----------------------------------------------------------
4216 # ----------------------------------------------------------
4221 INSIDE_GNOME_COMMON_TRUE=
4222 INSIDE_GNOME_COMMON_FALSE='#'
4224 INSIDE_GNOME_COMMON_TRUE='#'
4225 INSIDE_GNOME_COMMON_FALSE=
4228 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4230 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4233 # ------------------------------------------------------------------
4234 # If the user has not set --prefix, we set our default to nothing.
4235 # In this case, if the user has not set --sysconfdir, we set it
4236 # to the package default of /etc/bacula. If either --prefix or
4237 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4238 # ------------------------------------------------------------------
4239 if test x${prefix} = xNONE ; then
4240 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4241 sysconfdir=/etc/bacula
4245 sysconfdir=`eval echo ${sysconfdir}`
4247 # -------------------------------------------------------------------------
4248 # If the user has not set --exec-prefix, we default to ${prefix}
4249 # -------------------------------------------------------------------------
4250 if test x${exec_prefix} = xNONE ; then
4251 exec_prefix=${prefix}
4254 # ------------------------------------------------------------------
4255 # If the user has not set --sbindir, we set our default as /sbin
4256 # ------------------------------------------------------------------
4257 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4258 sbindir=${exec_prefix}/sbin
4260 sbindir=`eval echo ${sbindir}`
4262 # ------------------------------------------------------------------
4263 # All list of languages for which a translation exist. Each
4264 # language is separated by a space.
4265 # ------------------------------------------------------------------
4268 for ac_prog in msgfmt
4270 # Extract the first word of "$ac_prog", so it can be a program name with args.
4271 set dummy $ac_prog; ac_word=$2
4272 echo "$as_me:$LINENO: checking for $ac_word" >&5
4273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4274 if test "${ac_cv_path_MSGFMT+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 MSGFMT=$ac_cv_path_MSGFMT
4301 if test -n "$MSGFMT"; then
4302 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4303 echo "${ECHO_T}$MSGFMT" >&6
4305 echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6
4309 test -n "$MSGFMT" && break
4311 test -n "$MSGFMT" || MSGFMT="no"
4313 if test "$MSGFMT" = "no"
4315 echo 'msgfmt program not found, disabling NLS !'
4317 USE_INCLUDED_LIBINTL=no
4325 support_postgresql=no
4326 support_smartalloc=yes
4327 support_readline=yes
4330 support_wx_console=no
4332 support_static_tools=no
4333 support_static_fd=no
4334 support_static_sd=no
4335 support_static_dir=no
4336 support_static_cons=no
4337 build_client_only=no
4343 # -------------------------------------------
4344 # gnome (default off)
4345 # -------------------------------------------
4346 # Check whether --enable-gnome or --disable-gnome was given.
4347 if test "${enable_gnome+set}" = set; then
4348 enableval="$enable_gnome"
4349 if test x$enableval = xyes; then
4355 if test x$support_gnome = xyes; then
4356 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4358 if test $pkg = 0; then
4359 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4360 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4361 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4362 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4367 GNOME_DIR=src/gnome2-console
4368 gnome_version="Version 2.x"
4381 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4382 if test "${with_gnome_includes+set}" = set; then
4383 withval="$with_gnome_includes"
4385 CFLAGS="$CFLAGS -I$withval"
4390 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4391 if test "${with_gnome_libs+set}" = set; then
4392 withval="$with_gnome_libs"
4394 LDFLAGS="$LDFLAGS -L$withval"
4395 gnome_prefix=$withval
4400 # Check whether --with-gnome or --without-gnome was given.
4401 if test "${with_gnome+set}" = set; then
4402 withval="$with_gnome"
4403 if test x$withval = xyes; then
4407 if test "x$withval" = xno; then
4411 LDFLAGS="$LDFLAGS -L$withval/lib"
4412 CFLAGS="$CFLAGS -I$withval/include"
4413 gnome_prefix=$withval/lib
4420 if test "x$want_gnome" = xyes; then
4422 # Extract the first word of "gnome-config", so it can be a program name with args.
4423 set dummy gnome-config; ac_word=$2
4424 echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4426 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 case $GNOME_CONFIG in
4431 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 test -z "$as_dir" && as_dir=.
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4452 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4454 if test -n "$GNOME_CONFIG"; then
4455 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4456 echo "${ECHO_T}$GNOME_CONFIG" >&6
4458 echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6
4462 if test "$GNOME_CONFIG" = "no"; then
4463 no_gnome_config="yes"
4465 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4466 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4467 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4468 echo "$as_me:$LINENO: result: yes" >&5
4469 echo "${ECHO_T}yes" >&6
4472 # Extract the first word of "orbit-config", so it can be a program name with args.
4473 set dummy orbit-config; ac_word=$2
4474 echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 case $ORBIT_CONFIG in
4481 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4502 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4504 if test -n "$ORBIT_CONFIG"; then
4505 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4506 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4508 echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4512 # Extract the first word of "orbit-idl", so it can be a program name with args.
4513 set dummy orbit-idl; ac_word=$2
4514 echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4542 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4544 if test -n "$ORBIT_IDL"; then
4545 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4546 echo "${ECHO_T}$ORBIT_IDL" >&6
4548 echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6
4552 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4553 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4554 if test "${gnome_cv_orbit_found+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4559 gnome_cv_orbit_found=no
4561 gnome_cv_orbit_found=yes
4565 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4566 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4569 if test x$gnome_cv_orbit_found = xyes; then
4571 HAVE_ORBIT_FALSE='#'
4576 if test x$gnome_cv_orbit_found = xyes; then
4578 ORBIT_CFLAGS=`orbit-config --cflags client server`
4579 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4583 if test xfail = xfailure; then
4584 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4585 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4586 { (exit 1); exit 1; }; }
4590 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4591 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4592 if test "${gnome_cv_gnorba_found+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 gnome_cv_gnorba_found=no
4597 if test x$gnome_cv_orbit_found = xyes; then
4598 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4599 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4600 if test -n "$GNORBA_LIBS"; then
4601 gnome_cv_gnorba_found=yes
4606 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4607 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4610 if test x$gnome_cv_gnorba_found = xyes; then
4612 HAVE_GNORBA_FALSE='#'
4614 HAVE_GNORBA_TRUE='#'
4617 if test x$gnome_cv_orbit_found = xyes; then
4619 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4620 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4624 if test xfail = xfailure; then
4625 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4626 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4627 { (exit 1); exit 1; }; }
4631 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4632 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4633 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4634 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4635 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4636 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4637 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4640 echo "$as_me:$LINENO: result: no" >&5
4641 echo "${ECHO_T}no" >&6
4642 no_gnome_config="yes"
4646 if test x$exec_prefix = xNONE; then
4647 if test x$prefix = xNONE; then
4648 gnome_prefix=$ac_default_prefix/lib
4650 gnome_prefix=$prefix/lib
4653 gnome_prefix=`eval echo \`echo $libdir\``
4656 if test "$no_gnome_config" = "yes"; then
4657 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4658 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4659 if test -f $gnome_prefix/gnomeConf.sh; then
4660 echo "$as_me:$LINENO: result: found" >&5
4661 echo "${ECHO_T}found" >&6
4662 echo "loading gnome configuration from" \
4663 "$gnome_prefix/gnomeConf.sh"
4664 . $gnome_prefix/gnomeConf.sh
4667 echo "$as_me:$LINENO: result: not found" >&5
4668 echo "${ECHO_T}not found" >&6
4669 if test xfail = xfail; then
4670 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4671 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4672 { (exit 1); exit 1; }; }
4681 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4682 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4686 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4687 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4688 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4691 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4692 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4693 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4696 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4697 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4698 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4700 echo "$as_me:$LINENO: result: unknown library" >&5
4701 echo "${ECHO_T}unknown library" >&6
4703 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4704 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4709 GNOME_DIR=src/gnome-console
4710 gnome_version="Version 1.4"
4716 # -------------------------------------------
4717 # wx-console (default off)
4718 # -------------------------------------------
4719 # Check whether --enable-wx-console or --disable-wx-console was given.
4720 if test "${enable_wx_console+set}" = set; then
4721 enableval="$enable_wx_console"
4722 if test x$enableval = xyes; then
4723 support_wx_console=yes
4728 if test x$support_wx_console = xyes; then
4729 abc=`$WXCONFIG --cppflags`
4731 if test $pkg = 0; then
4732 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4733 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4736 WX_DIR=src/wx-console
4739 echo "wx-config program not found. wx-console disabled."
4741 support_wx_console=no
4748 # -------------------------------------------
4749 # smartalloc (default off)
4750 # -------------------------------------------
4751 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4752 if test "${enable_smartalloc+set}" = set; then
4753 enableval="$enable_smartalloc"
4754 if test x$enableval = xno; then
4755 support_smartalloc=no
4759 if test x$support_smartalloc = xyes; then
4760 cat >>confdefs.h <<\_ACEOF
4761 #define SMARTALLOC 1
4766 # -------------------------------------------
4767 # static-tools (default off)
4768 # -------------------------------------------
4769 # Check whether --enable-static-tools or --disable-static-tools was given.
4770 if test "${enable_static_tools+set}" = set; then
4771 enableval="$enable_static_tools"
4772 if test x$enableval = xyes; then
4773 support_static_tools=yes
4778 if test x$support_static_tools = xyes; then
4779 TTOOL_LDFLAGS="-static"
4783 # -------------------------------------------
4784 # static-fd (default off)
4785 # -------------------------------------------
4786 # Check whether --enable-static-fd or --disable-static-fd was given.
4787 if test "${enable_static_fd+set}" = set; then
4788 enableval="$enable_static_fd"
4789 if test x$enableval = xyes; then
4790 support_static_fd=yes
4795 if test x$support_static_fd = xyes; then
4796 STATIC_FD="static-bacula-fd"
4800 # -------------------------------------------
4801 # static-sd (default off)
4802 # -------------------------------------------
4803 # Check whether --enable-static-sd or --disable-static-sd was given.
4804 if test "${enable_static_sd+set}" = set; then
4805 enableval="$enable_static_sd"
4806 if test x$enableval = xyes; then
4807 support_static_sd=yes
4812 if test x$support_static_sd = xyes; then
4813 STATIC_SD="static-bacula-sd"
4817 # -------------------------------------------
4818 # static-dir (default off)
4819 # -------------------------------------------
4820 # Check whether --enable-static-dir or --disable-static-dir was given.
4821 if test "${enable_static_dir+set}" = set; then
4822 enableval="$enable_static_dir"
4823 if test x$enableval = xyes; then
4824 support_static_dir=yes
4829 if test x$support_static_dir = xyes; then
4830 STATIC_DIR="static-bacula-dir"
4834 # -------------------------------------------
4835 # static-cons (default off)
4836 # -------------------------------------------
4837 # Check whether --enable-static-cons or --disable-static-cons was given.
4838 if test "${enable_static_cons+set}" = set; then
4839 enableval="$enable_static_cons"
4840 if test x$enableval = xyes; then
4841 support_static_cons=yes
4848 if test x$support_static_cons = xyes; then
4849 STATIC_CONS="static-bconsole"
4850 STATIC_GNOME_CONS="static-gnome-console"
4851 STATIC_WX_CONS="static-wx-console"
4857 # -------------------------------------------
4858 # client_only (default off)
4859 # -------------------------------------------
4860 # Check whether --enable-client-only or --disable-client-only was given.
4861 if test "${enable_client_only+set}" = set; then
4862 enableval="$enable_client_only"
4863 if test x$enableval = xyes; then
4864 build_client_only=yes
4869 if test x$build_client_only = xno; then
4876 # ---------------------------------------------------
4877 # Check for conio (Bacula readline substitute)(
4878 # ---------------------------------------------------
4879 # this allows you to turn it completely off
4880 # Check whether --enable-conio or --disable-conio was given.
4881 if test "${enable_conio+set}" = set; then
4882 enableval="$enable_conio"
4883 if test x$enableval = xno; then
4889 if test x$support_conio = xyes; then
4890 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4891 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4892 if test "${ac_cv_header_stdc+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 cat >conftest.$ac_ext <<_ACEOF
4896 #line $LINENO "configure"
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h. */
4915 rm -f conftest.$ac_objext
4916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4917 (eval $ac_compile) 2>&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } &&
4921 { ac_try='test -s conftest.$ac_objext'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; }; then
4927 ac_cv_header_stdc=yes
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4932 ac_cv_header_stdc=no
4934 rm -f conftest.$ac_objext conftest.$ac_ext
4936 if test $ac_cv_header_stdc = yes; then
4937 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4938 cat >conftest.$ac_ext <<_ACEOF
4939 #line $LINENO "configure"
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4949 $EGREP "memchr" >/dev/null 2>&1; then
4952 ac_cv_header_stdc=no
4958 if test $ac_cv_header_stdc = yes; then
4959 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4960 cat >conftest.$ac_ext <<_ACEOF
4961 #line $LINENO "configure"
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h. */
4970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4971 $EGREP "free" >/dev/null 2>&1; then
4974 ac_cv_header_stdc=no
4980 if test $ac_cv_header_stdc = yes; then
4981 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4982 if test "$cross_compiling" = yes; then
4985 cat >conftest.$ac_ext <<_ACEOF
4986 #line $LINENO "configure"
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4993 #if ((' ' & 0x0FF) == 0x020)
4994 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4995 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4997 # define ISLOWER(c) \
4998 (('a' <= (c) && (c) <= 'i') \
4999 || ('j' <= (c) && (c) <= 'r') \
5000 || ('s' <= (c) && (c) <= 'z'))
5001 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5004 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5009 for (i = 0; i < 256; i++)
5010 if (XOR (islower (i), ISLOWER (i))
5011 || toupper (i) != TOUPPER (i))
5016 rm -f conftest$ac_exeext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5018 (eval $ac_link) 2>&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; }; then
5029 echo "$as_me: program exited with status $ac_status" >&5
5030 echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5034 ac_cv_header_stdc=no
5036 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5040 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5041 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5042 if test $ac_cv_header_stdc = yes; then
5044 cat >>confdefs.h <<\_ACEOF
5045 #define STDC_HEADERS 1
5050 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5060 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5061 inttypes.h stdint.h unistd.h
5063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5064 echo "$as_me:$LINENO: checking for $ac_header" >&5
5065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 cat >conftest.$ac_ext <<_ACEOF
5070 #line $LINENO "configure"
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 $ac_includes_default
5078 #include <$ac_header>
5080 rm -f conftest.$ac_objext
5081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5082 (eval $ac_compile) 2>&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } &&
5086 { ac_try='test -s conftest.$ac_objext'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; }; then
5092 eval "$as_ac_Header=yes"
5094 echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5097 eval "$as_ac_Header=no"
5099 rm -f conftest.$ac_objext conftest.$ac_ext
5101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5104 cat >>confdefs.h <<_ACEOF
5105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5113 if test "${ac_cv_header_termcap_h+set}" = set; then
5114 echo "$as_me:$LINENO: checking for termcap.h" >&5
5115 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5116 if test "${ac_cv_header_termcap_h+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5120 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5122 # Is the header compilable?
5123 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5124 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5125 cat >conftest.$ac_ext <<_ACEOF
5126 #line $LINENO "configure"
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5132 $ac_includes_default
5133 #include <termcap.h>
5135 rm -f conftest.$ac_objext
5136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5137 (eval $ac_compile) 2>&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } &&
5141 { ac_try='test -s conftest.$ac_objext'
5142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); }; }; then
5147 ac_header_compiler=yes
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5152 ac_header_compiler=no
5154 rm -f conftest.$ac_objext conftest.$ac_ext
5155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5156 echo "${ECHO_T}$ac_header_compiler" >&6
5158 # Is the header present?
5159 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5160 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5161 cat >conftest.$ac_ext <<_ACEOF
5162 #line $LINENO "configure"
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5168 #include <termcap.h>
5170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5173 grep -v '^ *+' conftest.er1 >conftest.err
5175 cat conftest.err >&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } >/dev/null; then
5178 if test -s conftest.err; then
5179 ac_cpp_err=$ac_c_preproc_warn_flag
5186 if test -z "$ac_cpp_err"; then
5187 ac_header_preproc=yes
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5192 ac_header_preproc=no
5194 rm -f conftest.err conftest.$ac_ext
5195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5196 echo "${ECHO_T}$ac_header_preproc" >&6
5198 # So? What about this header?
5199 case $ac_header_compiler:$ac_header_preproc in
5201 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5202 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5203 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5204 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5207 ## ------------------------------------ ##
5208 ## Report this to bug-autoconf@gnu.org. ##
5209 ## ------------------------------------ ##
5212 sed "s/^/$as_me: WARNING: /" >&2
5215 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5216 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5217 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5218 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5219 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5220 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5223 ## ------------------------------------ ##
5224 ## Report this to bug-autoconf@gnu.org. ##
5225 ## ------------------------------------ ##
5228 sed "s/^/$as_me: WARNING: /" >&2
5231 echo "$as_me:$LINENO: checking for termcap.h" >&5
5232 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5233 if test "${ac_cv_header_termcap_h+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 ac_cv_header_termcap_h=$ac_header_preproc
5238 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5239 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5242 if test $ac_cv_header_termcap_h = yes; then
5243 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5244 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5245 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 ac_check_lib_save_LIBS=$LIBS
5249 LIBS="-ltermcap $LIBS"
5250 cat >conftest.$ac_ext <<_ACEOF
5251 #line $LINENO "configure"
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5258 /* Override any gcc2 internal prototype to avoid an error. */
5262 /* We use char because int might match the return type of a gcc2
5263 builtin and then its argument prototype would still apply. */
5273 rm -f conftest.$ac_objext conftest$ac_exeext
5274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5275 (eval $ac_link) 2>&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } &&
5279 { ac_try='test -s conftest$ac_exeext'
5280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }; }; then
5285 ac_cv_lib_termcap_tgetent=yes
5287 echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5290 ac_cv_lib_termcap_tgetent=no
5292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5293 LIBS=$ac_check_lib_save_LIBS
5295 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5296 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5297 if test $ac_cv_lib_termcap_tgetent = yes; then
5298 CONS_LIBS="-ltermcap"
5304 cat >>confdefs.h <<\_ACEOF
5305 #define HAVE_CONIO 1
5310 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5311 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5312 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 ac_check_lib_save_LIBS=$LIBS
5316 LIBS="-lncurses $LIBS"
5317 cat >conftest.$ac_ext <<_ACEOF
5318 #line $LINENO "configure"
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5325 /* Override any gcc2 internal prototype to avoid an error. */
5329 /* We use char because int might match the return type of a gcc2
5330 builtin and then its argument prototype would still apply. */
5340 rm -f conftest.$ac_objext conftest$ac_exeext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5342 (eval $ac_link) 2>&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } &&
5346 { ac_try='test -s conftest$ac_exeext'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; }; then
5352 ac_cv_lib_ncurses_tgetent=yes
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5357 ac_cv_lib_ncurses_tgetent=no
5359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5360 LIBS=$ac_check_lib_save_LIBS
5362 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5363 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5364 if test $ac_cv_lib_ncurses_tgetent = yes; then
5365 CONS_LIBS="-lncurses"
5371 cat >>confdefs.h <<\_ACEOF
5372 #define HAVE_CONIO 1
5377 echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5385 echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5392 # ---------------------------------------------------
5393 # Check for readline support/directory (default off)
5394 # ---------------------------------------------------
5395 # this allows you to turn it completely off
5396 # Check whether --enable-readline or --disable-readline was given.
5397 if test "${enable_readline+set}" = set; then
5398 enableval="$enable_readline"
5399 if test x$enableval = xno; then
5406 if test x$support_readline = xyes; then
5408 # Check whether --with-readline or --without-readline was given.
5409 if test "${with_readline+set}" = set; then
5410 withval="$with_readline"
5412 case "$with_readline" in
5415 if test "$with_readline" != "yes"; then
5416 CONS_INC="-I${with_readline}"
5417 CONS_LDFLAGS="-L$with_readline"
5419 with_readline="/usr/include/readline"
5421 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5423 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5424 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5431 # Is the header compilable?
5432 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5433 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5434 cat >conftest.$ac_ext <<_ACEOF
5435 #line $LINENO "configure"
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5441 $ac_includes_default
5442 #include <${with_readline}/readline.h>
5444 rm -f conftest.$ac_objext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446 (eval $ac_compile) 2>&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try='test -s conftest.$ac_objext'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; }; then
5456 ac_header_compiler=yes
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5461 ac_header_compiler=no
5463 rm -f conftest.$ac_objext conftest.$ac_ext
5464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5465 echo "${ECHO_T}$ac_header_compiler" >&6
5467 # Is the header present?
5468 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5469 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5470 cat >conftest.$ac_ext <<_ACEOF
5471 #line $LINENO "configure"
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h. */
5477 #include <${with_readline}/readline.h>
5479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5482 grep -v '^ *+' conftest.er1 >conftest.err
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } >/dev/null; then
5487 if test -s conftest.err; then
5488 ac_cpp_err=$ac_c_preproc_warn_flag
5495 if test -z "$ac_cpp_err"; then
5496 ac_header_preproc=yes
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5501 ac_header_preproc=no
5503 rm -f conftest.err conftest.$ac_ext
5504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5505 echo "${ECHO_T}$ac_header_preproc" >&6
5507 # So? What about this header?
5508 case $ac_header_compiler:$ac_header_preproc in
5510 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5511 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5512 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5513 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5516 ## ------------------------------------ ##
5517 ## Report this to bug-autoconf@gnu.org. ##
5518 ## ------------------------------------ ##
5521 sed "s/^/$as_me: WARNING: /" >&2
5524 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5525 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5526 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5527 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5528 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5529 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5532 ## ------------------------------------ ##
5533 ## Report this to bug-autoconf@gnu.org. ##
5534 ## ------------------------------------ ##
5537 sed "s/^/$as_me: WARNING: /" >&2
5540 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5541 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 eval "$as_ac_Header=$ac_header_preproc"
5547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5552 cat >>confdefs.h <<\_ACEOF
5553 #define HAVE_READLINE 1
5556 CONS_LIBS="-lreadline -ltermcap"
5561 echo "readline.h not found. readline turned off ..."
5573 # check for standard readline library
5574 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5575 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5576 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5577 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5581 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5583 # Is the header compilable?
5584 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5585 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5586 cat >conftest.$ac_ext <<_ACEOF
5587 #line $LINENO "configure"
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5593 $ac_includes_default
5594 #include </usr/include/readline/readline.h>
5596 rm -f conftest.$ac_objext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5598 (eval $ac_compile) 2>&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } &&
5602 { ac_try='test -s conftest.$ac_objext'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; }; then
5608 ac_header_compiler=yes
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5613 ac_header_compiler=no
5615 rm -f conftest.$ac_objext conftest.$ac_ext
5616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5617 echo "${ECHO_T}$ac_header_compiler" >&6
5619 # Is the header present?
5620 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5621 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5622 cat >conftest.$ac_ext <<_ACEOF
5623 #line $LINENO "configure"
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h. */
5629 #include </usr/include/readline/readline.h>
5631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5634 grep -v '^ *+' conftest.er1 >conftest.err
5636 cat conftest.err >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } >/dev/null; then
5639 if test -s conftest.err; then
5640 ac_cpp_err=$ac_c_preproc_warn_flag
5647 if test -z "$ac_cpp_err"; then
5648 ac_header_preproc=yes
5650 echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5653 ac_header_preproc=no
5655 rm -f conftest.err conftest.$ac_ext
5656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5657 echo "${ECHO_T}$ac_header_preproc" >&6
5659 # So? What about this header?
5660 case $ac_header_compiler:$ac_header_preproc in
5662 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5663 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5664 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5665 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5668 ## ------------------------------------ ##
5669 ## Report this to bug-autoconf@gnu.org. ##
5670 ## ------------------------------------ ##
5673 sed "s/^/$as_me: WARNING: /" >&2
5676 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5677 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5678 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5679 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5680 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5681 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5684 ## ------------------------------------ ##
5685 ## Report this to bug-autoconf@gnu.org. ##
5686 ## ------------------------------------ ##
5689 sed "s/^/$as_me: WARNING: /" >&2
5692 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5693 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5694 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5699 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5700 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5703 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5704 cat >>confdefs.h <<\_ACEOF
5705 #define HAVE_READLINE 1
5709 CONS_INC="-I/usr/include/readline"
5710 CONS_LIBS="-lreadline -ltermcap"
5714 # Did not find standard library, so try Bacula's default
5715 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5717 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5718 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5725 # Is the header compilable?
5726 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5727 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5728 cat >conftest.$ac_ext <<_ACEOF
5729 #line $LINENO "configure"
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 $ac_includes_default
5736 #include <${TOP_DIR}/depkgs/readline/readline.h>
5738 rm -f conftest.$ac_objext
5739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5740 (eval $ac_compile) 2>&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -s conftest.$ac_objext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5750 ac_header_compiler=yes
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5755 ac_header_compiler=no
5757 rm -f conftest.$ac_objext conftest.$ac_ext
5758 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5759 echo "${ECHO_T}$ac_header_compiler" >&6
5761 # Is the header present?
5762 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5763 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5764 cat >conftest.$ac_ext <<_ACEOF
5765 #line $LINENO "configure"
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5771 #include <${TOP_DIR}/depkgs/readline/readline.h>
5773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5776 grep -v '^ *+' conftest.er1 >conftest.err
5778 cat conftest.err >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } >/dev/null; then
5781 if test -s conftest.err; then
5782 ac_cpp_err=$ac_c_preproc_warn_flag
5789 if test -z "$ac_cpp_err"; then
5790 ac_header_preproc=yes
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5795 ac_header_preproc=no
5797 rm -f conftest.err conftest.$ac_ext
5798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5799 echo "${ECHO_T}$ac_header_preproc" >&6
5801 # So? What about this header?
5802 case $ac_header_compiler:$ac_header_preproc in
5804 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5805 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5806 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5807 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5810 ## ------------------------------------ ##
5811 ## Report this to bug-autoconf@gnu.org. ##
5812 ## ------------------------------------ ##
5815 sed "s/^/$as_me: WARNING: /" >&2
5818 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5819 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5820 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5821 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5822 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5823 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5826 ## ------------------------------------ ##
5827 ## Report this to bug-autoconf@gnu.org. ##
5828 ## ------------------------------------ ##
5831 sed "s/^/$as_me: WARNING: /" >&2
5834 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5835 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 eval "$as_ac_Header=$ac_header_preproc"
5841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5846 cat >>confdefs.h <<\_ACEOF
5847 #define HAVE_READLINE 1
5851 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5852 CONS_LIBS="-lreadline -lhistory -ltermcap"
5853 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5854 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5858 echo "readline.h not found. readline turned off ..."
5884 # Minimal stuff for readline Makefile configuration
5887 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5888 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5889 if test "${ac_cv_header_stat_broken+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 cat >conftest.$ac_ext <<_ACEOF
5893 #line $LINENO "configure"
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899 #include <sys/types.h>
5900 #include <sys/stat.h>
5902 #if defined(S_ISBLK) && defined(S_IFDIR)
5903 # if S_ISBLK (S_IFDIR)
5908 #if defined(S_ISBLK) && defined(S_IFCHR)
5909 # if S_ISBLK (S_IFCHR)
5914 #if defined(S_ISLNK) && defined(S_IFREG)
5915 # if S_ISLNK (S_IFREG)
5920 #if defined(S_ISSOCK) && defined(S_IFREG)
5921 # if S_ISSOCK (S_IFREG)
5927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5928 $EGREP "You lose" >/dev/null 2>&1; then
5929 ac_cv_header_stat_broken=yes
5931 ac_cv_header_stat_broken=no
5936 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5937 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5938 if test $ac_cv_header_stat_broken = yes; then
5940 cat >>confdefs.h <<\_ACEOF
5941 #define STAT_MACROS_BROKEN 1
5952 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5953 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5954 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5955 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 cat >conftest.$ac_ext <<_ACEOF
5960 #line $LINENO "configure"
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5966 #include <sys/types.h>
5978 rm -f conftest.$ac_objext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980 (eval $ac_compile) 2>&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } &&
5984 { ac_try='test -s conftest.$ac_objext'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; }; then
5990 eval "$as_ac_Header=yes"
5992 echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.$ac_ext >&5
5995 eval "$as_ac_Header=no"
5997 rm -f conftest.$ac_objext conftest.$ac_ext
5999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6002 cat >>confdefs.h <<_ACEOF
6003 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6006 ac_header_dirent=$ac_hdr; break
6010 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6011 if test $ac_header_dirent = dirent.h; then
6012 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6013 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6014 if test "${ac_cv_search_opendir+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 ac_func_search_save_LIBS=$LIBS
6018 ac_cv_search_opendir=no
6019 cat >conftest.$ac_ext <<_ACEOF
6020 #line $LINENO "configure"
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6027 /* Override any gcc2 internal prototype to avoid an error. */
6031 /* We use char because int might match the return type of a gcc2
6032 builtin and then its argument prototype would still apply. */
6042 rm -f conftest.$ac_objext conftest$ac_exeext
6043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6044 (eval $ac_link) 2>&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } &&
6048 { ac_try='test -s conftest$ac_exeext'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; }; then
6054 ac_cv_search_opendir="none required"
6056 echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6061 if test "$ac_cv_search_opendir" = no; then
6062 for ac_lib in dir; do
6063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6064 cat >conftest.$ac_ext <<_ACEOF
6065 #line $LINENO "configure"
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6072 /* Override any gcc2 internal prototype to avoid an error. */
6076 /* We use char because int might match the return type of a gcc2
6077 builtin and then its argument prototype would still apply. */
6087 rm -f conftest.$ac_objext conftest$ac_exeext
6088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6089 (eval $ac_link) 2>&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } &&
6093 { ac_try='test -s conftest$ac_exeext'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; }; then
6099 ac_cv_search_opendir="-l$ac_lib"
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6109 LIBS=$ac_func_search_save_LIBS
6111 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6112 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6113 if test "$ac_cv_search_opendir" != no; then
6114 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6119 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6120 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6121 if test "${ac_cv_search_opendir+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 ac_func_search_save_LIBS=$LIBS
6125 ac_cv_search_opendir=no
6126 cat >conftest.$ac_ext <<_ACEOF
6127 #line $LINENO "configure"
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6134 /* Override any gcc2 internal prototype to avoid an error. */
6138 /* We use char because int might match the return type of a gcc2
6139 builtin and then its argument prototype would still apply. */
6149 rm -f conftest.$ac_objext conftest$ac_exeext
6150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6151 (eval $ac_link) 2>&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } &&
6155 { ac_try='test -s conftest$ac_exeext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 ac_cv_search_opendir="none required"
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.$ac_ext >&5
6167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6168 if test "$ac_cv_search_opendir" = no; then
6170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6171 cat >conftest.$ac_ext <<_ACEOF
6172 #line $LINENO "configure"
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6179 /* Override any gcc2 internal prototype to avoid an error. */
6183 /* We use char because int might match the return type of a gcc2
6184 builtin and then its argument prototype would still apply. */
6194 rm -f conftest.$ac_objext conftest$ac_exeext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6196 (eval $ac_link) 2>&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } &&
6200 { ac_try='test -s conftest$ac_exeext'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6206 ac_cv_search_opendir="-l$ac_lib"
6209 echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.$ac_ext >&5
6213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6216 LIBS=$ac_func_search_save_LIBS
6218 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6219 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6220 if test "$ac_cv_search_opendir" != no; then
6221 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6235 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6238 echo "$as_me:$LINENO: checking for $ac_func" >&5
6239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6240 if eval "test \"\${$as_ac_var+set}\" = set"; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 cat >conftest.$ac_ext <<_ACEOF
6244 #line $LINENO "configure"
6247 cat confdefs.h >>conftest.$ac_ext
6248 cat >>conftest.$ac_ext <<_ACEOF
6249 /* end confdefs.h. */
6250 /* System header to define __stub macros and hopefully few prototypes,
6251 which can conflict with char $ac_func (); below.
6252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6253 <limits.h> exists even on freestanding compilers. */
6255 # include <limits.h>
6257 # include <assert.h>
6259 /* Override any gcc2 internal prototype to avoid an error. */
6264 /* We use char because int might match the return type of a gcc2
6265 builtin and then its argument prototype would still apply. */
6267 /* The GNU C library defines this for functions which it implements
6268 to always fail with ENOSYS. Some functions are actually named
6269 something starting with __ and the normal name is an alias. */
6270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6273 char (*f) () = $ac_func;
6282 return f != $ac_func;
6287 rm -f conftest.$ac_objext conftest$ac_exeext
6288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6289 (eval $ac_link) 2>&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } &&
6293 { ac_try='test -s conftest$ac_exeext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 eval "$as_ac_var=yes"
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 eval "$as_ac_var=no"
6306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6310 if test `eval echo '${'$as_ac_var'}'` = yes; then
6311 cat >>confdefs.h <<_ACEOF
6312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6320 for ac_func in nanosleep nl_langinfo
6322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6323 echo "$as_me:$LINENO: checking for $ac_func" >&5
6324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6325 if eval "test \"\${$as_ac_var+set}\" = set"; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 cat >conftest.$ac_ext <<_ACEOF
6329 #line $LINENO "configure"
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 /* System header to define __stub macros and hopefully few prototypes,
6336 which can conflict with char $ac_func (); below.
6337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6338 <limits.h> exists even on freestanding compilers. */
6340 # include <limits.h>
6342 # include <assert.h>
6344 /* Override any gcc2 internal prototype to avoid an error. */
6349 /* We use char because int might match the return type of a gcc2
6350 builtin and then its argument prototype would still apply. */
6352 /* The GNU C library defines this for functions which it implements
6353 to always fail with ENOSYS. Some functions are actually named
6354 something starting with __ and the normal name is an alias. */
6355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6358 char (*f) () = $ac_func;
6367 return f != $ac_func;
6372 rm -f conftest.$ac_objext conftest$ac_exeext
6373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6374 (eval $ac_link) 2>&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } &&
6378 { ac_try='test -s conftest$ac_exeext'
6379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; }; then
6384 eval "$as_ac_var=yes"
6386 echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6389 eval "$as_ac_var=no"
6391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6395 if test `eval echo '${'$as_ac_var'}'` = yes; then
6396 cat >>confdefs.h <<_ACEOF
6397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6404 for ac_header in varargs.h
6406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408 echo "$as_me:$LINENO: checking for $ac_header" >&5
6409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6416 # Is the header compilable?
6417 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6419 cat >conftest.$ac_ext <<_ACEOF
6420 #line $LINENO "configure"
6423 cat confdefs.h >>conftest.$ac_ext
6424 cat >>conftest.$ac_ext <<_ACEOF
6425 /* end confdefs.h. */
6426 $ac_includes_default
6427 #include <$ac_header>
6429 rm -f conftest.$ac_objext
6430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6431 (eval $ac_compile) 2>&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } &&
6435 { ac_try='test -s conftest.$ac_objext'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; }; then
6441 ac_header_compiler=yes
6443 echo "$as_me: failed program was:" >&5
6444 sed 's/^/| /' conftest.$ac_ext >&5
6446 ac_header_compiler=no
6448 rm -f conftest.$ac_objext conftest.$ac_ext
6449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6450 echo "${ECHO_T}$ac_header_compiler" >&6
6452 # Is the header present?
6453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6455 cat >conftest.$ac_ext <<_ACEOF
6456 #line $LINENO "configure"
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6462 #include <$ac_header>
6464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6467 grep -v '^ *+' conftest.er1 >conftest.err
6469 cat conftest.err >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } >/dev/null; then
6472 if test -s conftest.err; then
6473 ac_cpp_err=$ac_c_preproc_warn_flag
6480 if test -z "$ac_cpp_err"; then
6481 ac_header_preproc=yes
6483 echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6486 ac_header_preproc=no
6488 rm -f conftest.err conftest.$ac_ext
6489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6490 echo "${ECHO_T}$ac_header_preproc" >&6
6492 # So? What about this header?
6493 case $ac_header_compiler:$ac_header_preproc in
6495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6501 ## ------------------------------------ ##
6502 ## Report this to bug-autoconf@gnu.org. ##
6503 ## ------------------------------------ ##
6506 sed "s/^/$as_me: WARNING: /" >&2
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6517 ## ------------------------------------ ##
6518 ## Report this to bug-autoconf@gnu.org. ##
6519 ## ------------------------------------ ##
6522 sed "s/^/$as_me: WARNING: /" >&2
6525 echo "$as_me:$LINENO: checking for $ac_header" >&5
6526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 eval "$as_ac_Header=$ac_header_preproc"
6532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6537 cat >>confdefs.h <<_ACEOF
6538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6546 # End of readline/conio stuff
6547 # -----------------------------------------------------------------------
6550 # ---------------------------------------------------
6551 # Check for GMP support/directory
6552 # ---------------------------------------------------
6556 # [ --with-gmp[=DIR] Specify gmp library directory],
6558 # case "$with_gmp" in
6561 # if test "$with_gmp" != "yes"; then
6562 # GMP_INC="-I$with_gmp"
6564 # GMP_LDFLAGS="-L$with_gmp"
6566 # with_gmp="/usr/include"
6568 # AC_CHECK_HEADER($with_gmp/gmp.h,
6569 # [ AC_MSG_RESULT(yes)
6570 # AC_DEFINE(HAVE_GMP)
6574 # [ AC_MSG_ERROR([*** gmp library missing])
6580 # # check for standard gmp library
6581 # AC_CHECK_HEADER(/usr/include/gmp.h,
6582 # [ AC_MSG_RESULT(yes)
6583 # AC_DEFINE(HAVE_GMP)
6588 # # Did not find standard library, so use our own
6589 # AC_MSG_RESULT(yes)
6590 # AC_DEFINE(HAVE_GMP)
6593 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6595 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6596 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6602 #AC_SUBST(GMP_LDFLAGS)
6606 # -----------------------------------------------------------------------
6609 # ---------------------------------------------------
6610 # Check for CWEB support/directory
6611 # ---------------------------------------------------
6616 # [ --with-cweb[=DIR] Specify cweb library directory],
6618 # case "$with_cweb" in
6621 # if test "$with_cweb" != "yes"; then
6622 # CWEB_INC="-I$with_cweb"
6623 # CWEB_LIBS="-lcweb"
6624 # CWEB_LDFLAGS="-L$with_cweb"
6626 # with_cweb="/usr/include"
6628 # AC_CHECK_HEADER($with_cweb/cweb.h,
6629 # [ AC_MSG_RESULT(yes)
6630 # AC_DEFINE(HAVE_CWEB)
6631 # CWEB_LIBS="-lcweb"
6634 # [ AC_MSG_ERROR([*** cweb library missing])
6640 # # check for standard cweb library
6641 # AC_CHECK_HEADER(/usr/include/cweb.h,
6642 # [ AC_MSG_RESULT(yes)
6643 # AC_DEFINE(HAVE_CWEB)
6646 # CWEB_LIBS="-lcweb"
6648 # # Did not find starndard library, so use our own
6649 # AC_MSG_RESULT(yes)
6650 # AC_DEFINE(HAVE_CWEB)
6653 # CWEB=${TOP_DIR}/depkgs/cweb
6654 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6655 # CWEB_LIBS="-lcweb"
6656 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6657 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6663 #AC_SUBST(CWEB_LIBS)
6664 #AC_SUBST(CWEB_LDFLAGS)
6668 # -----------------------------------------------------------------------
6672 # -----------------------------------------------------------
6673 # Check whether user wants TCP wrappers support (default off)
6674 # -----------------------------------------------------------
6677 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6678 if test "${with_tcp_wrappers+set}" = set; then
6679 withval="$with_tcp_wrappers"
6681 if test "x$withval" != "xno" ; then
6683 LIBS="$saved_LIBS -lwrap"
6684 echo "$as_me:$LINENO: checking for libwrap" >&5
6685 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6686 cat >conftest.$ac_ext <<_ACEOF
6687 #line $LINENO "configure"
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6694 int deny_severity = 0;
6695 int allow_severity = 0;
6696 struct request_info *req;
6705 rm -f conftest.$ac_objext conftest$ac_exeext
6706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6707 (eval $ac_link) 2>&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } &&
6711 { ac_try='test -s conftest$ac_exeext'
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6718 echo "$as_me:$LINENO: result: yes" >&5
6719 echo "${ECHO_T}yes" >&6
6720 cat >>confdefs.h <<\_ACEOF
6721 #define HAVE_LIBWRAP 1
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6731 LIBS="$saved_LIBS -lwrap -lnsl"
6732 cat >conftest.$ac_ext <<_ACEOF
6733 #line $LINENO "configure"
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6740 int deny_severity = 0;
6741 int allow_severity = 0;
6742 struct request_info *req;
6751 rm -f conftest.$ac_objext conftest$ac_exeext
6752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6753 (eval $ac_link) 2>&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try='test -s conftest$ac_exeext'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; }; then
6764 echo "$as_me:$LINENO: result: yes" >&5
6765 echo "${ECHO_T}yes" >&6
6766 cat >>confdefs.h <<\_ACEOF
6767 #define HAVE_LIBWRAP 1
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6776 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6777 echo "$as_me: error: *** libwrap missing" >&2;}
6778 { (exit 1); exit 1; }; }
6781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6790 # ------------------------------------------
6791 # Where to place working dir
6792 # ------------------------------------------
6793 working_dir=`eval echo ${prefix}/var/bacula/working`
6795 # Check whether --with-working-dir or --without-working-dir was given.
6796 if test "${with_working_dir+set}" = set; then
6797 withval="$with_working_dir"
6799 if test "x$withval" != "xno" ; then
6800 working_dir=$withval
6809 # ------------------------------------------
6810 # Where to place scriptdir (script files)
6811 # ------------------------------------------
6812 scriptdir=`eval echo ${sysconfdir}`
6814 # Check whether --with-scriptdir or --without-scriptdir was given.
6815 if test "${with_scriptdir+set}" = set; then
6816 withval="$with_scriptdir"
6818 if test "x$withval" != "xno" ; then
6828 # ------------------------------------------
6829 # Where to send dump email
6830 # ------------------------------------------
6831 dump_email=root@localhost
6833 # Check whether --with-dump-email or --without-dump-email was given.
6834 if test "${with_dump_email+set}" = set; then
6835 withval="$with_dump_email"
6837 if test "x$withval" != "xno" ; then
6846 # ------------------------------------------
6847 # Where to send job email
6848 # ------------------------------------------
6849 job_email=root@localhost
6851 # Check whether --with-job-email or --without-job-email was given.
6852 if test "${with_job_email+set}" = set; then
6853 withval="$with_job_email"
6855 if test "x$withval" != "xno" ; then
6864 # ------------------------------------------
6865 # Where to find smtp host
6866 # ------------------------------------------
6869 # Check whether --with-smtp_host or --without-smtp_host was given.
6870 if test "${with_smtp_host+set}" = set; then
6871 withval="$with_smtp_host"
6873 if test "x$withval" != "xno" ; then
6883 # ------------------------------------
6884 # Where to place pid files
6885 # ------------------------------------
6888 # Check whether --with-pid-dir or --without-pid-dir was given.
6889 if test "${with_pid_dir+set}" = set; then
6890 withval="$with_pid_dir"
6892 if test "x$withval" != "xno" ; then
6899 cat >>confdefs.h <<_ACEOF
6900 #define _PATH_BACULA_PIDDIR "$piddir"
6906 # ------------------------------------
6907 # Where to place subsys "lock file"
6908 # ------------------------------------
6909 subsysdir=/var/run/subsys
6911 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6912 if test "${with_subsys_dir+set}" = set; then
6913 withval="$with_subsys_dir"
6915 if test "x$withval" != "xno" ; then
6926 # ------------------------------------
6927 # Where to start assigning ports
6928 # ------------------------------------
6931 # Check whether --with-baseport or --without-baseport was given.
6932 if test "${with_baseport+set}" = set; then
6933 withval="$with_baseport"
6935 if test "x$withval" != "xno" ; then
6943 dir_port=`expr $baseport`
6944 fd_port=`expr $baseport + 1`
6945 sd_port=`expr $fd_port + 1`
6952 # ------------------------------------------
6953 # Generate passwords
6954 # ------------------------------------------
6957 # Check whether --with-dir-password or --without-dir-password was given.
6958 if test "${with_dir_password+set}" = set; then
6959 withval="$with_dir_password"
6961 if test "x$withval" != "xno" ; then
6962 dir_password=$withval
6968 if test "x$dir_password" = "x" ; then
6969 if test "x$OPENSSL" = "xnone" ; then
6970 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6971 key=`autoconf/randpass 33`
6973 key=`openssl rand -base64 33`
6980 # Check whether --with-fd-password or --without-fd-password was given.
6981 if test "${with_fd_password+set}" = set; then
6982 withval="$with_fd_password"
6984 if test "x$withval" != "xno" ; then
6985 fd_password=$withval
6991 if test "x$fd_password" = "x" ; then
6992 if test "x$OPENSSL" = "xnone" ; then
6993 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6994 key=`autoconf/randpass 37`
6996 key=`openssl rand -base64 33`
7003 # Check whether --with-sd-password or --without-sd-password was given.
7004 if test "${with_sd_password+set}" = set; then
7005 withval="$with_sd_password"
7007 if test "x$withval" != "xno" ; then
7008 sd_password=$withval
7014 if test "x$sd_password" = "x" ; then
7015 if test "x$OPENSSL" = "xnone" ; then
7016 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7017 key=`autoconf/randpass 41`
7019 key=`openssl rand -base64 33`
7031 # Handle users and groups for each daemon
7035 # Check whether --with-dir_user or --without-dir_user was given.
7036 if test "${with_dir_user+set}" = set; then
7037 withval="$with_dir_user"
7039 if test "x$withval" != "x" ; then
7048 # Check whether --with-dir_group or --without-dir_group was given.
7049 if test "${with_dir_group+set}" = set; then
7050 withval="$with_dir_group"
7052 if test "x$withval" != "x" ; then
7061 # Check whether --with-sd_user or --without-sd_user was given.
7062 if test "${with_sd_user+set}" = set; then
7063 withval="$with_sd_user"
7065 if test "x$withval" != "x" ; then
7074 # Check whether --with-sd_group or --without-sd_group was given.
7075 if test "${with_sd_group+set}" = set; then
7076 withval="$with_sd_group"
7078 if test "x$withval" != "x" ; then
7087 # Check whether --with-fd_user or --without-fd_user was given.
7088 if test "${with_fd_user+set}" = set; then
7089 withval="$with_fd_user"
7091 if test "x$withval" != "x" ; then
7100 # Check whether --with-fd_group or --without-fd_group was given.
7101 if test "${with_fd_group+set}" = set; then
7102 withval="$with_fd_group"
7104 if test "x$withval" != "x" ; then
7122 # allow setting default executable permissions
7126 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7127 if test "${with_sbin_perm+set}" = set; then
7128 withval="$with_sbin_perm"
7130 if test "x$withval" != "x" ; then
7139 # ------------------------------------------------
7140 # Bacula check for various SQL database engines
7141 # ------------------------------------------------
7144 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7145 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7147 # Check whether --with-postgresql or --without-postgresql was given.
7148 if test "${with_postgresql+set}" = set; then
7149 withval="$with_postgresql"
7151 if test "$withval" != "no"; then
7152 if test "$db_found" = "yes"; then
7153 echo "$as_me:$LINENO: result: error" >&5
7154 echo "${ECHO_T}error" >&6
7155 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7156 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7157 { (exit 1); exit 1; }; };
7159 if test "$withval" = "yes"; then
7160 if test -f /usr/local/include/libpq-fe.h; then
7161 POSTGRESQL_INCDIR=/usr/local/include
7162 POSTGRESQL_LIBDIR=/usr/local/lib
7163 POSTGRESQL_BINDIR=/usr/local/bin
7164 elif test -f /usr/include/libpq-fe.h; then
7165 POSTGRESQL_INCDIR=/usr/include
7166 POSTGRESQL_LIBDIR=/usr/lib
7167 POSTGRESQL_BINDIR=/usr/bin
7168 elif test -f /usr/include/pgsql/libpq-fe.h; then
7169 POSTGRESQL_INCDIR=/usr/include/pgsql
7170 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7171 POSTGRESQL_BINDIR=/usr/bin
7172 elif test -f /usr/include/postgresql/libpq-fe.h; then
7173 POSTGRESQL_INCDIR=/usr/include/postgresql
7174 POSTGRESQL_LIBDIR=/usr/lib/postgresql
7175 POSTGRESQL_BINDIR=/usr/bin
7177 echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6
7179 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7180 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7181 { (exit 1); exit 1; }; }
7183 elif test -f $withval/include/libpq-fe.h; then
7184 POSTGRESQL_INCDIR=$withval/include
7185 POSTGRESQL_LIBDIR=$withval/lib
7186 POSTGRESQL_BINDIR=$withval/bin
7188 echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6
7190 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7191 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7192 { (exit 1); exit 1; }; }
7194 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7195 echo "$as_me:$LINENO: checking for crypt" >&5
7196 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7197 if test "${ac_cv_func_crypt+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 cat >conftest.$ac_ext <<_ACEOF
7201 #line $LINENO "configure"
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7207 /* System header to define __stub macros and hopefully few prototypes,
7208 which can conflict with char crypt (); below.
7209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7210 <limits.h> exists even on freestanding compilers. */
7212 # include <limits.h>
7214 # include <assert.h>
7216 /* Override any gcc2 internal prototype to avoid an error. */
7221 /* We use char because int might match the return type of a gcc2
7222 builtin and then its argument prototype would still apply. */
7224 /* The GNU C library defines this for functions which it implements
7225 to always fail with ENOSYS. Some functions are actually named
7226 something starting with __ and the normal name is an alias. */
7227 #if defined (__stub_crypt) || defined (__stub___crypt)
7230 char (*f) () = crypt;
7244 rm -f conftest.$ac_objext conftest$ac_exeext
7245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7246 (eval $ac_link) 2>&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); } &&
7250 { ac_try='test -s conftest$ac_exeext'
7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); }; }; then
7256 ac_cv_func_crypt=yes
7258 echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7265 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7266 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7267 if test $ac_cv_func_crypt = yes; then
7270 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7271 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7272 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 ac_check_lib_save_LIBS=$LIBS
7276 LIBS="-lcrypt $LIBS"
7277 cat >conftest.$ac_ext <<_ACEOF
7278 #line $LINENO "configure"
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7285 /* Override any gcc2 internal prototype to avoid an error. */
7289 /* We use char because int might match the return type of a gcc2
7290 builtin and then its argument prototype would still apply. */
7300 rm -f conftest.$ac_objext conftest$ac_exeext
7301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7302 (eval $ac_link) 2>&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } &&
7306 { ac_try='test -s conftest$ac_exeext'
7307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); }; }; then
7312 ac_cv_lib_crypt_crypt=yes
7314 echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7317 ac_cv_lib_crypt_crypt=no
7319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7320 LIBS=$ac_check_lib_save_LIBS
7322 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7323 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7324 if test $ac_cv_lib_crypt_crypt = yes; then
7325 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7330 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7331 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7332 SQL_BINDIR=$POSTGRESQL_BINDIR
7333 cat >>confdefs.h <<\_ACEOF
7334 #define HAVE_POSTGRESQL 1
7337 echo "$as_me:$LINENO: result: yes" >&5
7338 echo "${ECHO_T}yes" >&6
7340 support_postgresql=yes
7344 echo "$as_me:$LINENO: result: no" >&5
7345 echo "${ECHO_T}no" >&6
7350 echo "$as_me:$LINENO: result: no" >&5
7351 echo "${ECHO_T}no" >&6
7362 echo "$as_me:$LINENO: checking for MySQL support" >&5
7363 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7365 # Check whether --with-mysql or --without-mysql was given.
7366 if test "${with_mysql+set}" = set; then
7367 withval="$with_mysql"
7369 if test "$withval" != "no"; then
7370 if test "$withval" = "yes"; then
7371 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7372 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7373 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7374 MYSQL_BINDIR=/usr/local/mysql/bin
7375 elif test -f /usr/include/mysql/mysql.h; then
7376 MYSQL_INCDIR=/usr/include/mysql
7377 MYSQL_LIBDIR=/usr/lib/mysql
7378 MYSQL_BINDIR=/usr/bin
7379 elif test -f /usr/include/mysql.h; then
7380 MYSQL_INCDIR=/usr/include
7381 MYSQL_LIBDIR=/usr/lib
7382 MYSQL_BINDIR=/usr/bin
7383 elif test -f /usr/local/include/mysql/mysql.h; then
7384 MYSQL_INCDIR=/usr/local/include/mysql
7385 MYSQL_LIBDIR=/usr/local/lib/mysql
7386 MYSQL_BINDIR=/usr/local/bin
7387 elif test -f /usr/local/include/mysql.h; then
7388 MYSQL_INCDIR=/usr/local/include
7389 MYSQL_LIBDIR=/usr/local/lib
7390 MYSQL_BINDIR=/usr/local/bin
7392 echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6
7394 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7395 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7396 { (exit 1); exit 1; }; }
7399 if test -f $withval/include/mysql/mysql.h; then
7400 MYSQL_INCDIR=$withval/include/mysql
7401 MYSQL_LIBDIR=$withval/lib/mysql
7402 MYSQL_BINDIR=$withval/bin
7403 elif test -f $withval/include/mysql.h; then
7404 MYSQL_INCDIR=$withval/include
7405 MYSQL_LIBDIR=$withval/lib
7406 MYSQL_BINDIR=$withval/bin
7408 echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6
7410 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7411 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7412 { (exit 1); exit 1; }; }
7415 SQL_INCLUDE=-I$MYSQL_INCDIR
7416 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7417 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7418 cat >>confdefs.h <<\_ACEOF
7419 #define HAVE_THREAD_SAFE_MYSQL 1
7423 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7425 SQL_BINDIR=$MYSQL_BINDIR
7427 cat >>confdefs.h <<\_ACEOF
7428 #define HAVE_MYSQL 1
7431 echo "$as_me:$LINENO: result: yes" >&5
7432 echo "${ECHO_T}yes" >&6
7439 echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6
7445 echo "$as_me:$LINENO: result: no" >&5
7446 echo "${ECHO_T}no" >&6
7451 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7452 if test "${with_embedded_mysql+set}" = set; then
7453 withval="$with_embedded_mysql"
7455 if test "$withval" != "no"; then
7456 if test "$withval" = "yes"; then
7457 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7458 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7459 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7460 MYSQL_BINDIR=/usr/local/mysql/bin
7461 elif test -f /usr/include/mysql/mysql.h; then
7462 MYSQL_INCDIR=/usr/include/mysql
7463 MYSQL_LIBDIR=/usr/lib/mysql
7464 MYSQL_BINDIR=/usr/bin
7465 elif test -f /usr/include/mysql.h; then
7466 MYSQL_INCDIR=/usr/include
7467 MYSQL_LIBDIR=/usr/lib
7468 MYSQL_BINDIR=/usr/bin
7469 elif test -f /usr/local/include/mysql/mysql.h; then
7470 MYSQL_INCDIR=/usr/local/include/mysql
7471 MYSQL_LIBDIR=/usr/local/lib/mysql
7472 MYSQL_BINDIR=/usr/local/bin
7473 elif test -f /usr/local/include/mysql.h; then
7474 MYSQL_INCDIR=/usr/local/include
7475 MYSQL_LIBDIR=/usr/local/lib
7476 MYSQL_BINDIR=/usr/local/bin
7478 echo "$as_me:$LINENO: result: no" >&5
7479 echo "${ECHO_T}no" >&6
7480 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7481 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7482 { (exit 1); exit 1; }; }
7485 if test -f $withval/include/mysql/mysql.h; then
7486 MYSQL_INCDIR=$withval/include/mysql
7487 MYSQL_LIBDIR=$withval/lib/mysql
7488 MYSQL_BINDIR=$withval/bin
7489 elif test -f $withval/include/mysql.h; then
7490 MYSQL_INCDIR=$withval/include
7491 MYSQL_LIBDIR=$withval/lib
7492 MYSQL_BINDIR=$withval/bin
7494 echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6
7496 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7497 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7498 { (exit 1); exit 1; }; }
7501 SQL_INCLUDE=-I$MYSQL_INCDIR
7502 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7503 SQL_BINDIR=$MYSQL_BINDIR
7505 cat >>confdefs.h <<\_ACEOF
7506 #define HAVE_MYSQL 1
7509 cat >>confdefs.h <<\_ACEOF
7510 #define HAVE_EMBEDDED_MYSQL 1
7513 echo "$as_me:$LINENO: result: yes" >&5
7514 echo "${ECHO_T}yes" >&6
7521 echo "$as_me:$LINENO: result: no" >&5
7522 echo "${ECHO_T}no" >&6
7527 echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6
7541 echo "$as_me:$LINENO: checking for SQLite support" >&5
7542 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7544 # Check whether --with-sqlite or --without-sqlite was given.
7545 if test "${with_sqlite+set}" = set; then
7546 withval="$with_sqlite"
7548 if test "$withval" != "no"; then
7549 if test "$withval" = "yes"; then
7550 if test -f /usr/local/include/sqlite.h; then
7551 SQLITE_INCDIR=/usr/local/include
7552 SQLITE_LIBDIR=/usr/local/lib
7553 SQLITE_BINDIR=/usr/local/bin
7554 elif test -f /usr/include/sqlite.h; then
7555 SQLITE_INCDIR=/usr/include
7556 SQLITE_LIBDIR=/usr/lib
7557 SQLITE_BINDIR=/usr/bin
7559 echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6
7561 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7562 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7563 { (exit 1); exit 1; }; }
7566 if test -f $withval/sqlite.h; then
7567 SQLITE_INCDIR=$withval
7568 SQLITE_LIBDIR=$withval
7569 SQLITE_BINDIR=$withval
7571 echo "$as_me:$LINENO: result: no" >&5
7572 echo "${ECHO_T}no" >&6
7573 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7574 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7575 { (exit 1); exit 1; }; }
7578 SQL_INCLUDE=-I$SQLITE_INCDIR
7579 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7580 SQL_BINDIR=$SQLITE_BINDIR
7582 cat >>confdefs.h <<\_ACEOF
7583 #define HAVE_SQLITE 1
7586 echo "$as_me:$LINENO: result: yes" >&5
7587 echo "${ECHO_T}yes" >&6
7594 echo "$as_me:$LINENO: result: no" >&5
7595 echo "${ECHO_T}no" >&6
7600 echo "$as_me:$LINENO: result: no" >&5
7601 echo "${ECHO_T}no" >&6
7613 cat >>confdefs.h <<\_ACEOF
7614 #define PROTOTYPES 1
7618 if test -z "$CFLAGS"; then
7619 if test -z "$CCOPTS"; then
7628 largefile_support="no"
7630 # Check whether --enable-largefile or --disable-largefile was given.
7631 if test "${enable_largefile+set}" = set; then
7632 enableval="$enable_largefile"
7635 if test "$enable_largefile" != no; then
7636 if test -n "$ac_tool_prefix"; then
7637 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7638 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7639 echo "$as_me:$LINENO: checking for $ac_word" >&5
7640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7641 if test "${ac_cv_prog_GETCONF+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 if test -n "$GETCONF"; then
7645 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 test -z "$as_dir" && as_dir=.
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7654 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 GETCONF=$ac_cv_prog_GETCONF
7664 if test -n "$GETCONF"; then
7665 echo "$as_me:$LINENO: result: $GETCONF" >&5
7666 echo "${ECHO_T}$GETCONF" >&6
7668 echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6
7673 if test -z "$ac_cv_prog_GETCONF"; then
7674 ac_ct_GETCONF=$GETCONF
7675 # Extract the first word of "getconf", so it can be a program name with args.
7676 set dummy getconf; ac_word=$2
7677 echo "$as_me:$LINENO: checking for $ac_word" >&5
7678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7679 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 if test -n "$ac_ct_GETCONF"; then
7683 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692 ac_cv_prog_ac_ct_GETCONF="getconf"
7693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7702 if test -n "$ac_ct_GETCONF"; then
7703 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7704 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7706 echo "$as_me:$LINENO: result: no" >&5
7707 echo "${ECHO_T}no" >&6
7710 GETCONF=$ac_ct_GETCONF
7712 GETCONF="$ac_cv_prog_GETCONF"
7715 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7716 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7717 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7721 ac_cv_sys_largefile_CFLAGS=no
7723 # IRIX 6.2 and later require cc -n32.
7724 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7725 if test "$GCC" != yes; then
7726 ac_cv_sys_largefile_CFLAGS=-n32
7729 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7730 cat >conftest.$ac_ext <<_ACEOF
7731 #line $LINENO "configure"
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748 (eval $ac_link) 2>&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } &&
7752 { ac_try='test -s conftest$ac_exeext'
7753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; }; then
7760 echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7763 ac_cv_sys_largefile_CFLAGS=no
7765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7770 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7771 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7772 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7773 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7774 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7778 ac_cv_sys_largefile_LDFLAGS=no
7782 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7783 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7784 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7785 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7786 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7790 ac_cv_sys_largefile_LIBS=no
7794 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7795 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7797 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7800 -D_FILE_OFFSET_BITS=*) ;;
7801 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7802 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7808 '') CPPFLAGS="$ac_flag" ;;
7809 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7817 '') CFLAGS="$ac_flag" ;;
7818 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7823 case "$ac_cv_sys_largefile_LDFLAGS" in
7827 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7828 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7831 case "$ac_cv_sys_largefile_LIBS" in
7835 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7836 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7839 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7840 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7841 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 ac_cv_sys_file_offset_bits=no
7846 # HP-UX 10.20 and later
7847 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7848 ac_cv_sys_file_offset_bits=64 ;;
7850 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7852 -D_FILE_OFFSET_BITS)
7853 ac_cv_sys_file_offset_bits=1 ;;
7854 -D_FILE_OFFSET_BITS=*)
7855 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7860 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7861 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7862 if test "$ac_cv_sys_file_offset_bits" != no; then
7864 cat >>confdefs.h <<_ACEOF
7865 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7869 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7870 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7871 if test "${ac_cv_sys_largefile_source+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 ac_cv_sys_largefile_source=no
7876 # HP-UX 10.20 and later
7877 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7878 ac_cv_sys_largefile_source=1 ;;
7880 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7882 -D_LARGEFILE_SOURCE)
7883 ac_cv_sys_largefile_source=1 ;;
7884 -D_LARGEFILE_SOURCE=*)
7885 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7890 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7891 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7892 if test "$ac_cv_sys_largefile_source" != no; then
7894 cat >>confdefs.h <<_ACEOF
7895 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7899 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7900 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7901 if test "${ac_cv_sys_large_files+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 ac_cv_sys_large_files=no
7907 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7908 ac_cv_sys_large_files=1 ;;
7910 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7913 ac_cv_sys_large_files=1 ;;
7915 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7920 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7921 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7922 if test "$ac_cv_sys_large_files" != no; then
7924 cat >>confdefs.h <<_ACEOF
7925 #define _LARGE_FILES $ac_cv_sys_large_files
7933 echo "$as_me:$LINENO: checking for X" >&5
7934 echo $ECHO_N "checking for X... $ECHO_C" >&6
7937 # Check whether --with-x or --without-x was given.
7938 if test "${with_x+set}" = set; then
7942 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7943 if test "x$with_x" = xno; then
7944 # The user explicitly disabled X.
7947 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7948 # Both variables are already set.
7951 if test "${ac_cv_have_x+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 # One or both of the vars are not set, and there is no cached value.
7955 ac_x_includes=no ac_x_libraries=no
7957 if mkdir conftest.dir; then
7959 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7960 cat >Imakefile <<'_ACEOF'
7962 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7964 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7965 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7966 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7967 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7968 for ac_extension in a so sl; do
7969 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7970 test -f $ac_im_libdir/libX11.$ac_extension; then
7971 ac_im_usrlibdir=$ac_im_libdir; break
7974 # Screen out bogus values from the imake configuration. They are
7975 # bogus both because they are the default anyway, and because
7976 # using them would break gcc on systems where it needs fixed includes.
7977 case $ac_im_incroot in
7979 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7981 case $ac_im_usrlibdir in
7983 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7990 # Standard set of common directories for X headers.
7991 # Check X11 before X11Rn because it is often a symlink to the current release.
8003 /usr/local/X11/include
8004 /usr/local/X11R6/include
8005 /usr/local/X11R5/include
8006 /usr/local/X11R4/include
8008 /usr/local/include/X11
8009 /usr/local/include/X11R6
8010 /usr/local/include/X11R5
8011 /usr/local/include/X11R4
8015 /usr/XFree86/include/X11
8019 /usr/unsupported/include
8021 /usr/local/x11r5/include
8022 /usr/lpp/Xamples/include
8024 /usr/openwin/include
8025 /usr/openwin/share/include'
8027 if test "$ac_x_includes" = no; then
8028 # Guess where to find include files, by looking for Intrinsic.h.
8029 # First, try using that file with no special directory specified.
8030 cat >conftest.$ac_ext <<_ACEOF
8031 #line $LINENO "configure"
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8037 #include <X11/Intrinsic.h>
8039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8042 grep -v '^ *+' conftest.er1 >conftest.err
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } >/dev/null; then
8047 if test -s conftest.err; then
8048 ac_cpp_err=$ac_c_preproc_warn_flag
8055 if test -z "$ac_cpp_err"; then
8056 # We can compile using X headers with no special include directory.
8059 echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8062 for ac_dir in $ac_x_header_dirs; do
8063 if test -r "$ac_dir/X11/Intrinsic.h"; then
8064 ac_x_includes=$ac_dir
8069 rm -f conftest.err conftest.$ac_ext
8070 fi # $ac_x_includes = no
8072 if test "$ac_x_libraries" = no; then
8073 # Check for the libraries.
8074 # See if we find them without any special options.
8075 # Don't add to $LIBS permanently.
8078 cat >conftest.$ac_ext <<_ACEOF
8079 #line $LINENO "configure"
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8085 #include <X11/Intrinsic.h>
8094 rm -f conftest.$ac_objext conftest$ac_exeext
8095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8096 (eval $ac_link) 2>&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } &&
8100 { ac_try='test -s conftest$ac_exeext'
8101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; }; then
8107 # We can link X programs with no special library path.
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8114 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8116 # Don't even attempt the hair of trying to link an X program!
8117 for ac_extension in a so sl; do
8118 if test -r $ac_dir/libXt.$ac_extension; then
8119 ac_x_libraries=$ac_dir
8125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8126 fi # $ac_x_libraries = no
8128 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8129 # Didn't find X anywhere. Cache the known absence of X.
8130 ac_cv_have_x="have_x=no"
8132 # Record where we found X for the cache.
8133 ac_cv_have_x="have_x=yes \
8134 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8139 eval "$ac_cv_have_x"
8142 if test "$have_x" != yes; then
8143 echo "$as_me:$LINENO: result: $have_x" >&5
8144 echo "${ECHO_T}$have_x" >&6
8147 # If each of the values was on the command line, it overrides each guess.
8148 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8149 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8150 # Update the cache value to reflect the command line values.
8151 ac_cv_have_x="have_x=yes \
8152 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8153 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8154 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8157 if test "$no_x" = yes; then
8158 # Not all programs may use this symbol, but it does not hurt to define it.
8160 cat >>confdefs.h <<\_ACEOF
8161 #define X_DISPLAY_MISSING 1
8164 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8166 if test -n "$x_includes"; then
8167 X_CFLAGS="$X_CFLAGS -I$x_includes"
8170 # It would also be nice to do this for all -L options, not just this one.
8171 if test -n "$x_libraries"; then
8172 X_LIBS="$X_LIBS -L$x_libraries"
8173 # For Solaris; some versions of Sun CC require a space after -R and
8174 # others require no space. Words are not sufficient . . . .
8175 case `(uname -sr) 2>/dev/null` in
8177 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8178 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8179 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8180 cat >conftest.$ac_ext <<_ACEOF
8181 #line $LINENO "configure"
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h. */
8196 rm -f conftest.$ac_objext conftest$ac_exeext
8197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8198 (eval $ac_link) 2>&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } &&
8202 { ac_try='test -s conftest$ac_exeext'
8203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; }; then
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8216 if test $ac_R_nospace = yes; then
8217 echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6
8219 X_LIBS="$X_LIBS -R$x_libraries"
8221 LIBS="$ac_xsave_LIBS -R $x_libraries"
8222 cat >conftest.$ac_ext <<_ACEOF
8223 #line $LINENO "configure"
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8238 rm -f conftest.$ac_objext conftest$ac_exeext
8239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8240 (eval $ac_link) 2>&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } &&
8244 { ac_try='test -s conftest$ac_exeext'
8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; }; then
8252 echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8258 if test $ac_R_space = yes; then
8259 echo "$as_me:$LINENO: result: yes" >&5
8260 echo "${ECHO_T}yes" >&6
8261 X_LIBS="$X_LIBS -R $x_libraries"
8263 echo "$as_me:$LINENO: result: neither works" >&5
8264 echo "${ECHO_T}neither works" >&6
8271 # Check for system-dependent libraries X programs must link with.
8272 # Do this before checking for the system-independent R6 libraries
8273 # (-lICE), since we may need -lsocket or whatever for X linking.
8275 if test "$ISC" = yes; then
8276 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8278 # Martyn Johnson says this is needed for Ultrix, if the X
8279 # libraries were built with DECnet support. And Karl Berry says
8280 # the Alpha needs dnet_stub (dnet does not exist).
8281 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8282 cat >conftest.$ac_ext <<_ACEOF
8283 #line $LINENO "configure"
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8290 /* Override any gcc2 internal prototype to avoid an error. */
8294 /* We use char because int might match the return type of a gcc2
8295 builtin and then its argument prototype would still apply. */
8296 char XOpenDisplay ();
8305 rm -f conftest.$ac_objext conftest$ac_exeext
8306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8307 (eval $ac_link) 2>&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } &&
8311 { ac_try='test -s conftest$ac_exeext'
8312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; }; then
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8322 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8323 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8324 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 ac_check_lib_save_LIBS=$LIBS
8329 cat >conftest.$ac_ext <<_ACEOF
8330 #line $LINENO "configure"
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8337 /* Override any gcc2 internal prototype to avoid an error. */
8341 /* We use char because int might match the return type of a gcc2
8342 builtin and then its argument prototype would still apply. */
8352 rm -f conftest.$ac_objext conftest$ac_exeext
8353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8354 (eval $ac_link) 2>&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try='test -s conftest$ac_exeext'
8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8364 ac_cv_lib_dnet_dnet_ntoa=yes
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8369 ac_cv_lib_dnet_dnet_ntoa=no
8371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8372 LIBS=$ac_check_lib_save_LIBS
8374 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8375 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8376 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8377 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8380 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8381 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8382 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8383 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 ac_check_lib_save_LIBS=$LIBS
8387 LIBS="-ldnet_stub $LIBS"
8388 cat >conftest.$ac_ext <<_ACEOF
8389 #line $LINENO "configure"
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h. */
8396 /* Override any gcc2 internal prototype to avoid an error. */
8400 /* We use char because int might match the return type of a gcc2
8401 builtin and then its argument prototype would still apply. */
8411 rm -f conftest.$ac_objext conftest$ac_exeext
8412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8413 (eval $ac_link) 2>&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try='test -s conftest$ac_exeext'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8423 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8428 ac_cv_lib_dnet_stub_dnet_ntoa=no
8430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8431 LIBS=$ac_check_lib_save_LIBS
8433 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8434 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8435 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8436 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8442 LIBS="$ac_xsave_LIBS"
8444 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8445 # to get the SysV transport functions.
8446 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8448 # The nsl library prevents programs from opening the X display
8449 # on Irix 5.2, according to T.E. Dickey.
8450 # The functions gethostbyname, getservbyname, and inet_addr are
8451 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8452 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8453 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8454 if test "${ac_cv_func_gethostbyname+set}" = set; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 cat >conftest.$ac_ext <<_ACEOF
8458 #line $LINENO "configure"
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8464 /* System header to define __stub macros and hopefully few prototypes,
8465 which can conflict with char gethostbyname (); below.
8466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8467 <limits.h> exists even on freestanding compilers. */
8469 # include <limits.h>
8471 # include <assert.h>
8473 /* Override any gcc2 internal prototype to avoid an error. */
8478 /* We use char because int might match the return type of a gcc2
8479 builtin and then its argument prototype would still apply. */
8480 char gethostbyname ();
8481 /* The GNU C library defines this for functions which it implements
8482 to always fail with ENOSYS. Some functions are actually named
8483 something starting with __ and the normal name is an alias. */
8484 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8487 char (*f) () = gethostbyname;
8496 return f != gethostbyname;
8501 rm -f conftest.$ac_objext conftest$ac_exeext
8502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8503 (eval $ac_link) 2>&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } &&
8507 { ac_try='test -s conftest$ac_exeext'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
8513 ac_cv_func_gethostbyname=yes
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8518 ac_cv_func_gethostbyname=no
8520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8522 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8523 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8525 if test $ac_cv_func_gethostbyname = no; then
8526 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8527 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8528 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 ac_check_lib_save_LIBS=$LIBS
8533 cat >conftest.$ac_ext <<_ACEOF
8534 #line $LINENO "configure"
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8541 /* Override any gcc2 internal prototype to avoid an error. */
8545 /* We use char because int might match the return type of a gcc2
8546 builtin and then its argument prototype would still apply. */
8547 char gethostbyname ();
8556 rm -f conftest.$ac_objext conftest$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558 (eval $ac_link) 2>&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } &&
8562 { ac_try='test -s conftest$ac_exeext'
8563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; }; then
8568 ac_cv_lib_nsl_gethostbyname=yes
8570 echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8573 ac_cv_lib_nsl_gethostbyname=no
8575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8576 LIBS=$ac_check_lib_save_LIBS
8578 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8579 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8580 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8581 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8584 if test $ac_cv_lib_nsl_gethostbyname = no; then
8585 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8586 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8587 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 ac_check_lib_save_LIBS=$LIBS
8592 cat >conftest.$ac_ext <<_ACEOF
8593 #line $LINENO "configure"
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8600 /* Override any gcc2 internal prototype to avoid an error. */
8604 /* We use char because int might match the return type of a gcc2
8605 builtin and then its argument prototype would still apply. */
8606 char gethostbyname ();
8615 rm -f conftest.$ac_objext conftest$ac_exeext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8617 (eval $ac_link) 2>&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
8621 { ac_try='test -s conftest$ac_exeext'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; }; then
8627 ac_cv_lib_bsd_gethostbyname=yes
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8632 ac_cv_lib_bsd_gethostbyname=no
8634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8635 LIBS=$ac_check_lib_save_LIBS
8637 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8638 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8639 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8640 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8646 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8647 # socket/setsockopt and other routines are undefined under SCO ODT
8648 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8649 # on later versions), says Simon Leinen: it contains gethostby*
8650 # variants that don't use the name server (or something). -lsocket
8651 # must be given before -lnsl if both are needed. We assume that
8652 # if connect needs -lnsl, so does gethostbyname.
8653 echo "$as_me:$LINENO: checking for connect" >&5
8654 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8655 if test "${ac_cv_func_connect+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 cat >conftest.$ac_ext <<_ACEOF
8659 #line $LINENO "configure"
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8665 /* System header to define __stub macros and hopefully few prototypes,
8666 which can conflict with char connect (); below.
8667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8668 <limits.h> exists even on freestanding compilers. */
8670 # include <limits.h>
8672 # include <assert.h>
8674 /* Override any gcc2 internal prototype to avoid an error. */
8679 /* We use char because int might match the return type of a gcc2
8680 builtin and then its argument prototype would still apply. */
8682 /* The GNU C library defines this for functions which it implements
8683 to always fail with ENOSYS. Some functions are actually named
8684 something starting with __ and the normal name is an alias. */
8685 #if defined (__stub_connect) || defined (__stub___connect)
8688 char (*f) () = connect;
8697 return f != connect;
8702 rm -f conftest.$ac_objext conftest$ac_exeext
8703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8704 (eval $ac_link) 2>&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } &&
8708 { ac_try='test -s conftest$ac_exeext'
8709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; }; then
8714 ac_cv_func_connect=yes
8716 echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8719 ac_cv_func_connect=no
8721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8723 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8724 echo "${ECHO_T}$ac_cv_func_connect" >&6
8726 if test $ac_cv_func_connect = no; then
8727 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8728 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8729 if test "${ac_cv_lib_socket_connect+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8732 ac_check_lib_save_LIBS=$LIBS
8733 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8734 cat >conftest.$ac_ext <<_ACEOF
8735 #line $LINENO "configure"
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h. */
8742 /* Override any gcc2 internal prototype to avoid an error. */
8746 /* We use char because int might match the return type of a gcc2
8747 builtin and then its argument prototype would still apply. */
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759 (eval $ac_link) 2>&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } &&
8763 { ac_try='test -s conftest$ac_exeext'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
8769 ac_cv_lib_socket_connect=yes
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 ac_cv_lib_socket_connect=no
8776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8777 LIBS=$ac_check_lib_save_LIBS
8779 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8780 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8781 if test $ac_cv_lib_socket_connect = yes; then
8782 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8787 # Guillermo Gomez says -lposix is necessary on A/UX.
8788 echo "$as_me:$LINENO: checking for remove" >&5
8789 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8790 if test "${ac_cv_func_remove+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 cat >conftest.$ac_ext <<_ACEOF
8794 #line $LINENO "configure"
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800 /* System header to define __stub macros and hopefully few prototypes,
8801 which can conflict with char remove (); below.
8802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8803 <limits.h> exists even on freestanding compilers. */
8805 # include <limits.h>
8807 # include <assert.h>
8809 /* Override any gcc2 internal prototype to avoid an error. */
8814 /* We use char because int might match the return type of a gcc2
8815 builtin and then its argument prototype would still apply. */
8817 /* The GNU C library defines this for functions which it implements
8818 to always fail with ENOSYS. Some functions are actually named
8819 something starting with __ and the normal name is an alias. */
8820 #if defined (__stub_remove) || defined (__stub___remove)
8823 char (*f) () = remove;
8837 rm -f conftest.$ac_objext conftest$ac_exeext
8838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8839 (eval $ac_link) 2>&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); } &&
8843 { ac_try='test -s conftest$ac_exeext'
8844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
8849 ac_cv_func_remove=yes
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 ac_cv_func_remove=no
8856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8858 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8859 echo "${ECHO_T}$ac_cv_func_remove" >&6
8861 if test $ac_cv_func_remove = no; then
8862 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8863 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8864 if test "${ac_cv_lib_posix_remove+set}" = set; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8867 ac_check_lib_save_LIBS=$LIBS
8868 LIBS="-lposix $LIBS"
8869 cat >conftest.$ac_ext <<_ACEOF
8870 #line $LINENO "configure"
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h. */
8877 /* Override any gcc2 internal prototype to avoid an error. */
8881 /* We use char because int might match the return type of a gcc2
8882 builtin and then its argument prototype would still apply. */
8892 rm -f conftest.$ac_objext conftest$ac_exeext
8893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8894 (eval $ac_link) 2>&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } &&
8898 { ac_try='test -s conftest$ac_exeext'
8899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); }; }; then
8904 ac_cv_lib_posix_remove=yes
8906 echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8909 ac_cv_lib_posix_remove=no
8911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8912 LIBS=$ac_check_lib_save_LIBS
8914 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8915 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8916 if test $ac_cv_lib_posix_remove = yes; then
8917 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8922 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8923 echo "$as_me:$LINENO: checking for shmat" >&5
8924 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8925 if test "${ac_cv_func_shmat+set}" = set; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8928 cat >conftest.$ac_ext <<_ACEOF
8929 #line $LINENO "configure"
8932 cat confdefs.h >>conftest.$ac_ext
8933 cat >>conftest.$ac_ext <<_ACEOF
8934 /* end confdefs.h. */
8935 /* System header to define __stub macros and hopefully few prototypes,
8936 which can conflict with char shmat (); below.
8937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8938 <limits.h> exists even on freestanding compilers. */
8940 # include <limits.h>
8942 # include <assert.h>
8944 /* Override any gcc2 internal prototype to avoid an error. */
8949 /* We use char because int might match the return type of a gcc2
8950 builtin and then its argument prototype would still apply. */
8952 /* The GNU C library defines this for functions which it implements
8953 to always fail with ENOSYS. Some functions are actually named
8954 something starting with __ and the normal name is an alias. */
8955 #if defined (__stub_shmat) || defined (__stub___shmat)
8958 char (*f) () = shmat;
8972 rm -f conftest.$ac_objext conftest$ac_exeext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8974 (eval $ac_link) 2>&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } &&
8978 { ac_try='test -s conftest$ac_exeext'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; }; then
8984 ac_cv_func_shmat=yes
8986 echo "$as_me: failed program was:" >&5
8987 sed 's/^/| /' conftest.$ac_ext >&5
8991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8993 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8994 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8996 if test $ac_cv_func_shmat = no; then
8997 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8998 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8999 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9000 echo $ECHO_N "(cached) $ECHO_C" >&6
9002 ac_check_lib_save_LIBS=$LIBS
9004 cat >conftest.$ac_ext <<_ACEOF
9005 #line $LINENO "configure"
9008 cat confdefs.h >>conftest.$ac_ext
9009 cat >>conftest.$ac_ext <<_ACEOF
9010 /* end confdefs.h. */
9012 /* Override any gcc2 internal prototype to avoid an error. */
9016 /* We use char because int might match the return type of a gcc2
9017 builtin and then its argument prototype would still apply. */
9027 rm -f conftest.$ac_objext conftest$ac_exeext
9028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9029 (eval $ac_link) 2>&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); } &&
9033 { ac_try='test -s conftest$ac_exeext'
9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; }; then
9039 ac_cv_lib_ipc_shmat=yes
9041 echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9044 ac_cv_lib_ipc_shmat=no
9046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9047 LIBS=$ac_check_lib_save_LIBS
9049 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9050 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9051 if test $ac_cv_lib_ipc_shmat = yes; then
9052 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9058 # Check for libraries that X11R6 Xt/Xaw programs need.
9059 ac_save_LDFLAGS=$LDFLAGS
9060 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9061 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9062 # check for ICE first), but we must link in the order -lSM -lICE or
9063 # we get undefined symbols. So assume we have SM if we have ICE.
9064 # These have to be linked with before -lX11, unlike the other
9065 # libraries we check for below, so use a different variable.
9066 # John Interrante, Karl Berry
9067 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9068 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9069 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9072 ac_check_lib_save_LIBS=$LIBS
9073 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9074 cat >conftest.$ac_ext <<_ACEOF
9075 #line $LINENO "configure"
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9082 /* Override any gcc2 internal prototype to avoid an error. */
9086 /* We use char because int might match the return type of a gcc2
9087 builtin and then its argument prototype would still apply. */
9088 char IceConnectionNumber ();
9092 IceConnectionNumber ();
9097 rm -f conftest.$ac_objext conftest$ac_exeext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9099 (eval $ac_link) 2>&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } &&
9103 { ac_try='test -s conftest$ac_exeext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 ac_cv_lib_ICE_IceConnectionNumber=yes
9111 echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9114 ac_cv_lib_ICE_IceConnectionNumber=no
9116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9117 LIBS=$ac_check_lib_save_LIBS
9119 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9120 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9121 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9122 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9125 LDFLAGS=$ac_save_LDFLAGS
9179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9181 echo "$as_me:$LINENO: checking for $ac_header" >&5
9182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9189 # Is the header compilable?
9190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9192 cat >conftest.$ac_ext <<_ACEOF
9193 #line $LINENO "configure"
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 $ac_includes_default
9200 #include <$ac_header>
9202 rm -f conftest.$ac_objext
9203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9204 (eval $ac_compile) 2>&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } &&
9208 { ac_try='test -s conftest.$ac_objext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 ac_header_compiler=yes
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9219 ac_header_compiler=no
9221 rm -f conftest.$ac_objext conftest.$ac_ext
9222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9223 echo "${ECHO_T}$ac_header_compiler" >&6
9225 # Is the header present?
9226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9228 cat >conftest.$ac_ext <<_ACEOF
9229 #line $LINENO "configure"
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9235 #include <$ac_header>
9237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9240 grep -v '^ *+' conftest.er1 >conftest.err
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } >/dev/null; then
9245 if test -s conftest.err; then
9246 ac_cpp_err=$ac_c_preproc_warn_flag
9253 if test -z "$ac_cpp_err"; then
9254 ac_header_preproc=yes
9256 echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9259 ac_header_preproc=no
9261 rm -f conftest.err conftest.$ac_ext
9262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9263 echo "${ECHO_T}$ac_header_preproc" >&6
9265 # So? What about this header?
9266 case $ac_header_compiler:$ac_header_preproc in
9268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9274 ## ------------------------------------ ##
9275 ## Report this to bug-autoconf@gnu.org. ##
9276 ## ------------------------------------ ##
9279 sed "s/^/$as_me: WARNING: /" >&2
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9290 ## ------------------------------------ ##
9291 ## Report this to bug-autoconf@gnu.org. ##
9292 ## ------------------------------------ ##
9295 sed "s/^/$as_me: WARNING: /" >&2
9298 echo "$as_me:$LINENO: checking for $ac_header" >&5
9299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
9303 eval "$as_ac_Header=$ac_header_preproc"
9305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9310 cat >>confdefs.h <<_ACEOF
9311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9318 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9319 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9320 if test "${ac_cv_header_stdc+set}" = set; then
9321 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 cat >conftest.$ac_ext <<_ACEOF
9324 #line $LINENO "configure"
9327 cat confdefs.h >>conftest.$ac_ext
9328 cat >>conftest.$ac_ext <<_ACEOF
9329 /* end confdefs.h. */
9343 rm -f conftest.$ac_objext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9345 (eval $ac_compile) 2>&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } &&
9349 { ac_try='test -s conftest.$ac_objext'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; }; then
9355 ac_cv_header_stdc=yes
9357 echo "$as_me: failed program was:" >&5
9358 sed 's/^/| /' conftest.$ac_ext >&5
9360 ac_cv_header_stdc=no
9362 rm -f conftest.$ac_objext conftest.$ac_ext
9364 if test $ac_cv_header_stdc = yes; then
9365 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9366 cat >conftest.$ac_ext <<_ACEOF
9367 #line $LINENO "configure"
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9377 $EGREP "memchr" >/dev/null 2>&1; then
9380 ac_cv_header_stdc=no
9386 if test $ac_cv_header_stdc = yes; then
9387 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9388 cat >conftest.$ac_ext <<_ACEOF
9389 #line $LINENO "configure"
9392 cat confdefs.h >>conftest.$ac_ext
9393 cat >>conftest.$ac_ext <<_ACEOF
9394 /* end confdefs.h. */
9398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9399 $EGREP "free" >/dev/null 2>&1; then
9402 ac_cv_header_stdc=no
9408 if test $ac_cv_header_stdc = yes; then
9409 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9410 if test "$cross_compiling" = yes; then
9413 cat >conftest.$ac_ext <<_ACEOF
9414 #line $LINENO "configure"
9417 cat confdefs.h >>conftest.$ac_ext
9418 cat >>conftest.$ac_ext <<_ACEOF
9419 /* end confdefs.h. */
9421 #if ((' ' & 0x0FF) == 0x020)
9422 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9423 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9425 # define ISLOWER(c) \
9426 (('a' <= (c) && (c) <= 'i') \
9427 || ('j' <= (c) && (c) <= 'r') \
9428 || ('s' <= (c) && (c) <= 'z'))
9429 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9432 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9437 for (i = 0; i < 256; i++)
9438 if (XOR (islower (i), ISLOWER (i))
9439 || toupper (i) != TOUPPER (i))
9444 rm -f conftest$ac_exeext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9446 (eval $ac_link) 2>&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); }; }; then
9457 echo "$as_me: program exited with status $ac_status" >&5
9458 echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9462 ac_cv_header_stdc=no
9464 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9468 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9469 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9470 if test $ac_cv_header_stdc = yes; then
9472 cat >>confdefs.h <<\_ACEOF
9473 #define STDC_HEADERS 1
9478 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9479 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9480 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
9483 cat >conftest.$ac_ext <<_ACEOF
9484 #line $LINENO "configure"
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9490 #include <sys/types.h>
9494 return makedev(0, 0);
9499 rm -f conftest.$ac_objext conftest$ac_exeext
9500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9501 (eval $ac_link) 2>&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } &&
9505 { ac_try='test -s conftest$ac_exeext'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; }; then
9511 ac_cv_header_sys_types_h_makedev=yes
9513 echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9516 ac_cv_header_sys_types_h_makedev=no
9518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9521 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9522 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9524 if test $ac_cv_header_sys_types_h_makedev = no; then
9525 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9526 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9527 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9528 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
9531 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9532 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9534 # Is the header compilable?
9535 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9536 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9537 cat >conftest.$ac_ext <<_ACEOF
9538 #line $LINENO "configure"
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9544 $ac_includes_default
9545 #include <sys/mkdev.h>
9547 rm -f conftest.$ac_objext
9548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9549 (eval $ac_compile) 2>&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } &&
9553 { ac_try='test -s conftest.$ac_objext'
9554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); }; }; then
9559 ac_header_compiler=yes
9561 echo "$as_me: failed program was:" >&5
9562 sed 's/^/| /' conftest.$ac_ext >&5
9564 ac_header_compiler=no
9566 rm -f conftest.$ac_objext conftest.$ac_ext
9567 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9568 echo "${ECHO_T}$ac_header_compiler" >&6
9570 # Is the header present?
9571 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9572 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9573 cat >conftest.$ac_ext <<_ACEOF
9574 #line $LINENO "configure"
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9580 #include <sys/mkdev.h>
9582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9585 grep -v '^ *+' conftest.er1 >conftest.err
9587 cat conftest.err >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); } >/dev/null; then
9590 if test -s conftest.err; then
9591 ac_cpp_err=$ac_c_preproc_warn_flag
9598 if test -z "$ac_cpp_err"; then
9599 ac_header_preproc=yes
9601 echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9604 ac_header_preproc=no
9606 rm -f conftest.err conftest.$ac_ext
9607 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9608 echo "${ECHO_T}$ac_header_preproc" >&6
9610 # So? What about this header?
9611 case $ac_header_compiler:$ac_header_preproc in
9613 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9614 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9615 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9616 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9619 ## ------------------------------------ ##
9620 ## Report this to bug-autoconf@gnu.org. ##
9621 ## ------------------------------------ ##
9624 sed "s/^/$as_me: WARNING: /" >&2
9627 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9628 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9629 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9630 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9631 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9632 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9635 ## ------------------------------------ ##
9636 ## Report this to bug-autoconf@gnu.org. ##
9637 ## ------------------------------------ ##
9640 sed "s/^/$as_me: WARNING: /" >&2
9643 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9644 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9645 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9650 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9651 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9654 if test $ac_cv_header_sys_mkdev_h = yes; then
9656 cat >>confdefs.h <<\_ACEOF
9657 #define MAJOR_IN_MKDEV 1
9664 if test $ac_cv_header_sys_mkdev_h = no; then
9665 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9666 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9667 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9668 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9671 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9672 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9674 # Is the header compilable?
9675 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9676 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9677 cat >conftest.$ac_ext <<_ACEOF
9678 #line $LINENO "configure"
9681 cat confdefs.h >>conftest.$ac_ext
9682 cat >>conftest.$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9684 $ac_includes_default
9685 #include <sys/sysmacros.h>
9687 rm -f conftest.$ac_objext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9689 (eval $ac_compile) 2>&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } &&
9693 { ac_try='test -s conftest.$ac_objext'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_header_compiler=yes
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9704 ac_header_compiler=no
9706 rm -f conftest.$ac_objext conftest.$ac_ext
9707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9708 echo "${ECHO_T}$ac_header_compiler" >&6
9710 # Is the header present?
9711 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9712 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9713 cat >conftest.$ac_ext <<_ACEOF
9714 #line $LINENO "configure"
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h. */
9720 #include <sys/sysmacros.h>
9722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9725 grep -v '^ *+' conftest.er1 >conftest.err
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } >/dev/null; then
9730 if test -s conftest.err; then
9731 ac_cpp_err=$ac_c_preproc_warn_flag
9738 if test -z "$ac_cpp_err"; then
9739 ac_header_preproc=yes
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9744 ac_header_preproc=no
9746 rm -f conftest.err conftest.$ac_ext
9747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9748 echo "${ECHO_T}$ac_header_preproc" >&6
9750 # So? What about this header?
9751 case $ac_header_compiler:$ac_header_preproc in
9753 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9754 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9755 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9756 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9759 ## ------------------------------------ ##
9760 ## Report this to bug-autoconf@gnu.org. ##
9761 ## ------------------------------------ ##
9764 sed "s/^/$as_me: WARNING: /" >&2
9767 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9768 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9769 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9770 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9771 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9772 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9775 ## ------------------------------------ ##
9776 ## Report this to bug-autoconf@gnu.org. ##
9777 ## ------------------------------------ ##
9780 sed "s/^/$as_me: WARNING: /" >&2
9783 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9784 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9785 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9790 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9791 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9794 if test $ac_cv_header_sys_sysmacros_h = yes; then
9796 cat >>confdefs.h <<\_ACEOF
9797 #define MAJOR_IN_SYSMACROS 1
9812 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9813 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9814 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9815 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 cat >conftest.$ac_ext <<_ACEOF
9820 #line $LINENO "configure"
9823 cat confdefs.h >>conftest.$ac_ext
9824 cat >>conftest.$ac_ext <<_ACEOF
9825 /* end confdefs.h. */
9826 #include <sys/types.h>
9838 rm -f conftest.$ac_objext
9839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9840 (eval $ac_compile) 2>&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try='test -s conftest.$ac_objext'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
9850 eval "$as_ac_Header=yes"
9852 echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9855 eval "$as_ac_Header=no"
9857 rm -f conftest.$ac_objext conftest.$ac_ext
9859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9862 cat >>confdefs.h <<_ACEOF
9863 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9866 ac_header_dirent=$ac_hdr; break
9870 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9871 if test $ac_header_dirent = dirent.h; then
9872 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9873 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9874 if test "${ac_cv_search_opendir+set}" = set; then
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
9877 ac_func_search_save_LIBS=$LIBS
9878 ac_cv_search_opendir=no
9879 cat >conftest.$ac_ext <<_ACEOF
9880 #line $LINENO "configure"
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9887 /* Override any gcc2 internal prototype to avoid an error. */
9891 /* We use char because int might match the return type of a gcc2
9892 builtin and then its argument prototype would still apply. */
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9904 (eval $ac_link) 2>&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } &&
9908 { ac_try='test -s conftest$ac_exeext'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; }; then
9914 ac_cv_search_opendir="none required"
9916 echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9921 if test "$ac_cv_search_opendir" = no; then
9922 for ac_lib in dir; do
9923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9924 cat >conftest.$ac_ext <<_ACEOF
9925 #line $LINENO "configure"
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9932 /* Override any gcc2 internal prototype to avoid an error. */
9936 /* We use char because int might match the return type of a gcc2
9937 builtin and then its argument prototype would still apply. */
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949 (eval $ac_link) 2>&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } &&
9953 { ac_try='test -s conftest$ac_exeext'
9954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; }; then
9959 ac_cv_search_opendir="-l$ac_lib"
9962 echo "$as_me: failed program was:" >&5
9963 sed 's/^/| /' conftest.$ac_ext >&5
9966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9969 LIBS=$ac_func_search_save_LIBS
9971 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9972 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9973 if test "$ac_cv_search_opendir" != no; then
9974 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9979 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9980 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9981 if test "${ac_cv_search_opendir+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9984 ac_func_search_save_LIBS=$LIBS
9985 ac_cv_search_opendir=no
9986 cat >conftest.$ac_ext <<_ACEOF
9987 #line $LINENO "configure"
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9994 /* Override any gcc2 internal prototype to avoid an error. */
9998 /* We use char because int might match the return type of a gcc2
9999 builtin and then its argument prototype would still apply. */
10009 rm -f conftest.$ac_objext conftest$ac_exeext
10010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10011 (eval $ac_link) 2>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } &&
10015 { ac_try='test -s conftest$ac_exeext'
10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017 (eval $ac_try) 2>&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; }; then
10021 ac_cv_search_opendir="none required"
10023 echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10028 if test "$ac_cv_search_opendir" = no; then
10029 for ac_lib in x; do
10030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10031 cat >conftest.$ac_ext <<_ACEOF
10032 #line $LINENO "configure"
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10039 /* Override any gcc2 internal prototype to avoid an error. */
10043 /* We use char because int might match the return type of a gcc2
10044 builtin and then its argument prototype would still apply. */
10054 rm -f conftest.$ac_objext conftest$ac_exeext
10055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10056 (eval $ac_link) 2>&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } &&
10060 { ac_try='test -s conftest$ac_exeext'
10061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062 (eval $ac_try) 2>&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; }; then
10066 ac_cv_search_opendir="-l$ac_lib"
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10076 LIBS=$ac_func_search_save_LIBS
10078 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10079 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10080 if test "$ac_cv_search_opendir" != no; then
10081 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10087 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10088 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10089 if test "${ac_cv_header_stat_broken+set}" = set; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10092 cat >conftest.$ac_ext <<_ACEOF
10093 #line $LINENO "configure"
10096 cat confdefs.h >>conftest.$ac_ext
10097 cat >>conftest.$ac_ext <<_ACEOF
10098 /* end confdefs.h. */
10099 #include <sys/types.h>
10100 #include <sys/stat.h>
10102 #if defined(S_ISBLK) && defined(S_IFDIR)
10103 # if S_ISBLK (S_IFDIR)
10108 #if defined(S_ISBLK) && defined(S_IFCHR)
10109 # if S_ISBLK (S_IFCHR)
10114 #if defined(S_ISLNK) && defined(S_IFREG)
10115 # if S_ISLNK (S_IFREG)
10120 #if defined(S_ISSOCK) && defined(S_IFREG)
10121 # if S_ISSOCK (S_IFREG)
10127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10128 $EGREP "You lose" >/dev/null 2>&1; then
10129 ac_cv_header_stat_broken=yes
10131 ac_cv_header_stat_broken=no
10136 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10137 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10138 if test $ac_cv_header_stat_broken = yes; then
10140 cat >>confdefs.h <<\_ACEOF
10141 #define STAT_MACROS_BROKEN 1
10146 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10147 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10148 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 cat >conftest.$ac_ext <<_ACEOF
10152 #line $LINENO "configure"
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10158 #include <sys/types.h>
10159 #include <sys/wait.h>
10160 #ifndef WEXITSTATUS
10161 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10164 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10172 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10177 rm -f conftest.$ac_objext
10178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10179 (eval $ac_compile) 2>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } &&
10183 { ac_try='test -s conftest.$ac_objext'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 ac_cv_header_sys_wait_h=yes
10191 echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10194 ac_cv_header_sys_wait_h=no
10196 rm -f conftest.$ac_objext conftest.$ac_ext
10198 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10199 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10200 if test $ac_cv_header_sys_wait_h = yes; then
10202 cat >>confdefs.h <<\_ACEOF
10203 #define HAVE_SYS_WAIT_H 1
10208 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10209 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10210 if test "${ac_cv_header_time+set}" = set; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
10213 cat >conftest.$ac_ext <<_ACEOF
10214 #line $LINENO "configure"
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h. */
10220 #include <sys/types.h>
10221 #include <sys/time.h>
10227 if ((struct tm *) 0)
10233 rm -f conftest.$ac_objext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10235 (eval $ac_compile) 2>&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); } &&
10239 { ac_try='test -s conftest.$ac_objext'
10240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241 (eval $ac_try) 2>&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; }; then
10245 ac_cv_header_time=yes
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10250 ac_cv_header_time=no
10252 rm -f conftest.$ac_objext conftest.$ac_ext
10254 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10255 echo "${ECHO_T}$ac_cv_header_time" >&6
10256 if test $ac_cv_header_time = yes; then
10258 cat >>confdefs.h <<\_ACEOF
10259 #define TIME_WITH_SYS_TIME 1
10265 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10266 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10267 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 cat >conftest.$ac_ext <<_ACEOF
10271 #line $LINENO "configure"
10274 cat confdefs.h >>conftest.$ac_ext
10275 cat >>conftest.$ac_ext <<_ACEOF
10276 /* end confdefs.h. */
10277 $ac_includes_default
10281 static struct stat ac_aggr;
10282 if (ac_aggr.st_blksize)
10288 rm -f conftest.$ac_objext
10289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10290 (eval $ac_compile) 2>&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } &&
10294 { ac_try='test -s conftest.$ac_objext'
10295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296 (eval $ac_try) 2>&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); }; }; then
10300 ac_cv_member_struct_stat_st_blksize=yes
10302 echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10305 cat >conftest.$ac_ext <<_ACEOF
10306 #line $LINENO "configure"
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h. */
10312 $ac_includes_default
10316 static struct stat ac_aggr;
10317 if (sizeof ac_aggr.st_blksize)
10323 rm -f conftest.$ac_objext
10324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10325 (eval $ac_compile) 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } &&
10329 { ac_try='test -s conftest.$ac_objext'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; }; then
10335 ac_cv_member_struct_stat_st_blksize=yes
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10340 ac_cv_member_struct_stat_st_blksize=no
10342 rm -f conftest.$ac_objext conftest.$ac_ext
10344 rm -f conftest.$ac_objext conftest.$ac_ext
10346 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10347 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10348 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10350 cat >>confdefs.h <<_ACEOF
10351 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10355 cat >>confdefs.h <<\_ACEOF
10356 #define HAVE_ST_BLKSIZE 1
10362 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10363 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10364 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 cat >conftest.$ac_ext <<_ACEOF
10368 #line $LINENO "configure"
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10374 $ac_includes_default
10378 static struct stat ac_aggr;
10379 if (ac_aggr.st_blocks)
10385 rm -f conftest.$ac_objext
10386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10387 (eval $ac_compile) 2>&5
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); } &&
10391 { ac_try='test -s conftest.$ac_objext'
10392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393 (eval $ac_try) 2>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; }; then
10397 ac_cv_member_struct_stat_st_blocks=yes
10399 echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.$ac_ext >&5
10402 cat >conftest.$ac_ext <<_ACEOF
10403 #line $LINENO "configure"
10406 cat confdefs.h >>conftest.$ac_ext
10407 cat >>conftest.$ac_ext <<_ACEOF
10408 /* end confdefs.h. */
10409 $ac_includes_default
10413 static struct stat ac_aggr;
10414 if (sizeof ac_aggr.st_blocks)
10420 rm -f conftest.$ac_objext
10421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10422 (eval $ac_compile) 2>&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } &&
10426 { ac_try='test -s conftest.$ac_objext'
10427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428 (eval $ac_try) 2>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; }; then
10432 ac_cv_member_struct_stat_st_blocks=yes
10434 echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10437 ac_cv_member_struct_stat_st_blocks=no
10439 rm -f conftest.$ac_objext conftest.$ac_ext
10441 rm -f conftest.$ac_objext conftest.$ac_ext
10443 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10444 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10445 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10447 cat >>confdefs.h <<_ACEOF
10448 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10452 cat >>confdefs.h <<\_ACEOF
10453 #define HAVE_ST_BLOCKS 1
10457 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10461 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10462 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10463 if test "${ac_cv_struct_tm+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 cat >conftest.$ac_ext <<_ACEOF
10467 #line $LINENO "configure"
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h. */
10473 #include <sys/types.h>
10479 struct tm *tp; tp->tm_sec;
10484 rm -f conftest.$ac_objext
10485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10486 (eval $ac_compile) 2>&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); } &&
10490 { ac_try='test -s conftest.$ac_objext'
10491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492 (eval $ac_try) 2>&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }; then
10496 ac_cv_struct_tm=time.h
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10501 ac_cv_struct_tm=sys/time.h
10503 rm -f conftest.$ac_objext conftest.$ac_ext
10505 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10506 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10507 if test $ac_cv_struct_tm = sys/time.h; then
10509 cat >>confdefs.h <<\_ACEOF
10510 #define TM_IN_SYS_TIME 1
10515 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10516 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10517 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10520 cat >conftest.$ac_ext <<_ACEOF
10521 #line $LINENO "configure"
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h. */
10527 #include <sys/types.h>
10528 #include <$ac_cv_struct_tm>
10534 static struct tm ac_aggr;
10535 if (ac_aggr.tm_zone)
10541 rm -f conftest.$ac_objext
10542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10543 (eval $ac_compile) 2>&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } &&
10547 { ac_try='test -s conftest.$ac_objext'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; }; then
10553 ac_cv_member_struct_tm_tm_zone=yes
10555 echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10558 cat >conftest.$ac_ext <<_ACEOF
10559 #line $LINENO "configure"
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h. */
10565 #include <sys/types.h>
10566 #include <$ac_cv_struct_tm>
10572 static struct tm ac_aggr;
10573 if (sizeof ac_aggr.tm_zone)
10579 rm -f conftest.$ac_objext
10580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10581 (eval $ac_compile) 2>&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); } &&
10585 { ac_try='test -s conftest.$ac_objext'
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; }; then
10591 ac_cv_member_struct_tm_tm_zone=yes
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ac_cv_member_struct_tm_tm_zone=no
10598 rm -f conftest.$ac_objext conftest.$ac_ext
10600 rm -f conftest.$ac_objext conftest.$ac_ext
10602 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10603 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10604 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10606 cat >>confdefs.h <<_ACEOF
10607 #define HAVE_STRUCT_TM_TM_ZONE 1
10613 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10615 cat >>confdefs.h <<\_ACEOF
10616 #define HAVE_TM_ZONE 1
10620 echo "$as_me:$LINENO: checking for tzname" >&5
10621 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10622 if test "${ac_cv_var_tzname+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 cat >conftest.$ac_ext <<_ACEOF
10626 #line $LINENO "configure"
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10633 #ifndef tzname /* For SGI. */
10634 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10645 rm -f conftest.$ac_objext conftest$ac_exeext
10646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10647 (eval $ac_link) 2>&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } &&
10651 { ac_try='test -s conftest$ac_exeext'
10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653 (eval $ac_try) 2>&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; }; then
10657 ac_cv_var_tzname=yes
10659 echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10662 ac_cv_var_tzname=no
10664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10666 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10667 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10668 if test $ac_cv_var_tzname = yes; then
10670 cat >>confdefs.h <<\_ACEOF
10671 #define HAVE_TZNAME 1
10678 echo "$as_me:$LINENO: checking for utime.h" >&5
10679 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10680 if test "${ba_cv_header_utime_h+set}" = set; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 cat >conftest.$ac_ext <<_ACEOF
10684 #line $LINENO "configure"
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10691 #include <sys/types.h>
10701 rm -f conftest.$ac_objext
10702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10703 (eval $ac_compile) 2>&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } &&
10707 { ac_try='test -s conftest.$ac_objext'
10708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709 (eval $ac_try) 2>&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; }; then
10713 ba_cv_header_utime_h=yes
10715 echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10718 ba_cv_header_utime_h=no
10720 rm -f conftest.$ac_objext conftest.$ac_ext
10722 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10723 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10724 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10725 #define HAVE_UTIME_H 1
10729 echo "$as_me:$LINENO: checking for socklen_t" >&5
10730 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10731 if test "${ba_cv_header_socklen_t+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 cat >conftest.$ac_ext <<_ACEOF
10735 #line $LINENO "configure"
10738 cat confdefs.h >>conftest.$ac_ext
10739 cat >>conftest.$ac_ext <<_ACEOF
10740 /* end confdefs.h. */
10742 #include <sys/types.h>
10743 #include <sys/socket.h>
10752 rm -f conftest.$ac_objext
10753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10754 (eval $ac_compile) 2>&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } &&
10758 { ac_try='test -s conftest.$ac_objext'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; }; then
10764 ba_cv_header_socklen_t=yes
10766 echo "$as_me: failed program was:" >&5
10767 sed 's/^/| /' conftest.$ac_ext >&5
10769 ba_cv_header_socklen_t=no
10771 rm -f conftest.$ac_objext conftest.$ac_ext
10773 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10774 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10775 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10776 #define HAVE_SOCKLEN_T 1
10780 echo "$as_me:$LINENO: checking for bigendian" >&5
10781 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10782 if test "${ba_cv_bigendian+set}" = set; then
10783 echo $ECHO_N "(cached) $ECHO_C" >&6
10785 if test "$cross_compiling" = yes; then
10788 cat >conftest.$ac_ext <<_ACEOF
10789 #line $LINENO "configure"
10792 cat confdefs.h >>conftest.$ac_ext
10793 cat >>conftest.$ac_ext <<_ACEOF
10794 /* end confdefs.h. */
10795 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10797 rm -f conftest$ac_exeext
10798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10799 (eval $ac_link) 2>&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; }; then
10808 ba_cv_bigendian=yes
10810 echo "$as_me: program exited with status $ac_status" >&5
10811 echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10814 ( exit $ac_status )
10817 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10820 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10821 echo "${ECHO_T}$ba_cv_bigendian" >&6
10822 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10823 #define HAVE_BIGENDIAN 1
10828 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10829 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10830 if test "${ac_cv_c_const+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10833 cat >conftest.$ac_ext <<_ACEOF
10834 #line $LINENO "configure"
10837 cat confdefs.h >>conftest.$ac_ext
10838 cat >>conftest.$ac_ext <<_ACEOF
10839 /* end confdefs.h. */
10844 /* FIXME: Include the comments suggested by Paul. */
10845 #ifndef __cplusplus
10846 /* Ultrix mips cc rejects this. */
10847 typedef int charset[2];
10849 /* SunOS 4.1.1 cc rejects this. */
10850 char const *const *ccp;
10852 /* NEC SVR4.0.2 mips cc rejects this. */
10853 struct point {int x, y;};
10854 static struct point const zero = {0,0};
10855 /* AIX XL C 1.02.0.0 rejects this.
10856 It does not let you subtract one const X* pointer from another in
10857 an arm of an if-expression whose if-part is not a constant
10859 const char *g = "string";
10860 ccp = &g + (g ? g-g : 0);
10861 /* HPUX 7.0 cc rejects these. */
10864 ccp = (char const *const *) p;
10865 { /* SCO 3.2v4 cc rejects this. */
10867 char const *s = 0 ? (char *) 0 : (char const *) 0;
10871 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10872 int x[] = {25, 17};
10873 const int *foo = &x[0];
10876 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10877 typedef const int *iptr;
10881 { /* AIX XL C 1.02.0.0 rejects this saying
10882 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10883 struct s { int j; const int *ap[3]; };
10884 struct s *b; b->j = 5;
10886 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10887 const int foo = 10;
10895 rm -f conftest.$ac_objext
10896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10897 (eval $ac_compile) 2>&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } &&
10901 { ac_try='test -s conftest.$ac_objext'
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; }; then
10909 echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.$ac_ext >&5
10914 rm -f conftest.$ac_objext conftest.$ac_ext
10916 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10917 echo "${ECHO_T}$ac_cv_c_const" >&6
10918 if test $ac_cv_c_const = no; then
10920 cat >>confdefs.h <<\_ACEOF
10928 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10929 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10931 # The order of these tests is important.
10932 cat >conftest.$ac_ext <<_ACEOF
10933 #line $LINENO "configure"
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h. */
10939 #include <sys/statvfs.h>
10940 #include <sys/fstyp.h>
10942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10945 grep -v '^ *+' conftest.er1 >conftest.err
10947 cat conftest.err >&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } >/dev/null; then
10950 if test -s conftest.err; then
10951 ac_cpp_err=$ac_c_preproc_warn_flag
10958 if test -z "$ac_cpp_err"; then
10959 cat >>confdefs.h <<\_ACEOF
10960 #define FSTYPE_STATVFS 1
10964 echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10969 rm -f conftest.err conftest.$ac_ext
10970 if test $fstype = no; then
10971 cat >conftest.$ac_ext <<_ACEOF
10972 #line $LINENO "configure"
10975 cat confdefs.h >>conftest.$ac_ext
10976 cat >>conftest.$ac_ext <<_ACEOF
10977 /* end confdefs.h. */
10978 #include <sys/statfs.h>
10979 #include <sys/fstyp.h>
10981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10984 grep -v '^ *+' conftest.er1 >conftest.err
10986 cat conftest.err >&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); } >/dev/null; then
10989 if test -s conftest.err; then
10990 ac_cpp_err=$ac_c_preproc_warn_flag
10997 if test -z "$ac_cpp_err"; then
10998 cat >>confdefs.h <<\_ACEOF
10999 #define FSTYPE_USG_STATFS 1
11003 echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.$ac_ext >&5
11008 rm -f conftest.err conftest.$ac_ext
11010 if test $fstype = no; then
11011 cat >conftest.$ac_ext <<_ACEOF
11012 #line $LINENO "configure"
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h. */
11018 #include <sys/statfs.h>
11019 #include <sys/vmount.h>
11021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11024 grep -v '^ *+' conftest.er1 >conftest.err
11026 cat conftest.err >&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } >/dev/null; then
11029 if test -s conftest.err; then
11030 ac_cpp_err=$ac_c_preproc_warn_flag
11037 if test -z "$ac_cpp_err"; then
11038 cat >>confdefs.h <<\_ACEOF
11039 #define FSTYPE_AIX_STATFS 1
11043 echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11048 rm -f conftest.err conftest.$ac_ext
11050 if test $fstype = no; then
11051 cat >conftest.$ac_ext <<_ACEOF
11052 #line $LINENO "configure"
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h. */
11058 #include <mntent.h>
11060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11063 grep -v '^ *+' conftest.er1 >conftest.err
11065 cat conftest.err >&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } >/dev/null; then
11068 if test -s conftest.err; then
11069 ac_cpp_err=$ac_c_preproc_warn_flag
11076 if test -z "$ac_cpp_err"; then
11077 cat >>confdefs.h <<\_ACEOF
11078 #define FSTYPE_MNTENT 1
11082 echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11087 rm -f conftest.err conftest.$ac_ext
11089 if test $fstype = no; then
11090 cat >conftest.$ac_ext <<_ACEOF
11091 #line $LINENO "configure"
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11097 #include <sys/mount.h>
11100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11101 $EGREP "f_type;" >/dev/null 2>&1; then
11102 cat >>confdefs.h <<\_ACEOF
11103 #define FSTYPE_STATFS 1
11110 if test $fstype = no; then
11111 cat >conftest.$ac_ext <<_ACEOF
11112 #line $LINENO "configure"
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11118 #include <sys/mount.h>
11119 #include <sys/fs_types.h>
11121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11124 grep -v '^ *+' conftest.er1 >conftest.err
11126 cat conftest.err >&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } >/dev/null; then
11129 if test -s conftest.err; then
11130 ac_cpp_err=$ac_c_preproc_warn_flag
11137 if test -z "$ac_cpp_err"; then
11138 cat >>confdefs.h <<\_ACEOF
11139 #define FSTYPE_GETMNT 1
11143 echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11148 rm -f conftest.err conftest.$ac_ext
11150 echo "$as_me:$LINENO: result: $fstype" >&5
11151 echo "${ECHO_T}$fstype" >&6
11153 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11154 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11155 if test "${ac_cv_type_signal+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 cat >conftest.$ac_ext <<_ACEOF
11159 #line $LINENO "configure"
11162 cat confdefs.h >>conftest.$ac_ext
11163 cat >>conftest.$ac_ext <<_ACEOF
11164 /* end confdefs.h. */
11165 #include <sys/types.h>
11166 #include <signal.h>
11171 extern "C" void (*signal (int, void (*)(int)))(int);
11173 void (*signal ()) ();
11184 rm -f conftest.$ac_objext
11185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11186 (eval $ac_compile) 2>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } &&
11190 { ac_try='test -s conftest.$ac_objext'
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
11196 ac_cv_type_signal=void
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 ac_cv_type_signal=int
11203 rm -f conftest.$ac_objext conftest.$ac_ext
11205 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11206 echo "${ECHO_T}$ac_cv_type_signal" >&6
11208 cat >>confdefs.h <<_ACEOF
11209 #define RETSIGTYPE $ac_cv_type_signal
11214 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11215 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11216 if test "${bash_cv_signal_vintage+set}" = set; then
11217 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 cat >conftest.$ac_ext <<_ACEOF
11221 #line $LINENO "configure"
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h. */
11227 #include <signal.h>
11233 struct sigaction sa;
11234 sigemptyset(&ss); sigsuspend(&ss);
11235 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11236 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11242 rm -f conftest.$ac_objext conftest$ac_exeext
11243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11244 (eval $ac_link) 2>&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } &&
11248 { ac_try='test -s conftest$ac_exeext'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 bash_cv_signal_vintage=posix
11256 echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11260 cat >conftest.$ac_ext <<_ACEOF
11261 #line $LINENO "configure"
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h. */
11267 #include <signal.h>
11272 int mask = sigmask(SIGINT);
11273 sigsetmask(mask); sigblock(mask); sigpause(mask);
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11281 (eval $ac_link) 2>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } &&
11285 { ac_try='test -s conftest$ac_exeext'
11286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287 (eval $ac_try) 2>&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; }; then
11291 bash_cv_signal_vintage=4.2bsd
11293 echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11297 cat >conftest.$ac_ext <<_ACEOF
11298 #line $LINENO "configure"
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11305 #include <signal.h>
11306 RETSIGTYPE foo() { }
11311 int mask = sigmask(SIGINT);
11312 sigset(SIGINT, foo); sigrelse(SIGINT);
11313 sighold(SIGINT); sigpause(SIGINT);
11319 rm -f conftest.$ac_objext conftest$ac_exeext
11320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11321 (eval $ac_link) 2>&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } &&
11325 { ac_try='test -s conftest$ac_exeext'
11326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; }; then
11331 bash_cv_signal_vintage=svr3
11333 echo "$as_me: failed program was:" >&5
11334 sed 's/^/| /' conftest.$ac_ext >&5
11336 bash_cv_signal_vintage=v7
11339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11349 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11350 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11351 if test "$bash_cv_signal_vintage" = posix; then
11352 cat >>confdefs.h <<\_ACEOF
11353 #define HAVE_POSIX_SIGNALS 1
11356 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11357 cat >>confdefs.h <<\_ACEOF
11358 #define HAVE_BSD_SIGNALS 1
11361 elif test "$bash_cv_signal_vintage" = svr3; then
11362 cat >>confdefs.h <<\_ACEOF
11363 #define HAVE_USG_SIGHOLD 1
11368 echo "$as_me:$LINENO: checking for mode_t" >&5
11369 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11370 if test "${ac_cv_type_mode_t+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 cat >conftest.$ac_ext <<_ACEOF
11374 #line $LINENO "configure"
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11380 $ac_includes_default
11386 if (sizeof (mode_t))
11392 rm -f conftest.$ac_objext
11393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11394 (eval $ac_compile) 2>&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } &&
11398 { ac_try='test -s conftest.$ac_objext'
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; }; then
11404 ac_cv_type_mode_t=yes
11406 echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11409 ac_cv_type_mode_t=no
11411 rm -f conftest.$ac_objext conftest.$ac_ext
11413 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11414 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11415 if test $ac_cv_type_mode_t = yes; then
11419 cat >>confdefs.h <<_ACEOF
11425 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11426 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11427 if test "${ac_cv_type_uid_t+set}" = set; then
11428 echo $ECHO_N "(cached) $ECHO_C" >&6
11430 cat >conftest.$ac_ext <<_ACEOF
11431 #line $LINENO "configure"
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h. */
11437 #include <sys/types.h>
11440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11441 $EGREP "uid_t" >/dev/null 2>&1; then
11442 ac_cv_type_uid_t=yes
11444 ac_cv_type_uid_t=no
11449 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11450 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11451 if test $ac_cv_type_uid_t = no; then
11453 cat >>confdefs.h <<\_ACEOF
11458 cat >>confdefs.h <<\_ACEOF
11464 echo "$as_me:$LINENO: checking for size_t" >&5
11465 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11466 if test "${ac_cv_type_size_t+set}" = set; then
11467 echo $ECHO_N "(cached) $ECHO_C" >&6
11469 cat >conftest.$ac_ext <<_ACEOF
11470 #line $LINENO "configure"
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11476 $ac_includes_default
11482 if (sizeof (size_t))
11488 rm -f conftest.$ac_objext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11490 (eval $ac_compile) 2>&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } &&
11494 { ac_try='test -s conftest.$ac_objext'
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; }; then
11500 ac_cv_type_size_t=yes
11502 echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11505 ac_cv_type_size_t=no
11507 rm -f conftest.$ac_objext conftest.$ac_ext
11509 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11510 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11511 if test $ac_cv_type_size_t = yes; then
11515 cat >>confdefs.h <<_ACEOF
11516 #define size_t unsigned
11521 echo "$as_me:$LINENO: checking for pid_t" >&5
11522 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11523 if test "${ac_cv_type_pid_t+set}" = set; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
11526 cat >conftest.$ac_ext <<_ACEOF
11527 #line $LINENO "configure"
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11533 $ac_includes_default
11539 if (sizeof (pid_t))
11545 rm -f conftest.$ac_objext
11546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11547 (eval $ac_compile) 2>&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); } &&
11551 { ac_try='test -s conftest.$ac_objext'
11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553 (eval $ac_try) 2>&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; }; then
11557 ac_cv_type_pid_t=yes
11559 echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11562 ac_cv_type_pid_t=no
11564 rm -f conftest.$ac_objext conftest.$ac_ext
11566 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11567 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11568 if test $ac_cv_type_pid_t = yes; then
11572 cat >>confdefs.h <<_ACEOF
11578 echo "$as_me:$LINENO: checking for off_t" >&5
11579 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11580 if test "${ac_cv_type_off_t+set}" = set; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 cat >conftest.$ac_ext <<_ACEOF
11584 #line $LINENO "configure"
11587 cat confdefs.h >>conftest.$ac_ext
11588 cat >>conftest.$ac_ext <<_ACEOF
11589 /* end confdefs.h. */
11590 $ac_includes_default
11596 if (sizeof (off_t))
11602 rm -f conftest.$ac_objext
11603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11604 (eval $ac_compile) 2>&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } &&
11608 { ac_try='test -s conftest.$ac_objext'
11609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; }; then
11614 ac_cv_type_off_t=yes
11616 echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.$ac_ext >&5
11619 ac_cv_type_off_t=no
11621 rm -f conftest.$ac_objext conftest.$ac_ext
11623 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11624 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11625 if test $ac_cv_type_off_t = yes; then
11629 cat >>confdefs.h <<_ACEOF
11635 echo "$as_me:$LINENO: checking for ino_t" >&5
11636 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11637 if test "${ac_cv_type_ino_t+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 cat >conftest.$ac_ext <<_ACEOF
11641 #line $LINENO "configure"
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 $ac_includes_default
11653 if (sizeof (ino_t))
11659 rm -f conftest.$ac_objext
11660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11661 (eval $ac_compile) 2>&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } &&
11665 { ac_try='test -s conftest.$ac_objext'
11666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; }; then
11671 ac_cv_type_ino_t=yes
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 ac_cv_type_ino_t=no
11678 rm -f conftest.$ac_objext conftest.$ac_ext
11680 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11681 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11682 if test $ac_cv_type_ino_t = yes; then
11686 cat >>confdefs.h <<_ACEOF
11687 #define ino_t unsigned long
11692 echo "$as_me:$LINENO: checking for dev_t" >&5
11693 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11694 if test "${ac_cv_type_dev_t+set}" = set; then
11695 echo $ECHO_N "(cached) $ECHO_C" >&6
11697 cat >conftest.$ac_ext <<_ACEOF
11698 #line $LINENO "configure"
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11704 $ac_includes_default
11710 if (sizeof (dev_t))
11716 rm -f conftest.$ac_objext
11717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11718 (eval $ac_compile) 2>&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } &&
11722 { ac_try='test -s conftest.$ac_objext'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11728 ac_cv_type_dev_t=yes
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11733 ac_cv_type_dev_t=no
11735 rm -f conftest.$ac_objext conftest.$ac_ext
11737 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11738 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11739 if test $ac_cv_type_dev_t = yes; then
11743 cat >>confdefs.h <<_ACEOF
11744 #define dev_t unsigned long
11749 echo "$as_me:$LINENO: checking for daddr_t" >&5
11750 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11751 if test "${ac_cv_type_daddr_t+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 cat >conftest.$ac_ext <<_ACEOF
11755 #line $LINENO "configure"
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11761 $ac_includes_default
11767 if (sizeof (daddr_t))
11773 rm -f conftest.$ac_objext
11774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11775 (eval $ac_compile) 2>&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); } &&
11779 { ac_try='test -s conftest.$ac_objext'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; }; then
11785 ac_cv_type_daddr_t=yes
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11790 ac_cv_type_daddr_t=no
11792 rm -f conftest.$ac_objext conftest.$ac_ext
11794 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11795 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11796 if test $ac_cv_type_daddr_t = yes; then
11800 cat >>confdefs.h <<_ACEOF
11801 #define daddr_t long
11806 echo "$as_me:$LINENO: checking for major_t" >&5
11807 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11808 if test "${ac_cv_type_major_t+set}" = set; then
11809 echo $ECHO_N "(cached) $ECHO_C" >&6
11811 cat >conftest.$ac_ext <<_ACEOF
11812 #line $LINENO "configure"
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11818 $ac_includes_default
11824 if (sizeof (major_t))
11830 rm -f conftest.$ac_objext
11831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11832 (eval $ac_compile) 2>&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } &&
11836 { ac_try='test -s conftest.$ac_objext'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; }; then
11842 ac_cv_type_major_t=yes
11844 echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11847 ac_cv_type_major_t=no
11849 rm -f conftest.$ac_objext conftest.$ac_ext
11851 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11852 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11853 if test $ac_cv_type_major_t = yes; then
11857 cat >>confdefs.h <<_ACEOF
11858 #define major_t int
11863 echo "$as_me:$LINENO: checking for minor_t" >&5
11864 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11865 if test "${ac_cv_type_minor_t+set}" = set; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11868 cat >conftest.$ac_ext <<_ACEOF
11869 #line $LINENO "configure"
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h. */
11875 $ac_includes_default
11881 if (sizeof (minor_t))
11887 rm -f conftest.$ac_objext
11888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11889 (eval $ac_compile) 2>&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
11893 { ac_try='test -s conftest.$ac_objext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_type_minor_t=yes
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11904 ac_cv_type_minor_t=no
11906 rm -f conftest.$ac_objext conftest.$ac_ext
11908 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11909 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11910 if test $ac_cv_type_minor_t = yes; then
11914 cat >>confdefs.h <<_ACEOF
11915 #define minor_t int
11920 echo "$as_me:$LINENO: checking for ssize_t" >&5
11921 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11922 if test "${ac_cv_type_ssize_t+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 cat >conftest.$ac_ext <<_ACEOF
11926 #line $LINENO "configure"
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11932 $ac_includes_default
11938 if (sizeof (ssize_t))
11944 rm -f conftest.$ac_objext
11945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11946 (eval $ac_compile) 2>&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } &&
11950 { ac_try='test -s conftest.$ac_objext'
11951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; }; then
11956 ac_cv_type_ssize_t=yes
11958 echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.$ac_ext >&5
11961 ac_cv_type_ssize_t=no
11963 rm -f conftest.$ac_objext conftest.$ac_ext
11965 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11966 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11967 if test $ac_cv_type_ssize_t = yes; then
11971 cat >>confdefs.h <<_ACEOF
11972 #define ssize_t int
11977 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11978 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11979 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11982 cat >conftest.$ac_ext <<_ACEOF
11983 #line $LINENO "configure"
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989 $ac_includes_default
11993 static struct stat ac_aggr;
11994 if (ac_aggr.st_blocks)
12000 rm -f conftest.$ac_objext
12001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12002 (eval $ac_compile) 2>&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } &&
12006 { ac_try='test -s conftest.$ac_objext'
12007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008 (eval $ac_try) 2>&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; }; then
12012 ac_cv_member_struct_stat_st_blocks=yes
12014 echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12017 cat >conftest.$ac_ext <<_ACEOF
12018 #line $LINENO "configure"
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 $ac_includes_default
12028 static struct stat ac_aggr;
12029 if (sizeof ac_aggr.st_blocks)
12035 rm -f conftest.$ac_objext
12036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037 (eval $ac_compile) 2>&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -s conftest.$ac_objext'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12047 ac_cv_member_struct_stat_st_blocks=yes
12049 echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12052 ac_cv_member_struct_stat_st_blocks=no
12054 rm -f conftest.$ac_objext conftest.$ac_ext
12056 rm -f conftest.$ac_objext conftest.$ac_ext
12058 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12059 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12060 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12062 cat >>confdefs.h <<_ACEOF
12063 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12067 cat >>confdefs.h <<\_ACEOF
12068 #define HAVE_ST_BLOCKS 1
12072 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12077 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12078 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12079 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12080 echo $ECHO_N "(cached) $ECHO_C" >&6
12082 cat >conftest.$ac_ext <<_ACEOF
12083 #line $LINENO "configure"
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12089 $ac_includes_default
12093 static struct stat ac_aggr;
12094 if (ac_aggr.st_rdev)
12100 rm -f conftest.$ac_objext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12102 (eval $ac_compile) 2>&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); } &&
12106 { ac_try='test -s conftest.$ac_objext'
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; }; then
12112 ac_cv_member_struct_stat_st_rdev=yes
12114 echo "$as_me: failed program was:" >&5
12115 sed 's/^/| /' conftest.$ac_ext >&5
12117 cat >conftest.$ac_ext <<_ACEOF
12118 #line $LINENO "configure"
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12124 $ac_includes_default
12128 static struct stat ac_aggr;
12129 if (sizeof ac_aggr.st_rdev)
12135 rm -f conftest.$ac_objext
12136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12137 (eval $ac_compile) 2>&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } &&
12141 { ac_try='test -s conftest.$ac_objext'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_cv_member_struct_stat_st_rdev=yes
12149 echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12152 ac_cv_member_struct_stat_st_rdev=no
12154 rm -f conftest.$ac_objext conftest.$ac_ext
12156 rm -f conftest.$ac_objext conftest.$ac_ext
12158 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12159 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12160 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12162 cat >>confdefs.h <<_ACEOF
12163 #define HAVE_STRUCT_STAT_ST_RDEV 1
12167 cat >>confdefs.h <<\_ACEOF
12168 #define HAVE_ST_RDEV 1
12174 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12175 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12176 if test "${ac_cv_struct_tm+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 cat >conftest.$ac_ext <<_ACEOF
12180 #line $LINENO "configure"
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12186 #include <sys/types.h>
12192 struct tm *tp; tp->tm_sec;
12197 rm -f conftest.$ac_objext
12198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12199 (eval $ac_compile) 2>&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
12203 { ac_try='test -s conftest.$ac_objext'
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; }; then
12209 ac_cv_struct_tm=time.h
12211 echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12214 ac_cv_struct_tm=sys/time.h
12216 rm -f conftest.$ac_objext conftest.$ac_ext
12218 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12219 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12220 if test $ac_cv_struct_tm = sys/time.h; then
12222 cat >>confdefs.h <<\_ACEOF
12223 #define TM_IN_SYS_TIME 1
12228 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12229 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12230 if test "${ac_cv_c_const+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 cat >conftest.$ac_ext <<_ACEOF
12234 #line $LINENO "configure"
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12244 /* FIXME: Include the comments suggested by Paul. */
12245 #ifndef __cplusplus
12246 /* Ultrix mips cc rejects this. */
12247 typedef int charset[2];
12249 /* SunOS 4.1.1 cc rejects this. */
12250 char const *const *ccp;
12252 /* NEC SVR4.0.2 mips cc rejects this. */
12253 struct point {int x, y;};
12254 static struct point const zero = {0,0};
12255 /* AIX XL C 1.02.0.0 rejects this.
12256 It does not let you subtract one const X* pointer from another in
12257 an arm of an if-expression whose if-part is not a constant
12259 const char *g = "string";
12260 ccp = &g + (g ? g-g : 0);
12261 /* HPUX 7.0 cc rejects these. */
12264 ccp = (char const *const *) p;
12265 { /* SCO 3.2v4 cc rejects this. */
12267 char const *s = 0 ? (char *) 0 : (char const *) 0;
12271 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12272 int x[] = {25, 17};
12273 const int *foo = &x[0];
12276 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12277 typedef const int *iptr;
12281 { /* AIX XL C 1.02.0.0 rejects this saying
12282 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12283 struct s { int j; const int *ap[3]; };
12284 struct s *b; b->j = 5;
12286 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12287 const int foo = 10;
12295 rm -f conftest.$ac_objext
12296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12297 (eval $ac_compile) 2>&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } &&
12301 { ac_try='test -s conftest.$ac_objext'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; }; then
12309 echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12314 rm -f conftest.$ac_objext conftest.$ac_ext
12316 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12317 echo "${ECHO_T}$ac_cv_c_const" >&6
12318 if test $ac_cv_c_const = no; then
12320 cat >>confdefs.h <<\_ACEOF
12328 echo "$as_me:$LINENO: checking for char" >&5
12329 echo $ECHO_N "checking for char... $ECHO_C" >&6
12330 if test "${ac_cv_type_char+set}" = set; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
12333 cat >conftest.$ac_ext <<_ACEOF
12334 #line $LINENO "configure"
12337 cat confdefs.h >>conftest.$ac_ext
12338 cat >>conftest.$ac_ext <<_ACEOF
12339 /* end confdefs.h. */
12340 $ac_includes_default
12352 rm -f conftest.$ac_objext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12354 (eval $ac_compile) 2>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -s conftest.$ac_objext'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
12364 ac_cv_type_char=yes
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12371 rm -f conftest.$ac_objext conftest.$ac_ext
12373 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12374 echo "${ECHO_T}$ac_cv_type_char" >&6
12376 echo "$as_me:$LINENO: checking size of char" >&5
12377 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12378 if test "${ac_cv_sizeof_char+set}" = set; then
12379 echo $ECHO_N "(cached) $ECHO_C" >&6
12381 if test "$ac_cv_type_char" = yes; then
12382 # The cast to unsigned long works around a bug in the HP C Compiler
12383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12385 # This bug is HP SR number 8606223364.
12386 if test "$cross_compiling" = yes; then
12387 # Depending upon the size, compute the lo and hi bounds.
12388 cat >conftest.$ac_ext <<_ACEOF
12389 #line $LINENO "configure"
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12395 $ac_includes_default
12399 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12406 rm -f conftest.$ac_objext
12407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12408 (eval $ac_compile) 2>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try='test -s conftest.$ac_objext'
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; }; then
12420 cat >conftest.$ac_ext <<_ACEOF
12421 #line $LINENO "configure"
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12427 $ac_includes_default
12431 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12438 rm -f conftest.$ac_objext
12439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12440 (eval $ac_compile) 2>&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } &&
12444 { ac_try='test -s conftest.$ac_objext'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; }; then
12450 ac_hi=$ac_mid; break
12452 echo "$as_me: failed program was:" >&5
12453 sed 's/^/| /' conftest.$ac_ext >&5
12455 ac_lo=`expr $ac_mid + 1`
12456 if test $ac_lo -le $ac_mid; then
12460 ac_mid=`expr 2 '*' $ac_mid + 1`
12462 rm -f conftest.$ac_objext conftest.$ac_ext
12465 echo "$as_me: failed program was:" >&5
12466 sed 's/^/| /' conftest.$ac_ext >&5
12468 cat >conftest.$ac_ext <<_ACEOF
12469 #line $LINENO "configure"
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h. */
12475 $ac_includes_default
12479 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12486 rm -f conftest.$ac_objext
12487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12488 (eval $ac_compile) 2>&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
12492 { ac_try='test -s conftest.$ac_objext'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; }; then
12500 cat >conftest.$ac_ext <<_ACEOF
12501 #line $LINENO "configure"
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h. */
12507 $ac_includes_default
12511 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12518 rm -f conftest.$ac_objext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12520 (eval $ac_compile) 2>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } &&
12524 { ac_try='test -s conftest.$ac_objext'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; }; then
12530 ac_lo=$ac_mid; break
12532 echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12535 ac_hi=`expr '(' $ac_mid ')' - 1`
12536 if test $ac_mid -le $ac_hi; then
12540 ac_mid=`expr 2 '*' $ac_mid`
12542 rm -f conftest.$ac_objext conftest.$ac_ext
12545 echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12550 rm -f conftest.$ac_objext conftest.$ac_ext
12552 rm -f conftest.$ac_objext conftest.$ac_ext
12553 # Binary search between lo and hi bounds.
12554 while test "x$ac_lo" != "x$ac_hi"; do
12555 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12556 cat >conftest.$ac_ext <<_ACEOF
12557 #line $LINENO "configure"
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h. */
12563 $ac_includes_default
12567 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12574 rm -f conftest.$ac_objext
12575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12576 (eval $ac_compile) 2>&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } &&
12580 { ac_try='test -s conftest.$ac_objext'
12581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; }; then
12588 echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12591 ac_lo=`expr '(' $ac_mid ')' + 1`
12593 rm -f conftest.$ac_objext conftest.$ac_ext
12596 ?*) ac_cv_sizeof_char=$ac_lo;;
12597 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12598 See \`config.log' for more details." >&5
12599 echo "$as_me: error: cannot compute sizeof (char), 77
12600 See \`config.log' for more details." >&2;}
12601 { (exit 1); exit 1; }; } ;;
12604 if test "$cross_compiling" = yes; then
12605 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12606 See \`config.log' for more details." >&5
12607 echo "$as_me: error: cannot run test program while cross compiling
12608 See \`config.log' for more details." >&2;}
12609 { (exit 1); exit 1; }; }
12611 cat >conftest.$ac_ext <<_ACEOF
12612 #line $LINENO "configure"
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h. */
12618 $ac_includes_default
12619 long longval () { return (long) (sizeof (char)); }
12620 unsigned long ulongval () { return (long) (sizeof (char)); }
12622 #include <stdlib.h>
12627 FILE *f = fopen ("conftest.val", "w");
12630 if (((long) (sizeof (char))) < 0)
12632 long i = longval ();
12633 if (i != ((long) (sizeof (char))))
12635 fprintf (f, "%ld\n", i);
12639 unsigned long i = ulongval ();
12640 if (i != ((long) (sizeof (char))))
12642 fprintf (f, "%lu\n", i);
12644 exit (ferror (f) || fclose (f) != 0);
12650 rm -f conftest$ac_exeext
12651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12652 (eval $ac_link) 2>&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
12661 ac_cv_sizeof_char=`cat conftest.val`
12663 echo "$as_me: program exited with status $ac_status" >&5
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12667 ( exit $ac_status )
12668 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12669 See \`config.log' for more details." >&5
12670 echo "$as_me: error: cannot compute sizeof (char), 77
12671 See \`config.log' for more details." >&2;}
12672 { (exit 1); exit 1; }; }
12674 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12679 ac_cv_sizeof_char=0
12682 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12683 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12684 cat >>confdefs.h <<_ACEOF
12685 #define SIZEOF_CHAR $ac_cv_sizeof_char
12689 echo "$as_me:$LINENO: checking for short int" >&5
12690 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12691 if test "${ac_cv_type_short_int+set}" = set; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12694 cat >conftest.$ac_ext <<_ACEOF
12695 #line $LINENO "configure"
12698 cat confdefs.h >>conftest.$ac_ext
12699 cat >>conftest.$ac_ext <<_ACEOF
12700 /* end confdefs.h. */
12701 $ac_includes_default
12705 if ((short int *) 0)
12707 if (sizeof (short int))
12713 rm -f conftest.$ac_objext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12715 (eval $ac_compile) 2>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try='test -s conftest.$ac_objext'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; }; then
12725 ac_cv_type_short_int=yes
12727 echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12730 ac_cv_type_short_int=no
12732 rm -f conftest.$ac_objext conftest.$ac_ext
12734 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12735 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12737 echo "$as_me:$LINENO: checking size of short int" >&5
12738 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12739 if test "${ac_cv_sizeof_short_int+set}" = set; then
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
12742 if test "$ac_cv_type_short_int" = yes; then
12743 # The cast to unsigned long works around a bug in the HP C Compiler
12744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12746 # This bug is HP SR number 8606223364.
12747 if test "$cross_compiling" = yes; then
12748 # Depending upon the size, compute the lo and hi bounds.
12749 cat >conftest.$ac_ext <<_ACEOF
12750 #line $LINENO "configure"
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h. */
12756 $ac_includes_default
12760 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12767 rm -f conftest.$ac_objext
12768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12769 (eval $ac_compile) 2>&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } &&
12773 { ac_try='test -s conftest.$ac_objext'
12774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775 (eval $ac_try) 2>&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); }; }; then
12781 cat >conftest.$ac_ext <<_ACEOF
12782 #line $LINENO "configure"
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12788 $ac_includes_default
12792 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12799 rm -f conftest.$ac_objext
12800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12801 (eval $ac_compile) 2>&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } &&
12805 { ac_try='test -s conftest.$ac_objext'
12806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12811 ac_hi=$ac_mid; break
12813 echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12816 ac_lo=`expr $ac_mid + 1`
12817 if test $ac_lo -le $ac_mid; then
12821 ac_mid=`expr 2 '*' $ac_mid + 1`
12823 rm -f conftest.$ac_objext conftest.$ac_ext
12826 echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.$ac_ext >&5
12829 cat >conftest.$ac_ext <<_ACEOF
12830 #line $LINENO "configure"
12833 cat confdefs.h >>conftest.$ac_ext
12834 cat >>conftest.$ac_ext <<_ACEOF
12835 /* end confdefs.h. */
12836 $ac_includes_default
12840 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12847 rm -f conftest.$ac_objext
12848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12849 (eval $ac_compile) 2>&5
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); } &&
12853 { ac_try='test -s conftest.$ac_objext'
12854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855 (eval $ac_try) 2>&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; }; then
12861 cat >conftest.$ac_ext <<_ACEOF
12862 #line $LINENO "configure"
12865 cat confdefs.h >>conftest.$ac_ext
12866 cat >>conftest.$ac_ext <<_ACEOF
12867 /* end confdefs.h. */
12868 $ac_includes_default
12872 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12879 rm -f conftest.$ac_objext
12880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12881 (eval $ac_compile) 2>&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } &&
12885 { ac_try='test -s conftest.$ac_objext'
12886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887 (eval $ac_try) 2>&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; }; then
12891 ac_lo=$ac_mid; break
12893 echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12896 ac_hi=`expr '(' $ac_mid ')' - 1`
12897 if test $ac_mid -le $ac_hi; then
12901 ac_mid=`expr 2 '*' $ac_mid`
12903 rm -f conftest.$ac_objext conftest.$ac_ext
12906 echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12911 rm -f conftest.$ac_objext conftest.$ac_ext
12913 rm -f conftest.$ac_objext conftest.$ac_ext
12914 # Binary search between lo and hi bounds.
12915 while test "x$ac_lo" != "x$ac_hi"; do
12916 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12917 cat >conftest.$ac_ext <<_ACEOF
12918 #line $LINENO "configure"
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h. */
12924 $ac_includes_default
12928 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12935 rm -f conftest.$ac_objext
12936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12937 (eval $ac_compile) 2>&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
12941 { ac_try='test -s conftest.$ac_objext'
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; }; then
12949 echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12952 ac_lo=`expr '(' $ac_mid ')' + 1`
12954 rm -f conftest.$ac_objext conftest.$ac_ext
12957 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12958 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12959 See \`config.log' for more details." >&5
12960 echo "$as_me: error: cannot compute sizeof (short int), 77
12961 See \`config.log' for more details." >&2;}
12962 { (exit 1); exit 1; }; } ;;
12965 if test "$cross_compiling" = yes; then
12966 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12967 See \`config.log' for more details." >&5
12968 echo "$as_me: error: cannot run test program while cross compiling
12969 See \`config.log' for more details." >&2;}
12970 { (exit 1); exit 1; }; }
12972 cat >conftest.$ac_ext <<_ACEOF
12973 #line $LINENO "configure"
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h. */
12979 $ac_includes_default
12980 long longval () { return (long) (sizeof (short int)); }
12981 unsigned long ulongval () { return (long) (sizeof (short int)); }
12983 #include <stdlib.h>
12988 FILE *f = fopen ("conftest.val", "w");
12991 if (((long) (sizeof (short int))) < 0)
12993 long i = longval ();
12994 if (i != ((long) (sizeof (short int))))
12996 fprintf (f, "%ld\n", i);
13000 unsigned long i = ulongval ();
13001 if (i != ((long) (sizeof (short int))))
13003 fprintf (f, "%lu\n", i);
13005 exit (ferror (f) || fclose (f) != 0);
13011 rm -f conftest$ac_exeext
13012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13013 (eval $ac_link) 2>&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13018 (eval $ac_try) 2>&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; }; then
13022 ac_cv_sizeof_short_int=`cat conftest.val`
13024 echo "$as_me: program exited with status $ac_status" >&5
13025 echo "$as_me: failed program was:" >&5
13026 sed 's/^/| /' conftest.$ac_ext >&5
13028 ( exit $ac_status )
13029 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13030 See \`config.log' for more details." >&5
13031 echo "$as_me: error: cannot compute sizeof (short int), 77
13032 See \`config.log' for more details." >&2;}
13033 { (exit 1); exit 1; }; }
13035 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13040 ac_cv_sizeof_short_int=0
13043 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13044 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13045 cat >>confdefs.h <<_ACEOF
13046 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13050 echo "$as_me:$LINENO: checking for int" >&5
13051 echo $ECHO_N "checking for int... $ECHO_C" >&6
13052 if test "${ac_cv_type_int+set}" = set; then
13053 echo $ECHO_N "(cached) $ECHO_C" >&6
13055 cat >conftest.$ac_ext <<_ACEOF
13056 #line $LINENO "configure"
13059 cat confdefs.h >>conftest.$ac_ext
13060 cat >>conftest.$ac_ext <<_ACEOF
13061 /* end confdefs.h. */
13062 $ac_includes_default
13074 rm -f conftest.$ac_objext
13075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13076 (eval $ac_compile) 2>&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } &&
13080 { ac_try='test -s conftest.$ac_objext'
13081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082 (eval $ac_try) 2>&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; }; then
13088 echo "$as_me: failed program was:" >&5
13089 sed 's/^/| /' conftest.$ac_ext >&5
13093 rm -f conftest.$ac_objext conftest.$ac_ext
13095 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13096 echo "${ECHO_T}$ac_cv_type_int" >&6
13098 echo "$as_me:$LINENO: checking size of int" >&5
13099 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13100 if test "${ac_cv_sizeof_int+set}" = set; then
13101 echo $ECHO_N "(cached) $ECHO_C" >&6
13103 if test "$ac_cv_type_int" = yes; then
13104 # The cast to unsigned long works around a bug in the HP C Compiler
13105 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13106 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13107 # This bug is HP SR number 8606223364.
13108 if test "$cross_compiling" = yes; then
13109 # Depending upon the size, compute the lo and hi bounds.
13110 cat >conftest.$ac_ext <<_ACEOF
13111 #line $LINENO "configure"
13114 cat confdefs.h >>conftest.$ac_ext
13115 cat >>conftest.$ac_ext <<_ACEOF
13116 /* end confdefs.h. */
13117 $ac_includes_default
13121 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13128 rm -f conftest.$ac_objext
13129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13130 (eval $ac_compile) 2>&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } &&
13134 { ac_try='test -s conftest.$ac_objext'
13135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136 (eval $ac_try) 2>&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; }; then
13142 cat >conftest.$ac_ext <<_ACEOF
13143 #line $LINENO "configure"
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h. */
13149 $ac_includes_default
13153 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13160 rm -f conftest.$ac_objext
13161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13162 (eval $ac_compile) 2>&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } &&
13166 { ac_try='test -s conftest.$ac_objext'
13167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168 (eval $ac_try) 2>&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; }; then
13172 ac_hi=$ac_mid; break
13174 echo "$as_me: failed program was:" >&5
13175 sed 's/^/| /' conftest.$ac_ext >&5
13177 ac_lo=`expr $ac_mid + 1`
13178 if test $ac_lo -le $ac_mid; then
13182 ac_mid=`expr 2 '*' $ac_mid + 1`
13184 rm -f conftest.$ac_objext conftest.$ac_ext
13187 echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13190 cat >conftest.$ac_ext <<_ACEOF
13191 #line $LINENO "configure"
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h. */
13197 $ac_includes_default
13201 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13208 rm -f conftest.$ac_objext
13209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13210 (eval $ac_compile) 2>&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); } &&
13214 { ac_try='test -s conftest.$ac_objext'
13215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216 (eval $ac_try) 2>&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; }; then
13222 cat >conftest.$ac_ext <<_ACEOF
13223 #line $LINENO "configure"
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h. */
13229 $ac_includes_default
13233 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13240 rm -f conftest.$ac_objext
13241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13242 (eval $ac_compile) 2>&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } &&
13246 { ac_try='test -s conftest.$ac_objext'
13247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248 (eval $ac_try) 2>&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }; }; then
13252 ac_lo=$ac_mid; break
13254 echo "$as_me: failed program was:" >&5
13255 sed 's/^/| /' conftest.$ac_ext >&5
13257 ac_hi=`expr '(' $ac_mid ')' - 1`
13258 if test $ac_mid -le $ac_hi; then
13262 ac_mid=`expr 2 '*' $ac_mid`
13264 rm -f conftest.$ac_objext conftest.$ac_ext
13267 echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13272 rm -f conftest.$ac_objext conftest.$ac_ext
13274 rm -f conftest.$ac_objext conftest.$ac_ext
13275 # Binary search between lo and hi bounds.
13276 while test "x$ac_lo" != "x$ac_hi"; do
13277 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13278 cat >conftest.$ac_ext <<_ACEOF
13279 #line $LINENO "configure"
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13285 $ac_includes_default
13289 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13296 rm -f conftest.$ac_objext
13297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13298 (eval $ac_compile) 2>&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); } &&
13302 { ac_try='test -s conftest.$ac_objext'
13303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304 (eval $ac_try) 2>&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); }; }; then
13310 echo "$as_me: failed program was:" >&5
13311 sed 's/^/| /' conftest.$ac_ext >&5
13313 ac_lo=`expr '(' $ac_mid ')' + 1`
13315 rm -f conftest.$ac_objext conftest.$ac_ext
13318 ?*) ac_cv_sizeof_int=$ac_lo;;
13319 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13320 See \`config.log' for more details." >&5
13321 echo "$as_me: error: cannot compute sizeof (int), 77
13322 See \`config.log' for more details." >&2;}
13323 { (exit 1); exit 1; }; } ;;
13326 if test "$cross_compiling" = yes; then
13327 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13328 See \`config.log' for more details." >&5
13329 echo "$as_me: error: cannot run test program while cross compiling
13330 See \`config.log' for more details." >&2;}
13331 { (exit 1); exit 1; }; }
13333 cat >conftest.$ac_ext <<_ACEOF
13334 #line $LINENO "configure"
13337 cat confdefs.h >>conftest.$ac_ext
13338 cat >>conftest.$ac_ext <<_ACEOF
13339 /* end confdefs.h. */
13340 $ac_includes_default
13341 long longval () { return (long) (sizeof (int)); }
13342 unsigned long ulongval () { return (long) (sizeof (int)); }
13344 #include <stdlib.h>
13349 FILE *f = fopen ("conftest.val", "w");
13352 if (((long) (sizeof (int))) < 0)
13354 long i = longval ();
13355 if (i != ((long) (sizeof (int))))
13357 fprintf (f, "%ld\n", i);
13361 unsigned long i = ulongval ();
13362 if (i != ((long) (sizeof (int))))
13364 fprintf (f, "%lu\n", i);
13366 exit (ferror (f) || fclose (f) != 0);
13372 rm -f conftest$ac_exeext
13373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13374 (eval $ac_link) 2>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379 (eval $ac_try) 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; }; then
13383 ac_cv_sizeof_int=`cat conftest.val`
13385 echo "$as_me: program exited with status $ac_status" >&5
13386 echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.$ac_ext >&5
13389 ( exit $ac_status )
13390 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13391 See \`config.log' for more details." >&5
13392 echo "$as_me: error: cannot compute sizeof (int), 77
13393 See \`config.log' for more details." >&2;}
13394 { (exit 1); exit 1; }; }
13396 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13404 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13405 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13406 cat >>confdefs.h <<_ACEOF
13407 #define SIZEOF_INT $ac_cv_sizeof_int
13411 echo "$as_me:$LINENO: checking for long int" >&5
13412 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13413 if test "${ac_cv_type_long_int+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 cat >conftest.$ac_ext <<_ACEOF
13417 #line $LINENO "configure"
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13423 $ac_includes_default
13427 if ((long int *) 0)
13429 if (sizeof (long int))
13435 rm -f conftest.$ac_objext
13436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13437 (eval $ac_compile) 2>&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
13441 { ac_try='test -s conftest.$ac_objext'
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }; then
13447 ac_cv_type_long_int=yes
13449 echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13452 ac_cv_type_long_int=no
13454 rm -f conftest.$ac_objext conftest.$ac_ext
13456 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13457 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13459 echo "$as_me:$LINENO: checking size of long int" >&5
13460 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13461 if test "${ac_cv_sizeof_long_int+set}" = set; then
13462 echo $ECHO_N "(cached) $ECHO_C" >&6
13464 if test "$ac_cv_type_long_int" = yes; then
13465 # The cast to unsigned long works around a bug in the HP C Compiler
13466 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13467 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13468 # This bug is HP SR number 8606223364.
13469 if test "$cross_compiling" = yes; then
13470 # Depending upon the size, compute the lo and hi bounds.
13471 cat >conftest.$ac_ext <<_ACEOF
13472 #line $LINENO "configure"
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h. */
13478 $ac_includes_default
13482 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13489 rm -f conftest.$ac_objext
13490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13491 (eval $ac_compile) 2>&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } &&
13495 { ac_try='test -s conftest.$ac_objext'
13496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13497 (eval $ac_try) 2>&5
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; }; then
13503 cat >conftest.$ac_ext <<_ACEOF
13504 #line $LINENO "configure"
13507 cat confdefs.h >>conftest.$ac_ext
13508 cat >>conftest.$ac_ext <<_ACEOF
13509 /* end confdefs.h. */
13510 $ac_includes_default
13514 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13521 rm -f conftest.$ac_objext
13522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13523 (eval $ac_compile) 2>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } &&
13527 { ac_try='test -s conftest.$ac_objext'
13528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529 (eval $ac_try) 2>&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; }; then
13533 ac_hi=$ac_mid; break
13535 echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13538 ac_lo=`expr $ac_mid + 1`
13539 if test $ac_lo -le $ac_mid; then
13543 ac_mid=`expr 2 '*' $ac_mid + 1`
13545 rm -f conftest.$ac_objext conftest.$ac_ext
13548 echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13551 cat >conftest.$ac_ext <<_ACEOF
13552 #line $LINENO "configure"
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 $ac_includes_default
13562 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13569 rm -f conftest.$ac_objext
13570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13571 (eval $ac_compile) 2>&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } &&
13575 { ac_try='test -s conftest.$ac_objext'
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; }; then
13583 cat >conftest.$ac_ext <<_ACEOF
13584 #line $LINENO "configure"
13587 cat confdefs.h >>conftest.$ac_ext
13588 cat >>conftest.$ac_ext <<_ACEOF
13589 /* end confdefs.h. */
13590 $ac_includes_default
13594 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13601 rm -f conftest.$ac_objext
13602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13603 (eval $ac_compile) 2>&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); } &&
13607 { ac_try='test -s conftest.$ac_objext'
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; }; then
13613 ac_lo=$ac_mid; break
13615 echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.$ac_ext >&5
13618 ac_hi=`expr '(' $ac_mid ')' - 1`
13619 if test $ac_mid -le $ac_hi; then
13623 ac_mid=`expr 2 '*' $ac_mid`
13625 rm -f conftest.$ac_objext conftest.$ac_ext
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13633 rm -f conftest.$ac_objext conftest.$ac_ext
13635 rm -f conftest.$ac_objext conftest.$ac_ext
13636 # Binary search between lo and hi bounds.
13637 while test "x$ac_lo" != "x$ac_hi"; do
13638 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13639 cat >conftest.$ac_ext <<_ACEOF
13640 #line $LINENO "configure"
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h. */
13646 $ac_includes_default
13650 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13657 rm -f conftest.$ac_objext
13658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13659 (eval $ac_compile) 2>&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } &&
13663 { ac_try='test -s conftest.$ac_objext'
13664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13665 (eval $ac_try) 2>&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); }; }; then
13671 echo "$as_me: failed program was:" >&5
13672 sed 's/^/| /' conftest.$ac_ext >&5
13674 ac_lo=`expr '(' $ac_mid ')' + 1`
13676 rm -f conftest.$ac_objext conftest.$ac_ext
13679 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13680 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13681 See \`config.log' for more details." >&5
13682 echo "$as_me: error: cannot compute sizeof (long int), 77
13683 See \`config.log' for more details." >&2;}
13684 { (exit 1); exit 1; }; } ;;
13687 if test "$cross_compiling" = yes; then
13688 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13689 See \`config.log' for more details." >&5
13690 echo "$as_me: error: cannot run test program while cross compiling
13691 See \`config.log' for more details." >&2;}
13692 { (exit 1); exit 1; }; }
13694 cat >conftest.$ac_ext <<_ACEOF
13695 #line $LINENO "configure"
13698 cat confdefs.h >>conftest.$ac_ext
13699 cat >>conftest.$ac_ext <<_ACEOF
13700 /* end confdefs.h. */
13701 $ac_includes_default
13702 long longval () { return (long) (sizeof (long int)); }
13703 unsigned long ulongval () { return (long) (sizeof (long int)); }
13705 #include <stdlib.h>
13710 FILE *f = fopen ("conftest.val", "w");
13713 if (((long) (sizeof (long int))) < 0)
13715 long i = longval ();
13716 if (i != ((long) (sizeof (long int))))
13718 fprintf (f, "%ld\n", i);
13722 unsigned long i = ulongval ();
13723 if (i != ((long) (sizeof (long int))))
13725 fprintf (f, "%lu\n", i);
13727 exit (ferror (f) || fclose (f) != 0);
13733 rm -f conftest$ac_exeext
13734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13735 (eval $ac_link) 2>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; }; then
13744 ac_cv_sizeof_long_int=`cat conftest.val`
13746 echo "$as_me: program exited with status $ac_status" >&5
13747 echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13750 ( exit $ac_status )
13751 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13752 See \`config.log' for more details." >&5
13753 echo "$as_me: error: cannot compute sizeof (long int), 77
13754 See \`config.log' for more details." >&2;}
13755 { (exit 1); exit 1; }; }
13757 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13762 ac_cv_sizeof_long_int=0
13765 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13766 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13767 cat >>confdefs.h <<_ACEOF
13768 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13772 echo "$as_me:$LINENO: checking for long long int" >&5
13773 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13774 if test "${ac_cv_type_long_long_int+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13777 cat >conftest.$ac_ext <<_ACEOF
13778 #line $LINENO "configure"
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13784 $ac_includes_default
13788 if ((long long int *) 0)
13790 if (sizeof (long long int))
13796 rm -f conftest.$ac_objext
13797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13798 (eval $ac_compile) 2>&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } &&
13802 { ac_try='test -s conftest.$ac_objext'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 ac_cv_type_long_long_int=yes
13810 echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13813 ac_cv_type_long_long_int=no
13815 rm -f conftest.$ac_objext conftest.$ac_ext
13817 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13818 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13820 echo "$as_me:$LINENO: checking size of long long int" >&5
13821 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13822 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13823 echo $ECHO_N "(cached) $ECHO_C" >&6
13825 if test "$ac_cv_type_long_long_int" = yes; then
13826 # The cast to unsigned long works around a bug in the HP C Compiler
13827 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13828 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13829 # This bug is HP SR number 8606223364.
13830 if test "$cross_compiling" = yes; then
13831 # Depending upon the size, compute the lo and hi bounds.
13832 cat >conftest.$ac_ext <<_ACEOF
13833 #line $LINENO "configure"
13836 cat confdefs.h >>conftest.$ac_ext
13837 cat >>conftest.$ac_ext <<_ACEOF
13838 /* end confdefs.h. */
13839 $ac_includes_default
13843 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13850 rm -f conftest.$ac_objext
13851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13852 (eval $ac_compile) 2>&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); } &&
13856 { ac_try='test -s conftest.$ac_objext'
13857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13864 cat >conftest.$ac_ext <<_ACEOF
13865 #line $LINENO "configure"
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h. */
13871 $ac_includes_default
13875 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13882 rm -f conftest.$ac_objext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13884 (eval $ac_compile) 2>&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } &&
13888 { ac_try='test -s conftest.$ac_objext'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; }; then
13894 ac_hi=$ac_mid; break
13896 echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13899 ac_lo=`expr $ac_mid + 1`
13900 if test $ac_lo -le $ac_mid; then
13904 ac_mid=`expr 2 '*' $ac_mid + 1`
13906 rm -f conftest.$ac_objext conftest.$ac_ext
13909 echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13912 cat >conftest.$ac_ext <<_ACEOF
13913 #line $LINENO "configure"
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h. */
13919 $ac_includes_default
13923 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13930 rm -f conftest.$ac_objext
13931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13932 (eval $ac_compile) 2>&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
13936 { ac_try='test -s conftest.$ac_objext'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; }; then
13944 cat >conftest.$ac_ext <<_ACEOF
13945 #line $LINENO "configure"
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h. */
13951 $ac_includes_default
13955 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13962 rm -f conftest.$ac_objext
13963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13964 (eval $ac_compile) 2>&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } &&
13968 { ac_try='test -s conftest.$ac_objext'
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; }; then
13974 ac_lo=$ac_mid; break
13976 echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13979 ac_hi=`expr '(' $ac_mid ')' - 1`
13980 if test $ac_mid -le $ac_hi; then
13984 ac_mid=`expr 2 '*' $ac_mid`
13986 rm -f conftest.$ac_objext conftest.$ac_ext
13989 echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13994 rm -f conftest.$ac_objext conftest.$ac_ext
13996 rm -f conftest.$ac_objext conftest.$ac_ext
13997 # Binary search between lo and hi bounds.
13998 while test "x$ac_lo" != "x$ac_hi"; do
13999 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14000 cat >conftest.$ac_ext <<_ACEOF
14001 #line $LINENO "configure"
14004 cat confdefs.h >>conftest.$ac_ext
14005 cat >>conftest.$ac_ext <<_ACEOF
14006 /* end confdefs.h. */
14007 $ac_includes_default
14011 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14018 rm -f conftest.$ac_objext
14019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14020 (eval $ac_compile) 2>&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } &&
14024 { ac_try='test -s conftest.$ac_objext'
14025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026 (eval $ac_try) 2>&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; }; then
14032 echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14035 ac_lo=`expr '(' $ac_mid ')' + 1`
14037 rm -f conftest.$ac_objext conftest.$ac_ext
14040 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14041 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14042 See \`config.log' for more details." >&5
14043 echo "$as_me: error: cannot compute sizeof (long long int), 77
14044 See \`config.log' for more details." >&2;}
14045 { (exit 1); exit 1; }; } ;;
14048 if test "$cross_compiling" = yes; then
14049 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14050 See \`config.log' for more details." >&5
14051 echo "$as_me: error: cannot run test program while cross compiling
14052 See \`config.log' for more details." >&2;}
14053 { (exit 1); exit 1; }; }
14055 cat >conftest.$ac_ext <<_ACEOF
14056 #line $LINENO "configure"
14059 cat confdefs.h >>conftest.$ac_ext
14060 cat >>conftest.$ac_ext <<_ACEOF
14061 /* end confdefs.h. */
14062 $ac_includes_default
14063 long longval () { return (long) (sizeof (long long int)); }
14064 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14066 #include <stdlib.h>
14071 FILE *f = fopen ("conftest.val", "w");
14074 if (((long) (sizeof (long long int))) < 0)
14076 long i = longval ();
14077 if (i != ((long) (sizeof (long long int))))
14079 fprintf (f, "%ld\n", i);
14083 unsigned long i = ulongval ();
14084 if (i != ((long) (sizeof (long long int))))
14086 fprintf (f, "%lu\n", i);
14088 exit (ferror (f) || fclose (f) != 0);
14094 rm -f conftest$ac_exeext
14095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14096 (eval $ac_link) 2>&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14105 ac_cv_sizeof_long_long_int=`cat conftest.val`
14107 echo "$as_me: program exited with status $ac_status" >&5
14108 echo "$as_me: failed program was:" >&5
14109 sed 's/^/| /' conftest.$ac_ext >&5
14111 ( exit $ac_status )
14112 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14113 See \`config.log' for more details." >&5
14114 echo "$as_me: error: cannot compute sizeof (long long int), 77
14115 See \`config.log' for more details." >&2;}
14116 { (exit 1); exit 1; }; }
14118 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14123 ac_cv_sizeof_long_long_int=0
14126 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14127 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14128 cat >>confdefs.h <<_ACEOF
14129 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14133 echo "$as_me:$LINENO: checking for int *" >&5
14134 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14135 if test "${ac_cv_type_int_p+set}" = set; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 cat >conftest.$ac_ext <<_ACEOF
14139 #line $LINENO "configure"
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14145 $ac_includes_default
14151 if (sizeof (int *))
14157 rm -f conftest.$ac_objext
14158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14159 (eval $ac_compile) 2>&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } &&
14163 { ac_try='test -s conftest.$ac_objext'
14164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165 (eval $ac_try) 2>&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; }; then
14169 ac_cv_type_int_p=yes
14171 echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.$ac_ext >&5
14174 ac_cv_type_int_p=no
14176 rm -f conftest.$ac_objext conftest.$ac_ext
14178 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14179 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14181 echo "$as_me:$LINENO: checking size of int *" >&5
14182 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14183 if test "${ac_cv_sizeof_int_p+set}" = set; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
14186 if test "$ac_cv_type_int_p" = yes; then
14187 # The cast to unsigned long works around a bug in the HP C Compiler
14188 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14189 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14190 # This bug is HP SR number 8606223364.
14191 if test "$cross_compiling" = yes; then
14192 # Depending upon the size, compute the lo and hi bounds.
14193 cat >conftest.$ac_ext <<_ACEOF
14194 #line $LINENO "configure"
14197 cat confdefs.h >>conftest.$ac_ext
14198 cat >>conftest.$ac_ext <<_ACEOF
14199 /* end confdefs.h. */
14200 $ac_includes_default
14204 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14211 rm -f conftest.$ac_objext
14212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14213 (eval $ac_compile) 2>&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } &&
14217 { ac_try='test -s conftest.$ac_objext'
14218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219 (eval $ac_try) 2>&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; }; then
14225 cat >conftest.$ac_ext <<_ACEOF
14226 #line $LINENO "configure"
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 $ac_includes_default
14236 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14243 rm -f conftest.$ac_objext
14244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14245 (eval $ac_compile) 2>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); } &&
14249 { ac_try='test -s conftest.$ac_objext'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14255 ac_hi=$ac_mid; break
14257 echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ac_lo=`expr $ac_mid + 1`
14261 if test $ac_lo -le $ac_mid; then
14265 ac_mid=`expr 2 '*' $ac_mid + 1`
14267 rm -f conftest.$ac_objext conftest.$ac_ext
14270 echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14273 cat >conftest.$ac_ext <<_ACEOF
14274 #line $LINENO "configure"
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 $ac_includes_default
14284 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14291 rm -f conftest.$ac_objext
14292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14293 (eval $ac_compile) 2>&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } &&
14297 { ac_try='test -s conftest.$ac_objext'
14298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299 (eval $ac_try) 2>&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; }; then
14305 cat >conftest.$ac_ext <<_ACEOF
14306 #line $LINENO "configure"
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14312 $ac_includes_default
14316 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14323 rm -f conftest.$ac_objext
14324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14325 (eval $ac_compile) 2>&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } &&
14329 { ac_try='test -s conftest.$ac_objext'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
14335 ac_lo=$ac_mid; break
14337 echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14340 ac_hi=`expr '(' $ac_mid ')' - 1`
14341 if test $ac_mid -le $ac_hi; then
14345 ac_mid=`expr 2 '*' $ac_mid`
14347 rm -f conftest.$ac_objext conftest.$ac_ext
14350 echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14355 rm -f conftest.$ac_objext conftest.$ac_ext
14357 rm -f conftest.$ac_objext conftest.$ac_ext
14358 # Binary search between lo and hi bounds.
14359 while test "x$ac_lo" != "x$ac_hi"; do
14360 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14361 cat >conftest.$ac_ext <<_ACEOF
14362 #line $LINENO "configure"
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h. */
14368 $ac_includes_default
14372 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14379 rm -f conftest.$ac_objext
14380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14381 (eval $ac_compile) 2>&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
14385 { ac_try='test -s conftest.$ac_objext'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; }; then
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14396 ac_lo=`expr '(' $ac_mid ')' + 1`
14398 rm -f conftest.$ac_objext conftest.$ac_ext
14401 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14402 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14403 See \`config.log' for more details." >&5
14404 echo "$as_me: error: cannot compute sizeof (int *), 77
14405 See \`config.log' for more details." >&2;}
14406 { (exit 1); exit 1; }; } ;;
14409 if test "$cross_compiling" = yes; then
14410 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14411 See \`config.log' for more details." >&5
14412 echo "$as_me: error: cannot run test program while cross compiling
14413 See \`config.log' for more details." >&2;}
14414 { (exit 1); exit 1; }; }
14416 cat >conftest.$ac_ext <<_ACEOF
14417 #line $LINENO "configure"
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h. */
14423 $ac_includes_default
14424 long longval () { return (long) (sizeof (int *)); }
14425 unsigned long ulongval () { return (long) (sizeof (int *)); }
14427 #include <stdlib.h>
14432 FILE *f = fopen ("conftest.val", "w");
14435 if (((long) (sizeof (int *))) < 0)
14437 long i = longval ();
14438 if (i != ((long) (sizeof (int *))))
14440 fprintf (f, "%ld\n", i);
14444 unsigned long i = ulongval ();
14445 if (i != ((long) (sizeof (int *))))
14447 fprintf (f, "%lu\n", i);
14449 exit (ferror (f) || fclose (f) != 0);
14455 rm -f conftest$ac_exeext
14456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14457 (eval $ac_link) 2>&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
14466 ac_cv_sizeof_int_p=`cat conftest.val`
14468 echo "$as_me: program exited with status $ac_status" >&5
14469 echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14472 ( exit $ac_status )
14473 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14474 See \`config.log' for more details." >&5
14475 echo "$as_me: error: cannot compute sizeof (int *), 77
14476 See \`config.log' for more details." >&2;}
14477 { (exit 1); exit 1; }; }
14479 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14484 ac_cv_sizeof_int_p=0
14487 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14488 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14489 cat >>confdefs.h <<_ACEOF
14490 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14495 # Check for sys/types.h types
14496 echo "$as_me:$LINENO: checking for u_int type" >&5
14497 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14498 if test "${ac_cv_have_u_int+set}" = set; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14502 cat >conftest.$ac_ext <<_ACEOF
14503 #line $LINENO "configure"
14506 cat confdefs.h >>conftest.$ac_ext
14507 cat >>conftest.$ac_ext <<_ACEOF
14508 /* end confdefs.h. */
14509 #include <sys/types.h>
14518 rm -f conftest.$ac_objext
14519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14520 (eval $ac_compile) 2>&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
14524 { ac_try='test -s conftest.$ac_objext'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14530 ac_cv_have_u_int="yes"
14532 echo "$as_me: failed program was:" >&5
14533 sed 's/^/| /' conftest.$ac_ext >&5
14535 ac_cv_have_u_int="no"
14538 rm -f conftest.$ac_objext conftest.$ac_ext
14541 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14542 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14543 if test "x$ac_cv_have_u_int" = "xyes" ; then
14544 cat >>confdefs.h <<\_ACEOF
14545 #define HAVE_U_INT 1
14551 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14552 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14553 if test "${ac_cv_have_intmax_t+set}" = set; then
14554 echo $ECHO_N "(cached) $ECHO_C" >&6
14557 cat >conftest.$ac_ext <<_ACEOF
14558 #line $LINENO "configure"
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h. */
14564 #include <sys/types.h>
14573 rm -f conftest.$ac_objext
14574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14575 (eval $ac_compile) 2>&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); } &&
14579 { ac_try='test -s conftest.$ac_objext'
14580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14581 (eval $ac_try) 2>&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); }; }; then
14585 ac_cv_have_intmax_t="yes"
14587 echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14591 cat >conftest.$ac_ext <<_ACEOF
14592 #line $LINENO "configure"
14595 cat confdefs.h >>conftest.$ac_ext
14596 cat >>conftest.$ac_ext <<_ACEOF
14597 /* end confdefs.h. */
14598 #include <stdint.h>
14607 rm -f conftest.$ac_objext
14608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14609 (eval $ac_compile) 2>&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); } &&
14613 { ac_try='test -s conftest.$ac_objext'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14619 ac_cv_have_intmax_t="yes"
14621 echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14624 ac_cv_have_intmax_t="no"
14627 rm -f conftest.$ac_objext conftest.$ac_ext
14631 rm -f conftest.$ac_objext conftest.$ac_ext
14635 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14636 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14637 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14638 cat >>confdefs.h <<\_ACEOF
14639 #define HAVE_INTMAX_T 1
14646 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14647 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14648 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14649 echo $ECHO_N "(cached) $ECHO_C" >&6
14652 cat >conftest.$ac_ext <<_ACEOF
14653 #line $LINENO "configure"
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h. */
14659 #include <sys/types.h>
14663 u_intmax_t a; a = 1;
14668 rm -f conftest.$ac_objext
14669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14670 (eval $ac_compile) 2>&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } &&
14674 { ac_try='test -s conftest.$ac_objext'
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; }; then
14680 ac_cv_have_u_intmax_t="yes"
14682 echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14686 cat >conftest.$ac_ext <<_ACEOF
14687 #line $LINENO "configure"
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h. */
14693 #include <stdint.h>
14697 u_intmax_t a; a = 1;
14702 rm -f conftest.$ac_objext
14703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14704 (eval $ac_compile) 2>&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } &&
14708 { ac_try='test -s conftest.$ac_objext'
14709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; }; then
14714 ac_cv_have_u_intmax_t="yes"
14716 echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.$ac_ext >&5
14719 ac_cv_have_u_intmax_t="no"
14722 rm -f conftest.$ac_objext conftest.$ac_ext
14726 rm -f conftest.$ac_objext conftest.$ac_ext
14729 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14730 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14731 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14732 cat >>confdefs.h <<\_ACEOF
14733 #define HAVE_U_INTMAX_T 1
14740 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14741 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14742 if test "${ac_cv_have_intxx_t+set}" = set; then
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14746 cat >conftest.$ac_ext <<_ACEOF
14747 #line $LINENO "configure"
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h. */
14753 #include <sys/types.h>
14757 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14762 rm -f conftest.$ac_objext
14763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14764 (eval $ac_compile) 2>&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } &&
14768 { ac_try='test -s conftest.$ac_objext'
14769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14770 (eval $ac_try) 2>&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); }; }; then
14774 ac_cv_have_intxx_t="yes"
14776 echo "$as_me: failed program was:" >&5
14777 sed 's/^/| /' conftest.$ac_ext >&5
14779 ac_cv_have_intxx_t="no"
14782 rm -f conftest.$ac_objext conftest.$ac_ext
14785 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14786 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14787 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14788 cat >>confdefs.h <<\_ACEOF
14789 #define HAVE_INTXX_T 1
14795 echo "$as_me:$LINENO: checking for int64_t type" >&5
14796 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14797 if test "${ac_cv_have_int64_t+set}" = set; then
14798 echo $ECHO_N "(cached) $ECHO_C" >&6
14801 cat >conftest.$ac_ext <<_ACEOF
14802 #line $LINENO "configure"
14805 cat confdefs.h >>conftest.$ac_ext
14806 cat >>conftest.$ac_ext <<_ACEOF
14807 /* end confdefs.h. */
14808 #include <sys/types.h>
14817 rm -f conftest.$ac_objext
14818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14819 (eval $ac_compile) 2>&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } &&
14823 { ac_try='test -s conftest.$ac_objext'
14824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825 (eval $ac_try) 2>&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); }; }; then
14829 ac_cv_have_int64_t="yes"
14831 echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14834 ac_cv_have_int64_t="no"
14837 rm -f conftest.$ac_objext conftest.$ac_ext
14840 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14841 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14842 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14843 cat >>confdefs.h <<\_ACEOF
14844 #define HAVE_INT64_T 1
14850 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14851 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14852 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14856 cat >conftest.$ac_ext <<_ACEOF
14857 #line $LINENO "configure"
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h. */
14863 #include <sys/types.h>
14867 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14872 rm -f conftest.$ac_objext
14873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14874 (eval $ac_compile) 2>&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); } &&
14878 { ac_try='test -s conftest.$ac_objext'
14879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880 (eval $ac_try) 2>&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; }; then
14884 ac_cv_have_u_intxx_t="yes"
14886 echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14889 ac_cv_have_u_intxx_t="no"
14892 rm -f conftest.$ac_objext conftest.$ac_ext
14895 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14896 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14897 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14898 cat >>confdefs.h <<\_ACEOF
14899 #define HAVE_U_INTXX_T 1
14905 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14906 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14907 if test "${ac_cv_have_u_int64_t+set}" = set; then
14908 echo $ECHO_N "(cached) $ECHO_C" >&6
14911 cat >conftest.$ac_ext <<_ACEOF
14912 #line $LINENO "configure"
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14918 #include <sys/types.h>
14922 u_int64_t a; a = 1;
14927 rm -f conftest.$ac_objext
14928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14929 (eval $ac_compile) 2>&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } &&
14933 { ac_try='test -s conftest.$ac_objext'
14934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; }; then
14939 ac_cv_have_u_int64_t="yes"
14941 echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.$ac_ext >&5
14944 ac_cv_have_u_int64_t="no"
14947 rm -f conftest.$ac_objext conftest.$ac_ext
14950 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14951 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14952 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14953 cat >>confdefs.h <<\_ACEOF
14954 #define HAVE_U_INT64_T 1
14960 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14961 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14963 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14964 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14965 cat >conftest.$ac_ext <<_ACEOF
14966 #line $LINENO "configure"
14969 cat confdefs.h >>conftest.$ac_ext
14970 cat >>conftest.$ac_ext <<_ACEOF
14971 /* end confdefs.h. */
14972 #include <sys/bitypes.h>
14976 int8_t a; int16_t b; int32_t c;
14977 u_int8_t e; u_int16_t f; u_int32_t g;
14978 a = b = c = e = f = g = 1;
14983 rm -f conftest.$ac_objext
14984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14985 (eval $ac_compile) 2>&5
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); } &&
14989 { ac_try='test -s conftest.$ac_objext'
14990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991 (eval $ac_try) 2>&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }; then
14995 cat >>confdefs.h <<\_ACEOF
14996 #define HAVE_U_INTXX_T 1
14999 cat >>confdefs.h <<\_ACEOF
15000 #define HAVE_INTXX_T 1
15003 cat >>confdefs.h <<\_ACEOF
15004 #define HAVE_SYS_BITYPES_H 1
15007 echo "$as_me:$LINENO: result: yes" >&5
15008 echo "${ECHO_T}yes" >&6
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15013 echo "$as_me:$LINENO: result: no" >&5
15014 echo "${ECHO_T}no" >&6
15017 rm -f conftest.$ac_objext conftest.$ac_ext
15020 if test -z "$have_u_intxx_t" ; then
15021 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15022 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15023 if test "${ac_cv_have_uintxx_t+set}" = set; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15027 cat >conftest.$ac_ext <<_ACEOF
15028 #line $LINENO "configure"
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h. */
15034 #include <sys/types.h>
15038 uint8_t a; uint16_t b;
15039 uint32_t c; a = b = c = 1;
15044 rm -f conftest.$ac_objext
15045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15046 (eval $ac_compile) 2>&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); } &&
15050 { ac_try='test -s conftest.$ac_objext'
15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052 (eval $ac_try) 2>&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; }; then
15056 ac_cv_have_uintxx_t="yes"
15058 echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15061 ac_cv_have_uintxx_t="no"
15064 rm -f conftest.$ac_objext conftest.$ac_ext
15067 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15068 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15069 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15070 cat >>confdefs.h <<\_ACEOF
15071 #define HAVE_UINTXX_T 1
15107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15108 echo "$as_me:$LINENO: checking for $ac_func" >&5
15109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15110 if eval "test \"\${$as_ac_var+set}\" = set"; then
15111 echo $ECHO_N "(cached) $ECHO_C" >&6
15113 cat >conftest.$ac_ext <<_ACEOF
15114 #line $LINENO "configure"
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h. */
15120 /* System header to define __stub macros and hopefully few prototypes,
15121 which can conflict with char $ac_func (); below.
15122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15123 <limits.h> exists even on freestanding compilers. */
15125 # include <limits.h>
15127 # include <assert.h>
15129 /* Override any gcc2 internal prototype to avoid an error. */
15134 /* We use char because int might match the return type of a gcc2
15135 builtin and then its argument prototype would still apply. */
15137 /* The GNU C library defines this for functions which it implements
15138 to always fail with ENOSYS. Some functions are actually named
15139 something starting with __ and the normal name is an alias. */
15140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15143 char (*f) () = $ac_func;
15152 return f != $ac_func;
15157 rm -f conftest.$ac_objext conftest$ac_exeext
15158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15159 (eval $ac_link) 2>&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); } &&
15163 { ac_try='test -s conftest$ac_exeext'
15164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15165 (eval $ac_try) 2>&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; }; then
15169 eval "$as_ac_var=yes"
15171 echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.$ac_ext >&5
15174 eval "$as_ac_var=no"
15176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15180 if test `eval echo '${'$as_ac_var'}'` = yes; then
15181 cat >>confdefs.h <<_ACEOF
15182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15186 echo 'configure: cannot find needed function.'; exit 1
15193 for ac_func in fchdir
15195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15196 echo "$as_me:$LINENO: checking for $ac_func" >&5
15197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15198 if eval "test \"\${$as_ac_var+set}\" = set"; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 cat >conftest.$ac_ext <<_ACEOF
15202 #line $LINENO "configure"
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15208 /* System header to define __stub macros and hopefully few prototypes,
15209 which can conflict with char $ac_func (); below.
15210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15211 <limits.h> exists even on freestanding compilers. */
15213 # include <limits.h>
15215 # include <assert.h>
15217 /* Override any gcc2 internal prototype to avoid an error. */
15222 /* We use char because int might match the return type of a gcc2
15223 builtin and then its argument prototype would still apply. */
15225 /* The GNU C library defines this for functions which it implements
15226 to always fail with ENOSYS. Some functions are actually named
15227 something starting with __ and the normal name is an alias. */
15228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15231 char (*f) () = $ac_func;
15240 return f != $ac_func;
15245 rm -f conftest.$ac_objext conftest$ac_exeext
15246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15247 (eval $ac_link) 2>&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } &&
15251 { ac_try='test -s conftest$ac_exeext'
15252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; }; then
15257 eval "$as_ac_var=yes"
15259 echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15262 eval "$as_ac_var=no"
15264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15268 if test `eval echo '${'$as_ac_var'}'` = yes; then
15269 cat >>confdefs.h <<_ACEOF
15270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15272 cat >>confdefs.h <<\_ACEOF
15273 #define HAVE_FCHDIR 1
15280 for ac_func in strtoll
15282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15283 echo "$as_me:$LINENO: checking for $ac_func" >&5
15284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15285 if eval "test \"\${$as_ac_var+set}\" = set"; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15288 cat >conftest.$ac_ext <<_ACEOF
15289 #line $LINENO "configure"
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15295 /* System header to define __stub macros and hopefully few prototypes,
15296 which can conflict with char $ac_func (); below.
15297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15298 <limits.h> exists even on freestanding compilers. */
15300 # include <limits.h>
15302 # include <assert.h>
15304 /* Override any gcc2 internal prototype to avoid an error. */
15309 /* We use char because int might match the return type of a gcc2
15310 builtin and then its argument prototype would still apply. */
15312 /* The GNU C library defines this for functions which it implements
15313 to always fail with ENOSYS. Some functions are actually named
15314 something starting with __ and the normal name is an alias. */
15315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15318 char (*f) () = $ac_func;
15327 return f != $ac_func;
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15334 (eval $ac_link) 2>&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
15338 { ac_try='test -s conftest$ac_exeext'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; }; then
15344 eval "$as_ac_var=yes"
15346 echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15349 eval "$as_ac_var=no"
15351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15354 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15355 if test `eval echo '${'$as_ac_var'}'` = yes; then
15356 cat >>confdefs.h <<_ACEOF
15357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15359 cat >>confdefs.h <<\_ACEOF
15360 #define HAVE_STRTOLL 1
15368 for ac_func in chflags
15370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15371 echo "$as_me:$LINENO: checking for $ac_func" >&5
15372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15373 if eval "test \"\${$as_ac_var+set}\" = set"; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15376 cat >conftest.$ac_ext <<_ACEOF
15377 #line $LINENO "configure"
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15383 /* System header to define __stub macros and hopefully few prototypes,
15384 which can conflict with char $ac_func (); below.
15385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15386 <limits.h> exists even on freestanding compilers. */
15388 # include <limits.h>
15390 # include <assert.h>
15392 /* Override any gcc2 internal prototype to avoid an error. */
15397 /* We use char because int might match the return type of a gcc2
15398 builtin and then its argument prototype would still apply. */
15400 /* The GNU C library defines this for functions which it implements
15401 to always fail with ENOSYS. Some functions are actually named
15402 something starting with __ and the normal name is an alias. */
15403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15406 char (*f) () = $ac_func;
15415 return f != $ac_func;
15420 rm -f conftest.$ac_objext conftest$ac_exeext
15421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15422 (eval $ac_link) 2>&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); } &&
15426 { ac_try='test -s conftest$ac_exeext'
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; }; then
15432 eval "$as_ac_var=yes"
15434 echo "$as_me: failed program was:" >&5
15435 sed 's/^/| /' conftest.$ac_ext >&5
15437 eval "$as_ac_var=no"
15439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15443 if test `eval echo '${'$as_ac_var'}'` = yes; then
15444 cat >>confdefs.h <<_ACEOF
15445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15456 for ac_func in snprintf vsnprintf gethostid getdomainname
15458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15459 echo "$as_me:$LINENO: checking for $ac_func" >&5
15460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15461 if eval "test \"\${$as_ac_var+set}\" = set"; then
15462 echo $ECHO_N "(cached) $ECHO_C" >&6
15464 cat >conftest.$ac_ext <<_ACEOF
15465 #line $LINENO "configure"
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15471 /* System header to define __stub macros and hopefully few prototypes,
15472 which can conflict with char $ac_func (); below.
15473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15474 <limits.h> exists even on freestanding compilers. */
15476 # include <limits.h>
15478 # include <assert.h>
15480 /* Override any gcc2 internal prototype to avoid an error. */
15485 /* We use char because int might match the return type of a gcc2
15486 builtin and then its argument prototype would still apply. */
15488 /* The GNU C library defines this for functions which it implements
15489 to always fail with ENOSYS. Some functions are actually named
15490 something starting with __ and the normal name is an alias. */
15491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15494 char (*f) () = $ac_func;
15503 return f != $ac_func;
15508 rm -f conftest.$ac_objext conftest$ac_exeext
15509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15510 (eval $ac_link) 2>&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } &&
15514 { ac_try='test -s conftest$ac_exeext'
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; }; then
15520 eval "$as_ac_var=yes"
15522 echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15525 eval "$as_ac_var=no"
15527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15531 if test `eval echo '${'$as_ac_var'}'` = yes; then
15532 cat >>confdefs.h <<_ACEOF
15533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15544 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15547 echo "$as_me:$LINENO: checking for $ac_func" >&5
15548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15549 if eval "test \"\${$as_ac_var+set}\" = set"; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 cat >conftest.$ac_ext <<_ACEOF
15553 #line $LINENO "configure"
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15559 /* System header to define __stub macros and hopefully few prototypes,
15560 which can conflict with char $ac_func (); below.
15561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15562 <limits.h> exists even on freestanding compilers. */
15564 # include <limits.h>
15566 # include <assert.h>
15568 /* Override any gcc2 internal prototype to avoid an error. */
15573 /* We use char because int might match the return type of a gcc2
15574 builtin and then its argument prototype would still apply. */
15576 /* The GNU C library defines this for functions which it implements
15577 to always fail with ENOSYS. Some functions are actually named
15578 something starting with __ and the normal name is an alias. */
15579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15582 char (*f) () = $ac_func;
15591 return f != $ac_func;
15596 rm -f conftest.$ac_objext conftest$ac_exeext
15597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15598 (eval $ac_link) 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } &&
15602 { ac_try='test -s conftest$ac_exeext'
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 eval "$as_ac_var=yes"
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15613 eval "$as_ac_var=no"
15615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15619 if test `eval echo '${'$as_ac_var'}'` = yes; then
15620 cat >>confdefs.h <<_ACEOF
15621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15628 # If resolver functions are not in libc check for -lnsl or -lresolv.
15629 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15630 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15631 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15632 echo $ECHO_N "(cached) $ECHO_C" >&6
15634 cat >conftest.$ac_ext <<_ACEOF
15635 #line $LINENO "configure"
15638 cat confdefs.h >>conftest.$ac_ext
15639 cat >>conftest.$ac_ext <<_ACEOF
15640 /* end confdefs.h. */
15641 /* System header to define __stub macros and hopefully few prototypes,
15642 which can conflict with char gethostbyname_r (); below.
15643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15644 <limits.h> exists even on freestanding compilers. */
15646 # include <limits.h>
15648 # include <assert.h>
15650 /* Override any gcc2 internal prototype to avoid an error. */
15655 /* We use char because int might match the return type of a gcc2
15656 builtin and then its argument prototype would still apply. */
15657 char gethostbyname_r ();
15658 /* The GNU C library defines this for functions which it implements
15659 to always fail with ENOSYS. Some functions are actually named
15660 something starting with __ and the normal name is an alias. */
15661 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15664 char (*f) () = gethostbyname_r;
15673 return f != gethostbyname_r;
15678 rm -f conftest.$ac_objext conftest$ac_exeext
15679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15680 (eval $ac_link) 2>&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } &&
15684 { ac_try='test -s conftest$ac_exeext'
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15690 ac_cv_func_gethostbyname_r=yes
15692 echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15695 ac_cv_func_gethostbyname_r=no
15697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15699 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15700 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15701 if test $ac_cv_func_gethostbyname_r = yes; then
15702 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15703 echo "${ECHO_T}using libc's resolver" >&6
15706 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15707 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15708 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15711 ac_check_lib_save_LIBS=$LIBS
15713 cat >conftest.$ac_ext <<_ACEOF
15714 #line $LINENO "configure"
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15721 /* Override any gcc2 internal prototype to avoid an error. */
15725 /* We use char because int might match the return type of a gcc2
15726 builtin and then its argument prototype would still apply. */
15727 char gethostbyname_r ();
15731 gethostbyname_r ();
15736 rm -f conftest.$ac_objext conftest$ac_exeext
15737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15738 (eval $ac_link) 2>&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } &&
15742 { ac_try='test -s conftest$ac_exeext'
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 ac_cv_lib_nsl_gethostbyname_r=yes
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15753 ac_cv_lib_nsl_gethostbyname_r=no
15755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15756 LIBS=$ac_check_lib_save_LIBS
15758 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15759 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15760 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15761 cat >>confdefs.h <<_ACEOF
15762 #define HAVE_LIBNSL 1
15770 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15771 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15772 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15775 ac_check_lib_save_LIBS=$LIBS
15776 LIBS="-lresolv $LIBS"
15777 cat >conftest.$ac_ext <<_ACEOF
15778 #line $LINENO "configure"
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h. */
15785 /* Override any gcc2 internal prototype to avoid an error. */
15789 /* We use char because int might match the return type of a gcc2
15790 builtin and then its argument prototype would still apply. */
15791 char gethostbyname_r ();
15795 gethostbyname_r ();
15800 rm -f conftest.$ac_objext conftest$ac_exeext
15801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15802 (eval $ac_link) 2>&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } &&
15806 { ac_try='test -s conftest$ac_exeext'
15807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808 (eval $ac_try) 2>&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); }; }; then
15812 ac_cv_lib_resolv_gethostbyname_r=yes
15814 echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.$ac_ext >&5
15817 ac_cv_lib_resolv_gethostbyname_r=no
15819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15820 LIBS=$ac_check_lib_save_LIBS
15822 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15823 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15824 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15825 cat >>confdefs.h <<_ACEOF
15826 #define HAVE_LIBRESOLV 1
15829 LIBS="-lresolv $LIBS"
15837 # Find where sockets are (especially for Solaris)
15838 echo "$as_me:$LINENO: checking for socket" >&5
15839 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15840 if test "${ac_cv_func_socket+set}" = set; then
15841 echo $ECHO_N "(cached) $ECHO_C" >&6
15843 cat >conftest.$ac_ext <<_ACEOF
15844 #line $LINENO "configure"
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h. */
15850 /* System header to define __stub macros and hopefully few prototypes,
15851 which can conflict with char socket (); below.
15852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15853 <limits.h> exists even on freestanding compilers. */
15855 # include <limits.h>
15857 # include <assert.h>
15859 /* Override any gcc2 internal prototype to avoid an error. */
15864 /* We use char because int might match the return type of a gcc2
15865 builtin and then its argument prototype would still apply. */
15867 /* The GNU C library defines this for functions which it implements
15868 to always fail with ENOSYS. Some functions are actually named
15869 something starting with __ and the normal name is an alias. */
15870 #if defined (__stub_socket) || defined (__stub___socket)
15873 char (*f) () = socket;
15882 return f != socket;
15887 rm -f conftest.$ac_objext conftest$ac_exeext
15888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15889 (eval $ac_link) 2>&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } &&
15893 { ac_try='test -s conftest$ac_exeext'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 ac_cv_func_socket=yes
15901 echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15904 ac_cv_func_socket=no
15906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15908 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15909 echo "${ECHO_T}$ac_cv_func_socket" >&6
15910 if test $ac_cv_func_socket = yes; then
15911 echo "$as_me:$LINENO: result: using libc's socket" >&5
15912 echo "${ECHO_T}using libc's socket" >&6
15915 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15916 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15917 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15920 ac_check_lib_save_LIBS=$LIBS
15921 LIBS="-lxnet $LIBS"
15922 cat >conftest.$ac_ext <<_ACEOF
15923 #line $LINENO "configure"
15926 cat confdefs.h >>conftest.$ac_ext
15927 cat >>conftest.$ac_ext <<_ACEOF
15928 /* end confdefs.h. */
15930 /* Override any gcc2 internal prototype to avoid an error. */
15934 /* We use char because int might match the return type of a gcc2
15935 builtin and then its argument prototype would still apply. */
15945 rm -f conftest.$ac_objext conftest$ac_exeext
15946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15947 (eval $ac_link) 2>&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } &&
15951 { ac_try='test -s conftest$ac_exeext'
15952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953 (eval $ac_try) 2>&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }; }; then
15957 ac_cv_lib_xnet_socket=yes
15959 echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15962 ac_cv_lib_xnet_socket=no
15964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15965 LIBS=$ac_check_lib_save_LIBS
15967 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15968 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15969 if test $ac_cv_lib_xnet_socket = yes; then
15970 cat >>confdefs.h <<_ACEOF
15971 #define HAVE_LIBXNET 1
15974 LIBS="-lxnet $LIBS"
15979 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15980 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15981 if test "${ac_cv_lib_socket_socket+set}" = set; then
15982 echo $ECHO_N "(cached) $ECHO_C" >&6
15984 ac_check_lib_save_LIBS=$LIBS
15985 LIBS="-lsocket $LIBS"
15986 cat >conftest.$ac_ext <<_ACEOF
15987 #line $LINENO "configure"
15990 cat confdefs.h >>conftest.$ac_ext
15991 cat >>conftest.$ac_ext <<_ACEOF
15992 /* end confdefs.h. */
15994 /* Override any gcc2 internal prototype to avoid an error. */
15998 /* We use char because int might match the return type of a gcc2
15999 builtin and then its argument prototype would still apply. */
16009 rm -f conftest.$ac_objext conftest$ac_exeext
16010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16011 (eval $ac_link) 2>&5
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); } &&
16015 { ac_try='test -s conftest$ac_exeext'
16016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16017 (eval $ac_try) 2>&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); }; }; then
16021 ac_cv_lib_socket_socket=yes
16023 echo "$as_me: failed program was:" >&5
16024 sed 's/^/| /' conftest.$ac_ext >&5
16026 ac_cv_lib_socket_socket=no
16028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16029 LIBS=$ac_check_lib_save_LIBS
16031 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16032 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16033 if test $ac_cv_lib_socket_socket = yes; then
16034 cat >>confdefs.h <<_ACEOF
16035 #define HAVE_LIBSOCKET 1
16038 LIBS="-lsocket $LIBS"
16043 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16044 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16045 if test "${ac_cv_lib_inet_socket+set}" = set; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16048 ac_check_lib_save_LIBS=$LIBS
16049 LIBS="-linet $LIBS"
16050 cat >conftest.$ac_ext <<_ACEOF
16051 #line $LINENO "configure"
16054 cat confdefs.h >>conftest.$ac_ext
16055 cat >>conftest.$ac_ext <<_ACEOF
16056 /* end confdefs.h. */
16058 /* Override any gcc2 internal prototype to avoid an error. */
16062 /* We use char because int might match the return type of a gcc2
16063 builtin and then its argument prototype would still apply. */
16073 rm -f conftest.$ac_objext conftest$ac_exeext
16074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16075 (eval $ac_link) 2>&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } &&
16079 { ac_try='test -s conftest$ac_exeext'
16080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16081 (eval $ac_try) 2>&5
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); }; }; then
16085 ac_cv_lib_inet_socket=yes
16087 echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16090 ac_cv_lib_inet_socket=no
16092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16093 LIBS=$ac_check_lib_save_LIBS
16095 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16096 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16097 if test $ac_cv_lib_inet_socket = yes; then
16098 cat >>confdefs.h <<_ACEOF
16099 #define HAVE_LIBINET 1
16102 LIBS="-linet $LIBS"
16110 for ac_func in inet_pton
16112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16113 echo "$as_me:$LINENO: checking for $ac_func" >&5
16114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16115 if eval "test \"\${$as_ac_var+set}\" = set"; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
16118 cat >conftest.$ac_ext <<_ACEOF
16119 #line $LINENO "configure"
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16125 /* System header to define __stub macros and hopefully few prototypes,
16126 which can conflict with char $ac_func (); below.
16127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16128 <limits.h> exists even on freestanding compilers. */
16130 # include <limits.h>
16132 # include <assert.h>
16134 /* Override any gcc2 internal prototype to avoid an error. */
16139 /* We use char because int might match the return type of a gcc2
16140 builtin and then its argument prototype would still apply. */
16142 /* The GNU C library defines this for functions which it implements
16143 to always fail with ENOSYS. Some functions are actually named
16144 something starting with __ and the normal name is an alias. */
16145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16148 char (*f) () = $ac_func;
16157 return f != $ac_func;
16162 rm -f conftest.$ac_objext conftest$ac_exeext
16163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16164 (eval $ac_link) 2>&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } &&
16168 { ac_try='test -s conftest$ac_exeext'
16169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16170 (eval $ac_try) 2>&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); }; }; then
16174 eval "$as_ac_var=yes"
16176 echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16179 eval "$as_ac_var=no"
16181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16185 if test `eval echo '${'$as_ac_var'}'` = yes; then
16186 cat >>confdefs.h <<_ACEOF
16187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16189 cat >>confdefs.h <<\_ACEOF
16190 #define HAVE_INET_PTON 1
16198 for ac_func in strftime
16200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16201 echo "$as_me:$LINENO: checking for $ac_func" >&5
16202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16203 if eval "test \"\${$as_ac_var+set}\" = set"; then
16204 echo $ECHO_N "(cached) $ECHO_C" >&6
16206 cat >conftest.$ac_ext <<_ACEOF
16207 #line $LINENO "configure"
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h. */
16213 /* System header to define __stub macros and hopefully few prototypes,
16214 which can conflict with char $ac_func (); below.
16215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16216 <limits.h> exists even on freestanding compilers. */
16218 # include <limits.h>
16220 # include <assert.h>
16222 /* Override any gcc2 internal prototype to avoid an error. */
16227 /* We use char because int might match the return type of a gcc2
16228 builtin and then its argument prototype would still apply. */
16230 /* The GNU C library defines this for functions which it implements
16231 to always fail with ENOSYS. Some functions are actually named
16232 something starting with __ and the normal name is an alias. */
16233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16236 char (*f) () = $ac_func;
16245 return f != $ac_func;
16250 rm -f conftest.$ac_objext conftest$ac_exeext
16251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16252 (eval $ac_link) 2>&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } &&
16256 { ac_try='test -s conftest$ac_exeext'
16257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258 (eval $ac_try) 2>&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; }; then
16262 eval "$as_ac_var=yes"
16264 echo "$as_me: failed program was:" >&5
16265 sed 's/^/| /' conftest.$ac_ext >&5
16267 eval "$as_ac_var=no"
16269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16273 if test `eval echo '${'$as_ac_var'}'` = yes; then
16274 cat >>confdefs.h <<_ACEOF
16275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16279 # strftime is in -lintl on SCO UNIX.
16280 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16281 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16282 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16283 echo $ECHO_N "(cached) $ECHO_C" >&6
16285 ac_check_lib_save_LIBS=$LIBS
16286 LIBS="-lintl $LIBS"
16287 cat >conftest.$ac_ext <<_ACEOF
16288 #line $LINENO "configure"
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
16295 /* Override any gcc2 internal prototype to avoid an error. */
16299 /* We use char because int might match the return type of a gcc2
16300 builtin and then its argument prototype would still apply. */
16310 rm -f conftest.$ac_objext conftest$ac_exeext
16311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16312 (eval $ac_link) 2>&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); } &&
16316 { ac_try='test -s conftest$ac_exeext'
16317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318 (eval $ac_try) 2>&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; }; then
16322 ac_cv_lib_intl_strftime=yes
16324 echo "$as_me: failed program was:" >&5
16325 sed 's/^/| /' conftest.$ac_ext >&5
16327 ac_cv_lib_intl_strftime=no
16329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16330 LIBS=$ac_check_lib_save_LIBS
16332 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16333 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16334 if test $ac_cv_lib_intl_strftime = yes; then
16335 cat >>confdefs.h <<\_ACEOF
16336 #define HAVE_STRFTIME 1
16339 LIBS="-lintl $LIBS"
16346 for ac_func in vprintf
16348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16349 echo "$as_me:$LINENO: checking for $ac_func" >&5
16350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16351 if eval "test \"\${$as_ac_var+set}\" = set"; then
16352 echo $ECHO_N "(cached) $ECHO_C" >&6
16354 cat >conftest.$ac_ext <<_ACEOF
16355 #line $LINENO "configure"
16358 cat confdefs.h >>conftest.$ac_ext
16359 cat >>conftest.$ac_ext <<_ACEOF
16360 /* end confdefs.h. */
16361 /* System header to define __stub macros and hopefully few prototypes,
16362 which can conflict with char $ac_func (); below.
16363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16364 <limits.h> exists even on freestanding compilers. */
16366 # include <limits.h>
16368 # include <assert.h>
16370 /* Override any gcc2 internal prototype to avoid an error. */
16375 /* We use char because int might match the return type of a gcc2
16376 builtin and then its argument prototype would still apply. */
16378 /* The GNU C library defines this for functions which it implements
16379 to always fail with ENOSYS. Some functions are actually named
16380 something starting with __ and the normal name is an alias. */
16381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16384 char (*f) () = $ac_func;
16393 return f != $ac_func;
16398 rm -f conftest.$ac_objext conftest$ac_exeext
16399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16400 (eval $ac_link) 2>&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } &&
16404 { ac_try='test -s conftest$ac_exeext'
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 eval "$as_ac_var=yes"
16412 echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16415 eval "$as_ac_var=no"
16417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16421 if test `eval echo '${'$as_ac_var'}'` = yes; then
16422 cat >>confdefs.h <<_ACEOF
16423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16426 echo "$as_me:$LINENO: checking for _doprnt" >&5
16427 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16428 if test "${ac_cv_func__doprnt+set}" = set; then
16429 echo $ECHO_N "(cached) $ECHO_C" >&6
16431 cat >conftest.$ac_ext <<_ACEOF
16432 #line $LINENO "configure"
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h. */
16438 /* System header to define __stub macros and hopefully few prototypes,
16439 which can conflict with char _doprnt (); below.
16440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16441 <limits.h> exists even on freestanding compilers. */
16443 # include <limits.h>
16445 # include <assert.h>
16447 /* Override any gcc2 internal prototype to avoid an error. */
16452 /* We use char because int might match the return type of a gcc2
16453 builtin and then its argument prototype would still apply. */
16455 /* The GNU C library defines this for functions which it implements
16456 to always fail with ENOSYS. Some functions are actually named
16457 something starting with __ and the normal name is an alias. */
16458 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16461 char (*f) () = _doprnt;
16470 return f != _doprnt;
16475 rm -f conftest.$ac_objext conftest$ac_exeext
16476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16477 (eval $ac_link) 2>&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); } &&
16481 { ac_try='test -s conftest$ac_exeext'
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 ac_cv_func__doprnt=yes
16489 echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16492 ac_cv_func__doprnt=no
16494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16496 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16497 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16498 if test $ac_cv_func__doprnt = yes; then
16500 cat >>confdefs.h <<\_ACEOF
16501 #define HAVE_DOPRNT 1
16510 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16511 # for constant arguments. Useless!
16512 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16513 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16514 if test "${ac_cv_working_alloca_h+set}" = set; then
16515 echo $ECHO_N "(cached) $ECHO_C" >&6
16517 cat >conftest.$ac_ext <<_ACEOF
16518 #line $LINENO "configure"
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16524 #include <alloca.h>
16528 char *p = (char *) alloca (2 * sizeof (int));
16533 rm -f conftest.$ac_objext conftest$ac_exeext
16534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16535 (eval $ac_link) 2>&5
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); } &&
16539 { ac_try='test -s conftest$ac_exeext'
16540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541 (eval $ac_try) 2>&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; }; then
16545 ac_cv_working_alloca_h=yes
16547 echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16550 ac_cv_working_alloca_h=no
16552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16554 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16555 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16556 if test $ac_cv_working_alloca_h = yes; then
16558 cat >>confdefs.h <<\_ACEOF
16559 #define HAVE_ALLOCA_H 1
16564 echo "$as_me:$LINENO: checking for alloca" >&5
16565 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16566 if test "${ac_cv_func_alloca_works+set}" = set; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16569 cat >conftest.$ac_ext <<_ACEOF
16570 #line $LINENO "configure"
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16577 # define alloca __builtin_alloca
16580 # include <malloc.h>
16581 # define alloca _alloca
16584 # include <alloca.h>
16589 # ifndef alloca /* predefined by HP cc +Olibcalls */
16600 char *p = (char *) alloca (1);
16605 rm -f conftest.$ac_objext conftest$ac_exeext
16606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16607 (eval $ac_link) 2>&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); } &&
16611 { ac_try='test -s conftest$ac_exeext'
16612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613 (eval $ac_try) 2>&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16617 ac_cv_func_alloca_works=yes
16619 echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16622 ac_cv_func_alloca_works=no
16624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16626 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16627 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16629 if test $ac_cv_func_alloca_works = yes; then
16631 cat >>confdefs.h <<\_ACEOF
16632 #define HAVE_ALLOCA 1
16636 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16637 # that cause trouble. Some versions do not even contain alloca or
16638 # contain a buggy version. If you still want to use their alloca,
16639 # use ar to extract alloca.o from them instead of compiling alloca.c.
16641 ALLOCA=alloca.$ac_objext
16643 cat >>confdefs.h <<\_ACEOF
16648 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16649 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16650 if test "${ac_cv_os_cray+set}" = set; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
16653 cat >conftest.$ac_ext <<_ACEOF
16654 #line $LINENO "configure"
16657 cat confdefs.h >>conftest.$ac_ext
16658 cat >>conftest.$ac_ext <<_ACEOF
16659 /* end confdefs.h. */
16660 #if defined(CRAY) && ! defined(CRAY2)
16667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16668 $EGREP "webecray" >/dev/null 2>&1; then
16676 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16677 echo "${ECHO_T}$ac_cv_os_cray" >&6
16678 if test $ac_cv_os_cray = yes; then
16679 for ac_func in _getb67 GETB67 getb67; do
16680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16681 echo "$as_me:$LINENO: checking for $ac_func" >&5
16682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16683 if eval "test \"\${$as_ac_var+set}\" = set"; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16686 cat >conftest.$ac_ext <<_ACEOF
16687 #line $LINENO "configure"
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16693 /* System header to define __stub macros and hopefully few prototypes,
16694 which can conflict with char $ac_func (); below.
16695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16696 <limits.h> exists even on freestanding compilers. */
16698 # include <limits.h>
16700 # include <assert.h>
16702 /* Override any gcc2 internal prototype to avoid an error. */
16707 /* We use char because int might match the return type of a gcc2
16708 builtin and then its argument prototype would still apply. */
16710 /* The GNU C library defines this for functions which it implements
16711 to always fail with ENOSYS. Some functions are actually named
16712 something starting with __ and the normal name is an alias. */
16713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16716 char (*f) () = $ac_func;
16725 return f != $ac_func;
16730 rm -f conftest.$ac_objext conftest$ac_exeext
16731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16732 (eval $ac_link) 2>&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } &&
16736 { ac_try='test -s conftest$ac_exeext'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; }; then
16742 eval "$as_ac_var=yes"
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16747 eval "$as_ac_var=no"
16749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16753 if test `eval echo '${'$as_ac_var'}'` = yes; then
16755 cat >>confdefs.h <<_ACEOF
16756 #define CRAY_STACKSEG_END $ac_func
16765 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16766 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16767 if test "${ac_cv_c_stack_direction+set}" = set; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 if test "$cross_compiling" = yes; then
16771 ac_cv_c_stack_direction=0
16773 cat >conftest.$ac_ext <<_ACEOF
16774 #line $LINENO "configure"
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16781 find_stack_direction ()
16783 static char *addr = 0;
16788 return find_stack_direction ();
16791 return (&dummy > addr) ? 1 : -1;
16797 exit (find_stack_direction () < 0);
16800 rm -f conftest$ac_exeext
16801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16802 (eval $ac_link) 2>&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16807 (eval $ac_try) 2>&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; }; then
16811 ac_cv_c_stack_direction=1
16813 echo "$as_me: program exited with status $ac_status" >&5
16814 echo "$as_me: failed program was:" >&5
16815 sed 's/^/| /' conftest.$ac_ext >&5
16817 ( exit $ac_status )
16818 ac_cv_c_stack_direction=-1
16820 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16823 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16824 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16826 cat >>confdefs.h <<_ACEOF
16827 #define STACK_DIRECTION $ac_cv_c_stack_direction
16833 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16834 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16835 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16836 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16837 echo $ECHO_N "(cached) $ECHO_C" >&6
16839 ac_check_lib_save_LIBS=$LIBS
16841 cat >conftest.$ac_ext <<_ACEOF
16842 #line $LINENO "configure"
16845 cat confdefs.h >>conftest.$ac_ext
16846 cat >>conftest.$ac_ext <<_ACEOF
16847 /* end confdefs.h. */
16849 /* Override any gcc2 internal prototype to avoid an error. */
16853 /* We use char because int might match the return type of a gcc2
16854 builtin and then its argument prototype would still apply. */
16864 rm -f conftest.$ac_objext conftest$ac_exeext
16865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16866 (eval $ac_link) 2>&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } &&
16870 { ac_try='test -s conftest$ac_exeext'
16871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872 (eval $ac_try) 2>&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; }; then
16876 ac_cv_lib_sun_getmntent=yes
16878 echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.$ac_ext >&5
16881 ac_cv_lib_sun_getmntent=no
16883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16884 LIBS=$ac_check_lib_save_LIBS
16886 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16887 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16888 if test $ac_cv_lib_sun_getmntent = yes; then
16891 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16892 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16893 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16894 echo $ECHO_N "(cached) $ECHO_C" >&6
16896 ac_check_lib_save_LIBS=$LIBS
16898 cat >conftest.$ac_ext <<_ACEOF
16899 #line $LINENO "configure"
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h. */
16906 /* Override any gcc2 internal prototype to avoid an error. */
16910 /* We use char because int might match the return type of a gcc2
16911 builtin and then its argument prototype would still apply. */
16921 rm -f conftest.$ac_objext conftest$ac_exeext
16922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16923 (eval $ac_link) 2>&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); } &&
16927 { ac_try='test -s conftest$ac_exeext'
16928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929 (eval $ac_try) 2>&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); }; }; then
16933 ac_cv_lib_seq_getmntent=yes
16935 echo "$as_me: failed program was:" >&5
16936 sed 's/^/| /' conftest.$ac_ext >&5
16938 ac_cv_lib_seq_getmntent=no
16940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16941 LIBS=$ac_check_lib_save_LIBS
16943 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16944 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16945 if test $ac_cv_lib_seq_getmntent = yes; then
16948 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16949 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16950 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16953 ac_check_lib_save_LIBS=$LIBS
16955 cat >conftest.$ac_ext <<_ACEOF
16956 #line $LINENO "configure"
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h. */
16963 /* Override any gcc2 internal prototype to avoid an error. */
16967 /* We use char because int might match the return type of a gcc2
16968 builtin and then its argument prototype would still apply. */
16978 rm -f conftest.$ac_objext conftest$ac_exeext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16980 (eval $ac_link) 2>&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } &&
16984 { ac_try='test -s conftest$ac_exeext'
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; }; then
16990 ac_cv_lib_gen_getmntent=yes
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16995 ac_cv_lib_gen_getmntent=no
16997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16998 LIBS=$ac_check_lib_save_LIBS
17000 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17001 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17002 if test $ac_cv_lib_gen_getmntent = yes; then
17011 for ac_func in getmntent
17013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17014 echo "$as_me:$LINENO: checking for $ac_func" >&5
17015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17016 if eval "test \"\${$as_ac_var+set}\" = set"; then
17017 echo $ECHO_N "(cached) $ECHO_C" >&6
17019 cat >conftest.$ac_ext <<_ACEOF
17020 #line $LINENO "configure"
17023 cat confdefs.h >>conftest.$ac_ext
17024 cat >>conftest.$ac_ext <<_ACEOF
17025 /* end confdefs.h. */
17026 /* System header to define __stub macros and hopefully few prototypes,
17027 which can conflict with char $ac_func (); below.
17028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17029 <limits.h> exists even on freestanding compilers. */
17031 # include <limits.h>
17033 # include <assert.h>
17035 /* Override any gcc2 internal prototype to avoid an error. */
17040 /* We use char because int might match the return type of a gcc2
17041 builtin and then its argument prototype would still apply. */
17043 /* The GNU C library defines this for functions which it implements
17044 to always fail with ENOSYS. Some functions are actually named
17045 something starting with __ and the normal name is an alias. */
17046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17049 char (*f) () = $ac_func;
17058 return f != $ac_func;
17063 rm -f conftest.$ac_objext conftest$ac_exeext
17064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17065 (eval $ac_link) 2>&5
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); } &&
17069 { ac_try='test -s conftest$ac_exeext'
17070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071 (eval $ac_try) 2>&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; }; then
17075 eval "$as_ac_var=yes"
17077 echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.$ac_ext >&5
17080 eval "$as_ac_var=no"
17082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17086 if test `eval echo '${'$as_ac_var'}'` = yes; then
17087 cat >>confdefs.h <<_ACEOF
17088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17095 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17096 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17097 if test "${ac_cv_func_closedir_void+set}" = set; then
17098 echo $ECHO_N "(cached) $ECHO_C" >&6
17100 if test "$cross_compiling" = yes; then
17101 ac_cv_func_closedir_void=yes
17103 cat >conftest.$ac_ext <<_ACEOF
17104 #line $LINENO "configure"
17107 cat confdefs.h >>conftest.$ac_ext
17108 cat >>conftest.$ac_ext <<_ACEOF
17109 /* end confdefs.h. */
17110 $ac_includes_default
17111 #include <$ac_header_dirent>
17112 #ifndef __cplusplus
17119 exit (closedir (opendir (".")) != 0);
17124 rm -f conftest$ac_exeext
17125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17126 (eval $ac_link) 2>&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; }; then
17135 ac_cv_func_closedir_void=no
17137 echo "$as_me: program exited with status $ac_status" >&5
17138 echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17141 ( exit $ac_status )
17142 ac_cv_func_closedir_void=yes
17144 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17147 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17148 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17149 if test $ac_cv_func_closedir_void = yes; then
17151 cat >>confdefs.h <<\_ACEOF
17152 #define CLOSEDIR_VOID 1
17157 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17158 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17159 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17160 echo $ECHO_N "(cached) $ECHO_C" >&6
17162 if test "$cross_compiling" = yes; then
17163 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17164 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17165 { (exit 1); exit 1; }; }
17167 cat >conftest.$ac_ext <<_ACEOF
17168 #line $LINENO "configure"
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h. */
17175 # include <unistd.h>
17181 /* If this system has a BSD-style setpgrp which takes arguments,
17182 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17183 exit successfully. */
17184 exit (setpgrp (1,1) == -1 ? 0 : 1);
17189 rm -f conftest$ac_exeext
17190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17191 (eval $ac_link) 2>&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 ac_cv_func_setpgrp_void=no
17202 echo "$as_me: program exited with status $ac_status" >&5
17203 echo "$as_me: failed program was:" >&5
17204 sed 's/^/| /' conftest.$ac_ext >&5
17206 ( exit $ac_status )
17207 ac_cv_func_setpgrp_void=yes
17209 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17212 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17213 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17214 if test $ac_cv_func_setpgrp_void = yes; then
17216 cat >>confdefs.h <<\_ACEOF
17217 #define SETPGRP_VOID 1
17221 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17222 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17223 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 # Some versions of Solaris, SCO, and the GNU C Library
17227 # have a broken or incompatible fnmatch.
17228 # So we run a test program. If we are cross-compiling, take no chance.
17229 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17230 if test "$cross_compiling" = yes; then
17231 ac_cv_func_fnmatch_works=cross
17233 cat >conftest.$ac_ext <<_ACEOF
17234 #line $LINENO "configure"
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h. */
17240 #include <fnmatch.h>
17241 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17242 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17248 (!(y ("a*", "abc", 0)
17249 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17250 && y ("a\\\\bc", "abc", 0)
17251 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17252 && y ("*x", ".x", 0)
17253 && n ("*x", ".x", FNM_PERIOD)
17259 rm -f conftest$ac_exeext
17260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17261 (eval $ac_link) 2>&5
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266 (eval $ac_try) 2>&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17270 ac_cv_func_fnmatch_works=yes
17272 echo "$as_me: program exited with status $ac_status" >&5
17273 echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17276 ( exit $ac_status )
17277 ac_cv_func_fnmatch_works=no
17279 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17282 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17283 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17284 if test $ac_cv_func_fnmatch_works = yes; then
17286 cat >>confdefs.h <<\_ACEOF
17287 #define HAVE_FNMATCH 1
17296 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17297 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17298 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17301 ac_check_lib_save_LIBS=$LIBS
17302 LIBS="-lxpg4 $LIBS"
17303 cat >conftest.$ac_ext <<_ACEOF
17304 #line $LINENO "configure"
17307 cat confdefs.h >>conftest.$ac_ext
17308 cat >>conftest.$ac_ext <<_ACEOF
17309 /* end confdefs.h. */
17311 /* Override any gcc2 internal prototype to avoid an error. */
17315 /* We use char because int might match the return type of a gcc2
17316 builtin and then its argument prototype would still apply. */
17326 rm -f conftest.$ac_objext conftest$ac_exeext
17327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17328 (eval $ac_link) 2>&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } &&
17332 { ac_try='test -s conftest$ac_exeext'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; }; then
17338 ac_cv_lib_xpg4_setlocale=yes
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 ac_cv_lib_xpg4_setlocale=no
17345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17346 LIBS=$ac_check_lib_save_LIBS
17348 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17349 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17350 if test $ac_cv_lib_xpg4_setlocale = yes; then
17351 LIBS="$LIBS -lxpg4"
17357 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17358 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17359 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 ac_check_lib_save_LIBS=$LIBS
17364 cat >conftest.$ac_ext <<_ACEOF
17365 #line $LINENO "configure"
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h. */
17372 /* Override any gcc2 internal prototype to avoid an error. */
17376 /* We use char because int might match the return type of a gcc2
17377 builtin and then its argument prototype would still apply. */
17387 rm -f conftest.$ac_objext conftest$ac_exeext
17388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17389 (eval $ac_link) 2>&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } &&
17393 { ac_try='test -s conftest$ac_exeext'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 ac_cv_lib_sun_getpwnam=yes
17401 echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17404 ac_cv_lib_sun_getpwnam=no
17406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17407 LIBS=$ac_check_lib_save_LIBS
17409 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17410 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17411 if test $ac_cv_lib_sun_getpwnam = yes; then
17412 cat >>confdefs.h <<_ACEOF
17413 #define HAVE_LIBSUN 1
17422 for ac_header in zlib.h
17424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17426 echo "$as_me:$LINENO: checking for $ac_header" >&5
17427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17434 # Is the header compilable?
17435 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17437 cat >conftest.$ac_ext <<_ACEOF
17438 #line $LINENO "configure"
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17444 $ac_includes_default
17445 #include <$ac_header>
17447 rm -f conftest.$ac_objext
17448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17449 (eval $ac_compile) 2>&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } &&
17453 { ac_try='test -s conftest.$ac_objext'
17454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455 (eval $ac_try) 2>&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; }; then
17459 ac_header_compiler=yes
17461 echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17464 ac_header_compiler=no
17466 rm -f conftest.$ac_objext conftest.$ac_ext
17467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17468 echo "${ECHO_T}$ac_header_compiler" >&6
17470 # Is the header present?
17471 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17473 cat >conftest.$ac_ext <<_ACEOF
17474 #line $LINENO "configure"
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h. */
17480 #include <$ac_header>
17482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17485 grep -v '^ *+' conftest.er1 >conftest.err
17487 cat conftest.err >&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } >/dev/null; then
17490 if test -s conftest.err; then
17491 ac_cpp_err=$ac_c_preproc_warn_flag
17498 if test -z "$ac_cpp_err"; then
17499 ac_header_preproc=yes
17501 echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17504 ac_header_preproc=no
17506 rm -f conftest.err conftest.$ac_ext
17507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17508 echo "${ECHO_T}$ac_header_preproc" >&6
17510 # So? What about this header?
17511 case $ac_header_compiler:$ac_header_preproc in
17513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17519 ## ------------------------------------ ##
17520 ## Report this to bug-autoconf@gnu.org. ##
17521 ## ------------------------------------ ##
17524 sed "s/^/$as_me: WARNING: /" >&2
17527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17535 ## ------------------------------------ ##
17536 ## Report this to bug-autoconf@gnu.org. ##
17537 ## ------------------------------------ ##
17540 sed "s/^/$as_me: WARNING: /" >&2
17543 echo "$as_me:$LINENO: checking for $ac_header" >&5
17544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17546 echo $ECHO_N "(cached) $ECHO_C" >&6
17548 eval "$as_ac_Header=$ac_header_preproc"
17550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17555 cat >>confdefs.h <<_ACEOF
17556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17563 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17564 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17565 if test "${ac_cv_lib_z_deflate+set}" = set; then
17566 echo $ECHO_N "(cached) $ECHO_C" >&6
17568 ac_check_lib_save_LIBS=$LIBS
17570 cat >conftest.$ac_ext <<_ACEOF
17571 #line $LINENO "configure"
17574 cat confdefs.h >>conftest.$ac_ext
17575 cat >>conftest.$ac_ext <<_ACEOF
17576 /* end confdefs.h. */
17578 /* Override any gcc2 internal prototype to avoid an error. */
17582 /* We use char because int might match the return type of a gcc2
17583 builtin and then its argument prototype would still apply. */
17593 rm -f conftest.$ac_objext conftest$ac_exeext
17594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17595 (eval $ac_link) 2>&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); } &&
17599 { ac_try='test -s conftest$ac_exeext'
17600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601 (eval $ac_try) 2>&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; }; then
17605 ac_cv_lib_z_deflate=yes
17607 echo "$as_me: failed program was:" >&5
17608 sed 's/^/| /' conftest.$ac_ext >&5
17610 ac_cv_lib_z_deflate=no
17612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17613 LIBS=$ac_check_lib_save_LIBS
17615 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17616 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17617 if test $ac_cv_lib_z_deflate = yes; then
17622 if test x$FDLIBS = x-lz; then
17623 cat >>confdefs.h <<\_ACEOF
17624 #define HAVE_LIBZ 1
17630 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17631 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17632 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17633 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17634 echo $ECHO_N "(cached) $ECHO_C" >&6
17636 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17637 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17639 # Is the header compilable?
17640 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
17641 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
17642 cat >conftest.$ac_ext <<_ACEOF
17643 #line $LINENO "configure"
17646 cat confdefs.h >>conftest.$ac_ext
17647 cat >>conftest.$ac_ext <<_ACEOF
17648 /* end confdefs.h. */
17649 $ac_includes_default
17650 #include <sys/acl.h>
17652 rm -f conftest.$ac_objext
17653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17654 (eval $ac_compile) 2>&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
17658 { ac_try='test -s conftest.$ac_objext'
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; }; then
17664 ac_header_compiler=yes
17666 echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17669 ac_header_compiler=no
17671 rm -f conftest.$ac_objext conftest.$ac_ext
17672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17673 echo "${ECHO_T}$ac_header_compiler" >&6
17675 # Is the header present?
17676 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
17677 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
17678 cat >conftest.$ac_ext <<_ACEOF
17679 #line $LINENO "configure"
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h. */
17685 #include <sys/acl.h>
17687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17690 grep -v '^ *+' conftest.er1 >conftest.err
17692 cat conftest.err >&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); } >/dev/null; then
17695 if test -s conftest.err; then
17696 ac_cpp_err=$ac_c_preproc_warn_flag
17703 if test -z "$ac_cpp_err"; then
17704 ac_header_preproc=yes
17706 echo "$as_me: failed program was:" >&5
17707 sed 's/^/| /' conftest.$ac_ext >&5
17709 ac_header_preproc=no
17711 rm -f conftest.err conftest.$ac_ext
17712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17713 echo "${ECHO_T}$ac_header_preproc" >&6
17715 # So? What about this header?
17716 case $ac_header_compiler:$ac_header_preproc in
17718 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17719 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17720 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17721 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17724 ## ------------------------------------ ##
17725 ## Report this to bug-autoconf@gnu.org. ##
17726 ## ------------------------------------ ##
17729 sed "s/^/$as_me: WARNING: /" >&2
17732 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
17733 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
17734 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
17735 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
17736 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17737 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17740 ## ------------------------------------ ##
17741 ## Report this to bug-autoconf@gnu.org. ##
17742 ## ------------------------------------ ##
17745 sed "s/^/$as_me: WARNING: /" >&2
17748 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17749 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17750 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17751 echo $ECHO_N "(cached) $ECHO_C" >&6
17753 ac_cv_header_sys_acl_h=$ac_header_preproc
17755 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17756 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17761 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
17762 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
17763 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17766 ac_check_lib_save_LIBS=$LIBS
17768 cat >conftest.$ac_ext <<_ACEOF
17769 #line $LINENO "configure"
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h. */
17776 /* Override any gcc2 internal prototype to avoid an error. */
17780 /* We use char because int might match the return type of a gcc2
17781 builtin and then its argument prototype would still apply. */
17782 char acl_get_file ();
17791 rm -f conftest.$ac_objext conftest$ac_exeext
17792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17793 (eval $ac_link) 2>&5
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); } &&
17797 { ac_try='test -s conftest$ac_exeext'
17798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17799 (eval $ac_try) 2>&5
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); }; }; then
17803 ac_cv_lib_acl_acl_get_file=yes
17805 echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.$ac_ext >&5
17808 ac_cv_lib_acl_acl_get_file=no
17810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17811 LIBS=$ac_check_lib_save_LIBS
17813 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
17814 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
17815 if test $ac_cv_lib_acl_acl_get_file = yes; then
17816 FDLIBS="-lacl $FDLIBS"
17820 if test $ac_cv_lib_acl_acl_get_file = yes; then
17821 cat >>confdefs.h <<\_ACEOF
17829 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17830 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17831 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17832 echo $ECHO_N "(cached) $ECHO_C" >&6
17834 ac_check_lib_save_LIBS=$LIBS
17835 LIBS="-lpthread $LIBS"
17836 cat >conftest.$ac_ext <<_ACEOF
17837 #line $LINENO "configure"
17840 cat confdefs.h >>conftest.$ac_ext
17841 cat >>conftest.$ac_ext <<_ACEOF
17842 /* end confdefs.h. */
17844 /* Override any gcc2 internal prototype to avoid an error. */
17848 /* We use char because int might match the return type of a gcc2
17849 builtin and then its argument prototype would still apply. */
17850 char pthread_create ();
17859 rm -f conftest.$ac_objext conftest$ac_exeext
17860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17861 (eval $ac_link) 2>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } &&
17865 { ac_try='test -s conftest$ac_exeext'
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_cv_lib_pthread_pthread_create=yes
17873 echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17876 ac_cv_lib_pthread_pthread_create=no
17878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17879 LIBS=$ac_check_lib_save_LIBS
17881 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17882 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17883 if test $ac_cv_lib_pthread_pthread_create = yes; then
17884 PTHREAD_LIB="-lpthread"
17886 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17887 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17888 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17889 echo $ECHO_N "(cached) $ECHO_C" >&6
17891 ac_check_lib_save_LIBS=$LIBS
17892 LIBS="-lpthreads $LIBS"
17893 cat >conftest.$ac_ext <<_ACEOF
17894 #line $LINENO "configure"
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17901 /* Override any gcc2 internal prototype to avoid an error. */
17905 /* We use char because int might match the return type of a gcc2
17906 builtin and then its argument prototype would still apply. */
17907 char pthread_create ();
17916 rm -f conftest.$ac_objext conftest$ac_exeext
17917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17918 (eval $ac_link) 2>&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } &&
17922 { ac_try='test -s conftest$ac_exeext'
17923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924 (eval $ac_try) 2>&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; }; then
17928 ac_cv_lib_pthreads_pthread_create=yes
17930 echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17933 ac_cv_lib_pthreads_pthread_create=no
17935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17936 LIBS=$ac_check_lib_save_LIBS
17938 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17939 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17940 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17941 PTHREAD_LIB="-lpthreads"
17943 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17944 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17945 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17946 echo $ECHO_N "(cached) $ECHO_C" >&6
17948 ac_check_lib_save_LIBS=$LIBS
17950 cat >conftest.$ac_ext <<_ACEOF
17951 #line $LINENO "configure"
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h. */
17958 /* Override any gcc2 internal prototype to avoid an error. */
17962 /* We use char because int might match the return type of a gcc2
17963 builtin and then its argument prototype would still apply. */
17964 char pthread_create ();
17973 rm -f conftest.$ac_objext conftest$ac_exeext
17974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17975 (eval $ac_link) 2>&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); } &&
17979 { ac_try='test -s conftest$ac_exeext'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 ac_cv_lib_c_r_pthread_create=yes
17987 echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17990 ac_cv_lib_c_r_pthread_create=no
17992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17993 LIBS=$ac_check_lib_save_LIBS
17995 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17996 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17997 if test $ac_cv_lib_c_r_pthread_create = yes; then
17998 PTHREAD_LIB="-lc_r"
18000 echo "$as_me:$LINENO: checking for pthread_create" >&5
18001 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18002 if test "${ac_cv_func_pthread_create+set}" = set; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
18005 cat >conftest.$ac_ext <<_ACEOF
18006 #line $LINENO "configure"
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18012 /* System header to define __stub macros and hopefully few prototypes,
18013 which can conflict with char pthread_create (); below.
18014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18015 <limits.h> exists even on freestanding compilers. */
18017 # include <limits.h>
18019 # include <assert.h>
18021 /* Override any gcc2 internal prototype to avoid an error. */
18026 /* We use char because int might match the return type of a gcc2
18027 builtin and then its argument prototype would still apply. */
18028 char pthread_create ();
18029 /* The GNU C library defines this for functions which it implements
18030 to always fail with ENOSYS. Some functions are actually named
18031 something starting with __ and the normal name is an alias. */
18032 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18035 char (*f) () = pthread_create;
18044 return f != pthread_create;
18049 rm -f conftest.$ac_objext conftest$ac_exeext
18050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18051 (eval $ac_link) 2>&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); } &&
18055 { ac_try='test -s conftest$ac_exeext'
18056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057 (eval $ac_try) 2>&5
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); }; }; then
18061 ac_cv_func_pthread_create=yes
18063 echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.$ac_ext >&5
18066 ac_cv_func_pthread_create=no
18068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18070 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18071 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18084 cat >>confdefs.h <<\_ACEOF
18090 CFLAGS=${CFLAGS--O}
18091 LDFLAGS=${LDFLAGS--O}
18092 DB_LIBS="${SQL_LFLAGS}"
18094 CPPFLAGS="$CPPFLAGS"
18119 # Finally we set appropriate distribution specific
18120 # variables and defaults
18122 # PFILES are platform specific files
18123 PFILES="platforms/Makefile"
18127 hostname=`uname -n | cut -d '.' -f 1`
18128 case "$DISTNAME" in
18131 PSCMD="ps -e -o pid,comm"
18132 PFILES="${PFILES} \
18133 platforms/aix/Makefile"
18134 TAPEDRIVE="/dev/rmt0.1"
18138 PTHREAD_LIB="-lpthread -lexc"
18139 if test "${CC}" = "gcc" ; then
18146 TAPEDRIVE="/dev/nrmt0"
18149 DISTVER=`uname -a |awk '{print $3}'`
18150 TAPEDRIVE="/dev/nrmt0"
18151 PTHREAD_LIB="-pthread"
18152 CFLAGS="${CFLAGS} -pthread"
18153 PSCMD="ps -x -o pid,command"
18156 PFILES="${PFILES} \
18157 platforms/bsdi/Makefile \
18158 platforms/bsdi/bacula-fd \
18159 platforms/bsdi/bacula-sd \
18160 platforms/bsdi/bacula-dir"
18161 largefile_support="yes"
18164 DISTVER=`uname -a |awk '{print $3}'`
18165 TAPEDRIVE="/dev/nrst0"
18167 WCFLAGS="-mwindows"
18168 WLDFLAGS="-mwindows"
18172 TAPEDRIVE="/dev/nst0"
18173 PSCMD="ps -e -o pid,command"
18175 PFILES="${PFILES} \
18176 platforms/darwin/Makefile"
18179 DISTVER=`cat /etc/debian_version`
18180 TAPEDRIVE="/dev/nrst0"
18181 PSCMD="ps -e -o pid,command"
18184 DISTVER=`uname -a |awk '{print $3}'`
18185 VER=`echo $DISTVER | cut -c 1`
18186 if test x$VER = x4 ; then
18187 PTHREAD_LIB="-pthread"
18188 CFLAGS="${CFLAGS} -pthread"
18192 TAPEDRIVE="/dev/nrsa0"
18193 PSCMD="ps -x -o pid,command"
18194 PFILES="${PFILES} \
18195 platforms/freebsd/Makefile \
18196 platforms/freebsd/bacula-fd \
18197 platforms/freebsd/bacula-sd \
18198 platforms/freebsd/bacula-dir"
18199 largefile_support="yes"
18202 PSCMD="UNIX95=1 ps -e -o pid,comm"
18203 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18205 TAPEDRIVE="/dev/rmt/0hnb"
18209 TAPEDRIVE="/dev/rmt/0cbn"
18210 PSCMD="ps -e -o pid,comm"
18211 PFILES="${PFILES} \
18212 platforms/irix/Makefile \
18213 platforms/irix/bacula-fd \
18214 platforms/irix/bacula-sd \
18215 platforms/irix/bacula-dir"
18218 DISTVER=`uname -a |awk '{print $3}'`
18221 TAPEDRIVE="/dev/nrst0"
18222 PSCMD="ps -a -o pid,command"
18223 PTHREAD_LIB="-pthread"
18224 CFLAGS="${CFLAGS} -pthread"
18227 DISTVER=`uname -a |awk '{print $3}'`
18230 TAPEDRIVE="/dev/nrst0"
18231 PSCMD="ps -a -o pid,command"
18232 PTHREAD_LIB="-pthread"
18233 CFLAGS="${CFLAGS} -pthread"
18234 PFILES="${PFILES} \
18235 platforms/openbsd/Makefile \
18236 platforms/openbsd/bacula-fd \
18237 platforms/openbsd/bacula-sd \
18238 platforms/openbsd/bacula-dir"
18241 if test -f /etc/whitebox-release ; then
18242 f=/etc/whitebox-release
18244 f=/etc/redhat-release
18246 if test `cat $f | grep release |\
18247 cut -f 3 -d ' '`x = "Enterprise"x ; then
18248 DISTVER="Enterprise "`cat $f | grep release |\
18251 DISTVER=`cat /etc/redhat-release | grep release |\
18254 TAPEDRIVE="/dev/nst0"
18255 PSCMD="ps -e -o pid,command"
18256 PFILES="${PFILES} \
18257 platforms/redhat/Makefile \
18258 platforms/redhat/bacula-fd \
18259 platforms/redhat/bacula-sd \
18260 platforms/redhat/bacula-dir \
18261 platforms/redhat/bacula.spec \
18263 hostname=`hostname -s`
18266 DISTVER=`cat /etc/mandrake-release | grep release |\
18268 TAPEDRIVE="/dev/nst0"
18269 PSCMD="ps -e -o pid,command"
18270 PFILES="${PFILES} \
18271 platforms/mandrake/Makefile \
18272 platforms/mandrake/bacula-fd \
18273 platforms/mandrake/bacula-sd \
18274 platforms/mandrake/bacula-dir \
18275 platforms/mandrake/bacula.spec \
18279 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18280 TAPEDRIVE="/dev/nst0"
18281 PSCMD="ps -e -o pid,command"
18282 PFILES="${PFILES} \
18283 platforms/gentoo/Makefile \
18284 platforms/gentoo/bacula-fd \
18285 platforms/gentoo/bacula-sd \
18286 platforms/gentoo/bacula-dir"
18289 DISTVER=`cat /etc/slackware-version`
18290 TAPEDRIVE="/dev/nst0"
18291 PSCMD="ps -e -o pid,command"
18292 PFILES="${PFILES} \
18293 platforms/slackware/Makefile \
18294 platforms/slackware/rc.bacula-fd \
18295 platforms/slackware/rc.bacula-sd \
18296 platforms/slackware/rc.bacula-dir\
18297 platforms/slackware/functions.bacula"
18301 TAPEDRIVE="/dev/rmt/0cbn"
18302 PSCMD="ps -e -o pid,comm"
18303 PFILES="${PFILES} \
18304 platforms/solaris/Makefile \
18305 platforms/solaris/bacula-fd \
18306 platforms/solaris/bacula-sd \
18307 platforms/solaris/bacula-dir"
18308 if test x$DISTVER = x5.6 ; then
18309 cat >>confdefs.h <<\_ACEOF
18310 #define HAVE_OLD_SOCKOPT 1
18316 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18318 TAPEDRIVE="/dev/nst0"
18319 PSCMD="ps -e -o pid,command"
18320 PFILES="${PFILES} \
18321 platforms/suse/Makefile \
18322 platforms/suse/bacula-fd \
18323 platforms/suse/bacula-sd \
18324 platforms/suse/bacula-dir \
18325 platforms/suse/bacula \
18326 platforms/suse/bacula.spec"
18331 TAPEDRIVE="/dev/nst0"
18332 PSCMD="ps -e -o pid,command"
18333 PFILES="${PFILES} \
18334 platforms/suse/Makefile \
18335 platforms/suse/bacula-fd \
18336 platforms/suse/bacula-sd \
18337 platforms/suse/bacula-dir"
18341 TAPEDRIVE="/dev/nst0"
18344 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18350 LIBS="$PTHREAD_LIB $LIBS"
18352 cat >>confdefs.h <<_ACEOF
18356 cat >>confdefs.h <<_ACEOF
18367 MCOMMON=./autoconf/Make.common
18370 if test "x${subsysdir}" = "x${sbindir}" ; then
18373 echo "You have set both --sbindir and --with-subsys-dir"
18374 echo " equal to: ${subsysdir} "
18375 echo "This is not permitted. Please reconfigure."
18377 echo "Aborting configuration ..."
18383 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
18384 ac_config_commands="$ac_config_commands default"
18385 cat >confcache <<\_ACEOF
18386 # This file is a shell script that caches the results of configure
18387 # tests run on this system so they can be shared between configure
18388 # scripts and configure runs, see configure's option --config-cache.
18389 # It is not useful on other systems. If it contains results you don't
18390 # want to keep, you may remove or edit it.
18392 # config.status only pays attention to the cache file if you give it
18393 # the --recheck option to rerun configure.
18395 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18396 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18397 # following values.
18401 # The following way of writing the cache mishandles newlines in values,
18402 # but we know of no workaround that is simple, portable, and efficient.
18403 # So, don't put newlines in cache variables' values.
18404 # Ultrix sh set writes to stderr and can't be redirected directly,
18405 # and sets the high bit in the cache file unless we assign to the vars.
18408 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18410 # `set' does not quote correctly, so add quotes (double-quote
18411 # substitution turns \\\\ into \\, and sed turns \\ into \).
18414 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18417 # `set' quotes correctly as required by POSIX, so do not add quotes.
18419 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18428 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18430 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18431 if test -w $cache_file; then
18432 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18433 cat confcache >$cache_file
18435 echo "not updating unwritable cache $cache_file"
18440 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18441 # Let make expand exec_prefix.
18442 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18444 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18445 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18446 # trailing colons and then remove the whole line if VPATH becomes empty
18447 # (actually we leave an empty line to preserve line numbers).
18448 if test "x$srcdir" = x.; then
18449 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18450 s/:*\$(srcdir):*/:/;
18451 s/:*\${srcdir}:*/:/;
18453 s/^\([^=]*=[ ]*\):*/\1/;
18459 DEFS=-DHAVE_CONFIG_H
18463 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18464 # 1. Remove the extension, and $U if already installed.
18465 ac_i=`echo "$ac_i" |
18466 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18468 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18469 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18471 LIBOBJS=$ac_libobjs
18473 LTLIBOBJS=$ac_ltlibobjs
18477 : ${CONFIG_STATUS=./config.status}
18478 ac_clean_files_save=$ac_clean_files
18479 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18480 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18481 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18482 cat >$CONFIG_STATUS <<_ACEOF
18484 # Generated by $as_me.
18485 # Run this file to recreate the current configuration.
18486 # Compiler output produced by configure, useful for debugging
18487 # configure, is in config.log if it exists.
18490 ac_cs_recheck=false
18492 SHELL=\${CONFIG_SHELL-$SHELL}
18495 cat >>$CONFIG_STATUS <<\_ACEOF
18496 ## --------------------- ##
18497 ## M4sh Initialization. ##
18498 ## --------------------- ##
18500 # Be Bourne compatible
18501 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18504 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18505 # is contrary to our usage. Disable this feature.
18506 alias -g '${1+"$@"}'='"$@"'
18507 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18511 # Support unset when possible.
18512 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18519 # Work around bugs in pre-3.0 UWIN ksh.
18520 $as_unset ENV MAIL MAILPATH
18527 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18528 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18529 LC_TELEPHONE LC_TIME
18531 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18532 eval $as_var=C; export $as_var
18538 # Required to use basename.
18539 if expr a : '\(a\)' >/dev/null 2>&1; then
18545 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18546 as_basename=basename
18552 # Name of the executable.
18553 as_me=`$as_basename "$0" ||
18554 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18555 X"$0" : 'X\(//\)$' \| \
18556 X"$0" : 'X\(/\)$' \| \
18557 . : '\(.\)' 2>/dev/null ||
18559 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18560 /^X\/\(\/\/\)$/{ s//\1/; q; }
18561 /^X\/\(\/\).*/{ s//\1/; q; }
18565 # PATH needs CR, and LINENO needs CR and PATH.
18566 # Avoid depending upon Character Ranges.
18567 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18568 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18569 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18570 as_cr_digits='0123456789'
18571 as_cr_alnum=$as_cr_Letters$as_cr_digits
18573 # The user is always right.
18574 if test "${PATH_SEPARATOR+set}" != set; then
18575 echo "#! /bin/sh" >conf$$.sh
18576 echo "exit 0" >>conf$$.sh
18578 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18587 as_lineno_1=$LINENO
18588 as_lineno_2=$LINENO
18589 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18590 test "x$as_lineno_1" != "x$as_lineno_2" &&
18591 test "x$as_lineno_3" = "x$as_lineno_2" || {
18592 # Find who we are. Look in the path if we contain no path at all
18595 *[\\/]* ) as_myself=$0 ;;
18596 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18597 for as_dir in $PATH
18600 test -z "$as_dir" && as_dir=.
18601 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18606 # We did not find ourselves, most probably we were run as `sh COMMAND'
18607 # in which case we are not to be found in the path.
18608 if test "x$as_myself" = x; then
18611 if test ! -f "$as_myself"; then
18612 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18613 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18614 { (exit 1); exit 1; }; }
18616 case $CONFIG_SHELL in
18618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18619 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18622 test -z "$as_dir" && as_dir=.
18623 for as_base in sh bash ksh sh5; do
18626 if ("$as_dir/$as_base" -c '
18627 as_lineno_1=$LINENO
18628 as_lineno_2=$LINENO
18629 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18630 test "x$as_lineno_1" != "x$as_lineno_2" &&
18631 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18632 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18633 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18634 CONFIG_SHELL=$as_dir/$as_base
18635 export CONFIG_SHELL
18636 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18644 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18645 # uniformly replaced by the line number. The first 'sed' inserts a
18646 # line-number line before each line; the second 'sed' does the real
18647 # work. The second script uses 'N' to pair each line-number line
18648 # with the numbered line, and appends trailing '-' during
18649 # substitution so that $LINENO is not a special case at line end.
18650 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18651 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18652 sed '=' <$as_myself |
18657 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18660 s,^['$as_cr_digits']*\n,,
18661 ' >$as_me.lineno &&
18662 chmod +x $as_me.lineno ||
18663 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18664 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18665 { (exit 1); exit 1; }; }
18667 # Don't try to exec as it changes $[0], causing all sort of problems
18668 # (the dirname of $[0] is not the place where we might find the
18669 # original and so on. Autoconf is especially sensible to this).
18671 # Exit status is that of the last command.
18676 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18677 *c*,-n*) ECHO_N= ECHO_C='
18679 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18680 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18683 if expr a : '\(a\)' >/dev/null 2>&1; then
18689 rm -f conf$$ conf$$.exe conf$$.file
18691 if ln -s conf$$.file conf$$ 2>/dev/null; then
18692 # We could just check for DJGPP; but this test a) works b) is more generic
18693 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18694 if test -f conf$$.exe; then
18695 # Don't use ln at all; we don't have any links
18700 elif ln conf$$.file conf$$ 2>/dev/null; then
18705 rm -f conf$$ conf$$.exe conf$$.file
18707 if mkdir -p . 2>/dev/null; then
18713 as_executable_p="test -f"
18715 # Sed expression to map a string onto a valid CPP name.
18716 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18718 # Sed expression to map a string onto a valid variable name.
18719 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18723 # We need space, tab and new line, in precisely that order.
18733 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18734 # report actual input values of CONFIG_FILES etc. instead of their
18735 # values after options handling. Logging --version etc. is OK.
18739 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18740 ## Running $as_me. ##
18745 This file was extended by $as_me, which was
18746 generated by GNU Autoconf 2.57. Invocation command line was
18748 CONFIG_FILES = $CONFIG_FILES
18749 CONFIG_HEADERS = $CONFIG_HEADERS
18750 CONFIG_LINKS = $CONFIG_LINKS
18751 CONFIG_COMMANDS = $CONFIG_COMMANDS
18755 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18759 # Files that config.status was made for.
18760 if test -n "$ac_config_files"; then
18761 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18764 if test -n "$ac_config_headers"; then
18765 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18768 if test -n "$ac_config_links"; then
18769 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18772 if test -n "$ac_config_commands"; then
18773 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18776 cat >>$CONFIG_STATUS <<\_ACEOF
18779 \`$as_me' instantiates files from templates according to the
18780 current configuration.
18782 Usage: $0 [OPTIONS] [FILE]...
18784 -h, --help print this help, then exit
18785 -V, --version print version number, then exit
18786 -q, --quiet do not print progress messages
18787 -d, --debug don't remove temporary files
18788 --recheck update $as_me by reconfiguring in the same conditions
18789 --file=FILE[:TEMPLATE]
18790 instantiate the configuration file FILE
18791 --header=FILE[:TEMPLATE]
18792 instantiate the configuration header FILE
18794 Configuration files:
18797 Configuration headers:
18800 Configuration commands:
18803 Report bugs to <bug-autoconf@gnu.org>."
18806 cat >>$CONFIG_STATUS <<_ACEOF
18809 configured by $0, generated by GNU Autoconf 2.57,
18810 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18812 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18813 Free Software Foundation, Inc.
18814 This config.status script is free software; the Free Software Foundation
18815 gives unlimited permission to copy, distribute and modify it."
18820 cat >>$CONFIG_STATUS <<\_ACEOF
18821 # If no file are specified by the user, then we need to provide default
18822 # value. By we need to know if files were specified by the user.
18828 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18829 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18837 *) # This is not an option, so the user has probably given explicit
18840 ac_need_defaults=false;;
18844 # Handling of the options.
18846 cat >>$CONFIG_STATUS <<\_ACEOF
18847 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18849 --version | --vers* | -V )
18850 echo "$ac_cs_version"; exit 0 ;;
18852 # Conflict between --help and --header
18853 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18854 Try \`$0 --help' for more information." >&5
18855 echo "$as_me: error: ambiguous option: $1
18856 Try \`$0 --help' for more information." >&2;}
18857 { (exit 1); exit 1; }; };;
18858 --help | --hel | -h )
18859 echo "$ac_cs_usage"; exit 0 ;;
18860 --debug | --d* | -d )
18862 --file | --fil | --fi | --f )
18864 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18865 ac_need_defaults=false;;
18866 --header | --heade | --head | --hea )
18868 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18869 ac_need_defaults=false;;
18870 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18871 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18874 # This is an error.
18875 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18876 Try \`$0 --help' for more information." >&5
18877 echo "$as_me: error: unrecognized option: $1
18878 Try \`$0 --help' for more information." >&2;}
18879 { (exit 1); exit 1; }; } ;;
18881 *) ac_config_targets="$ac_config_targets $1" ;;
18887 ac_configure_extra_args=
18889 if $ac_cs_silent; then
18891 ac_configure_extra_args="$ac_configure_extra_args --silent"
18895 cat >>$CONFIG_STATUS <<_ACEOF
18896 if \$ac_cs_recheck; then
18897 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18898 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18907 cat >>$CONFIG_STATUS <<\_ACEOF
18908 for ac_config_target in $ac_config_targets
18910 case "$ac_config_target" in
18911 # Handling of arguments.
18912 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18913 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18914 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18915 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18916 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18917 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18918 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18919 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18920 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18921 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18922 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18923 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18924 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18925 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18926 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18927 "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18928 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18929 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18930 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18931 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18932 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
18933 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
18934 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
18935 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
18936 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
18937 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18938 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18939 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18940 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18941 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18942 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18943 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18944 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18945 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18946 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18947 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
18948 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
18949 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18950 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18951 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18952 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18953 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18954 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18955 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18956 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18957 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18958 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18959 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18960 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18961 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18962 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18963 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18964 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18965 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18966 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18967 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18968 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18969 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18970 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18971 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18972 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18973 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18974 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18975 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18976 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18977 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18978 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18979 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18980 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18981 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18982 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18983 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18984 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18985 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18986 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18987 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18988 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18989 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18990 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18991 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18992 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18993 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18994 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
18995 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
18996 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
18997 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
18998 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
18999 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19000 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19001 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19002 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19003 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19004 { (exit 1); exit 1; }; };;
19008 # If the user did not use the arguments to specify the items to instantiate,
19009 # then the envvar interface is used. Set only those that are not.
19010 # We use the long form for the default assignment because of an extremely
19011 # bizarre bug on SunOS 4.1.3.
19012 if $ac_need_defaults; then
19013 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19014 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19015 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19018 # Have a temporary directory for convenience. Make it in the build tree
19019 # simply because there is no reason to put it here, and in addition,
19020 # creating and moving files from /tmp can sometimes cause problems.
19021 # Create a temporary directory, and hook for its removal unless debugging.
19024 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19025 trap '{ (exit 1); exit 1; }' 1 2 13 15
19028 # Create a (secure) tmp directory for tmp files.
19031 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19032 test -n "$tmp" && test -d "$tmp"
19035 tmp=./confstat$$-$RANDOM
19036 (umask 077 && mkdir $tmp)
19039 echo "$me: cannot create a temporary directory in ." >&2
19040 { (exit 1); exit 1; }
19045 cat >>$CONFIG_STATUS <<_ACEOF
19048 # CONFIG_FILES section.
19051 # No need to generate the scripts if there are no CONFIG_FILES.
19052 # This happens for instance when ./config.status config.h
19053 if test -n "\$CONFIG_FILES"; then
19054 # Protect against being on the right side of a sed subst in config.status.
19055 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19056 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19057 s,@SHELL@,$SHELL,;t t
19058 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19059 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19060 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19061 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19062 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19063 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19064 s,@exec_prefix@,$exec_prefix,;t t
19065 s,@prefix@,$prefix,;t t
19066 s,@program_transform_name@,$program_transform_name,;t t
19067 s,@bindir@,$bindir,;t t
19068 s,@sbindir@,$sbindir,;t t
19069 s,@libexecdir@,$libexecdir,;t t
19070 s,@datadir@,$datadir,;t t
19071 s,@sysconfdir@,$sysconfdir,;t t
19072 s,@sharedstatedir@,$sharedstatedir,;t t
19073 s,@localstatedir@,$localstatedir,;t t
19074 s,@libdir@,$libdir,;t t
19075 s,@includedir@,$includedir,;t t
19076 s,@oldincludedir@,$oldincludedir,;t t
19077 s,@infodir@,$infodir,;t t
19078 s,@mandir@,$mandir,;t t
19079 s,@build_alias@,$build_alias,;t t
19080 s,@host_alias@,$host_alias,;t t
19081 s,@target_alias@,$target_alias,;t t
19082 s,@DEFS@,$DEFS,;t t
19083 s,@ECHO_C@,$ECHO_C,;t t
19084 s,@ECHO_N@,$ECHO_N,;t t
19085 s,@ECHO_T@,$ECHO_T,;t t
19086 s,@LIBS@,$LIBS,;t t
19087 s,@BUILD_DIR@,$BUILD_DIR,;t t
19088 s,@TRUEPRG@,$TRUEPRG,;t t
19089 s,@FALSEPRG@,$FALSEPRG,;t t
19090 s,@VERSION@,$VERSION,;t t
19091 s,@DATE@,$DATE,;t t
19092 s,@LSMDATE@,$LSMDATE,;t t
19094 s,@CFLAGS@,$CFLAGS,;t t
19095 s,@LDFLAGS@,$LDFLAGS,;t t
19096 s,@CPPFLAGS@,$CPPFLAGS,;t t
19097 s,@ac_ct_CC@,$ac_ct_CC,;t t
19098 s,@EXEEXT@,$EXEEXT,;t t
19099 s,@OBJEXT@,$OBJEXT,;t t
19101 s,@CXXFLAGS@,$CXXFLAGS,;t t
19102 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19104 s,@EGREP@,$EGREP,;t t
19105 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19106 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19107 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19108 s,@RANLIB@,$RANLIB,;t t
19109 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19115 s,@ECHO@,$ECHO,;t t
19119 s,@OPENSSL@,$OPENSSL,;t t
19121 s,@PKGCONFIG@,$PKGCONFIG,;t t
19122 s,@WXCONFIG@,$WXCONFIG,;t t
19123 s,@ARFLAGS@,$ARFLAGS,;t t
19124 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19125 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19126 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19127 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19128 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19129 s,@build@,$build,;t t
19130 s,@build_cpu@,$build_cpu,;t t
19131 s,@build_vendor@,$build_vendor,;t t
19132 s,@build_os@,$build_os,;t t
19133 s,@host@,$host,;t t
19134 s,@host_cpu@,$host_cpu,;t t
19135 s,@host_vendor@,$host_vendor,;t t
19136 s,@host_os@,$host_os,;t t
19137 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19138 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19139 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19140 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19141 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19142 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19143 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19144 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19145 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19146 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19147 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19148 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19149 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19150 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19151 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19152 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19153 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19154 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19155 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19156 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19157 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19158 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19159 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19160 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19161 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19162 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19163 s,@MSGFMT@,$MSGFMT,;t t
19164 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19165 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19166 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19167 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19168 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19169 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19170 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19171 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19172 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19173 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19174 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19175 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19176 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19177 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19178 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19179 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19180 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19181 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19182 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19183 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19184 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19185 s,@GNOME_DIR@,$GNOME_DIR,;t t
19186 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19187 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19188 s,@WX_DIR@,$WX_DIR,;t t
19189 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19190 s,@STATIC_FD@,$STATIC_FD,;t t
19191 s,@STATIC_SD@,$STATIC_SD,;t t
19192 s,@STATIC_DIR@,$STATIC_DIR,;t t
19193 s,@STATIC_CONS@,$STATIC_CONS,;t t
19194 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19195 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19196 s,@ALL_DIRS@,$ALL_DIRS,;t t
19197 s,@CONS_INC@,$CONS_INC,;t t
19198 s,@CONS_OBJ@,$CONS_OBJ,;t t
19199 s,@CONS_SRC@,$CONS_SRC,;t t
19200 s,@CONS_LIBS@,$CONS_LIBS,;t t
19201 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19202 s,@READLINE_SRC@,$READLINE_SRC,;t t
19203 s,@working_dir@,$working_dir,;t t
19204 s,@scriptdir@,$scriptdir,;t t
19205 s,@dump_email@,$dump_email,;t t
19206 s,@job_email@,$job_email,;t t
19207 s,@smtp_host@,$smtp_host,;t t
19208 s,@piddir@,$piddir,;t t
19209 s,@subsysdir@,$subsysdir,;t t
19210 s,@baseport@,$baseport,;t t
19211 s,@dir_port@,$dir_port,;t t
19212 s,@fd_port@,$fd_port,;t t
19213 s,@sd_port@,$sd_port,;t t
19214 s,@dir_password@,$dir_password,;t t
19215 s,@fd_password@,$fd_password,;t t
19216 s,@sd_password@,$sd_password,;t t
19217 s,@dir_user@,$dir_user,;t t
19218 s,@dir_group@,$dir_group,;t t
19219 s,@sd_user@,$sd_user,;t t
19220 s,@sd_group@,$sd_group,;t t
19221 s,@fd_user@,$fd_user,;t t
19222 s,@fd_group@,$fd_group,;t t
19223 s,@SBINPERM@,$SBINPERM,;t t
19224 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19225 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19226 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19227 s,@cats@,$cats,;t t
19228 s,@DB_NAME@,$DB_NAME,;t t
19229 s,@GETCONF@,$GETCONF,;t t
19230 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19231 s,@X_CFLAGS@,$X_CFLAGS,;t t
19232 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19233 s,@X_LIBS@,$X_LIBS,;t t
19234 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19235 s,@LIBOBJS@,$LIBOBJS,;t t
19236 s,@ALLOCA@,$ALLOCA,;t t
19237 s,@FDLIBS@,$FDLIBS,;t t
19238 s,@DEBUG@,$DEBUG,;t t
19239 s,@DINCLUDE@,$DINCLUDE,;t t
19240 s,@DLIB@,$DLIB,;t t
19241 s,@DB_LIBS@,$DB_LIBS,;t t
19242 s,@WCFLAGS@,$WCFLAGS,;t t
19243 s,@WLDFLAGS@,$WLDFLAGS,;t t
19244 s,@OBJLIST@,$OBJLIST,;t t
19245 s,@hostname@,$hostname,;t t
19246 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19247 s,@PSCMD@,$PSCMD,;t t
19248 s,@WIN32@,$WIN32,;t t
19249 s,@MACOSX@,$MACOSX,;t t
19250 s,@DISTNAME@,$DISTNAME,;t t
19251 s,@DISTVER@,$DISTVER,;t t
19252 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19253 /@MCOMMON@/r $MCOMMON
19259 cat >>$CONFIG_STATUS <<\_ACEOF
19260 # Split the substitutions into bite-sized pieces for seds with
19261 # small command number limits, like on Digital OSF/1 and HP-UX.
19262 ac_max_sed_lines=48
19263 ac_sed_frag=1 # Number of current file.
19264 ac_beg=1 # First line for current file.
19265 ac_end=$ac_max_sed_lines # Line after last line for current file.
19268 while $ac_more_lines; do
19269 if test $ac_beg -gt 1; then
19270 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19272 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19274 if test ! -s $tmp/subs.frag; then
19275 ac_more_lines=false
19277 # The purpose of the label and of the branching condition is to
19278 # speed up the sed processing (if there are no `@' at all, there
19279 # is no need to browse any of the substitutions).
19280 # These are the two extra sed commands mentioned above.
19282 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19283 if test -z "$ac_sed_cmds"; then
19284 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19286 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19288 ac_sed_frag=`expr $ac_sed_frag + 1`
19290 ac_end=`expr $ac_end + $ac_max_sed_lines`
19293 if test -z "$ac_sed_cmds"; then
19296 fi # test -n "$CONFIG_FILES"
19299 cat >>$CONFIG_STATUS <<\_ACEOF
19300 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19301 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19303 - | *:- | *:-:* ) # input from stdin
19305 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19306 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19307 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19308 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19309 * ) ac_file_in=$ac_file.in ;;
19312 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19313 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19314 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19315 X"$ac_file" : 'X\(//\)[^/]' \| \
19316 X"$ac_file" : 'X\(//\)$' \| \
19317 X"$ac_file" : 'X\(/\)' \| \
19318 . : '\(.\)' 2>/dev/null ||
19320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19321 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19322 /^X\(\/\/\)$/{ s//\1/; q; }
19323 /^X\(\/\).*/{ s//\1/; q; }
19325 { if $as_mkdir_p; then
19330 while test ! -d "$as_dir"; do
19331 as_dirs="$as_dir $as_dirs"
19332 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19334 X"$as_dir" : 'X\(//\)[^/]' \| \
19335 X"$as_dir" : 'X\(//\)$' \| \
19336 X"$as_dir" : 'X\(/\)' \| \
19337 . : '\(.\)' 2>/dev/null ||
19339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19340 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19341 /^X\(\/\/\)$/{ s//\1/; q; }
19342 /^X\(\/\).*/{ s//\1/; q; }
19345 test ! -n "$as_dirs" || mkdir $as_dirs
19346 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19347 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19348 { (exit 1); exit 1; }; }; }
19352 if test "$ac_dir" != .; then
19353 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19354 # A "../" for each directory in $ac_dir_suffix.
19355 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19357 ac_dir_suffix= ac_top_builddir=
19361 .) # No --srcdir option. We are building in place.
19363 if test -z "$ac_top_builddir"; then
19366 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19368 [\\/]* | ?:[\\/]* ) # Absolute path.
19369 ac_srcdir=$srcdir$ac_dir_suffix;
19370 ac_top_srcdir=$srcdir ;;
19371 *) # Relative path.
19372 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19373 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19375 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19377 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19378 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19379 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19380 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19384 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19385 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19388 if test x"$ac_file" != x-; then
19389 { echo "$as_me:$LINENO: creating $ac_file" >&5
19390 echo "$as_me: creating $ac_file" >&6;}
19393 # Let's still pretend it is `configure' which instantiates (i.e., don't
19394 # use $as_me), people would be surprised to read:
19395 # /* config.h. Generated by config.status. */
19396 if test x"$ac_file" = x-; then
19399 configure_input="$ac_file. "
19401 configure_input=$configure_input"Generated from `echo $ac_file_in |
19402 sed 's,.*/,,'` by configure."
19404 # First look for the input files in the build tree, otherwise in the
19406 ac_file_inputs=`IFS=:
19407 for f in $ac_file_in; do
19409 -) echo $tmp/stdin ;;
19411 # Absolute (can't be DOS-style, as IFS=:)
19412 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19413 echo "$as_me: error: cannot find input file: $f" >&2;}
19414 { (exit 1); exit 1; }; }
19417 if test -f "$f"; then
19420 elif test -f "$srcdir/$f"; then
19425 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19426 echo "$as_me: error: cannot find input file: $f" >&2;}
19427 { (exit 1); exit 1; }; }
19430 done` || { (exit 1); exit 1; }
19432 cat >>$CONFIG_STATUS <<_ACEOF
19436 cat >>$CONFIG_STATUS <<\_ACEOF
19438 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19439 s,@configure_input@,$configure_input,;t t
19440 s,@srcdir@,$ac_srcdir,;t t
19441 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19442 s,@top_srcdir@,$ac_top_srcdir,;t t
19443 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19444 s,@builddir@,$ac_builddir,;t t
19445 s,@abs_builddir@,$ac_abs_builddir,;t t
19446 s,@top_builddir@,$ac_top_builddir,;t t
19447 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19448 s,@INSTALL@,$ac_INSTALL,;t t
19449 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19451 if test x"$ac_file" != x-; then
19452 mv $tmp/out $ac_file
19460 cat >>$CONFIG_STATUS <<\_ACEOF
19463 # CONFIG_HEADER section.
19466 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19467 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19469 # ac_d sets the value in "#define NAME VALUE" lines.
19470 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19471 ac_dB='[ ].*$,\1#\2'
19474 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19475 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19476 ac_uB='$,\1#\2define\3'
19480 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19481 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19483 - | *:- | *:-:* ) # input from stdin
19485 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19486 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19487 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19488 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19489 * ) ac_file_in=$ac_file.in ;;
19492 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19493 echo "$as_me: creating $ac_file" >&6;}
19495 # First look for the input files in the build tree, otherwise in the
19497 ac_file_inputs=`IFS=:
19498 for f in $ac_file_in; do
19500 -) echo $tmp/stdin ;;
19502 # Absolute (can't be DOS-style, as IFS=:)
19503 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19504 echo "$as_me: error: cannot find input file: $f" >&2;}
19505 { (exit 1); exit 1; }; }
19508 if test -f "$f"; then
19511 elif test -f "$srcdir/$f"; then
19516 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19517 echo "$as_me: error: cannot find input file: $f" >&2;}
19518 { (exit 1); exit 1; }; }
19521 done` || { (exit 1); exit 1; }
19522 # Remove the trailing spaces.
19523 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19527 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19528 # `conftest.undefs', that substitutes the proper values into
19529 # config.h.in to produce config.h. The first handles `#define'
19530 # templates, and the second `#undef' templates.
19531 # And first: Protect against being on the right side of a sed subst in
19532 # config.status. Protect against being in an unquoted here document
19533 # in config.status.
19534 rm -f conftest.defines conftest.undefs
19535 # Using a here document instead of a string reduces the quoting nightmare.
19536 # Putting comments in sed scripts is not portable.
19538 # `end' is used to avoid that the second main sed command (meant for
19539 # 0-ary CPP macros) applies to n-ary macro definitions.
19540 # See the Autoconf documentation for `clear'.
19541 cat >confdef2sed.sed <<\_ACEOF
19546 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19548 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19551 # If some macros were called several times there might be several times
19552 # the same #defines, which is useless. Nevertheless, we may not want to
19553 # sort them, since we want the *last* AC-DEFINE to be honored.
19554 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19555 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19556 rm -f confdef2sed.sed
19558 # This sed command replaces #undef with comments. This is necessary, for
19559 # example, in the case of _POSIX_SOURCE, which is predefined and required
19560 # on some systems where configure will not decide to define it.
19561 cat >>conftest.undefs <<\_ACEOF
19562 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19565 # Break up conftest.defines because some shells have a limit on the size
19566 # of here documents, and old seds have small limits too (100 cmds).
19567 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19568 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19569 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19570 echo ' :' >>$CONFIG_STATUS
19571 rm -f conftest.tail
19572 while grep . conftest.defines >/dev/null
19574 # Write a limited-size here document to $tmp/defines.sed.
19575 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19576 # Speed up: don't consider the non `#define' lines.
19577 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19578 # Work around the forget-to-reset-the-flag bug.
19579 echo 't clr' >>$CONFIG_STATUS
19580 echo ': clr' >>$CONFIG_STATUS
19581 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19583 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19585 mv $tmp/out $tmp/in
19587 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19588 rm -f conftest.defines
19589 mv conftest.tail conftest.defines
19591 rm -f conftest.defines
19592 echo ' fi # grep' >>$CONFIG_STATUS
19593 echo >>$CONFIG_STATUS
19595 # Break up conftest.undefs because some shells have a limit on the size
19596 # of here documents, and old seds have small limits too (100 cmds).
19597 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19598 rm -f conftest.tail
19599 while grep . conftest.undefs >/dev/null
19601 # Write a limited-size here document to $tmp/undefs.sed.
19602 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19603 # Speed up: don't consider the non `#undef'
19604 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19605 # Work around the forget-to-reset-the-flag bug.
19606 echo 't clr' >>$CONFIG_STATUS
19607 echo ': clr' >>$CONFIG_STATUS
19608 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19610 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19612 mv $tmp/out $tmp/in
19614 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19615 rm -f conftest.undefs
19616 mv conftest.tail conftest.undefs
19618 rm -f conftest.undefs
19620 cat >>$CONFIG_STATUS <<\_ACEOF
19621 # Let's still pretend it is `configure' which instantiates (i.e., don't
19622 # use $as_me), people would be surprised to read:
19623 # /* config.h. Generated by config.status. */
19624 if test x"$ac_file" = x-; then
19625 echo "/* Generated by configure. */" >$tmp/config.h
19627 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19629 cat $tmp/in >>$tmp/config.h
19631 if test x"$ac_file" != x-; then
19632 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19633 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19634 echo "$as_me: $ac_file is unchanged" >&6;}
19636 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19637 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19638 X"$ac_file" : 'X\(//\)[^/]' \| \
19639 X"$ac_file" : 'X\(//\)$' \| \
19640 X"$ac_file" : 'X\(/\)' \| \
19641 . : '\(.\)' 2>/dev/null ||
19643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19644 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19645 /^X\(\/\/\)$/{ s//\1/; q; }
19646 /^X\(\/\).*/{ s//\1/; q; }
19648 { if $as_mkdir_p; then
19653 while test ! -d "$as_dir"; do
19654 as_dirs="$as_dir $as_dirs"
19655 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19657 X"$as_dir" : 'X\(//\)[^/]' \| \
19658 X"$as_dir" : 'X\(//\)$' \| \
19659 X"$as_dir" : 'X\(/\)' \| \
19660 . : '\(.\)' 2>/dev/null ||
19662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19663 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19664 /^X\(\/\/\)$/{ s//\1/; q; }
19665 /^X\(\/\).*/{ s//\1/; q; }
19668 test ! -n "$as_dirs" || mkdir $as_dirs
19669 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19670 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19671 { (exit 1); exit 1; }; }; }
19674 mv $tmp/config.h $ac_file
19678 rm -f $tmp/config.h
19682 cat >>$CONFIG_STATUS <<\_ACEOF
19685 # CONFIG_COMMANDS section.
19687 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19688 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19689 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19690 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19691 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19692 X"$ac_dest" : 'X\(//\)[^/]' \| \
19693 X"$ac_dest" : 'X\(//\)$' \| \
19694 X"$ac_dest" : 'X\(/\)' \| \
19695 . : '\(.\)' 2>/dev/null ||
19697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19698 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19699 /^X\(\/\/\)$/{ s//\1/; q; }
19700 /^X\(\/\).*/{ s//\1/; q; }
19704 if test "$ac_dir" != .; then
19705 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19706 # A "../" for each directory in $ac_dir_suffix.
19707 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19709 ac_dir_suffix= ac_top_builddir=
19713 .) # No --srcdir option. We are building in place.
19715 if test -z "$ac_top_builddir"; then
19718 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19720 [\\/]* | ?:[\\/]* ) # Absolute path.
19721 ac_srcdir=$srcdir$ac_dir_suffix;
19722 ac_top_srcdir=$srcdir ;;
19723 *) # Relative path.
19724 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19725 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19727 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19729 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19730 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19731 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19732 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19735 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19736 echo "$as_me: executing $ac_dest commands" >&6;}
19738 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
19744 cat >>$CONFIG_STATUS <<\_ACEOF
19746 { (exit 0); exit 0; }
19748 chmod +x $CONFIG_STATUS
19749 ac_clean_files=$ac_clean_files_save
19752 # configure is writing to config.log, and then calls config.status.
19753 # config.status does its own redirection, appending to config.log.
19754 # Unfortunately, on DOS this fails, as config.log is still kept open
19755 # by configure, so config.status won't be able to write to it; its
19756 # output is simply discarded. So we exec the FD to /dev/null,
19757 # effectively closing config.log, so it can be properly (re)opened and
19758 # appended to by config.status. When coming back to configure, we
19759 # need to make the FD available again.
19760 if test "$no_create" != yes; then
19762 ac_config_status_args=
19763 test "$silent" = yes &&
19764 ac_config_status_args="$ac_config_status_args --quiet"
19766 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19768 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19769 # would make configure fail if this is the last instruction.
19770 $ac_cs_success || { (exit 1); exit 1; }
19775 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19776 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19781 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
19782 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
19784 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
19785 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
19787 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
19788 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
19790 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
19791 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
19793 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
19794 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
19796 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19797 chmod 755 $c/sqlite
19800 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19801 largefile_support="yes"
19805 # A whole lot of hand springs to get the compiler version.
19806 # This is because gcc changed the output in version 3.0
19808 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19809 if test "x${CCVERSION}" = "x" ; then
19810 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19812 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19813 if test x"${CXXVERSION}" = x ; then
19814 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19817 if test "x${subsysdir}" = "x${sbindir}" ; then
19820 echo "You have set --sbindir and --with-subsys-dir"
19821 echo " both equal to: ${subsysdir} "
19822 echo " This is not permitted. Please reconfigure."
19824 echo "Aborting configuration ..."
19830 if test "x${db_name}" = "xInternal" ; then
19833 echo "You have not specified either --enable-client-only or one of the"
19834 echo " supported databases: MySQL, PostgreSQL, or SQLite".
19835 echo " This is not permitted. Please reconfigure."
19837 echo "Aborting the configuration ..."
19844 Configuration on `date`:
19846 Host: $host -- ${DISTNAME} ${DISTVER}
19847 Bacula version: ${VERSION} (${DATE})
19848 Source code location: ${srcdir}
19849 Install binaries: ${sbindir}
19850 Install config files: ${sysconfdir}
19851 Scripts directory: ${scriptdir}
19852 Working directory: ${working_dir}
19853 PID directory: ${piddir}
19854 Subsys directory: ${subsysdir}
19855 C Compiler: ${CC} ${CCVERSION}
19856 C++ Compiler: ${CXX} ${CXXVERSION}
19857 Compiler flags: ${WCFLAGS} ${CFLAGS}
19858 Linker flags: ${WLDFLAGS} ${LDFLAGS}
19860 Statically Linked Tools: ${support_static_tools}
19861 Statically Linked FD: ${support_static_fd}
19862 Statically Linked SD: ${support_static_sd}
19863 Statically Linked DIR: ${support_static_dir}
19864 Statically Linked CONS: ${support_static_cons}
19865 Database type: ${db_name}
19866 Database lib: ${DB_LIBS}
19868 Job Output Email: ${job_email}
19869 Traceback Email: ${dump_email}
19870 SMTP Host Address: ${smtp_host}
19872 Director Port: ${dir_port}
19873 File daemon Port: ${fd_port}
19874 Storage daemon Port: ${sd_port}
19876 Director User: ${dir_user}
19877 Director Group: ${dir_group}
19878 Storage Daemon User: ${sd_user}
19879 Storage DaemonGroup: ${sd_group}
19880 File Daemon User: ${fd_user}
19881 File Daemon Group: ${fd_group}
19883 SQL binaries Directory ${SQL_BINDIR}
19885 Large file support: $largefile_support
19886 Bacula conio support: ${got_conio} ${CONS_LIBS}
19887 readline support: ${got_readline} ${PRTREADLINE_SRC}
19888 TCP Wrappers support: ${TCPW_MSG}
19889 ZLIB support: ${have_zlib}
19890 enable-smartalloc: ${support_smartalloc}
19891 enable-gnome: ${support_gnome} ${gnome_version}
19892 enable-wx-console: ${support_wx_console}
19893 client-only: ${build_client_only}
19894 ACL support: ${have_acl}
19901 # cweb support: ${got_cweb} ${CWEB_SRC}
19902 # gmp support: ${got_gmp} ${GMP_SRC}